@atiproto/lexicons 0.4.0 → 0.5.1

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 (38) hide show
  1. package/dist/index.js +1575 -1002
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1575 -1002
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/lexicons/com/atiproto/account/subscription/get.d.ts +2 -0
  6. package/dist/lexicons/com/atiproto/account/subscription/get.defs.d.ts +29 -0
  7. package/dist/lexicons/com/atiproto/account/subscription/list.d.ts +2 -0
  8. package/dist/lexicons/com/atiproto/account/subscription/list.defs.d.ts +31 -0
  9. package/dist/lexicons/com/atiproto/account/subscription/validate.d.ts +2 -0
  10. package/dist/lexicons/com/atiproto/account/subscription/validate.defs.d.ts +44 -0
  11. package/dist/lexicons/com/atiproto/account/subscription.d.ts +3 -0
  12. package/dist/lexicons/com/atiproto/account/tip/get.d.ts +2 -0
  13. package/dist/lexicons/com/atiproto/account/tip/get.defs.d.ts +35 -0
  14. package/dist/lexicons/com/atiproto/account/tip/list.d.ts +2 -0
  15. package/dist/lexicons/com/atiproto/account/tip/list.defs.d.ts +43 -0
  16. package/dist/lexicons/com/atiproto/account/tip/validate.d.ts +2 -0
  17. package/dist/lexicons/com/atiproto/account/tip/validate.defs.d.ts +50 -0
  18. package/dist/lexicons/com/atiproto/account/tip.d.ts +3 -0
  19. package/dist/lexicons/com/atiproto/account.d.ts +2 -0
  20. package/dist/lexicons/com/atiproto/cart.defs.d.ts +4 -0
  21. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +2 -0
  22. package/dist/lexicons/com/atiproto/feed/subscription/validate.d.ts +2 -0
  23. package/dist/lexicons/com/atiproto/feed/subscription/validate.defs.d.ts +44 -0
  24. package/dist/lexicons/com/atiproto/feed/subscription.d.ts +1 -0
  25. package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +2 -0
  26. package/dist/lexicons/com/atiproto/feed/tip/validate.d.ts +2 -0
  27. package/dist/lexicons/com/atiproto/feed/tip/validate.defs.d.ts +50 -0
  28. package/dist/lexicons/com/atiproto/feed/tip.d.ts +1 -0
  29. package/dist/lexicons/com/atiproto/profile.defs.d.ts +4 -0
  30. package/dist/lexicons/com/atiproto/repo/subscription/count.d.ts +2 -0
  31. package/dist/lexicons/com/atiproto/repo/subscription/count.defs.d.ts +42 -0
  32. package/dist/lexicons/com/atiproto/repo/subscription.d.ts +1 -2
  33. package/dist/lexicons/com/atiproto/repo/tip/count.d.ts +2 -0
  34. package/dist/lexicons/com/atiproto/repo/tip/count.defs.d.ts +48 -0
  35. package/dist/lexicons/com/atiproto/repo/tip.d.ts +1 -2
  36. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +5 -1
  37. package/dist/lexicons/com/atiproto/tip.defs.d.ts +56 -12
  38. package/package.json +1 -1
@@ -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';
@@ -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
@@ -19,6 +19,7 @@ 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";
@@ -53,6 +54,7 @@ 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";
@@ -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,6 +25,7 @@ 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";
@@ -65,6 +66,7 @@ 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";
@@ -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.feed.tip.validate";
3
+ export { $nsid };
4
+ /** Validate that the authenticated user (as the sender) has completed tip payment(s). Looks up by tipUri (a specific tip record), recordUri (sums all tips for that record), or subject (recipient DID). These are mutually exclusive and resolved in that order. */
5
+ declare const main: l.Query<"com.atiproto.feed.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 subject: 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.feed.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 subject: 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
+ }>>;
@@ -2,3 +2,4 @@ export * as create from './tip/create.js';
2
2
  export * as 'get' from './tip/get.js';
3
3
  export * as list from './tip/list.js';
4
4
  export * as put from './tip/put.js';
5
+ export * as validate from './tip/validate.js';
@@ -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
  */
@@ -0,0 +1,2 @@
1
+ export * from './count.defs.js';
2
+ export * as $defs from './count.defs.js';
@@ -0,0 +1,42 @@
1
+ import { l } from '@atproto/lex';
2
+ declare const $nsid = "com.atiproto.repo.subscription.count";
3
+ export { $nsid };
4
+ /** Count active subscriptions. If subject is provided, counts subscriptions received by that DID. If omitted, counts subscriptions the authenticated user has active (as the subscriber). Optionally filtered by a start/end datetime window (matching billingStartDate). When the authenticated user is the subject/owner of the target, the response also includes the sum of amounts. */
5
+ declare const main: l.Query<"com.atiproto.repo.subscription.count", l.ParamsSchema<{
6
+ readonly subject: l.OptionalSchema<l.StringSchema<{
7
+ readonly format: "did";
8
+ }>>;
9
+ readonly startDate: l.OptionalSchema<l.StringSchema<{
10
+ readonly format: "datetime";
11
+ }>>;
12
+ readonly endDate: l.OptionalSchema<l.StringSchema<{
13
+ readonly format: "datetime";
14
+ }>>;
15
+ }>, l.Payload<"application/json", l.ObjectSchema<{
16
+ count: l.IntegerSchema;
17
+ amount: l.OptionalSchema<l.IntegerSchema>;
18
+ currency: l.OptionalSchema<l.StringSchema<{
19
+ readonly maxLength: 3;
20
+ }>>;
21
+ }>>, undefined>;
22
+ export { main };
23
+ export type $Params = l.InferMethodParams<typeof main>;
24
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
25
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
26
+ export declare const $lxm: "com.atiproto.repo.subscription.count", $params: l.ParamsSchema<{
27
+ readonly subject: l.OptionalSchema<l.StringSchema<{
28
+ readonly format: "did";
29
+ }>>;
30
+ readonly startDate: l.OptionalSchema<l.StringSchema<{
31
+ readonly format: "datetime";
32
+ }>>;
33
+ readonly endDate: l.OptionalSchema<l.StringSchema<{
34
+ readonly format: "datetime";
35
+ }>>;
36
+ }>, $output: l.Payload<"application/json", l.ObjectSchema<{
37
+ count: l.IntegerSchema;
38
+ amount: l.OptionalSchema<l.IntegerSchema>;
39
+ currency: l.OptionalSchema<l.StringSchema<{
40
+ readonly maxLength: 3;
41
+ }>>;
42
+ }>>;
@@ -1,2 +1 @@
1
- export * as search from './subscription/search.js';
2
- export * as validate from './subscription/validate.js';
1
+ export * as count from './subscription/count.js';
@@ -0,0 +1,2 @@
1
+ export * from './count.defs.js';
2
+ export * as $defs from './count.defs.js';
@@ -0,0 +1,48 @@
1
+ import { l } from '@atproto/lex';
2
+ declare const $nsid = "com.atiproto.repo.tip.count";
3
+ export { $nsid };
4
+ /** Count active (completed) tips. If recordUri is provided, counts tips for that record. If subject is provided, counts tips received by that DID. If neither is provided, counts tips sent by the authenticated user. Optionally filtered by a start/end datetime window. When the authenticated user is the subject/owner of the target, the response also includes the sum of amounts. */
5
+ declare const main: l.Query<"com.atiproto.repo.tip.count", l.ParamsSchema<{
6
+ readonly recordUri: l.OptionalSchema<l.StringSchema<{
7
+ readonly format: "at-uri";
8
+ }>>;
9
+ readonly subject: l.OptionalSchema<l.StringSchema<{
10
+ readonly format: "did";
11
+ }>>;
12
+ readonly startDate: l.OptionalSchema<l.StringSchema<{
13
+ readonly format: "datetime";
14
+ }>>;
15
+ readonly endDate: l.OptionalSchema<l.StringSchema<{
16
+ readonly format: "datetime";
17
+ }>>;
18
+ }>, l.Payload<"application/json", l.ObjectSchema<{
19
+ count: l.IntegerSchema;
20
+ amount: l.OptionalSchema<l.IntegerSchema>;
21
+ currency: l.OptionalSchema<l.StringSchema<{
22
+ readonly maxLength: 3;
23
+ }>>;
24
+ }>>, undefined>;
25
+ export { main };
26
+ export type $Params = l.InferMethodParams<typeof main>;
27
+ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
28
+ export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
29
+ export declare const $lxm: "com.atiproto.repo.tip.count", $params: l.ParamsSchema<{
30
+ readonly recordUri: l.OptionalSchema<l.StringSchema<{
31
+ readonly format: "at-uri";
32
+ }>>;
33
+ readonly subject: l.OptionalSchema<l.StringSchema<{
34
+ readonly format: "did";
35
+ }>>;
36
+ readonly startDate: l.OptionalSchema<l.StringSchema<{
37
+ readonly format: "datetime";
38
+ }>>;
39
+ readonly endDate: l.OptionalSchema<l.StringSchema<{
40
+ readonly format: "datetime";
41
+ }>>;
42
+ }>, $output: l.Payload<"application/json", l.ObjectSchema<{
43
+ count: l.IntegerSchema;
44
+ amount: l.OptionalSchema<l.IntegerSchema>;
45
+ currency: l.OptionalSchema<l.StringSchema<{
46
+ readonly maxLength: 3;
47
+ }>>;
48
+ }>>;
@@ -1,2 +1 @@
1
- export * as search from './tip/search.js';
2
- export * as validate from './tip/validate.js';
1
+ export * as count from './tip/count.js';
@@ -245,10 +245,14 @@ 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
  */
251
- subject: l.DidString;
255
+ subject?: l.DidString;
252
256
  /**
253
257
  * Subscription amount in cents (0 for free subscriptions)
254
258
  */