authhero 0.7.0 → 0.9.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/authhero.cjs +18 -14
- package/dist/authhero.d.ts +97 -0
- package/dist/authhero.iife.js +18 -14
- package/dist/authhero.mjs +5625 -5245
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -1486,6 +1486,7 @@ declare const loginInsertSchema: z.ZodObject<{
|
|
|
1486
1486
|
authParams: z.ZodObject<{
|
|
1487
1487
|
client_id: z.ZodString;
|
|
1488
1488
|
vendor_id: z.ZodOptional<z.ZodString>;
|
|
1489
|
+
act_as: z.ZodOptional<z.ZodString>;
|
|
1489
1490
|
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
1490
1491
|
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
1491
1492
|
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
@@ -1503,6 +1504,7 @@ declare const loginInsertSchema: z.ZodObject<{
|
|
|
1503
1504
|
username?: string | undefined;
|
|
1504
1505
|
audience?: string | undefined;
|
|
1505
1506
|
vendor_id?: string | undefined;
|
|
1507
|
+
act_as?: string | undefined;
|
|
1506
1508
|
response_type?: AuthorizationResponseType | undefined;
|
|
1507
1509
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1508
1510
|
redirect_uri?: string | undefined;
|
|
@@ -1518,6 +1520,7 @@ declare const loginInsertSchema: z.ZodObject<{
|
|
|
1518
1520
|
username?: string | undefined;
|
|
1519
1521
|
audience?: string | undefined;
|
|
1520
1522
|
vendor_id?: string | undefined;
|
|
1523
|
+
act_as?: string | undefined;
|
|
1521
1524
|
response_type?: AuthorizationResponseType | undefined;
|
|
1522
1525
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1523
1526
|
redirect_uri?: string | undefined;
|
|
@@ -1539,6 +1542,7 @@ declare const loginInsertSchema: z.ZodObject<{
|
|
|
1539
1542
|
username?: string | undefined;
|
|
1540
1543
|
audience?: string | undefined;
|
|
1541
1544
|
vendor_id?: string | undefined;
|
|
1545
|
+
act_as?: string | undefined;
|
|
1542
1546
|
response_type?: AuthorizationResponseType | undefined;
|
|
1543
1547
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1544
1548
|
redirect_uri?: string | undefined;
|
|
@@ -1560,6 +1564,7 @@ declare const loginInsertSchema: z.ZodObject<{
|
|
|
1560
1564
|
username?: string | undefined;
|
|
1561
1565
|
audience?: string | undefined;
|
|
1562
1566
|
vendor_id?: string | undefined;
|
|
1567
|
+
act_as?: string | undefined;
|
|
1563
1568
|
response_type?: AuthorizationResponseType | undefined;
|
|
1564
1569
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1565
1570
|
redirect_uri?: string | undefined;
|
|
@@ -1584,6 +1589,7 @@ declare const loginSchema: z.ZodObject<{
|
|
|
1584
1589
|
authParams: z.ZodObject<{
|
|
1585
1590
|
client_id: z.ZodString;
|
|
1586
1591
|
vendor_id: z.ZodOptional<z.ZodString>;
|
|
1592
|
+
act_as: z.ZodOptional<z.ZodString>;
|
|
1587
1593
|
response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
|
|
1588
1594
|
response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
|
|
1589
1595
|
redirect_uri: z.ZodOptional<z.ZodString>;
|
|
@@ -1601,6 +1607,7 @@ declare const loginSchema: z.ZodObject<{
|
|
|
1601
1607
|
username?: string | undefined;
|
|
1602
1608
|
audience?: string | undefined;
|
|
1603
1609
|
vendor_id?: string | undefined;
|
|
1610
|
+
act_as?: string | undefined;
|
|
1604
1611
|
response_type?: AuthorizationResponseType | undefined;
|
|
1605
1612
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1606
1613
|
redirect_uri?: string | undefined;
|
|
@@ -1616,6 +1623,7 @@ declare const loginSchema: z.ZodObject<{
|
|
|
1616
1623
|
username?: string | undefined;
|
|
1617
1624
|
audience?: string | undefined;
|
|
1618
1625
|
vendor_id?: string | undefined;
|
|
1626
|
+
act_as?: string | undefined;
|
|
1619
1627
|
response_type?: AuthorizationResponseType | undefined;
|
|
1620
1628
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1621
1629
|
redirect_uri?: string | undefined;
|
|
@@ -1640,6 +1648,7 @@ declare const loginSchema: z.ZodObject<{
|
|
|
1640
1648
|
username?: string | undefined;
|
|
1641
1649
|
audience?: string | undefined;
|
|
1642
1650
|
vendor_id?: string | undefined;
|
|
1651
|
+
act_as?: string | undefined;
|
|
1643
1652
|
response_type?: AuthorizationResponseType | undefined;
|
|
1644
1653
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1645
1654
|
redirect_uri?: string | undefined;
|
|
@@ -1664,6 +1673,7 @@ declare const loginSchema: z.ZodObject<{
|
|
|
1664
1673
|
username?: string | undefined;
|
|
1665
1674
|
audience?: string | undefined;
|
|
1666
1675
|
vendor_id?: string | undefined;
|
|
1676
|
+
act_as?: string | undefined;
|
|
1667
1677
|
response_type?: AuthorizationResponseType | undefined;
|
|
1668
1678
|
response_mode?: AuthorizationResponseMode | undefined;
|
|
1669
1679
|
redirect_uri?: string | undefined;
|
|
@@ -2997,6 +3007,7 @@ export type Bindings = {
|
|
|
2997
3007
|
JWKS_SERVICE: Fetcher;
|
|
2998
3008
|
data: DataAdapters;
|
|
2999
3009
|
JWKS_CACHE_TIMEOUT_IN_SECONDS: number;
|
|
3010
|
+
ORGANIZATION_NAME: string;
|
|
3000
3011
|
};
|
|
3001
3012
|
export interface AuthHeroConfig {
|
|
3002
3013
|
dataAdapter: DataAdapters;
|
|
@@ -4047,6 +4058,92 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4047
4058
|
};
|
|
4048
4059
|
};
|
|
4049
4060
|
}, "/api/v2/users-by-email"> & import("hono/types").MergeSchemaPath<{
|
|
4061
|
+
"/signing": {
|
|
4062
|
+
$get: {
|
|
4063
|
+
input: {
|
|
4064
|
+
header: {
|
|
4065
|
+
"tenant-id": string;
|
|
4066
|
+
};
|
|
4067
|
+
};
|
|
4068
|
+
output: {
|
|
4069
|
+
kid: string;
|
|
4070
|
+
cert: string;
|
|
4071
|
+
fingerprint: string;
|
|
4072
|
+
thumbprint: string;
|
|
4073
|
+
pkcs7?: string | undefined;
|
|
4074
|
+
current?: boolean | undefined;
|
|
4075
|
+
next?: boolean | undefined;
|
|
4076
|
+
previous?: boolean | undefined;
|
|
4077
|
+
current_since?: string | undefined;
|
|
4078
|
+
current_until?: string | undefined;
|
|
4079
|
+
revoked?: boolean | undefined;
|
|
4080
|
+
revoked_at?: string | undefined;
|
|
4081
|
+
}[];
|
|
4082
|
+
outputFormat: "json" | "text";
|
|
4083
|
+
status: 200;
|
|
4084
|
+
};
|
|
4085
|
+
};
|
|
4086
|
+
} & {
|
|
4087
|
+
"/signing/:kid": {
|
|
4088
|
+
$get: {
|
|
4089
|
+
input: {
|
|
4090
|
+
param: {
|
|
4091
|
+
kid: string;
|
|
4092
|
+
};
|
|
4093
|
+
} & {
|
|
4094
|
+
header: {
|
|
4095
|
+
"tenant-id": string;
|
|
4096
|
+
};
|
|
4097
|
+
};
|
|
4098
|
+
output: {
|
|
4099
|
+
kid: string;
|
|
4100
|
+
cert: string;
|
|
4101
|
+
fingerprint: string;
|
|
4102
|
+
thumbprint: string;
|
|
4103
|
+
pkcs7?: string | undefined;
|
|
4104
|
+
current?: boolean | undefined;
|
|
4105
|
+
next?: boolean | undefined;
|
|
4106
|
+
previous?: boolean | undefined;
|
|
4107
|
+
current_since?: string | undefined;
|
|
4108
|
+
current_until?: string | undefined;
|
|
4109
|
+
revoked?: boolean | undefined;
|
|
4110
|
+
revoked_at?: string | undefined;
|
|
4111
|
+
};
|
|
4112
|
+
outputFormat: "json" | "text";
|
|
4113
|
+
status: 200;
|
|
4114
|
+
};
|
|
4115
|
+
};
|
|
4116
|
+
} & {
|
|
4117
|
+
"/signing/rotate": {
|
|
4118
|
+
$post: {
|
|
4119
|
+
input: {
|
|
4120
|
+
header: {
|
|
4121
|
+
"tenant-id": string;
|
|
4122
|
+
};
|
|
4123
|
+
};
|
|
4124
|
+
output: {};
|
|
4125
|
+
outputFormat: string;
|
|
4126
|
+
status: 201;
|
|
4127
|
+
};
|
|
4128
|
+
};
|
|
4129
|
+
} & {
|
|
4130
|
+
"/signing/:kid/revoke": {
|
|
4131
|
+
$put: {
|
|
4132
|
+
input: {
|
|
4133
|
+
param: {
|
|
4134
|
+
kid: string;
|
|
4135
|
+
};
|
|
4136
|
+
} & {
|
|
4137
|
+
header: {
|
|
4138
|
+
"tenant-id": string;
|
|
4139
|
+
};
|
|
4140
|
+
};
|
|
4141
|
+
output: {};
|
|
4142
|
+
outputFormat: string;
|
|
4143
|
+
status: 201;
|
|
4144
|
+
};
|
|
4145
|
+
};
|
|
4146
|
+
}, "/api/v2/keys"> & import("hono/types").MergeSchemaPath<{
|
|
4050
4147
|
"/": {
|
|
4051
4148
|
$get: {
|
|
4052
4149
|
input: {
|