@atiproto/lexicons 0.7.2 → 0.8.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 +1109 -594
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1109 -594
- package/dist/index.mjs.map +1 -1
- package/dist/lexicons/com/atiproto/account/cart/clone.defs.d.ts +19 -14
- package/dist/lexicons/com/atiproto/account/cart/create.defs.d.ts +15 -10
- package/dist/lexicons/com/atiproto/account/cart/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/account/profile/put.defs.d.ts +19 -14
- package/dist/lexicons/com/atiproto/actions.d.ts +2 -0
- package/dist/lexicons/com/atiproto/actions.defs.d.ts +120 -0
- package/dist/lexicons/com/atiproto/feed/subscription/cancel.defs.d.ts +15 -10
- package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +11 -6
- package/dist/lexicons/com/atiproto/feed/subscription/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +11 -6
- package/dist/lexicons/com/atiproto/feed/tip/put.defs.d.ts +13 -8
- package/dist/lexicons/com/atiproto/tip.defs.d.ts +27 -27
- package/dist/lexicons/com/atiproto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -45,6 +45,11 @@ 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
|
+
message?: string
|
|
49
|
+
/**
|
|
50
|
+
* Creation timestamp
|
|
51
|
+
*/
|
|
52
|
+
| undefined;
|
|
48
53
|
recordUri?: l.AtUriString
|
|
49
54
|
/**
|
|
50
55
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -60,14 +65,14 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
60
65
|
*/
|
|
61
66
|
| undefined;
|
|
62
67
|
amount: number;
|
|
68
|
+
$type: "com.atiproto.tip";
|
|
69
|
+
};
|
|
70
|
+
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
63
71
|
message?: string
|
|
64
72
|
/**
|
|
65
73
|
* Creation timestamp
|
|
66
74
|
*/
|
|
67
75
|
| undefined;
|
|
68
|
-
$type: "com.atiproto.tip";
|
|
69
|
-
};
|
|
70
|
-
(input: Omit<Omit<Main, "$type">, "$type">): {
|
|
71
76
|
recordUri?: l.AtUriString
|
|
72
77
|
/**
|
|
73
78
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -83,15 +88,15 @@ export declare const $isTypeOf: <TValue extends {
|
|
|
83
88
|
*/
|
|
84
89
|
| undefined;
|
|
85
90
|
amount: number;
|
|
86
|
-
message?: string
|
|
87
|
-
/**
|
|
88
|
-
* Creation timestamp
|
|
89
|
-
*/
|
|
90
|
-
| undefined;
|
|
91
91
|
$type: "com.atiproto.tip";
|
|
92
92
|
};
|
|
93
93
|
}, $type: "com.atiproto.tip";
|
|
94
94
|
export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is {
|
|
95
|
+
message?: string
|
|
96
|
+
/**
|
|
97
|
+
* Creation timestamp
|
|
98
|
+
*/
|
|
99
|
+
| undefined;
|
|
95
100
|
recordUri?: l.AtUriString
|
|
96
101
|
/**
|
|
97
102
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -107,13 +112,13 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
107
112
|
*/
|
|
108
113
|
| undefined;
|
|
109
114
|
amount: number;
|
|
115
|
+
$type: "com.atiproto.tip";
|
|
116
|
+
}, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
110
117
|
message?: string
|
|
111
118
|
/**
|
|
112
119
|
* Creation timestamp
|
|
113
120
|
*/
|
|
114
121
|
| undefined;
|
|
115
|
-
$type: "com.atiproto.tip";
|
|
116
|
-
}, $check: (input: unknown, options?: l.ValidateOptions) => void, $cast: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
117
122
|
recordUri?: l.AtUriString
|
|
118
123
|
/**
|
|
119
124
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -129,13 +134,13 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
129
134
|
*/
|
|
130
135
|
| undefined;
|
|
131
136
|
amount: number;
|
|
137
|
+
$type: "com.atiproto.tip";
|
|
138
|
+
}, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
132
139
|
message?: string
|
|
133
140
|
/**
|
|
134
141
|
* Creation timestamp
|
|
135
142
|
*/
|
|
136
143
|
| undefined;
|
|
137
|
-
$type: "com.atiproto.tip";
|
|
138
|
-
}, $ifMatches: <I>(input: I, options?: l.ValidateOptions) => (I & {
|
|
139
144
|
recordUri?: l.AtUriString
|
|
140
145
|
/**
|
|
141
146
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -151,13 +156,13 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
151
156
|
*/
|
|
152
157
|
| undefined;
|
|
153
158
|
amount: number;
|
|
159
|
+
$type: "com.atiproto.tip";
|
|
160
|
+
}) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
154
161
|
message?: string
|
|
155
162
|
/**
|
|
156
163
|
* Creation timestamp
|
|
157
164
|
*/
|
|
158
165
|
| undefined;
|
|
159
|
-
$type: "com.atiproto.tip";
|
|
160
|
-
}) | undefined, $matches: <I>(input: I, options?: l.ValidateOptions) => input is I & {
|
|
161
166
|
recordUri?: l.AtUriString
|
|
162
167
|
/**
|
|
163
168
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -173,13 +178,13 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
173
178
|
*/
|
|
174
179
|
| undefined;
|
|
175
180
|
amount: number;
|
|
181
|
+
$type: "com.atiproto.tip";
|
|
182
|
+
}, $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
176
183
|
message?: string
|
|
177
184
|
/**
|
|
178
185
|
* Creation timestamp
|
|
179
186
|
*/
|
|
180
187
|
| undefined;
|
|
181
|
-
$type: "com.atiproto.tip";
|
|
182
|
-
}, $parse: (input: unknown, options?: l.ParseOptions) => {
|
|
183
188
|
recordUri?: l.AtUriString
|
|
184
189
|
/**
|
|
185
190
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -195,13 +200,13 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
195
200
|
*/
|
|
196
201
|
| undefined;
|
|
197
202
|
amount: number;
|
|
203
|
+
$type: "com.atiproto.tip";
|
|
204
|
+
}, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
198
205
|
message?: string
|
|
199
206
|
/**
|
|
200
207
|
* Creation timestamp
|
|
201
208
|
*/
|
|
202
209
|
| undefined;
|
|
203
|
-
$type: "com.atiproto.tip";
|
|
204
|
-
}, $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{
|
|
205
210
|
recordUri?: l.AtUriString
|
|
206
211
|
/**
|
|
207
212
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -217,13 +222,13 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
217
222
|
*/
|
|
218
223
|
| undefined;
|
|
219
224
|
amount: number;
|
|
225
|
+
$type: "com.atiproto.tip";
|
|
226
|
+
}>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
220
227
|
message?: string
|
|
221
228
|
/**
|
|
222
229
|
* Creation timestamp
|
|
223
230
|
*/
|
|
224
231
|
| undefined;
|
|
225
|
-
$type: "com.atiproto.tip";
|
|
226
|
-
}>, $validate: <I>(input: I, options?: l.ValidateOptions) => I & {
|
|
227
232
|
recordUri?: l.AtUriString
|
|
228
233
|
/**
|
|
229
234
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -239,13 +244,13 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
239
244
|
*/
|
|
240
245
|
| undefined;
|
|
241
246
|
amount: number;
|
|
247
|
+
$type: "com.atiproto.tip";
|
|
248
|
+
}, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
242
249
|
message?: string
|
|
243
250
|
/**
|
|
244
251
|
* Creation timestamp
|
|
245
252
|
*/
|
|
246
253
|
| undefined;
|
|
247
|
-
$type: "com.atiproto.tip";
|
|
248
|
-
}, $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.ValidationResult<I & {
|
|
249
254
|
recordUri?: l.AtUriString
|
|
250
255
|
/**
|
|
251
256
|
* Tip amount in cents (0 when recipient allows zero tips)
|
|
@@ -261,11 +266,6 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
|
|
|
261
266
|
*/
|
|
262
267
|
| undefined;
|
|
263
268
|
amount: number;
|
|
264
|
-
message?: string
|
|
265
|
-
/**
|
|
266
|
-
* Creation timestamp
|
|
267
|
-
*/
|
|
268
|
-
| undefined;
|
|
269
269
|
$type: "com.atiproto.tip";
|
|
270
270
|
}>;
|
|
271
271
|
/** View of a tip record for use in API responses */
|