@tinyrack/issuary-server 0.29.1 → 0.29.3

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.
@@ -341,11 +341,11 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
341
341
  "/auth/accounts/select": {
342
342
  $post: {
343
343
  output: {
344
- ok: true;
345
- active_sub: string;
344
+ code: string;
345
+ message: string;
346
346
  };
347
347
  outputFormat: "json";
348
- status: 200;
348
+ status: 400;
349
349
  input: {
350
350
  json: {
351
351
  sub: string;
@@ -353,11 +353,11 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
353
353
  };
354
354
  } | {
355
355
  output: {
356
- code: string;
357
- message: string;
356
+ ok: true;
357
+ active_sub: string;
358
358
  };
359
359
  outputFormat: "json";
360
- status: 400;
360
+ status: 200;
361
361
  input: {
362
362
  json: {
363
363
  sub: string;
@@ -456,12 +456,9 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
456
456
  }, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
457
457
  "/oauth/:provider/callback": {
458
458
  $post: {
459
- output: {
460
- code: any;
461
- message: any;
462
- };
463
- outputFormat: "json";
464
- status: any;
459
+ output: undefined;
460
+ outputFormat: "redirect";
461
+ status: 302;
465
462
  input: {
466
463
  param: {
467
464
  provider: string;
@@ -475,9 +472,12 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
475
472
  };
476
473
  };
477
474
  } | {
478
- output: undefined;
479
- outputFormat: "redirect";
480
- status: 302;
475
+ output: {
476
+ code: any;
477
+ message: any;
478
+ };
479
+ outputFormat: "json";
480
+ status: any;
481
481
  input: {
482
482
  param: {
483
483
  provider: string;
@@ -640,10 +640,11 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
640
640
  "/auth/accounts/remove": {
641
641
  $post: {
642
642
  output: {
643
- ok: true;
643
+ code: string;
644
+ message: string;
644
645
  };
645
646
  outputFormat: "json";
646
- status: 200;
647
+ status: 400;
647
648
  input: {
648
649
  json: {
649
650
  sub: string;
@@ -651,11 +652,10 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
651
652
  };
652
653
  } | {
653
654
  output: {
654
- code: string;
655
- message: string;
655
+ ok: true;
656
656
  };
657
657
  outputFormat: "json";
658
- status: 400;
658
+ status: 200;
659
659
  input: {
660
660
  json: {
661
661
  sub: string;
@@ -1390,12 +1390,9 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
1390
1390
  }, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
1391
1391
  "/oauth/:provider/callback": {
1392
1392
  $get: {
1393
- output: {
1394
- code: any;
1395
- message: any;
1396
- };
1397
- outputFormat: "json";
1398
- status: any;
1393
+ output: undefined;
1394
+ outputFormat: "redirect";
1395
+ status: 302;
1399
1396
  input: {
1400
1397
  param: {
1401
1398
  provider: string;
@@ -1409,9 +1406,12 @@ export declare function createApp(options: CreateAppOptions, runtimeOptions?: Cr
1409
1406
  };
1410
1407
  };
1411
1408
  } | {
1412
- output: undefined;
1413
- outputFormat: "redirect";
1414
- status: 302;
1409
+ output: {
1410
+ code: any;
1411
+ message: any;
1412
+ };
1413
+ outputFormat: "json";
1414
+ status: any;
1415
1415
  input: {
1416
1416
  param: {
1417
1417
  provider: string;
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/entrypoints/app.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,iCAAiC,CAAC;AAYzC,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AACzD,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,GAAG;IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyF7C;AAED,MAAM,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC"}
@@ -11,6 +11,7 @@ import { loggerMiddleware } from '../middleware/logger.js';
11
11
  import { mikroOrmMiddleware } from '../middleware/mikro-orm.js';
12
12
  import { servicesMiddleware } from '../middleware/services.js';
13
13
  import { sessionMiddleware } from '../middleware/session.js';
14
+ import { tracingMiddleware } from '../middleware/tracing.js';
14
15
  import { trustedProxyGuard } from '../middleware/trusted-proxy-guard.js';
15
16
  import { routes } from '../routes/index.js';
16
17
  import { e, IssuaryError } from '../schemas/error.js';
@@ -42,6 +43,7 @@ export async function createApp(options, runtimeOptions = {}) {
42
43
  };
43
44
  const app = new Hono()
44
45
  .onError(handleError)
46
+ .use('*', tracingMiddleware())
45
47
  .use('*', loggerMiddleware(logger))
46
48
  .use('*', firstPartyCors(config.server.public_origin))
47
49
  .use('*', sessionMiddleware(config.security.session_secret, config.server.public_origin.startsWith('https'), {
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/entrypo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ACA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE;QACT,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAWF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,qEAwBvD"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/middleware/logger.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE;QACT,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AAWF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,qEAiCvD"}
@@ -1,3 +1,4 @@
1
+ import { isSpanContextValid, context as otelContext, trace, } from '@opentelemetry/api';
1
2
  import { createMiddleware } from 'hono/factory';
2
3
  /**
3
4
  * Determine the pino log level for a response status code.
@@ -19,7 +20,14 @@ function levelForStatus(status) {
19
20
  export function loggerMiddleware(rootLogger) {
20
21
  return createMiddleware(async (c, next) => {
21
22
  const reqId = crypto.randomUUID();
22
- const child = rootLogger.child({ reqId });
23
+ const spanContext = trace.getSpan(otelContext.active())?.spanContext();
24
+ const child = rootLogger.child(spanContext && isSpanContextValid(spanContext)
25
+ ? {
26
+ reqId,
27
+ trace_id: spanContext.traceId,
28
+ span_id: spanContext.spanId,
29
+ }
30
+ : { reqId });
23
31
  c.set('logger', child);
24
32
  const start = performance.now();
25
33
  await next();
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/middleware/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAYhD;;GAEG;AACH,SAAS,cAAc,CAAC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M,KAAK,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;QACrC,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;QAEhD,KAAK,CAAC,KAAK,CAAC,CACV;YACE,GAAG,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE;YACxC,GAAG,EAAE,EAAE,MAAM,EAAE;YACf,YAAY;SACb,EACD,GAAG,CACJ,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Creates one parent-aware server span for every Hono request. */
2
+ export declare function tracingMiddleware(): import("hono").MiddlewareHandler<any, string, {}, Response>;
3
+ //# sourceMappingURL=tracing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/middleware/tracing.ts"],"names":[],"mappings":"AAoBA,mEAAmE;AACnE,wBAAgB,iBAAiB,gEAsChC"}
@@ -0,0 +1,47 @@
1
+ import { context as otelContext, propagation, SpanKind, SpanStatusCode, trace, } from '@opentelemetry/api';
2
+ import { createMiddleware } from 'hono/factory';
3
+ const tracer = trace.getTracer('issuary-http');
4
+ const headersGetter = {
5
+ get(carrier, key) {
6
+ return carrier.get(key) ?? undefined;
7
+ },
8
+ keys(carrier) {
9
+ return [...carrier.keys()];
10
+ },
11
+ };
12
+ /** Creates one parent-aware server span for every Hono request. */
13
+ export function tracingMiddleware() {
14
+ return createMiddleware(async (c, next) => {
15
+ const parentContext = propagation.extract(otelContext.active(), c.req.raw.headers, headersGetter);
16
+ const span = tracer.startSpan(`HTTP ${c.req.method}`, {
17
+ kind: SpanKind.SERVER,
18
+ attributes: {
19
+ 'http.request.method': c.req.method,
20
+ 'url.scheme': new URL(c.req.url).protocol.replace(':', ''),
21
+ },
22
+ }, parentContext);
23
+ return otelContext.with(trace.setSpan(parentContext, span), async () => {
24
+ try {
25
+ await next();
26
+ const route = c.req.routePath;
27
+ if (route) {
28
+ span.updateName(`${c.req.method} ${route}`);
29
+ span.setAttribute('http.route', route);
30
+ }
31
+ span.setAttribute('http.response.status_code', c.res.status);
32
+ if (c.res.status >= 500)
33
+ span.setStatus({ code: SpanStatusCode.ERROR });
34
+ }
35
+ catch (error) {
36
+ span.setStatus({ code: SpanStatusCode.ERROR });
37
+ if (error instanceof Error)
38
+ span.recordException(error);
39
+ throw error;
40
+ }
41
+ finally {
42
+ span.end();
43
+ }
44
+ });
45
+ });
46
+ }
47
+ //# sourceMappingURL=tracing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/middleware/tracing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,WAAW,EACX,QAAQ,EACR,cAAc,EACd,KAAK,GACN,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;AAE/C,MAAM,aAAa,GAAG;IACpB,GAAG,CAAC,OAAgB,EAAE,GAAW;QAC/B,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC;IACvC,CAAC;IACD,IAAI,CAAC,OAAgB;QACnB,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7B,CAAC;CACF,CAAC;AAEF,mEAAmE;AACnE,MAAM,UAAU,iBAAiB;IAC/B,OAAO,gBAAgB,CAAC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QACxC,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,CACvC,WAAW,CAAC,MAAM,EAAE,EACpB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,EACjB,aAAa,CACd,CAAC;QACF,MAAM,IAAI,GAAG,MAA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;oBAAS,CAAC;gBACT,IAAI,CAAC,GAAG,EAAE,CAAC;YACb,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -3,11 +3,10 @@ export declare const authAccountsRemovePost: import("hono/hono-base").HonoBase<A
3
3
  "/auth/accounts/remove": {
4
4
  $post: {
5
5
  output: {
6
- code: string;
7
- message: string;
6
+ ok: true;
8
7
  };
9
8
  outputFormat: "json";
10
- status: 400;
9
+ status: 200;
11
10
  input: {
12
11
  json: {
13
12
  sub: string;
@@ -15,10 +14,11 @@ export declare const authAccountsRemovePost: import("hono/hono-base").HonoBase<A
15
14
  };
16
15
  } | {
17
16
  output: {
18
- ok: true;
17
+ code: string;
18
+ message: string;
19
19
  };
20
20
  outputFormat: "json";
21
- status: 200;
21
+ status: 400;
22
22
  input: {
23
23
  json: {
24
24
  sub: string;
@@ -3,11 +3,11 @@ export declare const authAccountsSelectPost: import("hono/hono-base").HonoBase<A
3
3
  "/auth/accounts/select": {
4
4
  $post: {
5
5
  output: {
6
- ok: true;
7
- active_sub: string;
6
+ code: string;
7
+ message: string;
8
8
  };
9
9
  outputFormat: "json";
10
- status: 200;
10
+ status: 400;
11
11
  input: {
12
12
  json: {
13
13
  sub: string;
@@ -15,11 +15,11 @@ export declare const authAccountsSelectPost: import("hono/hono-base").HonoBase<A
15
15
  };
16
16
  } | {
17
17
  output: {
18
- code: string;
19
- message: string;
18
+ ok: true;
19
+ active_sub: string;
20
20
  };
21
21
  outputFormat: "json";
22
- status: 400;
22
+ status: 200;
23
23
  input: {
24
24
  json: {
25
25
  sub: string;
@@ -86,11 +86,11 @@ export declare const authRoutes: import("hono/hono-base").HonoBase<AppEnv, impor
86
86
  "/auth/accounts/select": {
87
87
  $post: {
88
88
  output: {
89
- ok: true;
90
- active_sub: string;
89
+ code: string;
90
+ message: string;
91
91
  };
92
92
  outputFormat: "json";
93
- status: 200;
93
+ status: 400;
94
94
  input: {
95
95
  json: {
96
96
  sub: string;
@@ -98,11 +98,11 @@ export declare const authRoutes: import("hono/hono-base").HonoBase<AppEnv, impor
98
98
  };
99
99
  } | {
100
100
  output: {
101
- code: string;
102
- message: string;
101
+ ok: true;
102
+ active_sub: string;
103
103
  };
104
104
  outputFormat: "json";
105
- status: 400;
105
+ status: 200;
106
106
  input: {
107
107
  json: {
108
108
  sub: string;
@@ -114,10 +114,11 @@ export declare const authRoutes: import("hono/hono-base").HonoBase<AppEnv, impor
114
114
  "/auth/accounts/remove": {
115
115
  $post: {
116
116
  output: {
117
- ok: true;
117
+ code: string;
118
+ message: string;
118
119
  };
119
120
  outputFormat: "json";
120
- status: 200;
121
+ status: 400;
121
122
  input: {
122
123
  json: {
123
124
  sub: string;
@@ -125,11 +126,10 @@ export declare const authRoutes: import("hono/hono-base").HonoBase<AppEnv, impor
125
126
  };
126
127
  } | {
127
128
  output: {
128
- code: string;
129
- message: string;
129
+ ok: true;
130
130
  };
131
131
  outputFormat: "json";
132
- status: 400;
132
+ status: 200;
133
133
  input: {
134
134
  json: {
135
135
  sub: string;
@@ -26,11 +26,11 @@ export declare const apiRoutes: import("hono/hono-base").HonoBase<AppEnv, import
26
26
  "/auth/accounts/select": {
27
27
  $post: {
28
28
  output: {
29
- ok: true;
30
- active_sub: string;
29
+ code: string;
30
+ message: string;
31
31
  };
32
32
  outputFormat: "json";
33
- status: 200;
33
+ status: 400;
34
34
  input: {
35
35
  json: {
36
36
  sub: string;
@@ -38,11 +38,11 @@ export declare const apiRoutes: import("hono/hono-base").HonoBase<AppEnv, import
38
38
  };
39
39
  } | {
40
40
  output: {
41
- code: string;
42
- message: string;
41
+ ok: true;
42
+ active_sub: string;
43
43
  };
44
44
  outputFormat: "json";
45
- status: 400;
45
+ status: 200;
46
46
  input: {
47
47
  json: {
48
48
  sub: string;
@@ -188,10 +188,11 @@ export declare const apiRoutes: import("hono/hono-base").HonoBase<AppEnv, import
188
188
  "/auth/accounts/remove": {
189
189
  $post: {
190
190
  output: {
191
- ok: true;
191
+ code: string;
192
+ message: string;
192
193
  };
193
194
  outputFormat: "json";
194
- status: 200;
195
+ status: 400;
195
196
  input: {
196
197
  json: {
197
198
  sub: string;
@@ -199,11 +200,10 @@ export declare const apiRoutes: import("hono/hono-base").HonoBase<AppEnv, import
199
200
  };
200
201
  } | {
201
202
  output: {
202
- code: string;
203
- message: string;
203
+ ok: true;
204
204
  };
205
205
  outputFormat: "json";
206
- status: 400;
206
+ status: 200;
207
207
  input: {
208
208
  json: {
209
209
  sub: string;
@@ -1489,12 +1489,9 @@ export declare const apiRoutes: import("hono/hono-base").HonoBase<AppEnv, import
1489
1489
  }, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
1490
1490
  "/oauth/:provider/callback": {
1491
1491
  $post: {
1492
- output: {
1493
- code: any;
1494
- message: any;
1495
- };
1496
- outputFormat: "json";
1497
- status: any;
1492
+ output: undefined;
1493
+ outputFormat: "redirect";
1494
+ status: 302;
1498
1495
  input: {
1499
1496
  param: {
1500
1497
  provider: string;
@@ -1508,9 +1505,12 @@ export declare const apiRoutes: import("hono/hono-base").HonoBase<AppEnv, import
1508
1505
  };
1509
1506
  };
1510
1507
  } | {
1511
- output: undefined;
1512
- outputFormat: "redirect";
1513
- status: 302;
1508
+ output: {
1509
+ code: any;
1510
+ message: any;
1511
+ };
1512
+ outputFormat: "json";
1513
+ status: any;
1514
1514
  input: {
1515
1515
  param: {
1516
1516
  provider: string;
@@ -1574,12 +1574,9 @@ export declare const apiRoutes: import("hono/hono-base").HonoBase<AppEnv, import
1574
1574
  }, "/"> | import("hono/types").MergeSchemaPath<{
1575
1575
  "/oauth/:provider/callback": {
1576
1576
  $get: {
1577
- output: {
1578
- code: any;
1579
- message: any;
1580
- };
1581
- outputFormat: "json";
1582
- status: any;
1577
+ output: undefined;
1578
+ outputFormat: "redirect";
1579
+ status: 302;
1583
1580
  input: {
1584
1581
  param: {
1585
1582
  provider: string;
@@ -1593,9 +1590,12 @@ export declare const apiRoutes: import("hono/hono-base").HonoBase<AppEnv, import
1593
1590
  };
1594
1591
  };
1595
1592
  } | {
1596
- output: undefined;
1597
- outputFormat: "redirect";
1598
- status: 302;
1593
+ output: {
1594
+ code: any;
1595
+ message: any;
1596
+ };
1597
+ outputFormat: "json";
1598
+ status: any;
1599
1599
  input: {
1600
1600
  param: {
1601
1601
  provider: string;
@@ -2,9 +2,12 @@ import type { AppEnv } from '../../../../../lib/app-env.ts';
2
2
  export declare const oauthProviderCallbackGet: import("hono/hono-base").HonoBase<AppEnv, {
3
3
  "/oauth/:provider/callback": {
4
4
  $get: {
5
- output: undefined;
6
- outputFormat: "redirect";
7
- status: 302;
5
+ output: {
6
+ code: any;
7
+ message: any;
8
+ };
9
+ outputFormat: "json";
10
+ status: any;
8
11
  input: {
9
12
  param: {
10
13
  provider: string;
@@ -18,12 +21,9 @@ export declare const oauthProviderCallbackGet: import("hono/hono-base").HonoBase
18
21
  };
19
22
  };
20
23
  } | {
21
- output: {
22
- code: any;
23
- message: any;
24
- };
25
- outputFormat: "json";
26
- status: any;
24
+ output: undefined;
25
+ outputFormat: "redirect";
26
+ status: 302;
27
27
  input: {
28
28
  param: {
29
29
  provider: string;
@@ -2,12 +2,9 @@ import type { AppEnv } from '../../../../../lib/app-env.ts';
2
2
  export declare const oauthProviderCallbackPost: import("hono/hono-base").HonoBase<AppEnv, {
3
3
  "/oauth/:provider/callback": {
4
4
  $post: {
5
- output: {
6
- code: any;
7
- message: any;
8
- };
9
- outputFormat: "json";
10
- status: any;
5
+ output: undefined;
6
+ outputFormat: "redirect";
7
+ status: 302;
11
8
  input: {
12
9
  param: {
13
10
  provider: string;
@@ -21,9 +18,12 @@ export declare const oauthProviderCallbackPost: import("hono/hono-base").HonoBas
21
18
  };
22
19
  };
23
20
  } | {
24
- output: undefined;
25
- outputFormat: "redirect";
26
- status: 302;
21
+ output: {
22
+ code: any;
23
+ message: any;
24
+ };
25
+ outputFormat: "json";
26
+ status: any;
27
27
  input: {
28
28
  param: {
29
29
  provider: string;
@@ -2,9 +2,12 @@ import type { AppEnv } from '../../../lib/app-env.ts';
2
2
  export declare const oauthRoutes: import("hono/hono-base").HonoBase<AppEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
3
3
  "/oauth/:provider/callback": {
4
4
  $get: {
5
- output: undefined;
6
- outputFormat: "redirect";
7
- status: 302;
5
+ output: {
6
+ code: any;
7
+ message: any;
8
+ };
9
+ outputFormat: "json";
10
+ status: any;
8
11
  input: {
9
12
  param: {
10
13
  provider: string;
@@ -18,12 +21,9 @@ export declare const oauthRoutes: import("hono/hono-base").HonoBase<AppEnv, impo
18
21
  };
19
22
  };
20
23
  } | {
21
- output: {
22
- code: any;
23
- message: any;
24
- };
25
- outputFormat: "json";
26
- status: any;
24
+ output: undefined;
25
+ outputFormat: "redirect";
26
+ status: 302;
27
27
  input: {
28
28
  param: {
29
29
  provider: string;
@@ -87,9 +87,12 @@ export declare const oauthRoutes: import("hono/hono-base").HonoBase<AppEnv, impo
87
87
  }, "/"> | import("hono/types").MergeSchemaPath<{
88
88
  "/oauth/:provider/callback": {
89
89
  $post: {
90
- output: undefined;
91
- outputFormat: "redirect";
92
- status: 302;
90
+ output: {
91
+ code: any;
92
+ message: any;
93
+ };
94
+ outputFormat: "json";
95
+ status: any;
93
96
  input: {
94
97
  param: {
95
98
  provider: string;
@@ -103,12 +106,9 @@ export declare const oauthRoutes: import("hono/hono-base").HonoBase<AppEnv, impo
103
106
  };
104
107
  };
105
108
  } | {
106
- output: {
107
- code: any;
108
- message: any;
109
- };
110
- outputFormat: "json";
111
- status: any;
109
+ output: undefined;
110
+ outputFormat: "redirect";
111
+ status: 302;
112
112
  input: {
113
113
  param: {
114
114
  provider: string;
@@ -308,11 +308,10 @@ export declare const routes: import("hono/hono-base").HonoBase<AppEnv, import("h
308
308
  "/auth/accounts/remove": {
309
309
  $post: {
310
310
  output: {
311
- code: string;
312
- message: string;
311
+ ok: true;
313
312
  };
314
313
  outputFormat: "json";
315
- status: 400;
314
+ status: 200;
316
315
  input: {
317
316
  json: {
318
317
  sub: string;
@@ -320,10 +319,11 @@ export declare const routes: import("hono/hono-base").HonoBase<AppEnv, import("h
320
319
  };
321
320
  } | {
322
321
  output: {
323
- ok: true;
322
+ code: string;
323
+ message: string;
324
324
  };
325
325
  outputFormat: "json";
326
- status: 200;
326
+ status: 400;
327
327
  input: {
328
328
  json: {
329
329
  sub: string;
@@ -557,9 +557,12 @@ export declare const routes: import("hono/hono-base").HonoBase<AppEnv, import("h
557
557
  }, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
558
558
  "/oauth/:provider/callback": {
559
559
  $get: {
560
- output: undefined;
561
- outputFormat: "redirect";
562
- status: 302;
560
+ output: {
561
+ code: any;
562
+ message: any;
563
+ };
564
+ outputFormat: "json";
565
+ status: any;
563
566
  input: {
564
567
  param: {
565
568
  provider: string;
@@ -573,12 +576,9 @@ export declare const routes: import("hono/hono-base").HonoBase<AppEnv, import("h
573
576
  };
574
577
  };
575
578
  } | {
576
- output: {
577
- code: any;
578
- message: any;
579
- };
580
- outputFormat: "json";
581
- status: any;
579
+ output: undefined;
580
+ outputFormat: "redirect";
581
+ status: 302;
582
582
  input: {
583
583
  param: {
584
584
  provider: string;
@@ -642,9 +642,12 @@ export declare const routes: import("hono/hono-base").HonoBase<AppEnv, import("h
642
642
  }, "/">, "/"> | import("hono/types").MergeSchemaPath<import("hono/types").MergeSchemaPath<{
643
643
  "/oauth/:provider/callback": {
644
644
  $post: {
645
- output: undefined;
646
- outputFormat: "redirect";
647
- status: 302;
645
+ output: {
646
+ code: any;
647
+ message: any;
648
+ };
649
+ outputFormat: "json";
650
+ status: any;
648
651
  input: {
649
652
  param: {
650
653
  provider: string;
@@ -658,12 +661,9 @@ export declare const routes: import("hono/hono-base").HonoBase<AppEnv, import("h
658
661
  };
659
662
  };
660
663
  } | {
661
- output: {
662
- code: any;
663
- message: any;
664
- };
665
- outputFormat: "json";
666
- status: any;
664
+ output: undefined;
665
+ outputFormat: "redirect";
666
+ status: 302;
667
667
  input: {
668
668
  param: {
669
669
  provider: string;
@@ -1079,11 +1079,11 @@ export declare const routes: import("hono/hono-base").HonoBase<AppEnv, import("h
1079
1079
  "/auth/accounts/select": {
1080
1080
  $post: {
1081
1081
  output: {
1082
- code: string;
1083
- message: string;
1082
+ ok: true;
1083
+ active_sub: string;
1084
1084
  };
1085
1085
  outputFormat: "json";
1086
- status: 400;
1086
+ status: 200;
1087
1087
  input: {
1088
1088
  json: {
1089
1089
  sub: string;
@@ -1091,11 +1091,11 @@ export declare const routes: import("hono/hono-base").HonoBase<AppEnv, import("h
1091
1091
  };
1092
1092
  } | {
1093
1093
  output: {
1094
- ok: true;
1095
- active_sub: string;
1094
+ code: string;
1095
+ message: string;
1096
1096
  };
1097
1097
  outputFormat: "json";
1098
- status: 200;
1098
+ status: 400;
1099
1099
  input: {
1100
1100
  json: {
1101
1101
  sub: string;
@@ -71,12 +71,9 @@ export declare const oauthApplicationRoutes: import("hono/hono-base").HonoBase<A
71
71
  }, "/"> | import("hono/types").MergeSchemaPath<{
72
72
  "/end_session": {
73
73
  $get: {
74
- output: {
75
- error: string;
76
- error_description: string;
77
- };
78
- outputFormat: "json";
79
- status: 400;
74
+ output: undefined;
75
+ outputFormat: "redirect";
76
+ status: 302;
80
77
  input: {
81
78
  query: {
82
79
  client_id?: string | undefined;
@@ -86,9 +83,12 @@ export declare const oauthApplicationRoutes: import("hono/hono-base").HonoBase<A
86
83
  };
87
84
  };
88
85
  } | {
89
- output: undefined;
90
- outputFormat: "redirect";
91
- status: 302;
86
+ output: {
87
+ error: string;
88
+ error_description: string;
89
+ };
90
+ outputFormat: "json";
91
+ status: 400;
92
92
  input: {
93
93
  query: {
94
94
  client_id?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinyrack/issuary-server",
3
- "version": "0.29.1",
3
+ "version": "0.29.3",
4
4
  "type": "module",
5
5
  "description": "OpenID Connect Provider with OAuth2 support",
6
6
  "license": "MIT",
@@ -90,6 +90,7 @@
90
90
  },
91
91
  "dependencies": {
92
92
  "@hono/standard-validator": "^0.4.0",
93
+ "@opentelemetry/api": "^1.9.1",
93
94
  "@mikro-orm/cli": "^7.1.14",
94
95
  "@mikro-orm/core": "^7.1.14",
95
96
  "@mikro-orm/decorators": "^7.1.14",