authhero 9.27.1 → 9.28.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/assets/u/js/client.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +266 -119
- package/dist/authhero.d.ts +615 -404
- package/dist/authhero.mjs +19686 -16165
- package/dist/client.js +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/connection.d.ts +2 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/authentication-flows/universal.d.ts +4 -1
- package/dist/types/client/client-bundle.d.ts +1 -1
- 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/logging.d.ts +7 -0
- package/dist/types/helpers/reserved-claims.d.ts +2 -2
- package/dist/types/index.d.ts +607 -403
- package/dist/types/routes/auth-api/device.d.ts +12 -12
- package/dist/types/routes/auth-api/index.d.ts +47 -47
- package/dist/types/routes/auth-api/oidc-logout.d.ts +3 -3
- package/dist/types/routes/auth-api/passwordless.d.ts +12 -12
- 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/action-triggers.d.ts +2 -2
- package/dist/types/routes/management-api/actions.d.ts +205 -1
- package/dist/types/routes/management-api/authentication-methods.d.ts +1 -1
- package/dist/types/routes/management-api/branding.d.ts +2 -2
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/failed-events.d.ts +4 -4
- 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 +563 -359
- package/dist/types/routes/management-api/keys.d.ts +8 -8
- package/dist/types/routes/management-api/log-streams.d.ts +6 -6
- 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 +10 -10
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/roles.d.ts +7 -7
- package/dist/types/routes/management-api/rollouts.d.ts +6 -6
- package/dist/types/routes/management-api/tenant-operations.d.ts +10 -10
- package/dist/types/routes/management-api/tenants.d.ts +12 -12
- package/dist/types/routes/management-api/users.d.ts +29 -29
- package/dist/types/routes/saml/index.d.ts +6 -6
- package/dist/types/routes/saml/samlp.d.ts +6 -6
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/routes/universal-login/identifier.d.ts +2 -2
- package/dist/types/routes/universal-login/impersonate.d.ts +2 -2
- package/dist/types/routes/universal-login/index.d.ts +4 -4
- 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 +3 -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/dist/types/utils/cookies.d.ts +50 -9
- package/package.json +7 -6
|
@@ -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: {
|
|
@@ -743,18 +743,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
743
743
|
authParams: {
|
|
744
744
|
username?: string | undefined;
|
|
745
745
|
scope?: string | undefined;
|
|
746
|
-
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
747
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
748
|
-
audience?: string | undefined;
|
|
749
|
-
organization?: string | undefined;
|
|
750
746
|
state?: string | undefined;
|
|
747
|
+
audience?: string | undefined;
|
|
751
748
|
redirect_uri?: string | undefined;
|
|
752
|
-
prompt?: string | undefined;
|
|
753
|
-
ui_locales?: string | undefined;
|
|
754
749
|
act_as?: string | undefined;
|
|
750
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
751
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
752
|
+
organization?: string | undefined;
|
|
755
753
|
nonce?: string | undefined;
|
|
754
|
+
prompt?: 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?: {
|
|
@@ -779,18 +779,18 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
779
779
|
authParams: {
|
|
780
780
|
username?: string | undefined;
|
|
781
781
|
scope?: string | undefined;
|
|
782
|
-
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
783
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
784
|
-
audience?: string | undefined;
|
|
785
|
-
organization?: string | undefined;
|
|
786
782
|
state?: string | undefined;
|
|
783
|
+
audience?: string | undefined;
|
|
787
784
|
redirect_uri?: string | undefined;
|
|
788
|
-
prompt?: string | undefined;
|
|
789
|
-
ui_locales?: string | undefined;
|
|
790
785
|
act_as?: string | undefined;
|
|
786
|
+
response_type?: import("@authhero/adapter-interfaces").AuthorizationResponseType | undefined;
|
|
787
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
788
|
+
organization?: string | undefined;
|
|
791
789
|
nonce?: string | undefined;
|
|
790
|
+
prompt?: 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?: {
|
|
@@ -921,14 +921,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
921
921
|
input: {
|
|
922
922
|
form: {
|
|
923
923
|
token: string;
|
|
924
|
-
token_type_hint?: "
|
|
924
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
925
925
|
client_id?: string | undefined;
|
|
926
926
|
client_secret?: string | undefined;
|
|
927
927
|
};
|
|
928
928
|
} & {
|
|
929
929
|
json: {
|
|
930
930
|
token: string;
|
|
931
|
-
token_type_hint?: "
|
|
931
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
932
932
|
client_id?: string | undefined;
|
|
933
933
|
client_secret?: string | undefined;
|
|
934
934
|
};
|
|
@@ -940,14 +940,14 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
940
940
|
input: {
|
|
941
941
|
form: {
|
|
942
942
|
token: string;
|
|
943
|
-
token_type_hint?: "
|
|
943
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
944
944
|
client_id?: string | undefined;
|
|
945
945
|
client_secret?: string | undefined;
|
|
946
946
|
};
|
|
947
947
|
} & {
|
|
948
948
|
json: {
|
|
949
949
|
token: string;
|
|
950
|
-
token_type_hint?: "
|
|
950
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
951
951
|
client_id?: string | undefined;
|
|
952
952
|
client_secret?: string | undefined;
|
|
953
953
|
};
|
|
@@ -957,19 +957,19 @@ 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: {
|
|
964
964
|
token: string;
|
|
965
|
-
token_type_hint?: "
|
|
965
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
966
966
|
client_id?: string | undefined;
|
|
967
967
|
client_secret?: string | undefined;
|
|
968
968
|
};
|
|
969
969
|
} & {
|
|
970
970
|
json: {
|
|
971
971
|
token: string;
|
|
972
|
-
token_type_hint?: "
|
|
972
|
+
token_type_hint?: "refresh_token" | "access_token" | undefined;
|
|
973
973
|
client_id?: string | undefined;
|
|
974
974
|
client_secret?: string | undefined;
|
|
975
975
|
};
|
|
@@ -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: {
|
|
@@ -2030,7 +2030,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
2030
2030
|
};
|
|
2031
2031
|
output: {};
|
|
2032
2032
|
outputFormat: string;
|
|
2033
|
-
status:
|
|
2033
|
+
status: 302;
|
|
2034
2034
|
} | {
|
|
2035
2035
|
input: {
|
|
2036
2036
|
query: {
|
|
@@ -2044,7 +2044,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
2044
2044
|
};
|
|
2045
2045
|
output: {};
|
|
2046
2046
|
outputFormat: string;
|
|
2047
|
-
status:
|
|
2047
|
+
status: 400;
|
|
2048
2048
|
} | {
|
|
2049
2049
|
input: {
|
|
2050
2050
|
query: {
|
|
@@ -2058,7 +2058,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
2058
2058
|
};
|
|
2059
2059
|
output: {};
|
|
2060
2060
|
outputFormat: string;
|
|
2061
|
-
status:
|
|
2061
|
+
status: 200;
|
|
2062
2062
|
};
|
|
2063
2063
|
};
|
|
2064
2064
|
}, "/oidc/logout"> & import("hono/types").MergeSchemaPath<{
|
|
@@ -18,7 +18,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
|
|
|
18
18
|
};
|
|
19
19
|
output: {};
|
|
20
20
|
outputFormat: string;
|
|
21
|
-
status:
|
|
21
|
+
status: 302;
|
|
22
22
|
} | {
|
|
23
23
|
input: {
|
|
24
24
|
query: {
|
|
@@ -32,7 +32,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
|
|
|
32
32
|
};
|
|
33
33
|
output: {};
|
|
34
34
|
outputFormat: string;
|
|
35
|
-
status:
|
|
35
|
+
status: 400;
|
|
36
36
|
} | {
|
|
37
37
|
input: {
|
|
38
38
|
query: {
|
|
@@ -46,7 +46,7 @@ export declare const oidcLogoutRoutes: OpenAPIHono<{
|
|
|
46
46
|
};
|
|
47
47
|
output: {};
|
|
48
48
|
outputFormat: string;
|
|
49
|
-
status:
|
|
49
|
+
status: 200;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
}, "/">;
|
|
@@ -16,18 +16,18 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
16
16
|
authParams: {
|
|
17
17
|
username?: string | undefined;
|
|
18
18
|
scope?: string | undefined;
|
|
19
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
20
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
21
|
-
audience?: string | undefined;
|
|
22
|
-
organization?: string | undefined;
|
|
23
19
|
state?: string | undefined;
|
|
20
|
+
audience?: string | undefined;
|
|
24
21
|
redirect_uri?: string | undefined;
|
|
25
|
-
prompt?: string | undefined;
|
|
26
|
-
ui_locales?: string | undefined;
|
|
27
22
|
act_as?: string | undefined;
|
|
23
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
24
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
25
|
+
organization?: string | undefined;
|
|
28
26
|
nonce?: string | undefined;
|
|
27
|
+
prompt?: 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?: {
|
|
@@ -52,18 +52,18 @@ export declare const passwordlessRoutes: OpenAPIHono<{
|
|
|
52
52
|
authParams: {
|
|
53
53
|
username?: string | undefined;
|
|
54
54
|
scope?: string | undefined;
|
|
55
|
-
response_type?: AuthorizationResponseType | undefined;
|
|
56
|
-
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
57
|
-
audience?: string | undefined;
|
|
58
|
-
organization?: string | undefined;
|
|
59
55
|
state?: string | undefined;
|
|
56
|
+
audience?: string | undefined;
|
|
60
57
|
redirect_uri?: string | undefined;
|
|
61
|
-
prompt?: string | undefined;
|
|
62
|
-
ui_locales?: string | undefined;
|
|
63
58
|
act_as?: string | undefined;
|
|
59
|
+
response_type?: AuthorizationResponseType | undefined;
|
|
60
|
+
response_mode?: import("@authhero/adapter-interfaces").AuthorizationResponseMode | undefined;
|
|
61
|
+
organization?: string | undefined;
|
|
64
62
|
nonce?: string | undefined;
|
|
63
|
+
prompt?: 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?: {
|
|
@@ -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>];
|
|
@@ -70,7 +70,7 @@ export declare const actionTriggersRoutes: OpenAPIHono<{
|
|
|
70
70
|
json: {
|
|
71
71
|
bindings: {
|
|
72
72
|
ref: {
|
|
73
|
-
type?: "
|
|
73
|
+
type?: "action_name" | "action_id" | undefined;
|
|
74
74
|
value?: string | undefined;
|
|
75
75
|
id?: string | undefined;
|
|
76
76
|
name?: string | undefined;
|
|
@@ -95,7 +95,7 @@ export declare const actionTriggersRoutes: OpenAPIHono<{
|
|
|
95
95
|
json: {
|
|
96
96
|
bindings: {
|
|
97
97
|
ref: {
|
|
98
|
-
type?: "
|
|
98
|
+
type?: "action_name" | "action_id" | undefined;
|
|
99
99
|
value?: string | undefined;
|
|
100
100
|
id?: string | undefined;
|
|
101
101
|
name?: string | undefined;
|