@twin.org/web 0.0.3-next.13 → 0.0.3-next.15

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.
@@ -1,253 +1,316 @@
1
1
  /**
2
2
  * Standard HTTP status codes.
3
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status
3
4
  */
4
5
  export declare const HttpStatusCode: {
5
6
  /**
6
7
  * Continue status code.
8
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100
7
9
  */
8
10
  readonly continue: 100;
9
11
  /**
10
12
  * Switching Protocols status code.
13
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101
11
14
  */
12
15
  readonly switchingProtocols: 101;
13
16
  /**
14
17
  * Processing status code.
18
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102
15
19
  */
16
20
  readonly processing: 102;
17
21
  /**
18
22
  * Early Hints status code.
23
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103
19
24
  */
20
25
  readonly earlyHints: 103;
21
26
  /**
22
27
  * OK status code.
28
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200
23
29
  */
24
30
  readonly ok: 200;
25
31
  /**
26
32
  * Created status code.
33
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201
27
34
  */
28
35
  readonly created: 201;
29
36
  /**
30
37
  * Accepted status code.
38
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202
31
39
  */
32
40
  readonly accepted: 202;
33
41
  /**
34
42
  * Non-Authoritative Information status code.
43
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203
35
44
  */
36
45
  readonly nonAuthoritativeInformation: 203;
37
46
  /**
38
47
  * No Content status code.
48
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204
39
49
  */
40
50
  readonly noContent: 204;
41
51
  /**
42
52
  * Reset Content status code.
53
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205
43
54
  */
44
55
  readonly resetContent: 205;
45
56
  /**
46
57
  * Partial Content status code.
58
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206
47
59
  */
48
60
  readonly partialContent: 206;
49
61
  /**
50
62
  * Multi-Status status code.
63
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207
51
64
  */
52
65
  readonly multiStatus: 207;
53
66
  /**
54
67
  * Already Reported status code.
68
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208
55
69
  */
56
70
  readonly alreadyReported: 208;
57
71
  /**
58
72
  * IM Used status code.
73
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226
59
74
  */
60
75
  readonly imUsed: 226;
61
76
  /**
62
77
  * Multiple Choices status code.
78
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300
63
79
  */
64
80
  readonly multipleChoices: 300;
65
81
  /**
66
82
  * Moved Permanently status code.
83
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301
67
84
  */
68
85
  readonly movedPermanently: 301;
69
86
  /**
70
87
  * Found status code.
88
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302
71
89
  */
72
90
  readonly found: 302;
73
91
  /**
74
92
  * See Other status code.
93
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303
75
94
  */
76
95
  readonly seeOther: 303;
77
96
  /**
78
97
  * Not Modified status code.
98
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304
79
99
  */
80
100
  readonly notModified: 304;
81
101
  /**
82
102
  * Use Proxy status code.
103
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305
83
104
  */
84
105
  readonly useProxy: 305;
85
106
  /**
86
107
  * Temporary Redirect status code.
108
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307
87
109
  */
88
110
  readonly temporaryRedirect: 307;
89
111
  /**
90
112
  * Permanent Redirect status code.
113
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308
91
114
  */
92
115
  readonly permanentRedirect: 308;
93
116
  /**
94
117
  * Bad Request status code.
118
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
95
119
  */
96
120
  readonly badRequest: 400;
97
121
  /**
98
122
  * Unauthorized status code.
123
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
99
124
  */
100
125
  readonly unauthorized: 401;
101
126
  /**
102
127
  * Payment Required status code.
128
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402
103
129
  */
104
130
  readonly paymentRequired: 402;
105
131
  /**
106
132
  * Forbidden status code.
133
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
107
134
  */
108
135
  readonly forbidden: 403;
109
136
  /**
110
137
  * Not Found status code.
138
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
111
139
  */
112
140
  readonly notFound: 404;
113
141
  /**
114
142
  * Method Not Allowed status code.
143
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
115
144
  */
116
145
  readonly methodNotAllowed: 405;
117
146
  /**
118
147
  * Not Acceptable status code.
148
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406
119
149
  */
120
150
  readonly notAcceptable: 406;
121
151
  /**
122
152
  * Proxy Authentication Required status code.
153
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407
123
154
  */
124
155
  readonly proxyAuthenticationRequired: 407;
125
156
  /**
126
157
  * Request Timeout status code.
158
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408
127
159
  */
128
160
  readonly requestTimeout: 408;
129
161
  /**
130
162
  * Conflict status code.
163
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409
131
164
  */
132
165
  readonly conflict: 409;
133
166
  /**
134
167
  * Gone status code.
168
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410
135
169
  */
136
170
  readonly gone: 410;
137
171
  /**
138
172
  * Length Required status code.
173
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411
139
174
  */
140
175
  readonly lengthRequired: 411;
141
176
  /**
142
177
  * Precondition Failed status code.
178
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412
143
179
  */
144
180
  readonly preconditionFailed: 412;
145
181
  /**
146
182
  * Payload Too Large status code.
183
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413
147
184
  */
148
185
  readonly payloadTooLarge: 413;
149
186
  /**
150
187
  * URI Too Long status code.
188
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414
151
189
  */
152
190
  readonly uriTooLong: 414;
153
191
  /**
154
192
  * Unsupported Media Type status code.
193
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415
155
194
  */
156
195
  readonly unsupportedMediaType: 415;
157
196
  /**
158
197
  * Range Not Satisfiable status code.
198
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416
159
199
  */
160
200
  readonly rangeNotSatisfiable: 416;
161
201
  /**
162
202
  * Expectation Failed status code.
203
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417
163
204
  */
164
205
  readonly expectationFailed: 417;
165
206
  /**
166
207
  * I'm a Teapot status code.
208
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418
167
209
  */
168
210
  readonly imATeapot: 418;
169
211
  /**
170
212
  * Misdirected Request status code.
213
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421
171
214
  */
172
215
  readonly misdirectedRequest: 421;
173
216
  /**
174
217
  * Unprocessable Entity status code.
218
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422
175
219
  */
176
220
  readonly unprocessableEntity: 422;
177
221
  /**
178
222
  * Locked status code.
223
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423
179
224
  */
180
225
  readonly locked: 423;
181
226
  /**
182
227
  * Failed Dependency status code.
228
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424
183
229
  */
184
230
  readonly failedDependency: 424;
185
231
  /**
186
232
  * Too Early status code.
233
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425
187
234
  */
188
235
  readonly tooEarly: 425;
189
236
  /**
190
237
  * Upgrade Required status code.
238
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426
191
239
  */
192
240
  readonly upgradeRequired: 426;
193
241
  /**
194
242
  * Precondition Required status code.
243
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428
195
244
  */
196
245
  readonly preconditionRequired: 428;
197
246
  /**
198
247
  * Too Many Requests status code.
248
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
199
249
  */
200
250
  readonly tooManyRequests: 429;
201
251
  /**
202
252
  * Request Header Fields Too Large status code.
253
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431
203
254
  */
204
255
  readonly requestHeaderFieldsTooLarge: 431;
205
256
  /**
206
257
  * Unavailable For Legal Reasons status code.
258
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451
207
259
  */
208
260
  readonly unavailableForLegalReasons: 451;
209
261
  /**
210
262
  * Internal Server Error status code.
263
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
211
264
  */
212
265
  readonly internalServerError: 500;
213
266
  /**
214
267
  * Not Implemented status code.
268
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501
215
269
  */
216
270
  readonly notImplemented: 501;
217
271
  /**
218
272
  * Bad Gateway status code.
273
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502
219
274
  */
220
275
  readonly badGateway: 502;
221
276
  /**
222
277
  * Service Unavailable status code.
278
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
223
279
  */
224
280
  readonly serviceUnavailable: 503;
225
281
  /**
226
282
  * Gateway Timeout status code.
283
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504
227
284
  */
228
285
  readonly gatewayTimeout: 504;
229
286
  /**
230
287
  * HTTP Version Not Supported status code.
288
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505
231
289
  */
232
290
  readonly httpVersionNotSupported: 505;
233
291
  /**
234
292
  * Variant Also Negotiates status code.
293
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506
235
294
  */
236
295
  readonly variantAlsoNegotiates: 506;
237
296
  /**
238
297
  * Insufficient Storage status code.
298
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507
239
299
  */
240
300
  readonly insufficientStorage: 507;
241
301
  /**
242
302
  * Loop Detected status code.
303
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508
243
304
  */
244
305
  readonly loopDetected: 508;
245
306
  /**
246
307
  * Not Extended status code.
308
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510
247
309
  */
248
310
  readonly notExtended: 510;
249
311
  /**
250
312
  * Network Authentication Required status code.
313
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511
251
314
  */
252
315
  readonly networkAuthenticationRequired: 511;
253
316
  };
@@ -1,35 +1,144 @@
1
1
  /**
2
2
  * Common mime types.
3
+ * @see https://www.iana.org/assignments/media-types/media-types.xhtml
3
4
  */
4
5
  export declare const MimeTypes: {
5
6
  /**
6
7
  * Plaint Text - text/plain
7
8
  */
8
9
  readonly PlainText: "text/plain";
10
+ /**
11
+ * Event Stream - text/event-stream
12
+ */
13
+ readonly EventStream: "text/event-stream";
9
14
  /**
10
15
  * HTML - text/html
11
16
  */
12
17
  readonly Html: "text/html";
18
+ /**
19
+ * CSS - text/css
20
+ */
21
+ readonly Css: "text/css";
13
22
  /**
14
23
  * Javascript - text/javascript
15
24
  */
16
25
  readonly Javascript: "text/javascript";
26
+ /**
27
+ * Markdown - text/markdown
28
+ */
29
+ readonly Markdown: "text/markdown";
17
30
  /**
18
31
  * JSON - application/json
19
32
  */
20
33
  readonly Json: "application/json";
34
+ /**
35
+ * Problem JSON - application/problem+json
36
+ */
37
+ readonly ProblemJson: "application/problem+json";
21
38
  /**
22
39
  * JSON-LD - application/ld+json
23
40
  */
24
41
  readonly JsonLd: "application/ld+json";
42
+ /**
43
+ * Activity Streams - application/activity+json
44
+ */
45
+ readonly ActivityStreams: "application/activity+json";
46
+ /**
47
+ * WebFinger JRD - application/jrd+json
48
+ */
49
+ readonly JrdJson: "application/jrd+json";
25
50
  /**
26
51
  * JWT - application/jwt
27
52
  */
28
53
  readonly Jwt: "application/jwt";
54
+ /**
55
+ * Access Token JWT - application/at+jwt
56
+ */
57
+ readonly AccessTokenJwt: "application/at+jwt";
58
+ /**
59
+ * JOSE (Compact Serialization) - application/jose
60
+ */
61
+ readonly Jose: "application/jose";
62
+ /**
63
+ * JOSE (JSON Serialization) - application/jose+json
64
+ */
65
+ readonly JoseJson: "application/jose+json";
66
+ /**
67
+ * JSON Web Key (JWK) - application/jwk+json
68
+ */
69
+ readonly JwkJson: "application/jwk+json";
70
+ /**
71
+ * JSON Web Key Set (JWKS) - application/jwk-set+json
72
+ */
73
+ readonly JwkSetJson: "application/jwk-set+json";
74
+ /**
75
+ * Decentralized Identifier (DID) - application/did+json
76
+ */
77
+ readonly DidJson: "application/did+json";
78
+ /**
79
+ * Decentralized Identifier (DID) (JSON-LD) - application/did+ld+json
80
+ */
81
+ readonly DidLdJson: "application/did+ld+json";
82
+ /**
83
+ * Verifiable Credential (JSON-LD) - application/vc+ld+json
84
+ */
85
+ readonly VerifiableCredentialLdJson: "application/vc+ld+json";
86
+ /**
87
+ * Verifiable Presentation (JSON-LD) - application/vp+ld+json
88
+ */
89
+ readonly VerifiablePresentationLdJson: "application/vp+ld+json";
90
+ /**
91
+ * Verifiable Credential (JWT) - application/vc+jwt
92
+ */
93
+ readonly VerifiableCredentialJwt: "application/vc+jwt";
94
+ /**
95
+ * Verifiable Presentation (JWT) - application/vp+jwt
96
+ */
97
+ readonly VerifiablePresentationJwt: "application/vp+jwt";
98
+ /**
99
+ * JSON Patch - application/json-patch+json
100
+ */
101
+ readonly JsonPatch: "application/json-patch+json";
102
+ /**
103
+ * JSON Merge Patch - application/merge-patch+json
104
+ */
105
+ readonly MergePatch: "application/merge-patch+json";
106
+ /**
107
+ * CBOR Web Token (CWT) - application/cwt
108
+ */
109
+ readonly Cwt: "application/cwt";
110
+ /**
111
+ * COSE - application/cose
112
+ */
113
+ readonly Cose: "application/cose";
114
+ /**
115
+ * COSE Key - application/cose-key
116
+ */
117
+ readonly CoseKey: "application/cose-key";
118
+ /**
119
+ * COSE Key Set - application/cose-key-set
120
+ */
121
+ readonly CoseKeySet: "application/cose-key-set";
122
+ /**
123
+ * Form URL Encoded - application/x-www-form-urlencoded
124
+ */
125
+ readonly FormUrlEncoded: "application/x-www-form-urlencoded";
126
+ /**
127
+ * Multipart Form Data - multipart/form-data
128
+ */
129
+ readonly MultipartFormData: "multipart/form-data";
29
130
  /**
30
131
  * XML - application/xml
31
132
  */
32
133
  readonly Xml: "application/xml";
134
+ /**
135
+ * WASM - application/wasm
136
+ */
137
+ readonly Wasm: "application/wasm";
138
+ /**
139
+ * Web App Manifest - application/manifest+json
140
+ */
141
+ readonly WebManifest: "application/manifest+json";
33
142
  /**
34
143
  * Application Octet Stream, arbitrary binary - application/octet-stream
35
144
  */
@@ -78,10 +187,62 @@ export declare const MimeTypes: {
78
187
  * Image SVG - image/svg+xml
79
188
  */
80
189
  readonly Svg: "image/svg+xml";
190
+ /**
191
+ * Image ICO - image/x-icon
192
+ */
193
+ readonly Ico: "image/x-icon";
81
194
  /**
82
195
  * Image WEBP - image/webp
83
196
  */
84
197
  readonly WebP: "image/webp";
198
+ /**
199
+ * Image AVIF - image/avif
200
+ */
201
+ readonly Avif: "image/avif";
202
+ /**
203
+ * Image APNG - image/apng
204
+ */
205
+ readonly Apng: "image/apng";
206
+ /**
207
+ * Font WOFF - font/woff
208
+ */
209
+ readonly Woff: "font/woff";
210
+ /**
211
+ * Font WOFF2 - font/woff2
212
+ */
213
+ readonly Woff2: "font/woff2";
214
+ /**
215
+ * Font TTF - font/ttf
216
+ */
217
+ readonly Ttf: "font/ttf";
218
+ /**
219
+ * Font OTF - font/otf
220
+ */
221
+ readonly Otf: "font/otf";
222
+ /**
223
+ * Audio MP3 - audio/mpeg
224
+ */
225
+ readonly Mp3: "audio/mpeg";
226
+ /**
227
+ * Audio OGG - audio/ogg
228
+ */
229
+ readonly OggAudio: "audio/ogg";
230
+ /**
231
+ * Audio WAV - audio/wav
232
+ */
233
+ readonly Wav: "audio/wav";
234
+ /**
235
+ * Audio WEBM - audio/webm
236
+ */
237
+ readonly WebmAudio: "audio/webm";
238
+ /**
239
+ * Audio AAC - audio/aac
240
+ */
241
+ readonly Aac: "audio/aac";
242
+ /**
243
+ * Audio MP4 - audio/mp4
244
+ */
245
+ readonly Mp4Audio: "audio/mp4";
85
246
  /**
86
247
  * Video MP4 - video/mp4
87
248
  */
@@ -94,6 +255,14 @@ export declare const MimeTypes: {
94
255
  * Video WEBM - video/webm
95
256
  */
96
257
  readonly Webm: "video/webm";
258
+ /**
259
+ * Video OGG - video/ogg
260
+ */
261
+ readonly OggVideo: "video/ogg";
262
+ /**
263
+ * Video QuickTime - video/quicktime
264
+ */
265
+ readonly Quicktime: "video/quicktime";
97
266
  };
98
267
  /**
99
268
  * Common mime types.
package/docs/changelog.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # @twin.org/web - Changelog
2
2
 
3
+ ## [0.0.3-next.15](https://github.com/twinfoundation/framework/compare/web-v0.0.3-next.14...web-v0.0.3-next.15) (2026-01-29)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **web:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/core bumped from 0.0.3-next.14 to 0.0.3-next.15
16
+ * @twin.org/crypto bumped from 0.0.3-next.14 to 0.0.3-next.15
17
+ * @twin.org/nameof bumped from 0.0.3-next.14 to 0.0.3-next.15
18
+ * devDependencies
19
+ * @twin.org/nameof-transformer bumped from 0.0.3-next.14 to 0.0.3-next.15
20
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.14 to 0.0.3-next.15
21
+ * @twin.org/validate-locales bumped from 0.0.3-next.14 to 0.0.3-next.15
22
+
23
+ ## [0.0.3-next.14](https://github.com/twinfoundation/framework/compare/web-v0.0.3-next.13...web-v0.0.3-next.14) (2026-01-22)
24
+
25
+
26
+ ### Features
27
+
28
+ * add/update http and mime types ([#229](https://github.com/twinfoundation/framework/issues/229)) ([d50154a](https://github.com/twinfoundation/framework/commit/d50154a484711b67feb42ea20a94e4415e53d392))
29
+
30
+
31
+ ### Dependencies
32
+
33
+ * The following workspace dependencies were updated
34
+ * dependencies
35
+ * @twin.org/core bumped from 0.0.3-next.13 to 0.0.3-next.14
36
+ * @twin.org/crypto bumped from 0.0.3-next.13 to 0.0.3-next.14
37
+ * @twin.org/nameof bumped from 0.0.3-next.13 to 0.0.3-next.14
38
+ * devDependencies
39
+ * @twin.org/nameof-transformer bumped from 0.0.3-next.13 to 0.0.3-next.14
40
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.13 to 0.0.3-next.14
41
+ * @twin.org/validate-locales bumped from 0.0.3-next.13 to 0.0.3-next.14
42
+
3
43
  ## [0.0.3-next.13](https://github.com/twinfoundation/framework/compare/web-v0.0.3-next.12...web-v0.0.3-next.13) (2026-01-08)
4
44
 
5
45