@atiproto/lexicons 0.0.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.d.ts +2 -0
- package/dist/index.js +20 -0
- package/dist/lexicons/com/atiproto/account/cart/clone.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +49 -0
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.js +58 -0
- package/dist/lexicons/com/atiproto/account/cart/clone.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart/create.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +39 -0
- package/dist/lexicons/com/atiproto/account/cart/create.defs.js +54 -0
- package/dist/lexicons/com/atiproto/account/cart/create.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/get.defs.d.ts +47 -0
- package/dist/lexicons/com/atiproto/account/cart/get.defs.js +56 -0
- package/dist/lexicons/com/atiproto/account/cart/get.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/list.defs.d.ts +32 -0
- package/dist/lexicons/com/atiproto/account/cart/list.defs.js +56 -0
- package/dist/lexicons/com/atiproto/account/cart/list.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart/put.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/cart/put.defs.d.ts +37 -0
- package/dist/lexicons/com/atiproto/account/cart/put.defs.js +53 -0
- package/dist/lexicons/com/atiproto/account/cart/put.js +44 -0
- package/dist/lexicons/com/atiproto/account/cart.d.ts +5 -0
- package/dist/lexicons/com/atiproto/account/cart.js +44 -0
- package/dist/lexicons/com/atiproto/account/profile/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/profile/get.defs.d.ts +31 -0
- package/dist/lexicons/com/atiproto/account/profile/get.defs.js +53 -0
- package/dist/lexicons/com/atiproto/account/profile/get.js +44 -0
- package/dist/lexicons/com/atiproto/account/profile/put.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +47 -0
- package/dist/lexicons/com/atiproto/account/profile/put.defs.js +60 -0
- package/dist/lexicons/com/atiproto/account/profile/put.js +44 -0
- package/dist/lexicons/com/atiproto/account/profile.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account/profile.js +41 -0
- package/dist/lexicons/com/atiproto/account.d.ts +2 -0
- package/dist/lexicons/com/atiproto/account.js +41 -0
- package/dist/lexicons/com/atiproto/cart.d.ts +2 -0
- package/dist/lexicons/com/atiproto/cart.defs.d.ts +147 -0
- package/dist/lexicons/com/atiproto/cart.defs.js +27 -0
- package/dist/lexicons/com/atiproto/cart.js +44 -0
- package/dist/lexicons/com/atiproto/feed/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/list.defs.d.ts +18 -0
- package/dist/lexicons/com/atiproto/feed/list.defs.js +54 -0
- package/dist/lexicons/com/atiproto/feed/list.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +37 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.js +51 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +52 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.js +59 -0
- package/dist/lexicons/com/atiproto/feed/subscription/create.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.d.ts +35 -0
- package/dist/lexicons/com/atiproto/feed/subscription/get.defs.js +51 -0
- package/dist/lexicons/com/atiproto/feed/subscription/get.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.d.ts +28 -0
- package/dist/lexicons/com/atiproto/feed/subscription/list.defs.js +55 -0
- package/dist/lexicons/com/atiproto/feed/subscription/list.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription/put.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.d.ts +37 -0
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.js +53 -0
- package/dist/lexicons/com/atiproto/feed/subscription/put.js +44 -0
- package/dist/lexicons/com/atiproto/feed/subscription.d.ts +5 -0
- package/dist/lexicons/com/atiproto/feed/subscription.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +76 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.js +62 -0
- package/dist/lexicons/com/atiproto/feed/tip/create.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.d.ts +35 -0
- package/dist/lexicons/com/atiproto/feed/tip/get.defs.js +51 -0
- package/dist/lexicons/com/atiproto/feed/tip/get.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip/list.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.d.ts +17 -0
- package/dist/lexicons/com/atiproto/feed/tip/list.defs.js +50 -0
- package/dist/lexicons/com/atiproto/feed/tip/list.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip/put.d.ts +2 -0
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.d.ts +37 -0
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.js +53 -0
- package/dist/lexicons/com/atiproto/feed/tip/put.js +44 -0
- package/dist/lexicons/com/atiproto/feed/tip.d.ts +4 -0
- package/dist/lexicons/com/atiproto/feed/tip.js +43 -0
- package/dist/lexicons/com/atiproto/feed.d.ts +3 -0
- package/dist/lexicons/com/atiproto/feed.js +42 -0
- package/dist/lexicons/com/atiproto/profile.d.ts +2 -0
- package/dist/lexicons/com/atiproto/profile.defs.d.ts +377 -0
- package/dist/lexicons/com/atiproto/profile.defs.js +32 -0
- package/dist/lexicons/com/atiproto/profile.js +44 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.defs.d.ts +29 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.defs.js +50 -0
- package/dist/lexicons/com/atiproto/repo/profile/get.js +44 -0
- package/dist/lexicons/com/atiproto/repo/profile.d.ts +1 -0
- package/dist/lexicons/com/atiproto/repo/profile.js +40 -0
- package/dist/lexicons/com/atiproto/repo/subscription/search.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.d.ts +40 -0
- package/dist/lexicons/com/atiproto/repo/subscription/search.defs.js +59 -0
- package/dist/lexicons/com/atiproto/repo/subscription/search.js +44 -0
- package/dist/lexicons/com/atiproto/repo/subscription/validate.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.d.ts +36 -0
- package/dist/lexicons/com/atiproto/repo/subscription/validate.defs.js +22 -0
- package/dist/lexicons/com/atiproto/repo/subscription/validate.js +44 -0
- package/dist/lexicons/com/atiproto/repo/subscription.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/subscription.js +41 -0
- package/dist/lexicons/com/atiproto/repo/tip/search.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.d.ts +40 -0
- package/dist/lexicons/com/atiproto/repo/tip/search.defs.js +59 -0
- package/dist/lexicons/com/atiproto/repo/tip/search.js +44 -0
- package/dist/lexicons/com/atiproto/repo/tip/validate.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.d.ts +42 -0
- package/dist/lexicons/com/atiproto/repo/tip/validate.defs.js +23 -0
- package/dist/lexicons/com/atiproto/repo/tip/validate.js +44 -0
- package/dist/lexicons/com/atiproto/repo/tip.d.ts +2 -0
- package/dist/lexicons/com/atiproto/repo/tip.js +41 -0
- package/dist/lexicons/com/atiproto/repo.d.ts +3 -0
- package/dist/lexicons/com/atiproto/repo.js +42 -0
- package/dist/lexicons/com/atiproto/subscription.d.ts +2 -0
- package/dist/lexicons/com/atiproto/subscription.defs.d.ts +244 -0
- package/dist/lexicons/com/atiproto/subscription.defs.js +24 -0
- package/dist/lexicons/com/atiproto/subscription.js +44 -0
- package/dist/lexicons/com/atiproto/tip.d.ts +2 -0
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +230 -0
- package/dist/lexicons/com/atiproto/tip.defs.js +29 -0
- package/dist/lexicons/com/atiproto/tip.js +44 -0
- package/dist/lexicons/com/atiproto.d.ts +7 -0
- package/dist/lexicons/com/atiproto.js +46 -0
- package/dist/lexicons/com.d.ts +1 -0
- package/dist/lexicons/com.js +40 -0
- package/dist/lexicons/index.d.ts +1 -0
- package/dist/lexicons/index.js +40 -0
- package/dist/schemas/account/cart/clone.json +75 -0
- package/dist/schemas/account/cart/create.json +52 -0
- package/dist/schemas/account/cart/get.json +66 -0
- package/dist/schemas/account/cart/list.json +73 -0
- package/dist/schemas/account/cart/put.json +47 -0
- package/dist/schemas/account/profile/get.json +42 -0
- package/dist/schemas/account/profile/put.json +84 -0
- package/dist/schemas/cart.json +74 -0
- package/dist/schemas/feed/list.json +49 -0
- package/dist/schemas/feed/subscription/cancel.json +48 -0
- package/dist/schemas/feed/subscription/create.json +76 -0
- package/dist/schemas/feed/subscription/get.json +45 -0
- package/dist/schemas/feed/subscription/list.json +64 -0
- package/dist/schemas/feed/subscription/put.json +47 -0
- package/dist/schemas/feed/tip/create.json +87 -0
- package/dist/schemas/feed/tip/get.json +45 -0
- package/dist/schemas/feed/tip/list.json +49 -0
- package/dist/schemas/feed/tip/put.json +47 -0
- package/dist/schemas/profile.json +88 -0
- package/dist/schemas/repo/profile/get.json +40 -0
- package/dist/schemas/repo/subscription/search.json +67 -0
- package/dist/schemas/repo/subscription/validate.json +55 -0
- package/dist/schemas/repo/tip/search.json +67 -0
- package/dist/schemas/repo/tip/validate.json +60 -0
- package/dist/schemas/subscription.json +67 -0
- package/dist/schemas/tip.json +57 -0
- package/dist/schemas.d.ts +2 -0
- package/dist/schemas.js +60 -0
- package/package.json +31 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
declare const $nsid = "com.atiproto.profile";
|
|
3
|
+
export { $nsid };
|
|
4
|
+
/** A record representing a user's tipping/subscription settings */
|
|
5
|
+
type Main = {
|
|
6
|
+
$type: 'com.atiproto.profile';
|
|
7
|
+
/**
|
|
8
|
+
* Whether user accepts tips (default: true)
|
|
9
|
+
*/
|
|
10
|
+
acceptsTips?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether user accepts subscriptions (default: true)
|
|
13
|
+
*/
|
|
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
|
+
/**
|
|
24
|
+
* Opt out of payment receipt DMs (default: false)
|
|
25
|
+
*/
|
|
26
|
+
disableReceiptNotifications?: boolean;
|
|
27
|
+
subscriptionTiers?: SubscriptionTier[];
|
|
28
|
+
/**
|
|
29
|
+
* Creation timestamp
|
|
30
|
+
*/
|
|
31
|
+
createdAt: l.DatetimeString;
|
|
32
|
+
/**
|
|
33
|
+
* Last update timestamp
|
|
34
|
+
*/
|
|
35
|
+
updatedAt?: l.DatetimeString;
|
|
36
|
+
};
|
|
37
|
+
export type { Main };
|
|
38
|
+
/** A record representing a user's tipping/subscription settings */
|
|
39
|
+
declare const main: l.RecordSchema<"literal:self", "com.atiproto.profile", l.Validator<Omit<Main, "$type">, Omit<Main, "$type">>>;
|
|
40
|
+
export { main };
|
|
41
|
+
export declare const $isTypeOf: <TValue extends {
|
|
42
|
+
$type?: unknown;
|
|
43
|
+
}>(value: TValue) => value is l.TypedRecord<"com.atiproto.profile", TValue>, $build: {
|
|
44
|
+
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
45
|
+
createdAt: l.DatetimeString;
|
|
46
|
+
acceptsTips?: boolean
|
|
47
|
+
/**
|
|
48
|
+
* Whether user accepts subscriptions (default: true)
|
|
49
|
+
*/
|
|
50
|
+
| undefined;
|
|
51
|
+
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
|
+
/**
|
|
63
|
+
* Opt out of payment receipt DMs (default: false)
|
|
64
|
+
*/
|
|
65
|
+
| undefined;
|
|
66
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
67
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
68
|
+
/**
|
|
69
|
+
* Creation timestamp
|
|
70
|
+
*/
|
|
71
|
+
| undefined;
|
|
72
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
73
|
+
$type: "com.atiproto.profile";
|
|
74
|
+
};
|
|
75
|
+
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
76
|
+
createdAt: l.DatetimeString;
|
|
77
|
+
acceptsTips?: boolean
|
|
78
|
+
/**
|
|
79
|
+
* Whether user accepts subscriptions (default: true)
|
|
80
|
+
*/
|
|
81
|
+
| undefined;
|
|
82
|
+
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
|
+
/**
|
|
94
|
+
* Opt out of payment receipt DMs (default: false)
|
|
95
|
+
*/
|
|
96
|
+
| undefined;
|
|
97
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
98
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
99
|
+
/**
|
|
100
|
+
* Creation timestamp
|
|
101
|
+
*/
|
|
102
|
+
| undefined;
|
|
103
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
104
|
+
$type: "com.atiproto.profile";
|
|
105
|
+
};
|
|
106
|
+
}, $type: "com.atiproto.profile";
|
|
107
|
+
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
108
|
+
createdAt: l.DatetimeString;
|
|
109
|
+
acceptsTips?: boolean
|
|
110
|
+
/**
|
|
111
|
+
* Whether user accepts subscriptions (default: true)
|
|
112
|
+
*/
|
|
113
|
+
| undefined;
|
|
114
|
+
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
|
+
/**
|
|
126
|
+
* Opt out of payment receipt DMs (default: false)
|
|
127
|
+
*/
|
|
128
|
+
| undefined;
|
|
129
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
130
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
131
|
+
/**
|
|
132
|
+
* Creation timestamp
|
|
133
|
+
*/
|
|
134
|
+
| undefined;
|
|
135
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
136
|
+
$type: "com.atiproto.profile";
|
|
137
|
+
}, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
138
|
+
createdAt: l.DatetimeString;
|
|
139
|
+
acceptsTips?: boolean
|
|
140
|
+
/**
|
|
141
|
+
* Whether user accepts subscriptions (default: true)
|
|
142
|
+
*/
|
|
143
|
+
| undefined;
|
|
144
|
+
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
|
+
/**
|
|
156
|
+
* Opt out of payment receipt DMs (default: false)
|
|
157
|
+
*/
|
|
158
|
+
| undefined;
|
|
159
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
160
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
161
|
+
/**
|
|
162
|
+
* Creation timestamp
|
|
163
|
+
*/
|
|
164
|
+
| undefined;
|
|
165
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
166
|
+
$type: "com.atiproto.profile";
|
|
167
|
+
}, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
168
|
+
createdAt: l.DatetimeString;
|
|
169
|
+
acceptsTips?: boolean
|
|
170
|
+
/**
|
|
171
|
+
* Whether user accepts subscriptions (default: true)
|
|
172
|
+
*/
|
|
173
|
+
| undefined;
|
|
174
|
+
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
|
+
/**
|
|
186
|
+
* Opt out of payment receipt DMs (default: false)
|
|
187
|
+
*/
|
|
188
|
+
| undefined;
|
|
189
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
190
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
191
|
+
/**
|
|
192
|
+
* Creation timestamp
|
|
193
|
+
*/
|
|
194
|
+
| undefined;
|
|
195
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
196
|
+
$type: "com.atiproto.profile";
|
|
197
|
+
}) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
198
|
+
createdAt: l.DatetimeString;
|
|
199
|
+
acceptsTips?: boolean
|
|
200
|
+
/**
|
|
201
|
+
* Whether user accepts subscriptions (default: true)
|
|
202
|
+
*/
|
|
203
|
+
| undefined;
|
|
204
|
+
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
|
+
/**
|
|
216
|
+
* Opt out of payment receipt DMs (default: false)
|
|
217
|
+
*/
|
|
218
|
+
| undefined;
|
|
219
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
220
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
221
|
+
/**
|
|
222
|
+
* Creation timestamp
|
|
223
|
+
*/
|
|
224
|
+
| undefined;
|
|
225
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
226
|
+
$type: "com.atiproto.profile";
|
|
227
|
+
}, $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
228
|
+
createdAt: l.DatetimeString;
|
|
229
|
+
acceptsTips?: boolean
|
|
230
|
+
/**
|
|
231
|
+
* Whether user accepts subscriptions (default: true)
|
|
232
|
+
*/
|
|
233
|
+
| undefined;
|
|
234
|
+
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
|
+
/**
|
|
246
|
+
* Opt out of payment receipt DMs (default: false)
|
|
247
|
+
*/
|
|
248
|
+
| undefined;
|
|
249
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
250
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
251
|
+
/**
|
|
252
|
+
* Creation timestamp
|
|
253
|
+
*/
|
|
254
|
+
| undefined;
|
|
255
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
256
|
+
$type: "com.atiproto.profile";
|
|
257
|
+
}, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
258
|
+
createdAt: l.DatetimeString;
|
|
259
|
+
acceptsTips?: boolean
|
|
260
|
+
/**
|
|
261
|
+
* Whether user accepts subscriptions (default: true)
|
|
262
|
+
*/
|
|
263
|
+
| undefined;
|
|
264
|
+
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
|
+
/**
|
|
276
|
+
* Opt out of payment receipt DMs (default: false)
|
|
277
|
+
*/
|
|
278
|
+
| undefined;
|
|
279
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
280
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
281
|
+
/**
|
|
282
|
+
* Creation timestamp
|
|
283
|
+
*/
|
|
284
|
+
| undefined;
|
|
285
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
286
|
+
$type: "com.atiproto.profile";
|
|
287
|
+
}>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
288
|
+
createdAt: l.DatetimeString;
|
|
289
|
+
acceptsTips?: boolean
|
|
290
|
+
/**
|
|
291
|
+
* Whether user accepts subscriptions (default: true)
|
|
292
|
+
*/
|
|
293
|
+
| undefined;
|
|
294
|
+
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
|
+
/**
|
|
306
|
+
* Opt out of payment receipt DMs (default: false)
|
|
307
|
+
*/
|
|
308
|
+
| undefined;
|
|
309
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
310
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
311
|
+
/**
|
|
312
|
+
* Creation timestamp
|
|
313
|
+
*/
|
|
314
|
+
| undefined;
|
|
315
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
316
|
+
$type: "com.atiproto.profile";
|
|
317
|
+
}, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
318
|
+
createdAt: l.DatetimeString;
|
|
319
|
+
acceptsTips?: boolean
|
|
320
|
+
/**
|
|
321
|
+
* Whether user accepts subscriptions (default: true)
|
|
322
|
+
*/
|
|
323
|
+
| undefined;
|
|
324
|
+
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
|
+
/**
|
|
336
|
+
* Opt out of payment receipt DMs (default: false)
|
|
337
|
+
*/
|
|
338
|
+
| undefined;
|
|
339
|
+
disableReceiptNotifications?: boolean | undefined;
|
|
340
|
+
subscriptionTiers?: SubscriptionTier[]
|
|
341
|
+
/**
|
|
342
|
+
* Creation timestamp
|
|
343
|
+
*/
|
|
344
|
+
| undefined;
|
|
345
|
+
updatedAt?: l.DatetimeString | undefined;
|
|
346
|
+
$type: "com.atiproto.profile";
|
|
347
|
+
}>;
|
|
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 };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.subscriptionTier = exports.$safeValidate = exports.$validate = exports.$safeParse = exports.$parse = exports.$matches = exports.$ifMatches = exports.$cast = exports.$check = exports.$assert = exports.$type = exports.$build = exports.$isTypeOf = exports.main = exports.$nsid = void 0;
|
|
7
|
+
const lex_1 = require("@atproto/lex");
|
|
8
|
+
const $nsid = 'com.atiproto.profile';
|
|
9
|
+
exports.$nsid = $nsid;
|
|
10
|
+
/** A record representing a user's tipping/subscription settings */
|
|
11
|
+
const main = lex_1.l.record('literal:self', $nsid, lex_1.l.object({
|
|
12
|
+
acceptsTips: lex_1.l.optional(lex_1.l.boolean()),
|
|
13
|
+
acceptsSubscriptions: lex_1.l.optional(lex_1.l.boolean()),
|
|
14
|
+
allowZeroTips: lex_1.l.optional(lex_1.l.boolean()),
|
|
15
|
+
minimumTip: lex_1.l.optional(lex_1.l.integer()),
|
|
16
|
+
disableReceiptNotifications: lex_1.l.optional(lex_1.l.boolean()),
|
|
17
|
+
subscriptionTiers: lex_1.l.optional(lex_1.l.array(lex_1.l.ref((() => subscriptionTier)))),
|
|
18
|
+
createdAt: lex_1.l.string({ format: 'datetime' }),
|
|
19
|
+
updatedAt: lex_1.l.optional(lex_1.l.string({ format: 'datetime' })),
|
|
20
|
+
}));
|
|
21
|
+
exports.main = main;
|
|
22
|
+
exports.$isTypeOf = main.isTypeOf.bind(main), exports.$build = main.build.bind(main), exports.$type = main.$type;
|
|
23
|
+
exports.$assert = main.assert.bind(main), exports.$check = main.check.bind(main), exports.$cast = main.cast.bind(main), exports.$ifMatches = main.ifMatches.bind(main), exports.$matches = main.matches.bind(main), exports.$parse = main.parse.bind(main), exports.$safeParse = main.safeParse.bind(main), exports.$validate = main.validate.bind(main), exports.$safeValidate = main.safeValidate.bind(main);
|
|
24
|
+
const subscriptionTier = lex_1.l.typedObject($nsid, 'subscriptionTier', lex_1.l.object({
|
|
25
|
+
id: lex_1.l.string(),
|
|
26
|
+
name: lex_1.l.string(),
|
|
27
|
+
amount: lex_1.l.integer({ minimum: 0 }),
|
|
28
|
+
interval: lex_1.l.string(),
|
|
29
|
+
description: lex_1.l.optional(lex_1.l.string()),
|
|
30
|
+
benefits: lex_1.l.optional(lex_1.l.array(lex_1.l.string())),
|
|
31
|
+
}));
|
|
32
|
+
exports.subscriptionTier = subscriptionTier;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.$defs = void 0;
|
|
43
|
+
__exportStar(require("./profile.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./profile.defs.js"));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoProfile from '../../profile.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.repo.profile.get";
|
|
4
|
+
export { $nsid };
|
|
5
|
+
/** Look up public profile information for any user */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.repo.profile.get", l.ParamsSchema<{
|
|
7
|
+
readonly did: l.StringSchema<{
|
|
8
|
+
readonly format: "did";
|
|
9
|
+
}>;
|
|
10
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
11
|
+
did: l.StringSchema<{
|
|
12
|
+
readonly format: "did";
|
|
13
|
+
}>;
|
|
14
|
+
profile: l.RefSchema<l.Validator<AtiprotoProfile.Main, AtiprotoProfile.Main>>;
|
|
15
|
+
}>>, undefined>;
|
|
16
|
+
export { main };
|
|
17
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
18
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
19
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
20
|
+
export declare const $lxm: "com.atiproto.repo.profile.get", $params: l.ParamsSchema<{
|
|
21
|
+
readonly did: l.StringSchema<{
|
|
22
|
+
readonly format: "did";
|
|
23
|
+
}>;
|
|
24
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
25
|
+
did: l.StringSchema<{
|
|
26
|
+
readonly format: "did";
|
|
27
|
+
}>;
|
|
28
|
+
profile: l.RefSchema<l.Validator<AtiprotoProfile.Main, AtiprotoProfile.Main>>;
|
|
29
|
+
}>>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.$output = exports.$params = exports.$lxm = exports.main = exports.$nsid = void 0;
|
|
40
|
+
const lex_1 = require("@atproto/lex");
|
|
41
|
+
const AtiprotoProfile = __importStar(require("../../profile.defs.js"));
|
|
42
|
+
const $nsid = 'com.atiproto.repo.profile.get';
|
|
43
|
+
exports.$nsid = $nsid;
|
|
44
|
+
/** Look up public profile information for any user */
|
|
45
|
+
const main = lex_1.l.query($nsid, lex_1.l.params({ did: lex_1.l.string({ format: 'did' }) }), lex_1.l.jsonPayload({
|
|
46
|
+
did: lex_1.l.string({ format: 'did' }),
|
|
47
|
+
profile: lex_1.l.ref((() => AtiprotoProfile.main)),
|
|
48
|
+
}));
|
|
49
|
+
exports.main = main;
|
|
50
|
+
exports.$lxm = main.nsid, exports.$params = main.parameters, exports.$output = main.output;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
25
|
+
var ownKeys = function(o) {
|
|
26
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
27
|
+
var ar = [];
|
|
28
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
29
|
+
return ar;
|
|
30
|
+
};
|
|
31
|
+
return ownKeys(o);
|
|
32
|
+
};
|
|
33
|
+
return function (mod) {
|
|
34
|
+
if (mod && mod.__esModule) return mod;
|
|
35
|
+
var result = {};
|
|
36
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
37
|
+
__setModuleDefault(result, mod);
|
|
38
|
+
return result;
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.$defs = void 0;
|
|
43
|
+
__exportStar(require("./get.defs.js"), exports);
|
|
44
|
+
exports.$defs = __importStar(require("./get.defs.js"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as 'get' from './profile/get.js';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* THIS FILE WAS GENERATED BY "@atproto/lex". DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports["get"] = void 0;
|
|
40
|
+
exports["get"] = __importStar(require("./profile/get.js"));
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { l } from '@atproto/lex';
|
|
2
|
+
import * as AtiprotoSubscription from '../../subscription.defs.js';
|
|
3
|
+
declare const $nsid = "com.atiproto.repo.subscription.search";
|
|
4
|
+
export { $nsid };
|
|
5
|
+
/** Search for subscriptions to a user (subscriptions where subject matches the given DID) */
|
|
6
|
+
declare const main: l.Query<"com.atiproto.repo.subscription.search", l.ParamsSchema<{
|
|
7
|
+
readonly subject: l.StringSchema<{
|
|
8
|
+
readonly format: "did";
|
|
9
|
+
}>;
|
|
10
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
11
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
12
|
+
}>, l.Payload<"application/json", l.ObjectSchema<{
|
|
13
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
|
|
14
|
+
cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
15
|
+
}>>, undefined>;
|
|
16
|
+
export { main };
|
|
17
|
+
export type $Params = l.InferMethodParams<typeof main>;
|
|
18
|
+
export type $Output<B = l.BinaryData> = l.InferMethodOutput<typeof main, B>;
|
|
19
|
+
export type $OutputBody<B = l.BinaryData> = l.InferMethodOutputBody<typeof main, B>;
|
|
20
|
+
export declare const $lxm: "com.atiproto.repo.subscription.search", $params: l.ParamsSchema<{
|
|
21
|
+
readonly subject: l.StringSchema<{
|
|
22
|
+
readonly format: "did";
|
|
23
|
+
}>;
|
|
24
|
+
readonly cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
25
|
+
readonly limit: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
|
|
26
|
+
}>, $output: l.Payload<"application/json", l.ObjectSchema<{
|
|
27
|
+
subscriptions: l.ArraySchema<l.RefSchema<l.Validator<SubscriptionResponse, SubscriptionResponse>>>;
|
|
28
|
+
cursor: l.OptionalSchema<l.StringSchema<{}>>;
|
|
29
|
+
}>>;
|
|
30
|
+
type SubscriptionResponse = {
|
|
31
|
+
$type?: 'com.atiproto.repo.subscription.search#subscriptionResponse';
|
|
32
|
+
/**
|
|
33
|
+
* AT-URI of the subscription record
|
|
34
|
+
*/
|
|
35
|
+
uri: l.AtUriString;
|
|
36
|
+
record: AtiprotoSubscription.Main;
|
|
37
|
+
};
|
|
38
|
+
export type { SubscriptionResponse };
|
|
39
|
+
declare const subscriptionResponse: l.TypedObjectSchema<"com.atiproto.repo.subscription.search#subscriptionResponse", l.Validator<SubscriptionResponse, SubscriptionResponse>>;
|
|
40
|
+
export { subscriptionResponse };
|