@atiproto/lexicons 0.2.0 → 0.4.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 (28) hide show
  1. package/dist/index.js +400 -98
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +400 -98
  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 +8 -4
  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 +7 -3
  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/cart.defs.d.ts +45 -12
  12. package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +6 -2
  13. package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +2 -2
  14. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +32 -16
  15. package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +2 -2
  16. package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +7 -3
  17. package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +18 -14
  18. package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +2 -2
  19. package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +8 -4
  20. package/dist/lexicons/com/atiproto/profile.defs.d.ts +28 -0
  21. package/dist/lexicons/com/atiproto/repo/profile/get.defs.d.ts +2 -2
  22. package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +13 -5
  23. package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +12 -4
  24. package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +13 -5
  25. package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +12 -4
  26. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +68 -24
  27. package/dist/lexicons/com/atiproto/tip.defs.d.ts +41 -1
  28. 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
  }>>;
@@ -4,12 +4,14 @@ declare const $nsid = "com.atiproto.account.cart.create";
4
4
  export { $nsid };
5
5
  /** Create a new empty cart */
6
6
  declare const main: l.Procedure<"com.atiproto.account.cart.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
- currency: l.StringSchema<{}>;
7
+ currency: l.StringSchema<{
8
+ readonly maxLength: 3;
9
+ }>;
8
10
  redirectUrl: l.OptionalSchema<l.StringSchema<{
9
11
  readonly format: "uri";
10
12
  }>>;
11
13
  }>>, l.Payload<"application/json", l.ObjectSchema<{
12
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
14
+ cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
13
15
  cartUri: l.StringSchema<{
14
16
  readonly format: "at-uri";
15
17
  }>;
@@ -24,12 +26,14 @@ export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B
24
26
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
25
27
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
26
28
  export declare const $lxm: "com.atiproto.account.cart.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
27
- currency: l.StringSchema<{}>;
29
+ currency: l.StringSchema<{
30
+ readonly maxLength: 3;
31
+ }>;
28
32
  redirectUrl: l.OptionalSchema<l.StringSchema<{
29
33
  readonly format: "uri";
30
34
  }>>;
31
35
  }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
32
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
36
+ cart: l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>;
33
37
  cartUri: l.StringSchema<{
34
38
  readonly format: "at-uri";
35
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
  }>>;
@@ -5,7 +5,9 @@ export { $nsid };
5
5
  /** List carts for the authenticated user */
6
6
  declare const main: l.Query<"com.atiproto.account.cart.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
7
  carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
8
- cursor: l.OptionalSchema<l.StringSchema<{}>>;
8
+ cursor: l.OptionalSchema<l.StringSchema<{
9
+ readonly maxLength: 512;
10
+ }>>;
9
11
  }>>, undefined>;
10
12
  export { main };
11
13
  export type $Params = l.InferMethodParams<typeof main>;
@@ -13,7 +15,9 @@ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
13
15
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
14
16
  export declare const $lxm: "com.atiproto.account.cart.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
15
17
  carts: l.ArraySchema<l.RefSchema<l.Validator<CartResponse, CartResponse>>>;
16
- cursor: l.OptionalSchema<l.StringSchema<{}>>;
18
+ cursor: l.OptionalSchema<l.StringSchema<{
19
+ readonly maxLength: 512;
20
+ }>>;
17
21
  }>>;
18
22
  type CartResponse = {
19
23
  $type?: 'com.atiproto.account.cart.list#cartResponse';
@@ -25,7 +29,7 @@ type CartResponse = {
25
29
  * CID of the cart record
26
30
  */
27
31
  cid: l.CidString;
28
- record: AtiprotoCart.Main;
32
+ record: AtiprotoCart.View;
29
33
  };
30
34
  export type { CartResponse };
31
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
  }>>;
@@ -14,9 +14,9 @@ type Main = {
14
14
  */
15
15
  total: number;
16
16
  /**
17
- * Cart status: open, completed, expired, abandoned
17
+ * Cart status
18
18
  */
19
- status: string;
19
+ status: 'open' | 'completed' | 'expired' | 'abandoned';
20
20
  /**
21
21
  * Creation timestamp
22
22
  */
@@ -41,7 +41,7 @@ export declare const $isTypeOf: <TValue extends {
41
41
  items: CartItem[];
42
42
  currency: string;
43
43
  total: number;
44
- status: string;
44
+ status: "open" | "completed" | "expired" | "abandoned";
45
45
  createdAt: l.DatetimeString;
46
46
  expiresAt: l.DatetimeString;
47
47
  completedAt?: l.DatetimeString | undefined;
@@ -51,7 +51,7 @@ export declare const $isTypeOf: <TValue extends {
51
51
  items: CartItem[];
52
52
  currency: string;
53
53
  total: number;
54
- status: string;
54
+ status: "open" | "completed" | "expired" | "abandoned";
55
55
  createdAt: l.DatetimeString;
56
56
  expiresAt: l.DatetimeString;
57
57
  completedAt?: l.DatetimeString | undefined;
@@ -62,7 +62,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
62
62
  items: CartItem[];
63
63
  currency: string;
64
64
  total: number;
65
- status: string;
65
+ status: "open" | "completed" | "expired" | "abandoned";
66
66
  createdAt: l.DatetimeString;
67
67
  expiresAt: l.DatetimeString;
68
68
  completedAt?: l.DatetimeString | undefined;
@@ -71,7 +71,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
71
71
  items: CartItem[];
72
72
  currency: string;
73
73
  total: number;
74
- status: string;
74
+ status: "open" | "completed" | "expired" | "abandoned";
75
75
  createdAt: l.DatetimeString;
76
76
  expiresAt: l.DatetimeString;
77
77
  completedAt?: l.DatetimeString | undefined;
@@ -80,7 +80,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
80
80
  items: CartItem[];
81
81
  currency: string;
82
82
  total: number;
83
- status: string;
83
+ status: "open" | "completed" | "expired" | "abandoned";
84
84
  createdAt: l.DatetimeString;
85
85
  expiresAt: l.DatetimeString;
86
86
  completedAt?: l.DatetimeString | undefined;
@@ -89,7 +89,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
89
89
  items: CartItem[];
90
90
  currency: string;
91
91
  total: number;
92
- status: string;
92
+ status: "open" | "completed" | "expired" | "abandoned";
93
93
  createdAt: l.DatetimeString;
94
94
  expiresAt: l.DatetimeString;
95
95
  completedAt?: l.DatetimeString | undefined;
@@ -98,7 +98,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
98
98
  items: CartItem[];
99
99
  currency: string;
100
100
  total: number;
101
- status: string;
101
+ status: "open" | "completed" | "expired" | "abandoned";
102
102
  createdAt: l.DatetimeString;
103
103
  expiresAt: l.DatetimeString;
104
104
  completedAt?: l.DatetimeString | undefined;
@@ -107,7 +107,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
107
107
  items: CartItem[];
108
108
  currency: string;
109
109
  total: number;
110
- status: string;
110
+ status: "open" | "completed" | "expired" | "abandoned";
111
111
  createdAt: l.DatetimeString;
112
112
  expiresAt: l.DatetimeString;
113
113
  completedAt?: l.DatetimeString | undefined;
@@ -116,7 +116,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
116
116
  items: CartItem[];
117
117
  currency: string;
118
118
  total: number;
119
- status: string;
119
+ status: "open" | "completed" | "expired" | "abandoned";
120
120
  createdAt: l.DatetimeString;
121
121
  expiresAt: l.DatetimeString;
122
122
  completedAt?: l.DatetimeString | undefined;
@@ -125,12 +125,45 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
125
125
  items: CartItem[];
126
126
  currency: string;
127
127
  total: number;
128
- status: string;
128
+ status: "open" | "completed" | "expired" | "abandoned";
129
129
  createdAt: l.DatetimeString;
130
130
  expiresAt: l.DatetimeString;
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
  /**
@@ -6,7 +6,9 @@ export { $nsid };
6
6
  /** List tips and subscriptions for the authenticated user. Always returns tips given by the user and subscriptions the user has created. */
7
7
  declare const main: l.Query<"com.atiproto.feed.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
8
8
  items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoTip.Main, AtiprotoTip.Main>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>], false>>;
9
- cursor: l.OptionalSchema<l.StringSchema<{}>>;
9
+ cursor: l.OptionalSchema<l.StringSchema<{
10
+ readonly maxLength: 512;
11
+ }>>;
10
12
  }>>, undefined>;
11
13
  export { main };
12
14
  export type $Params = l.InferMethodParams<typeof main>;
@@ -14,5 +16,7 @@ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
14
16
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
15
17
  export declare const $lxm: "com.atiproto.feed.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
16
18
  items: l.ArraySchema<l.TypedUnionSchema<readonly [l.TypedRefSchema<l.TypedObjectValidator<AtiprotoTip.Main, AtiprotoTip.Main>>, l.TypedRefSchema<l.TypedObjectValidator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>], false>>;
17
- cursor: l.OptionalSchema<l.StringSchema<{}>>;
19
+ cursor: l.OptionalSchema<l.StringSchema<{
20
+ readonly maxLength: 512;
21
+ }>>;
18
22
  }>>;
@@ -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
  }>;
@@ -9,20 +9,28 @@ declare const main: l.Procedure<"com.atiproto.feed.subscription.create", l.Param
9
9
  readonly format: "did";
10
10
  }>;
11
11
  amount: l.OptionalSchema<l.IntegerSchema>;
12
- currency: l.StringSchema<{}>;
13
- interval: l.StringSchema<{}>;
12
+ currency: l.StringSchema<{
13
+ readonly maxLength: 3;
14
+ }>;
15
+ interval: l.EnumSchema<"monthly" | "yearly">;
16
+ cartUri: l.OptionalSchema<l.StringSchema<{
17
+ readonly format: "at-uri";
18
+ }>>;
19
+ redirectUrl: l.OptionalSchema<l.StringSchema<{
20
+ readonly format: "uri";
21
+ }>>;
14
22
  }>>, l.Payload<"application/json", l.ObjectSchema<{
15
23
  subscriptionUri: l.StringSchema<{
16
24
  readonly format: "at-uri";
17
25
  }>;
18
- subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
19
- cartUri: l.StringSchema<{
26
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
27
+ cartUri: l.OptionalSchema<l.StringSchema<{
20
28
  readonly format: "at-uri";
21
- }>;
22
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
23
- checkoutUrl: l.StringSchema<{
29
+ }>>;
30
+ cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
31
+ checkoutUrl: l.OptionalSchema<l.StringSchema<{
24
32
  readonly format: "uri";
25
- }>;
33
+ }>>;
26
34
  }>>, undefined>;
27
35
  export { main };
28
36
  export type $Params = l.InferMethodParams<typeof main>;
@@ -35,18 +43,26 @@ export declare const $lxm: "com.atiproto.feed.subscription.create", $params: l.P
35
43
  readonly format: "did";
36
44
  }>;
37
45
  amount: l.OptionalSchema<l.IntegerSchema>;
38
- currency: l.StringSchema<{}>;
39
- interval: l.StringSchema<{}>;
46
+ currency: l.StringSchema<{
47
+ readonly maxLength: 3;
48
+ }>;
49
+ interval: l.EnumSchema<"monthly" | "yearly">;
50
+ cartUri: l.OptionalSchema<l.StringSchema<{
51
+ readonly format: "at-uri";
52
+ }>>;
53
+ redirectUrl: l.OptionalSchema<l.StringSchema<{
54
+ readonly format: "uri";
55
+ }>>;
40
56
  }>>, $output: l.Payload<"application/json", l.ObjectSchema<{
41
57
  subscriptionUri: l.StringSchema<{
42
58
  readonly format: "at-uri";
43
59
  }>;
44
- subscription: l.RefSchema<l.Validator<AtiprotoSubscription.Main, AtiprotoSubscription.Main>>;
45
- cartUri: l.StringSchema<{
60
+ subscription: l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>;
61
+ cartUri: l.OptionalSchema<l.StringSchema<{
46
62
  readonly format: "at-uri";
47
- }>;
48
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
49
- checkoutUrl: l.StringSchema<{
63
+ }>>;
64
+ cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
65
+ checkoutUrl: l.OptionalSchema<l.StringSchema<{
50
66
  readonly format: "uri";
51
- }>;
67
+ }>>;
52
68
  }>>;
@@ -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
  }>>;
@@ -5,7 +5,9 @@ export { $nsid };
5
5
  /** List subscriptions for the authenticated user */
6
6
  declare const main: l.Query<"com.atiproto.feed.subscription.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
7
  subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
8
- cursor: l.OptionalSchema<l.StringSchema<{}>>;
8
+ cursor: l.OptionalSchema<l.StringSchema<{
9
+ readonly maxLength: 512;
10
+ }>>;
9
11
  }>>, undefined>;
10
12
  export { main };
11
13
  export type $Params = l.InferMethodParams<typeof main>;
@@ -13,7 +15,9 @@ export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
13
15
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
14
16
  export declare const $lxm: "com.atiproto.feed.subscription.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
15
17
  subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
16
- cursor: l.OptionalSchema<l.StringSchema<{}>>;
18
+ cursor: l.OptionalSchema<l.StringSchema<{
19
+ readonly maxLength: 512;
20
+ }>>;
17
21
  }>>;
18
22
  type SubscriptionResponse = {
19
23
  $type?: 'com.atiproto.feed.subscription.list#subscriptionResponse';
@@ -21,7 +25,7 @@ type SubscriptionResponse = {
21
25
  * AT-URI of the subscription record
22
26
  */
23
27
  uri: l.AtUriString;
24
- record: AtiprotoSubscription.Main;
28
+ record: AtiprotoSubscription.View;
25
29
  };
26
30
  export type { SubscriptionResponse };
27
31
  declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.feed.subscription.list#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
@@ -12,7 +12,9 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
12
12
  readonly format: "at-uri";
13
13
  }>>;
14
14
  amount: l.IntegerSchema;
15
- currency: l.StringSchema<{}>;
15
+ currency: l.StringSchema<{
16
+ readonly maxLength: 3;
17
+ }>;
16
18
  cartUri: l.OptionalSchema<l.StringSchema<{
17
19
  readonly format: "at-uri";
18
20
  }>>;
@@ -27,14 +29,14 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
27
29
  tipUri: l.StringSchema<{
28
30
  readonly format: "at-uri";
29
31
  }>;
30
- tip: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
31
- cartUri: l.StringSchema<{
32
+ tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
33
+ cartUri: l.OptionalSchema<l.StringSchema<{
32
34
  readonly format: "at-uri";
33
- }>;
34
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
35
- checkoutUrl: l.StringSchema<{
35
+ }>>;
36
+ cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
37
+ checkoutUrl: l.OptionalSchema<l.StringSchema<{
36
38
  readonly format: "uri";
37
- }>;
39
+ }>>;
38
40
  }>>, undefined>;
39
41
  export { main };
40
42
  export type $Params = l.InferMethodParams<typeof main>;
@@ -50,7 +52,9 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
50
52
  readonly format: "at-uri";
51
53
  }>>;
52
54
  amount: l.IntegerSchema;
53
- currency: l.StringSchema<{}>;
55
+ currency: l.StringSchema<{
56
+ readonly maxLength: 3;
57
+ }>;
54
58
  cartUri: l.OptionalSchema<l.StringSchema<{
55
59
  readonly format: "at-uri";
56
60
  }>>;
@@ -65,12 +69,12 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
65
69
  tipUri: l.StringSchema<{
66
70
  readonly format: "at-uri";
67
71
  }>;
68
- tip: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
69
- cartUri: l.StringSchema<{
72
+ tip: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
73
+ cartUri: l.OptionalSchema<l.StringSchema<{
70
74
  readonly format: "at-uri";
71
- }>;
72
- cart: l.RefSchema<l.Validator<AtiprotoCart.Main, AtiprotoCart.Main>>;
73
- checkoutUrl: l.StringSchema<{
75
+ }>>;
76
+ cart: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoCart.View, AtiprotoCart.View>>>;
77
+ checkoutUrl: l.OptionalSchema<l.StringSchema<{
74
78
  readonly format: "uri";
75
- }>;
79
+ }>>;
76
80
  }>>;
@@ -14,7 +14,7 @@ declare const main: l.Query<"com.atiproto.feed.tip.get", l.ParamsSchema<{
14
14
  cid: l.StringSchema<{
15
15
  readonly format: "cid";
16
16
  }>;
17
- value: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
17
+ value: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.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.tip.get", $params: l.ParamsSchema<
31
31
  cid: l.StringSchema<{
32
32
  readonly format: "cid";
33
33
  }>;
34
- value: l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>;
34
+ value: l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>;
35
35
  }>>;
@@ -4,14 +4,18 @@ declare const $nsid = "com.atiproto.feed.tip.list";
4
4
  export { $nsid };
5
5
  /** List tips for the authenticated user */
6
6
  declare const main: l.Query<"com.atiproto.feed.tip.list", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
7
- records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
8
- cursor: l.OptionalSchema<l.StringSchema<{}>>;
7
+ records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
8
+ cursor: l.OptionalSchema<l.StringSchema<{
9
+ readonly maxLength: 512;
10
+ }>>;
9
11
  }>>, undefined>;
10
12
  export { main };
11
13
  export type $Params = l.InferMethodParams<typeof main>;
12
14
  export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
13
15
  export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
14
16
  export declare const $lxm: "com.atiproto.feed.tip.list", $params: l.ParamsSchema<{}>, $output: l.Payload<"application/json", l.ObjectSchema<{
15
- records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.Main, AtiprotoTip.Main>>>;
16
- cursor: l.OptionalSchema<l.StringSchema<{}>>;
17
+ records: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoTip.View, AtiprotoTip.View>>>;
18
+ cursor: l.OptionalSchema<l.StringSchema<{
19
+ readonly maxLength: 512;
20
+ }>>;
17
21
  }>>;
@@ -226,3 +226,31 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
226
226
  updatedAt?: l.DatetimeString | undefined;
227
227
  $type: "com.atiproto.profile";
228
228
  }>;
229
+ /** View of a user's profile settings for use in API responses */
230
+ type View = {
231
+ $type?: 'com.atiproto.profile#view';
232
+ /**
233
+ * Whether user accepts tips (default: true)
234
+ */
235
+ acceptsTips?: boolean;
236
+ /**
237
+ * Whether user accepts subscriptions (default: true)
238
+ */
239
+ acceptsSubscriptions?: boolean;
240
+ /**
241
+ * Opt out of payment receipt DMs (default: false)
242
+ */
243
+ disableReceiptNotifications?: boolean;
244
+ /**
245
+ * Creation timestamp
246
+ */
247
+ createdAt: l.DatetimeString;
248
+ /**
249
+ * Last update timestamp
250
+ */
251
+ updatedAt?: l.DatetimeString;
252
+ };
253
+ export type { View };
254
+ /** View of a user's profile settings for use in API responses */
255
+ declare const view: l.TypedObjectSchema<"com.atiproto.profile#view", l.Validator<View, View>>;
256
+ export { view };
@@ -11,7 +11,7 @@ declare const main: l.Query<"com.atiproto.repo.profile.get", l.ParamsSchema<{
11
11
  did: l.StringSchema<{
12
12
  readonly format: "did";
13
13
  }>;
14
- profile: l.RefSchema<l.Validator<AtiprotoProfile.Main, AtiprotoProfile.Main>>;
14
+ profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
15
15
  }>>, undefined>;
16
16
  export { main };
17
17
  export type $Params = l.InferMethodParams<typeof main>;
@@ -25,5 +25,5 @@ export declare const $lxm: "com.atiproto.repo.profile.get", $params: l.ParamsSch
25
25
  did: l.StringSchema<{
26
26
  readonly format: "did";
27
27
  }>;
28
- profile: l.RefSchema<l.Validator<AtiprotoProfile.Main, AtiprotoProfile.Main>>;
28
+ profile: l.RefSchema<l.Validator<AtiprotoProfile.View, AtiprotoProfile.View>>;
29
29
  }>>;