@atiproto/lexicons 0.8.0 → 1.0.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 (95) hide show
  1. package/dist/index.js +2723 -2424
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2723 -2424
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/lexicons/com/atiproto/authEnhanced.defs.d.ts +1 -1
  6. package/dist/lexicons/com/atiproto/authGeneral.defs.d.ts +1 -1
  7. package/dist/lexicons/com/atiproto/cart.defs.d.ts +5 -5
  8. package/dist/lexicons/com/atiproto/item.d.ts +2 -0
  9. package/dist/lexicons/com/atiproto/{tip.defs.d.ts → item.defs.d.ts} +36 -36
  10. package/dist/lexicons/com/atiproto/{account → payment}/cart/clone.defs.d.ts +7 -7
  11. package/dist/lexicons/com/atiproto/{account → payment}/cart/create.defs.d.ts +3 -3
  12. package/dist/lexicons/com/atiproto/{account → payment}/cart/get.defs.d.ts +23 -11
  13. package/dist/lexicons/com/atiproto/{account → payment}/cart/list.defs.d.ts +12 -6
  14. package/dist/lexicons/com/atiproto/{account → payment}/cart/put.defs.d.ts +3 -3
  15. package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/create.defs.d.ts +9 -9
  16. package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/get.defs.d.ts +7 -7
  17. package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/list.defs.d.ts +7 -7
  18. package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/put.defs.d.ts +7 -7
  19. package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/validate.defs.d.ts +6 -6
  20. package/dist/lexicons/com/atiproto/payment/item.d.ts +5 -0
  21. package/dist/lexicons/com/atiproto/{feed → payment}/list.defs.d.ts +7 -7
  22. package/dist/lexicons/com/atiproto/{feed → payment}/subscription/cancel.defs.d.ts +3 -3
  23. package/dist/lexicons/com/atiproto/{feed → payment}/subscription/create.defs.d.ts +3 -3
  24. package/dist/lexicons/com/atiproto/{feed → payment}/subscription/get.defs.d.ts +3 -3
  25. package/dist/lexicons/com/atiproto/{feed → payment}/subscription/list.defs.d.ts +3 -3
  26. package/dist/lexicons/com/atiproto/{feed → payment}/subscription/put.defs.d.ts +3 -3
  27. package/dist/lexicons/com/atiproto/{feed → payment}/subscription/validate.defs.d.ts +3 -3
  28. package/dist/lexicons/com/atiproto/payment.d.ts +4 -0
  29. package/dist/lexicons/com/atiproto/profile.defs.d.ts +14 -14
  30. package/dist/lexicons/com/atiproto/recipient/payment/cart/get.defs.d.ts +53 -0
  31. package/dist/lexicons/com/atiproto/recipient/payment/cart/list.defs.d.ts +54 -0
  32. package/dist/lexicons/com/atiproto/recipient/payment/cart.d.ts +2 -0
  33. package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/get.defs.d.ts +7 -7
  34. package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/list.defs.d.ts +7 -7
  35. package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/validate.defs.d.ts +6 -6
  36. package/dist/lexicons/com/atiproto/recipient/payment/item.d.ts +3 -0
  37. package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/get.defs.d.ts +4 -4
  38. package/dist/lexicons/com/atiproto/recipient/payment/subscription/list.d.ts +2 -0
  39. package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/list.defs.d.ts +4 -4
  40. package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/validate.defs.d.ts +3 -3
  41. package/dist/lexicons/com/atiproto/recipient/payment.d.ts +3 -0
  42. package/dist/lexicons/com/atiproto/recipient/profile/get.d.ts +2 -0
  43. package/dist/lexicons/com/atiproto/{account → recipient}/profile/get.defs.d.ts +3 -3
  44. package/dist/lexicons/com/atiproto/{account → recipient}/profile/put.defs.d.ts +5 -5
  45. package/dist/lexicons/com/atiproto/recipient.d.ts +2 -0
  46. package/dist/lexicons/com/atiproto/repo/{tip → item}/count.defs.d.ts +4 -4
  47. package/dist/lexicons/com/atiproto/repo/item.d.ts +1 -0
  48. package/dist/lexicons/com/atiproto/repo.d.ts +1 -1
  49. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +4 -0
  50. package/dist/lexicons/com/atiproto.d.ts +3 -3
  51. package/package.json +1 -1
  52. package/dist/lexicons/com/atiproto/account/tip.d.ts +0 -3
  53. package/dist/lexicons/com/atiproto/account.d.ts +0 -4
  54. package/dist/lexicons/com/atiproto/feed/tip.d.ts +0 -5
  55. package/dist/lexicons/com/atiproto/feed.d.ts +0 -3
  56. package/dist/lexicons/com/atiproto/repo/subscription/search.d.ts +0 -2
  57. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +0 -48
  58. package/dist/lexicons/com/atiproto/repo/subscription/validate.d.ts +0 -2
  59. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +0 -50
  60. package/dist/lexicons/com/atiproto/repo/tip/search.d.ts +0 -2
  61. package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +0 -48
  62. package/dist/lexicons/com/atiproto/repo/tip/validate.d.ts +0 -2
  63. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +0 -56
  64. package/dist/lexicons/com/atiproto/repo/tip.d.ts +0 -1
  65. package/dist/lexicons/com/atiproto/tip.d.ts +0 -2
  66. /package/dist/lexicons/com/atiproto/{account → payment}/cart/clone.d.ts +0 -0
  67. /package/dist/lexicons/com/atiproto/{account → payment}/cart/create.d.ts +0 -0
  68. /package/dist/lexicons/com/atiproto/{account → payment}/cart/get.d.ts +0 -0
  69. /package/dist/lexicons/com/atiproto/{account → payment}/cart/list.d.ts +0 -0
  70. /package/dist/lexicons/com/atiproto/{account → payment}/cart/put.d.ts +0 -0
  71. /package/dist/lexicons/com/atiproto/{account → payment}/cart.d.ts +0 -0
  72. /package/dist/lexicons/com/atiproto/{feed/subscription → payment/item}/create.d.ts +0 -0
  73. /package/dist/lexicons/com/atiproto/{account/profile → payment/item}/get.d.ts +0 -0
  74. /package/dist/lexicons/com/atiproto/{account/subscription → payment/item}/list.d.ts +0 -0
  75. /package/dist/lexicons/com/atiproto/{account/profile → payment/item}/put.d.ts +0 -0
  76. /package/dist/lexicons/com/atiproto/{account/subscription → payment/item}/validate.d.ts +0 -0
  77. /package/dist/lexicons/com/atiproto/{account/tip → payment}/list.d.ts +0 -0
  78. /package/dist/lexicons/com/atiproto/{feed → payment}/subscription/cancel.d.ts +0 -0
  79. /package/dist/lexicons/com/atiproto/{feed/tip → payment/subscription}/create.d.ts +0 -0
  80. /package/dist/lexicons/com/atiproto/{account → payment}/subscription/get.d.ts +0 -0
  81. /package/dist/lexicons/com/atiproto/{feed → payment/subscription}/list.d.ts +0 -0
  82. /package/dist/lexicons/com/atiproto/{feed → payment}/subscription/put.d.ts +0 -0
  83. /package/dist/lexicons/com/atiproto/{account/tip → payment/subscription}/validate.d.ts +0 -0
  84. /package/dist/lexicons/com/atiproto/{feed → payment}/subscription.d.ts +0 -0
  85. /package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/cart}/get.d.ts +0 -0
  86. /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/cart}/list.d.ts +0 -0
  87. /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/item}/get.d.ts +0 -0
  88. /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/item}/list.d.ts +0 -0
  89. /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/item}/validate.d.ts +0 -0
  90. /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/subscription}/get.d.ts +0 -0
  91. /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/subscription}/validate.d.ts +0 -0
  92. /package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription.d.ts +0 -0
  93. /package/dist/lexicons/com/atiproto/{feed/tip → recipient/profile}/put.d.ts +0 -0
  94. /package/dist/lexicons/com/atiproto/{account → recipient}/profile.d.ts +0 -0
  95. /package/dist/lexicons/com/atiproto/repo/{tip → item}/count.d.ts +0 -0
@@ -1,9 +1,9 @@
1
1
  import { l } from '@atproto/lex';
2
- import * as AtiprotoSubscription from '../../subscription.defs.js';
3
- declare const $nsid = "com.atiproto.account.subscription.list";
2
+ import * as AtiprotoSubscription from '../../../subscription.defs.js';
3
+ declare const $nsid = "com.atiproto.recipient.payment.subscription.list";
4
4
  export { $nsid };
5
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<{
6
+ declare const main: l.Query<"com.atiproto.recipient.payment.subscription.list", l.ParamsSchema<{
7
7
  readonly cursor: l.OptionalSchema<l.StringSchema<{
8
8
  readonly maxLength: 512;
9
9
  }>>;
@@ -18,7 +18,7 @@ export { main };
18
18
  export type $Params = l.InferMethodParams<typeof main>;
19
19
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
20
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<{
21
+ export declare const $lxm: "com.atiproto.recipient.payment.subscription.list", $params: l.ParamsSchema<{
22
22
  readonly cursor: l.OptionalSchema<l.StringSchema<{
23
23
  readonly maxLength: 512;
24
24
  }>>;
@@ -1,8 +1,8 @@
1
1
  import { l } from '@atproto/lex';
2
- declare const $nsid = "com.atiproto.account.subscription.validate";
2
+ declare const $nsid = "com.atiproto.recipient.payment.subscription.validate";
3
3
  export { $nsid };
4
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<{
5
+ declare const main: l.Query<"com.atiproto.recipient.payment.subscription.validate", l.ParamsSchema<{
6
6
  readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
7
7
  readonly format: "at-uri";
8
8
  }>>;
@@ -24,7 +24,7 @@ export { main };
24
24
  export type $Params = l.InferMethodParams<typeof main>;
25
25
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
26
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<{
27
+ export declare const $lxm: "com.atiproto.recipient.payment.subscription.validate", $params: l.ParamsSchema<{
28
28
  readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
29
29
  readonly format: "at-uri";
30
30
  }>>;
@@ -0,0 +1,3 @@
1
+ export * as cart from './payment/cart.js';
2
+ export * as item from './payment/item.js';
3
+ export * as subscription from './payment/subscription.js';
@@ -0,0 +1,2 @@
1
+ export * from './get.defs.js';
2
+ export * as $defs from './get.defs.js';
@@ -1,9 +1,9 @@
1
1
  import { l } from '@atproto/lex';
2
2
  import * as AtiprotoProfile from '../../profile.defs.js';
3
- declare const $nsid = "com.atiproto.account.profile.get";
3
+ declare const $nsid = "com.atiproto.recipient.profile.get";
4
4
  export { $nsid };
5
5
  /** Get the authenticated user's profile settings. Returns defaults if no profile exists. */
6
- declare const main: l.Query<"com.atiproto.account.profile.get", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
6
+ declare const main: l.Query<"com.atiproto.recipient.profile.get", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
7
  uri: l.OptionalSchema<l.StringSchema<{
8
8
  readonly format: "at-uri";
9
9
  }>>;
@@ -18,7 +18,7 @@ export { main };
18
18
  export type $Params = l.InferMethodParams<typeof main>;
19
19
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
20
20
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
21
- export declare const $lxm: "com.atiproto.account.profile.get", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
21
+ export declare const $lxm: "com.atiproto.recipient.profile.get", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
22
22
  uri: l.OptionalSchema<l.StringSchema<{
23
23
  readonly format: "at-uri";
24
24
  }>>;
@@ -1,11 +1,11 @@
1
1
  import { l } from '@atproto/lex';
2
2
  import * as AtiprotoActions from '../../actions.defs.js';
3
3
  import * as AtiprotoProfile from '../../profile.defs.js';
4
- declare const $nsid = "com.atiproto.account.profile.put";
4
+ declare const $nsid = "com.atiproto.recipient.profile.put";
5
5
  export { $nsid };
6
6
  /** Create or update the authenticated user's profile settings */
7
- declare const main: l.Procedure<"com.atiproto.account.profile.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
8
- acceptsTips: l.OptionalSchema<l.BooleanSchema>;
7
+ declare const main: l.Procedure<"com.atiproto.recipient.profile.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
8
+ acceptsItems: l.OptionalSchema<l.BooleanSchema>;
9
9
  acceptsSubscriptions: l.OptionalSchema<l.BooleanSchema>;
10
10
  disableReceiptNotifications: l.OptionalSchema<l.BooleanSchema>;
11
11
  workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
@@ -27,8 +27,8 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
27
27
  export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
28
28
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
29
29
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
30
- export declare const $lxm: "com.atiproto.account.profile.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
31
- acceptsTips: l.OptionalSchema<l.BooleanSchema>;
30
+ export declare const $lxm: "com.atiproto.recipient.profile.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
31
+ acceptsItems: l.OptionalSchema<l.BooleanSchema>;
32
32
  acceptsSubscriptions: l.OptionalSchema<l.BooleanSchema>;
33
33
  disableReceiptNotifications: l.OptionalSchema<l.BooleanSchema>;
34
34
  workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
@@ -0,0 +1,2 @@
1
+ export * as payment from './recipient/payment.js';
2
+ export * as profile from './recipient/profile.js';
@@ -1,8 +1,8 @@
1
1
  import { l } from '@atproto/lex';
2
- declare const $nsid = "com.atiproto.repo.tip.count";
2
+ declare const $nsid = "com.atiproto.repo.item.count";
3
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<{
4
+ /** Count active (completed) items. If recordUri is provided, counts items for that record. If subject is provided, counts items received by that DID. If neither is provided, counts items 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.item.count", l.ParamsSchema<{
6
6
  readonly recordUri: l.OptionalSchema<l.StringSchema<{
7
7
  readonly format: "at-uri";
8
8
  }>>;
@@ -26,7 +26,7 @@ export { main };
26
26
  export type $Params = l.InferMethodParams<typeof main>;
27
27
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
28
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<{
29
+ export declare const $lxm: "com.atiproto.repo.item.count", $params: l.ParamsSchema<{
30
30
  readonly recordUri: l.OptionalSchema<l.StringSchema<{
31
31
  readonly format: "at-uri";
32
32
  }>>;
@@ -0,0 +1 @@
1
+ export * as count from './item/count.js';
@@ -1,3 +1,3 @@
1
+ export * as item from './repo/item.js';
1
2
  export * as profile from './repo/profile.js';
2
3
  export * as subscription from './repo/subscription.js';
3
- export * as tip from './repo/tip.js';
@@ -273,6 +273,10 @@ type View = {
273
273
  * First billing period, can be used to determine recurrence
274
274
  */
275
275
  billingStartDate: l.DatetimeString;
276
+ /**
277
+ * Next scheduled renewal/billing date. Server-derived from the billing schedule; not stored in PDS. Omitted when not applicable (e.g. cancelled or unauthenticated views).
278
+ */
279
+ renewalDate?: l.DatetimeString;
276
280
  /**
277
281
  * Cancellation timestamp
278
282
  */
@@ -1,10 +1,10 @@
1
- export * as account from './atiproto/account.js';
2
1
  export * as actions from './atiproto/actions.js';
3
2
  export * as authEnhanced from './atiproto/authEnhanced.js';
4
3
  export * as authGeneral from './atiproto/authGeneral.js';
5
4
  export * as cart from './atiproto/cart.js';
6
- export * as feed from './atiproto/feed.js';
5
+ export * as item from './atiproto/item.js';
6
+ export * as payment from './atiproto/payment.js';
7
7
  export * as profile from './atiproto/profile.js';
8
+ export * as recipient from './atiproto/recipient.js';
8
9
  export * as repo from './atiproto/repo.js';
9
10
  export * as subscription from './atiproto/subscription.js';
10
- export * as tip from './atiproto/tip.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atiproto/lexicons",
3
- "version": "0.8.0",
3
+ "version": "1.0.0",
4
4
  "description": "ATProto lexicon types and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,3 +0,0 @@
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,4 +0,0 @@
1
- export * as cart from './account/cart.js';
2
- export * as profile from './account/profile.js';
3
- export * as subscription from './account/subscription.js';
4
- export * as tip from './account/tip.js';
@@ -1,5 +0,0 @@
1
- export * as create from './tip/create.js';
2
- export * as 'get' from './tip/get.js';
3
- export * as list from './tip/list.js';
4
- export * as put from './tip/put.js';
5
- export * as validate from './tip/validate.js';
@@ -1,3 +0,0 @@
1
- export * as list from './feed/list.js';
2
- export * as subscription from './feed/subscription.js';
3
- export * as tip from './feed/tip.js';
@@ -1,2 +0,0 @@
1
- export * from './search.defs.js';
2
- export * as $defs from './search.defs.js';
@@ -1,48 +0,0 @@
1
- import { l } from '@atproto/lex';
2
- import * as AtiprotoSubscription from '../../subscription.defs.js';
3
- declare const $nsid = "com.atiproto.repo.subscription.search";
4
- export { $nsid };
5
- /** Search for subscriptions to a user (subscriptions where subject matches the given DID) */
6
- declare const main: l.Query<"com.atiproto.repo.subscription.search", l.ParamsSchema<{
7
- readonly subject: l.StringSchema<{
8
- readonly format: "did";
9
- }>;
10
- readonly cursor: l.OptionalSchema<l.StringSchema<{
11
- readonly maxLength: 512;
12
- }>>;
13
- readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
14
- }>, l.Payload<"application/json", l.ObjectSchema<{
15
- subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
16
- cursor: l.OptionalSchema<l.StringSchema<{
17
- readonly maxLength: 512;
18
- }>>;
19
- }>>, undefined>;
20
- export { main };
21
- export type $Params = l.InferMethodParams<typeof main>;
22
- export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
23
- export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
24
- export declare const $lxm: "com.atiproto.repo.subscription.search", $params: l.ParamsSchema<{
25
- readonly subject: l.StringSchema<{
26
- readonly format: "did";
27
- }>;
28
- readonly cursor: l.OptionalSchema<l.StringSchema<{
29
- readonly maxLength: 512;
30
- }>>;
31
- readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
32
- }>, $output: l.Payload<"application/json", l.ObjectSchema<{
33
- subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
34
- cursor: l.OptionalSchema<l.StringSchema<{
35
- readonly maxLength: 512;
36
- }>>;
37
- }>>;
38
- type SubscriptionResponse = {
39
- $type?: 'com.atiproto.repo.subscription.search#subscriptionResponse';
40
- /**
41
- * AT-URI of the subscription record
42
- */
43
- uri: l.AtUriString;
44
- record: AtiprotoSubscription.View;
45
- };
46
- export type { SubscriptionResponse };
47
- declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.repo.subscription.search#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
48
- export { subscriptionResponse };
@@ -1,2 +0,0 @@
1
- export * from './validate.defs.js';
2
- export * as $defs from './validate.defs.js';
@@ -1,50 +0,0 @@
1
- import { l } from '@atproto/lex';
2
- declare const $nsid = "com.atiproto.repo.subscription.validate";
3
- export { $nsid };
4
- /** Validate that a sender 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.repo.subscription.validate", l.ParamsSchema<{
6
- readonly sender: l.StringSchema<{
7
- readonly format: "did";
8
- }>;
9
- readonly subscriptionUri: 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.repo.subscription.validate", $params: l.ParamsSchema<{
31
- readonly sender: l.StringSchema<{
32
- readonly format: "did";
33
- }>;
34
- readonly subscriptionUri: 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
- }>>;
@@ -1,2 +0,0 @@
1
- export * from './search.defs.js';
2
- export * as $defs from './search.defs.js';
@@ -1,48 +0,0 @@
1
- import { l } from '@atproto/lex';
2
- import * as AtiprotoTip from '../../tip.defs.js';
3
- declare const $nsid = "com.atiproto.repo.tip.search";
4
- export { $nsid };
5
- /** Search for tips sent to a user (tips where subject matches the given DID) */
6
- declare const main: l.Query<"com.atiproto.repo.tip.search", l.ParamsSchema<{
7
- readonly subject: l.StringSchema<{
8
- readonly format: "did";
9
- }>;
10
- readonly cursor: l.OptionalSchema<l.StringSchema<{
11
- readonly maxLength: 512;
12
- }>>;
13
- readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
14
- }>, l.Payload<"application/json", l.ObjectSchema<{
15
- tips: l.ArraySchema<l.RefSchema<l.Validator<TipResponse, TipResponse>>>;
16
- cursor: l.OptionalSchema<l.StringSchema<{
17
- readonly maxLength: 512;
18
- }>>;
19
- }>>, undefined>;
20
- export { main };
21
- export type $Params = l.InferMethodParams<typeof main>;
22
- export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
23
- export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
24
- export declare const $lxm: "com.atiproto.repo.tip.search", $params: l.ParamsSchema<{
25
- readonly subject: l.StringSchema<{
26
- readonly format: "did";
27
- }>;
28
- readonly cursor: l.OptionalSchema<l.StringSchema<{
29
- readonly maxLength: 512;
30
- }>>;
31
- readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
32
- }>, $output: l.Payload<"application/json", l.ObjectSchema<{
33
- tips: l.ArraySchema<l.RefSchema<l.Validator<TipResponse, TipResponse>>>;
34
- cursor: l.OptionalSchema<l.StringSchema<{
35
- readonly maxLength: 512;
36
- }>>;
37
- }>>;
38
- type TipResponse = {
39
- $type?: 'com.atiproto.repo.tip.search#tipResponse';
40
- /**
41
- * AT-URI of the tip record
42
- */
43
- uri: l.AtUriString;
44
- record: AtiprotoTip.View;
45
- };
46
- export type { TipResponse };
47
- declare const tipResponse: l.TypedObjectSchema<"com.atiproto.repo.tip.search#tipResponse", l.Validator<TipResponse, TipResponse>>;
48
- export { tipResponse };
@@ -1,2 +0,0 @@
1
- export * from './validate.defs.js';
2
- export * as $defs from './validate.defs.js';
@@ -1,56 +0,0 @@
1
- import { l } from '@atproto/lex';
2
- declare const $nsid = "com.atiproto.repo.tip.validate";
3
- export { $nsid };
4
- /** Validate that a 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.repo.tip.validate", l.ParamsSchema<{
6
- readonly sender: l.StringSchema<{
7
- readonly format: "did";
8
- }>;
9
- readonly tipUri: l.OptionalSchema<l.StringSchema<{
10
- readonly format: "at-uri";
11
- }>>;
12
- readonly recordUri: l.OptionalSchema<l.StringSchema<{
13
- readonly format: "at-uri";
14
- }>>;
15
- readonly subject: l.OptionalSchema<l.StringSchema<{
16
- readonly format: "did";
17
- }>>;
18
- readonly amount: l.OptionalSchema<l.IntegerSchema>;
19
- }>, l.Payload<"application/json", l.ObjectSchema<{
20
- valid: l.BooleanSchema;
21
- amount: l.OptionalSchema<l.IntegerSchema>;
22
- currency: l.OptionalSchema<l.StringSchema<{
23
- readonly maxLength: 3;
24
- }>>;
25
- reason: l.OptionalSchema<l.StringSchema<{
26
- readonly maxLength: 1024;
27
- }>>;
28
- }>>, undefined>;
29
- export { main };
30
- export type $Params = l.InferMethodParams<typeof main>;
31
- export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
32
- export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
33
- export declare const $lxm: "com.atiproto.repo.tip.validate", $params: l.ParamsSchema<{
34
- readonly sender: l.StringSchema<{
35
- readonly format: "did";
36
- }>;
37
- readonly tipUri: l.OptionalSchema<l.StringSchema<{
38
- readonly format: "at-uri";
39
- }>>;
40
- readonly recordUri: l.OptionalSchema<l.StringSchema<{
41
- readonly format: "at-uri";
42
- }>>;
43
- readonly subject: l.OptionalSchema<l.StringSchema<{
44
- readonly format: "did";
45
- }>>;
46
- readonly amount: l.OptionalSchema<l.IntegerSchema>;
47
- }>, $output: l.Payload<"application/json", l.ObjectSchema<{
48
- valid: l.BooleanSchema;
49
- amount: l.OptionalSchema<l.IntegerSchema>;
50
- currency: l.OptionalSchema<l.StringSchema<{
51
- readonly maxLength: 3;
52
- }>>;
53
- reason: l.OptionalSchema<l.StringSchema<{
54
- readonly maxLength: 1024;
55
- }>>;
56
- }>>;
@@ -1 +0,0 @@
1
- export * as count from './tip/count.js';
@@ -1,2 +0,0 @@
1
- export * from './tip.defs.js';
2
- export * as $defs from './tip.defs.js';