@atiproto/lexicons 0.0.1 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2940 -19
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2919 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +2 -8
- package/dist/lexicons/com/atiproto/profile.defs.d.ts +10 -159
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +3 -3
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +2 -2
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +20 -20
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +40 -40
- package/package.json +6 -3
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +0 -58
- package/dist/lexicons/com/atiproto/account/cart/clone.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart/create.defs.js +0 -54
- package/dist/lexicons/com/atiproto/account/cart/create.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart/get.defs.js +0 -56
- package/dist/lexicons/com/atiproto/account/cart/get.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart/list.defs.js +0 -56
- package/dist/lexicons/com/atiproto/account/cart/list.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart/put.defs.js +0 -53
- package/dist/lexicons/com/atiproto/account/cart/put.js +0 -44
- package/dist/lexicons/com/atiproto/account/cart.js +0 -44
- package/dist/lexicons/com/atiproto/account/profile/get.defs.js +0 -53
- package/dist/lexicons/com/atiproto/account/profile/get.js +0 -44
- package/dist/lexicons/com/atiproto/account/profile/put.defs.js +0 -60
- package/dist/lexicons/com/atiproto/account/profile/put.js +0 -44
- package/dist/lexicons/com/atiproto/account/profile.js +0 -41
- package/dist/lexicons/com/atiproto/account.js +0 -41
- package/dist/lexicons/com/atiproto/cart.defs.js +0 -27
- package/dist/lexicons/com/atiproto/cart.js +0 -44
- package/dist/lexicons/com/atiproto/feed/list.defs.js +0 -54
- package/dist/lexicons/com/atiproto/feed/list.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +0 -51
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +0 -59
- package/dist/lexicons/com/atiproto/feed/subscription/create.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +0 -51
- package/dist/lexicons/com/atiproto/feed/subscription/get.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +0 -55
- package/dist/lexicons/com/atiproto/feed/subscription/list.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +0 -53
- package/dist/lexicons/com/atiproto/feed/subscription/put.js +0 -44
- package/dist/lexicons/com/atiproto/feed/subscription.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +0 -62
- package/dist/lexicons/com/atiproto/feed/tip/create.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +0 -51
- package/dist/lexicons/com/atiproto/feed/tip/get.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +0 -50
- package/dist/lexicons/com/atiproto/feed/tip/list.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +0 -53
- package/dist/lexicons/com/atiproto/feed/tip/put.js +0 -44
- package/dist/lexicons/com/atiproto/feed/tip.js +0 -43
- package/dist/lexicons/com/atiproto/feed.js +0 -42
- package/dist/lexicons/com/atiproto/profile.defs.js +0 -32
- package/dist/lexicons/com/atiproto/profile.js +0 -44
- package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +0 -50
- package/dist/lexicons/com/atiproto/repo/profile/get.js +0 -44
- package/dist/lexicons/com/atiproto/repo/profile.js +0 -40
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +0 -59
- package/dist/lexicons/com/atiproto/repo/subscription/search.js +0 -44
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +0 -22
- package/dist/lexicons/com/atiproto/repo/subscription/validate.js +0 -44
- package/dist/lexicons/com/atiproto/repo/subscription.js +0 -41
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +0 -59
- package/dist/lexicons/com/atiproto/repo/tip/search.js +0 -44
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +0 -23
- package/dist/lexicons/com/atiproto/repo/tip/validate.js +0 -44
- package/dist/lexicons/com/atiproto/repo/tip.js +0 -41
- package/dist/lexicons/com/atiproto/repo.js +0 -42
- package/dist/lexicons/com/atiproto/subscription.defs.js +0 -24
- package/dist/lexicons/com/atiproto/subscription.js +0 -44
- package/dist/lexicons/com/atiproto/tip.defs.js +0 -29
- package/dist/lexicons/com/atiproto/tip.js +0 -44
- package/dist/lexicons/com/atiproto.js +0 -46
- package/dist/lexicons/com.js +0 -40
- package/dist/lexicons/index.js +0 -40
- package/dist/schemas/account/cart/clone.json +0 -75
- package/dist/schemas/account/cart/create.json +0 -52
- package/dist/schemas/account/cart/get.json +0 -66
- package/dist/schemas/account/cart/list.json +0 -73
- package/dist/schemas/account/cart/put.json +0 -47
- package/dist/schemas/account/profile/get.json +0 -42
- package/dist/schemas/account/profile/put.json +0 -84
- package/dist/schemas/cart.json +0 -74
- package/dist/schemas/feed/list.json +0 -49
- package/dist/schemas/feed/subscription/cancel.json +0 -48
- package/dist/schemas/feed/subscription/create.json +0 -76
- package/dist/schemas/feed/subscription/get.json +0 -45
- package/dist/schemas/feed/subscription/list.json +0 -64
- package/dist/schemas/feed/subscription/put.json +0 -47
- package/dist/schemas/feed/tip/create.json +0 -87
- package/dist/schemas/feed/tip/get.json +0 -45
- package/dist/schemas/feed/tip/list.json +0 -49
- package/dist/schemas/feed/tip/put.json +0 -47
- package/dist/schemas/profile.json +0 -88
- package/dist/schemas/repo/profile/get.json +0 -40
- package/dist/schemas/repo/subscription/search.json +0 -67
- package/dist/schemas/repo/subscription/validate.json +0 -55
- package/dist/schemas/repo/tip/search.json +0 -67
- package/dist/schemas/repo/tip/validate.json +0 -60
- package/dist/schemas/subscription.json +0 -67
- package/dist/schemas/tip.json +0 -57
- package/dist/schemas.js +0 -60
|
@@ -12,19 +12,10 @@ type Main = {
|
|
|
12
12
|
* Whether user accepts subscriptions (default: true)
|
|
13
13
|
*/
|
|
14
14
|
acceptsSubscriptions?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Allow $0 tips (default: false)
|
|
17
|
-
*/
|
|
18
|
-
allowZeroTips?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Minimum tip amount in cents (default: 100)
|
|
21
|
-
*/
|
|
22
|
-
minimumTip?: number;
|
|
23
15
|
/**
|
|
24
16
|
* Opt out of payment receipt DMs (default: false)
|
|
25
17
|
*/
|
|
26
18
|
disableReceiptNotifications?: boolean;
|
|
27
|
-
subscriptionTiers?: SubscriptionTier[];
|
|
28
19
|
/**
|
|
29
20
|
* Creation timestamp
|
|
30
21
|
*/
|
|
@@ -49,22 +40,11 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
49
40
|
*/
|
|
50
41
|
| undefined;
|
|
51
42
|
acceptsSubscriptions?: boolean
|
|
52
|
-
/**
|
|
53
|
-
* Allow $0 tips (default: false)
|
|
54
|
-
*/
|
|
55
|
-
| undefined;
|
|
56
|
-
allowZeroTips?: boolean
|
|
57
|
-
/**
|
|
58
|
-
* Minimum tip amount in cents (default: 100)
|
|
59
|
-
*/
|
|
60
|
-
| undefined;
|
|
61
|
-
minimumTip?: number
|
|
62
43
|
/**
|
|
63
44
|
* Opt out of payment receipt DMs (default: false)
|
|
64
45
|
*/
|
|
65
46
|
| undefined;
|
|
66
|
-
disableReceiptNotifications?: boolean
|
|
67
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
47
|
+
disableReceiptNotifications?: boolean
|
|
68
48
|
/**
|
|
69
49
|
* Creation timestamp
|
|
70
50
|
*/
|
|
@@ -80,22 +60,11 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
80
60
|
*/
|
|
81
61
|
| undefined;
|
|
82
62
|
acceptsSubscriptions?: boolean
|
|
83
|
-
/**
|
|
84
|
-
* Allow $0 tips (default: false)
|
|
85
|
-
*/
|
|
86
|
-
| undefined;
|
|
87
|
-
allowZeroTips?: boolean
|
|
88
|
-
/**
|
|
89
|
-
* Minimum tip amount in cents (default: 100)
|
|
90
|
-
*/
|
|
91
|
-
| undefined;
|
|
92
|
-
minimumTip?: number
|
|
93
63
|
/**
|
|
94
64
|
* Opt out of payment receipt DMs (default: false)
|
|
95
65
|
*/
|
|
96
66
|
| undefined;
|
|
97
|
-
disableReceiptNotifications?: boolean
|
|
98
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
67
|
+
disableReceiptNotifications?: boolean
|
|
99
68
|
/**
|
|
100
69
|
* Creation timestamp
|
|
101
70
|
*/
|
|
@@ -112,22 +81,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
112
81
|
*/
|
|
113
82
|
| undefined;
|
|
114
83
|
acceptsSubscriptions?: boolean
|
|
115
|
-
/**
|
|
116
|
-
* Allow $0 tips (default: false)
|
|
117
|
-
*/
|
|
118
|
-
| undefined;
|
|
119
|
-
allowZeroTips?: boolean
|
|
120
|
-
/**
|
|
121
|
-
* Minimum tip amount in cents (default: 100)
|
|
122
|
-
*/
|
|
123
|
-
| undefined;
|
|
124
|
-
minimumTip?: number
|
|
125
84
|
/**
|
|
126
85
|
* Opt out of payment receipt DMs (default: false)
|
|
127
86
|
*/
|
|
128
87
|
| undefined;
|
|
129
|
-
disableReceiptNotifications?: boolean
|
|
130
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
88
|
+
disableReceiptNotifications?: boolean
|
|
131
89
|
/**
|
|
132
90
|
* Creation timestamp
|
|
133
91
|
*/
|
|
@@ -142,22 +100,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
142
100
|
*/
|
|
143
101
|
| undefined;
|
|
144
102
|
acceptsSubscriptions?: boolean
|
|
145
|
-
/**
|
|
146
|
-
* Allow $0 tips (default: false)
|
|
147
|
-
*/
|
|
148
|
-
| undefined;
|
|
149
|
-
allowZeroTips?: boolean
|
|
150
|
-
/**
|
|
151
|
-
* Minimum tip amount in cents (default: 100)
|
|
152
|
-
*/
|
|
153
|
-
| undefined;
|
|
154
|
-
minimumTip?: number
|
|
155
103
|
/**
|
|
156
104
|
* Opt out of payment receipt DMs (default: false)
|
|
157
105
|
*/
|
|
158
106
|
| undefined;
|
|
159
|
-
disableReceiptNotifications?: boolean
|
|
160
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
107
|
+
disableReceiptNotifications?: boolean
|
|
161
108
|
/**
|
|
162
109
|
* Creation timestamp
|
|
163
110
|
*/
|
|
@@ -172,22 +119,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
172
119
|
*/
|
|
173
120
|
| undefined;
|
|
174
121
|
acceptsSubscriptions?: boolean
|
|
175
|
-
/**
|
|
176
|
-
* Allow $0 tips (default: false)
|
|
177
|
-
*/
|
|
178
|
-
| undefined;
|
|
179
|
-
allowZeroTips?: boolean
|
|
180
|
-
/**
|
|
181
|
-
* Minimum tip amount in cents (default: 100)
|
|
182
|
-
*/
|
|
183
|
-
| undefined;
|
|
184
|
-
minimumTip?: number
|
|
185
122
|
/**
|
|
186
123
|
* Opt out of payment receipt DMs (default: false)
|
|
187
124
|
*/
|
|
188
125
|
| undefined;
|
|
189
|
-
disableReceiptNotifications?: boolean
|
|
190
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
126
|
+
disableReceiptNotifications?: boolean
|
|
191
127
|
/**
|
|
192
128
|
* Creation timestamp
|
|
193
129
|
*/
|
|
@@ -202,22 +138,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
202
138
|
*/
|
|
203
139
|
| undefined;
|
|
204
140
|
acceptsSubscriptions?: boolean
|
|
205
|
-
/**
|
|
206
|
-
* Allow $0 tips (default: false)
|
|
207
|
-
*/
|
|
208
|
-
| undefined;
|
|
209
|
-
allowZeroTips?: boolean
|
|
210
|
-
/**
|
|
211
|
-
* Minimum tip amount in cents (default: 100)
|
|
212
|
-
*/
|
|
213
|
-
| undefined;
|
|
214
|
-
minimumTip?: number
|
|
215
141
|
/**
|
|
216
142
|
* Opt out of payment receipt DMs (default: false)
|
|
217
143
|
*/
|
|
218
144
|
| undefined;
|
|
219
|
-
disableReceiptNotifications?: boolean
|
|
220
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
145
|
+
disableReceiptNotifications?: boolean
|
|
221
146
|
/**
|
|
222
147
|
* Creation timestamp
|
|
223
148
|
*/
|
|
@@ -232,22 +157,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
232
157
|
*/
|
|
233
158
|
| undefined;
|
|
234
159
|
acceptsSubscriptions?: boolean
|
|
235
|
-
/**
|
|
236
|
-
* Allow $0 tips (default: false)
|
|
237
|
-
*/
|
|
238
|
-
| undefined;
|
|
239
|
-
allowZeroTips?: boolean
|
|
240
|
-
/**
|
|
241
|
-
* Minimum tip amount in cents (default: 100)
|
|
242
|
-
*/
|
|
243
|
-
| undefined;
|
|
244
|
-
minimumTip?: number
|
|
245
160
|
/**
|
|
246
161
|
* Opt out of payment receipt DMs (default: false)
|
|
247
162
|
*/
|
|
248
163
|
| undefined;
|
|
249
|
-
disableReceiptNotifications?: boolean
|
|
250
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
164
|
+
disableReceiptNotifications?: boolean
|
|
251
165
|
/**
|
|
252
166
|
* Creation timestamp
|
|
253
167
|
*/
|
|
@@ -262,22 +176,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
262
176
|
*/
|
|
263
177
|
| undefined;
|
|
264
178
|
acceptsSubscriptions?: boolean
|
|
265
|
-
/**
|
|
266
|
-
* Allow $0 tips (default: false)
|
|
267
|
-
*/
|
|
268
|
-
| undefined;
|
|
269
|
-
allowZeroTips?: boolean
|
|
270
|
-
/**
|
|
271
|
-
* Minimum tip amount in cents (default: 100)
|
|
272
|
-
*/
|
|
273
|
-
| undefined;
|
|
274
|
-
minimumTip?: number
|
|
275
179
|
/**
|
|
276
180
|
* Opt out of payment receipt DMs (default: false)
|
|
277
181
|
*/
|
|
278
182
|
| undefined;
|
|
279
|
-
disableReceiptNotifications?: boolean
|
|
280
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
183
|
+
disableReceiptNotifications?: boolean
|
|
281
184
|
/**
|
|
282
185
|
* Creation timestamp
|
|
283
186
|
*/
|
|
@@ -292,22 +195,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
292
195
|
*/
|
|
293
196
|
| undefined;
|
|
294
197
|
acceptsSubscriptions?: boolean
|
|
295
|
-
/**
|
|
296
|
-
* Allow $0 tips (default: false)
|
|
297
|
-
*/
|
|
298
|
-
| undefined;
|
|
299
|
-
allowZeroTips?: boolean
|
|
300
|
-
/**
|
|
301
|
-
* Minimum tip amount in cents (default: 100)
|
|
302
|
-
*/
|
|
303
|
-
| undefined;
|
|
304
|
-
minimumTip?: number
|
|
305
198
|
/**
|
|
306
199
|
* Opt out of payment receipt DMs (default: false)
|
|
307
200
|
*/
|
|
308
201
|
| undefined;
|
|
309
|
-
disableReceiptNotifications?: boolean
|
|
310
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
202
|
+
disableReceiptNotifications?: boolean
|
|
311
203
|
/**
|
|
312
204
|
* Creation timestamp
|
|
313
205
|
*/
|
|
@@ -322,22 +214,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
322
214
|
*/
|
|
323
215
|
| undefined;
|
|
324
216
|
acceptsSubscriptions?: boolean
|
|
325
|
-
/**
|
|
326
|
-
* Allow $0 tips (default: false)
|
|
327
|
-
*/
|
|
328
|
-
| undefined;
|
|
329
|
-
allowZeroTips?: boolean
|
|
330
|
-
/**
|
|
331
|
-
* Minimum tip amount in cents (default: 100)
|
|
332
|
-
*/
|
|
333
|
-
| undefined;
|
|
334
|
-
minimumTip?: number
|
|
335
217
|
/**
|
|
336
218
|
* Opt out of payment receipt DMs (default: false)
|
|
337
219
|
*/
|
|
338
220
|
| undefined;
|
|
339
|
-
disableReceiptNotifications?: boolean
|
|
340
|
-
subscriptionTiers?: SubscriptionTier[]
|
|
221
|
+
disableReceiptNotifications?: boolean
|
|
341
222
|
/**
|
|
342
223
|
* Creation timestamp
|
|
343
224
|
*/
|
|
@@ -345,33 +226,3 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
345
226
|
updatedAt?: l.DatetimeString | undefined;
|
|
346
227
|
$type: "com.atiproto.profile";
|
|
347
228
|
}>;
|
|
348
|
-
type SubscriptionTier = {
|
|
349
|
-
$type?: 'com.atiproto.profile#subscriptionTier';
|
|
350
|
-
/**
|
|
351
|
-
* Unique tier identifier
|
|
352
|
-
*/
|
|
353
|
-
id: string;
|
|
354
|
-
/**
|
|
355
|
-
* Display name
|
|
356
|
-
*/
|
|
357
|
-
name: string;
|
|
358
|
-
/**
|
|
359
|
-
* Amount in cents (0 for free tiers)
|
|
360
|
-
*/
|
|
361
|
-
amount: number;
|
|
362
|
-
/**
|
|
363
|
-
* Billing interval: monthly or yearly
|
|
364
|
-
*/
|
|
365
|
-
interval: string;
|
|
366
|
-
/**
|
|
367
|
-
* Tier description
|
|
368
|
-
*/
|
|
369
|
-
description?: string;
|
|
370
|
-
/**
|
|
371
|
-
* List of benefit strings
|
|
372
|
-
*/
|
|
373
|
-
benefits?: string[];
|
|
374
|
-
};
|
|
375
|
-
export type { SubscriptionTier };
|
|
376
|
-
declare const subscriptionTier: l.TypedObjectSchema<"com.atiproto.profile#subscriptionTier", l.Validator<SubscriptionTier, SubscriptionTier>>;
|
|
377
|
-
export { subscriptionTier };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l } from '@atproto/lex';
|
|
2
2
|
declare const $nsid = "com.atiproto.repo.subscription.validate";
|
|
3
3
|
export { $nsid };
|
|
4
|
-
/** Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check
|
|
4
|
+
/** Validate that a sender has an active, Stripe-verified subscription to a recipient. Optionally check the subscription amount. */
|
|
5
5
|
declare const main: l.Query<"com.atiproto.repo.subscription.validate", l.ParamsSchema<{
|
|
6
6
|
readonly sender: l.StringSchema<{
|
|
7
7
|
readonly format: "did";
|
|
@@ -9,7 +9,7 @@ declare const main: l.Query<"com.atiproto.repo.subscription.validate", l.ParamsS
|
|
|
9
9
|
readonly subject: l.StringSchema<{
|
|
10
10
|
readonly format: "did";
|
|
11
11
|
}>;
|
|
12
|
-
readonly
|
|
12
|
+
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
13
13
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
14
14
|
valid: l.BooleanSchema;
|
|
15
15
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
@@ -27,7 +27,7 @@ export declare const $lxm: "com.atiproto.repo.subscription.validate", $params: l
|
|
|
27
27
|
readonly subject: l.StringSchema<{
|
|
28
28
|
readonly format: "did";
|
|
29
29
|
}>;
|
|
30
|
-
readonly
|
|
30
|
+
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
31
31
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
32
32
|
valid: l.BooleanSchema;
|
|
33
33
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
@@ -12,7 +12,7 @@ declare const main: l.Query<"com.atiproto.repo.tip.validate", l.ParamsSchema<{
|
|
|
12
12
|
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
13
13
|
readonly format: "at-uri";
|
|
14
14
|
}>>;
|
|
15
|
-
readonly
|
|
15
|
+
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
16
16
|
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
17
17
|
valid: l.BooleanSchema;
|
|
18
18
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
@@ -33,7 +33,7 @@ export declare const $lxm: "com.atiproto.repo.tip.validate", $params: l.ParamsSc
|
|
|
33
33
|
readonly recordUri: l.OptionalSchema<l.StringSchema<{
|
|
34
34
|
readonly format: "at-uri";
|
|
35
35
|
}>>;
|
|
36
|
-
readonly
|
|
36
|
+
readonly amount: l.OptionalSchema<l.IntegerSchema>;
|
|
37
37
|
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
38
38
|
valid: l.BooleanSchema;
|
|
39
39
|
amount: l.OptionalSchema<l.IntegerSchema>;
|
|
@@ -49,11 +49,11 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
49
49
|
$type?: unknown;
|
|
50
50
|
}>(value: TValue) => value is l.TypedRecord<"com.atiproto.subscription", TValue>, $build: {
|
|
51
51
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
52
|
-
subject: l.DidString;
|
|
53
|
-
amount: number;
|
|
54
52
|
currency: string;
|
|
55
53
|
status: string;
|
|
56
54
|
createdAt: l.DatetimeString;
|
|
55
|
+
subject: l.DidString;
|
|
56
|
+
amount: number;
|
|
57
57
|
interval: string;
|
|
58
58
|
billingStartDate: l.DatetimeString;
|
|
59
59
|
cancelledAt?: l.DatetimeString
|
|
@@ -69,11 +69,11 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
69
69
|
$type: "com.atiproto.subscription";
|
|
70
70
|
};
|
|
71
71
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
72
|
-
subject: l.DidString;
|
|
73
|
-
amount: number;
|
|
74
72
|
currency: string;
|
|
75
73
|
status: string;
|
|
76
74
|
createdAt: l.DatetimeString;
|
|
75
|
+
subject: l.DidString;
|
|
76
|
+
amount: number;
|
|
77
77
|
interval: string;
|
|
78
78
|
billingStartDate: l.DatetimeString;
|
|
79
79
|
cancelledAt?: l.DatetimeString
|
|
@@ -90,11 +90,11 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
90
90
|
};
|
|
91
91
|
}, $type: "com.atiproto.subscription";
|
|
92
92
|
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
93
|
-
subject: l.DidString;
|
|
94
|
-
amount: number;
|
|
95
93
|
currency: string;
|
|
96
94
|
status: string;
|
|
97
95
|
createdAt: l.DatetimeString;
|
|
96
|
+
subject: l.DidString;
|
|
97
|
+
amount: number;
|
|
98
98
|
interval: string;
|
|
99
99
|
billingStartDate: l.DatetimeString;
|
|
100
100
|
cancelledAt?: l.DatetimeString
|
|
@@ -109,11 +109,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
109
109
|
| undefined;
|
|
110
110
|
$type: "com.atiproto.subscription";
|
|
111
111
|
}, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
112
|
-
subject: l.DidString;
|
|
113
|
-
amount: number;
|
|
114
112
|
currency: string;
|
|
115
113
|
status: string;
|
|
116
114
|
createdAt: l.DatetimeString;
|
|
115
|
+
subject: l.DidString;
|
|
116
|
+
amount: number;
|
|
117
117
|
interval: string;
|
|
118
118
|
billingStartDate: l.DatetimeString;
|
|
119
119
|
cancelledAt?: l.DatetimeString
|
|
@@ -128,11 +128,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
128
128
|
| undefined;
|
|
129
129
|
$type: "com.atiproto.subscription";
|
|
130
130
|
}, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
131
|
-
subject: l.DidString;
|
|
132
|
-
amount: number;
|
|
133
131
|
currency: string;
|
|
134
132
|
status: string;
|
|
135
133
|
createdAt: l.DatetimeString;
|
|
134
|
+
subject: l.DidString;
|
|
135
|
+
amount: number;
|
|
136
136
|
interval: string;
|
|
137
137
|
billingStartDate: l.DatetimeString;
|
|
138
138
|
cancelledAt?: l.DatetimeString
|
|
@@ -147,11 +147,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
147
147
|
| undefined;
|
|
148
148
|
$type: "com.atiproto.subscription";
|
|
149
149
|
}) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
150
|
-
subject: l.DidString;
|
|
151
|
-
amount: number;
|
|
152
150
|
currency: string;
|
|
153
151
|
status: string;
|
|
154
152
|
createdAt: l.DatetimeString;
|
|
153
|
+
subject: l.DidString;
|
|
154
|
+
amount: number;
|
|
155
155
|
interval: string;
|
|
156
156
|
billingStartDate: l.DatetimeString;
|
|
157
157
|
cancelledAt?: l.DatetimeString
|
|
@@ -166,11 +166,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
166
166
|
| undefined;
|
|
167
167
|
$type: "com.atiproto.subscription";
|
|
168
168
|
}, $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
169
|
-
subject: l.DidString;
|
|
170
|
-
amount: number;
|
|
171
169
|
currency: string;
|
|
172
170
|
status: string;
|
|
173
171
|
createdAt: l.DatetimeString;
|
|
172
|
+
subject: l.DidString;
|
|
173
|
+
amount: number;
|
|
174
174
|
interval: string;
|
|
175
175
|
billingStartDate: l.DatetimeString;
|
|
176
176
|
cancelledAt?: l.DatetimeString
|
|
@@ -185,11 +185,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
185
185
|
| undefined;
|
|
186
186
|
$type: "com.atiproto.subscription";
|
|
187
187
|
}, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
188
|
-
subject: l.DidString;
|
|
189
|
-
amount: number;
|
|
190
188
|
currency: string;
|
|
191
189
|
status: string;
|
|
192
190
|
createdAt: l.DatetimeString;
|
|
191
|
+
subject: l.DidString;
|
|
192
|
+
amount: number;
|
|
193
193
|
interval: string;
|
|
194
194
|
billingStartDate: l.DatetimeString;
|
|
195
195
|
cancelledAt?: l.DatetimeString
|
|
@@ -204,11 +204,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
204
204
|
| undefined;
|
|
205
205
|
$type: "com.atiproto.subscription";
|
|
206
206
|
}>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
207
|
-
subject: l.DidString;
|
|
208
|
-
amount: number;
|
|
209
207
|
currency: string;
|
|
210
208
|
status: string;
|
|
211
209
|
createdAt: l.DatetimeString;
|
|
210
|
+
subject: l.DidString;
|
|
211
|
+
amount: number;
|
|
212
212
|
interval: string;
|
|
213
213
|
billingStartDate: l.DatetimeString;
|
|
214
214
|
cancelledAt?: l.DatetimeString
|
|
@@ -223,11 +223,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
223
223
|
| undefined;
|
|
224
224
|
$type: "com.atiproto.subscription";
|
|
225
225
|
}, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
226
|
-
subject: l.DidString;
|
|
227
|
-
amount: number;
|
|
228
226
|
currency: string;
|
|
229
227
|
status: string;
|
|
230
228
|
createdAt: l.DatetimeString;
|
|
229
|
+
subject: l.DidString;
|
|
230
|
+
amount: number;
|
|
231
231
|
interval: string;
|
|
232
232
|
billingStartDate: l.DatetimeString;
|
|
233
233
|
cancelledAt?: l.DatetimeString
|
|
@@ -45,186 +45,186 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
45
45
|
$type?: unknown;
|
|
46
46
|
}>(value: TValue) => value is l.TypedRecord<"com.atiproto.tip", TValue>, $build: {
|
|
47
47
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
48
|
-
subject: l.DidString;
|
|
49
48
|
recordUri?: l.AtUriString
|
|
50
49
|
/**
|
|
51
50
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
52
51
|
*/
|
|
53
52
|
| undefined;
|
|
54
|
-
amount: number;
|
|
55
53
|
currency: string;
|
|
56
54
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
55
|
+
createdAt: l.DatetimeString;
|
|
56
|
+
completedAt?: l.DatetimeString | undefined;
|
|
57
|
+
subject: l.DidString;
|
|
58
|
+
amount: number;
|
|
57
59
|
message?: string
|
|
58
60
|
/**
|
|
59
61
|
* Creation timestamp
|
|
60
62
|
*/
|
|
61
63
|
| undefined;
|
|
62
|
-
createdAt: l.DatetimeString;
|
|
63
|
-
completedAt?: l.DatetimeString | undefined;
|
|
64
64
|
$type: "com.atiproto.tip";
|
|
65
65
|
};
|
|
66
66
|
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
67
|
-
subject: l.DidString;
|
|
68
67
|
recordUri?: l.AtUriString
|
|
69
68
|
/**
|
|
70
69
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
71
70
|
*/
|
|
72
71
|
| undefined;
|
|
73
|
-
amount: number;
|
|
74
72
|
currency: string;
|
|
75
73
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
74
|
+
createdAt: l.DatetimeString;
|
|
75
|
+
completedAt?: l.DatetimeString | undefined;
|
|
76
|
+
subject: l.DidString;
|
|
77
|
+
amount: number;
|
|
76
78
|
message?: string
|
|
77
79
|
/**
|
|
78
80
|
* Creation timestamp
|
|
79
81
|
*/
|
|
80
82
|
| undefined;
|
|
81
|
-
createdAt: l.DatetimeString;
|
|
82
|
-
completedAt?: l.DatetimeString | undefined;
|
|
83
83
|
$type: "com.atiproto.tip";
|
|
84
84
|
};
|
|
85
85
|
}, $type: "com.atiproto.tip";
|
|
86
86
|
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
87
|
-
subject: l.DidString;
|
|
88
87
|
recordUri?: l.AtUriString
|
|
89
88
|
/**
|
|
90
89
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
91
90
|
*/
|
|
92
91
|
| undefined;
|
|
93
|
-
amount: number;
|
|
94
92
|
currency: string;
|
|
95
93
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
94
|
+
createdAt: l.DatetimeString;
|
|
95
|
+
completedAt?: l.DatetimeString | undefined;
|
|
96
|
+
subject: l.DidString;
|
|
97
|
+
amount: number;
|
|
96
98
|
message?: string
|
|
97
99
|
/**
|
|
98
100
|
* Creation timestamp
|
|
99
101
|
*/
|
|
100
102
|
| undefined;
|
|
101
|
-
createdAt: l.DatetimeString;
|
|
102
|
-
completedAt?: l.DatetimeString | undefined;
|
|
103
103
|
$type: "com.atiproto.tip";
|
|
104
104
|
}, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
105
|
-
subject: l.DidString;
|
|
106
105
|
recordUri?: l.AtUriString
|
|
107
106
|
/**
|
|
108
107
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
109
108
|
*/
|
|
110
109
|
| undefined;
|
|
111
|
-
amount: number;
|
|
112
110
|
currency: string;
|
|
113
111
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
112
|
+
createdAt: l.DatetimeString;
|
|
113
|
+
completedAt?: l.DatetimeString | undefined;
|
|
114
|
+
subject: l.DidString;
|
|
115
|
+
amount: number;
|
|
114
116
|
message?: string
|
|
115
117
|
/**
|
|
116
118
|
* Creation timestamp
|
|
117
119
|
*/
|
|
118
120
|
| undefined;
|
|
119
|
-
createdAt: l.DatetimeString;
|
|
120
|
-
completedAt?: l.DatetimeString | undefined;
|
|
121
121
|
$type: "com.atiproto.tip";
|
|
122
122
|
}, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
123
|
-
subject: l.DidString;
|
|
124
123
|
recordUri?: l.AtUriString
|
|
125
124
|
/**
|
|
126
125
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
127
126
|
*/
|
|
128
127
|
| undefined;
|
|
129
|
-
amount: number;
|
|
130
128
|
currency: string;
|
|
131
129
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
130
|
+
createdAt: l.DatetimeString;
|
|
131
|
+
completedAt?: l.DatetimeString | undefined;
|
|
132
|
+
subject: l.DidString;
|
|
133
|
+
amount: number;
|
|
132
134
|
message?: string
|
|
133
135
|
/**
|
|
134
136
|
* Creation timestamp
|
|
135
137
|
*/
|
|
136
138
|
| undefined;
|
|
137
|
-
createdAt: l.DatetimeString;
|
|
138
|
-
completedAt?: l.DatetimeString | undefined;
|
|
139
139
|
$type: "com.atiproto.tip";
|
|
140
140
|
}) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
141
|
-
subject: l.DidString;
|
|
142
141
|
recordUri?: l.AtUriString
|
|
143
142
|
/**
|
|
144
143
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
145
144
|
*/
|
|
146
145
|
| undefined;
|
|
147
|
-
amount: number;
|
|
148
146
|
currency: string;
|
|
149
147
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
148
|
+
createdAt: l.DatetimeString;
|
|
149
|
+
completedAt?: l.DatetimeString | undefined;
|
|
150
|
+
subject: l.DidString;
|
|
151
|
+
amount: number;
|
|
150
152
|
message?: string
|
|
151
153
|
/**
|
|
152
154
|
* Creation timestamp
|
|
153
155
|
*/
|
|
154
156
|
| undefined;
|
|
155
|
-
createdAt: l.DatetimeString;
|
|
156
|
-
completedAt?: l.DatetimeString | undefined;
|
|
157
157
|
$type: "com.atiproto.tip";
|
|
158
158
|
}, $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
159
|
-
subject: l.DidString;
|
|
160
159
|
recordUri?: l.AtUriString
|
|
161
160
|
/**
|
|
162
161
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
163
162
|
*/
|
|
164
163
|
| undefined;
|
|
165
|
-
amount: number;
|
|
166
164
|
currency: string;
|
|
167
165
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
166
|
+
createdAt: l.DatetimeString;
|
|
167
|
+
completedAt?: l.DatetimeString | undefined;
|
|
168
|
+
subject: l.DidString;
|
|
169
|
+
amount: number;
|
|
168
170
|
message?: string
|
|
169
171
|
/**
|
|
170
172
|
* Creation timestamp
|
|
171
173
|
*/
|
|
172
174
|
| undefined;
|
|
173
|
-
createdAt: l.DatetimeString;
|
|
174
|
-
completedAt?: l.DatetimeString | undefined;
|
|
175
175
|
$type: "com.atiproto.tip";
|
|
176
176
|
}, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
177
|
-
subject: l.DidString;
|
|
178
177
|
recordUri?: l.AtUriString
|
|
179
178
|
/**
|
|
180
179
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
181
180
|
*/
|
|
182
181
|
| undefined;
|
|
183
|
-
amount: number;
|
|
184
182
|
currency: string;
|
|
185
183
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
184
|
+
createdAt: l.DatetimeString;
|
|
185
|
+
completedAt?: l.DatetimeString | undefined;
|
|
186
|
+
subject: l.DidString;
|
|
187
|
+
amount: number;
|
|
186
188
|
message?: string
|
|
187
189
|
/**
|
|
188
190
|
* Creation timestamp
|
|
189
191
|
*/
|
|
190
192
|
| undefined;
|
|
191
|
-
createdAt: l.DatetimeString;
|
|
192
|
-
completedAt?: l.DatetimeString | undefined;
|
|
193
193
|
$type: "com.atiproto.tip";
|
|
194
194
|
}>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
195
|
-
subject: l.DidString;
|
|
196
195
|
recordUri?: l.AtUriString
|
|
197
196
|
/**
|
|
198
197
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
199
198
|
*/
|
|
200
199
|
| undefined;
|
|
201
|
-
amount: number;
|
|
202
200
|
currency: string;
|
|
203
201
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
202
|
+
createdAt: l.DatetimeString;
|
|
203
|
+
completedAt?: l.DatetimeString | undefined;
|
|
204
|
+
subject: l.DidString;
|
|
205
|
+
amount: number;
|
|
204
206
|
message?: string
|
|
205
207
|
/**
|
|
206
208
|
* Creation timestamp
|
|
207
209
|
*/
|
|
208
210
|
| undefined;
|
|
209
|
-
createdAt: l.DatetimeString;
|
|
210
|
-
completedAt?: l.DatetimeString | undefined;
|
|
211
211
|
$type: "com.atiproto.tip";
|
|
212
212
|
}, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
213
|
-
subject: l.DidString;
|
|
214
213
|
recordUri?: l.AtUriString
|
|
215
214
|
/**
|
|
216
215
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
217
216
|
*/
|
|
218
217
|
| undefined;
|
|
219
|
-
amount: number;
|
|
220
218
|
currency: string;
|
|
221
219
|
status: "pending" | "authorized" | "completed" | "failed" | "refunded";
|
|
220
|
+
createdAt: l.DatetimeString;
|
|
221
|
+
completedAt?: l.DatetimeString | undefined;
|
|
222
|
+
subject: l.DidString;
|
|
223
|
+
amount: number;
|
|
222
224
|
message?: string
|
|
223
225
|
/**
|
|
224
226
|
* Creation timestamp
|
|
225
227
|
*/
|
|
226
228
|
| undefined;
|
|
227
|
-
createdAt: l.DatetimeString;
|
|
228
|
-
completedAt?: l.DatetimeString | undefined;
|
|
229
229
|
$type: "com.atiproto.tip";
|
|
230
230
|
}>;
|