@atiproto/lexicons 0.3.0 → 0.5.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.
Files changed (52) hide show
  1. package/dist/index.js +1855 -1050
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1855 -1050
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +6 -6
  6. package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +2 -2
  7. package/dist/lexicons/com/atiproto/account/cart/get.defs.d.ts +6 -6
  8. package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +1 -1
  9. package/dist/lexicons/com/atiproto/account/profile/get.defs.d.ts +2 -2
  10. package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +2 -2
  11. package/dist/lexicons/com/atiproto/account/subscription/get.d.ts +2 -0
  12. package/dist/lexicons/com/atiproto/account/subscription/get.defs.d.ts +29 -0
  13. package/dist/lexicons/com/atiproto/account/subscription/list.d.ts +2 -0
  14. package/dist/lexicons/com/atiproto/account/subscription/list.defs.d.ts +31 -0
  15. package/dist/lexicons/com/atiproto/account/subscription/validate.d.ts +2 -0
  16. package/dist/lexicons/com/atiproto/account/subscription/validate.defs.d.ts +44 -0
  17. package/dist/lexicons/com/atiproto/account/subscription.d.ts +3 -0
  18. package/dist/lexicons/com/atiproto/account/tip/get.d.ts +2 -0
  19. package/dist/lexicons/com/atiproto/account/tip/get.defs.d.ts +35 -0
  20. package/dist/lexicons/com/atiproto/account/tip/list.d.ts +2 -0
  21. package/dist/lexicons/com/atiproto/account/tip/list.defs.d.ts +43 -0
  22. package/dist/lexicons/com/atiproto/account/tip/validate.d.ts +2 -0
  23. package/dist/lexicons/com/atiproto/account/tip/validate.defs.d.ts +50 -0
  24. package/dist/lexicons/com/atiproto/account/tip.d.ts +3 -0
  25. package/dist/lexicons/com/atiproto/account.d.ts +2 -0
  26. package/dist/lexicons/com/atiproto/cart.defs.d.ts +33 -0
  27. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +2 -2
  28. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +6 -4
  29. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +2 -2
  30. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +1 -1
  31. package/dist/lexicons/com/atiproto/feed/subscription/validate.d.ts +2 -0
  32. package/dist/lexicons/com/atiproto/feed/subscription/validate.defs.d.ts +44 -0
  33. package/dist/lexicons/com/atiproto/feed/subscription.d.ts +1 -0
  34. package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +6 -4
  35. package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +2 -2
  36. package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +2 -2
  37. package/dist/lexicons/com/atiproto/feed/tip/validate.d.ts +2 -0
  38. package/dist/lexicons/com/atiproto/feed/tip/validate.defs.d.ts +50 -0
  39. package/dist/lexicons/com/atiproto/feed/tip.d.ts +1 -0
  40. package/dist/lexicons/com/atiproto/profile.defs.d.ts +28 -0
  41. package/dist/lexicons/com/atiproto/repo/profile/get.defs.d.ts +2 -2
  42. package/dist/lexicons/com/atiproto/repo/subscription/count.d.ts +2 -0
  43. package/dist/lexicons/com/atiproto/repo/subscription/count.defs.d.ts +42 -0
  44. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +1 -1
  45. package/dist/lexicons/com/atiproto/repo/subscription.d.ts +1 -2
  46. package/dist/lexicons/com/atiproto/repo/tip/count.d.ts +2 -0
  47. package/dist/lexicons/com/atiproto/repo/tip/count.defs.d.ts +48 -0
  48. package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +1 -1
  49. package/dist/lexicons/com/atiproto/repo/tip.d.ts +1 -2
  50. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +44 -0
  51. package/dist/lexicons/com/atiproto/tip.defs.d.ts +91 -11
  52. package/package.json +1 -1
@@ -13,15 +13,15 @@ declare const main: l.Procedure<"com.atiproto.account.cart.clone", l.ParamsSchem
13
13
  readonly format: "uri";
14
14
  }>>;
15
15
  }>>, l.Payload<"application/json", l.ObjectSchema<{
16
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
16
+ cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
17
17
  cartUri: l.StringSchema<{
18
18
  readonly format: "at-uri";
19
19
  }>;
20
20
  checkoutUrl: l.StringSchema<{
21
21
  readonly format: "uri";
22
22
  }>;
23
- tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
24
- subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>>;
23
+ tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
24
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
25
25
  }>>, undefined>;
26
26
  export { main };
27
27
  export type $Params = l.InferMethodParams<typeof main>;
@@ -37,13 +37,13 @@ export declare const $lxm: "com.atiproto.account.cart.clone", $params: l.ParamsS
37
37
  readonly format: "uri";
38
38
  }>>;
39
39
  }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
40
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
40
+ cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
41
41
  cartUri: l.StringSchema<{
42
42
  readonly format: "at-uri";
43
43
  }>;
44
44
  checkoutUrl: l.StringSchema<{
45
45
  readonly format: "uri";
46
46
  }>;
47
- tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
48
- subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>>;
47
+ tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
48
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
49
49
  }>>;
@@ -11,7 +11,7 @@ declare const main: l.Procedure<"com.atiproto.account.cart.create", l.ParamsSche
11
11
  readonly format: "uri";
12
12
  }>>;
13
13
  }>>, l.Payload<"application/json", l.ObjectSchema<{
14
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
14
+ cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
15
15
  cartUri: l.StringSchema<{
16
16
  readonly format: "at-uri";
17
17
  }>;
@@ -33,7 +33,7 @@ export declare const $lxm: "com.atiproto.account.cart.create", $params: l.Params
33
33
  readonly format: "uri";
34
34
  }>>;
35
35
  }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
36
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
36
+ cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
37
37
  cartUri: l.StringSchema<{
38
38
  readonly format: "at-uri";
39
39
  }>;
@@ -16,12 +16,12 @@ declare const main: l.Query<"com.atiproto.account.cart.get", l.ParamsSchema<{
16
16
  cid: l.OptionalSchema<l.StringSchema<{
17
17
  readonly format: "cid";
18
18
  }>>;
19
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
19
+ cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
20
20
  checkoutUrl: l.OptionalSchema<l.StringSchema<{
21
21
  readonly format: "uri";
22
22
  }>>;
23
- tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
24
- subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>>;
23
+ tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
24
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
25
25
  }>>, undefined>;
26
26
  export { main };
27
27
  export type $Params = l.InferMethodParams<typeof main>;
@@ -38,10 +38,10 @@ export declare const $lxm: "com.atiproto.account.cart.get", $params: l.ParamsSch
38
38
  cid: l.OptionalSchema<l.StringSchema<{
39
39
  readonly format: "cid";
40
40
  }>>;
41
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
41
+ cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
42
42
  checkoutUrl: l.OptionalSchema<l.StringSchema<{
43
43
  readonly format: "uri";
44
44
  }>>;
45
- tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
46
- subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>>;
45
+ tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
46
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
47
47
  }>>;
@@ -29,7 +29,7 @@ type CartResponse = {
29
29
  * CID of the cart record
30
30
  */
31
31
  cid: l.CidString;
32
- record: AtiprotoCart.Main;
32
+ record: AtiprotoCart.View;
33
33
  };
34
34
  export type { CartResponse };
35
35
  declare const cartResponse: l.TypedObjectSchema<"com.atiproto.account.cart.list#cartResponse", l.Validator<CartResponse, CartResponse>>;
@@ -10,7 +10,7 @@ declare const main: l.Query<"com.atiproto.account.profile.get", l.ParamsSchema<{
10
10
  cid: l.OptionalSchema<l.StringSchema<{
11
11
  readonly format: "cid";
12
12
  }>>;
13
- profile: l.RefSchema<l.Validator<AtiprotoProfile.Main, AtiprotoProfile.Main>>;
13
+ profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
14
14
  hasProfile: l.BooleanSchema;
15
15
  readyForPayment: l.BooleanSchema;
16
16
  }>>, undefined>;
@@ -25,7 +25,7 @@ export declare const $lxm: "com.atiproto.account.profile.get", $params: l.Params
25
25
  cid: l.OptionalSchema<l.StringSchema<{
26
26
  readonly format: "cid";
27
27
  }>>;
28
- profile: l.RefSchema<l.Validator<AtiprotoProfile.Main, AtiprotoProfile.Main>>;
28
+ profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
29
29
  hasProfile: l.BooleanSchema;
30
30
  readyForPayment: l.BooleanSchema;
31
31
  }>>;
@@ -14,7 +14,7 @@ declare const main: l.Procedure<"com.atiproto.account.profile.put", l.ParamsSche
14
14
  cid: l.StringSchema<{
15
15
  readonly format: "cid";
16
16
  }>;
17
- profile: l.RefSchema<l.Validator<AtiprotoProfile.Main, AtiprotoProfile.Main>>;
17
+ profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
18
18
  hasProfile: l.BooleanSchema;
19
19
  readyForPayment: l.BooleanSchema;
20
20
  }>>, undefined>;
@@ -35,7 +35,7 @@ export declare const $lxm: "com.atiproto.account.profile.put", $params: l.Params
35
35
  cid: l.StringSchema<{
36
36
  readonly format: "cid";
37
37
  }>;
38
- profile: l.RefSchema<l.Validator<AtiprotoProfile.Main, AtiprotoProfile.Main>>;
38
+ profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
39
39
  hasProfile: l.BooleanSchema;
40
40
  readyForPayment: l.BooleanSchema;
41
41
  }>>;
@@ -0,0 +1,2 @@
1
+ export * from './get.defs.js';
2
+ export * as $defs from './get.defs.js';
@@ -0,0 +1,29 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoSubscription from '../../subscription.defs.js';
3
+ declare const $nsid = "com.atiproto.account.subscription.get";
4
+ export { $nsid };
5
+ /** Get a specific subscription received by the authenticated user (as the recipient/subject). Looks up by subscription record uri or sender DID. These are mutually exclusive; uri takes precedence. */
6
+ declare const main: l.Query<"com.atiproto.account.subscription.get", l.ParamsSchema<{
7
+ readonly uri: l.OptionalSchema<l.StringSchema<{
8
+ readonly format: "at-uri";
9
+ }>>;
10
+ readonly sender: l.OptionalSchema<l.StringSchema<{
11
+ readonly format: "did";
12
+ }>>;
13
+ }>, l.Payload<"application/json", l.ObjectSchema<{
14
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
15
+ }>>, undefined>;
16
+ export { main };
17
+ export type $Params = l.InferMethodParams<typeof main>;
18
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
19
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
20
+ export declare const $lxm: "com.atiproto.account.subscription.get", $params: l.ParamsSchema<{
21
+ readonly uri: l.OptionalSchema<l.StringSchema<{
22
+ readonly format: "at-uri";
23
+ }>>;
24
+ readonly sender: l.OptionalSchema<l.StringSchema<{
25
+ readonly format: "did";
26
+ }>>;
27
+ }>, $output: l.Payload<"application/json", l.ObjectSchema<{
28
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
29
+ }>>;
@@ -0,0 +1,2 @@
1
+ export * from './list.defs.js';
2
+ export * as $defs from './list.defs.js';
@@ -0,0 +1,31 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoSubscription from '../../subscription.defs.js';
3
+ declare const $nsid = "com.atiproto.account.subscription.list";
4
+ export { $nsid };
5
+ /** List subscriptions received by the authenticated user (subscriptions where the authed user is the recipient/subject). Includes subscriptions marked private, which are only stored in atiproto's database. */
6
+ declare const main: l.Query<"com.atiproto.account.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<{
12
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
13
+ cursor: l.OptionalSchema<l.StringSchema<{
14
+ readonly maxLength: 512;
15
+ }>>;
16
+ }>>, undefined>;
17
+ export { main };
18
+ export type $Params = l.InferMethodParams<typeof main>;
19
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
20
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
21
+ export declare const $lxm: "com.atiproto.account.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<{
27
+ subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
28
+ cursor: l.OptionalSchema<l.StringSchema<{
29
+ readonly maxLength: 512;
30
+ }>>;
31
+ }>>;
@@ -0,0 +1,2 @@
1
+ export * from './validate.defs.js';
2
+ export * as $defs from './validate.defs.js';
@@ -0,0 +1,44 @@
1
+ import { l } from '@atproto/lex';
2
+ declare const $nsid = "com.atiproto.account.subscription.validate";
3
+ export { $nsid };
4
+ /** Validate that a sender has an active, Stripe-verified subscription to the authenticated user (as the recipient/subject). Looks up by subscriptionUri (a specific subscription record) or sender (subscriber DID). These are mutually exclusive; subscriptionUri takes precedence. */
5
+ declare const main: l.Query<"com.atiproto.account.subscription.validate", l.ParamsSchema<{
6
+ readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
7
+ readonly format: "at-uri";
8
+ }>>;
9
+ readonly sender: l.OptionalSchema<l.StringSchema<{
10
+ readonly format: "did";
11
+ }>>;
12
+ readonly amount: l.OptionalSchema<l.IntegerSchema>;
13
+ }>, l.Payload<"application/json", l.ObjectSchema<{
14
+ valid: l.BooleanSchema;
15
+ amount: l.OptionalSchema<l.IntegerSchema>;
16
+ currency: l.OptionalSchema<l.StringSchema<{
17
+ readonly maxLength: 3;
18
+ }>>;
19
+ reason: l.OptionalSchema<l.StringSchema<{
20
+ readonly maxLength: 1024;
21
+ }>>;
22
+ }>>, undefined>;
23
+ export { main };
24
+ export type $Params = l.InferMethodParams<typeof main>;
25
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
26
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
27
+ export declare const $lxm: "com.atiproto.account.subscription.validate", $params: l.ParamsSchema<{
28
+ readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
29
+ readonly format: "at-uri";
30
+ }>>;
31
+ readonly sender: l.OptionalSchema<l.StringSchema<{
32
+ readonly format: "did";
33
+ }>>;
34
+ readonly amount: l.OptionalSchema<l.IntegerSchema>;
35
+ }>, $output: l.Payload<"application/json", l.ObjectSchema<{
36
+ valid: l.BooleanSchema;
37
+ amount: l.OptionalSchema<l.IntegerSchema>;
38
+ currency: l.OptionalSchema<l.StringSchema<{
39
+ readonly maxLength: 3;
40
+ }>>;
41
+ reason: l.OptionalSchema<l.StringSchema<{
42
+ readonly maxLength: 1024;
43
+ }>>;
44
+ }>>;
@@ -0,0 +1,3 @@
1
+ export * as 'get' from './subscription/get.js';
2
+ export * as list from './subscription/list.js';
3
+ export * as validate from './subscription/validate.js';
@@ -0,0 +1,2 @@
1
+ export * from './get.defs.js';
2
+ export * as $defs from './get.defs.js';
@@ -0,0 +1,35 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoTip from '../../tip.defs.js';
3
+ declare const $nsid = "com.atiproto.account.tip.get";
4
+ export { $nsid };
5
+ /** Get a specific tip received by the authenticated user (as the recipient/subject). Looks up by tip record uri, sender DID, or record uri. These are mutually exclusive and resolved in that order. */
6
+ declare const main: l.Query<"com.atiproto.account.tip.get", l.ParamsSchema<{
7
+ readonly uri: l.OptionalSchema<l.StringSchema<{
8
+ readonly format: "at-uri";
9
+ }>>;
10
+ readonly sender: l.OptionalSchema<l.StringSchema<{
11
+ readonly format: "did";
12
+ }>>;
13
+ readonly recordUri: l.OptionalSchema<l.StringSchema<{
14
+ readonly format: "at-uri";
15
+ }>>;
16
+ }>, l.Payload<"application/json", l.ObjectSchema<{
17
+ tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
18
+ }>>, undefined>;
19
+ export { main };
20
+ export type $Params = l.InferMethodParams<typeof main>;
21
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
22
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
23
+ export declare const $lxm: "com.atiproto.account.tip.get", $params: l.ParamsSchema<{
24
+ readonly uri: l.OptionalSchema<l.StringSchema<{
25
+ readonly format: "at-uri";
26
+ }>>;
27
+ readonly sender: l.OptionalSchema<l.StringSchema<{
28
+ readonly format: "did";
29
+ }>>;
30
+ readonly recordUri: l.OptionalSchema<l.StringSchema<{
31
+ readonly format: "at-uri";
32
+ }>>;
33
+ }>, $output: l.Payload<"application/json", l.ObjectSchema<{
34
+ tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
35
+ }>>;
@@ -0,0 +1,2 @@
1
+ export * from './list.defs.js';
2
+ export * as $defs from './list.defs.js';
@@ -0,0 +1,43 @@
1
+ import { l } from '@atproto/lex';
2
+ import * as AtiprotoTip from '../../tip.defs.js';
3
+ declare const $nsid = "com.atiproto.account.tip.list";
4
+ export { $nsid };
5
+ /** List tips received by the authenticated user (tips where the authed user is the recipient/subject). Includes tips marked private, which are only stored in atiproto's database. */
6
+ declare const main: l.Query<"com.atiproto.account.tip.list", l.ParamsSchema<{
7
+ readonly sender: 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<{
18
+ tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
19
+ cursor: l.OptionalSchema<l.StringSchema<{
20
+ readonly maxLength: 512;
21
+ }>>;
22
+ }>>, undefined>;
23
+ export { main };
24
+ export type $Params = l.InferMethodParams<typeof main>;
25
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
26
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
27
+ export declare const $lxm: "com.atiproto.account.tip.list", $params: l.ParamsSchema<{
28
+ readonly sender: 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<{
39
+ tips: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
40
+ cursor: l.OptionalSchema<l.StringSchema<{
41
+ readonly maxLength: 512;
42
+ }>>;
43
+ }>>;
@@ -0,0 +1,2 @@
1
+ export * from './validate.defs.js';
2
+ export * as $defs from './validate.defs.js';
@@ -0,0 +1,50 @@
1
+ import { l } from '@atproto/lex';
2
+ declare const $nsid = "com.atiproto.account.tip.validate";
3
+ export { $nsid };
4
+ /** Validate that a sender has completed tip payment(s) to the authenticated user (as the recipient/subject). Looks up by tipUri (a specific tip record), recordUri (sums all tips for that record), or sender (sender DID). These are mutually exclusive and resolved in that order. */
5
+ declare const main: l.Query<"com.atiproto.account.tip.validate", l.ParamsSchema<{
6
+ readonly tipUri: l.OptionalSchema<l.StringSchema<{
7
+ readonly format: "at-uri";
8
+ }>>;
9
+ readonly recordUri: l.OptionalSchema<l.StringSchema<{
10
+ readonly format: "at-uri";
11
+ }>>;
12
+ readonly sender: l.OptionalSchema<l.StringSchema<{
13
+ readonly format: "did";
14
+ }>>;
15
+ readonly amount: l.OptionalSchema<l.IntegerSchema>;
16
+ }>, l.Payload<"application/json", l.ObjectSchema<{
17
+ valid: l.BooleanSchema;
18
+ amount: l.OptionalSchema<l.IntegerSchema>;
19
+ currency: l.OptionalSchema<l.StringSchema<{
20
+ readonly maxLength: 3;
21
+ }>>;
22
+ reason: l.OptionalSchema<l.StringSchema<{
23
+ readonly maxLength: 1024;
24
+ }>>;
25
+ }>>, undefined>;
26
+ export { main };
27
+ export type $Params = l.InferMethodParams<typeof main>;
28
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
29
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
30
+ export declare const $lxm: "com.atiproto.account.tip.validate", $params: l.ParamsSchema<{
31
+ readonly tipUri: l.OptionalSchema<l.StringSchema<{
32
+ readonly format: "at-uri";
33
+ }>>;
34
+ readonly recordUri: l.OptionalSchema<l.StringSchema<{
35
+ readonly format: "at-uri";
36
+ }>>;
37
+ readonly sender: l.OptionalSchema<l.StringSchema<{
38
+ readonly format: "did";
39
+ }>>;
40
+ readonly amount: l.OptionalSchema<l.IntegerSchema>;
41
+ }>, $output: l.Payload<"application/json", l.ObjectSchema<{
42
+ valid: l.BooleanSchema;
43
+ amount: l.OptionalSchema<l.IntegerSchema>;
44
+ currency: l.OptionalSchema<l.StringSchema<{
45
+ readonly maxLength: 3;
46
+ }>>;
47
+ reason: l.OptionalSchema<l.StringSchema<{
48
+ readonly maxLength: 1024;
49
+ }>>;
50
+ }>>;
@@ -0,0 +1,3 @@
1
+ export * as 'get' from './tip/get.js';
2
+ export * as list from './tip/list.js';
3
+ export * as validate from './tip/validate.js';
@@ -1,2 +1,4 @@
1
1
  export * as cart from './account/cart.js';
2
2
  export * as profile from './account/profile.js';
3
+ export * as subscription from './account/subscription.js';
4
+ export * as tip from './account/tip.js';
@@ -131,6 +131,39 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
131
131
  completedAt?: l.DatetimeString | undefined;
132
132
  $type: "com.atiproto.cart";
133
133
  }>;
134
+ /** View of a cart record for use in API responses */
135
+ type View = {
136
+ $type?: 'com.atiproto.cart#view';
137
+ items: CartItem[];
138
+ /**
139
+ * ISO 4217 currency code
140
+ */
141
+ currency: string;
142
+ /**
143
+ * Total amount in cents
144
+ */
145
+ total: number;
146
+ /**
147
+ * Cart status
148
+ */
149
+ status: 'open' | 'completed' | 'expired' | 'abandoned';
150
+ /**
151
+ * Creation timestamp
152
+ */
153
+ createdAt: l.DatetimeString;
154
+ /**
155
+ * Expiration timestamp
156
+ */
157
+ expiresAt: l.DatetimeString;
158
+ /**
159
+ * Completion timestamp
160
+ */
161
+ completedAt?: l.DatetimeString;
162
+ };
163
+ export type { View };
164
+ /** View of a cart record for use in API responses */
165
+ declare const view: l.TypedObjectSchema<"com.atiproto.cart#view", l.Validator<View, View>>;
166
+ export { view };
134
167
  type CartItem = {
135
168
  $type?: 'com.atiproto.cart#cartItem';
136
169
  /**
@@ -11,7 +11,7 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.cancel", l.Param
11
11
  subscriptionUri: l.StringSchema<{
12
12
  readonly format: "at-uri";
13
13
  }>;
14
- subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
14
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
15
15
  accessUntil: l.StringSchema<{
16
16
  readonly format: "datetime";
17
17
  }>;
@@ -30,7 +30,7 @@ export declare const $lxm: "com.atiproto.feed.subscription.cancel", $params: l.P
30
30
  subscriptionUri: l.StringSchema<{
31
31
  readonly format: "at-uri";
32
32
  }>;
33
- subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
33
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
34
34
  accessUntil: l.StringSchema<{
35
35
  readonly format: "datetime";
36
36
  }>;
@@ -19,15 +19,16 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.create", l.Param
19
19
  redirectUrl: l.OptionalSchema<l.StringSchema<{
20
20
  readonly format: "uri";
21
21
  }>>;
22
+ isPrivate: l.OptionalSchema<l.BooleanSchema>;
22
23
  }>>, l.Payload<"application/json", l.ObjectSchema<{
23
24
  subscriptionUri: l.StringSchema<{
24
25
  readonly format: "at-uri";
25
26
  }>;
26
- subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
27
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
27
28
  cartUri: l.OptionalSchema<l.StringSchema<{
28
29
  readonly format: "at-uri";
29
30
  }>>;
30
- cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>>;
31
+ cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
31
32
  checkoutUrl: l.OptionalSchema<l.StringSchema<{
32
33
  readonly format: "uri";
33
34
  }>>;
@@ -53,15 +54,16 @@ export declare const $lxm: "com.atiproto.feed.subscription.create", $params: l.P
53
54
  redirectUrl: l.OptionalSchema<l.StringSchema<{
54
55
  readonly format: "uri";
55
56
  }>>;
57
+ isPrivate: l.OptionalSchema<l.BooleanSchema>;
56
58
  }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
57
59
  subscriptionUri: l.StringSchema<{
58
60
  readonly format: "at-uri";
59
61
  }>;
60
- subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
62
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
61
63
  cartUri: l.OptionalSchema<l.StringSchema<{
62
64
  readonly format: "at-uri";
63
65
  }>>;
64
- cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>>;
66
+ cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
65
67
  checkoutUrl: l.OptionalSchema<l.StringSchema<{
66
68
  readonly format: "uri";
67
69
  }>>;
@@ -14,7 +14,7 @@ declare const main: l.Query<"com.atiproto.feed.subscription.get", l.ParamsSchema
14
14
  cid: l.StringSchema<{
15
15
  readonly format: "cid";
16
16
  }>;
17
- record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
17
+ record: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
18
18
  }>>, undefined>;
19
19
  export { main };
20
20
  export type $Params = l.InferMethodParams<typeof main>;
@@ -31,5 +31,5 @@ export declare const $lxm: "com.atiproto.feed.subscription.get", $params: l.Para
31
31
  cid: l.StringSchema<{
32
32
  readonly format: "cid";
33
33
  }>;
34
- record: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
34
+ record: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
35
35
  }>>;
@@ -25,7 +25,7 @@ type SubscriptionResponse = {
25
25
  * AT-URI of the subscription record
26
26
  */
27
27
  uri: l.AtUriString;
28
- record: AtiprotoSubscription.Main;
28
+ record: AtiprotoSubscription.View;
29
29
  };
30
30
  export type { SubscriptionResponse };
31
31
  declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.feed.subscription.list#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
@@ -0,0 +1,2 @@
1
+ export * from './validate.defs.js';
2
+ export * as $defs from './validate.defs.js';
@@ -0,0 +1,44 @@
1
+ import { l } from '@atproto/lex';
2
+ declare const $nsid = "com.atiproto.feed.subscription.validate";
3
+ export { $nsid };
4
+ /** Validate that the authenticated user (as the sender/subscriber) has an active, Stripe-verified subscription. Looks up by subscriptionUri (a specific subscription record) or subject (recipient DID). These are mutually exclusive; subscriptionUri takes precedence. */
5
+ declare const main: l.Query<"com.atiproto.feed.subscription.validate", l.ParamsSchema<{
6
+ readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
7
+ readonly format: "at-uri";
8
+ }>>;
9
+ readonly subject: l.OptionalSchema<l.StringSchema<{
10
+ readonly format: "did";
11
+ }>>;
12
+ readonly amount: l.OptionalSchema<l.IntegerSchema>;
13
+ }>, l.Payload<"application/json", l.ObjectSchema<{
14
+ valid: l.BooleanSchema;
15
+ amount: l.OptionalSchema<l.IntegerSchema>;
16
+ currency: l.OptionalSchema<l.StringSchema<{
17
+ readonly maxLength: 3;
18
+ }>>;
19
+ reason: l.OptionalSchema<l.StringSchema<{
20
+ readonly maxLength: 1024;
21
+ }>>;
22
+ }>>, undefined>;
23
+ export { main };
24
+ export type $Params = l.InferMethodParams<typeof main>;
25
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
26
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
27
+ export declare const $lxm: "com.atiproto.feed.subscription.validate", $params: l.ParamsSchema<{
28
+ readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
29
+ readonly format: "at-uri";
30
+ }>>;
31
+ readonly subject: l.OptionalSchema<l.StringSchema<{
32
+ readonly format: "did";
33
+ }>>;
34
+ readonly amount: l.OptionalSchema<l.IntegerSchema>;
35
+ }>, $output: l.Payload<"application/json", l.ObjectSchema<{
36
+ valid: l.BooleanSchema;
37
+ amount: l.OptionalSchema<l.IntegerSchema>;
38
+ currency: l.OptionalSchema<l.StringSchema<{
39
+ readonly maxLength: 3;
40
+ }>>;
41
+ reason: l.OptionalSchema<l.StringSchema<{
42
+ readonly maxLength: 1024;
43
+ }>>;
44
+ }>>;
@@ -3,3 +3,4 @@ export * as create from './subscription/create.js';
3
3
  export * as 'get' from './subscription/get.js';
4
4
  export * as list from './subscription/list.js';
5
5
  export * as put from './subscription/put.js';
6
+ export * as validate from './subscription/validate.js';
@@ -25,15 +25,16 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
25
25
  readonly maxGraphemes: 500;
26
26
  readonly maxLength: 5000;
27
27
  }>>;
28
+ isPrivate: l.OptionalSchema<l.BooleanSchema>;
28
29
  }>>, l.Payload<"application/json", l.ObjectSchema<{
29
30
  tipUri: l.StringSchema<{
30
31
  readonly format: "at-uri";
31
32
  }>;
32
- tip: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
33
+ tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
33
34
  cartUri: l.OptionalSchema<l.StringSchema<{
34
35
  readonly format: "at-uri";
35
36
  }>>;
36
- cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>>;
37
+ cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
37
38
  checkoutUrl: l.OptionalSchema<l.StringSchema<{
38
39
  readonly format: "uri";
39
40
  }>>;
@@ -65,15 +66,16 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
65
66
  readonly maxGraphemes: 500;
66
67
  readonly maxLength: 5000;
67
68
  }>>;
69
+ isPrivate: l.OptionalSchema<l.BooleanSchema>;
68
70
  }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
69
71
  tipUri: l.StringSchema<{
70
72
  readonly format: "at-uri";
71
73
  }>;
72
- tip: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
74
+ tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
73
75
  cartUri: l.OptionalSchema<l.StringSchema<{
74
76
  readonly format: "at-uri";
75
77
  }>>;
76
- cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>>;
78
+ cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
77
79
  checkoutUrl: l.OptionalSchema<l.StringSchema<{
78
80
  readonly format: "uri";
79
81
  }>>;