e621 3.2.0 → 3.2.2

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 (45) hide show
  1. package/README.md +18 -2
  2. package/dist/browser/e621.js +177 -113
  3. package/dist/browser/e621.js.map +3 -3
  4. package/dist/lib/client.d.ts +18 -2
  5. package/dist/lib/client.js +9 -2
  6. package/dist/lib/generated/schemas.d.ts +7 -2
  7. package/dist/lib/generated/schemas.js +17 -10
  8. package/dist/lib/generated/types.d.ts +53 -57
  9. package/dist/lib/index.d.ts +4 -3
  10. package/dist/lib/index.js +2 -2
  11. package/dist/lib/models/Base.browser.d.ts +4 -3
  12. package/dist/lib/models/Base.browser.js +1 -1
  13. package/dist/lib/models/Base.d.ts +4 -3
  14. package/dist/lib/models/Base.js +1 -1
  15. package/dist/lib/models/BasicPost.d.ts +2 -1
  16. package/dist/lib/models/BasicPost.js +1 -1
  17. package/dist/lib/models/ExtendedPost.d.ts +2 -1
  18. package/dist/lib/models/ExtendedPost.js +1 -1
  19. package/dist/lib/models/Post.d.ts +2 -1
  20. package/dist/lib/models/Post.js +1 -1
  21. package/dist/lib/models/ThumbnailPost.d.ts +2 -1
  22. package/dist/lib/models/ThumbnailPost.js +1 -1
  23. package/dist/lib/models/posts/Actions.d.ts +11 -11
  24. package/dist/lib/models/posts/Actions.js +1 -1
  25. package/dist/lib/modules/Base.d.ts +4 -3
  26. package/dist/lib/modules/Base.js +6 -3
  27. package/dist/lib/modules/Favorites.d.ts +8 -3
  28. package/dist/lib/modules/Favorites.js +12 -4
  29. package/dist/lib/modules/IqdbQueries.d.ts +11 -6
  30. package/dist/lib/modules/IqdbQueries.js +12 -4
  31. package/dist/lib/modules/Popular.d.ts +8 -3
  32. package/dist/lib/modules/Popular.js +12 -4
  33. package/dist/lib/modules/Posts.d.ts +27 -18
  34. package/dist/lib/modules/Posts.js +46 -22
  35. package/dist/lib/modules/Uploads.d.ts +3 -3
  36. package/dist/lib/modules/Uploads.js +1 -1
  37. package/dist/lib/modules/index.d.ts +8 -7
  38. package/dist/lib/modules/index.js +72 -69
  39. package/dist/lib/modules/posts/Format.d.ts +15 -5
  40. package/dist/lib/modules/posts/Format.js +1 -1
  41. package/dist/lib/standalone.d.ts +8 -2
  42. package/dist/lib/standalone.js +10 -1
  43. package/dist/lib/version.d.ts +1 -1
  44. package/dist/lib/version.js +1 -1
  45. package/package.json +11 -5
@@ -17,7 +17,7 @@ export type PostEventActions = 'deleted' | 'undeleted' | 'approved' | 'unapprove
17
17
  export type Ratings = 's' | 'q' | 'e';
18
18
  export type TagCategories = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
19
19
  export type FeedbackCategories = 'negative' | 'neutral' | 'positive';
20
- export type TagRequestStatuses = 'active' | 'deleted' | 'processing' | 'queued' | 'retired' | 'error' | 'pending';
20
+ export type TagRequestStatuses = 'active' | 'deleted' | 'processing' | 'queued' | 'retired' | 'pending' | `error: ${string}`;
21
21
  export type WarningTypes = 'warning' | 'record' | 'ban';
22
22
  export type PoolCategories = 'collection' | 'series';
23
23
  export type TicketTypes = 'blip' | 'comment' | 'dmail' | 'forum' | 'pool' | 'post' | 'set' | 'user' | 'wiki' | 'replacement';
@@ -1230,7 +1230,7 @@ export type VoteTrendUploader = {
1230
1230
  /**
1231
1231
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1232
1232
  */
1233
- export type IdQuery = number | string;
1233
+ export type IdQuery = string | number;
1234
1234
  /**
1235
1235
  * The maximum number of results to return. Between 0 and 320.
1236
1236
  */
@@ -1279,7 +1279,7 @@ export type ApiKeysIndexData = {
1279
1279
  /**
1280
1280
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1281
1281
  */
1282
- 'search[id]'?: number | string;
1282
+ 'search[id]'?: string | number;
1283
1283
  'search[order]'?: 'id' | 'id_asc' | 'id_desc' | 'name' | 'name_asc' | 'name_desc' | 'created_at' | 'created_at_asc' | 'created_at_desc' | 'updated_at' | 'updated_at_asc' | 'updated_at_desc' | 'expires_at' | 'expires_at_asc' | 'expires_at_desc' | 'last_used_at' | 'last_used_at_asc' | 'last_used_at_desc';
1284
1284
  'search[name_matches]'?: string;
1285
1285
  'search[is_expired]'?: boolean;
@@ -1418,7 +1418,7 @@ export type AppealsIndexData = {
1418
1418
  /**
1419
1419
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1420
1420
  */
1421
- 'search[id]'?: number | string;
1421
+ 'search[id]'?: string | number;
1422
1422
  /**
1423
1423
  * The order of the results.
1424
1424
  */
@@ -1608,7 +1608,7 @@ export type ArtistsIndexData = {
1608
1608
  /**
1609
1609
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1610
1610
  */
1611
- 'search[id]'?: number | string;
1611
+ 'search[id]'?: string | number;
1612
1612
  'search[order]'?: 'id_asc' | 'id_desc' | 'updated_at' | 'name' | 'post_count';
1613
1613
  'search[name]'?: string;
1614
1614
  'search[group_name]'?: string;
@@ -1838,7 +1838,7 @@ export type ArtistVersionsIndexData = {
1838
1838
  /**
1839
1839
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1840
1840
  */
1841
- 'search[id]'?: number | string;
1841
+ 'search[id]'?: string | number;
1842
1842
  /**
1843
1843
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
1844
1844
  */
@@ -1888,7 +1888,7 @@ export type ArtistUrlsIndexData = {
1888
1888
  /**
1889
1889
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1890
1890
  */
1891
- 'search[id]'?: number | string;
1891
+ 'search[id]'?: string | number;
1892
1892
  /**
1893
1893
  * The order of the results.
1894
1894
  */
@@ -1960,7 +1960,7 @@ export type AvoidPostingsIndexData = {
1960
1960
  /**
1961
1961
  * Search for a specific id. Multiple can be separated by commas, up to 320.
1962
1962
  */
1963
- 'search[id]'?: number | string;
1963
+ 'search[id]'?: string | number;
1964
1964
  /**
1965
1965
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
1966
1966
  */
@@ -2225,7 +2225,7 @@ export type AvoidPostingVersionsIndexData = {
2225
2225
  /**
2226
2226
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2227
2227
  */
2228
- 'search[id]'?: number | string;
2228
+ 'search[id]'?: string | number;
2229
2229
  /**
2230
2230
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
2231
2231
  */
@@ -2291,7 +2291,7 @@ export type BansIndexData = {
2291
2291
  /**
2292
2292
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2293
2293
  */
2294
- 'search[id]'?: number | string;
2294
+ 'search[id]'?: string | number;
2295
2295
  /**
2296
2296
  * The order of the results.
2297
2297
  */
@@ -2370,7 +2370,7 @@ export type BlipsIndexData = {
2370
2370
  /**
2371
2371
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2372
2372
  */
2373
- 'search[id]'?: number | string;
2373
+ 'search[id]'?: string | number;
2374
2374
  /**
2375
2375
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
2376
2376
  */
@@ -2606,7 +2606,7 @@ export type BulkUpdateRequestsIndexData = {
2606
2606
  /**
2607
2607
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2608
2608
  */
2609
- 'search[id]'?: number | string;
2609
+ 'search[id]'?: string | number;
2610
2610
  'search[order]'?: 'id_asc' | 'id_desc' | 'status_desc' | 'updated_at_desc' | 'updated_at_asc';
2611
2611
  'search[user_id]'?: number;
2612
2612
  'search[user_name]'?: string;
@@ -2811,7 +2811,7 @@ export type CommentsIndexData = {
2811
2811
  /**
2812
2812
  * Search for a specific id. Multiple can be separated by commas, up to 320.
2813
2813
  */
2814
- 'search[id]'?: number | string;
2814
+ 'search[id]'?: string | number;
2815
2815
  /**
2816
2816
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
2817
2817
  */
@@ -3163,7 +3163,7 @@ export type CommentVotesIndexData = {
3163
3163
  /**
3164
3164
  * Search for a specific id. Multiple can be separated by commas, up to 320.
3165
3165
  */
3166
- 'search[id]'?: number | string;
3166
+ 'search[id]'?: string | number;
3167
3167
  /**
3168
3168
  * The order of the results. You must be Admin+.
3169
3169
  */
@@ -3302,7 +3302,7 @@ export type DmailsIndexData = {
3302
3302
  /**
3303
3303
  * Search for a specific id. Multiple can be separated by commas, up to 320.
3304
3304
  */
3305
- 'search[id]'?: number | string;
3305
+ 'search[id]'?: string | number;
3306
3306
  'search[title_matches]'?: string;
3307
3307
  'search[message_matches]'?: string;
3308
3308
  'search[to_name]'?: string;
@@ -3494,7 +3494,7 @@ export type EditHistoriesIndexData = {
3494
3494
  /**
3495
3495
  * Search for a specific id. Multiple can be separated by commas, up to 320.
3496
3496
  */
3497
- 'search[id]'?: number | string;
3497
+ 'search[id]'?: string | number;
3498
3498
  /**
3499
3499
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
3500
3500
  */
@@ -3571,7 +3571,7 @@ export type EmailBlacklistsIndexData = {
3571
3571
  /**
3572
3572
  * Search for a specific id. Multiple can be separated by commas, up to 320.
3573
3573
  */
3574
- 'search[id]'?: number | string;
3574
+ 'search[id]'?: string | number;
3575
3575
  'search[order]'?: 'id_asc' | 'id_desc' | 'reason' | 'domain';
3576
3576
  'search[domain]'?: string;
3577
3577
  'search[reason]'?: string;
@@ -3772,7 +3772,7 @@ export type ForumPostsIndexData = {
3772
3772
  /**
3773
3773
  * Search for a specific id. Multiple can be separated by commas, up to 320.
3774
3774
  */
3775
- 'search[id]'?: number | string;
3775
+ 'search[id]'?: string | number;
3776
3776
  /**
3777
3777
  * The order of the results.
3778
3778
  */
@@ -4127,7 +4127,7 @@ export type ForumTopicsIndexData = {
4127
4127
  /**
4128
4128
  * Search for a specific id. Multiple can be separated by commas, up to 320.
4129
4129
  */
4130
- 'search[id]'?: number | string;
4130
+ 'search[id]'?: string | number;
4131
4131
  'search[order]'?: 'id_asc' | 'id_desc' | 'sticky';
4132
4132
  'search[title]'?: string;
4133
4133
  'search[title_matches]'?: string;
@@ -4627,7 +4627,7 @@ export type IpBansIndexData = {
4627
4627
  /**
4628
4628
  * Search for a specific id. Multiple can be separated by commas, up to 320.
4629
4629
  */
4630
- 'search[id]'?: number | string;
4630
+ 'search[id]'?: string | number;
4631
4631
  /**
4632
4632
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
4633
4633
  */
@@ -4791,7 +4791,7 @@ export type MascotsIndexData = {
4791
4791
  /**
4792
4792
  * Search for a specific id. Multiple can be separated by commas, up to 320.
4793
4793
  */
4794
- 'search[id]'?: number | string;
4794
+ 'search[id]'?: string | number;
4795
4795
  };
4796
4796
  url: '/mascots.json';
4797
4797
  };
@@ -4931,7 +4931,7 @@ export type ModActionsIndexData = {
4931
4931
  /**
4932
4932
  * Search for a specific id. Multiple can be separated by commas, up to 320.
4933
4933
  */
4934
- 'search[id]'?: number | string;
4934
+ 'search[id]'?: string | number;
4935
4935
  'search[order]'?: 'id_asc' | 'id_desc';
4936
4936
  'search[creator_id]'?: number;
4937
4937
  'search[creator_name]'?: string;
@@ -5106,7 +5106,7 @@ export type NotesIndexData = {
5106
5106
  /**
5107
5107
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5108
5108
  */
5109
- 'search[id]'?: number | string;
5109
+ 'search[id]'?: string | number;
5110
5110
  /**
5111
5111
  * The order of the results.
5112
5112
  */
@@ -5321,7 +5321,7 @@ export type NoteVersionsIndexData = {
5321
5321
  /**
5322
5322
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5323
5323
  */
5324
- 'search[id]'?: number | string;
5324
+ 'search[id]'?: string | number;
5325
5325
  /**
5326
5326
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
5327
5327
  */
@@ -5361,7 +5361,7 @@ export type PoolsIndexData = {
5361
5361
  /**
5362
5362
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5363
5363
  */
5364
- 'search[id]'?: number | string;
5364
+ 'search[id]'?: string | number;
5365
5365
  'search[order]'?: 'id_asc' | 'id_desc' | 'name' | 'created_at' | 'post_count';
5366
5366
  'search[name_matches]'?: string;
5367
5367
  'search[description_matches]'?: string;
@@ -5661,7 +5661,7 @@ export type PoolVersionsIndexData = {
5661
5661
  /**
5662
5662
  * Search for a specific id. Multiple can be separated by commas, up to 320.
5663
5663
  */
5664
- 'search[id]'?: number | string;
5664
+ 'search[id]'?: string | number;
5665
5665
  /**
5666
5666
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
5667
5667
  */
@@ -5687,10 +5687,6 @@ export type PopularIndexData = {
5687
5687
  body?: never;
5688
5688
  path?: never;
5689
5689
  query?: {
5690
- /**
5691
- * The maximum number of results to return. Between 0 and 320.
5692
- */
5693
- limit?: number;
5694
5690
  /**
5695
5691
  * Use the new V2 format. See the `v2=true` responses.
5696
5692
  */
@@ -6416,7 +6412,7 @@ export type PostSetsIndexData = {
6416
6412
  /**
6417
6413
  * Search for a specific id. Multiple can be separated by commas, up to 320.
6418
6414
  */
6419
- 'search[id]'?: number | string;
6415
+ 'search[id]'?: string | number;
6420
6416
  'search[order]'?: 'id_asc' | 'id_desc' | 'name' | 'shortname' | 'post_count' | 'postcount' | 'created_at' | 'updated_at' | 'update';
6421
6417
  'search[creator_id]'?: number;
6422
6418
  'search[creator_name]'?: string;
@@ -6730,7 +6726,7 @@ export type PostApprovalsIndexData = {
6730
6726
  /**
6731
6727
  * Search for a specific id. Multiple can be separated by commas, up to 320.
6732
6728
  */
6733
- 'search[id]'?: number | string;
6729
+ 'search[id]'?: string | number;
6734
6730
  /**
6735
6731
  * The order of the results.
6736
6732
  */
@@ -6764,7 +6760,7 @@ export type PostEventsIndexData = {
6764
6760
  /**
6765
6761
  * Search for a specific id. Multiple can be separated by commas, up to 320.
6766
6762
  */
6767
- 'search[id]'?: number | string;
6763
+ 'search[id]'?: string | number;
6768
6764
  /**
6769
6765
  * The order of the results.
6770
6766
  */
@@ -6804,7 +6800,7 @@ export type PostFlagsIndexData = {
6804
6800
  /**
6805
6801
  * Search for a specific id. Multiple can be separated by commas, up to 320.
6806
6802
  */
6807
- 'search[id]'?: number | string;
6803
+ 'search[id]'?: string | number;
6808
6804
  /**
6809
6805
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
6810
6806
  */
@@ -6930,7 +6926,7 @@ export type PostReplacementsIndexData = {
6930
6926
  /**
6931
6927
  * Search for a specific id. Multiple can be separated by commas, up to 320.
6932
6928
  */
6933
- 'search[id]'?: number | string;
6929
+ 'search[id]'?: string | number;
6934
6930
  'search[file_ext]'?: string;
6935
6931
  'search[md5]'?: string;
6936
6932
  'search[status]'?: string;
@@ -7193,7 +7189,7 @@ export type PostVersionsIndexData = {
7193
7189
  /**
7194
7190
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7195
7191
  */
7196
- 'search[id]'?: number | string;
7192
+ 'search[id]'?: string | number;
7197
7193
  'search[updater_name]'?: string;
7198
7194
  'search[updater_id]'?: number;
7199
7195
  'search[post_id]'?: number;
@@ -7311,7 +7307,7 @@ export type PostVotesIndexData = {
7311
7307
  /**
7312
7308
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7313
7309
  */
7314
- 'search[id]'?: number | string;
7310
+ 'search[id]'?: string | number;
7315
7311
  /**
7316
7312
  * The order of the results. You must be Admin+.
7317
7313
  */
@@ -7424,7 +7420,7 @@ export type TagsIndexData = {
7424
7420
  /**
7425
7421
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7426
7422
  */
7427
- 'search[id]'?: number | string;
7423
+ 'search[id]'?: string | number;
7428
7424
  'search[order]'?: 'id_asc' | 'id_desc' | 'name' | 'date' | 'count' | 'similarity';
7429
7425
  'search[fuzzy_name_matches]'?: string;
7430
7426
  'search[name_matches]'?: string;
@@ -7630,7 +7626,7 @@ export type TagTypeVersionsIndexData = {
7630
7626
  /**
7631
7627
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7632
7628
  */
7633
- 'search[id]'?: number | string;
7629
+ 'search[id]'?: string | number;
7634
7630
  'search[tag]'?: string;
7635
7631
  'search[user_id]'?: string;
7636
7632
  'search[user_name]'?: string;
@@ -7659,7 +7655,7 @@ export type TagAliasesIndexData = {
7659
7655
  /**
7660
7656
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7661
7657
  */
7662
- 'search[id]'?: number | string;
7658
+ 'search[id]'?: string | number;
7663
7659
  'search[order]'?: 'id_asc' | 'id_desc' | 'created_at' | 'updated_at' | 'name' | 'tag_count';
7664
7660
  'search[name_matches]'?: string;
7665
7661
  'search[antecedent_name]'?: string;
@@ -7849,7 +7845,7 @@ export type TagImplicationsIndexData = {
7849
7845
  /**
7850
7846
  * Search for a specific id. Multiple can be separated by commas, up to 320.
7851
7847
  */
7852
- 'search[id]'?: number | string;
7848
+ 'search[id]'?: string | number;
7853
7849
  'search[order]'?: 'id_asc' | 'id_desc' | 'created_at' | 'updated_at' | 'name' | 'tag_count';
7854
7850
  'search[name_matches]'?: string;
7855
7851
  'search[antecedent_name]'?: string;
@@ -8300,7 +8296,7 @@ export type StaffNotesIndexData = {
8300
8296
  /**
8301
8297
  * Search for a specific id. Multiple can be separated by commas, up to 320.
8302
8298
  */
8303
- 'search[id]'?: number | string;
8299
+ 'search[id]'?: string | number;
8304
8300
  /**
8305
8301
  * The order of the results.
8306
8302
  */
@@ -8495,7 +8491,7 @@ export type TakedownsIndexData = {
8495
8491
  /**
8496
8492
  * Search for a specific id. Multiple can be separated by commas, up to 320.
8497
8493
  */
8498
- 'search[id]'?: number | string;
8494
+ 'search[id]'?: string | number;
8499
8495
  /**
8500
8496
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
8501
8497
  */
@@ -8854,7 +8850,7 @@ export type TicketsIndexData = {
8854
8850
  /**
8855
8851
  * Search for a specific id. Multiple can be separated by commas, up to 320.
8856
8852
  */
8857
- 'search[id]'?: number | string;
8853
+ 'search[id]'?: string | number;
8858
8854
  /**
8859
8855
  * You must be Staff+.
8860
8856
  */
@@ -9045,7 +9041,7 @@ export type UploadsIndexData = {
9045
9041
  /**
9046
9042
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9047
9043
  */
9048
- 'search[id]'?: number | string;
9044
+ 'search[id]'?: string | number;
9049
9045
  /**
9050
9046
  * The order of the results.
9051
9047
  */
@@ -9174,7 +9170,7 @@ export type UploadWhitelistsIndexData = {
9174
9170
  /**
9175
9171
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9176
9172
  */
9177
- 'search[id]'?: number | string;
9173
+ 'search[id]'?: string | number;
9178
9174
  'search[order]'?: 'id_asc' | 'id_desc' | 'domain' | 'path' | 'updated_at' | 'created_at';
9179
9175
  'search[domain]'?: string;
9180
9176
  'search[path]'?: string;
@@ -9345,7 +9341,7 @@ export type UsersIndexData = {
9345
9341
  /**
9346
9342
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9347
9343
  */
9348
- 'search[id]'?: number | string;
9344
+ 'search[id]'?: string | number;
9349
9345
  /**
9350
9346
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
9351
9347
  */
@@ -9693,7 +9689,7 @@ export type UserFeedbacksIndexData = {
9693
9689
  /**
9694
9690
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9695
9691
  */
9696
- 'search[id]'?: number | string;
9692
+ 'search[id]'?: string | number;
9697
9693
  /**
9698
9694
  * The order of the results.
9699
9695
  */
@@ -9918,7 +9914,7 @@ export type UserNameChangeRequestsIndexData = {
9918
9914
  /**
9919
9915
  * Search for a specific id. Multiple can be separated by commas, up to 320.
9920
9916
  */
9921
- 'search[id]'?: number | string;
9917
+ 'search[id]'?: string | number;
9922
9918
  /**
9923
9919
  * The order of the results.
9924
9920
  */
@@ -10021,7 +10017,7 @@ export type WikiPagesIndexData = {
10021
10017
  /**
10022
10018
  * Search for a specific id. Multiple can be separated by commas, up to 320.
10023
10019
  */
10024
- 'search[id]'?: number | string;
10020
+ 'search[id]'?: string | number;
10025
10021
  'search[order]'?: 'id_asc' | 'id_desc' | 'title' | 'post_count';
10026
10022
  'search[title]'?: string;
10027
10023
  'search[title_matches]'?: string;
@@ -10269,7 +10265,7 @@ export type WikiPageVersionsIndexData = {
10269
10265
  /**
10270
10266
  * Search for a specific id. Multiple can be separated by commas, up to 320.
10271
10267
  */
10272
- 'search[id]'?: number | string;
10268
+ 'search[id]'?: string | number;
10273
10269
  /**
10274
10270
  * Must be Admin+ to use. See [the PostgreSQL documentation](https://www.postgresql.org/docs/9.3/functions-net.html) for information on how this is parsed. Specifically, "is contained within or equals" (`<<=`).
10275
10271
  */
@@ -10500,7 +10496,7 @@ export type StaffAutomodDmailsIndexData = {
10500
10496
  /**
10501
10497
  * Search for a specific id. Multiple can be separated by commas, up to 320.
10502
10498
  */
10503
- 'search[id]'?: number | string;
10499
+ 'search[id]'?: string | number;
10504
10500
  'search[title_matches]'?: string;
10505
10501
  'search[message_matches]'?: string;
10506
10502
  'search[to_name]'?: string;
@@ -10626,7 +10622,7 @@ export type StaffExceptionsIndexData = {
10626
10622
  /**
10627
10623
  * Search for a specific id. Multiple can be separated by commas, up to 320.
10628
10624
  */
10629
- 'search[id]'?: number | string;
10625
+ 'search[id]'?: string | number;
10630
10626
  'search[user_name]'?: string;
10631
10627
  'search[code]'?: string;
10632
10628
  'search[commit]'?: string;
@@ -11200,7 +11196,7 @@ export type StaffPostDisapprovalsIndexData = {
11200
11196
  /**
11201
11197
  * Search for a specific id. Multiple can be separated by commas, up to 320.
11202
11198
  */
11203
- 'search[id]'?: number | string;
11199
+ 'search[id]'?: string | number;
11204
11200
  'search[order]'?: 'id_asc' | 'id_desc' | 'post_id' | 'post_id_desc';
11205
11201
  'search[creator_id]'?: number;
11206
11202
  'search[creator_name]'?: string;
@@ -11264,7 +11260,7 @@ export type StaffFilesIndexData = {
11264
11260
  /**
11265
11261
  * Search for a specific id. Multiple can be separated by commas, up to 320.
11266
11262
  */
11267
- 'search[id]'?: number | string;
11263
+ 'search[id]'?: string | number;
11268
11264
  'search[order]'?: 'id_asc' | 'id_desc' | 'original_filename' | 'time';
11269
11265
  'search[creator_id]'?: number;
11270
11266
  'search[creator_name]'?: string;
@@ -11428,7 +11424,7 @@ export type StaffWikisIndexData = {
11428
11424
  /**
11429
11425
  * Search for a specific id. Multiple can be separated by commas, up to 320.
11430
11426
  */
11431
- 'search[id]'?: number | string;
11427
+ 'search[id]'?: string | number;
11432
11428
  'search[order]'?: 'id_asc' | 'id_desc' | 'title';
11433
11429
  'search[creator_id]'?: number;
11434
11430
  'search[creator_name]'?: string;
@@ -11656,7 +11652,7 @@ export type StaffWikiVersionsIndexData = {
11656
11652
  /**
11657
11653
  * Search for a specific id. Multiple can be separated by commas, up to 320.
11658
11654
  */
11659
- 'search[id]'?: number | string;
11655
+ 'search[id]'?: string | number;
11660
11656
  'search[order]'?: 'id_asc' | 'id_desc' | 'title';
11661
11657
  'search[updater_id]'?: number;
11662
11658
  'search[updater_name]'?: string;
@@ -1,4 +1,5 @@
1
1
  import { type Modules } from "./modules/index.js";
2
+ import { type NoV2Options, type PostFormatOptions } from "./modules/posts/Format.js";
2
3
  import type { InstanceOptions, Options } from "./client.js";
3
4
  import type { Client } from "./generated/client/types.js";
4
5
  export type * from "./modules/index.js";
@@ -6,12 +7,12 @@ export * from "./models/index.js";
6
7
  export * from "./errors.js";
7
8
  export * as Generated from "./generated.js";
8
9
  export type { Options } from "./client.js";
9
- interface E621 extends Modules {
10
+ interface E621<PF extends PostFormatOptions = NoV2Options> extends Modules<PF> {
10
11
  }
11
12
  /** @category Main */
12
- declare class E621 {
13
+ declare class E621<const PF extends PostFormatOptions = NoV2Options> {
13
14
  client: Client;
14
15
  options: InstanceOptions;
15
- constructor(options?: Options);
16
+ constructor(options?: Options<PF>);
16
17
  }
17
18
  export default E621;
package/dist/lib/index.js CHANGED
@@ -11,8 +11,8 @@ class E621 {
11
11
  const { client, options: resolved } = createE621Client(options);
12
12
  this.client = client;
13
13
  this.options = resolved;
14
- apply(this, this.client);
14
+ apply(this, this.client, options?.defaultPostFormat ?? {});
15
15
  }
16
16
  }
17
17
  export default E621;
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQy9DLE9BQU8sRUFBRSxLQUFLLEVBQWdCLE1BQU0sb0JBQW9CLENBQUM7QUFNekQsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLGFBQWEsQ0FBQztBQUM1QixPQUFPLEtBQUssU0FBUyxNQUFNLGdCQUFnQixDQUFDO0FBSTVDLHFCQUFxQjtBQUNyQixNQUFNLElBQUk7SUFDTixNQUFNLENBQVM7SUFDZixPQUFPLENBQWtCO0lBQ3pCLFlBQVksT0FBaUI7UUFDek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LE9BQU8sRUFBRSxpQkFBaUIsSUFBSyxFQUFTLENBQUMsQ0FBQztJQUN2RSxDQUFDO0NBQ0o7QUFFRCxlQUFlLElBQUksQ0FBQyJ9
@@ -1,4 +1,5 @@
1
1
  import type E621 from "../index.js";
2
+ import type { NoV2Options, PostFormatOptions } from "../modules/posts/Format.js";
2
3
  /**
3
4
  * Browser build of {@link Base}. `node:util`'s `inspect` is Node-only and pulling it in breaks browser
4
5
  * bundlers (see #15), so this variant drops the custom inspect implementation and is swapped in via
@@ -6,9 +7,9 @@ import type E621 from "../index.js";
6
7
  *
7
8
  * @category Models
8
9
  */
9
- export default abstract class Base<D = unknown> {
10
+ export default abstract class Base<D = unknown, PF extends PostFormatOptions = NoV2Options> {
10
11
  protected data: D;
11
- protected e621: E621;
12
- constructor(e621: E621, data: D);
12
+ protected e621: E621<PF>;
13
+ constructor(e621: E621<PF>, data: D);
13
14
  toJSON(): D;
14
15
  }
@@ -19,4 +19,4 @@ export default class Base {
19
19
  return this.data;
20
20
  }
21
21
  }
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFzZS5icm93c2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9CYXNlLmJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUE7Ozs7OztHQU1HO0FBQ0gsTUFBTSxDQUFDLE9BQU8sT0FBZ0IsSUFBSTtJQUNwQixJQUFJLENBQUs7SUFDVCxJQUFJLENBQVE7SUFDdEIsWUFBWSxJQUFVLEVBQUUsSUFBTztRQUMzQixNQUFNLENBQUMsZ0JBQWdCLENBQUMsSUFBSSxFQUFFO1lBQzFCLElBQUksRUFBRSxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsVUFBVSxFQUFFLEtBQUssRUFBRTtZQUN4QyxJQUFJLEVBQUUsRUFBRSxLQUFLLEVBQUUsSUFBSSxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUU7U0FDM0MsQ0FBQyxDQUFDO1FBQ0gsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUM7SUFDOUIsQ0FBQztJQUVELE1BQU07UUFDRixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUM7SUFDckIsQ0FBQztDQUNKIn0=
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFzZS5icm93c2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9CYXNlLmJyb3dzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0E7Ozs7OztHQU1HO0FBQ0gsTUFBTSxDQUFDLE9BQU8sT0FBZ0IsSUFBSTtJQUNwQixJQUFJLENBQUs7SUFDVCxJQUFJLENBQVk7SUFDMUIsWUFBWSxJQUFjLEVBQUUsSUFBTztRQUMvQixNQUFNLENBQUMsZ0JBQWdCLENBQUMsSUFBSSxFQUFFO1lBQzFCLElBQUksRUFBRSxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsVUFBVSxFQUFFLEtBQUssRUFBRTtZQUN4QyxJQUFJLEVBQUUsRUFBRSxLQUFLLEVBQUUsSUFBSSxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUU7U0FDM0MsQ0FBQyxDQUFDO1FBQ0gsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEVBQUUsSUFBSSxDQUFDLENBQUM7SUFDOUIsQ0FBQztJQUVELE1BQU07UUFDRixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUM7SUFDckIsQ0FBQztDQUNKIn0=
@@ -1,11 +1,12 @@
1
1
  import { inspect, type InspectOptions } from "node:util";
2
2
  import type E621 from "../index.js";
3
+ import type { NoV2Options, PostFormatOptions } from "../modules/posts/Format.js";
3
4
  /** @category Models */
4
- export default abstract class Base<D = unknown> {
5
+ export default abstract class Base<D = unknown, PF extends PostFormatOptions = NoV2Options> {
5
6
  protected data: D;
6
- protected e621: E621;
7
+ protected e621: E621<PF>;
7
8
  protected includeInInspect: Array<string>;
8
- constructor(e621: E621, data: D);
9
+ constructor(e621: E621<PF>, data: D);
9
10
  [inspect.custom](_depth: never, opts: InspectOptions): string;
10
11
  toJSON(): D;
11
12
  }
@@ -36,4 +36,4 @@ export default class Base {
36
36
  return this.data;
37
37
  }
38
38
  }
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9tb2RlbHMvQmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUF1QixNQUFNLFdBQVcsQ0FBQztBQUl6RCx1QkFBdUI7QUFDdkIsTUFBTSxDQUFDLE9BQU8sT0FBZ0IsSUFBSTtJQUNwQixJQUFJLENBQUs7SUFDVCxJQUFJLENBQVE7SUFDWixnQkFBZ0IsR0FBa0IsRUFBRSxDQUFDO0lBQy9DLFlBQVksSUFBVSxFQUFFLElBQU87UUFDM0IsTUFBTSxDQUFDLGdCQUFnQixDQUFDLElBQUksRUFBRTtZQUMxQixJQUFJLEVBQUUsRUFBRSxLQUFLLEVBQUUsSUFBSSxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUU7WUFDeEMsSUFBSSxFQUFFLEVBQUUsS0FBSyxFQUFFLElBQUksRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFFO1NBQzNDLENBQUMsQ0FBQztRQUNILE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxDQUFDO0lBQzlCLENBQUM7SUFFRCxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQyxNQUFhLEVBQUUsSUF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LElBQUksQ0FBQyxnQkFBZ0IsRUFBRSxDQUFDO2dCQUN0QyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztvQkFDZCxNQUFNLENBQUMsY0FBYyxDQUFDLElBQUksRUFBRSxHQUFHLEVBQUU7d0JBQzdCLEtBQUssRUFBRyxJQUFnQyxDQUFDLEdBQUcsQ0FBQzt3QkFDN0MsVUFBVSxFQUFFLElBQUk7cUJBQ25CLENBQUMsQ0FBQztnQkFDUCxDQUFDO1lBQ0wsQ0FBQztRQUNMLENBQUM7UUFDRCxPQUFPLE9BQU8sQ0FBQyxJQUFJLEtBQUssQ0FBQyxJQUFJLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUFFLElBQUksQ0FBQyxDQUFDO0lBQ2pFLENBQUM7SUFFRCxNQUFNO1FBQ0YsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDO0lBQ3JCLENBQUM7Q0FDSiJ9
@@ -1,5 +1,6 @@
1
1
  import PostActions from "./posts/Actions.js";
2
2
  import type { BasicPost as PostData } from "../generated/types.js";
3
+ import type { NoV2Options, PostFormatOptions } from "../modules/posts/Format.js";
3
4
  interface BasicPost extends PostData {
4
5
  }
5
6
  /**
@@ -9,6 +10,6 @@ interface BasicPost extends PostData {
9
10
  *
10
11
  * @see {@link https://e621.wiki/#model-BasicPost Documentation} for more details.
11
12
  */
12
- declare class BasicPost extends PostActions<PostData> {
13
+ declare class BasicPost<PF extends PostFormatOptions = NoV2Options> extends PostActions<PostData, PF> {
13
14
  }
14
15
  export default BasicPost;
@@ -14,4 +14,4 @@ BasicPost = __decorate([
14
14
  Schema("BasicPost")
15
15
  ], BasicPost);
16
16
  export default BasicPost;
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFzaWNQb3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9CYXNpY1Bvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFcEMsT0FBTyxXQUFXLE1BQU0sb0JBQW9CLENBQUM7QUFLN0M7Ozs7OztHQU1HO0FBRUgsSUFBTSxTQUFTLEdBQWYsTUFBTSxTQUFVLFNBQVEsV0FBcUI7Q0FBRyxDQUFBO0FBQTFDLFNBQVM7SUFEZCxNQUFNLENBQUMsV0FBVyxDQUFDO0dBQ2QsU0FBUyxDQUFpQztBQUVoRCxlQUFlLFNBQVMsQ0FBQyJ9
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFzaWNQb3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9CYXNpY1Bvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFcEMsT0FBTyxXQUFXLE1BQU0sb0JBQW9CLENBQUM7QUFNN0M7Ozs7OztHQU1HO0FBRUgsSUFBTSxTQUFTLEdBQWYsTUFBTSxTQUFzRCxTQUFRLFdBQXlCO0NBQUcsQ0FBQTtBQUExRixTQUFTO0lBRGQsTUFBTSxDQUFDLFdBQVcsQ0FBQztHQUNkLFNBQVMsQ0FBaUY7QUFFaEcsZUFBZSxTQUFTLENBQUMifQ==
@@ -1,5 +1,6 @@
1
1
  import PostActions from "./posts/Actions.js";
2
2
  import type { ExtendedPost as PostData } from "../generated/types.js";
3
+ import type { NoV2Options, PostFormatOptions } from "../modules/posts/Format.js";
3
4
  interface ExtendedPost extends PostData {
4
5
  }
5
6
  /**
@@ -9,6 +10,6 @@ interface ExtendedPost extends PostData {
9
10
  *
10
11
  * @see {@link https://e621.wiki/#model-ExtendedPost Documentation} for more details.
11
12
  */
12
- declare class ExtendedPost extends PostActions<PostData> {
13
+ declare class ExtendedPost<PF extends PostFormatOptions = NoV2Options> extends PostActions<PostData, PF> {
13
14
  }
14
15
  export default ExtendedPost;
@@ -14,4 +14,4 @@ ExtendedPost = __decorate([
14
14
  Schema("ExtendedPost")
15
15
  ], ExtendedPost);
16
16
  export default ExtendedPost;
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXh0ZW5kZWRQb3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9FeHRlbmRlZFBvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFcEMsT0FBTyxXQUFXLE1BQU0sb0JBQW9CLENBQUM7QUFLN0M7Ozs7OztHQU1HO0FBRUgsSUFBTSxZQUFZLEdBQWxCLE1BQU0sWUFBYSxTQUFRLFdBQXFCO0NBQUcsQ0FBQTtBQUE3QyxZQUFZO0lBRGpCLE1BQU0sQ0FBQyxjQUFjLENBQUM7R0FDakIsWUFBWSxDQUFpQztBQUVuRCxlQUFlLFlBQVksQ0FBQyJ9
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXh0ZW5kZWRQb3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL21vZGVscy9FeHRlbmRlZFBvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxZQUFZLENBQUM7QUFFcEMsT0FBTyxXQUFXLE1BQU0sb0JBQW9CLENBQUM7QUFNN0M7Ozs7OztHQU1HO0FBRUgsSUFBTSxZQUFZLEdBQWxCLE1BQU0sWUFBeUQsU0FBUSxXQUF5QjtDQUFHLENBQUE7QUFBN0YsWUFBWTtJQURqQixNQUFNLENBQUMsY0FBYyxDQUFDO0dBQ2pCLFlBQVksQ0FBaUY7QUFFbkcsZUFBZSxZQUFZLENBQUMifQ==
@@ -1,5 +1,6 @@
1
1
  import PostActions from "./posts/Actions.js";
2
2
  import type { LegacyPost as PostData } from "../generated/types.js";
3
+ import type { NoV2Options, PostFormatOptions } from "../modules/posts/Format.js";
3
4
  interface Post extends PostData {
4
5
  }
5
6
  /**
@@ -9,6 +10,6 @@ interface Post extends PostData {
9
10
  *
10
11
  * @see {@link https://e621.wiki/#model-LegacyPost Documentation} for more details.
11
12
  */
12
- declare class Post extends PostActions<PostData> {
13
+ declare class Post<PF extends PostFormatOptions = NoV2Options> extends PostActions<PostData, PF> {
13
14
  }
14
15
  export default Post;
@@ -14,4 +14,4 @@ Post = __decorate([
14
14
  Schema("LegacyPost")
15
15
  ], Post);
16
16
  export default Post;
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9tb2RlbHMvUG9zdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVwQyxPQUFPLFdBQVcsTUFBTSxvQkFBb0IsQ0FBQztBQUs3Qzs7Ozs7O0dBTUc7QUFFSCxJQUFNLElBQUksR0FBVixNQUFNLElBQUssU0FBUSxXQUFxQjtDQUFHLENBQUE7QUFBckMsSUFBSTtJQURULE1BQU0sQ0FBQyxZQUFZLENBQUM7R0FDZixJQUFJLENBQWlDO0FBRTNDLGVBQWUsSUFBSSxDQUFDIn0=
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9tb2RlbHMvUG9zdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLFlBQVksQ0FBQztBQUVwQyxPQUFPLFdBQVcsTUFBTSxvQkFBb0IsQ0FBQztBQU03Qzs7Ozs7O0dBTUc7QUFFSCxJQUFNLElBQUksR0FBVixNQUFNLElBQWlELFNBQVEsV0FBeUI7Q0FBRyxDQUFBO0FBQXJGLElBQUk7SUFEVCxNQUFNLENBQUMsWUFBWSxDQUFDO0dBQ2YsSUFBSSxDQUFpRjtBQUUzRixlQUFlLElBQUksQ0FBQyJ9