authhero 9.27.1 → 9.28.0
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/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +263 -116
- package/dist/authhero.d.ts +472 -261
- package/dist/authhero.mjs +20636 -17140
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/helpers/action-verification.d.ts +12 -0
- package/dist/types/helpers/control-plane-client.d.ts +2 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/index.d.ts +464 -260
- package/dist/types/routes/auth-api/account.d.ts +2 -2
- package/dist/types/routes/auth-api/device.d.ts +12 -12
- package/dist/types/routes/auth-api/index.d.ts +40 -40
- package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/revoke.d.ts +2 -2
- package/dist/types/routes/auth-api/token.d.ts +12 -12
- package/dist/types/routes/management-api/action-generation.d.ts +135 -0
- package/dist/types/routes/management-api/actions.d.ts +204 -0
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +13 -13
- package/dist/types/routes/management-api/client-grants.d.ts +9 -9
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/connections.d.ts +1 -1
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/failed-events.d.ts +4 -4
- package/dist/types/routes/management-api/flows.d.ts +8 -8
- package/dist/types/routes/management-api/forms.d.ts +144 -144
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/helpers.d.ts +1 -1
- package/dist/types/routes/management-api/index.d.ts +433 -229
- package/dist/types/routes/management-api/keys.d.ts +8 -8
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/migration-sources.d.ts +6 -6
- package/dist/types/routes/management-api/organizations.d.ts +5 -5
- package/dist/types/routes/management-api/prompts.d.ts +6 -6
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenant-operations.d.ts +5 -5
- package/dist/types/routes/management-api/tenants.d.ts +4 -4
- package/dist/types/routes/management-api/themes.d.ts +9 -9
- package/dist/types/routes/management-api/users.d.ts +26 -26
- package/dist/types/routes/universal-login/common.d.ts +12 -12
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/state-machines/login-session.d.ts +1 -1
- package/dist/types/tenant-members/wire.d.ts +9 -0
- package/dist/types/types/AuthHeroConfig.d.ts +5 -1
- package/dist/types/types/Bindings.d.ts +2 -1
- package/package.json +7 -6
|
@@ -11,7 +11,7 @@ export declare const accountRoutes: OpenAPIHono<{
|
|
|
11
11
|
client_id: string;
|
|
12
12
|
redirect_url?: string | undefined;
|
|
13
13
|
login_hint?: string | undefined;
|
|
14
|
-
screen_hint?: "
|
|
14
|
+
screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
output: {};
|
|
@@ -23,7 +23,7 @@ export declare const accountRoutes: OpenAPIHono<{
|
|
|
23
23
|
client_id: string;
|
|
24
24
|
redirect_url?: string | undefined;
|
|
25
25
|
login_hint?: string | undefined;
|
|
26
|
-
screen_hint?: "
|
|
26
|
+
screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
output: {
|
|
@@ -24,11 +24,16 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
output: {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
device_code: string;
|
|
28
|
+
user_code: string;
|
|
29
|
+
verification_uri: string;
|
|
30
|
+
verification_uri_complete: string;
|
|
31
|
+
expires_in: number;
|
|
32
|
+
interval: number;
|
|
33
|
+
qr_code?: string | undefined;
|
|
29
34
|
};
|
|
30
35
|
outputFormat: "json";
|
|
31
|
-
status:
|
|
36
|
+
status: 200;
|
|
32
37
|
} | {
|
|
33
38
|
input: {
|
|
34
39
|
form: {
|
|
@@ -48,16 +53,11 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
48
53
|
};
|
|
49
54
|
};
|
|
50
55
|
output: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
verification_uri: string;
|
|
54
|
-
verification_uri_complete: string;
|
|
55
|
-
expires_in: number;
|
|
56
|
-
interval: number;
|
|
57
|
-
qr_code?: string | undefined;
|
|
56
|
+
error: string;
|
|
57
|
+
error_description?: string | undefined;
|
|
58
58
|
};
|
|
59
59
|
outputFormat: "json";
|
|
60
|
-
status:
|
|
60
|
+
status: 400;
|
|
61
61
|
} | {
|
|
62
62
|
input: {
|
|
63
63
|
form: {
|
|
@@ -81,7 +81,7 @@ export declare const deviceCodeRoutes: OpenAPIHono<{
|
|
|
81
81
|
error_description?: string | undefined;
|
|
82
82
|
};
|
|
83
83
|
outputFormat: "json";
|
|
84
|
-
status:
|
|
84
|
+
status: 401;
|
|
85
85
|
} | {
|
|
86
86
|
input: {
|
|
87
87
|
form: {
|
|
@@ -301,7 +301,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
301
301
|
scope?: string | undefined;
|
|
302
302
|
grant_types?: string[] | undefined;
|
|
303
303
|
response_types?: string[] | undefined;
|
|
304
|
-
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "
|
|
304
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
|
|
305
305
|
jwks_uri?: string | undefined;
|
|
306
306
|
jwks?: Record<string, unknown> | undefined;
|
|
307
307
|
software_id?: string | undefined;
|
|
@@ -390,7 +390,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
390
390
|
scope?: string | undefined;
|
|
391
391
|
grant_types?: string[] | undefined;
|
|
392
392
|
response_types?: string[] | undefined;
|
|
393
|
-
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "
|
|
393
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
|
|
394
394
|
jwks_uri?: string | undefined;
|
|
395
395
|
jwks?: Record<string, unknown> | undefined;
|
|
396
396
|
software_id?: string | undefined;
|
|
@@ -447,7 +447,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
447
447
|
client_id: string;
|
|
448
448
|
redirect_url?: string | undefined;
|
|
449
449
|
login_hint?: string | undefined;
|
|
450
|
-
screen_hint?: "
|
|
450
|
+
screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
|
|
451
451
|
};
|
|
452
452
|
};
|
|
453
453
|
output: {};
|
|
@@ -459,7 +459,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
459
459
|
client_id: string;
|
|
460
460
|
redirect_url?: string | undefined;
|
|
461
461
|
login_hint?: string | undefined;
|
|
462
|
-
screen_hint?: "
|
|
462
|
+
screen_hint?: "account" | "change-email" | "change-phone" | "change-password" | undefined;
|
|
463
463
|
};
|
|
464
464
|
};
|
|
465
465
|
output: {
|
|
@@ -741,20 +741,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
741
741
|
email: string;
|
|
742
742
|
send: "code" | "link";
|
|
743
743
|
authParams: {
|
|
744
|
-
username?: string | undefined;
|
|
745
744
|
scope?: string | undefined;
|
|
746
745
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
747
746
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
747
|
+
username?: string | undefined;
|
|
748
748
|
audience?: string | undefined;
|
|
749
|
-
organization?: string | undefined;
|
|
750
|
-
state?: string | undefined;
|
|
751
|
-
redirect_uri?: string | undefined;
|
|
752
749
|
prompt?: string | undefined;
|
|
753
|
-
|
|
750
|
+
state?: string | undefined;
|
|
754
751
|
act_as?: string | undefined;
|
|
752
|
+
redirect_uri?: string | undefined;
|
|
753
|
+
organization?: string | undefined;
|
|
755
754
|
nonce?: string | undefined;
|
|
756
755
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
757
756
|
code_challenge?: string | undefined;
|
|
757
|
+
ui_locales?: string | undefined;
|
|
758
758
|
max_age?: number | undefined;
|
|
759
759
|
acr_values?: string | undefined;
|
|
760
760
|
claims?: {
|
|
@@ -777,20 +777,20 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
777
777
|
phone_number: string;
|
|
778
778
|
send: "code" | "link";
|
|
779
779
|
authParams: {
|
|
780
|
-
username?: string | undefined;
|
|
781
780
|
scope?: string | undefined;
|
|
782
781
|
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
783
782
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
783
|
+
username?: string | undefined;
|
|
784
784
|
audience?: string | undefined;
|
|
785
|
-
organization?: string | undefined;
|
|
786
|
-
state?: string | undefined;
|
|
787
|
-
redirect_uri?: string | undefined;
|
|
788
785
|
prompt?: string | undefined;
|
|
789
|
-
|
|
786
|
+
state?: string | undefined;
|
|
790
787
|
act_as?: string | undefined;
|
|
788
|
+
redirect_uri?: string | undefined;
|
|
789
|
+
organization?: string | undefined;
|
|
791
790
|
nonce?: string | undefined;
|
|
792
791
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
793
792
|
code_challenge?: string | undefined;
|
|
793
|
+
ui_locales?: string | undefined;
|
|
794
794
|
max_age?: number | undefined;
|
|
795
795
|
acr_values?: string | undefined;
|
|
796
796
|
claims?: {
|
|
@@ -957,7 +957,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
957
957
|
error_description?: string | undefined;
|
|
958
958
|
};
|
|
959
959
|
outputFormat: "json";
|
|
960
|
-
status:
|
|
960
|
+
status: 400;
|
|
961
961
|
} | {
|
|
962
962
|
input: {
|
|
963
963
|
form: {
|
|
@@ -979,7 +979,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
979
979
|
error_description?: string | undefined;
|
|
980
980
|
};
|
|
981
981
|
outputFormat: "json";
|
|
982
|
-
status:
|
|
982
|
+
status: 401;
|
|
983
983
|
};
|
|
984
984
|
};
|
|
985
985
|
}, "/oauth/revoke"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -1027,11 +1027,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1027
1027
|
};
|
|
1028
1028
|
};
|
|
1029
1029
|
output: {
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
device_code: string;
|
|
1031
|
+
user_code: string;
|
|
1032
|
+
verification_uri: string;
|
|
1033
|
+
verification_uri_complete: string;
|
|
1034
|
+
expires_in: number;
|
|
1035
|
+
interval: number;
|
|
1036
|
+
qr_code?: string | undefined;
|
|
1032
1037
|
};
|
|
1033
1038
|
outputFormat: "json";
|
|
1034
|
-
status:
|
|
1039
|
+
status: 200;
|
|
1035
1040
|
} | {
|
|
1036
1041
|
input: {
|
|
1037
1042
|
form: {
|
|
@@ -1051,16 +1056,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1051
1056
|
};
|
|
1052
1057
|
};
|
|
1053
1058
|
output: {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
verification_uri: string;
|
|
1057
|
-
verification_uri_complete: string;
|
|
1058
|
-
expires_in: number;
|
|
1059
|
-
interval: number;
|
|
1060
|
-
qr_code?: string | undefined;
|
|
1059
|
+
error: string;
|
|
1060
|
+
error_description?: string | undefined;
|
|
1061
1061
|
};
|
|
1062
1062
|
outputFormat: "json";
|
|
1063
|
-
status:
|
|
1063
|
+
status: 400;
|
|
1064
1064
|
} | {
|
|
1065
1065
|
input: {
|
|
1066
1066
|
form: {
|
|
@@ -1084,7 +1084,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1084
1084
|
error_description?: string | undefined;
|
|
1085
1085
|
};
|
|
1086
1086
|
outputFormat: "json";
|
|
1087
|
-
status:
|
|
1087
|
+
status: 401;
|
|
1088
1088
|
} | {
|
|
1089
1089
|
input: {
|
|
1090
1090
|
form: {
|
|
@@ -1389,11 +1389,16 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1389
1389
|
};
|
|
1390
1390
|
};
|
|
1391
1391
|
output: {
|
|
1392
|
-
|
|
1393
|
-
|
|
1392
|
+
access_token: string;
|
|
1393
|
+
token_type: string;
|
|
1394
|
+
expires_in: number;
|
|
1395
|
+
id_token?: string | undefined;
|
|
1396
|
+
scope?: string | undefined;
|
|
1397
|
+
state?: string | undefined;
|
|
1398
|
+
refresh_token?: string | undefined;
|
|
1394
1399
|
};
|
|
1395
1400
|
outputFormat: "json";
|
|
1396
|
-
status:
|
|
1401
|
+
status: 200;
|
|
1397
1402
|
} | {
|
|
1398
1403
|
input: {
|
|
1399
1404
|
form: {
|
|
@@ -1531,16 +1536,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1531
1536
|
};
|
|
1532
1537
|
};
|
|
1533
1538
|
output: {
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
expires_in: number;
|
|
1537
|
-
id_token?: string | undefined;
|
|
1538
|
-
scope?: string | undefined;
|
|
1539
|
-
state?: string | undefined;
|
|
1540
|
-
refresh_token?: string | undefined;
|
|
1539
|
+
error: string;
|
|
1540
|
+
error_description?: string | undefined;
|
|
1541
1541
|
};
|
|
1542
1542
|
outputFormat: "json";
|
|
1543
|
-
status:
|
|
1543
|
+
status: 400;
|
|
1544
1544
|
} | {
|
|
1545
1545
|
input: {
|
|
1546
1546
|
form: {
|
|
@@ -1682,7 +1682,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1682
1682
|
error_description?: string | undefined;
|
|
1683
1683
|
};
|
|
1684
1684
|
outputFormat: "json";
|
|
1685
|
-
status:
|
|
1685
|
+
status: 401;
|
|
1686
1686
|
} | {
|
|
1687
1687
|
input: {
|
|
1688
1688
|
form: {
|
|
@@ -14,20 +14,20 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
14
14
|
email: string;
|
|
15
15
|
send: "code" | "link";
|
|
16
16
|
authParams: {
|
|
17
|
-
username?: string | undefined;
|
|
18
17
|
scope?: string | undefined;
|
|
19
18
|
response_type?: AuthorizationResponseType | undefined;
|
|
20
19
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
20
|
+
username?: string | undefined;
|
|
21
21
|
audience?: string | undefined;
|
|
22
|
-
organization?: string | undefined;
|
|
23
|
-
state?: string | undefined;
|
|
24
|
-
redirect_uri?: string | undefined;
|
|
25
22
|
prompt?: string | undefined;
|
|
26
|
-
|
|
23
|
+
state?: string | undefined;
|
|
27
24
|
act_as?: string | undefined;
|
|
25
|
+
redirect_uri?: string | undefined;
|
|
26
|
+
organization?: string | undefined;
|
|
28
27
|
nonce?: string | undefined;
|
|
29
28
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
30
29
|
code_challenge?: string | undefined;
|
|
30
|
+
ui_locales?: string | undefined;
|
|
31
31
|
max_age?: number | undefined;
|
|
32
32
|
acr_values?: string | undefined;
|
|
33
33
|
claims?: {
|
|
@@ -50,20 +50,20 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
50
50
|
phone_number: string;
|
|
51
51
|
send: "code" | "link";
|
|
52
52
|
authParams: {
|
|
53
|
-
username?: string | undefined;
|
|
54
53
|
scope?: string | undefined;
|
|
55
54
|
response_type?: AuthorizationResponseType | undefined;
|
|
56
55
|
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
56
|
+
username?: string | undefined;
|
|
57
57
|
audience?: string | undefined;
|
|
58
|
-
organization?: string | undefined;
|
|
59
|
-
state?: string | undefined;
|
|
60
|
-
redirect_uri?: string | undefined;
|
|
61
58
|
prompt?: string | undefined;
|
|
62
|
-
|
|
59
|
+
state?: string | undefined;
|
|
63
60
|
act_as?: string | undefined;
|
|
61
|
+
redirect_uri?: string | undefined;
|
|
62
|
+
organization?: string | undefined;
|
|
64
63
|
nonce?: string | undefined;
|
|
65
64
|
code_challenge_method?: import("@authhero/adapter-interfaces").CodeChallengeMethod | undefined;
|
|
66
65
|
code_challenge?: string | undefined;
|
|
66
|
+
ui_locales?: string | undefined;
|
|
67
67
|
max_age?: number | undefined;
|
|
68
68
|
acr_values?: string | undefined;
|
|
69
69
|
claims?: {
|
|
@@ -18,7 +18,7 @@ export declare const registerRoutes: OpenAPIHono<{
|
|
|
18
18
|
scope?: string | undefined;
|
|
19
19
|
grant_types?: string[] | undefined;
|
|
20
20
|
response_types?: string[] | undefined;
|
|
21
|
-
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "
|
|
21
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
|
|
22
22
|
jwks_uri?: string | undefined;
|
|
23
23
|
jwks?: Record<string, unknown> | undefined;
|
|
24
24
|
software_id?: string | undefined;
|
|
@@ -107,7 +107,7 @@ export declare const registerRoutes: OpenAPIHono<{
|
|
|
107
107
|
scope?: string | undefined;
|
|
108
108
|
grant_types?: string[] | undefined;
|
|
109
109
|
response_types?: string[] | undefined;
|
|
110
|
-
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "
|
|
110
|
+
token_endpoint_auth_method?: "none" | "client_secret_post" | "client_secret_basic" | "private_key_jwt" | "client_secret_jwt" | undefined;
|
|
111
111
|
jwks_uri?: string | undefined;
|
|
112
112
|
jwks?: Record<string, unknown> | undefined;
|
|
113
113
|
software_id?: string | undefined;
|
|
@@ -45,7 +45,7 @@ export declare const revokeRoutes: OpenAPIHono<{
|
|
|
45
45
|
error_description?: string | undefined;
|
|
46
46
|
};
|
|
47
47
|
outputFormat: "json";
|
|
48
|
-
status:
|
|
48
|
+
status: 400;
|
|
49
49
|
} | {
|
|
50
50
|
input: {
|
|
51
51
|
form: {
|
|
@@ -67,7 +67,7 @@ export declare const revokeRoutes: OpenAPIHono<{
|
|
|
67
67
|
error_description?: string | undefined;
|
|
68
68
|
};
|
|
69
69
|
outputFormat: "json";
|
|
70
|
-
status:
|
|
70
|
+
status: 401;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
}, "/">;
|
|
@@ -281,11 +281,16 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
281
281
|
};
|
|
282
282
|
};
|
|
283
283
|
output: {
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
access_token: string;
|
|
285
|
+
token_type: string;
|
|
286
|
+
expires_in: number;
|
|
287
|
+
id_token?: string | undefined;
|
|
288
|
+
scope?: string | undefined;
|
|
289
|
+
state?: string | undefined;
|
|
290
|
+
refresh_token?: string | undefined;
|
|
286
291
|
};
|
|
287
292
|
outputFormat: "json";
|
|
288
|
-
status:
|
|
293
|
+
status: 200;
|
|
289
294
|
} | {
|
|
290
295
|
input: {
|
|
291
296
|
form: {
|
|
@@ -423,16 +428,11 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
423
428
|
};
|
|
424
429
|
};
|
|
425
430
|
output: {
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
expires_in: number;
|
|
429
|
-
id_token?: string | undefined;
|
|
430
|
-
scope?: string | undefined;
|
|
431
|
-
state?: string | undefined;
|
|
432
|
-
refresh_token?: string | undefined;
|
|
431
|
+
error: string;
|
|
432
|
+
error_description?: string | undefined;
|
|
433
433
|
};
|
|
434
434
|
outputFormat: "json";
|
|
435
|
-
status:
|
|
435
|
+
status: 400;
|
|
436
436
|
} | {
|
|
437
437
|
input: {
|
|
438
438
|
form: {
|
|
@@ -574,7 +574,7 @@ export declare const tokenRoutes: OpenAPIHono<{
|
|
|
574
574
|
error_description?: string | undefined;
|
|
575
575
|
};
|
|
576
576
|
outputFormat: "json";
|
|
577
|
-
status:
|
|
577
|
+
status: 401;
|
|
578
578
|
} | {
|
|
579
579
|
input: {
|
|
580
580
|
form: {
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { z } from "@hono/zod-openapi";
|
|
2
|
+
export declare const actionGenerationRoutes: readonly [import("@hono/zod-openapi").OpenAPIRoute<{
|
|
3
|
+
tags: string[];
|
|
4
|
+
method: "get";
|
|
5
|
+
path: "/generation";
|
|
6
|
+
security: {
|
|
7
|
+
Bearer: string[];
|
|
8
|
+
}[];
|
|
9
|
+
request: {
|
|
10
|
+
headers: z.ZodObject<{
|
|
11
|
+
"tenant-id": z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
};
|
|
14
|
+
responses: {
|
|
15
|
+
200: {
|
|
16
|
+
description: string;
|
|
17
|
+
content: {
|
|
18
|
+
"application/json": {
|
|
19
|
+
schema: z.ZodObject<{
|
|
20
|
+
models: z.ZodArray<z.ZodEnum<{
|
|
21
|
+
glm: "glm";
|
|
22
|
+
deepseek: "deepseek";
|
|
23
|
+
qwen: "qwen";
|
|
24
|
+
}>>;
|
|
25
|
+
verification_required: z.ZodBoolean;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
} & {
|
|
32
|
+
getRoutingPath(): "/generation";
|
|
33
|
+
}, {
|
|
34
|
+
Bindings: import("../../types").Bindings;
|
|
35
|
+
Variables: import("../../types").Variables;
|
|
36
|
+
}, undefined>, import("@hono/zod-openapi").OpenAPIRoute<{
|
|
37
|
+
tags: string[];
|
|
38
|
+
method: "post";
|
|
39
|
+
path: "/generate";
|
|
40
|
+
security: {
|
|
41
|
+
Bearer: string[];
|
|
42
|
+
}[];
|
|
43
|
+
request: {
|
|
44
|
+
headers: z.ZodObject<{
|
|
45
|
+
"tenant-id": z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
body: {
|
|
48
|
+
content: {
|
|
49
|
+
"application/json": {
|
|
50
|
+
schema: z.ZodObject<{
|
|
51
|
+
prompt: z.ZodString;
|
|
52
|
+
model: z.ZodEnum<{
|
|
53
|
+
glm: "glm";
|
|
54
|
+
deepseek: "deepseek";
|
|
55
|
+
qwen: "qwen";
|
|
56
|
+
}>;
|
|
57
|
+
trigger_id: z.ZodString;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
responses: {
|
|
64
|
+
200: {
|
|
65
|
+
description: string;
|
|
66
|
+
content: {
|
|
67
|
+
"application/json": {
|
|
68
|
+
schema: z.ZodObject<{
|
|
69
|
+
code: z.ZodString;
|
|
70
|
+
verification: z.ZodObject<{
|
|
71
|
+
valid: z.ZodBoolean;
|
|
72
|
+
errors: z.ZodArray<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
400: {
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
502: {
|
|
82
|
+
description: string;
|
|
83
|
+
};
|
|
84
|
+
503: {
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
} & {
|
|
89
|
+
getRoutingPath(): "/generate";
|
|
90
|
+
}, {
|
|
91
|
+
Bindings: import("../../types").Bindings;
|
|
92
|
+
Variables: import("../../types").Variables;
|
|
93
|
+
}, undefined>, import("@hono/zod-openapi").OpenAPIRoute<{
|
|
94
|
+
tags: string[];
|
|
95
|
+
method: "post";
|
|
96
|
+
path: "/verify";
|
|
97
|
+
security: {
|
|
98
|
+
Bearer: string[];
|
|
99
|
+
}[];
|
|
100
|
+
request: {
|
|
101
|
+
headers: z.ZodObject<{
|
|
102
|
+
"tenant-id": z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
body: {
|
|
105
|
+
content: {
|
|
106
|
+
"application/json": {
|
|
107
|
+
schema: z.ZodObject<{
|
|
108
|
+
code: z.ZodString;
|
|
109
|
+
supported_triggers: z.ZodArray<z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
responses: {
|
|
118
|
+
200: {
|
|
119
|
+
description: string;
|
|
120
|
+
content: {
|
|
121
|
+
"application/json": {
|
|
122
|
+
schema: z.ZodObject<{
|
|
123
|
+
valid: z.ZodBoolean;
|
|
124
|
+
errors: z.ZodArray<z.ZodString>;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
} & {
|
|
131
|
+
getRoutingPath(): "/verify";
|
|
132
|
+
}, {
|
|
133
|
+
Bindings: import("../../types").Bindings;
|
|
134
|
+
Variables: import("../../types").Variables;
|
|
135
|
+
}, undefined>];
|