@atiproto/lexicons 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/index.js +1432 -885
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1432 -885
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/lexicons/com/atiproto/account/subscription/get.d.ts +2 -0
  6. package/dist/lexicons/com/atiproto/account/subscription/get.defs.d.ts +29 -0
  7. package/dist/lexicons/com/atiproto/account/subscription/list.d.ts +2 -0
  8. package/dist/lexicons/com/atiproto/account/subscription/list.defs.d.ts +31 -0
  9. package/dist/lexicons/com/atiproto/account/subscription/validate.d.ts +2 -0
  10. package/dist/lexicons/com/atiproto/account/subscription/validate.defs.d.ts +44 -0
  11. package/dist/lexicons/com/atiproto/account/subscription.d.ts +3 -0
  12. package/dist/lexicons/com/atiproto/account/tip/get.d.ts +2 -0
  13. package/dist/lexicons/com/atiproto/account/tip/get.defs.d.ts +35 -0
  14. package/dist/lexicons/com/atiproto/account/tip/list.d.ts +2 -0
  15. package/dist/lexicons/com/atiproto/account/tip/list.defs.d.ts +43 -0
  16. package/dist/lexicons/com/atiproto/account/tip/validate.d.ts +2 -0
  17. package/dist/lexicons/com/atiproto/account/tip/validate.defs.d.ts +50 -0
  18. package/dist/lexicons/com/atiproto/account/tip.d.ts +3 -0
  19. package/dist/lexicons/com/atiproto/account.d.ts +2 -0
  20. package/dist/lexicons/com/atiproto/feed/subscription/create.defs.d.ts +2 -0
  21. package/dist/lexicons/com/atiproto/feed/subscription/validate.d.ts +2 -0
  22. package/dist/lexicons/com/atiproto/feed/subscription/validate.defs.d.ts +44 -0
  23. package/dist/lexicons/com/atiproto/feed/subscription.d.ts +1 -0
  24. package/dist/lexicons/com/atiproto/feed/tip/create.defs.d.ts +2 -0
  25. package/dist/lexicons/com/atiproto/feed/tip/validate.d.ts +2 -0
  26. package/dist/lexicons/com/atiproto/feed/tip/validate.defs.d.ts +50 -0
  27. package/dist/lexicons/com/atiproto/feed/tip.d.ts +1 -0
  28. package/dist/lexicons/com/atiproto/repo/subscription/count.d.ts +2 -0
  29. package/dist/lexicons/com/atiproto/repo/subscription/count.defs.d.ts +42 -0
  30. package/dist/lexicons/com/atiproto/repo/subscription.d.ts +1 -2
  31. package/dist/lexicons/com/atiproto/repo/tip/count.d.ts +2 -0
  32. package/dist/lexicons/com/atiproto/repo/tip/count.defs.d.ts +48 -0
  33. package/dist/lexicons/com/atiproto/repo/tip.d.ts +1 -2
  34. package/dist/lexicons/com/atiproto/subscription.defs.d.ts +1 -1
  35. package/dist/lexicons/com/atiproto/tip.defs.d.ts +52 -12
  36. package/package.json +1 -1
@@ -7,7 +7,7 @@ type Main = {
7
7
  /**
8
8
  * DID of the user receiving the tip
9
9
  */
10
- subject: l.DidString;
10
+ subject?: l.DidString;
11
11
  /**
12
12
  * AT-URI of specific record being tipped
13
13
  */
@@ -54,7 +54,11 @@ export declare const $isTypeOf: <TValue extends {
54
54
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
55
55
  createdAt: l.DatetimeString;
56
56
  completedAt?: l.DatetimeString | undefined;
57
- subject: l.DidString;
57
+ subject?: l.DidString
58
+ /**
59
+ * AT-URI of specific record being tipped
60
+ */
61
+ | undefined;
58
62
  amount: number;
59
63
  message?: string
60
64
  /**
@@ -73,7 +77,11 @@ export declare const $isTypeOf: <TValue extends {
73
77
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
74
78
  createdAt: l.DatetimeString;
75
79
  completedAt?: l.DatetimeString | undefined;
76
- subject: l.DidString;
80
+ subject?: l.DidString
81
+ /**
82
+ * AT-URI of specific record being tipped
83
+ */
84
+ | undefined;
77
85
  amount: number;
78
86
  message?: string
79
87
  /**
@@ -93,7 +101,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
93
101
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
94
102
  createdAt: l.DatetimeString;
95
103
  completedAt?: l.DatetimeString | undefined;
96
- subject: l.DidString;
104
+ subject?: l.DidString
105
+ /**
106
+ * AT-URI of specific record being tipped
107
+ */
108
+ | undefined;
97
109
  amount: number;
98
110
  message?: string
99
111
  /**
@@ -111,7 +123,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
111
123
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
112
124
  createdAt: l.DatetimeString;
113
125
  completedAt?: l.DatetimeString | undefined;
114
- subject: l.DidString;
126
+ subject?: l.DidString
127
+ /**
128
+ * AT-URI of specific record being tipped
129
+ */
130
+ | undefined;
115
131
  amount: number;
116
132
  message?: string
117
133
  /**
@@ -129,7 +145,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
129
145
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
130
146
  createdAt: l.DatetimeString;
131
147
  completedAt?: l.DatetimeString | undefined;
132
- subject: l.DidString;
148
+ subject?: l.DidString
149
+ /**
150
+ * AT-URI of specific record being tipped
151
+ */
152
+ | undefined;
133
153
  amount: number;
134
154
  message?: string
135
155
  /**
@@ -147,7 +167,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
147
167
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
148
168
  createdAt: l.DatetimeString;
149
169
  completedAt?: l.DatetimeString | undefined;
150
- subject: l.DidString;
170
+ subject?: l.DidString
171
+ /**
172
+ * AT-URI of specific record being tipped
173
+ */
174
+ | undefined;
151
175
  amount: number;
152
176
  message?: string
153
177
  /**
@@ -165,7 +189,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
165
189
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
166
190
  createdAt: l.DatetimeString;
167
191
  completedAt?: l.DatetimeString | undefined;
168
- subject: l.DidString;
192
+ subject?: l.DidString
193
+ /**
194
+ * AT-URI of specific record being tipped
195
+ */
196
+ | undefined;
169
197
  amount: number;
170
198
  message?: string
171
199
  /**
@@ -183,7 +211,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
183
211
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
184
212
  createdAt: l.DatetimeString;
185
213
  completedAt?: l.DatetimeString | undefined;
186
- subject: l.DidString;
214
+ subject?: l.DidString
215
+ /**
216
+ * AT-URI of specific record being tipped
217
+ */
218
+ | undefined;
187
219
  amount: number;
188
220
  message?: string
189
221
  /**
@@ -201,7 +233,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
201
233
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
202
234
  createdAt: l.DatetimeString;
203
235
  completedAt?: l.DatetimeString | undefined;
204
- subject: l.DidString;
236
+ subject?: l.DidString
237
+ /**
238
+ * AT-URI of specific record being tipped
239
+ */
240
+ | undefined;
205
241
  amount: number;
206
242
  message?: string
207
243
  /**
@@ -219,7 +255,11 @@ export declare const $assert: (input: unknown, options?: l.ValidateOptions) => a
219
255
  status: "pending" | "authorized" | "completed" | "failed" | "refunded";
220
256
  createdAt: l.DatetimeString;
221
257
  completedAt?: l.DatetimeString | undefined;
222
- subject: l.DidString;
258
+ subject?: l.DidString
259
+ /**
260
+ * AT-URI of specific record being tipped
261
+ */
262
+ | undefined;
223
263
  amount: number;
224
264
  message?: string
225
265
  /**
@@ -234,7 +274,7 @@ type View = {
234
274
  /**
235
275
  * DID of the user receiving the tip
236
276
  */
237
- subject: l.DidString;
277
+ subject?: l.DidString;
238
278
  /**
239
279
  * AT-URI of specific record being tipped
240
280
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atiproto/lexicons",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "ATProto lexicon types and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",