authhero 0.193.0 → 0.194.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 +36 -36
- package/dist/authhero.d.ts +77 -0
- package/dist/authhero.mjs +3187 -3105
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -14720,6 +14720,17 @@ export interface RolesAdapter {
|
|
|
14720
14720
|
update(tenantId: string, roleId: string, updates: Partial<Role>): Promise<boolean>;
|
|
14721
14721
|
remove(tenantId: string, roleId: string): Promise<boolean>;
|
|
14722
14722
|
}
|
|
14723
|
+
export interface ListUserRolesResponse {
|
|
14724
|
+
roles: Role[];
|
|
14725
|
+
start: number;
|
|
14726
|
+
limit: number;
|
|
14727
|
+
length: number;
|
|
14728
|
+
}
|
|
14729
|
+
export interface UserRolesAdapter {
|
|
14730
|
+
list(tenantId: string, userId: string, params?: ListParams): Promise<Role[]>;
|
|
14731
|
+
assign(tenantId: string, userId: string, roles: string[]): Promise<boolean>;
|
|
14732
|
+
remove(tenantId: string, userId: string, roles: string[]): Promise<boolean>;
|
|
14733
|
+
}
|
|
14723
14734
|
export interface DataAdapters {
|
|
14724
14735
|
applications: ApplicationsAdapter;
|
|
14725
14736
|
branding: BrandingAdapter;
|
|
@@ -14744,6 +14755,7 @@ export interface DataAdapters {
|
|
|
14744
14755
|
tenants: TenantsDataAdapter;
|
|
14745
14756
|
themes: ThemesAdapter;
|
|
14746
14757
|
users: UserDataAdapter;
|
|
14758
|
+
userRoles: UserRolesAdapter;
|
|
14747
14759
|
}
|
|
14748
14760
|
declare const auth0ClientSchema: z.ZodObject<{
|
|
14749
14761
|
name: z.ZodString;
|
|
@@ -18594,6 +18606,71 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
18594
18606
|
status: 200;
|
|
18595
18607
|
};
|
|
18596
18608
|
};
|
|
18609
|
+
} & {
|
|
18610
|
+
"/:user_id/roles": {
|
|
18611
|
+
$get: {
|
|
18612
|
+
input: {
|
|
18613
|
+
param: {
|
|
18614
|
+
user_id: string;
|
|
18615
|
+
};
|
|
18616
|
+
} & {
|
|
18617
|
+
header: {
|
|
18618
|
+
"tenant-id": string;
|
|
18619
|
+
};
|
|
18620
|
+
};
|
|
18621
|
+
output: {
|
|
18622
|
+
name: string;
|
|
18623
|
+
id: string;
|
|
18624
|
+
description?: string | undefined | undefined;
|
|
18625
|
+
created_at?: string | undefined | undefined;
|
|
18626
|
+
updated_at?: string | undefined | undefined;
|
|
18627
|
+
}[];
|
|
18628
|
+
outputFormat: "json";
|
|
18629
|
+
status: 200;
|
|
18630
|
+
};
|
|
18631
|
+
};
|
|
18632
|
+
} & {
|
|
18633
|
+
"/:user_id/roles": {
|
|
18634
|
+
$post: {
|
|
18635
|
+
input: {
|
|
18636
|
+
param: {
|
|
18637
|
+
user_id: string;
|
|
18638
|
+
};
|
|
18639
|
+
} & {
|
|
18640
|
+
header: {
|
|
18641
|
+
"tenant-id": string;
|
|
18642
|
+
};
|
|
18643
|
+
} & {
|
|
18644
|
+
json: {
|
|
18645
|
+
roles: string[];
|
|
18646
|
+
};
|
|
18647
|
+
};
|
|
18648
|
+
output: {};
|
|
18649
|
+
outputFormat: string;
|
|
18650
|
+
status: 201;
|
|
18651
|
+
};
|
|
18652
|
+
};
|
|
18653
|
+
} & {
|
|
18654
|
+
"/:user_id/roles": {
|
|
18655
|
+
$delete: {
|
|
18656
|
+
input: {
|
|
18657
|
+
param: {
|
|
18658
|
+
user_id: string;
|
|
18659
|
+
};
|
|
18660
|
+
} & {
|
|
18661
|
+
header: {
|
|
18662
|
+
"tenant-id": string;
|
|
18663
|
+
};
|
|
18664
|
+
} & {
|
|
18665
|
+
json: {
|
|
18666
|
+
roles: string[];
|
|
18667
|
+
};
|
|
18668
|
+
};
|
|
18669
|
+
output: {};
|
|
18670
|
+
outputFormat: string;
|
|
18671
|
+
status: 200;
|
|
18672
|
+
};
|
|
18673
|
+
};
|
|
18597
18674
|
}, "/users"> & import("hono/types").MergeSchemaPath<{
|
|
18598
18675
|
"/": {
|
|
18599
18676
|
$get: {
|