@dyrected/core 2.5.13 → 2.5.16
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/app-B2tg7Djj.d.cts +1575 -0
- package/dist/app-B2tg7Djj.d.ts +1575 -0
- package/dist/app-Bh4_Opv0.d.cts +1522 -0
- package/dist/app-Bh4_Opv0.d.ts +1522 -0
- package/dist/app-Bv9gaDAN.d.cts +561 -0
- package/dist/app-Bv9gaDAN.d.ts +561 -0
- package/dist/app-BvG3bRc8.d.cts +419 -0
- package/dist/app-BvG3bRc8.d.ts +419 -0
- package/dist/app-C3B9N1KR.d.cts +1522 -0
- package/dist/app-C3B9N1KR.d.ts +1522 -0
- package/dist/app-DDJJa0ep.d.cts +1621 -0
- package/dist/app-DDJJa0ep.d.ts +1621 -0
- package/dist/app-DO1s9YW1.d.cts +1621 -0
- package/dist/app-DO1s9YW1.d.ts +1621 -0
- package/dist/app-DTP3-9PJ.d.cts +561 -0
- package/dist/app-DTP3-9PJ.d.ts +561 -0
- package/dist/app-DbKDGYTI.d.cts +566 -0
- package/dist/app-DbKDGYTI.d.ts +566 -0
- package/dist/app-DqRO-CMi.d.cts +1457 -0
- package/dist/app-DqRO-CMi.d.ts +1457 -0
- package/dist/app-DvaFpOtj.d.cts +398 -0
- package/dist/app-DvaFpOtj.d.ts +398 -0
- package/dist/app-FGzip4XM.d.cts +1563 -0
- package/dist/app-FGzip4XM.d.ts +1563 -0
- package/dist/app-T0alZAE0.d.cts +383 -0
- package/dist/app-T0alZAE0.d.ts +383 -0
- package/dist/app-oQt5-9MU.d.cts +1560 -0
- package/dist/app-oQt5-9MU.d.ts +1560 -0
- package/dist/app-rZj1VFer.d.cts +1621 -0
- package/dist/app-rZj1VFer.d.ts +1621 -0
- package/dist/app-wo82JRHl.d.cts +445 -0
- package/dist/app-wo82JRHl.d.ts +445 -0
- package/dist/chunk-23URSKPI.js +2371 -0
- package/dist/chunk-2JMA3M5S.js +2475 -0
- package/dist/chunk-3FZEUK36.js +2470 -0
- package/dist/chunk-DOJHZ7XN.js +2394 -0
- package/dist/chunk-PKNFV7KE.js +2469 -0
- package/dist/chunk-UBTRANFX.js +2476 -0
- package/dist/chunk-W6KURRMW.js +2471 -0
- package/dist/index.cjs +457 -48
- package/dist/index.d.cts +117 -8
- package/dist/index.d.ts +117 -8
- package/dist/index.js +9 -3
- package/dist/server.cjs +449 -46
- package/dist/server.d.cts +57 -15
- package/dist/server.d.ts +57 -15
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/server.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { p as DyrectedContext, D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-DO1s9YW1.cjs';
|
|
2
|
+
export { M as createDyrectedApp } from './app-DO1s9YW1.cjs';
|
|
3
3
|
import * as hono from 'hono';
|
|
4
4
|
import { Hono, Context } from 'hono';
|
|
5
|
-
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
6
5
|
import * as hono_utils_types from 'hono/utils/types';
|
|
6
|
+
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
7
7
|
import 'hono/types';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -42,7 +42,10 @@ declare class AuthController {
|
|
|
42
42
|
message: string;
|
|
43
43
|
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
44
44
|
token: string;
|
|
45
|
-
user:
|
|
45
|
+
user: {
|
|
46
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
47
|
+
id: string;
|
|
48
|
+
};
|
|
46
49
|
}, hono_utils_http_status.ContentfulStatusCode, "json">)>;
|
|
47
50
|
login(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
48
51
|
message: string;
|
|
@@ -54,13 +57,26 @@ declare class AuthController {
|
|
|
54
57
|
message: string;
|
|
55
58
|
}, 401, "json">) | (Response & hono.TypedResponse<{
|
|
56
59
|
token: string;
|
|
57
|
-
user:
|
|
60
|
+
user: {
|
|
61
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
62
|
+
};
|
|
58
63
|
}, hono_utils_http_status.ContentfulStatusCode, "json">)>;
|
|
59
64
|
logout(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<{
|
|
60
65
|
success: true;
|
|
61
66
|
message: string;
|
|
62
67
|
}, hono_utils_http_status.ContentfulStatusCode, "json">>;
|
|
63
|
-
me(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<
|
|
68
|
+
me(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
69
|
+
message: string;
|
|
70
|
+
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
71
|
+
error: true;
|
|
72
|
+
message: string;
|
|
73
|
+
}, 401, "json">) | (Response & hono.TypedResponse<{
|
|
74
|
+
error: true;
|
|
75
|
+
message: string;
|
|
76
|
+
}, 404, "json">) | (Response & hono.TypedResponse<{
|
|
77
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
78
|
+
id: string;
|
|
79
|
+
}, hono_utils_http_status.ContentfulStatusCode, "json">)>;
|
|
64
80
|
refreshToken(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
65
81
|
error: true;
|
|
66
82
|
message: string;
|
|
@@ -110,7 +126,10 @@ declare class AuthController {
|
|
|
110
126
|
message: string;
|
|
111
127
|
}, 409, "json">) | (Response & hono.TypedResponse<{
|
|
112
128
|
token: string;
|
|
113
|
-
user:
|
|
129
|
+
user: {
|
|
130
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
131
|
+
id: string;
|
|
132
|
+
};
|
|
114
133
|
}, 201, "json">)>;
|
|
115
134
|
}
|
|
116
135
|
|
|
@@ -120,7 +139,9 @@ declare class CollectionController {
|
|
|
120
139
|
find(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
121
140
|
message: string;
|
|
122
141
|
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
123
|
-
docs:
|
|
142
|
+
docs: {
|
|
143
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
144
|
+
}[];
|
|
124
145
|
total: number;
|
|
125
146
|
limit: number;
|
|
126
147
|
page: number;
|
|
@@ -133,13 +154,25 @@ declare class CollectionController {
|
|
|
133
154
|
message: string;
|
|
134
155
|
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
135
156
|
message: string;
|
|
136
|
-
}, 400, "json">) | (Response & hono.TypedResponse<
|
|
157
|
+
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
158
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
159
|
+
}, 201, "json">)>;
|
|
137
160
|
upload(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
138
161
|
message: string;
|
|
139
162
|
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
140
163
|
message: string;
|
|
141
|
-
}, 400, "json">) | (Response & hono.TypedResponse<
|
|
142
|
-
|
|
164
|
+
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
165
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
166
|
+
}, 201, "json">)>;
|
|
167
|
+
update(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
168
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
169
|
+
}, hono_utils_http_status.ContentfulStatusCode, "json">) | (Response & hono.TypedResponse<{
|
|
170
|
+
message: string;
|
|
171
|
+
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
172
|
+
message: string;
|
|
173
|
+
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
174
|
+
message: string;
|
|
175
|
+
}, 404, "json">)>;
|
|
143
176
|
/**
|
|
144
177
|
* POST /api/collections/:slug/:id/change-password
|
|
145
178
|
*
|
|
@@ -189,7 +222,11 @@ declare class GlobalController {
|
|
|
189
222
|
private global;
|
|
190
223
|
constructor(global: GlobalConfig);
|
|
191
224
|
get(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<any, hono_utils_http_status.ContentfulStatusCode, "json">>;
|
|
192
|
-
update(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<
|
|
225
|
+
update(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
226
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
227
|
+
}, hono_utils_http_status.ContentfulStatusCode, "json">) | (Response & hono.TypedResponse<{
|
|
228
|
+
message: string;
|
|
229
|
+
}, 500, "json">)>;
|
|
193
230
|
seed(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<{
|
|
194
231
|
message: string;
|
|
195
232
|
}, hono_utils_http_status.ContentfulStatusCode, "json">>;
|
|
@@ -198,13 +235,18 @@ declare class GlobalController {
|
|
|
198
235
|
declare class MediaController {
|
|
199
236
|
private collection;
|
|
200
237
|
constructor(collection?: string);
|
|
201
|
-
upload(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<
|
|
238
|
+
upload(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
202
239
|
message: string;
|
|
203
240
|
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
204
241
|
message: string;
|
|
205
|
-
}, 400, "json">)
|
|
242
|
+
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
243
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
244
|
+
id: string;
|
|
245
|
+
}, 201, "json">)>;
|
|
206
246
|
find(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
207
|
-
docs:
|
|
247
|
+
docs: {
|
|
248
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
249
|
+
}[];
|
|
208
250
|
total: number;
|
|
209
251
|
limit: number;
|
|
210
252
|
page: number;
|
package/dist/server.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { p as DyrectedContext, D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-DO1s9YW1.js';
|
|
2
|
+
export { M as createDyrectedApp } from './app-DO1s9YW1.js';
|
|
3
3
|
import * as hono from 'hono';
|
|
4
4
|
import { Hono, Context } from 'hono';
|
|
5
|
-
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
6
5
|
import * as hono_utils_types from 'hono/utils/types';
|
|
6
|
+
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
7
7
|
import 'hono/types';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -42,7 +42,10 @@ declare class AuthController {
|
|
|
42
42
|
message: string;
|
|
43
43
|
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
44
44
|
token: string;
|
|
45
|
-
user:
|
|
45
|
+
user: {
|
|
46
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
47
|
+
id: string;
|
|
48
|
+
};
|
|
46
49
|
}, hono_utils_http_status.ContentfulStatusCode, "json">)>;
|
|
47
50
|
login(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
48
51
|
message: string;
|
|
@@ -54,13 +57,26 @@ declare class AuthController {
|
|
|
54
57
|
message: string;
|
|
55
58
|
}, 401, "json">) | (Response & hono.TypedResponse<{
|
|
56
59
|
token: string;
|
|
57
|
-
user:
|
|
60
|
+
user: {
|
|
61
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
62
|
+
};
|
|
58
63
|
}, hono_utils_http_status.ContentfulStatusCode, "json">)>;
|
|
59
64
|
logout(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<{
|
|
60
65
|
success: true;
|
|
61
66
|
message: string;
|
|
62
67
|
}, hono_utils_http_status.ContentfulStatusCode, "json">>;
|
|
63
|
-
me(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<
|
|
68
|
+
me(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
69
|
+
message: string;
|
|
70
|
+
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
71
|
+
error: true;
|
|
72
|
+
message: string;
|
|
73
|
+
}, 401, "json">) | (Response & hono.TypedResponse<{
|
|
74
|
+
error: true;
|
|
75
|
+
message: string;
|
|
76
|
+
}, 404, "json">) | (Response & hono.TypedResponse<{
|
|
77
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
78
|
+
id: string;
|
|
79
|
+
}, hono_utils_http_status.ContentfulStatusCode, "json">)>;
|
|
64
80
|
refreshToken(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
65
81
|
error: true;
|
|
66
82
|
message: string;
|
|
@@ -110,7 +126,10 @@ declare class AuthController {
|
|
|
110
126
|
message: string;
|
|
111
127
|
}, 409, "json">) | (Response & hono.TypedResponse<{
|
|
112
128
|
token: string;
|
|
113
|
-
user:
|
|
129
|
+
user: {
|
|
130
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
131
|
+
id: string;
|
|
132
|
+
};
|
|
114
133
|
}, 201, "json">)>;
|
|
115
134
|
}
|
|
116
135
|
|
|
@@ -120,7 +139,9 @@ declare class CollectionController {
|
|
|
120
139
|
find(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
121
140
|
message: string;
|
|
122
141
|
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
123
|
-
docs:
|
|
142
|
+
docs: {
|
|
143
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
144
|
+
}[];
|
|
124
145
|
total: number;
|
|
125
146
|
limit: number;
|
|
126
147
|
page: number;
|
|
@@ -133,13 +154,25 @@ declare class CollectionController {
|
|
|
133
154
|
message: string;
|
|
134
155
|
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
135
156
|
message: string;
|
|
136
|
-
}, 400, "json">) | (Response & hono.TypedResponse<
|
|
157
|
+
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
158
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
159
|
+
}, 201, "json">)>;
|
|
137
160
|
upload(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
138
161
|
message: string;
|
|
139
162
|
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
140
163
|
message: string;
|
|
141
|
-
}, 400, "json">) | (Response & hono.TypedResponse<
|
|
142
|
-
|
|
164
|
+
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
165
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
166
|
+
}, 201, "json">)>;
|
|
167
|
+
update(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
168
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
169
|
+
}, hono_utils_http_status.ContentfulStatusCode, "json">) | (Response & hono.TypedResponse<{
|
|
170
|
+
message: string;
|
|
171
|
+
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
172
|
+
message: string;
|
|
173
|
+
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
174
|
+
message: string;
|
|
175
|
+
}, 404, "json">)>;
|
|
143
176
|
/**
|
|
144
177
|
* POST /api/collections/:slug/:id/change-password
|
|
145
178
|
*
|
|
@@ -189,7 +222,11 @@ declare class GlobalController {
|
|
|
189
222
|
private global;
|
|
190
223
|
constructor(global: GlobalConfig);
|
|
191
224
|
get(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<any, hono_utils_http_status.ContentfulStatusCode, "json">>;
|
|
192
|
-
update(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<
|
|
225
|
+
update(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
226
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
227
|
+
}, hono_utils_http_status.ContentfulStatusCode, "json">) | (Response & hono.TypedResponse<{
|
|
228
|
+
message: string;
|
|
229
|
+
}, 500, "json">)>;
|
|
193
230
|
seed(c: Context<DyrectedContext>): Promise<Response & hono.TypedResponse<{
|
|
194
231
|
message: string;
|
|
195
232
|
}, hono_utils_http_status.ContentfulStatusCode, "json">>;
|
|
@@ -198,13 +235,18 @@ declare class GlobalController {
|
|
|
198
235
|
declare class MediaController {
|
|
199
236
|
private collection;
|
|
200
237
|
constructor(collection?: string);
|
|
201
|
-
upload(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<
|
|
238
|
+
upload(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
202
239
|
message: string;
|
|
203
240
|
}, 500, "json">) | (Response & hono.TypedResponse<{
|
|
204
241
|
message: string;
|
|
205
|
-
}, 400, "json">)
|
|
242
|
+
}, 400, "json">) | (Response & hono.TypedResponse<{
|
|
243
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
244
|
+
id: string;
|
|
245
|
+
}, 201, "json">)>;
|
|
206
246
|
find(c: Context<DyrectedContext>): Promise<(Response & hono.TypedResponse<{
|
|
207
|
-
docs:
|
|
247
|
+
docs: {
|
|
248
|
+
[x: string]: hono_utils_types.JSONValue;
|
|
249
|
+
}[];
|
|
208
250
|
total: number;
|
|
209
251
|
limit: number;
|
|
210
252
|
page: number;
|
package/dist/server.js
CHANGED