@ihavethatonvinyl/lexicons 0.2.3 → 0.3.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.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { l } from "@atproto/lex";
2
- declare const $nsid$10 = "com.atproto.repo.strongRef";
3
- type $nsid$10 = typeof $nsid$10;
2
+ declare const $nsid$11 = "com.atproto.repo.strongRef";
3
+ type $nsid$11 = typeof $nsid$11;
4
4
  type Main$2 = {
5
5
  $type?: 'com.atproto.repo.strongRef';
6
6
  cid: l.CidString;
7
7
  uri: l.AtUriString;
8
8
  };
9
- declare const main$9: l.TypedObjectSchema<"com.atproto.repo.strongRef", l.Validator<Main$2, Main$2>>;
9
+ declare const main$10: l.TypedObjectSchema<"com.atproto.repo.strongRef", l.Validator<Main$2, Main$2>>;
10
10
  declare const $type$2 = "com.atproto.repo.strongRef";
11
11
  type $type$2 = typeof $type$2;
12
12
  declare const $isTypeOf$2: <TValue extends Record<string, unknown>>(value: TValue) => value is l.MaybeTypedObject<"com.atproto.repo.strongRef", TValue>;
@@ -64,7 +64,7 @@ declare const $safeValidate$2: <I>(input: I, options?: l.ValidateOptions) => l.V
64
64
  uri: l.AtUriString;
65
65
  }>;
66
66
  declare namespace strongRef_d_exports {
67
- export { $assert$2 as $assert, $build$2 as $build, $cast$2 as $cast, $check$2 as $check, $ifMatches$2 as $ifMatches, $isTypeOf$2 as $isTypeOf, $matches$2 as $matches, $nsid$10 as $nsid, $parse$2 as $parse, $safeParse$2 as $safeParse, $safeValidate$2 as $safeValidate, $type$2 as $type, $validate$2 as $validate, Main$2 as Main, main$9 as default, main$9 as main };
67
+ export { $assert$2 as $assert, $build$2 as $build, $cast$2 as $cast, $check$2 as $check, $ifMatches$2 as $ifMatches, $isTypeOf$2 as $isTypeOf, $matches$2 as $matches, $nsid$11 as $nsid, $parse$2 as $parse, $safeParse$2 as $safeParse, $safeValidate$2 as $safeValidate, $type$2 as $type, $validate$2 as $validate, Main$2 as Main, main$10 as default, main$10 as main };
68
68
  }
69
69
  declare namespace repo_d_exports {
70
70
  export { strongRef_d_exports as strongRef };
@@ -72,8 +72,8 @@ declare namespace repo_d_exports {
72
72
  declare namespace atproto_d_exports {
73
73
  export { repo_d_exports as repo };
74
74
  }
75
- declare const $nsid$9 = "com.ihavethatonvinyl.article.defs";
76
- type $nsid$9 = typeof $nsid$9;
75
+ declare const $nsid$10 = "com.ihavethatonvinyl.article.defs";
76
+ type $nsid$10 = typeof $nsid$10;
77
77
  type ParagraphBlockData = {
78
78
  $type?: 'com.ihavethatonvinyl.article.defs#paragraphBlockData';
79
79
  text: string;
@@ -107,18 +107,18 @@ type OrderedListItemMeta = {
107
107
  counterType?: string;
108
108
  };
109
109
  declare const orderedListItemMeta: l.TypedObjectSchema<"com.ihavethatonvinyl.article.defs#orderedListItemMeta", l.Validator<OrderedListItemMeta, OrderedListItemMeta>>;
110
- type ListItem = {
110
+ type ListItem$1 = {
111
111
  $type?: 'com.ihavethatonvinyl.article.defs#listItem';
112
112
  content: string;
113
113
  meta?: l.$Typed<CheckedListItemMeta> | l.$Typed<OrderedListItemMeta> | l.Unknown$TypedObject | null;
114
- items?: ListItem[];
114
+ items?: ListItem$1[];
115
115
  };
116
- declare const listItem: l.TypedObjectSchema<"com.ihavethatonvinyl.article.defs#listItem", l.Validator<ListItem, ListItem>>;
116
+ declare const listItem$1: l.TypedObjectSchema<"com.ihavethatonvinyl.article.defs#listItem", l.Validator<ListItem$1, ListItem$1>>;
117
117
  type ListBlockData = {
118
118
  $type?: 'com.ihavethatonvinyl.article.defs#listBlockData';
119
119
  style: 'ordered' | 'unordered' | 'checked' | l.UnknownString;
120
120
  meta?: l.$Typed<CheckedListItemMeta> | l.$Typed<OrderedListItemMeta> | l.Unknown$TypedObject | null;
121
- items?: ListItem[];
121
+ items?: ListItem$1[];
122
122
  };
123
123
  declare const listBlockData: l.TypedObjectSchema<"com.ihavethatonvinyl.article.defs#listBlockData", l.Validator<ListBlockData, ListBlockData>>;
124
124
  type Url = {
@@ -240,8 +240,8 @@ type Contents = {
240
240
  };
241
241
  /** An article's contents */
242
242
  declare const contents: l.TypedObjectSchema<"com.ihavethatonvinyl.article.defs#contents", l.Validator<Contents, Contents>>;
243
- declare const $nsid$8 = "com.ihavethatonvinyl.article.revision";
244
- type $nsid$8 = typeof $nsid$8;
243
+ declare const $nsid$9 = "com.ihavethatonvinyl.article.revision";
244
+ type $nsid$9 = typeof $nsid$9;
245
245
  /** An I Have That on Vinyl article revision */
246
246
  type Main$1 = {
247
247
  $type: 'com.ihavethatonvinyl.article.revision';
@@ -255,7 +255,7 @@ type Main$1 = {
255
255
  notes?: string;
256
256
  };
257
257
  /** An I Have That on Vinyl article revision */
258
- declare const main$8: l.RecordSchema<"tid", "com.ihavethatonvinyl.article.revision", l.Validator<Omit<Main$1, "$type">, Omit<Main$1, "$type">>>;
258
+ declare const main$9: l.RecordSchema<"tid", "com.ihavethatonvinyl.article.revision", l.Validator<Omit<Main$1, "$type">, Omit<Main$1, "$type">>>;
259
259
  declare const $type$1 = "com.ihavethatonvinyl.article.revision";
260
260
  type $type$1 = typeof $type$1;
261
261
  declare const $isTypeOf$1: <TValue extends {
@@ -344,58 +344,70 @@ declare const $safeValidate$1: <I>(input: I, options?: l.ValidateOptions) => l.V
344
344
  contents: Contents;
345
345
  notes?: string;
346
346
  }>;
347
- declare const $nsid$7 = "com.ihavethatonvinyl.article.createArticleRevision";
348
- type $nsid$7 = typeof $nsid$7;
349
- declare const $params$4: l.ParamsSchema<{}>;
350
- type $Params$4 = l.InferOutput<typeof $params$4>;
351
- declare const $input$2: l.Payload<"application/json", l.ObjectSchema<{
352
- contents: l.OptionalSchema<l.RefSchema<l.Validator<Contents, Contents>>>;
347
+ declare const $nsid$8 = "com.ihavethatonvinyl.article.createArticle";
348
+ type $nsid$8 = typeof $nsid$8;
349
+ declare const $params$5: l.ParamsSchema<{}>;
350
+ type $Params$5 = l.InferOutput<typeof $params$5>;
351
+ declare const $input$3: l.Payload<"application/json", l.ObjectSchema<{
352
+ contents: l.OptionalSchema<l.RefSchema<l.Validator<Main$1, Main$1>>>;
353
353
  }>>;
354
- type $Input$2<B = l.BinaryData> = l.InferPayload<typeof $input$2, B>;
355
- type $InputBody$2<B = l.BinaryData> = l.InferPayloadBody<typeof $input$2, B>;
356
- declare const $output$4: l.Payload<"application/json", l.ObjectSchema<{
357
- revision: l.OptionalSchema<l.RefSchema<l.Validator<Main$1, Main$1>>>;
354
+ type $Input$3<B = l.BinaryData> = l.InferPayload<typeof $input$3, B>;
355
+ type $InputBody$3<B = l.BinaryData> = l.InferPayloadBody<typeof $input$3, B>;
356
+ declare const $output$5: l.Payload<"application/json", l.ObjectSchema<{
357
+ cid: l.StringSchema<{
358
+ readonly format: "cid";
359
+ }>;
360
+ uri: l.StringSchema<{
361
+ readonly format: "at-uri";
362
+ }>;
358
363
  }>>;
359
- type $Output$4<B = l.BinaryData> = l.InferPayload<typeof $output$4, B>;
360
- type $OutputBody$4<B = l.BinaryData> = l.InferPayloadBody<typeof $output$4, B>;
361
- /** creates an article revision. If articles is empty, it's assumed this is a new article */
362
- declare const main$7: l.Procedure<"com.ihavethatonvinyl.article.createArticleRevision", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
363
- contents: l.OptionalSchema<l.RefSchema<l.Validator<Contents, Contents>>>;
364
+ type $Output$5<B = l.BinaryData> = l.InferPayload<typeof $output$5, B>;
365
+ type $OutputBody$5<B = l.BinaryData> = l.InferPayloadBody<typeof $output$5, B>;
366
+ /** creates a new unpublished article */
367
+ declare const main$8: l.Procedure<"com.ihavethatonvinyl.article.createArticle", l.ParamsSchema<{}>, l.Payload<"application/json", l.ObjectSchema<{
368
+ contents: l.OptionalSchema<l.RefSchema<l.Validator<Main$1, Main$1>>>;
364
369
  }>>, l.Payload<"application/json", l.ObjectSchema<{
365
- revision: l.OptionalSchema<l.RefSchema<l.Validator<Main$1, Main$1>>>;
370
+ cid: l.StringSchema<{
371
+ readonly format: "cid";
372
+ }>;
373
+ uri: l.StringSchema<{
374
+ readonly format: "at-uri";
375
+ }>;
366
376
  }>>, undefined>;
367
- declare const $lxm$4 = "com.ihavethatonvinyl.article.createArticleRevision";
368
- type $lxm$4 = typeof $lxm$4;
369
- declare namespace createArticleRevision_d_exports {
370
- export { $Input$2 as $Input, $InputBody$2 as $InputBody, $Output$4 as $Output, $OutputBody$4 as $OutputBody, $Params$4 as $Params, $input$2 as $input, $lxm$4 as $lxm, $nsid$7 as $nsid, $output$4 as $output, $params$4 as $params, main$7 as default, main$7 as main };
377
+ declare const $lxm$5 = "com.ihavethatonvinyl.article.createArticle";
378
+ type $lxm$5 = typeof $lxm$5;
379
+ declare namespace createArticle_d_exports {
380
+ export { $Input$3 as $Input, $InputBody$3 as $InputBody, $Output$5 as $Output, $OutputBody$5 as $OutputBody, $Params$5 as $Params, $input$3 as $input, $lxm$5 as $lxm, $nsid$8 as $nsid, $output$5 as $output, $params$5 as $params, main$8 as default, main$8 as main };
371
381
  }
372
- declare const $nsid$6 = "com.ihavethatonvinyl.article.unpublishArticle";
373
- type $nsid$6 = typeof $nsid$6;
374
- declare const $params$3: l.ParamsSchema<{
382
+ declare const $nsid$7 = "com.ihavethatonvinyl.article.unpublishArticle";
383
+ type $nsid$7 = typeof $nsid$7;
384
+ declare const $params$4: l.ParamsSchema<{
375
385
  readonly article: l.OptionalSchema<l.StringSchema<{
376
386
  readonly format: "at-uri";
377
387
  }>>;
388
+ readonly deleteAllRevisions: l.OptionalSchema<l.BooleanSchema>;
378
389
  }>;
379
- type $Params$3 = l.InferOutput<typeof $params$3>;
380
- declare const $input$1: l.Payload<undefined, undefined>;
381
- type $Input$1<B = l.BinaryData> = l.InferPayload<typeof $input$1, B>;
382
- type $InputBody$1<B = l.BinaryData> = l.InferPayloadBody<typeof $input$1, B>;
383
- declare const $output$3: l.Payload<undefined, undefined>;
384
- type $Output$3<B = l.BinaryData> = l.InferPayload<typeof $output$3, B>;
385
- type $OutputBody$3<B = l.BinaryData> = l.InferPayloadBody<typeof $output$3, B>;
390
+ type $Params$4 = l.InferOutput<typeof $params$4>;
391
+ declare const $input$2: l.Payload<undefined, undefined>;
392
+ type $Input$2<B = l.BinaryData> = l.InferPayload<typeof $input$2, B>;
393
+ type $InputBody$2<B = l.BinaryData> = l.InferPayloadBody<typeof $input$2, B>;
394
+ declare const $output$4: l.Payload<undefined, undefined>;
395
+ type $Output$4<B = l.BinaryData> = l.InferPayload<typeof $output$4, B>;
396
+ type $OutputBody$4<B = l.BinaryData> = l.InferPayloadBody<typeof $output$4, B>;
386
397
  /** Deletes an article and removes any refs to it from all revisions */
387
- declare const main$6: l.Procedure<"com.ihavethatonvinyl.article.unpublishArticle", l.ParamsSchema<{
398
+ declare const main$7: l.Procedure<"com.ihavethatonvinyl.article.unpublishArticle", l.ParamsSchema<{
388
399
  readonly article: l.OptionalSchema<l.StringSchema<{
389
400
  readonly format: "at-uri";
390
401
  }>>;
402
+ readonly deleteAllRevisions: l.OptionalSchema<l.BooleanSchema>;
391
403
  }>, l.Payload<undefined, undefined>, l.Payload<undefined, undefined>, undefined>;
392
- declare const $lxm$3 = "com.ihavethatonvinyl.article.unpublishArticle";
393
- type $lxm$3 = typeof $lxm$3;
404
+ declare const $lxm$4 = "com.ihavethatonvinyl.article.unpublishArticle";
405
+ type $lxm$4 = typeof $lxm$4;
394
406
  declare namespace unpublishArticle_d_exports {
395
- export { $Input$1 as $Input, $InputBody$1 as $InputBody, $Output$3 as $Output, $OutputBody$3 as $OutputBody, $Params$3 as $Params, $input$1 as $input, $lxm$3 as $lxm, $nsid$6 as $nsid, $output$3 as $output, $params$3 as $params, main$6 as default, main$6 as main };
407
+ export { $Input$2 as $Input, $InputBody$2 as $InputBody, $Output$4 as $Output, $OutputBody$4 as $OutputBody, $Params$4 as $Params, $input$2 as $input, $lxm$4 as $lxm, $nsid$7 as $nsid, $output$4 as $output, $params$4 as $params, main$7 as default, main$7 as main };
396
408
  }
397
- declare const $nsid$5 = "com.ihavethatonvinyl.article";
398
- type $nsid$5 = typeof $nsid$5;
409
+ declare const $nsid$6 = "com.ihavethatonvinyl.article";
410
+ type $nsid$6 = typeof $nsid$6;
399
411
  /** An I Have That on Vinyl article. It is immutable so backlinks and comments survive edits. The record key acts as the article's URL slug */
400
412
  type Main = {
401
413
  $type: 'com.ihavethatonvinyl.article';
@@ -409,7 +421,7 @@ type Main = {
409
421
  publishedBy: l.DidString;
410
422
  };
411
423
  /** An I Have That on Vinyl article. It is immutable so backlinks and comments survive edits. The record key acts as the article's URL slug */
412
- declare const main$5: l.RecordSchema<"literal:self", "com.ihavethatonvinyl.article", l.Validator<Omit<Main, "$type">, Omit<Main, "$type">>>;
424
+ declare const main$6: l.RecordSchema<"literal:self", "com.ihavethatonvinyl.article", l.Validator<Omit<Main, "$type">, Omit<Main, "$type">>>;
413
425
  declare const $type = "com.ihavethatonvinyl.article";
414
426
  type $type = typeof $type;
415
427
  declare const $isTypeOf: <TValue extends {
@@ -469,7 +481,50 @@ declare const $safeValidate: <I>(input: I, options?: l.ValidateOptions) => l.Val
469
481
  publishedBy: l.DidString;
470
482
  }>;
471
483
  declare namespace defs_d_exports {
472
- export { $nsid$9 as $nsid, CheckedListItemMeta, Contents, Divider, DividerBlockData, Header, HeaderBlockData, Image, ImageBlockData, Link, LinkBlockData, LinkMeta, List, ListBlockData, ListItem, LocalImage, OrderedListItemMeta, Paragraph, ParagraphBlockData, Quote, QuoteBlockData, Table, TableBlockData, TableRow, Url, checkedListItemMeta, contents, divider, dividerBlockData, header, headerBlockData, image, imageBlockData, link, linkBlockData, linkMeta, list, listBlockData, listItem, localImage, orderedListItemMeta, paragraph, paragraphBlockData, quote, quoteBlockData, table, tableBlockData, tableRow, url };
484
+ export { $nsid$10 as $nsid, CheckedListItemMeta, Contents, Divider, DividerBlockData, Header, HeaderBlockData, Image, ImageBlockData, Link, LinkBlockData, LinkMeta, List, ListBlockData, ListItem$1 as ListItem, LocalImage, OrderedListItemMeta, Paragraph, ParagraphBlockData, Quote, QuoteBlockData, Table, TableBlockData, TableRow, Url, checkedListItemMeta, contents, divider, dividerBlockData, header, headerBlockData, image, imageBlockData, link, linkBlockData, linkMeta, list, listBlockData, listItem$1 as listItem, localImage, orderedListItemMeta, paragraph, paragraphBlockData, quote, quoteBlockData, table, tableBlockData, tableRow, url };
485
+ }
486
+ declare const $nsid$5 = "com.ihavethatonvinyl.article.editArticle";
487
+ type $nsid$5 = typeof $nsid$5;
488
+ declare const $params$3: l.ParamsSchema<{
489
+ readonly revision: l.OptionalSchema<l.StringSchema<{
490
+ readonly format: "at-uri";
491
+ }>>;
492
+ }>;
493
+ type $Params$3 = l.InferOutput<typeof $params$3>;
494
+ declare const $input$1: l.Payload<"application/json", l.ObjectSchema<{
495
+ contents: l.OptionalSchema<l.RefSchema<l.Validator<Main$1, Main$1>>>;
496
+ }>>;
497
+ type $Input$1<B = l.BinaryData> = l.InferPayload<typeof $input$1, B>;
498
+ type $InputBody$1<B = l.BinaryData> = l.InferPayloadBody<typeof $input$1, B>;
499
+ declare const $output$3: l.Payload<"application/json", l.ObjectSchema<{
500
+ cid: l.StringSchema<{
501
+ readonly format: "cid";
502
+ }>;
503
+ uri: l.StringSchema<{
504
+ readonly format: "at-uri";
505
+ }>;
506
+ }>>;
507
+ type $Output$3<B = l.BinaryData> = l.InferPayload<typeof $output$3, B>;
508
+ type $OutputBody$3<B = l.BinaryData> = l.InferPayloadBody<typeof $output$3, B>;
509
+ /** creates a new revision of an existing article */
510
+ declare const main$5: l.Procedure<"com.ihavethatonvinyl.article.editArticle", l.ParamsSchema<{
511
+ readonly revision: l.OptionalSchema<l.StringSchema<{
512
+ readonly format: "at-uri";
513
+ }>>;
514
+ }>, l.Payload<"application/json", l.ObjectSchema<{
515
+ contents: l.OptionalSchema<l.RefSchema<l.Validator<Main$1, Main$1>>>;
516
+ }>>, l.Payload<"application/json", l.ObjectSchema<{
517
+ cid: l.StringSchema<{
518
+ readonly format: "cid";
519
+ }>;
520
+ uri: l.StringSchema<{
521
+ readonly format: "at-uri";
522
+ }>;
523
+ }>>, undefined>;
524
+ declare const $lxm$3 = "com.ihavethatonvinyl.article.editArticle";
525
+ type $lxm$3 = typeof $lxm$3;
526
+ declare namespace editArticle_d_exports {
527
+ export { $Input$1 as $Input, $InputBody$1 as $InputBody, $Output$3 as $Output, $OutputBody$3 as $OutputBody, $Params$3 as $Params, $input$1 as $input, $lxm$3 as $lxm, $nsid$5 as $nsid, $output$3 as $output, $params$3 as $params, main$5 as default, main$5 as main };
473
528
  }
474
529
  declare const $nsid$4 = "com.ihavethatonvinyl.article.getArticle";
475
530
  type $nsid$4 = typeof $nsid$4;
@@ -515,8 +570,9 @@ declare const $params$1: l.ParamsSchema<{
515
570
  }>;
516
571
  type $Params$1 = l.InferOutput<typeof $params$1>;
517
572
  declare const $output$1: l.Payload<"application/json", l.ObjectSchema<{
518
- items: l.ArraySchema<l.RefSchema<l.Validator<Main$1, Main$1>>>;
519
- nextPage: l.OptionalSchema<l.IntegerSchema>;
573
+ items: l.ArraySchema<l.RefSchema<l.Validator<ListItem, ListItem>>>;
574
+ start: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
575
+ count: l.IntegerSchema;
520
576
  total: l.IntegerSchema;
521
577
  }>>;
522
578
  type $Output$1<B = l.BinaryData> = l.InferPayload<typeof $output$1, B>;
@@ -530,14 +586,40 @@ declare const main$3: l.Query<"com.ihavethatonvinyl.article.listArticles", l.Par
530
586
  knownValues: ["published", "updated"];
531
587
  }>>>;
532
588
  }>, l.Payload<"application/json", l.ObjectSchema<{
533
- items: l.ArraySchema<l.RefSchema<l.Validator<Main$1, Main$1>>>;
534
- nextPage: l.OptionalSchema<l.IntegerSchema>;
589
+ items: l.ArraySchema<l.RefSchema<l.Validator<ListItem, ListItem>>>;
590
+ start: l.OptionalSchema<l.WithDefaultSchema<l.IntegerSchema>>;
591
+ count: l.IntegerSchema;
535
592
  total: l.IntegerSchema;
536
593
  }>>, undefined>;
537
594
  declare const $lxm$1 = "com.ihavethatonvinyl.article.listArticles";
538
595
  type $lxm$1 = typeof $lxm$1;
596
+ type ListItem = {
597
+ $type?: 'com.ihavethatonvinyl.article.listArticles#listItem';
598
+ /**
599
+ * The article title
600
+ */
601
+ title: string;
602
+ /**
603
+ * The blurb to be shown in list view
604
+ */
605
+ blurb: string;
606
+ /**
607
+ * The image shown at the beginning of the article and in list view
608
+ */
609
+ heroImage?: l.BlobRef;
610
+ /**
611
+ * A list of authors for the article. Free-form to allow plain names, or identifiers for a user
612
+ */
613
+ authors: string[];
614
+ categories: ('conversations' | 'q-and-a' | 'essays' | 'features' | 'liner-notes' | l.UnknownString)[];
615
+ /**
616
+ * The reference to the full article and its latest revision
617
+ */
618
+ article?: Main$2;
619
+ };
620
+ declare const listItem: l.TypedObjectSchema<"com.ihavethatonvinyl.article.listArticles#listItem", l.Validator<ListItem, ListItem>>;
539
621
  declare namespace listArticles_d_exports {
540
- export { $Output$1 as $Output, $OutputBody$1 as $OutputBody, $Params$1 as $Params, $lxm$1 as $lxm, $nsid$3 as $nsid, $output$1 as $output, $params$1 as $params, main$3 as default, main$3 as main };
622
+ export { $Output$1 as $Output, $OutputBody$1 as $OutputBody, $Params$1 as $Params, $lxm$1 as $lxm, $nsid$3 as $nsid, $output$1 as $output, $params$1 as $params, ListItem, main$3 as default, listItem, main$3 as main };
541
623
  }
542
624
  declare const $nsid$2 = "com.ihavethatonvinyl.article.publishArticleRevision";
543
625
  type $nsid$2 = typeof $nsid$2;
@@ -545,25 +627,39 @@ declare const $params: l.ParamsSchema<{
545
627
  readonly revision: l.StringSchema<{
546
628
  readonly format: "at-uri";
547
629
  }>;
630
+ readonly target: l.StringSchema<{
631
+ readonly format: "did";
632
+ }>;
548
633
  }>;
549
634
  type $Params = l.InferOutput<typeof $params>;
550
635
  declare const $input: l.Payload<undefined, undefined>;
551
636
  type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>;
552
637
  type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>;
553
638
  declare const $output: l.Payload<"application/json", l.ObjectSchema<{
554
- article: l.RefSchema<l.Validator<Main, Main>>;
555
- contents: l.RefSchema<l.Validator<Main$1, Main$1>>;
639
+ cid: l.StringSchema<{
640
+ readonly format: "cid";
641
+ }>;
642
+ uri: l.StringSchema<{
643
+ readonly format: "at-uri";
644
+ }>;
556
645
  }>>;
557
646
  type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>;
558
647
  type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $output, B>;
559
- /** publishes an article revision. if one of the revision's article refs exists in the repo, it is considered an update */
648
+ /** publishes a new version of an article */
560
649
  declare const main$2: l.Procedure<"com.ihavethatonvinyl.article.publishArticleRevision", l.ParamsSchema<{
561
650
  readonly revision: l.StringSchema<{
562
651
  readonly format: "at-uri";
563
652
  }>;
653
+ readonly target: l.StringSchema<{
654
+ readonly format: "did";
655
+ }>;
564
656
  }>, l.Payload<undefined, undefined>, l.Payload<"application/json", l.ObjectSchema<{
565
- article: l.RefSchema<l.Validator<Main, Main>>;
566
- contents: l.RefSchema<l.Validator<Main$1, Main$1>>;
657
+ cid: l.StringSchema<{
658
+ readonly format: "cid";
659
+ }>;
660
+ uri: l.StringSchema<{
661
+ readonly format: "at-uri";
662
+ }>;
567
663
  }>>, undefined>;
568
664
  declare const $lxm = "com.ihavethatonvinyl.article.publishArticleRevision";
569
665
  type $lxm = typeof $lxm;
@@ -571,10 +667,10 @@ declare namespace publishArticleRevision_d_exports {
571
667
  export { $Input, $InputBody, $Output, $OutputBody, $Params, $input, $lxm, $nsid$2 as $nsid, $output, $params, main$2 as default, main$2 as main };
572
668
  }
573
669
  declare namespace revision_d_exports {
574
- export { $assert$1 as $assert, $build$1 as $build, $cast$1 as $cast, $check$1 as $check, $ifMatches$1 as $ifMatches, $isTypeOf$1 as $isTypeOf, $matches$1 as $matches, $nsid$8 as $nsid, $parse$1 as $parse, $safeParse$1 as $safeParse, $safeValidate$1 as $safeValidate, $type$1 as $type, $validate$1 as $validate, Main$1 as Main, main$8 as default, main$8 as main };
670
+ export { $assert$1 as $assert, $build$1 as $build, $cast$1 as $cast, $check$1 as $check, $ifMatches$1 as $ifMatches, $isTypeOf$1 as $isTypeOf, $matches$1 as $matches, $nsid$9 as $nsid, $parse$1 as $parse, $safeParse$1 as $safeParse, $safeValidate$1 as $safeValidate, $type$1 as $type, $validate$1 as $validate, Main$1 as Main, main$9 as default, main$9 as main };
575
671
  }
576
672
  declare namespace article_d_exports {
577
- export { $assert, $build, $cast, $check, $ifMatches, $isTypeOf, $matches, $nsid$5 as $nsid, $parse, $safeParse, $safeValidate, $type, $validate, Main, createArticleRevision_d_exports as createArticleRevision, main$5 as default, defs_d_exports as defs, getArticle_d_exports as getArticle, listArticles_d_exports as listArticles, main$5 as main, publishArticleRevision_d_exports as publishArticleRevision, revision_d_exports as revision, unpublishArticle_d_exports as unpublishArticle };
673
+ export { $assert, $build, $cast, $check, $ifMatches, $isTypeOf, $matches, $nsid$6 as $nsid, $parse, $safeParse, $safeValidate, $type, $validate, Main, createArticle_d_exports as createArticle, main$6 as default, defs_d_exports as defs, editArticle_d_exports as editArticle, getArticle_d_exports as getArticle, listArticles_d_exports as listArticles, main$6 as main, publishArticleRevision_d_exports as publishArticleRevision, revision_d_exports as revision, unpublishArticle_d_exports as unpublishArticle };
578
674
  }
579
675
  declare const $nsid$1 = "com.ihavethatonvinyl.auth.editor";
580
676
  type $nsid$1 = typeof $nsid$1;
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{t as e}from"./rolldown-runtime-P3Pd_6ND.js";import{l as t}from"@atproto/lex";const n=`com.atproto.repo.strongRef`,r=/*#__PURE__*/ t.typedObject(n,`main`,/*#__PURE__*/ t.object({cid:/*#__PURE__*/ t.string({format:`cid`}),uri:/*#__PURE__*/ t.string({format:`at-uri`})})),ee=/*#__PURE__*/ r.isTypeOf.bind(r),te=/*#__PURE__*/ r.build.bind(r),ne=/*#__PURE__*/ r.assert.bind(r),re=/*#__PURE__*/ r.check.bind(r),ie=/*#__PURE__*/ r.cast.bind(r),ae=/*#__PURE__*/ r.ifMatches.bind(r),oe=/*#__PURE__*/ r.matches.bind(r),se=/*#__PURE__*/ r.parse.bind(r),ce=/*#__PURE__*/ r.safeParse.bind(r),le=/*#__PURE__*/ r.validate.bind(r),ue=/*#__PURE__*/ r.safeValidate.bind(r);var de=/* @__PURE__ */ e({$assert:()=>ne,$build:()=>te,$cast:()=>ie,$check:()=>re,$ifMatches:()=>ae,$isTypeOf:()=>ee,$matches:()=>oe,$nsid:()=>n,$parse:()=>se,$safeParse:()=>ce,$safeValidate:()=>ue,$type:()=>`com.atproto.repo.strongRef`,$validate:()=>le,default:()=>r,main:()=>r}),fe=/* @__PURE__ */ e({strongRef:()=>de}),pe=/* @__PURE__ */ e({repo:()=>fe});const i=`com.ihavethatonvinyl.article.defs`,a=/*#__PURE__*/ t.typedObject(i,`paragraphBlockData`,/*#__PURE__*/ t.object({text:/*#__PURE__*/ t.string()})),o=/*#__PURE__*/ t.typedObject(i,`headerBlockData`,/*#__PURE__*/ t.object({text:/*#__PURE__*/ t.string(),level:/*#__PURE__*/ t.integer({minimum:1,maximum:6})})),s=/*#__PURE__*/ t.typedObject(i,`dividerBlockData`,/*#__PURE__*/ t.object({})),me=/*#__PURE__*/ t.typedObject(i,`quoteBlockData`,/*#__PURE__*/ t.object({text:/*#__PURE__*/ t.string(),caption:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string()),alignment:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.enum([`left`,`center`]),`left`))})),c=/*#__PURE__*/ t.typedObject(i,`checkedListItemMeta`,/*#__PURE__*/ t.object({checked:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean())})),l=/*#__PURE__*/ t.typedObject(i,`orderedListItemMeta`,/*#__PURE__*/ t.object({start:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.integer({minimum:1})),counterType:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string())})),u=/*#__PURE__*/ t.typedObject(i,`listItem`,/*#__PURE__*/ t.object({content:/*#__PURE__*/ t.string(),meta:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.nullable(/*#__PURE__*/ t.typedUnion([/*#__PURE__*/ t.typedRef((()=>c)),/*#__PURE__*/ t.typedRef((()=>l))],!1))),items:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>u))))})),d=/*#__PURE__*/ t.typedObject(i,`listBlockData`,/*#__PURE__*/ t.object({style:/*#__PURE__*/ t.string(),meta:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.nullable(/*#__PURE__*/ t.typedUnion([/*#__PURE__*/ t.typedRef((()=>c)),/*#__PURE__*/ t.typedRef((()=>l))],!1))),items:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>u))))})),f=/*#__PURE__*/ t.typedObject(i,`url`,/*#__PURE__*/ t.object({url:/*#__PURE__*/ t.string({format:`uri`})})),p=/*#__PURE__*/ t.typedObject(i,`localImage`,/*#__PURE__*/ t.object({mimeType:/*#__PURE__*/ t.string(),b64Data:/*#__PURE__*/ t.string({maxLength:1468006})})),m=/*#__PURE__*/ t.typedObject(i,`imageBlockData`,/*#__PURE__*/ t.object({file:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>f))),imageBlob:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.blob({accept:[`image/*`],maxSize:1048576})),image:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>p))),caption:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string()),withBorder:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean()),withBackground:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean()),stretched:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean())})),h=/*#__PURE__*/ t.typedObject(i,`linkMeta`,/*#__PURE__*/ t.object({title:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string()),description:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string()),image:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>f)))})),g=/*#__PURE__*/ t.typedObject(i,`linkBlockData`,/*#__PURE__*/ t.object({url:/*#__PURE__*/ t.string({format:`uri`}),meta:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>h)))})),_=/*#__PURE__*/ t.typedObject(i,`tableRow`,/*#__PURE__*/ t.object({columns:/*#__PURE__*/ t.array(/*#__PURE__*/ t.string(),{minLength:1})})),v=/*#__PURE__*/ t.typedObject(i,`tableBlockData`,/*#__PURE__*/ t.object({withHeadings:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean()),stretched:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean()),rows:/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>_)),{minLength:1})})),y=/*#__PURE__*/ t.typedObject(i,`paragraph`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`paragraph`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>a)))})),b=/*#__PURE__*/ t.typedObject(i,`header`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`header`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>o)))})),x=/*#__PURE__*/ t.typedObject(i,`divider`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`divider`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>s)))})),S=/*#__PURE__*/ t.typedObject(i,`quote`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`quote`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>me)))})),C=/*#__PURE__*/ t.typedObject(i,`list`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`list`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>d)))})),w=/*#__PURE__*/ t.typedObject(i,`image`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`image`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>m)))})),T=/*#__PURE__*/ t.typedObject(i,`link`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`linkTool`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>g)))})),E=/*#__PURE__*/ t.typedObject(i,`table`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`table`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>v)))})),D=/*#__PURE__*/ t.typedObject(i,`contents`,/*#__PURE__*/ t.object({title:/*#__PURE__*/ t.string({minGraphemes:1,maxGraphemes:256}),blurb:/*#__PURE__*/ t.string({maxGraphemes:2048}),heroImage:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.blob({accept:[`image/*`],maxSize:1048576})),authors:/*#__PURE__*/ t.array(/*#__PURE__*/ t.string(),{minLength:1,maxLength:5}),categories:/*#__PURE__*/ t.array(/*#__PURE__*/ t.string(),{minLength:1}),body:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.typedUnion([/*#__PURE__*/ t.typedRef((()=>y)),/*#__PURE__*/ t.typedRef((()=>b)),/*#__PURE__*/ t.typedRef((()=>x)),/*#__PURE__*/ t.typedRef((()=>S)),/*#__PURE__*/ t.typedRef((()=>C)),/*#__PURE__*/ t.typedRef((()=>w)),/*#__PURE__*/ t.typedRef((()=>T)),/*#__PURE__*/ t.typedRef((()=>E))],!1)))})),O=`com.ihavethatonvinyl.article.revision`,k=/*#__PURE__*/ t.record(`tid`,O,/*#__PURE__*/ t.object({published:/*#__PURE__*/ t.string({format:`datetime`}),publishedBy:/*#__PURE__*/ t.string({format:`did`}),articles:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>r)),{minLength:1})),contents:/*#__PURE__*/ t.ref((()=>D)),notes:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string({maxGraphemes:1024}))})),he=/*#__PURE__*/ k.isTypeOf.bind(k),ge=/*#__PURE__*/ k.build.bind(k),_e=/*#__PURE__*/ k.assert.bind(k),ve=/*#__PURE__*/ k.check.bind(k),ye=/*#__PURE__*/ k.cast.bind(k),be=/*#__PURE__*/ k.ifMatches.bind(k),xe=/*#__PURE__*/ k.matches.bind(k),Se=/*#__PURE__*/ k.parse.bind(k),Ce=/*#__PURE__*/ k.safeParse.bind(k),we=/*#__PURE__*/ k.validate.bind(k),Te=/*#__PURE__*/ k.safeValidate.bind(k),A=`com.ihavethatonvinyl.article.createArticleRevision`,j=/*#__PURE__*/ t.params(),M=/*#__PURE__*/ t.jsonPayload({contents:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>D)))}),N=/*#__PURE__*/ t.jsonPayload({revision:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>k)))}),P=/*#__PURE__*/ t.procedure(A,j,M,N);var Ee=/* @__PURE__ */ e({$input:()=>M,$lxm:()=>`com.ihavethatonvinyl.article.createArticleRevision`,$nsid:()=>A,$output:()=>N,$params:()=>j,default:()=>P,main:()=>P});const F=`com.ihavethatonvinyl.article.unpublishArticle`,De=/*#__PURE__*/ t.params({article:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string({format:`at-uri`}))}),I=/*#__PURE__*/ t.payload(),L=/*#__PURE__*/ t.payload(),R=/*#__PURE__*/ t.procedure(F,De,I,L);var Oe=/* @__PURE__ */ e({$input:()=>I,$lxm:()=>`com.ihavethatonvinyl.article.unpublishArticle`,$nsid:()=>F,$output:()=>L,$params:()=>De,default:()=>R,main:()=>R});const z=`com.ihavethatonvinyl.article`,B=/*#__PURE__*/ t.record(`literal:self`,z,/*#__PURE__*/ t.object({published:/*#__PURE__*/ t.string({format:`datetime`}),publishedBy:/*#__PURE__*/ t.string({format:`did`})})),ke=/*#__PURE__*/ B.isTypeOf.bind(B),Ae=/*#__PURE__*/ B.build.bind(B),je=/*#__PURE__*/ B.assert.bind(B),Me=/*#__PURE__*/ B.check.bind(B),Ne=/*#__PURE__*/ B.cast.bind(B),Pe=/*#__PURE__*/ B.ifMatches.bind(B),Fe=/*#__PURE__*/ B.matches.bind(B),Ie=/*#__PURE__*/ B.parse.bind(B),Le=/*#__PURE__*/ B.safeParse.bind(B),Re=/*#__PURE__*/ B.validate.bind(B),ze=/*#__PURE__*/ B.safeValidate.bind(B);var Be=/* @__PURE__ */ e({$nsid:()=>i,checkedListItemMeta:()=>c,contents:()=>D,divider:()=>x,dividerBlockData:()=>s,header:()=>b,headerBlockData:()=>o,image:()=>w,imageBlockData:()=>m,link:()=>T,linkBlockData:()=>g,linkMeta:()=>h,list:()=>C,listBlockData:()=>d,listItem:()=>u,localImage:()=>p,orderedListItemMeta:()=>l,paragraph:()=>y,paragraphBlockData:()=>a,quote:()=>S,quoteBlockData:()=>me,table:()=>E,tableBlockData:()=>v,tableRow:()=>_,url:()=>f});const V=`com.ihavethatonvinyl.article.getArticle`,H=/*#__PURE__*/ t.params({article:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string({format:`at-uri`})),allVersions:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.boolean(),!1))}),U=/*#__PURE__*/ t.jsonPayload({article:/*#__PURE__*/ t.ref((()=>B)),contents:/*#__PURE__*/ t.ref((()=>k)),history:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>k))))}),W=/*#__PURE__*/ t.query(V,H,U);var Ve=/* @__PURE__ */ e({$lxm:()=>`com.ihavethatonvinyl.article.getArticle`,$nsid:()=>V,$output:()=>U,$params:()=>H,default:()=>W,main:()=>W});const G=`com.ihavethatonvinyl.article.listArticles`,K=/*#__PURE__*/ t.params({limit:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.integer({minimum:1,maximum:100}),25)),start:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.integer({minimum:0}),0)),sort:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.enum([`asc`,`desc`]),`desc`)),sortBy:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.string(),`published`))}),q=/*#__PURE__*/ t.jsonPayload({items:/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>k))),nextPage:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.integer({minimum:2})),total:/*#__PURE__*/ t.integer({minimum:0})}),J=/*#__PURE__*/ t.query(G,K,q);var He=/* @__PURE__ */ e({$lxm:()=>`com.ihavethatonvinyl.article.listArticles`,$nsid:()=>G,$output:()=>q,$params:()=>K,default:()=>J,main:()=>J});const Y=`com.ihavethatonvinyl.article.publishArticleRevision`,X=/*#__PURE__*/ t.params({revision:/*#__PURE__*/ t.string({format:`at-uri`})}),Z=/*#__PURE__*/ t.payload(),Q=/*#__PURE__*/ t.jsonPayload({article:/*#__PURE__*/ t.ref((()=>B)),contents:/*#__PURE__*/ t.ref((()=>k))}),$=/*#__PURE__*/ t.procedure(Y,X,Z,Q);var Ue=/* @__PURE__ */ e({$input:()=>Z,$lxm:()=>`com.ihavethatonvinyl.article.publishArticleRevision`,$nsid:()=>Y,$output:()=>Q,$params:()=>X,default:()=>$,main:()=>$}),We=/* @__PURE__ */ e({$assert:()=>_e,$build:()=>ge,$cast:()=>ye,$check:()=>ve,$ifMatches:()=>be,$isTypeOf:()=>he,$matches:()=>xe,$nsid:()=>O,$parse:()=>Se,$safeParse:()=>Ce,$safeValidate:()=>Te,$type:()=>`com.ihavethatonvinyl.article.revision`,$validate:()=>we,default:()=>k,main:()=>k}),Ge=/* @__PURE__ */ e({$assert:()=>je,$build:()=>Ae,$cast:()=>Ne,$check:()=>Me,$ifMatches:()=>Pe,$isTypeOf:()=>ke,$matches:()=>Fe,$nsid:()=>z,$parse:()=>Ie,$safeParse:()=>Le,$safeValidate:()=>ze,$type:()=>`com.ihavethatonvinyl.article`,$validate:()=>Re,createArticleRevision:()=>Ee,default:()=>B,defs:()=>Be,getArticle:()=>Ve,listArticles:()=>He,main:()=>B,publishArticleRevision:()=>Ue,revision:()=>We,unpublishArticle:()=>Oe});const Ke=`com.ihavethatonvinyl.auth.editor`,qe=/*#__PURE__*/ t.permissionSet(Ke,[/*#__PURE__*/ t.permission(`repo`,{action:[`create`],collection:[`com.ihavethatonvinyl.article.revision`]}),/*#__PURE__*/ t.permission(`blob`,{accept:[`image/*`]})],{title:`ihavethatonvinyl.com`,detail:`Manage article contents`});var Je=/* @__PURE__ */ e({$nsid:()=>Ke,default:()=>qe,main:()=>qe});const Ye=`com.ihavethatonvinyl.auth.publisher`,Xe=/*#__PURE__*/ t.permissionSet(Ye,[/*#__PURE__*/ t.permission(`repo`,{action:[`create`,`delete`],collection:[`com.ihavethatonvinyl.article`]})],{title:`ihavethatonvinyl.com`,detail:`Manage articles`});var Ze=/* @__PURE__ */ e({$nsid:()=>Ye,default:()=>Xe,main:()=>Xe}),Qe=/* @__PURE__ */ e({editor:()=>Je,publisher:()=>Ze}),$e=/* @__PURE__ */ e({article:()=>Ge,auth:()=>Qe}),et=/* @__PURE__ */ e({atproto:()=>pe,ihavethatonvinyl:()=>$e});export{et as com};
1
+ import{t as e}from"./rolldown-runtime-P3Pd_6ND.js";import{l as t}from"@atproto/lex";const n=`com.atproto.repo.strongRef`,r=/*#__PURE__*/ t.typedObject(n,`main`,/*#__PURE__*/ t.object({cid:/*#__PURE__*/ t.string({format:`cid`}),uri:/*#__PURE__*/ t.string({format:`at-uri`})})),ee=/*#__PURE__*/ r.isTypeOf.bind(r),te=/*#__PURE__*/ r.build.bind(r),ne=/*#__PURE__*/ r.assert.bind(r),re=/*#__PURE__*/ r.check.bind(r),ie=/*#__PURE__*/ r.cast.bind(r),ae=/*#__PURE__*/ r.ifMatches.bind(r),oe=/*#__PURE__*/ r.matches.bind(r),se=/*#__PURE__*/ r.parse.bind(r),ce=/*#__PURE__*/ r.safeParse.bind(r),le=/*#__PURE__*/ r.validate.bind(r),ue=/*#__PURE__*/ r.safeValidate.bind(r);var de=/* @__PURE__ */ e({$assert:()=>ne,$build:()=>te,$cast:()=>ie,$check:()=>re,$ifMatches:()=>ae,$isTypeOf:()=>ee,$matches:()=>oe,$nsid:()=>n,$parse:()=>se,$safeParse:()=>ce,$safeValidate:()=>ue,$type:()=>`com.atproto.repo.strongRef`,$validate:()=>le,default:()=>r,main:()=>r}),fe=/* @__PURE__ */ e({strongRef:()=>de}),pe=/* @__PURE__ */ e({repo:()=>fe});const i=`com.ihavethatonvinyl.article.defs`,a=/*#__PURE__*/ t.typedObject(i,`paragraphBlockData`,/*#__PURE__*/ t.object({text:/*#__PURE__*/ t.string()})),me=/*#__PURE__*/ t.typedObject(i,`headerBlockData`,/*#__PURE__*/ t.object({text:/*#__PURE__*/ t.string(),level:/*#__PURE__*/ t.integer({minimum:1,maximum:6})})),o=/*#__PURE__*/ t.typedObject(i,`dividerBlockData`,/*#__PURE__*/ t.object({})),he=/*#__PURE__*/ t.typedObject(i,`quoteBlockData`,/*#__PURE__*/ t.object({text:/*#__PURE__*/ t.string(),caption:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string()),alignment:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.enum([`left`,`center`]),`left`))})),s=/*#__PURE__*/ t.typedObject(i,`checkedListItemMeta`,/*#__PURE__*/ t.object({checked:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean())})),c=/*#__PURE__*/ t.typedObject(i,`orderedListItemMeta`,/*#__PURE__*/ t.object({start:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.integer({minimum:1})),counterType:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string())})),l=/*#__PURE__*/ t.typedObject(i,`listItem`,/*#__PURE__*/ t.object({content:/*#__PURE__*/ t.string(),meta:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.nullable(/*#__PURE__*/ t.typedUnion([/*#__PURE__*/ t.typedRef((()=>s)),/*#__PURE__*/ t.typedRef((()=>c))],!1))),items:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>l))))})),u=/*#__PURE__*/ t.typedObject(i,`listBlockData`,/*#__PURE__*/ t.object({style:/*#__PURE__*/ t.string(),meta:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.nullable(/*#__PURE__*/ t.typedUnion([/*#__PURE__*/ t.typedRef((()=>s)),/*#__PURE__*/ t.typedRef((()=>c))],!1))),items:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>l))))})),d=/*#__PURE__*/ t.typedObject(i,`url`,/*#__PURE__*/ t.object({url:/*#__PURE__*/ t.string({format:`uri`})})),f=/*#__PURE__*/ t.typedObject(i,`localImage`,/*#__PURE__*/ t.object({mimeType:/*#__PURE__*/ t.string(),b64Data:/*#__PURE__*/ t.string({maxLength:1468006})})),p=/*#__PURE__*/ t.typedObject(i,`imageBlockData`,/*#__PURE__*/ t.object({file:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>d))),imageBlob:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.blob({accept:[`image/*`],maxSize:1048576})),image:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>f))),caption:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string()),withBorder:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean()),withBackground:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean()),stretched:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean())})),m=/*#__PURE__*/ t.typedObject(i,`linkMeta`,/*#__PURE__*/ t.object({title:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string()),description:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string()),image:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>d)))})),h=/*#__PURE__*/ t.typedObject(i,`linkBlockData`,/*#__PURE__*/ t.object({url:/*#__PURE__*/ t.string({format:`uri`}),meta:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>m)))})),g=/*#__PURE__*/ t.typedObject(i,`tableRow`,/*#__PURE__*/ t.object({columns:/*#__PURE__*/ t.array(/*#__PURE__*/ t.string(),{minLength:1})})),_=/*#__PURE__*/ t.typedObject(i,`tableBlockData`,/*#__PURE__*/ t.object({withHeadings:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean()),stretched:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean()),rows:/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>g)),{minLength:1})})),v=/*#__PURE__*/ t.typedObject(i,`paragraph`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`paragraph`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>a)))})),y=/*#__PURE__*/ t.typedObject(i,`header`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`header`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>me)))})),b=/*#__PURE__*/ t.typedObject(i,`divider`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`divider`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>o)))})),x=/*#__PURE__*/ t.typedObject(i,`quote`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`quote`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>he)))})),S=/*#__PURE__*/ t.typedObject(i,`list`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`list`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>u)))})),C=/*#__PURE__*/ t.typedObject(i,`image`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`image`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>p)))})),w=/*#__PURE__*/ t.typedObject(i,`link`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`linkTool`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>h)))})),T=/*#__PURE__*/ t.typedObject(i,`table`,/*#__PURE__*/ t.object({type:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.literal(`table`)),data:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>_)))})),E=/*#__PURE__*/ t.typedObject(i,`contents`,/*#__PURE__*/ t.object({title:/*#__PURE__*/ t.string({minGraphemes:1,maxGraphemes:256}),blurb:/*#__PURE__*/ t.string({maxGraphemes:2048}),heroImage:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.blob({accept:[`image/*`],maxSize:1048576})),authors:/*#__PURE__*/ t.array(/*#__PURE__*/ t.string(),{minLength:1,maxLength:5}),categories:/*#__PURE__*/ t.array(/*#__PURE__*/ t.string(),{minLength:1}),body:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.typedUnion([/*#__PURE__*/ t.typedRef((()=>v)),/*#__PURE__*/ t.typedRef((()=>y)),/*#__PURE__*/ t.typedRef((()=>b)),/*#__PURE__*/ t.typedRef((()=>x)),/*#__PURE__*/ t.typedRef((()=>S)),/*#__PURE__*/ t.typedRef((()=>C)),/*#__PURE__*/ t.typedRef((()=>w)),/*#__PURE__*/ t.typedRef((()=>T))],!1)))})),D=`com.ihavethatonvinyl.article.revision`,O=/*#__PURE__*/ t.record(`tid`,D,/*#__PURE__*/ t.object({published:/*#__PURE__*/ t.string({format:`datetime`}),publishedBy:/*#__PURE__*/ t.string({format:`did`}),articles:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>r)),{minLength:1})),contents:/*#__PURE__*/ t.ref((()=>E)),notes:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string({maxGraphemes:1024}))})),ge=/*#__PURE__*/ O.isTypeOf.bind(O),_e=/*#__PURE__*/ O.build.bind(O),ve=/*#__PURE__*/ O.assert.bind(O),ye=/*#__PURE__*/ O.check.bind(O),be=/*#__PURE__*/ O.cast.bind(O),xe=/*#__PURE__*/ O.ifMatches.bind(O),Se=/*#__PURE__*/ O.matches.bind(O),Ce=/*#__PURE__*/ O.parse.bind(O),we=/*#__PURE__*/ O.safeParse.bind(O),Te=/*#__PURE__*/ O.validate.bind(O),Ee=/*#__PURE__*/ O.safeValidate.bind(O),k=`com.ihavethatonvinyl.article.createArticle`,A=/*#__PURE__*/ t.params(),j=/*#__PURE__*/ t.jsonPayload({contents:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>O)))}),M=/*#__PURE__*/ t.jsonPayload({cid:/*#__PURE__*/ t.string({format:`cid`}),uri:/*#__PURE__*/ t.string({format:`at-uri`})}),N=/*#__PURE__*/ t.procedure(k,A,j,M);var De=/* @__PURE__ */ e({$input:()=>j,$lxm:()=>`com.ihavethatonvinyl.article.createArticle`,$nsid:()=>k,$output:()=>M,$params:()=>A,default:()=>N,main:()=>N});const P=`com.ihavethatonvinyl.article.unpublishArticle`,F=/*#__PURE__*/ t.params({article:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string({format:`at-uri`})),deleteAllRevisions:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.boolean())}),I=/*#__PURE__*/ t.payload(),L=/*#__PURE__*/ t.payload(),R=/*#__PURE__*/ t.procedure(P,F,I,L);var Oe=/* @__PURE__ */ e({$input:()=>I,$lxm:()=>`com.ihavethatonvinyl.article.unpublishArticle`,$nsid:()=>P,$output:()=>L,$params:()=>F,default:()=>R,main:()=>R});const z=`com.ihavethatonvinyl.article`,B=/*#__PURE__*/ t.record(`literal:self`,z,/*#__PURE__*/ t.object({published:/*#__PURE__*/ t.string({format:`datetime`}),publishedBy:/*#__PURE__*/ t.string({format:`did`})})),ke=/*#__PURE__*/ B.isTypeOf.bind(B),Ae=/*#__PURE__*/ B.build.bind(B),je=/*#__PURE__*/ B.assert.bind(B),Me=/*#__PURE__*/ B.check.bind(B),Ne=/*#__PURE__*/ B.cast.bind(B),Pe=/*#__PURE__*/ B.ifMatches.bind(B),Fe=/*#__PURE__*/ B.matches.bind(B),Ie=/*#__PURE__*/ B.parse.bind(B),Le=/*#__PURE__*/ B.safeParse.bind(B),Re=/*#__PURE__*/ B.validate.bind(B),ze=/*#__PURE__*/ B.safeValidate.bind(B);var Be=/* @__PURE__ */ e({$nsid:()=>i,checkedListItemMeta:()=>s,contents:()=>E,divider:()=>b,dividerBlockData:()=>o,header:()=>y,headerBlockData:()=>me,image:()=>C,imageBlockData:()=>p,link:()=>w,linkBlockData:()=>h,linkMeta:()=>m,list:()=>S,listBlockData:()=>u,listItem:()=>l,localImage:()=>f,orderedListItemMeta:()=>c,paragraph:()=>v,paragraphBlockData:()=>a,quote:()=>x,quoteBlockData:()=>he,table:()=>T,tableBlockData:()=>_,tableRow:()=>g,url:()=>d});const V=`com.ihavethatonvinyl.article.editArticle`,H=/*#__PURE__*/ t.params({revision:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string({format:`at-uri`}))}),U=/*#__PURE__*/ t.jsonPayload({contents:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>O)))}),W=/*#__PURE__*/ t.jsonPayload({cid:/*#__PURE__*/ t.string({format:`cid`}),uri:/*#__PURE__*/ t.string({format:`at-uri`})}),G=/*#__PURE__*/ t.procedure(V,H,U,W);var Ve=/* @__PURE__ */ e({$input:()=>U,$lxm:()=>`com.ihavethatonvinyl.article.editArticle`,$nsid:()=>V,$output:()=>W,$params:()=>H,default:()=>G,main:()=>G});const K=`com.ihavethatonvinyl.article.getArticle`,q=/*#__PURE__*/ t.params({article:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.string({format:`at-uri`})),allVersions:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.boolean(),!1))}),J=/*#__PURE__*/ t.jsonPayload({article:/*#__PURE__*/ t.ref((()=>B)),contents:/*#__PURE__*/ t.ref((()=>O)),history:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>O))))}),Y=/*#__PURE__*/ t.query(K,q,J);var He=/* @__PURE__ */ e({$lxm:()=>`com.ihavethatonvinyl.article.getArticle`,$nsid:()=>K,$output:()=>J,$params:()=>q,default:()=>Y,main:()=>Y});const X=`com.ihavethatonvinyl.article.listArticles`,Z=/*#__PURE__*/ t.params({limit:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.integer({minimum:1,maximum:100}),25)),start:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.integer({minimum:0}),0)),sort:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.enum([`asc`,`desc`]),`desc`)),sortBy:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.string(),`published`))}),Q=/*#__PURE__*/ t.jsonPayload({items:/*#__PURE__*/ t.array(/*#__PURE__*/ t.ref((()=>Ue))),start:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.withDefault(/*#__PURE__*/ t.integer({minimum:0}),0)),count:/*#__PURE__*/ t.integer({minimum:0}),total:/*#__PURE__*/ t.integer({minimum:0})}),$=/*#__PURE__*/ t.query(X,Z,Q),Ue=/*#__PURE__*/ t.typedObject(X,`listItem`,/*#__PURE__*/ t.object({title:/*#__PURE__*/ t.string({minGraphemes:1,maxGraphemes:256}),blurb:/*#__PURE__*/ t.string({maxGraphemes:2048}),heroImage:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.blob({accept:[`image/*`],maxSize:1048576})),authors:/*#__PURE__*/ t.array(/*#__PURE__*/ t.string(),{minLength:1,maxLength:5}),categories:/*#__PURE__*/ t.array(/*#__PURE__*/ t.string(),{minLength:1}),article:/*#__PURE__*/ t.optional(/*#__PURE__*/ t.ref((()=>r)))}));var We=/* @__PURE__ */ e({$lxm:()=>`com.ihavethatonvinyl.article.listArticles`,$nsid:()=>X,$output:()=>Q,$params:()=>Z,default:()=>$,listItem:()=>Ue,main:()=>$});const Ge=`com.ihavethatonvinyl.article.publishArticleRevision`,Ke=/*#__PURE__*/ t.params({revision:/*#__PURE__*/ t.string({format:`at-uri`}),target:/*#__PURE__*/ t.string({format:`did`})}),qe=/*#__PURE__*/ t.payload(),Je=/*#__PURE__*/ t.jsonPayload({cid:/*#__PURE__*/ t.string({format:`cid`}),uri:/*#__PURE__*/ t.string({format:`at-uri`})}),Ye=/*#__PURE__*/ t.procedure(Ge,Ke,qe,Je);var Xe=/* @__PURE__ */ e({$input:()=>qe,$lxm:()=>`com.ihavethatonvinyl.article.publishArticleRevision`,$nsid:()=>Ge,$output:()=>Je,$params:()=>Ke,default:()=>Ye,main:()=>Ye}),Ze=/* @__PURE__ */ e({$assert:()=>ve,$build:()=>_e,$cast:()=>be,$check:()=>ye,$ifMatches:()=>xe,$isTypeOf:()=>ge,$matches:()=>Se,$nsid:()=>D,$parse:()=>Ce,$safeParse:()=>we,$safeValidate:()=>Ee,$type:()=>`com.ihavethatonvinyl.article.revision`,$validate:()=>Te,default:()=>O,main:()=>O}),Qe=/* @__PURE__ */ e({$assert:()=>je,$build:()=>Ae,$cast:()=>Ne,$check:()=>Me,$ifMatches:()=>Pe,$isTypeOf:()=>ke,$matches:()=>Fe,$nsid:()=>z,$parse:()=>Ie,$safeParse:()=>Le,$safeValidate:()=>ze,$type:()=>`com.ihavethatonvinyl.article`,$validate:()=>Re,createArticle:()=>De,default:()=>B,defs:()=>Be,editArticle:()=>Ve,getArticle:()=>He,listArticles:()=>We,main:()=>B,publishArticleRevision:()=>Xe,revision:()=>Ze,unpublishArticle:()=>Oe});const $e=`com.ihavethatonvinyl.auth.editor`,et=/*#__PURE__*/ t.permissionSet($e,[/*#__PURE__*/ t.permission(`repo`,{action:[`create`],collection:[`com.ihavethatonvinyl.article.revision`]}),/*#__PURE__*/ t.permission(`blob`,{accept:[`image/*`]})],{title:`ihavethatonvinyl.com`,detail:`Manage article contents`});var tt=/* @__PURE__ */ e({$nsid:()=>$e,default:()=>et,main:()=>et});const nt=`com.ihavethatonvinyl.auth.publisher`,rt=/*#__PURE__*/ t.permissionSet(nt,[/*#__PURE__*/ t.permission(`repo`,{action:[`create`,`delete`],collection:[`com.ihavethatonvinyl.article`]})],{title:`ihavethatonvinyl.com`,detail:`Manage articles`});var it=/* @__PURE__ */ e({$nsid:()=>nt,default:()=>rt,main:()=>rt}),at=/* @__PURE__ */ e({editor:()=>tt,publisher:()=>it}),ot=/* @__PURE__ */ e({article:()=>Qe,auth:()=>at}),st=/* @__PURE__ */ e({atproto:()=>pe,ihavethatonvinyl:()=>ot});export{st as com};
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["$nsid","main","$type","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","$nsid","$nsid","main","RepoStrongRef.main","ArticleDefs.contents","$type","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","$nsid","$params","$input","ArticleDefs.contents","$output","ArticleRevision.main","main","$lxm","$nsid","$params","$input","$output","main","$lxm","$nsid","main","$nsid","$params","$output","IhavethatonvinylArticle.main","ArticleRevision.main","main","$lxm","$nsid","$params","$output","ArticleRevision.main","main","$lxm","$nsid","IhavethatonvinylArticle.main","ArticleRevision.main","main","$nsid","main","__exportAll","l","$nsid$10","main$9","$isTypeOf$2","$build$2","$assert$2","$check$2","$cast$2","$ifMatches$2","$matches$2","$parse$2","$safeParse$2","$validate$2","$safeValidate$2","strongRef_exports","repo_exports","atproto_exports","$nsid$9","paragraphBlockData","headerBlockData","dividerBlockData","quoteBlockData","checkedListItemMeta","orderedListItemMeta","listItem","listBlockData","url","localImage","imageBlockData","linkMeta","linkBlockData","tableRow","tableBlockData","paragraph","header","divider","quote","list","image","link","table","contents","$nsid$8","main$8","$isTypeOf$1","$build$1","$assert$1","$check$1","$cast$1","$ifMatches$1","$matches$1","$parse$1","$safeParse$1","$validate$1","$safeValidate$1","$nsid$7","$params$4","$input$2","$output$4","main$7","createArticleRevision_exports","$nsid$6","$params$3","$input$1","$output$3","main$6","unpublishArticle_exports","$nsid$5","main$5","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","defs_exports","$nsid$4","$params$2","$output$2","main$4","getArticle_exports","$nsid$3","$params$1","$output$1","main$3","listArticles_exports","$nsid$2","$params","$input","$output","main$2","publishArticleRevision_exports","revision_exports","article_exports","$nsid$1","main$1","editor_exports","$nsid","main","publisher_exports","auth_exports","ihavethatonvinyl_exports","com_exports"],"sources":["../src/gen/com/atproto/repo/strongRef.defs.ts","../src/gen/com/atproto/repo/strongRef.ts","../src/gen/com/atproto/repo.ts","../src/gen/com/atproto.ts","../src/gen/com/ihavethatonvinyl/article/defs.defs.ts","../src/gen/com/ihavethatonvinyl/article/revision.defs.ts","../src/gen/com/ihavethatonvinyl/article/createArticleRevision.defs.ts","../src/gen/com/ihavethatonvinyl/article/createArticleRevision.ts","../src/gen/com/ihavethatonvinyl/article/unpublishArticle.defs.ts","../src/gen/com/ihavethatonvinyl/article/unpublishArticle.ts","../src/gen/com/ihavethatonvinyl/article.defs.ts","../src/gen/com/ihavethatonvinyl/article/defs.ts","../src/gen/com/ihavethatonvinyl/article/getArticle.defs.ts","../src/gen/com/ihavethatonvinyl/article/getArticle.ts","../src/gen/com/ihavethatonvinyl/article/listArticles.defs.ts","../src/gen/com/ihavethatonvinyl/article/listArticles.ts","../src/gen/com/ihavethatonvinyl/article/publishArticleRevision.defs.ts","../src/gen/com/ihavethatonvinyl/article/publishArticleRevision.ts","../src/gen/com/ihavethatonvinyl/article/revision.ts","../src/gen/com/ihavethatonvinyl/article.ts","../src/gen/com/ihavethatonvinyl/auth/editor.defs.ts","../src/gen/com/ihavethatonvinyl/auth/editor.ts","../src/gen/com/ihavethatonvinyl/auth/publisher.defs.ts","../src/gen/com/ihavethatonvinyl/auth/publisher.ts","../src/gen/com/ihavethatonvinyl/auth.ts","../src/gen/com/ihavethatonvinyl.ts","../src/gen/com.ts"],"sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.atproto.repo.strongRef'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype Main = {\n $type?: 'com.atproto.repo.strongRef'\n cid: l.CidString\n uri: l.AtUriString\n}\n\nexport type { Main }\n\nconst main = /*#__PURE__*/ l.typedObject<Main>(\n $nsid,\n 'main',\n /*#__PURE__*/ l.object({\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './strongRef.defs'\nexport { main as default } from './strongRef.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as strongRef from './repo/strongRef'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as repo from './atproto/repo'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype ParagraphBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#paragraphBlockData'\n text: string\n}\n\nexport type { ParagraphBlockData }\n\nconst paragraphBlockData = /*#__PURE__*/ l.typedObject<ParagraphBlockData>(\n $nsid,\n 'paragraphBlockData',\n /*#__PURE__*/ l.object({ text: /*#__PURE__*/ l.string() }),\n)\n\nexport { paragraphBlockData }\n\ntype HeaderBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#headerBlockData'\n text: string\n level: number\n}\n\nexport type { HeaderBlockData }\n\nconst headerBlockData = /*#__PURE__*/ l.typedObject<HeaderBlockData>(\n $nsid,\n 'headerBlockData',\n /*#__PURE__*/ l.object({\n text: /*#__PURE__*/ l.string(),\n level: /*#__PURE__*/ l.integer({ minimum: 1, maximum: 6 }),\n }),\n)\n\nexport { headerBlockData }\n\ntype DividerBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#dividerBlockData'\n}\n\nexport type { DividerBlockData }\n\nconst dividerBlockData = /*#__PURE__*/ l.typedObject<DividerBlockData>(\n $nsid,\n 'dividerBlockData',\n /*#__PURE__*/ l.object({}),\n)\n\nexport { dividerBlockData }\n\ntype QuoteBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#quoteBlockData'\n text: string\n caption?: string\n alignment?: 'left' | 'center'\n}\n\nexport type { QuoteBlockData }\n\nconst quoteBlockData = /*#__PURE__*/ l.typedObject<QuoteBlockData>(\n $nsid,\n 'quoteBlockData',\n /*#__PURE__*/ l.object({\n text: /*#__PURE__*/ l.string(),\n caption: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n alignment: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.enum(['left', 'center']),\n 'left',\n ),\n ),\n }),\n)\n\nexport { quoteBlockData }\n\ntype CheckedListItemMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#checkedListItemMeta'\n checked?: boolean\n}\n\nexport type { CheckedListItemMeta }\n\nconst checkedListItemMeta = /*#__PURE__*/ l.typedObject<CheckedListItemMeta>(\n $nsid,\n 'checkedListItemMeta',\n /*#__PURE__*/ l.object({\n checked: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n }),\n)\n\nexport { checkedListItemMeta }\n\ntype OrderedListItemMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#orderedListItemMeta'\n start?: number\n counterType?: string\n}\n\nexport type { OrderedListItemMeta }\n\nconst orderedListItemMeta = /*#__PURE__*/ l.typedObject<OrderedListItemMeta>(\n $nsid,\n 'orderedListItemMeta',\n /*#__PURE__*/ l.object({\n start: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ minimum: 1 })),\n counterType: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n }),\n)\n\nexport { orderedListItemMeta }\n\ntype ListItem = {\n $type?: 'com.ihavethatonvinyl.article.defs#listItem'\n content: string\n meta?:\n | l.$Typed<CheckedListItemMeta>\n | l.$Typed<OrderedListItemMeta>\n | l.Unknown$TypedObject\n | null\n items?: ListItem[]\n}\n\nexport type { ListItem }\n\nconst listItem = /*#__PURE__*/ l.typedObject<ListItem>(\n $nsid,\n 'listItem',\n /*#__PURE__*/ l.object({\n content: /*#__PURE__*/ l.string(),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.nullable(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<CheckedListItemMeta>(\n (() => checkedListItemMeta) as any,\n ),\n /*#__PURE__*/ l.typedRef<OrderedListItemMeta>(\n (() => orderedListItemMeta) as any,\n ),\n ],\n false,\n ),\n ),\n ),\n items: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ListItem>((() => listItem) as any),\n ),\n ),\n }),\n)\n\nexport { listItem }\n\ntype ListBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#listBlockData'\n style: 'ordered' | 'unordered' | 'checked' | l.UnknownString\n meta?:\n | l.$Typed<CheckedListItemMeta>\n | l.$Typed<OrderedListItemMeta>\n | l.Unknown$TypedObject\n | null\n items?: ListItem[]\n}\n\nexport type { ListBlockData }\n\nconst listBlockData = /*#__PURE__*/ l.typedObject<ListBlockData>(\n $nsid,\n 'listBlockData',\n /*#__PURE__*/ l.object({\n style: /*#__PURE__*/ l.string<{\n knownValues: ['ordered', 'unordered', 'checked']\n }>(),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.nullable(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<CheckedListItemMeta>(\n (() => checkedListItemMeta) as any,\n ),\n /*#__PURE__*/ l.typedRef<OrderedListItemMeta>(\n (() => orderedListItemMeta) as any,\n ),\n ],\n false,\n ),\n ),\n ),\n items: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ListItem>((() => listItem) as any),\n ),\n ),\n }),\n)\n\nexport { listBlockData }\n\ntype Url = { $type?: 'com.ihavethatonvinyl.article.defs#url'; url: l.UriString }\n\nexport type { Url }\n\nconst url = /*#__PURE__*/ l.typedObject<Url>(\n $nsid,\n 'url',\n /*#__PURE__*/ l.object({ url: /*#__PURE__*/ l.string({ format: 'uri' }) }),\n)\n\nexport { url }\n\ntype LocalImage = {\n $type?: 'com.ihavethatonvinyl.article.defs#localImage'\n mimeType: string\n b64Data: string\n}\n\nexport type { LocalImage }\n\nconst localImage = /*#__PURE__*/ l.typedObject<LocalImage>(\n $nsid,\n 'localImage',\n /*#__PURE__*/ l.object({\n mimeType: /*#__PURE__*/ l.string(),\n b64Data: /*#__PURE__*/ l.string({ maxLength: 1468006 }),\n }),\n)\n\nexport { localImage }\n\ntype ImageBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#imageBlockData'\n file?: Url\n imageBlob?: l.BlobRef\n image?: LocalImage\n caption?: string\n withBorder?: boolean\n withBackground?: boolean\n stretched?: boolean\n}\n\nexport type { ImageBlockData }\n\nconst imageBlockData = /*#__PURE__*/ l.typedObject<ImageBlockData>(\n $nsid,\n 'imageBlockData',\n /*#__PURE__*/ l.object({\n file: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<Url>((() => url) as any),\n ),\n imageBlob: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.blob({ accept: ['image/*'], maxSize: 1048576 }),\n ),\n image: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LocalImage>((() => localImage) as any),\n ),\n caption: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n withBorder: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n withBackground: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n stretched: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n }),\n)\n\nexport { imageBlockData }\n\ntype LinkMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#linkMeta'\n title?: string\n description?: string\n image?: Url\n}\n\nexport type { LinkMeta }\n\nconst linkMeta = /*#__PURE__*/ l.typedObject<LinkMeta>(\n $nsid,\n 'linkMeta',\n /*#__PURE__*/ l.object({\n title: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n image: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<Url>((() => url) as any),\n ),\n }),\n)\n\nexport { linkMeta }\n\ntype LinkBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#linkBlockData'\n url: l.UriString\n meta?: LinkMeta\n}\n\nexport type { LinkBlockData }\n\nconst linkBlockData = /*#__PURE__*/ l.typedObject<LinkBlockData>(\n $nsid,\n 'linkBlockData',\n /*#__PURE__*/ l.object({\n url: /*#__PURE__*/ l.string({ format: 'uri' }),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LinkMeta>((() => linkMeta) as any),\n ),\n }),\n)\n\nexport { linkBlockData }\n\ntype TableRow = {\n $type?: 'com.ihavethatonvinyl.article.defs#tableRow'\n columns: string[]\n}\n\nexport type { TableRow }\n\nconst tableRow = /*#__PURE__*/ l.typedObject<TableRow>(\n $nsid,\n 'tableRow',\n /*#__PURE__*/ l.object({\n columns: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), { minLength: 1 }),\n }),\n)\n\nexport { tableRow }\n\ntype TableBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#tableBlockData'\n withHeadings?: boolean\n stretched?: boolean\n rows: TableRow[]\n}\n\nexport type { TableBlockData }\n\nconst tableBlockData = /*#__PURE__*/ l.typedObject<TableBlockData>(\n $nsid,\n 'tableBlockData',\n /*#__PURE__*/ l.object({\n withHeadings: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n stretched: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n rows: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<TableRow>((() => tableRow) as any),\n { minLength: 1 },\n ),\n }),\n)\n\nexport { tableBlockData }\n\ntype Paragraph = {\n $type?: 'com.ihavethatonvinyl.article.defs#paragraph'\n type?: 'paragraph'\n data?: ParagraphBlockData\n}\n\nexport type { Paragraph }\n\nconst paragraph = /*#__PURE__*/ l.typedObject<Paragraph>(\n $nsid,\n 'paragraph',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('paragraph')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ParagraphBlockData>(\n (() => paragraphBlockData) as any,\n ),\n ),\n }),\n)\n\nexport { paragraph }\n\ntype Header = {\n $type?: 'com.ihavethatonvinyl.article.defs#header'\n type?: 'header'\n data?: HeaderBlockData\n}\n\nexport type { Header }\n\nconst header = /*#__PURE__*/ l.typedObject<Header>(\n $nsid,\n 'header',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('header')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<HeaderBlockData>((() => headerBlockData) as any),\n ),\n }),\n)\n\nexport { header }\n\ntype Divider = {\n $type?: 'com.ihavethatonvinyl.article.defs#divider'\n type?: 'divider'\n data?: DividerBlockData\n}\n\nexport type { Divider }\n\nconst divider = /*#__PURE__*/ l.typedObject<Divider>(\n $nsid,\n 'divider',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('divider')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<DividerBlockData>((() => dividerBlockData) as any),\n ),\n }),\n)\n\nexport { divider }\n\ntype Quote = {\n $type?: 'com.ihavethatonvinyl.article.defs#quote'\n type?: 'quote'\n data?: QuoteBlockData\n}\n\nexport type { Quote }\n\nconst quote = /*#__PURE__*/ l.typedObject<Quote>(\n $nsid,\n 'quote',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('quote')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<QuoteBlockData>((() => quoteBlockData) as any),\n ),\n }),\n)\n\nexport { quote }\n\ntype List = {\n $type?: 'com.ihavethatonvinyl.article.defs#list'\n type?: 'list'\n data?: ListBlockData\n}\n\nexport type { List }\n\nconst list = /*#__PURE__*/ l.typedObject<List>(\n $nsid,\n 'list',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('list')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ListBlockData>((() => listBlockData) as any),\n ),\n }),\n)\n\nexport { list }\n\ntype Image = {\n $type?: 'com.ihavethatonvinyl.article.defs#image'\n type?: 'image'\n data?: ImageBlockData\n}\n\nexport type { Image }\n\nconst image = /*#__PURE__*/ l.typedObject<Image>(\n $nsid,\n 'image',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('image')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ImageBlockData>((() => imageBlockData) as any),\n ),\n }),\n)\n\nexport { image }\n\ntype Link = {\n $type?: 'com.ihavethatonvinyl.article.defs#link'\n type?: 'linkTool'\n data?: LinkBlockData\n}\n\nexport type { Link }\n\nconst link = /*#__PURE__*/ l.typedObject<Link>(\n $nsid,\n 'link',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('linkTool')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LinkBlockData>((() => linkBlockData) as any),\n ),\n }),\n)\n\nexport { link }\n\ntype Table = {\n $type?: 'com.ihavethatonvinyl.article.defs#table'\n type?: 'table'\n data?: TableBlockData\n}\n\nexport type { Table }\n\nconst table = /*#__PURE__*/ l.typedObject<Table>(\n $nsid,\n 'table',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('table')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TableBlockData>((() => tableBlockData) as any),\n ),\n }),\n)\n\nexport { table }\n\n/** An article's contents */\ntype Contents = {\n $type?: 'com.ihavethatonvinyl.article.defs#contents'\n\n /**\n * The article title\n */\n title: string\n\n /**\n * The blurb to be shown in list view\n */\n blurb: string\n\n /**\n * The image shown at the beginning of the article and in list view\n */\n heroImage?: l.BlobRef\n\n /**\n * A list of authors for the article. Free-form to allow plain names, or identifiers for a user\n */\n authors: string[]\n categories: (\n | 'conversations'\n | 'q-and-a'\n | 'essays'\n | 'features'\n | 'liner-notes'\n | l.UnknownString\n )[]\n body?: (\n | l.$Typed<Paragraph>\n | l.$Typed<Header>\n | l.$Typed<Divider>\n | l.$Typed<Quote>\n | l.$Typed<List>\n | l.$Typed<Image>\n | l.$Typed<Link>\n | l.$Typed<Table>\n | l.Unknown$TypedObject\n )[]\n}\n\nexport type { Contents }\n\n/** An article's contents */\nconst contents = /*#__PURE__*/ l.typedObject<Contents>(\n $nsid,\n 'contents',\n /*#__PURE__*/ l.object({\n title: /*#__PURE__*/ l.string({ minGraphemes: 1, maxGraphemes: 256 }),\n blurb: /*#__PURE__*/ l.string({ maxGraphemes: 2048 }),\n heroImage: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.blob({ accept: ['image/*'], maxSize: 1048576 }),\n ),\n authors: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {\n minLength: 1,\n maxLength: 5,\n }),\n categories: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: [\n 'conversations',\n 'q-and-a',\n 'essays',\n 'features',\n 'liner-notes',\n ]\n }>(),\n { minLength: 1 },\n ),\n body: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<Paragraph>((() => paragraph) as any),\n /*#__PURE__*/ l.typedRef<Header>((() => header) as any),\n /*#__PURE__*/ l.typedRef<Divider>((() => divider) as any),\n /*#__PURE__*/ l.typedRef<Quote>((() => quote) as any),\n /*#__PURE__*/ l.typedRef<List>((() => list) as any),\n /*#__PURE__*/ l.typedRef<Image>((() => image) as any),\n /*#__PURE__*/ l.typedRef<Link>((() => link) as any),\n /*#__PURE__*/ l.typedRef<Table>((() => table) as any),\n ],\n false,\n ),\n ),\n ),\n }),\n)\n\nexport { contents }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as RepoStrongRef from '../../atproto/repo/strongRef.defs'\nimport * as ArticleDefs from './defs.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.revision'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** An I Have That on Vinyl article revision */\ntype Main = {\n $type: 'com.ihavethatonvinyl.article.revision'\n published: l.DatetimeString\n publishedBy: l.DidString\n articles?: RepoStrongRef.Main[]\n contents: ArticleDefs.Contents\n\n /**\n * A short description of what was updated\n */\n notes?: string\n}\n\nexport type { Main }\n\n/** An I Have That on Vinyl article revision */\nconst main = /*#__PURE__*/ l.record<'tid', Main>(\n 'tid',\n $nsid,\n /*#__PURE__*/ l.object({\n published: /*#__PURE__*/ l.string({ format: 'datetime' }),\n publishedBy: /*#__PURE__*/ l.string({ format: 'did' }),\n articles: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n { minLength: 1 },\n ),\n ),\n contents: /*#__PURE__*/ l.ref<ArticleDefs.Contents>(\n (() => ArticleDefs.contents) as any,\n ),\n notes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ maxGraphemes: 1024 }),\n ),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ArticleDefs from './defs.defs'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.createArticleRevision'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n contents: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ArticleDefs.Contents>(\n (() => ArticleDefs.contents) as any,\n ),\n ),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n revision: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** creates an article revision. If articles is empty, it's assumed this is a new article */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './createArticleRevision.defs'\nexport { main as default } from './createArticleRevision.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article.unpublishArticle'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n article: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'at-uri' }),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.payload()\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.payload()\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Deletes an article and removes any refs to it from all revisions */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './unpublishArticle.defs'\nexport { main as default } from './unpublishArticle.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** An I Have That on Vinyl article. It is immutable so backlinks and comments survive edits. The record key acts as the article's URL slug */\ntype Main = {\n $type: 'com.ihavethatonvinyl.article'\n\n /**\n * The date the article was originally published\n */\n published: l.DatetimeString\n\n /**\n * The user who published the article\n */\n publishedBy: l.DidString\n}\n\nexport type { Main }\n\n/** An I Have That on Vinyl article. It is immutable so backlinks and comments survive edits. The record key acts as the article's URL slug */\nconst main = /*#__PURE__*/ l.record<'literal:self', Main>(\n 'literal:self',\n $nsid,\n /*#__PURE__*/ l.object({\n published: /*#__PURE__*/ l.string({ format: 'datetime' }),\n publishedBy: /*#__PURE__*/ l.string({ format: 'did' }),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './defs.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as IhavethatonvinylArticle from '../article.defs'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.getArticle'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n article: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'at-uri' }),\n ),\n allVersions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n article: /*#__PURE__*/ l.ref<IhavethatonvinylArticle.Main>(\n (() => IhavethatonvinylArticle.main) as any,\n ),\n contents: /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n history: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Fetch an article with its latest revision, plus optionally all older versions */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './getArticle.defs'\nexport { main as default } from './getArticle.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.listArticles'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n limit: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.integer({ minimum: 1, maximum: 100 }),\n 25,\n ),\n ),\n start: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({ minimum: 0 }), 0),\n ),\n sort: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(['asc', 'desc']), 'desc'),\n ),\n sortBy: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.string<{ knownValues: ['published', 'updated'] }>(),\n 'published',\n ),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n items: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n nextPage: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ minimum: 2 })),\n total: /*#__PURE__*/ l.integer({ minimum: 0 }),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** returns the latest version of the articles that match the search criteria */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './listArticles.defs'\nexport { main as default } from './listArticles.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as IhavethatonvinylArticle from '../article.defs'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.publishArticleRevision'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n revision: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.payload()\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n article: /*#__PURE__*/ l.ref<IhavethatonvinylArticle.Main>(\n (() => IhavethatonvinylArticle.main) as any,\n ),\n contents: /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** publishes an article revision. if one of the revision's article refs exists in the repo, it is considered an update */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './publishArticleRevision.defs'\nexport { main as default } from './publishArticleRevision.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './revision.defs'\nexport { main as default } from './revision.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as createArticleRevision from './article/createArticleRevision'\nexport * as unpublishArticle from './article/unpublishArticle'\nexport * from './article.defs'\nexport { main as default } from './article.defs'\nexport * as defs from './article/defs'\nexport * as getArticle from './article/getArticle'\nexport * as listArticles from './article/listArticles'\nexport * as publishArticleRevision from './article/publishArticleRevision'\nexport * as revision from './article/revision'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.auth.editor'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nconst main = /*#__PURE__*/ l.permissionSet(\n $nsid,\n [\n /*#__PURE__*/ l.permission('repo', {\n action: ['create'],\n collection: ['com.ihavethatonvinyl.article.revision'],\n }),\n /*#__PURE__*/ l.permission('blob', { accept: ['image/*'] }),\n ],\n { title: 'ihavethatonvinyl.com', detail: 'Manage article contents' },\n)\n\nexport { main }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './editor.defs'\nexport { main as default } from './editor.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.auth.publisher'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nconst main = /*#__PURE__*/ l.permissionSet(\n $nsid,\n [\n /*#__PURE__*/ l.permission('repo', {\n action: ['create', 'delete'],\n collection: ['com.ihavethatonvinyl.article'],\n }),\n ],\n { title: 'ihavethatonvinyl.com', detail: 'Manage articles' },\n)\n\nexport { main }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './publisher.defs'\nexport { main as default } from './publisher.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as editor from './auth/editor'\nexport * as publisher from './auth/publisher'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as article from './ihavethatonvinyl/article'\nexport * as auth from './ihavethatonvinyl/auth'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as atproto from './com/atproto'\nexport * as ihavethatonvinyl from './com/ihavethatonvinyl'\n"],"mappings":"A,oFAMA,MAAMA,EAAQ,6BAcRC,EAAqBkE,gBAAE,YAC3BnE,EACA,OACcmE,gBAAE,OAAO,CACrB,IAAmBA,gBAAE,OAAO,CAAE,OAAQ,KAAM,CAAC,EAC7C,IAAmBA,gBAAE,OAAO,CAAE,OAAQ,QAAS,CAAC,CAClD,CAAC,CACH,EAUahE,GAA0BF,gBAAK,SAAS,KAAKA,CAAI,EACjDG,GAAuBH,gBAAK,MAAM,KAAKA,CAAI,EAC3CI,GAAwBJ,gBAAK,OAAO,KAAKA,CAAI,EAC7CK,GAAuBL,gBAAK,MAAM,KAAKA,CAAI,EAC3CM,GAAsBN,gBAAK,KAAK,KAAKA,CAAI,EACzCO,GAA2BP,gBAAK,UAAU,KAAKA,CAAI,EACnDQ,GAAyBR,gBAAK,QAAQ,KAAKA,CAAI,EAC/CS,GAAuBT,gBAAK,MAAM,KAAKA,CAAI,EAC3CU,GAA2BV,gBAAK,UAAU,KAAKA,CAAI,EACnDW,GAA0BX,gB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,gBAAE,MACPA,gBAAE,SACPV,EACT,CACF,EACA,SAAwBU,gBAAE,SAAuBA,gBAAE,QAAQ,CAAE,QAAS,CAAE,CAAC,CAAC,EAC1E,MAAqBA,gBAAE,QAAQ,CAAE,QAAS,CAAE,CAAC,CAC/C,CAAC,EASKT,EAAqBS,gBAAE,MAAMb,EAAOC,EAASC,CAAO,E,kJE7C1D,MAAMI,EAAQ,sDAMDmG,EAAwB5F,gBAAE,OAAO,CAC5C,SAAwBA,gBAAE,OAAO,CAAE,OAAQ,QAAS,CAAC,CACvD,CAAC,EAIY6F,EAAuB7F,gBAAE,QAAQ,EAKjC8F,EAAwB9F,gBAAE,YAAY,CACjD,QAAuBA,gBAAE,SAChBN,EACT,EACA,SAAwBM,gBAAE,SACjBL,EACT,CACF,CAAC,EASKC,EAAqBI,gBAAE,UAAUP,EAAOmG,EAASC,EAAQC,CAAO,E,q3BInCtE,MAAMjG,GAAQ,mCAMRC,GAAqBE,gBAAE,cAC3BH,GACA,CACgBG,gBAAE,WAAW,OAAQ,CACjC,OAAQ,CAAC,QAAQ,EACjB,WAAY,CAAC,uCAAuC,CACtD,CAAC,EACaA,gBAAE,WAAW,OAAQ,CAAE,OAAQ,CAAC,SAAS,CAAE,CAAC,CAC5D,EACA,CAAE,MAAO,uBAAwB,OAAQ,yBAA0B,CACrE,E,oEEhBA,MAAMsG,GAAQ,sCAMRC,GAAqBvG,gBAAE,cAC3BsG,GACA,CACgBtG,gBAAE,WAAW,OAAQ,CACjC,OAAQ,CAAC,SAAU,QAAQ,EAC3B,WAAY,CAAC,8BAA8B,CAC7C,CAAC,CACH,EACA,CAAE,MAAO,uBAAwB,OAAQ,iBAAkB,CAC7D,E"}
1
+ {"version":3,"file":"index.js","names":["$nsid","main","$type","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","$nsid","listItem","$nsid","main","RepoStrongRef.main","ArticleDefs.contents","$type","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","$nsid","$params","$input","ArticleRevision.main","$output","main","$lxm","$nsid","$params","$input","$output","main","$lxm","$nsid","main","$nsid","$params","$input","ArticleRevision.main","$output","main","$lxm","$nsid","$params","$output","IhavethatonvinylArticle.main","ArticleRevision.main","main","$lxm","$nsid","$params","$output","main","$lxm","RepoStrongRef.main","$nsid","main","$nsid","main","__exportAll","l","$nsid$11","main$10","$isTypeOf$2","$build$2","$assert$2","$check$2","$cast$2","$ifMatches$2","$matches$2","$parse$2","$safeParse$2","$validate$2","$safeValidate$2","strongRef_exports","repo_exports","atproto_exports","$nsid$10","paragraphBlockData","headerBlockData","dividerBlockData","quoteBlockData","checkedListItemMeta","orderedListItemMeta","listItem$1","listBlockData","url","localImage","imageBlockData","linkMeta","linkBlockData","tableRow","tableBlockData","paragraph","header","divider","quote","list","image","link","table","contents","$nsid$9","main$9","$isTypeOf$1","$build$1","$assert$1","$check$1","$cast$1","$ifMatches$1","$matches$1","$parse$1","$safeParse$1","$validate$1","$safeValidate$1","$nsid$8","$params$5","$input$3","$output$5","main$8","createArticle_exports","$nsid$7","$params$4","$input$2","$output$4","main$7","unpublishArticle_exports","$nsid$6","main$6","$isTypeOf","$build","$assert","$check","$cast","$ifMatches","$matches","$parse","$safeParse","$validate","$safeValidate","defs_exports","$nsid$5","$params$3","$input$1","$output$3","main$5","editArticle_exports","$nsid$4","$params$2","$output$2","main$4","getArticle_exports","$nsid$3","$params$1","$output$1","listItem","main$3","listArticles_exports","$nsid$2","$params","$input","$output","main$2","publishArticleRevision_exports","revision_exports","article_exports","$nsid$1","main$1","editor_exports","$nsid","main","publisher_exports","auth_exports","ihavethatonvinyl_exports","com_exports"],"sources":["../src/gen/com/atproto/repo/strongRef.defs.ts","../src/gen/com/atproto/repo/strongRef.ts","../src/gen/com/atproto/repo.ts","../src/gen/com/atproto.ts","../src/gen/com/ihavethatonvinyl/article/defs.defs.ts","../src/gen/com/ihavethatonvinyl/article/revision.defs.ts","../src/gen/com/ihavethatonvinyl/article/createArticle.defs.ts","../src/gen/com/ihavethatonvinyl/article/createArticle.ts","../src/gen/com/ihavethatonvinyl/article/unpublishArticle.defs.ts","../src/gen/com/ihavethatonvinyl/article/unpublishArticle.ts","../src/gen/com/ihavethatonvinyl/article.defs.ts","../src/gen/com/ihavethatonvinyl/article/defs.ts","../src/gen/com/ihavethatonvinyl/article/editArticle.defs.ts","../src/gen/com/ihavethatonvinyl/article/editArticle.ts","../src/gen/com/ihavethatonvinyl/article/getArticle.defs.ts","../src/gen/com/ihavethatonvinyl/article/getArticle.ts","../src/gen/com/ihavethatonvinyl/article/listArticles.defs.ts","../src/gen/com/ihavethatonvinyl/article/listArticles.ts","../src/gen/com/ihavethatonvinyl/article/publishArticleRevision.defs.ts","../src/gen/com/ihavethatonvinyl/article/publishArticleRevision.ts","../src/gen/com/ihavethatonvinyl/article/revision.ts","../src/gen/com/ihavethatonvinyl/article.ts","../src/gen/com/ihavethatonvinyl/auth/editor.defs.ts","../src/gen/com/ihavethatonvinyl/auth/editor.ts","../src/gen/com/ihavethatonvinyl/auth/publisher.defs.ts","../src/gen/com/ihavethatonvinyl/auth/publisher.ts","../src/gen/com/ihavethatonvinyl/auth.ts","../src/gen/com/ihavethatonvinyl.ts","../src/gen/com.ts"],"sourcesContent":["/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.atproto.repo.strongRef'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype Main = {\n $type?: 'com.atproto.repo.strongRef'\n cid: l.CidString\n uri: l.AtUriString\n}\n\nexport type { Main }\n\nconst main = /*#__PURE__*/ l.typedObject<Main>(\n $nsid,\n 'main',\n /*#__PURE__*/ l.object({\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './strongRef.defs'\nexport { main as default } from './strongRef.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as strongRef from './repo/strongRef'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as repo from './atproto/repo'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article.defs'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\ntype ParagraphBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#paragraphBlockData'\n text: string\n}\n\nexport type { ParagraphBlockData }\n\nconst paragraphBlockData = /*#__PURE__*/ l.typedObject<ParagraphBlockData>(\n $nsid,\n 'paragraphBlockData',\n /*#__PURE__*/ l.object({ text: /*#__PURE__*/ l.string() }),\n)\n\nexport { paragraphBlockData }\n\ntype HeaderBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#headerBlockData'\n text: string\n level: number\n}\n\nexport type { HeaderBlockData }\n\nconst headerBlockData = /*#__PURE__*/ l.typedObject<HeaderBlockData>(\n $nsid,\n 'headerBlockData',\n /*#__PURE__*/ l.object({\n text: /*#__PURE__*/ l.string(),\n level: /*#__PURE__*/ l.integer({ minimum: 1, maximum: 6 }),\n }),\n)\n\nexport { headerBlockData }\n\ntype DividerBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#dividerBlockData'\n}\n\nexport type { DividerBlockData }\n\nconst dividerBlockData = /*#__PURE__*/ l.typedObject<DividerBlockData>(\n $nsid,\n 'dividerBlockData',\n /*#__PURE__*/ l.object({}),\n)\n\nexport { dividerBlockData }\n\ntype QuoteBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#quoteBlockData'\n text: string\n caption?: string\n alignment?: 'left' | 'center'\n}\n\nexport type { QuoteBlockData }\n\nconst quoteBlockData = /*#__PURE__*/ l.typedObject<QuoteBlockData>(\n $nsid,\n 'quoteBlockData',\n /*#__PURE__*/ l.object({\n text: /*#__PURE__*/ l.string(),\n caption: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n alignment: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.enum(['left', 'center']),\n 'left',\n ),\n ),\n }),\n)\n\nexport { quoteBlockData }\n\ntype CheckedListItemMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#checkedListItemMeta'\n checked?: boolean\n}\n\nexport type { CheckedListItemMeta }\n\nconst checkedListItemMeta = /*#__PURE__*/ l.typedObject<CheckedListItemMeta>(\n $nsid,\n 'checkedListItemMeta',\n /*#__PURE__*/ l.object({\n checked: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n }),\n)\n\nexport { checkedListItemMeta }\n\ntype OrderedListItemMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#orderedListItemMeta'\n start?: number\n counterType?: string\n}\n\nexport type { OrderedListItemMeta }\n\nconst orderedListItemMeta = /*#__PURE__*/ l.typedObject<OrderedListItemMeta>(\n $nsid,\n 'orderedListItemMeta',\n /*#__PURE__*/ l.object({\n start: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.integer({ minimum: 1 })),\n counterType: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n }),\n)\n\nexport { orderedListItemMeta }\n\ntype ListItem = {\n $type?: 'com.ihavethatonvinyl.article.defs#listItem'\n content: string\n meta?:\n | l.$Typed<CheckedListItemMeta>\n | l.$Typed<OrderedListItemMeta>\n | l.Unknown$TypedObject\n | null\n items?: ListItem[]\n}\n\nexport type { ListItem }\n\nconst listItem = /*#__PURE__*/ l.typedObject<ListItem>(\n $nsid,\n 'listItem',\n /*#__PURE__*/ l.object({\n content: /*#__PURE__*/ l.string(),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.nullable(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<CheckedListItemMeta>(\n (() => checkedListItemMeta) as any,\n ),\n /*#__PURE__*/ l.typedRef<OrderedListItemMeta>(\n (() => orderedListItemMeta) as any,\n ),\n ],\n false,\n ),\n ),\n ),\n items: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ListItem>((() => listItem) as any),\n ),\n ),\n }),\n)\n\nexport { listItem }\n\ntype ListBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#listBlockData'\n style: 'ordered' | 'unordered' | 'checked' | l.UnknownString\n meta?:\n | l.$Typed<CheckedListItemMeta>\n | l.$Typed<OrderedListItemMeta>\n | l.Unknown$TypedObject\n | null\n items?: ListItem[]\n}\n\nexport type { ListBlockData }\n\nconst listBlockData = /*#__PURE__*/ l.typedObject<ListBlockData>(\n $nsid,\n 'listBlockData',\n /*#__PURE__*/ l.object({\n style: /*#__PURE__*/ l.string<{\n knownValues: ['ordered', 'unordered', 'checked']\n }>(),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.nullable(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<CheckedListItemMeta>(\n (() => checkedListItemMeta) as any,\n ),\n /*#__PURE__*/ l.typedRef<OrderedListItemMeta>(\n (() => orderedListItemMeta) as any,\n ),\n ],\n false,\n ),\n ),\n ),\n items: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ListItem>((() => listItem) as any),\n ),\n ),\n }),\n)\n\nexport { listBlockData }\n\ntype Url = { $type?: 'com.ihavethatonvinyl.article.defs#url'; url: l.UriString }\n\nexport type { Url }\n\nconst url = /*#__PURE__*/ l.typedObject<Url>(\n $nsid,\n 'url',\n /*#__PURE__*/ l.object({ url: /*#__PURE__*/ l.string({ format: 'uri' }) }),\n)\n\nexport { url }\n\ntype LocalImage = {\n $type?: 'com.ihavethatonvinyl.article.defs#localImage'\n mimeType: string\n b64Data: string\n}\n\nexport type { LocalImage }\n\nconst localImage = /*#__PURE__*/ l.typedObject<LocalImage>(\n $nsid,\n 'localImage',\n /*#__PURE__*/ l.object({\n mimeType: /*#__PURE__*/ l.string(),\n b64Data: /*#__PURE__*/ l.string({ maxLength: 1468006 }),\n }),\n)\n\nexport { localImage }\n\ntype ImageBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#imageBlockData'\n file?: Url\n imageBlob?: l.BlobRef\n image?: LocalImage\n caption?: string\n withBorder?: boolean\n withBackground?: boolean\n stretched?: boolean\n}\n\nexport type { ImageBlockData }\n\nconst imageBlockData = /*#__PURE__*/ l.typedObject<ImageBlockData>(\n $nsid,\n 'imageBlockData',\n /*#__PURE__*/ l.object({\n file: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<Url>((() => url) as any),\n ),\n imageBlob: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.blob({ accept: ['image/*'], maxSize: 1048576 }),\n ),\n image: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LocalImage>((() => localImage) as any),\n ),\n caption: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n withBorder: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n withBackground: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n stretched: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n }),\n)\n\nexport { imageBlockData }\n\ntype LinkMeta = {\n $type?: 'com.ihavethatonvinyl.article.defs#linkMeta'\n title?: string\n description?: string\n image?: Url\n}\n\nexport type { LinkMeta }\n\nconst linkMeta = /*#__PURE__*/ l.typedObject<LinkMeta>(\n $nsid,\n 'linkMeta',\n /*#__PURE__*/ l.object({\n title: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n description: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.string()),\n image: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<Url>((() => url) as any),\n ),\n }),\n)\n\nexport { linkMeta }\n\ntype LinkBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#linkBlockData'\n url: l.UriString\n meta?: LinkMeta\n}\n\nexport type { LinkBlockData }\n\nconst linkBlockData = /*#__PURE__*/ l.typedObject<LinkBlockData>(\n $nsid,\n 'linkBlockData',\n /*#__PURE__*/ l.object({\n url: /*#__PURE__*/ l.string({ format: 'uri' }),\n meta: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LinkMeta>((() => linkMeta) as any),\n ),\n }),\n)\n\nexport { linkBlockData }\n\ntype TableRow = {\n $type?: 'com.ihavethatonvinyl.article.defs#tableRow'\n columns: string[]\n}\n\nexport type { TableRow }\n\nconst tableRow = /*#__PURE__*/ l.typedObject<TableRow>(\n $nsid,\n 'tableRow',\n /*#__PURE__*/ l.object({\n columns: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), { minLength: 1 }),\n }),\n)\n\nexport { tableRow }\n\ntype TableBlockData = {\n $type?: 'com.ihavethatonvinyl.article.defs#tableBlockData'\n withHeadings?: boolean\n stretched?: boolean\n rows: TableRow[]\n}\n\nexport type { TableBlockData }\n\nconst tableBlockData = /*#__PURE__*/ l.typedObject<TableBlockData>(\n $nsid,\n 'tableBlockData',\n /*#__PURE__*/ l.object({\n withHeadings: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n stretched: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n rows: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<TableRow>((() => tableRow) as any),\n { minLength: 1 },\n ),\n }),\n)\n\nexport { tableBlockData }\n\ntype Paragraph = {\n $type?: 'com.ihavethatonvinyl.article.defs#paragraph'\n type?: 'paragraph'\n data?: ParagraphBlockData\n}\n\nexport type { Paragraph }\n\nconst paragraph = /*#__PURE__*/ l.typedObject<Paragraph>(\n $nsid,\n 'paragraph',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('paragraph')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ParagraphBlockData>(\n (() => paragraphBlockData) as any,\n ),\n ),\n }),\n)\n\nexport { paragraph }\n\ntype Header = {\n $type?: 'com.ihavethatonvinyl.article.defs#header'\n type?: 'header'\n data?: HeaderBlockData\n}\n\nexport type { Header }\n\nconst header = /*#__PURE__*/ l.typedObject<Header>(\n $nsid,\n 'header',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('header')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<HeaderBlockData>((() => headerBlockData) as any),\n ),\n }),\n)\n\nexport { header }\n\ntype Divider = {\n $type?: 'com.ihavethatonvinyl.article.defs#divider'\n type?: 'divider'\n data?: DividerBlockData\n}\n\nexport type { Divider }\n\nconst divider = /*#__PURE__*/ l.typedObject<Divider>(\n $nsid,\n 'divider',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('divider')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<DividerBlockData>((() => dividerBlockData) as any),\n ),\n }),\n)\n\nexport { divider }\n\ntype Quote = {\n $type?: 'com.ihavethatonvinyl.article.defs#quote'\n type?: 'quote'\n data?: QuoteBlockData\n}\n\nexport type { Quote }\n\nconst quote = /*#__PURE__*/ l.typedObject<Quote>(\n $nsid,\n 'quote',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('quote')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<QuoteBlockData>((() => quoteBlockData) as any),\n ),\n }),\n)\n\nexport { quote }\n\ntype List = {\n $type?: 'com.ihavethatonvinyl.article.defs#list'\n type?: 'list'\n data?: ListBlockData\n}\n\nexport type { List }\n\nconst list = /*#__PURE__*/ l.typedObject<List>(\n $nsid,\n 'list',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('list')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ListBlockData>((() => listBlockData) as any),\n ),\n }),\n)\n\nexport { list }\n\ntype Image = {\n $type?: 'com.ihavethatonvinyl.article.defs#image'\n type?: 'image'\n data?: ImageBlockData\n}\n\nexport type { Image }\n\nconst image = /*#__PURE__*/ l.typedObject<Image>(\n $nsid,\n 'image',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('image')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ImageBlockData>((() => imageBlockData) as any),\n ),\n }),\n)\n\nexport { image }\n\ntype Link = {\n $type?: 'com.ihavethatonvinyl.article.defs#link'\n type?: 'linkTool'\n data?: LinkBlockData\n}\n\nexport type { Link }\n\nconst link = /*#__PURE__*/ l.typedObject<Link>(\n $nsid,\n 'link',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('linkTool')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<LinkBlockData>((() => linkBlockData) as any),\n ),\n }),\n)\n\nexport { link }\n\ntype Table = {\n $type?: 'com.ihavethatonvinyl.article.defs#table'\n type?: 'table'\n data?: TableBlockData\n}\n\nexport type { Table }\n\nconst table = /*#__PURE__*/ l.typedObject<Table>(\n $nsid,\n 'table',\n /*#__PURE__*/ l.object({\n type: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.literal('table')),\n data: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<TableBlockData>((() => tableBlockData) as any),\n ),\n }),\n)\n\nexport { table }\n\n/** An article's contents */\ntype Contents = {\n $type?: 'com.ihavethatonvinyl.article.defs#contents'\n\n /**\n * The article title\n */\n title: string\n\n /**\n * The blurb to be shown in list view\n */\n blurb: string\n\n /**\n * The image shown at the beginning of the article and in list view\n */\n heroImage?: l.BlobRef\n\n /**\n * A list of authors for the article. Free-form to allow plain names, or identifiers for a user\n */\n authors: string[]\n categories: (\n | 'conversations'\n | 'q-and-a'\n | 'essays'\n | 'features'\n | 'liner-notes'\n | l.UnknownString\n )[]\n body?: (\n | l.$Typed<Paragraph>\n | l.$Typed<Header>\n | l.$Typed<Divider>\n | l.$Typed<Quote>\n | l.$Typed<List>\n | l.$Typed<Image>\n | l.$Typed<Link>\n | l.$Typed<Table>\n | l.Unknown$TypedObject\n )[]\n}\n\nexport type { Contents }\n\n/** An article's contents */\nconst contents = /*#__PURE__*/ l.typedObject<Contents>(\n $nsid,\n 'contents',\n /*#__PURE__*/ l.object({\n title: /*#__PURE__*/ l.string({ minGraphemes: 1, maxGraphemes: 256 }),\n blurb: /*#__PURE__*/ l.string({ maxGraphemes: 2048 }),\n heroImage: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.blob({ accept: ['image/*'], maxSize: 1048576 }),\n ),\n authors: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {\n minLength: 1,\n maxLength: 5,\n }),\n categories: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: [\n 'conversations',\n 'q-and-a',\n 'essays',\n 'features',\n 'liner-notes',\n ]\n }>(),\n { minLength: 1 },\n ),\n body: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.typedUnion(\n [\n /*#__PURE__*/ l.typedRef<Paragraph>((() => paragraph) as any),\n /*#__PURE__*/ l.typedRef<Header>((() => header) as any),\n /*#__PURE__*/ l.typedRef<Divider>((() => divider) as any),\n /*#__PURE__*/ l.typedRef<Quote>((() => quote) as any),\n /*#__PURE__*/ l.typedRef<List>((() => list) as any),\n /*#__PURE__*/ l.typedRef<Image>((() => image) as any),\n /*#__PURE__*/ l.typedRef<Link>((() => link) as any),\n /*#__PURE__*/ l.typedRef<Table>((() => table) as any),\n ],\n false,\n ),\n ),\n ),\n }),\n)\n\nexport { contents }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as RepoStrongRef from '../../atproto/repo/strongRef.defs'\nimport * as ArticleDefs from './defs.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.revision'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** An I Have That on Vinyl article revision */\ntype Main = {\n $type: 'com.ihavethatonvinyl.article.revision'\n published: l.DatetimeString\n publishedBy: l.DidString\n articles?: RepoStrongRef.Main[]\n contents: ArticleDefs.Contents\n\n /**\n * A short description of what was updated\n */\n notes?: string\n}\n\nexport type { Main }\n\n/** An I Have That on Vinyl article revision */\nconst main = /*#__PURE__*/ l.record<'tid', Main>(\n 'tid',\n $nsid,\n /*#__PURE__*/ l.object({\n published: /*#__PURE__*/ l.string({ format: 'datetime' }),\n publishedBy: /*#__PURE__*/ l.string({ format: 'did' }),\n articles: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n { minLength: 1 },\n ),\n ),\n contents: /*#__PURE__*/ l.ref<ArticleDefs.Contents>(\n (() => ArticleDefs.contents) as any,\n ),\n notes: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ maxGraphemes: 1024 }),\n ),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.createArticle'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params()\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n contents: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** creates a new unpublished article */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './createArticle.defs'\nexport { main as default } from './createArticle.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article.unpublishArticle'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n article: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'at-uri' }),\n ),\n deleteAllRevisions: /*#__PURE__*/ l.optional(/*#__PURE__*/ l.boolean()),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.payload()\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.payload()\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Deletes an article and removes any refs to it from all revisions */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './unpublishArticle.defs'\nexport { main as default } from './unpublishArticle.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\n/** An I Have That on Vinyl article. It is immutable so backlinks and comments survive edits. The record key acts as the article's URL slug */\ntype Main = {\n $type: 'com.ihavethatonvinyl.article'\n\n /**\n * The date the article was originally published\n */\n published: l.DatetimeString\n\n /**\n * The user who published the article\n */\n publishedBy: l.DidString\n}\n\nexport type { Main }\n\n/** An I Have That on Vinyl article. It is immutable so backlinks and comments survive edits. The record key acts as the article's URL slug */\nconst main = /*#__PURE__*/ l.record<'literal:self', Main>(\n 'literal:self',\n $nsid,\n /*#__PURE__*/ l.object({\n published: /*#__PURE__*/ l.string({ format: 'datetime' }),\n publishedBy: /*#__PURE__*/ l.string({ format: 'did' }),\n }),\n)\n\nexport { main }\n\nconst $type = $nsid\n\ntype $type = typeof $type\n\nexport { $type }\n\nexport const $isTypeOf = /*#__PURE__*/ main.isTypeOf.bind(main)\nexport const $build = /*#__PURE__*/ main.build.bind(main)\nexport const $assert = /*#__PURE__*/ main.assert.bind(main)\nexport const $check = /*#__PURE__*/ main.check.bind(main)\nexport const $cast = /*#__PURE__*/ main.cast.bind(main)\nexport const $ifMatches = /*#__PURE__*/ main.ifMatches.bind(main)\nexport const $matches = /*#__PURE__*/ main.matches.bind(main)\nexport const $parse = /*#__PURE__*/ main.parse.bind(main)\nexport const $safeParse = /*#__PURE__*/ main.safeParse.bind(main)\nexport const $validate = /*#__PURE__*/ main.validate.bind(main)\nexport const $safeValidate = /*#__PURE__*/ main.safeValidate.bind(main)\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './defs.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.editArticle'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n revision: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'at-uri' }),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.jsonPayload({\n contents: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n})\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** creates a new revision of an existing article */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './editArticle.defs'\nexport { main as default } from './editArticle.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as IhavethatonvinylArticle from '../article.defs'\nimport * as ArticleRevision from './revision.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.getArticle'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n article: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.string({ format: 'at-uri' }),\n ),\n allVersions: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.boolean(), false),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n article: /*#__PURE__*/ l.ref<IhavethatonvinylArticle.Main>(\n (() => IhavethatonvinylArticle.main) as any,\n ),\n contents: /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n history: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ArticleRevision.Main>(\n (() => ArticleRevision.main) as any,\n ),\n ),\n ),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** Fetch an article with its latest revision, plus optionally all older versions */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './getArticle.defs'\nexport { main as default } from './getArticle.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\nimport * as RepoStrongRef from '../../atproto/repo/strongRef.defs'\n\nconst $nsid = 'com.ihavethatonvinyl.article.listArticles'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n limit: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.integer({ minimum: 1, maximum: 100 }),\n 25,\n ),\n ),\n start: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({ minimum: 0 }), 0),\n ),\n sort: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.enum(['asc', 'desc']), 'desc'),\n ),\n sortBy: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(\n /*#__PURE__*/ l.string<{ knownValues: ['published', 'updated'] }>(),\n 'published',\n ),\n ),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n items: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.ref<ListItem>((() => listItem) as any),\n ),\n start: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.withDefault(/*#__PURE__*/ l.integer({ minimum: 0 }), 0),\n ),\n count: /*#__PURE__*/ l.integer({ minimum: 0 }),\n total: /*#__PURE__*/ l.integer({ minimum: 0 }),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** returns the latest version of the articles that match the search criteria */\nconst main = /*#__PURE__*/ l.query($nsid, $params, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n\ntype ListItem = {\n $type?: 'com.ihavethatonvinyl.article.listArticles#listItem'\n\n /**\n * The article title\n */\n title: string\n\n /**\n * The blurb to be shown in list view\n */\n blurb: string\n\n /**\n * The image shown at the beginning of the article and in list view\n */\n heroImage?: l.BlobRef\n\n /**\n * A list of authors for the article. Free-form to allow plain names, or identifiers for a user\n */\n authors: string[]\n categories: (\n | 'conversations'\n | 'q-and-a'\n | 'essays'\n | 'features'\n | 'liner-notes'\n | l.UnknownString\n )[]\n\n /**\n * The reference to the full article and its latest revision\n */\n article?: RepoStrongRef.Main\n}\n\nexport type { ListItem }\n\nconst listItem = /*#__PURE__*/ l.typedObject<ListItem>(\n $nsid,\n 'listItem',\n /*#__PURE__*/ l.object({\n title: /*#__PURE__*/ l.string({ minGraphemes: 1, maxGraphemes: 256 }),\n blurb: /*#__PURE__*/ l.string({ maxGraphemes: 2048 }),\n heroImage: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.blob({ accept: ['image/*'], maxSize: 1048576 }),\n ),\n authors: /*#__PURE__*/ l.array(/*#__PURE__*/ l.string(), {\n minLength: 1,\n maxLength: 5,\n }),\n categories: /*#__PURE__*/ l.array(\n /*#__PURE__*/ l.string<{\n knownValues: [\n 'conversations',\n 'q-and-a',\n 'essays',\n 'features',\n 'liner-notes',\n ]\n }>(),\n { minLength: 1 },\n ),\n article: /*#__PURE__*/ l.optional(\n /*#__PURE__*/ l.ref<RepoStrongRef.Main>(\n (() => RepoStrongRef.main) as any,\n ),\n ),\n }),\n)\n\nexport { listItem }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './listArticles.defs'\nexport { main as default } from './listArticles.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.article.publishArticleRevision'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nexport const $params = /*#__PURE__*/ l.params({\n revision: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n target: /*#__PURE__*/ l.string({ format: 'did' }),\n})\n\nexport type $Params = l.InferOutput<typeof $params>\n\nexport const $input = /*#__PURE__*/ l.payload()\n\nexport type $Input<B = l.BinaryData> = l.InferPayload<typeof $input, B>\nexport type $InputBody<B = l.BinaryData> = l.InferPayloadBody<typeof $input, B>\n\nexport const $output = /*#__PURE__*/ l.jsonPayload({\n cid: /*#__PURE__*/ l.string({ format: 'cid' }),\n uri: /*#__PURE__*/ l.string({ format: 'at-uri' }),\n})\n\nexport type $Output<B = l.BinaryData> = l.InferPayload<typeof $output, B>\nexport type $OutputBody<B = l.BinaryData> = l.InferPayloadBody<\n typeof $output,\n B\n>\n\n/** publishes a new version of an article */\nconst main = /*#__PURE__*/ l.procedure($nsid, $params, $input, $output)\n\nexport { main }\n\nconst $lxm = $nsid\n\ntype $lxm = typeof $lxm\n\nexport { $lxm }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './publishArticleRevision.defs'\nexport { main as default } from './publishArticleRevision.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './revision.defs'\nexport { main as default } from './revision.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as createArticle from './article/createArticle'\nexport * as unpublishArticle from './article/unpublishArticle'\nexport * from './article.defs'\nexport { main as default } from './article.defs'\nexport * as defs from './article/defs'\nexport * as editArticle from './article/editArticle'\nexport * as getArticle from './article/getArticle'\nexport * as listArticles from './article/listArticles'\nexport * as publishArticleRevision from './article/publishArticleRevision'\nexport * as revision from './article/revision'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.auth.editor'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nconst main = /*#__PURE__*/ l.permissionSet(\n $nsid,\n [\n /*#__PURE__*/ l.permission('repo', {\n action: ['create'],\n collection: ['com.ihavethatonvinyl.article.revision'],\n }),\n /*#__PURE__*/ l.permission('blob', { accept: ['image/*'] }),\n ],\n { title: 'ihavethatonvinyl.com', detail: 'Manage article contents' },\n)\n\nexport { main }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './editor.defs'\nexport { main as default } from './editor.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nimport { l } from '@atproto/lex'\n\nconst $nsid = 'com.ihavethatonvinyl.auth.publisher'\n\ntype $nsid = typeof $nsid\n\nexport { $nsid }\n\nconst main = /*#__PURE__*/ l.permissionSet(\n $nsid,\n [\n /*#__PURE__*/ l.permission('repo', {\n action: ['create', 'delete'],\n collection: ['com.ihavethatonvinyl.article'],\n }),\n ],\n { title: 'ihavethatonvinyl.com', detail: 'Manage articles' },\n)\n\nexport { main }\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * from './publisher.defs'\nexport { main as default } from './publisher.defs'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as editor from './auth/editor'\nexport * as publisher from './auth/publisher'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as article from './ihavethatonvinyl/article'\nexport * as auth from './ihavethatonvinyl/auth'\n","/*\n * THIS FILE WAS GENERATED BY \"@atproto/lex\". DO NOT EDIT.\n */\n\nexport * as atproto from './com/atproto'\nexport * as ihavethatonvinyl from './com/ihavethatonvinyl'\n"],"mappings":"A,oFAMA,MAAMA,EAAQ,6BAcRC,EAAqBuE,gBAAE,YAC3BxE,EACA,OACcwE,gBAAE,OAAO,CACrB,IAAmBA,gBAAE,OAAO,CAAE,OAAQ,KAAM,CAAC,EAC7C,IAAmBA,gBAAE,OAAO,CAAE,OAAQ,QAAS,CAAC,CAClD,CAAC,CACH,EAUarE,GAA0BF,gBAAK,SAAS,KAAKA,CAAI,EACjDG,GAAuBH,gBAAK,MAAM,KAAKA,CAAI,EAC3CI,GAAwBJ,gBAAK,OAAO,KAAKA,CAAI,EAC7CK,GAAuBL,gBAAK,MAAM,KAAKA,CAAI,EAC3CM,GAAsBN,gBAAK,KAAK,KAAKA,CAAI,EACzCO,GAA2BP,gBAAK,UAAU,KAAKA,CAAI,EACnDQ,GAAyBR,gBAAK,QAAQ,KAAKA,CAAI,EAC/CS,GAAuBT,gBAAK,MAAM,KAAKA,CAAI,EAC3CU,GAA2BV,gBAAK,UAAU,KAAKA,CAAI,EACnDW,GAA0BX,gBAAK,SAAS,KAAKA,CAAI,EACjDY,GAA8BZ,gBAAK,aAAa,KAAKA,CAAI,E,sWIzCtE,MAAMa,EAAQ,oCAaR4E,EAAmClB,gBAAE,YACzC1D,EACA,qBACc0D,gBAAE,OAAO,CAAE,KAAoBA,gBAAE,OAAO,CAAE,CAAC,CAC3D,EAYMmB,GAAgCnB,gBAAE,YACtC1D,EACA,kBACc0D,gBAAE,OAAO,CACrB,KAAoB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,KAAM,CAAC,CAClD,CAAC,EAIYoG,GAAuBpG,gBAAE,QAAQ,EAKjCqG,GAAwBrG,gBAAE,YAAY,CACjD,IAAmBA,gBAAE,OAAO,CAAE,OAAQ,KAAM,CAAC,EAC7C,IAAmBA,gBAAE,OAAO,CAAE,OAAQ,QAAS,CAAC,CAClD,CAAC,EASKJ,GAAqBI,gBAAE,UAAUL,GAAOwG,GAASC,GAAQC,EAAO,E,s4BI9BtE,MAAMxG,GAAQ,mCAMRC,GAAqBE,gBAAE,cAC3BH,GACA,CACgBG,gBAAE,WAAW,OAAQ,CACjC,OAAQ,CAAC,QAAQ,EACjB,WAAY,CAAC,uCAAuC,CACtD,CAAC,EACaA,gBAAE,WAAW,OAAQ,CAAE,OAAQ,CAAC,SAAS,CAAE,CAAC,CAC5D,EACA,CAAE,MAAO,uBAAwB,OAAQ,yBAA0B,CACrE,E,oEEhBA,MAAM6G,GAAQ,sCAMRC,GAAqB9G,gBAAE,cAC3B6G,GACA,CACgB7G,gBAAE,WAAW,OAAQ,CACjC,OAAQ,CAAC,SAAU,QAAQ,EAC3B,WAAY,CAAC,8BAA8B,CAC7C,CAAC,CACH,EACA,CAAE,MAAO,uBAAwB,OAAQ,iBAAkB,CAC7D,E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ihavethatonvinyl/lexicons",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "lexicon": 1,
3
- "id": "com.ihavethatonvinyl.article.createArticleRevision",
3
+ "id": "com.ihavethatonvinyl.article.createArticle",
4
4
  "defs": {
5
5
  "main": {
6
6
  "type": "procedure",
7
- "description": "creates an article revision. If articles is empty, it's assumed this is a new article",
7
+ "description": "creates a new unpublished article",
8
8
  "input": {
9
9
  "encoding": "application/json",
10
10
  "schema": {
@@ -12,7 +12,7 @@
12
12
  "properties": {
13
13
  "contents": {
14
14
  "type": "ref",
15
- "ref": "com.ihavethatonvinyl.article.defs#contents"
15
+ "ref": "com.ihavethatonvinyl.article.revision"
16
16
  }
17
17
  }
18
18
  }
@@ -22,11 +22,21 @@
22
22
  "schema": {
23
23
  "type": "object",
24
24
  "properties": {
25
- "revision": {
26
- "type": "ref",
27
- "ref": "com.ihavethatonvinyl.article.revision"
25
+ "cid": {
26
+ "type": "string",
27
+ "description": "The revision's CID",
28
+ "format": "cid"
29
+ },
30
+ "uri": {
31
+ "type": "string",
32
+ "description": "The revision's AT URI",
33
+ "format": "at-uri"
28
34
  }
29
- }
35
+ },
36
+ "required": [
37
+ "cid",
38
+ "uri"
39
+ ]
30
40
  }
31
41
  }
32
42
  }
@@ -0,0 +1,54 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "com.ihavethatonvinyl.article.editArticle",
4
+ "defs": {
5
+ "main": {
6
+ "type": "procedure",
7
+ "description": "creates a new revision of an existing article",
8
+ "parameters": {
9
+ "type": "params",
10
+ "properties": {
11
+ "revision": {
12
+ "type": "string",
13
+ "description": "the AT-URI of the revision to edit",
14
+ "format": "at-uri"
15
+ }
16
+ }
17
+ },
18
+ "input": {
19
+ "encoding": "application/json",
20
+ "schema": {
21
+ "type": "object",
22
+ "properties": {
23
+ "contents": {
24
+ "type": "ref",
25
+ "ref": "com.ihavethatonvinyl.article.revision"
26
+ }
27
+ }
28
+ }
29
+ },
30
+ "output": {
31
+ "encoding": "application/json",
32
+ "schema": {
33
+ "type": "object",
34
+ "properties": {
35
+ "cid": {
36
+ "type": "string",
37
+ "description": "The revision's CID",
38
+ "format": "cid"
39
+ },
40
+ "uri": {
41
+ "type": "string",
42
+ "description": "The revision's AT URI",
43
+ "format": "at-uri"
44
+ }
45
+ },
46
+ "required": [
47
+ "cid",
48
+ "uri"
49
+ ]
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -50,12 +50,17 @@
50
50
  "type": "array",
51
51
  "items": {
52
52
  "type": "ref",
53
- "ref": "com.ihavethatonvinyl.article.revision"
53
+ "ref": "#listItem"
54
54
  }
55
55
  },
56
- "nextPage": {
56
+ "start": {
57
57
  "type": "integer",
58
- "minimum": 2
58
+ "minimum": 0,
59
+ "default": 0
60
+ },
61
+ "count": {
62
+ "type": "integer",
63
+ "minimum": 0
59
64
  },
60
65
  "total": {
61
66
  "type": "integer",
@@ -64,10 +69,69 @@
64
69
  },
65
70
  "required": [
66
71
  "items",
72
+ "count",
67
73
  "total"
68
74
  ]
69
75
  }
70
76
  }
77
+ },
78
+ "listItem": {
79
+ "type": "object",
80
+ "properties": {
81
+ "title": {
82
+ "type": "string",
83
+ "description": "The article title",
84
+ "minGraphemes": 1,
85
+ "maxGraphemes": 256
86
+ },
87
+ "blurb": {
88
+ "type": "string",
89
+ "description": "The blurb to be shown in list view",
90
+ "maxGraphemes": 2048
91
+ },
92
+ "heroImage": {
93
+ "type": "blob",
94
+ "description": "The image shown at the beginning of the article and in list view",
95
+ "accept": [
96
+ "image/*"
97
+ ],
98
+ "maxSize": 1048576
99
+ },
100
+ "authors": {
101
+ "type": "array",
102
+ "items": {
103
+ "type": "string"
104
+ },
105
+ "description": "A list of authors for the article. Free-form to allow plain names, or identifiers for a user",
106
+ "minLength": 1,
107
+ "maxLength": 5
108
+ },
109
+ "categories": {
110
+ "type": "array",
111
+ "items": {
112
+ "type": "string",
113
+ "knownValues": [
114
+ "conversations",
115
+ "q-and-a",
116
+ "essays",
117
+ "features",
118
+ "liner-notes"
119
+ ]
120
+ },
121
+ "minLength": 1
122
+ },
123
+ "article": {
124
+ "type": "ref",
125
+ "ref": "com.atproto.repo.strongRef",
126
+ "description": "The reference to the full article and its latest revision"
127
+ }
128
+ },
129
+ "required": [
130
+ "title",
131
+ "blurb",
132
+ "authors",
133
+ "categories"
134
+ ]
71
135
  }
72
136
  }
73
137
  }
@@ -4,7 +4,7 @@
4
4
  "defs": {
5
5
  "main": {
6
6
  "type": "procedure",
7
- "description": "publishes an article revision. if one of the revision's article refs exists in the repo, it is considered an update",
7
+ "description": "publishes a new version of an article",
8
8
  "parameters": {
9
9
  "type": "params",
10
10
  "properties": {
@@ -12,10 +12,16 @@
12
12
  "type": "string",
13
13
  "description": "the AT-URI of the revision",
14
14
  "format": "at-uri"
15
+ },
16
+ "target": {
17
+ "type": "string",
18
+ "description": "the DID of the feed this will be published in",
19
+ "format": "did"
15
20
  }
16
21
  },
17
22
  "required": [
18
- "revision"
23
+ "revision",
24
+ "target"
19
25
  ]
20
26
  },
21
27
  "output": {
@@ -23,18 +29,20 @@
23
29
  "schema": {
24
30
  "type": "object",
25
31
  "properties": {
26
- "article": {
27
- "type": "ref",
28
- "ref": "com.ihavethatonvinyl.article"
32
+ "cid": {
33
+ "type": "string",
34
+ "description": "The article's CID",
35
+ "format": "cid"
29
36
  },
30
- "contents": {
31
- "type": "ref",
32
- "ref": "com.ihavethatonvinyl.article.revision"
37
+ "uri": {
38
+ "type": "string",
39
+ "description": "the AT-URI of the article",
40
+ "format": "at-uri"
33
41
  }
34
42
  },
35
43
  "required": [
36
- "article",
37
- "contents"
44
+ "cid",
45
+ "uri"
38
46
  ]
39
47
  }
40
48
  }
@@ -12,6 +12,10 @@
12
12
  "type": "string",
13
13
  "description": "The AT-URI of the article to unpublish",
14
14
  "format": "at-uri"
15
+ },
16
+ "deleteAllRevisions": {
17
+ "type": "boolean",
18
+ "description": "if true, will delete all revisions of the article that only reference this article's URI"
15
19
  }
16
20
  }
17
21
  }