e621 3.4.0 → 3.4.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.
- package/dist/browser/e621.js +59 -5
- package/dist/browser/e621.js.map +2 -2
- package/dist/lib/generated/schemas.d.ts +49 -1
- package/dist/lib/generated/schemas.js +58 -4
- package/dist/lib/generated/types.d.ts +27 -10
- package/dist/lib/models/PostFlag.d.ts +2 -1
- package/dist/lib/models/PostFlag.js +1 -1
- package/dist/lib/modules/PostFlags.d.ts +6 -3
- package/dist/lib/modules/PostFlags.js +2 -2
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/package.json +1 -1
package/dist/browser/e621.js
CHANGED
|
@@ -787,7 +787,7 @@ var createClient = (config = {}) => {
|
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
// dist/lib/version.js
|
|
790
|
-
var VERSION = "3.4.
|
|
790
|
+
var VERSION = "3.4.1";
|
|
791
791
|
|
|
792
792
|
// dist/lib/client.js
|
|
793
793
|
function createE621Client(options) {
|
|
@@ -12191,7 +12191,7 @@ var PostFlags = class extends Base2 {
|
|
|
12191
12191
|
return postFlags_destroy({
|
|
12192
12192
|
client: this.client,
|
|
12193
12193
|
path: { id: post_id }
|
|
12194
|
-
}).then((res) => this._handleResponse(res,
|
|
12194
|
+
}).then((res) => this._handleResponse(res, 200, true));
|
|
12195
12195
|
}
|
|
12196
12196
|
/**
|
|
12197
12197
|
*
|
|
@@ -17564,6 +17564,10 @@ var LegacyPostSchema = {
|
|
|
17564
17564
|
url: {
|
|
17565
17565
|
type: "string",
|
|
17566
17566
|
nullable: true
|
|
17567
|
+
},
|
|
17568
|
+
alt: {
|
|
17569
|
+
type: "string",
|
|
17570
|
+
nullable: true
|
|
17567
17571
|
}
|
|
17568
17572
|
}
|
|
17569
17573
|
},
|
|
@@ -17592,6 +17596,10 @@ var LegacyPostSchema = {
|
|
|
17592
17596
|
type: "string",
|
|
17593
17597
|
nullable: true
|
|
17594
17598
|
},
|
|
17599
|
+
alt: {
|
|
17600
|
+
type: "string",
|
|
17601
|
+
nullable: true
|
|
17602
|
+
},
|
|
17595
17603
|
alternates: {
|
|
17596
17604
|
type: "object",
|
|
17597
17605
|
properties: {
|
|
@@ -18743,6 +18751,45 @@ var PostFilesSchema = {
|
|
|
18743
18751
|
},
|
|
18744
18752
|
sample: {
|
|
18745
18753
|
$ref: "#/components/schemas/PostFilesSample"
|
|
18754
|
+
},
|
|
18755
|
+
video: {
|
|
18756
|
+
type: "object",
|
|
18757
|
+
required: [
|
|
18758
|
+
"has",
|
|
18759
|
+
"original",
|
|
18760
|
+
"variants",
|
|
18761
|
+
"samples"
|
|
18762
|
+
],
|
|
18763
|
+
properties: {
|
|
18764
|
+
has: {
|
|
18765
|
+
type: "boolean"
|
|
18766
|
+
},
|
|
18767
|
+
original: {
|
|
18768
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18769
|
+
},
|
|
18770
|
+
variants: {
|
|
18771
|
+
type: "object",
|
|
18772
|
+
properties: {
|
|
18773
|
+
webm: {
|
|
18774
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18775
|
+
},
|
|
18776
|
+
mp4: {
|
|
18777
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18778
|
+
}
|
|
18779
|
+
}
|
|
18780
|
+
},
|
|
18781
|
+
samples: {
|
|
18782
|
+
type: "object",
|
|
18783
|
+
properties: {
|
|
18784
|
+
"480p": {
|
|
18785
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18786
|
+
},
|
|
18787
|
+
"720p": {
|
|
18788
|
+
$ref: "#/components/schemas/PostSampleAlternate"
|
|
18789
|
+
}
|
|
18790
|
+
}
|
|
18791
|
+
}
|
|
18792
|
+
}
|
|
18746
18793
|
}
|
|
18747
18794
|
}
|
|
18748
18795
|
};
|
|
@@ -19095,7 +19142,8 @@ var PostSampleAlternateSchema = {
|
|
|
19095
19142
|
format: "float"
|
|
19096
19143
|
},
|
|
19097
19144
|
codec: {
|
|
19098
|
-
type: "string"
|
|
19145
|
+
type: "string",
|
|
19146
|
+
nullable: true
|
|
19099
19147
|
},
|
|
19100
19148
|
size: {
|
|
19101
19149
|
type: "integer",
|
|
@@ -19109,7 +19157,8 @@ var PostSampleAlternateSchema = {
|
|
|
19109
19157
|
},
|
|
19110
19158
|
url: {
|
|
19111
19159
|
type: "string",
|
|
19112
|
-
format: "uri"
|
|
19160
|
+
format: "uri",
|
|
19161
|
+
nullable: true
|
|
19113
19162
|
}
|
|
19114
19163
|
}
|
|
19115
19164
|
};
|
|
@@ -19176,7 +19225,8 @@ var PostStatsSchema = {
|
|
|
19176
19225
|
"fav_count",
|
|
19177
19226
|
"is_favorited",
|
|
19178
19227
|
"vote",
|
|
19179
|
-
"comment_count"
|
|
19228
|
+
"comment_count",
|
|
19229
|
+
"hotness"
|
|
19180
19230
|
],
|
|
19181
19231
|
properties: {
|
|
19182
19232
|
score: {
|
|
@@ -19193,6 +19243,10 @@ var PostStatsSchema = {
|
|
|
19193
19243
|
},
|
|
19194
19244
|
comment_count: {
|
|
19195
19245
|
type: "integer"
|
|
19246
|
+
},
|
|
19247
|
+
hotness: {
|
|
19248
|
+
type: "number",
|
|
19249
|
+
format: "float"
|
|
19196
19250
|
}
|
|
19197
19251
|
}
|
|
19198
19252
|
};
|