notefeed 0.11.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -194,7 +194,7 @@ export type Error = {
194
194
  /**
195
195
  * Stable machine-readable code; absent only on a 500
196
196
  */
197
- code?: 'invalid_feed' | 'reserved_feed' | 'auth' | 'rate_limited' | 'too_many_attempts' | 'feed_limit' | 'note_limit' | 'image_limit' | 'images_off' | 'empty_note' | 'too_large' | 'unsupported_type' | 'invalid_body' | 'invalid_request' | 'not_found' | 'feed_exists' | 'taken' | 'removed' | 'blocked';
197
+ code?: 'invalid_feed' | 'reserved_feed' | 'auth' | 'rate_limited' | 'too_many_attempts' | 'feed_limit' | 'note_limit' | 'image_limit' | 'images_off' | 'license_required' | 'empty_note' | 'too_large' | 'unsupported_type' | 'invalid_body' | 'invalid_request' | 'not_found' | 'feed_exists' | 'taken' | 'removed' | 'blocked';
198
198
  };
199
199
  export type NoteMeta = {
200
200
  /**
@@ -379,6 +379,10 @@ export type PostNoteErrors = {
379
379
  * The instance has a password, or the feed has its own, and it is missing or wrong
380
380
  */
381
381
  401: Error;
382
+ /**
383
+ * Only on an instance with a payment provider (`license_required`): the feed has no active license, and a picture, or a new feed password, is for licensed feeds
384
+ */
385
+ 402: Error;
382
386
  /**
383
387
  * Image uploads are off on this instance (`NOTEFEED_IMAGE_UPLOADS=0`, code `images_off`): an image body, a picture replaced, or a multipart body with pictures. Stored pictures are still served
384
388
  */
@@ -602,6 +606,10 @@ export type EditNoteErrors = {
602
606
  * The instance has a password, or the feed has its own, and it is missing or wrong
603
607
  */
604
608
  401: Error;
609
+ /**
610
+ * Only on an instance with a payment provider (`license_required`): the feed has no active license, and a picture, or a new feed password, is for licensed feeds
611
+ */
612
+ 402: Error;
605
613
  /**
606
614
  * Image uploads are off on this instance (`NOTEFEED_IMAGE_UPLOADS=0`, code `images_off`): an image body, a picture replaced, or a multipart body with pictures. Stored pictures are still served
607
615
  */
@@ -841,6 +849,10 @@ export type ChangeFeedPasswordErrors = {
841
849
  * The instance has a password, or the feed has its own, and it is missing or wrong
842
850
  */
843
851
  401: Error;
852
+ /**
853
+ * Only on an instance with a payment provider (`license_required`): the feed has no active license, and a picture, or a new feed password, is for licensed feeds
854
+ */
855
+ 402: Error;
844
856
  /**
845
857
  * The feed has no password
846
858
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notefeed",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "description": "Client and CLI for notefeed, a self-hosted inbox for markdown notes that you read back as RSS.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Marcel Bruckner",