@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.
- package/dist/index.js +2723 -2424
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2723 -2424
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/authEnhanced.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/authGeneral.defs.d.ts +1 -1
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +5 -5
- package/dist/lexicons/com/atiproto/item.d.ts +2 -0
- package/dist/lexicons/com/atiproto/{tip.defs.d.ts → item.defs.d.ts} +36 -36
- package/dist/lexicons/com/atiproto/{account → payment}/cart/clone.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{account → payment}/cart/create.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{account → payment}/cart/get.defs.d.ts +23 -11
- package/dist/lexicons/com/atiproto/{account → payment}/cart/list.defs.d.ts +12 -6
- package/dist/lexicons/com/atiproto/{account → payment}/cart/put.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/create.defs.d.ts +9 -9
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/get.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/list.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/put.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{feed/tip → payment/item}/validate.defs.d.ts +6 -6
- package/dist/lexicons/com/atiproto/payment/item.d.ts +5 -0
- package/dist/lexicons/com/atiproto/{feed → payment}/list.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/cancel.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/create.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/get.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/list.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/put.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{feed → payment}/subscription/validate.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/payment.d.ts +4 -0
- package/dist/lexicons/com/atiproto/profile.defs.d.ts +14 -14
- package/dist/lexicons/com/atiproto/recipient/payment/cart/get.defs.d.ts +53 -0
- package/dist/lexicons/com/atiproto/recipient/payment/cart/list.defs.d.ts +54 -0
- package/dist/lexicons/com/atiproto/recipient/payment/cart.d.ts +2 -0
- package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/get.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/list.defs.d.ts +7 -7
- package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/item}/validate.defs.d.ts +6 -6
- package/dist/lexicons/com/atiproto/recipient/payment/item.d.ts +3 -0
- package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/get.defs.d.ts +4 -4
- package/dist/lexicons/com/atiproto/recipient/payment/subscription/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/list.defs.d.ts +4 -4
- package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription/validate.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/recipient/payment.d.ts +3 -0
- package/dist/lexicons/com/atiproto/recipient/profile/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/{account → recipient}/profile/get.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/{account → recipient}/profile/put.defs.d.ts +5 -5
- package/dist/lexicons/com/atiproto/recipient.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/{tip → item}/count.defs.d.ts +4 -4
- package/dist/lexicons/com/atiproto/repo/item.d.ts +1 -0
- package/dist/lexicons/com/atiproto/repo.d.ts +1 -1
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +4 -0
- package/dist/lexicons/com/atiproto.d.ts +3 -3
- package/package.json +1 -1
- package/dist/lexicons/com/atiproto/account/tip.d.ts +0 -3
- package/dist/lexicons/com/atiproto/account.d.ts +0 -4
- package/dist/lexicons/com/atiproto/feed/tip.d.ts +0 -5
- package/dist/lexicons/com/atiproto/feed.d.ts +0 -3
- package/dist/lexicons/com/atiproto/repo/subscription/search.d.ts +0 -2
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +0 -48
- package/dist/lexicons/com/atiproto/repo/subscription/validate.d.ts +0 -2
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +0 -50
- package/dist/lexicons/com/atiproto/repo/tip/search.d.ts +0 -2
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +0 -48
- package/dist/lexicons/com/atiproto/repo/tip/validate.d.ts +0 -2
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +0 -56
- package/dist/lexicons/com/atiproto/repo/tip.d.ts +0 -1
- package/dist/lexicons/com/atiproto/tip.d.ts +0 -2
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/clone.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/create.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart/put.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/cart.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/subscription → payment/item}/create.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/profile → payment/item}/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/subscription → payment/item}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/profile → payment/item}/put.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/subscription → payment/item}/validate.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/tip → payment}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed → payment}/subscription/cancel.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → payment/subscription}/create.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → payment}/subscription/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed → payment/subscription}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed → payment}/subscription/put.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/tip → payment/subscription}/validate.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed → payment}/subscription.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account/tip → recipient/payment/cart}/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/cart}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/item}/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/item}/list.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/subscription → recipient/payment/item}/validate.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/subscription}/get.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → recipient/payment/subscription}/validate.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → recipient/payment}/subscription.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{feed/tip → recipient/profile}/put.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/{account → recipient}/profile.d.ts +0 -0
- /package/dist/lexicons/com/atiproto/repo/{tip → item}/count.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
declare const $nsid = "com.atiproto.authEnhanced";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
declare const main: l.PermissionSet<"com.atiproto.authEnhanced", readonly [l.Permission<"repo", Record<string, string | number | boolean |
|
|
4
|
+
declare const main: l.PermissionSet<"com.atiproto.authEnhanced", readonly [l.Permission<"repo", Record<string, string | number | boolean | boolean[] | number[] | string[] | undefined>>, l.Permission<"rpc", Record<string, string | number | boolean | boolean[] | number[] | string[] | undefined>>]>;
|
|
5
5
|
export { main };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
declare const $nsid = "com.atiproto.authGeneral";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
declare const main: l.PermissionSet<"com.atiproto.authGeneral", readonly [l.Permission<"repo", Record<string, string | number | boolean |
|
|
4
|
+
declare const main: l.PermissionSet<"com.atiproto.authGeneral", readonly [l.Permission<"repo", Record<string, string | number | boolean | boolean[] | number[] | string[] | undefined>>, l.Permission<"rpc", Record<string, string | number | boolean | boolean[] | number[] | string[] | undefined>>]>;
|
|
5
5
|
export { main };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
declare const $nsid = "com.atiproto.cart";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
/** A record representing a shopping cart for
|
|
4
|
+
/** A record representing a shopping cart for items/subscriptions */
|
|
5
5
|
type Main = {
|
|
6
6
|
$type: 'com.atiproto.cart';
|
|
7
7
|
items: CartItem[];
|
|
@@ -31,7 +31,7 @@ type Main = {
|
|
|
31
31
|
completedAt?: l.DatetimeString;
|
|
32
32
|
};
|
|
33
33
|
export type { Main };
|
|
34
|
-
/** A record representing a shopping cart for
|
|
34
|
+
/** A record representing a shopping cart for items/subscriptions */
|
|
35
35
|
declare const main: l.RecordSchema<"any", "com.atiproto.cart", l.Validator<Omit<Main, "$type">, Omit<Main, "$type">>>;
|
|
36
36
|
export { main };
|
|
37
37
|
export declare const $isTypeOf: <TValue extends {
|
|
@@ -171,11 +171,11 @@ export { view };
|
|
|
171
171
|
type CartItem = {
|
|
172
172
|
$type?: 'com.atiproto.cart#cartItem';
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* Type of cart item: item or subscription
|
|
175
175
|
*/
|
|
176
|
-
type: 'com.atiproto.
|
|
176
|
+
type: 'com.atiproto.item' | 'com.atiproto.subscription';
|
|
177
177
|
/**
|
|
178
|
-
* AT-URI for
|
|
178
|
+
* AT-URI for item on record
|
|
179
179
|
*/
|
|
180
180
|
recordUri: l.AtUriString;
|
|
181
181
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
declare const $nsid = "com.atiproto.item";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
/** A record representing a
|
|
4
|
+
/** A record representing a item given by one user to another */
|
|
5
5
|
type Main = {
|
|
6
|
-
$type: 'com.atiproto.
|
|
6
|
+
$type: 'com.atiproto.item';
|
|
7
7
|
/**
|
|
8
|
-
* DID of the user receiving the
|
|
8
|
+
* DID of the user receiving the item
|
|
9
9
|
*/
|
|
10
10
|
subject?: l.DidString;
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ type Main = {
|
|
|
13
13
|
*/
|
|
14
14
|
recordUri?: l.AtUriString;
|
|
15
15
|
/**
|
|
16
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
16
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
17
17
|
*/
|
|
18
18
|
amount: number;
|
|
19
19
|
/**
|
|
@@ -38,12 +38,12 @@ type Main = {
|
|
|
38
38
|
completedAt?: l.DatetimeString;
|
|
39
39
|
};
|
|
40
40
|
export type { Main };
|
|
41
|
-
/** A record representing a
|
|
42
|
-
declare const main: l.RecordSchema<"any", "com.atiproto.
|
|
41
|
+
/** A record representing a item given by one user to another */
|
|
42
|
+
declare const main: l.RecordSchema<"any", "com.atiproto.item", l.Validator<Omit<Main, "$type">, Omit<Main, "$type">>>;
|
|
43
43
|
export { main };
|
|
44
44
|
export declare const $isTypeOf: <TValue extends {
|
|
45
45
|
$type?: unknown;
|
|
46
|
-
}>(value: TValue) => value is l.TypedRecord<"com.atiproto.
|
|
46
|
+
}>(value: TValue) => value is l.TypedRecord<"com.atiproto.item", TValue>, $build: {
|
|
47
47
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
48
48
|
message?: string
|
|
49
49
|
/**
|
|
@@ -52,7 +52,7 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
52
52
|
| undefined;
|
|
53
53
|
recordUri?: l.AtUriString
|
|
54
54
|
/**
|
|
55
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
55
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
56
56
|
*/
|
|
57
57
|
| undefined;
|
|
58
58
|
currency: string;
|
|
@@ -65,7 +65,7 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
65
65
|
*/
|
|
66
66
|
| undefined;
|
|
67
67
|
amount: number;
|
|
68
|
-
$type: "com.atiproto.
|
|
68
|
+
$type: "com.atiproto.item";
|
|
69
69
|
};
|
|
70
70
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
71
71
|
message?: string
|
|
@@ -75,7 +75,7 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
75
75
|
| undefined;
|
|
76
76
|
recordUri?: l.AtUriString
|
|
77
77
|
/**
|
|
78
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
78
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
79
79
|
*/
|
|
80
80
|
| undefined;
|
|
81
81
|
currency: string;
|
|
@@ -88,9 +88,9 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
88
88
|
*/
|
|
89
89
|
| undefined;
|
|
90
90
|
amount: number;
|
|
91
|
-
$type: "com.atiproto.
|
|
91
|
+
$type: "com.atiproto.item";
|
|
92
92
|
};
|
|
93
|
-
}, $type: "com.atiproto.
|
|
93
|
+
}, $type: "com.atiproto.item";
|
|
94
94
|
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
95
95
|
message?: string
|
|
96
96
|
/**
|
|
@@ -99,7 +99,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
99
99
|
| undefined;
|
|
100
100
|
recordUri?: l.AtUriString
|
|
101
101
|
/**
|
|
102
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
102
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
103
103
|
*/
|
|
104
104
|
| undefined;
|
|
105
105
|
currency: string;
|
|
@@ -112,7 +112,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
112
112
|
*/
|
|
113
113
|
| undefined;
|
|
114
114
|
amount: number;
|
|
115
|
-
$type: "com.atiproto.
|
|
115
|
+
$type: "com.atiproto.item";
|
|
116
116
|
}, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
117
117
|
message?: string
|
|
118
118
|
/**
|
|
@@ -121,7 +121,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
121
121
|
| undefined;
|
|
122
122
|
recordUri?: l.AtUriString
|
|
123
123
|
/**
|
|
124
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
124
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
125
125
|
*/
|
|
126
126
|
| undefined;
|
|
127
127
|
currency: string;
|
|
@@ -134,7 +134,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
134
134
|
*/
|
|
135
135
|
| undefined;
|
|
136
136
|
amount: number;
|
|
137
|
-
$type: "com.atiproto.
|
|
137
|
+
$type: "com.atiproto.item";
|
|
138
138
|
}, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
139
139
|
message?: string
|
|
140
140
|
/**
|
|
@@ -143,7 +143,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
143
143
|
| undefined;
|
|
144
144
|
recordUri?: l.AtUriString
|
|
145
145
|
/**
|
|
146
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
146
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
147
147
|
*/
|
|
148
148
|
| undefined;
|
|
149
149
|
currency: string;
|
|
@@ -156,7 +156,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
156
156
|
*/
|
|
157
157
|
| undefined;
|
|
158
158
|
amount: number;
|
|
159
|
-
$type: "com.atiproto.
|
|
159
|
+
$type: "com.atiproto.item";
|
|
160
160
|
}) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
161
161
|
message?: string
|
|
162
162
|
/**
|
|
@@ -165,7 +165,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
165
165
|
| undefined;
|
|
166
166
|
recordUri?: l.AtUriString
|
|
167
167
|
/**
|
|
168
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
168
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
169
169
|
*/
|
|
170
170
|
| undefined;
|
|
171
171
|
currency: string;
|
|
@@ -178,7 +178,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
178
178
|
*/
|
|
179
179
|
| undefined;
|
|
180
180
|
amount: number;
|
|
181
|
-
$type: "com.atiproto.
|
|
181
|
+
$type: "com.atiproto.item";
|
|
182
182
|
}, $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
183
183
|
message?: string
|
|
184
184
|
/**
|
|
@@ -187,7 +187,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
187
187
|
| undefined;
|
|
188
188
|
recordUri?: l.AtUriString
|
|
189
189
|
/**
|
|
190
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
190
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
191
191
|
*/
|
|
192
192
|
| undefined;
|
|
193
193
|
currency: string;
|
|
@@ -200,7 +200,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
200
200
|
*/
|
|
201
201
|
| undefined;
|
|
202
202
|
amount: number;
|
|
203
|
-
$type: "com.atiproto.
|
|
203
|
+
$type: "com.atiproto.item";
|
|
204
204
|
}, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
205
205
|
message?: string
|
|
206
206
|
/**
|
|
@@ -209,7 +209,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
209
209
|
| undefined;
|
|
210
210
|
recordUri?: l.AtUriString
|
|
211
211
|
/**
|
|
212
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
212
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
213
213
|
*/
|
|
214
214
|
| undefined;
|
|
215
215
|
currency: string;
|
|
@@ -222,7 +222,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
222
222
|
*/
|
|
223
223
|
| undefined;
|
|
224
224
|
amount: number;
|
|
225
|
-
$type: "com.atiproto.
|
|
225
|
+
$type: "com.atiproto.item";
|
|
226
226
|
}>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
227
227
|
message?: string
|
|
228
228
|
/**
|
|
@@ -231,7 +231,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
231
231
|
| undefined;
|
|
232
232
|
recordUri?: l.AtUriString
|
|
233
233
|
/**
|
|
234
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
234
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
235
235
|
*/
|
|
236
236
|
| undefined;
|
|
237
237
|
currency: string;
|
|
@@ -244,7 +244,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
244
244
|
*/
|
|
245
245
|
| undefined;
|
|
246
246
|
amount: number;
|
|
247
|
-
$type: "com.atiproto.
|
|
247
|
+
$type: "com.atiproto.item";
|
|
248
248
|
}, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
249
249
|
message?: string
|
|
250
250
|
/**
|
|
@@ -253,7 +253,7 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
253
253
|
| undefined;
|
|
254
254
|
recordUri?: l.AtUriString
|
|
255
255
|
/**
|
|
256
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
256
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
257
257
|
*/
|
|
258
258
|
| undefined;
|
|
259
259
|
currency: string;
|
|
@@ -266,17 +266,17 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
266
266
|
*/
|
|
267
267
|
| undefined;
|
|
268
268
|
amount: number;
|
|
269
|
-
$type: "com.atiproto.
|
|
269
|
+
$type: "com.atiproto.item";
|
|
270
270
|
}>;
|
|
271
|
-
/** View of a
|
|
271
|
+
/** View of a item record for use in API responses */
|
|
272
272
|
type View = {
|
|
273
|
-
$type?: 'com.atiproto.
|
|
273
|
+
$type?: 'com.atiproto.item#view';
|
|
274
274
|
/**
|
|
275
|
-
* AT-URI of the
|
|
275
|
+
* AT-URI of the item record
|
|
276
276
|
*/
|
|
277
277
|
uri: l.AtUriString;
|
|
278
278
|
/**
|
|
279
|
-
* DID of the user receiving the
|
|
279
|
+
* DID of the user receiving the item
|
|
280
280
|
*/
|
|
281
281
|
subject?: l.DidString;
|
|
282
282
|
/**
|
|
@@ -284,7 +284,7 @@ type View = {
|
|
|
284
284
|
*/
|
|
285
285
|
recordUri?: l.AtUriString;
|
|
286
286
|
/**
|
|
287
|
-
* Tip amount in cents (0 when recipient allows zero
|
|
287
|
+
* Tip amount in cents (0 when recipient allows zero items)
|
|
288
288
|
*/
|
|
289
289
|
amount: number;
|
|
290
290
|
/**
|
|
@@ -309,6 +309,6 @@ type View = {
|
|
|
309
309
|
completedAt?: l.DatetimeString;
|
|
310
310
|
};
|
|
311
311
|
export type { View };
|
|
312
|
-
/** View of a
|
|
313
|
-
declare const view: l.TypedObjectSchema<"com.atiproto.
|
|
312
|
+
/** View of a item record for use in API responses */
|
|
313
|
+
declare const view: l.TypedObjectSchema<"com.atiproto.item#view", l.Validator<View, View>>;
|
|
314
314
|
export { view };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
3
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
4
|
-
import * as
|
|
4
|
+
import * as AtiprotoItem from '../../item.defs.js';
|
|
5
5
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
6
|
-
declare const $nsid = "com.atiproto.
|
|
6
|
+
declare const $nsid = "com.atiproto.payment.cart.clone";
|
|
7
7
|
export { $nsid };
|
|
8
|
-
/** Clone an existing cart, creating new
|
|
9
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
8
|
+
/** Clone an existing cart, creating new item and subscription records. Useful for reopening expired carts or repeating payments. */
|
|
9
|
+
declare const main: l.Procedure<"com.atiproto.payment.cart.clone", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
10
10
|
uri: l.StringSchema<{
|
|
11
11
|
readonly format: "at-uri";
|
|
12
12
|
}>;
|
|
@@ -23,7 +23,7 @@ declare const main: l.Procedure<"com.atiproto.account.cart.clone", l.ParamsSchem
|
|
|
23
23
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
24
24
|
readonly format: "uri";
|
|
25
25
|
}>>;
|
|
26
|
-
|
|
26
|
+
items: l.OptionalSchema<l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>>;
|
|
27
27
|
subscriptions: l.OptionalSchema<l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>>;
|
|
28
28
|
}>>, undefined>;
|
|
29
29
|
export { main };
|
|
@@ -32,7 +32,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
32
32
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
33
33
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
34
34
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
35
|
-
export declare const $lxm: "com.atiproto.
|
|
35
|
+
export declare const $lxm: "com.atiproto.payment.cart.clone", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
36
36
|
uri: l.StringSchema<{
|
|
37
37
|
readonly format: "at-uri";
|
|
38
38
|
}>;
|
|
@@ -49,6 +49,6 @@ export declare const $lxm: "com.atiproto.account.cart.clone", $params: l.ParamsS
|
|
|
49
49
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
50
50
|
readonly format: "uri";
|
|
51
51
|
}>>;
|
|
52
|
-
|
|
52
|
+
items: l.OptionalSchema<l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>>;
|
|
53
53
|
subscriptions: l.OptionalSchema<l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>>;
|
|
54
54
|
}>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
3
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
4
|
-
declare const $nsid = "com.atiproto.
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.cart.create";
|
|
5
5
|
export { $nsid };
|
|
6
6
|
/** Create a new empty cart */
|
|
7
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
7
|
+
declare const main: l.Procedure<"com.atiproto.payment.cart.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
8
|
currency: l.StringSchema<{
|
|
9
9
|
readonly maxLength: 3;
|
|
10
10
|
}>;
|
|
@@ -28,7 +28,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
28
28
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
29
29
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
30
30
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
31
|
-
export declare const $lxm: "com.atiproto.
|
|
31
|
+
export declare const $lxm: "com.atiproto.payment.cart.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
32
32
|
currency: l.StringSchema<{
|
|
33
33
|
readonly maxLength: 3;
|
|
34
34
|
}>;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
-
import * as
|
|
3
|
+
import * as AtiprotoItem from '../../item.defs.js';
|
|
4
4
|
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
5
|
-
declare const $nsid = "com.atiproto.
|
|
5
|
+
declare const $nsid = "com.atiproto.payment.cart.get";
|
|
6
6
|
export { $nsid };
|
|
7
|
-
/** Get a specific cart by
|
|
8
|
-
declare const main: l.Query<"com.atiproto.
|
|
9
|
-
readonly uri: l.StringSchema<{
|
|
7
|
+
/** Get a specific cart sent by the authenticated user, including resolved item and subscription records. One of `uri`, `itemUri`, or `subscriptionUri` is required. */
|
|
8
|
+
declare const main: l.Query<"com.atiproto.payment.cart.get", l.ParamsSchema<{
|
|
9
|
+
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
10
10
|
readonly format: "at-uri";
|
|
11
|
-
}
|
|
11
|
+
}>>;
|
|
12
|
+
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
13
|
+
readonly format: "at-uri";
|
|
14
|
+
}>>;
|
|
15
|
+
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
16
|
+
readonly format: "at-uri";
|
|
17
|
+
}>>;
|
|
12
18
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
13
19
|
uri: l.StringSchema<{
|
|
14
20
|
readonly format: "at-uri";
|
|
@@ -20,17 +26,23 @@ declare const main: l.Query<"com.atiproto.account.cart.get", l.ParamsSchema<{
|
|
|
20
26
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
21
27
|
readonly format: "uri";
|
|
22
28
|
}>>;
|
|
23
|
-
|
|
29
|
+
items: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
24
30
|
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
25
31
|
}>>, undefined>;
|
|
26
32
|
export { main };
|
|
27
33
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
28
34
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
29
35
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
30
|
-
export declare const $lxm: "com.atiproto.
|
|
31
|
-
readonly uri: l.StringSchema<{
|
|
36
|
+
export declare const $lxm: "com.atiproto.payment.cart.get", $params: l.ParamsSchema<{
|
|
37
|
+
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
32
38
|
readonly format: "at-uri";
|
|
33
|
-
}
|
|
39
|
+
}>>;
|
|
40
|
+
readonly itemUri: l.OptionalSchema<l.StringSchema<{
|
|
41
|
+
readonly format: "at-uri";
|
|
42
|
+
}>>;
|
|
43
|
+
readonly subscriptionUri: l.OptionalSchema<l.StringSchema<{
|
|
44
|
+
readonly format: "at-uri";
|
|
45
|
+
}>>;
|
|
34
46
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
35
47
|
uri: l.StringSchema<{
|
|
36
48
|
readonly format: "at-uri";
|
|
@@ -42,6 +54,6 @@ export declare const $lxm: "com.atiproto.account.cart.get", $params: l.ParamsSch
|
|
|
42
54
|
checkoutUrl: l.OptionalSchema<l.StringSchema<{
|
|
43
55
|
readonly format: "uri";
|
|
44
56
|
}>>;
|
|
45
|
-
|
|
57
|
+
items: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
46
58
|
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoSubscription.View, AtiprotoSubscription.View>>>;
|
|
47
59
|
}>>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
3
|
+
declare const $nsid = "com.atiproto.payment.cart.list";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** List carts
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
5
|
+
/** List carts created by the authenticated user. */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.payment.cart.list", l.ParamsSchema<{
|
|
7
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
8
|
+
readonly format: "did";
|
|
9
|
+
}>>;
|
|
7
10
|
readonly status: l.OptionalSchema<l.EnumSchema<"open" | "completed" | "expired" | "abandoned">>;
|
|
8
11
|
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
9
12
|
readonly maxLength: 512;
|
|
@@ -19,7 +22,10 @@ export { main };
|
|
|
19
22
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
20
23
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
21
24
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
22
|
-
export declare const $lxm: "com.atiproto.
|
|
25
|
+
export declare const $lxm: "com.atiproto.payment.cart.list", $params: l.ParamsSchema<{
|
|
26
|
+
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
27
|
+
readonly format: "did";
|
|
28
|
+
}>>;
|
|
23
29
|
readonly status: l.OptionalSchema<l.EnumSchema<"open" | "completed" | "expired" | "abandoned">>;
|
|
24
30
|
readonly cursor: l.OptionalSchema<l.StringSchema<{
|
|
25
31
|
readonly maxLength: 512;
|
|
@@ -32,7 +38,7 @@ export declare const $lxm: "com.atiproto.account.cart.list", $params: l.ParamsSc
|
|
|
32
38
|
}>>;
|
|
33
39
|
}>>;
|
|
34
40
|
type CartResponse = {
|
|
35
|
-
$type?: 'com.atiproto.
|
|
41
|
+
$type?: 'com.atiproto.payment.cart.list#cartResponse';
|
|
36
42
|
/**
|
|
37
43
|
* AT-URI of the cart record
|
|
38
44
|
*/
|
|
@@ -44,5 +50,5 @@ type CartResponse = {
|
|
|
44
50
|
record: AtiprotoCart.View;
|
|
45
51
|
};
|
|
46
52
|
export type { CartResponse };
|
|
47
|
-
declare const cartResponse: l.TypedObjectSchema<"com.atiproto.
|
|
53
|
+
declare const cartResponse: l.TypedObjectSchema<"com.atiproto.payment.cart.list#cartResponse", l.Validator<CartResponse, CartResponse>>;
|
|
48
54
|
export { cartResponse };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
3
3
|
import * as AtiprotoActions from '../../actions.defs.js';
|
|
4
|
-
declare const $nsid = "com.atiproto.
|
|
4
|
+
declare const $nsid = "com.atiproto.payment.cart.put";
|
|
5
5
|
export { $nsid };
|
|
6
6
|
/** Update a cart. Only open carts can be updated. */
|
|
7
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
7
|
+
declare const main: l.Procedure<"com.atiproto.payment.cart.put", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
8
8
|
uri: l.StringSchema<{
|
|
9
9
|
readonly format: "at-uri";
|
|
10
10
|
}>;
|
|
@@ -25,7 +25,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
25
25
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
26
26
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
27
27
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
28
|
-
export declare const $lxm: "com.atiproto.
|
|
28
|
+
export declare const $lxm: "com.atiproto.payment.cart.put", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
29
29
|
uri: l.StringSchema<{
|
|
30
30
|
readonly format: "at-uri";
|
|
31
31
|
}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
import * as AtiprotoActions from '../../actions.defs.js';
|
|
3
|
-
import * as
|
|
3
|
+
import * as AtiprotoItem from '../../item.defs.js';
|
|
4
4
|
import * as AtiprotoCart from '../../cart.defs.js';
|
|
5
|
-
declare const $nsid = "com.atiproto.
|
|
5
|
+
declare const $nsid = "com.atiproto.payment.item.create";
|
|
6
6
|
export { $nsid };
|
|
7
|
-
/** Create a
|
|
8
|
-
declare const main: l.Procedure<"com.atiproto.
|
|
7
|
+
/** Create a item on a DID or specific record. Creates or adds to a cart and returns a checkout URL. */
|
|
8
|
+
declare const main: l.Procedure<"com.atiproto.payment.item.create", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
9
9
|
subject: l.StringSchema<{
|
|
10
10
|
readonly format: "did";
|
|
11
11
|
}>;
|
|
@@ -30,10 +30,10 @@ declare const main: l.Procedure<"com.atiproto.feed.tip.create", l.ParamsSchema<{
|
|
|
30
30
|
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
31
31
|
}>>, l.Payload<"application/json", l.ObjectSchema<{
|
|
32
32
|
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
33
|
-
|
|
33
|
+
itemUri: l.OptionalSchema<l.StringSchema<{
|
|
34
34
|
readonly format: "at-uri";
|
|
35
35
|
}>>;
|
|
36
|
-
|
|
36
|
+
item: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
37
37
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
38
38
|
readonly format: "at-uri";
|
|
39
39
|
}>>;
|
|
@@ -48,7 +48,7 @@ export type $Input<B = l.BinaryData> = l.InferMethodInput<typeof main, B>;
|
|
|
48
48
|
export type $InputBody<B = l.BinaryData> = l.InferMethodInputBody<typeof main, B>;
|
|
49
49
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
50
50
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
51
|
-
export declare const $lxm: "com.atiproto.
|
|
51
|
+
export declare const $lxm: "com.atiproto.payment.item.create", $params: l.ParamsSchema<{}>, $input: l.Payload<"application/json", l.ObjectSchema<{
|
|
52
52
|
subject: l.StringSchema<{
|
|
53
53
|
readonly format: "did";
|
|
54
54
|
}>;
|
|
@@ -73,10 +73,10 @@ export declare const $lxm: "com.atiproto.feed.tip.create", $params: l.ParamsSche
|
|
|
73
73
|
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.InboundWorkflow, AtiprotoActions.InboundWorkflow>>>;
|
|
74
74
|
}>>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
75
75
|
workflow: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoActions.OutboundWorkflow, AtiprotoActions.OutboundWorkflow>>>;
|
|
76
|
-
|
|
76
|
+
itemUri: l.OptionalSchema<l.StringSchema<{
|
|
77
77
|
readonly format: "at-uri";
|
|
78
78
|
}>>;
|
|
79
|
-
|
|
79
|
+
item: l.OptionalSchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
80
80
|
cartUri: l.OptionalSchema<l.StringSchema<{
|
|
81
81
|
readonly format: "at-uri";
|
|
82
82
|
}>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
import * as
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
import * as AtiprotoItem from '../../item.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.payment.item.get";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** Get a specific
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
5
|
+
/** Get a specific item sent by the authenticated user. Looks up by item record uri, subject (recipient) DID, or record uri. These are mutually exclusive and resolved in that order. */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.payment.item.get", l.ParamsSchema<{
|
|
7
7
|
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "at-uri";
|
|
9
9
|
}>>;
|
|
@@ -14,13 +14,13 @@ declare const main: l.Query<"com.atiproto.feed.tip.get", l.ParamsSchema<{
|
|
|
14
14
|
readonly format: "at-uri";
|
|
15
15
|
}>>;
|
|
16
16
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
17
|
-
|
|
17
|
+
item: l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>;
|
|
18
18
|
}>>, undefined>;
|
|
19
19
|
export { main };
|
|
20
20
|
export type $Params = l.InferMethodParams<typeof main>;
|
|
21
21
|
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
22
22
|
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
23
|
-
export declare const $lxm: "com.atiproto.
|
|
23
|
+
export declare const $lxm: "com.atiproto.payment.item.get", $params: l.ParamsSchema<{
|
|
24
24
|
readonly uri: l.OptionalSchema<l.StringSchema<{
|
|
25
25
|
readonly format: "at-uri";
|
|
26
26
|
}>>;
|
|
@@ -31,5 +31,5 @@ export declare const $lxm: "com.atiproto.feed.tip.get", $params: l.ParamsSchema<
|
|
|
31
31
|
readonly format: "at-uri";
|
|
32
32
|
}>>;
|
|
33
33
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
34
|
-
|
|
34
|
+
item: l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>;
|
|
35
35
|
}>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
|
-
import * as
|
|
3
|
-
declare const $nsid = "com.atiproto.
|
|
2
|
+
import * as AtiprotoItem from '../../item.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.payment.item.list";
|
|
4
4
|
export { $nsid };
|
|
5
|
-
/** List
|
|
6
|
-
declare const main: l.Query<"com.atiproto.
|
|
5
|
+
/** List items sent by the authenticated user */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.payment.item.list", l.ParamsSchema<{
|
|
7
7
|
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
8
8
|
readonly format: "did";
|
|
9
9
|
}>>;
|
|
@@ -15,7 +15,7 @@ declare const main: l.Query<"com.atiproto.feed.tip.list", l.ParamsSchema<{
|
|
|
15
15
|
}>>;
|
|
16
16
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
17
17
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
18
|
-
|
|
18
|
+
items: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
19
19
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
20
20
|
readonly maxLength: 512;
|
|
21
21
|
}>>;
|
|
@@ -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.
|
|
27
|
+
export declare const $lxm: "com.atiproto.payment.item.list", $params: l.ParamsSchema<{
|
|
28
28
|
readonly subject: l.OptionalSchema<l.StringSchema<{
|
|
29
29
|
readonly format: "did";
|
|
30
30
|
}>>;
|
|
@@ -36,7 +36,7 @@ export declare const $lxm: "com.atiproto.feed.tip.list", $params: l.ParamsSchema
|
|
|
36
36
|
}>>;
|
|
37
37
|
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
38
38
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
39
|
-
|
|
39
|
+
items: l.ArraySchema<l.RefSchema<l.Validator<AtiprotoItem.View, AtiprotoItem.View>>>;
|
|
40
40
|
cursor: l.OptionalSchema<l.StringSchema<{
|
|
41
41
|
readonly maxLength: 512;
|
|
42
42
|
}>>;
|