authhero 0.206.0 → 0.208.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 +49 -49
- package/dist/authhero.d.ts +827 -0
- package/dist/authhero.mjs +7025 -6523
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -14539,6 +14539,361 @@ export declare const roleListSchema: z.ZodArray<z.ZodObject<{
|
|
|
14539
14539
|
updated_at?: string | undefined;
|
|
14540
14540
|
}>, "many">;
|
|
14541
14541
|
export type RoleList = z.infer<typeof roleListSchema>;
|
|
14542
|
+
export declare const organizationBrandingSchema: z.ZodOptional<z.ZodObject<{
|
|
14543
|
+
logo_url: z.ZodOptional<z.ZodString>;
|
|
14544
|
+
colors: z.ZodOptional<z.ZodObject<{
|
|
14545
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
14546
|
+
page_background: z.ZodOptional<z.ZodString>;
|
|
14547
|
+
}, "strip", z.ZodTypeAny, {
|
|
14548
|
+
primary?: string | undefined;
|
|
14549
|
+
page_background?: string | undefined;
|
|
14550
|
+
}, {
|
|
14551
|
+
primary?: string | undefined;
|
|
14552
|
+
page_background?: string | undefined;
|
|
14553
|
+
}>>;
|
|
14554
|
+
}, "strip", z.ZodTypeAny, {
|
|
14555
|
+
colors?: {
|
|
14556
|
+
primary?: string | undefined;
|
|
14557
|
+
page_background?: string | undefined;
|
|
14558
|
+
} | undefined;
|
|
14559
|
+
logo_url?: string | undefined;
|
|
14560
|
+
}, {
|
|
14561
|
+
colors?: {
|
|
14562
|
+
primary?: string | undefined;
|
|
14563
|
+
page_background?: string | undefined;
|
|
14564
|
+
} | undefined;
|
|
14565
|
+
logo_url?: string | undefined;
|
|
14566
|
+
}>>;
|
|
14567
|
+
export declare const organizationEnabledConnectionSchema: z.ZodObject<{
|
|
14568
|
+
connection_id: z.ZodString;
|
|
14569
|
+
assign_membership_on_login: z.ZodDefault<z.ZodBoolean>;
|
|
14570
|
+
show_as_button: z.ZodDefault<z.ZodBoolean>;
|
|
14571
|
+
is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
14572
|
+
}, "strip", z.ZodTypeAny, {
|
|
14573
|
+
connection_id: string;
|
|
14574
|
+
assign_membership_on_login: boolean;
|
|
14575
|
+
show_as_button: boolean;
|
|
14576
|
+
is_signup_enabled: boolean;
|
|
14577
|
+
}, {
|
|
14578
|
+
connection_id: string;
|
|
14579
|
+
assign_membership_on_login?: boolean | undefined;
|
|
14580
|
+
show_as_button?: boolean | undefined;
|
|
14581
|
+
is_signup_enabled?: boolean | undefined;
|
|
14582
|
+
}>;
|
|
14583
|
+
export declare const organizationTokenQuotaSchema: z.ZodOptional<z.ZodObject<{
|
|
14584
|
+
client_credentials: z.ZodOptional<z.ZodObject<{
|
|
14585
|
+
enforce: z.ZodDefault<z.ZodBoolean>;
|
|
14586
|
+
per_day: z.ZodDefault<z.ZodNumber>;
|
|
14587
|
+
per_hour: z.ZodDefault<z.ZodNumber>;
|
|
14588
|
+
}, "strip", z.ZodTypeAny, {
|
|
14589
|
+
enforce: boolean;
|
|
14590
|
+
per_day: number;
|
|
14591
|
+
per_hour: number;
|
|
14592
|
+
}, {
|
|
14593
|
+
enforce?: boolean | undefined;
|
|
14594
|
+
per_day?: number | undefined;
|
|
14595
|
+
per_hour?: number | undefined;
|
|
14596
|
+
}>>;
|
|
14597
|
+
}, "strip", z.ZodTypeAny, {
|
|
14598
|
+
client_credentials?: {
|
|
14599
|
+
enforce: boolean;
|
|
14600
|
+
per_day: number;
|
|
14601
|
+
per_hour: number;
|
|
14602
|
+
} | undefined;
|
|
14603
|
+
}, {
|
|
14604
|
+
client_credentials?: {
|
|
14605
|
+
enforce?: boolean | undefined;
|
|
14606
|
+
per_day?: number | undefined;
|
|
14607
|
+
per_hour?: number | undefined;
|
|
14608
|
+
} | undefined;
|
|
14609
|
+
}>>;
|
|
14610
|
+
export declare const organizationInsertSchema: z.ZodObject<{
|
|
14611
|
+
id: z.ZodOptional<z.ZodString>;
|
|
14612
|
+
name: z.ZodString;
|
|
14613
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
14614
|
+
branding: z.ZodOptional<z.ZodObject<{
|
|
14615
|
+
logo_url: z.ZodOptional<z.ZodString>;
|
|
14616
|
+
colors: z.ZodOptional<z.ZodObject<{
|
|
14617
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
14618
|
+
page_background: z.ZodOptional<z.ZodString>;
|
|
14619
|
+
}, "strip", z.ZodTypeAny, {
|
|
14620
|
+
primary?: string | undefined;
|
|
14621
|
+
page_background?: string | undefined;
|
|
14622
|
+
}, {
|
|
14623
|
+
primary?: string | undefined;
|
|
14624
|
+
page_background?: string | undefined;
|
|
14625
|
+
}>>;
|
|
14626
|
+
}, "strip", z.ZodTypeAny, {
|
|
14627
|
+
colors?: {
|
|
14628
|
+
primary?: string | undefined;
|
|
14629
|
+
page_background?: string | undefined;
|
|
14630
|
+
} | undefined;
|
|
14631
|
+
logo_url?: string | undefined;
|
|
14632
|
+
}, {
|
|
14633
|
+
colors?: {
|
|
14634
|
+
primary?: string | undefined;
|
|
14635
|
+
page_background?: string | undefined;
|
|
14636
|
+
} | undefined;
|
|
14637
|
+
logo_url?: string | undefined;
|
|
14638
|
+
}>>;
|
|
14639
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
14640
|
+
enabled_connections: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
14641
|
+
connection_id: z.ZodString;
|
|
14642
|
+
assign_membership_on_login: z.ZodDefault<z.ZodBoolean>;
|
|
14643
|
+
show_as_button: z.ZodDefault<z.ZodBoolean>;
|
|
14644
|
+
is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
14645
|
+
}, "strip", z.ZodTypeAny, {
|
|
14646
|
+
connection_id: string;
|
|
14647
|
+
assign_membership_on_login: boolean;
|
|
14648
|
+
show_as_button: boolean;
|
|
14649
|
+
is_signup_enabled: boolean;
|
|
14650
|
+
}, {
|
|
14651
|
+
connection_id: string;
|
|
14652
|
+
assign_membership_on_login?: boolean | undefined;
|
|
14653
|
+
show_as_button?: boolean | undefined;
|
|
14654
|
+
is_signup_enabled?: boolean | undefined;
|
|
14655
|
+
}>, "many">>>;
|
|
14656
|
+
token_quota: z.ZodOptional<z.ZodObject<{
|
|
14657
|
+
client_credentials: z.ZodOptional<z.ZodObject<{
|
|
14658
|
+
enforce: z.ZodDefault<z.ZodBoolean>;
|
|
14659
|
+
per_day: z.ZodDefault<z.ZodNumber>;
|
|
14660
|
+
per_hour: z.ZodDefault<z.ZodNumber>;
|
|
14661
|
+
}, "strip", z.ZodTypeAny, {
|
|
14662
|
+
enforce: boolean;
|
|
14663
|
+
per_day: number;
|
|
14664
|
+
per_hour: number;
|
|
14665
|
+
}, {
|
|
14666
|
+
enforce?: boolean | undefined;
|
|
14667
|
+
per_day?: number | undefined;
|
|
14668
|
+
per_hour?: number | undefined;
|
|
14669
|
+
}>>;
|
|
14670
|
+
}, "strip", z.ZodTypeAny, {
|
|
14671
|
+
client_credentials?: {
|
|
14672
|
+
enforce: boolean;
|
|
14673
|
+
per_day: number;
|
|
14674
|
+
per_hour: number;
|
|
14675
|
+
} | undefined;
|
|
14676
|
+
}, {
|
|
14677
|
+
client_credentials?: {
|
|
14678
|
+
enforce?: boolean | undefined;
|
|
14679
|
+
per_day?: number | undefined;
|
|
14680
|
+
per_hour?: number | undefined;
|
|
14681
|
+
} | undefined;
|
|
14682
|
+
}>>;
|
|
14683
|
+
}, "strip", z.ZodTypeAny, {
|
|
14684
|
+
name: string;
|
|
14685
|
+
id?: string | undefined;
|
|
14686
|
+
display_name?: string | undefined;
|
|
14687
|
+
branding?: {
|
|
14688
|
+
colors?: {
|
|
14689
|
+
primary?: string | undefined;
|
|
14690
|
+
page_background?: string | undefined;
|
|
14691
|
+
} | undefined;
|
|
14692
|
+
logo_url?: string | undefined;
|
|
14693
|
+
} | undefined;
|
|
14694
|
+
metadata?: Record<string, any> | undefined;
|
|
14695
|
+
enabled_connections?: {
|
|
14696
|
+
connection_id: string;
|
|
14697
|
+
assign_membership_on_login: boolean;
|
|
14698
|
+
show_as_button: boolean;
|
|
14699
|
+
is_signup_enabled: boolean;
|
|
14700
|
+
}[] | undefined;
|
|
14701
|
+
token_quota?: {
|
|
14702
|
+
client_credentials?: {
|
|
14703
|
+
enforce: boolean;
|
|
14704
|
+
per_day: number;
|
|
14705
|
+
per_hour: number;
|
|
14706
|
+
} | undefined;
|
|
14707
|
+
} | undefined;
|
|
14708
|
+
}, {
|
|
14709
|
+
name: string;
|
|
14710
|
+
id?: string | undefined;
|
|
14711
|
+
display_name?: string | undefined;
|
|
14712
|
+
branding?: {
|
|
14713
|
+
colors?: {
|
|
14714
|
+
primary?: string | undefined;
|
|
14715
|
+
page_background?: string | undefined;
|
|
14716
|
+
} | undefined;
|
|
14717
|
+
logo_url?: string | undefined;
|
|
14718
|
+
} | undefined;
|
|
14719
|
+
metadata?: Record<string, any> | undefined;
|
|
14720
|
+
enabled_connections?: {
|
|
14721
|
+
connection_id: string;
|
|
14722
|
+
assign_membership_on_login?: boolean | undefined;
|
|
14723
|
+
show_as_button?: boolean | undefined;
|
|
14724
|
+
is_signup_enabled?: boolean | undefined;
|
|
14725
|
+
}[] | undefined;
|
|
14726
|
+
token_quota?: {
|
|
14727
|
+
client_credentials?: {
|
|
14728
|
+
enforce?: boolean | undefined;
|
|
14729
|
+
per_day?: number | undefined;
|
|
14730
|
+
per_hour?: number | undefined;
|
|
14731
|
+
} | undefined;
|
|
14732
|
+
} | undefined;
|
|
14733
|
+
}>;
|
|
14734
|
+
export type OrganizationInsert = z.infer<typeof organizationInsertSchema>;
|
|
14735
|
+
export declare const organizationSchema: z.ZodObject<{
|
|
14736
|
+
id: z.ZodString;
|
|
14737
|
+
created_at: z.ZodString;
|
|
14738
|
+
updated_at: z.ZodString;
|
|
14739
|
+
name: z.ZodString;
|
|
14740
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
14741
|
+
branding: z.ZodOptional<z.ZodObject<{
|
|
14742
|
+
logo_url: z.ZodOptional<z.ZodString>;
|
|
14743
|
+
colors: z.ZodOptional<z.ZodObject<{
|
|
14744
|
+
primary: z.ZodOptional<z.ZodString>;
|
|
14745
|
+
page_background: z.ZodOptional<z.ZodString>;
|
|
14746
|
+
}, "strip", z.ZodTypeAny, {
|
|
14747
|
+
primary?: string | undefined;
|
|
14748
|
+
page_background?: string | undefined;
|
|
14749
|
+
}, {
|
|
14750
|
+
primary?: string | undefined;
|
|
14751
|
+
page_background?: string | undefined;
|
|
14752
|
+
}>>;
|
|
14753
|
+
}, "strip", z.ZodTypeAny, {
|
|
14754
|
+
colors?: {
|
|
14755
|
+
primary?: string | undefined;
|
|
14756
|
+
page_background?: string | undefined;
|
|
14757
|
+
} | undefined;
|
|
14758
|
+
logo_url?: string | undefined;
|
|
14759
|
+
}, {
|
|
14760
|
+
colors?: {
|
|
14761
|
+
primary?: string | undefined;
|
|
14762
|
+
page_background?: string | undefined;
|
|
14763
|
+
} | undefined;
|
|
14764
|
+
logo_url?: string | undefined;
|
|
14765
|
+
}>>;
|
|
14766
|
+
metadata: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
14767
|
+
enabled_connections: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
14768
|
+
connection_id: z.ZodString;
|
|
14769
|
+
assign_membership_on_login: z.ZodDefault<z.ZodBoolean>;
|
|
14770
|
+
show_as_button: z.ZodDefault<z.ZodBoolean>;
|
|
14771
|
+
is_signup_enabled: z.ZodDefault<z.ZodBoolean>;
|
|
14772
|
+
}, "strip", z.ZodTypeAny, {
|
|
14773
|
+
connection_id: string;
|
|
14774
|
+
assign_membership_on_login: boolean;
|
|
14775
|
+
show_as_button: boolean;
|
|
14776
|
+
is_signup_enabled: boolean;
|
|
14777
|
+
}, {
|
|
14778
|
+
connection_id: string;
|
|
14779
|
+
assign_membership_on_login?: boolean | undefined;
|
|
14780
|
+
show_as_button?: boolean | undefined;
|
|
14781
|
+
is_signup_enabled?: boolean | undefined;
|
|
14782
|
+
}>, "many">>>;
|
|
14783
|
+
token_quota: z.ZodOptional<z.ZodObject<{
|
|
14784
|
+
client_credentials: z.ZodOptional<z.ZodObject<{
|
|
14785
|
+
enforce: z.ZodDefault<z.ZodBoolean>;
|
|
14786
|
+
per_day: z.ZodDefault<z.ZodNumber>;
|
|
14787
|
+
per_hour: z.ZodDefault<z.ZodNumber>;
|
|
14788
|
+
}, "strip", z.ZodTypeAny, {
|
|
14789
|
+
enforce: boolean;
|
|
14790
|
+
per_day: number;
|
|
14791
|
+
per_hour: number;
|
|
14792
|
+
}, {
|
|
14793
|
+
enforce?: boolean | undefined;
|
|
14794
|
+
per_day?: number | undefined;
|
|
14795
|
+
per_hour?: number | undefined;
|
|
14796
|
+
}>>;
|
|
14797
|
+
}, "strip", z.ZodTypeAny, {
|
|
14798
|
+
client_credentials?: {
|
|
14799
|
+
enforce: boolean;
|
|
14800
|
+
per_day: number;
|
|
14801
|
+
per_hour: number;
|
|
14802
|
+
} | undefined;
|
|
14803
|
+
}, {
|
|
14804
|
+
client_credentials?: {
|
|
14805
|
+
enforce?: boolean | undefined;
|
|
14806
|
+
per_day?: number | undefined;
|
|
14807
|
+
per_hour?: number | undefined;
|
|
14808
|
+
} | undefined;
|
|
14809
|
+
}>>;
|
|
14810
|
+
}, "strip", z.ZodTypeAny, {
|
|
14811
|
+
created_at: string;
|
|
14812
|
+
updated_at: string;
|
|
14813
|
+
name: string;
|
|
14814
|
+
id: string;
|
|
14815
|
+
display_name?: string | undefined;
|
|
14816
|
+
branding?: {
|
|
14817
|
+
colors?: {
|
|
14818
|
+
primary?: string | undefined;
|
|
14819
|
+
page_background?: string | undefined;
|
|
14820
|
+
} | undefined;
|
|
14821
|
+
logo_url?: string | undefined;
|
|
14822
|
+
} | undefined;
|
|
14823
|
+
metadata?: Record<string, any> | undefined;
|
|
14824
|
+
enabled_connections?: {
|
|
14825
|
+
connection_id: string;
|
|
14826
|
+
assign_membership_on_login: boolean;
|
|
14827
|
+
show_as_button: boolean;
|
|
14828
|
+
is_signup_enabled: boolean;
|
|
14829
|
+
}[] | undefined;
|
|
14830
|
+
token_quota?: {
|
|
14831
|
+
client_credentials?: {
|
|
14832
|
+
enforce: boolean;
|
|
14833
|
+
per_day: number;
|
|
14834
|
+
per_hour: number;
|
|
14835
|
+
} | undefined;
|
|
14836
|
+
} | undefined;
|
|
14837
|
+
}, {
|
|
14838
|
+
created_at: string;
|
|
14839
|
+
updated_at: string;
|
|
14840
|
+
name: string;
|
|
14841
|
+
id: string;
|
|
14842
|
+
display_name?: string | undefined;
|
|
14843
|
+
branding?: {
|
|
14844
|
+
colors?: {
|
|
14845
|
+
primary?: string | undefined;
|
|
14846
|
+
page_background?: string | undefined;
|
|
14847
|
+
} | undefined;
|
|
14848
|
+
logo_url?: string | undefined;
|
|
14849
|
+
} | undefined;
|
|
14850
|
+
metadata?: Record<string, any> | undefined;
|
|
14851
|
+
enabled_connections?: {
|
|
14852
|
+
connection_id: string;
|
|
14853
|
+
assign_membership_on_login?: boolean | undefined;
|
|
14854
|
+
show_as_button?: boolean | undefined;
|
|
14855
|
+
is_signup_enabled?: boolean | undefined;
|
|
14856
|
+
}[] | undefined;
|
|
14857
|
+
token_quota?: {
|
|
14858
|
+
client_credentials?: {
|
|
14859
|
+
enforce?: boolean | undefined;
|
|
14860
|
+
per_day?: number | undefined;
|
|
14861
|
+
per_hour?: number | undefined;
|
|
14862
|
+
} | undefined;
|
|
14863
|
+
} | undefined;
|
|
14864
|
+
}>;
|
|
14865
|
+
export type Organization = z.infer<typeof organizationSchema>;
|
|
14866
|
+
export declare const userOrganizationInsertSchema: z.ZodObject<{
|
|
14867
|
+
user_id: z.ZodString;
|
|
14868
|
+
organization_id: z.ZodString;
|
|
14869
|
+
}, "strip", z.ZodTypeAny, {
|
|
14870
|
+
user_id: string;
|
|
14871
|
+
organization_id: string;
|
|
14872
|
+
}, {
|
|
14873
|
+
user_id: string;
|
|
14874
|
+
organization_id: string;
|
|
14875
|
+
}>;
|
|
14876
|
+
export type UserOrganizationInsert = z.infer<typeof userOrganizationInsertSchema>;
|
|
14877
|
+
export declare const userOrganizationSchema: z.ZodObject<{
|
|
14878
|
+
id: z.ZodString;
|
|
14879
|
+
created_at: z.ZodString;
|
|
14880
|
+
updated_at: z.ZodString;
|
|
14881
|
+
user_id: z.ZodString;
|
|
14882
|
+
organization_id: z.ZodString;
|
|
14883
|
+
}, "strip", z.ZodTypeAny, {
|
|
14884
|
+
created_at: string;
|
|
14885
|
+
updated_at: string;
|
|
14886
|
+
user_id: string;
|
|
14887
|
+
id: string;
|
|
14888
|
+
organization_id: string;
|
|
14889
|
+
}, {
|
|
14890
|
+
created_at: string;
|
|
14891
|
+
updated_at: string;
|
|
14892
|
+
user_id: string;
|
|
14893
|
+
id: string;
|
|
14894
|
+
organization_id: string;
|
|
14895
|
+
}>;
|
|
14896
|
+
export type UserOrganization = z.infer<typeof userOrganizationSchema>;
|
|
14542
14897
|
export declare function parseUserId(user_id: string): {
|
|
14543
14898
|
connection: string;
|
|
14544
14899
|
id: string;
|
|
@@ -14768,6 +15123,32 @@ export interface UserRolesAdapter {
|
|
|
14768
15123
|
assign(tenantId: string, userId: string, roles: string[]): Promise<boolean>;
|
|
14769
15124
|
remove(tenantId: string, userId: string, roles: string[]): Promise<boolean>;
|
|
14770
15125
|
}
|
|
15126
|
+
export interface ListOrganizationsResponse extends Totals {
|
|
15127
|
+
organizations: Organization[];
|
|
15128
|
+
}
|
|
15129
|
+
export interface OrganizationsAdapter {
|
|
15130
|
+
create(tenant_id: string, params: OrganizationInsert): Promise<Organization>;
|
|
15131
|
+
get(tenant_id: string, id: string): Promise<Organization | null>;
|
|
15132
|
+
remove(tenant_id: string, id: string): Promise<boolean>;
|
|
15133
|
+
list(tenant_id: string, params?: ListParams): Promise<ListOrganizationsResponse>;
|
|
15134
|
+
update(tenant_id: string, id: string, params: Partial<OrganizationInsert>): Promise<boolean>;
|
|
15135
|
+
}
|
|
15136
|
+
export interface UserOrganizationsAdapter {
|
|
15137
|
+
create(tenantId: string, params: UserOrganizationInsert): Promise<UserOrganization>;
|
|
15138
|
+
get(tenantId: string, id: string): Promise<UserOrganization | null>;
|
|
15139
|
+
remove(tenantId: string, id: string): Promise<boolean>;
|
|
15140
|
+
/**
|
|
15141
|
+
* List user-organization relationships
|
|
15142
|
+
* @param tenantId - The tenant ID
|
|
15143
|
+
* @param params - List parameters including query options:
|
|
15144
|
+
* - q: "user_id:{userId}" to get organizations for a specific user
|
|
15145
|
+
* - q: "organization_id:{organizationId}" to get members of a specific organization
|
|
15146
|
+
*/
|
|
15147
|
+
list(tenantId: string, params?: ListParams): Promise<{
|
|
15148
|
+
userOrganizations: UserOrganization[];
|
|
15149
|
+
} & Totals>;
|
|
15150
|
+
update(tenantId: string, id: string, params: Partial<UserOrganizationInsert>): Promise<boolean>;
|
|
15151
|
+
}
|
|
14771
15152
|
export interface DataAdapters {
|
|
14772
15153
|
applications: ApplicationsAdapter;
|
|
14773
15154
|
branding: BrandingAdapter;
|
|
@@ -14794,6 +15175,8 @@ export interface DataAdapters {
|
|
|
14794
15175
|
themes: ThemesAdapter;
|
|
14795
15176
|
users: UserDataAdapter;
|
|
14796
15177
|
userRoles: UserRolesAdapter;
|
|
15178
|
+
organizations: OrganizationsAdapter;
|
|
15179
|
+
userOrganizations: UserOrganizationsAdapter;
|
|
14797
15180
|
}
|
|
14798
15181
|
declare const auth0ClientSchema: z.ZodObject<{
|
|
14799
15182
|
name: z.ZodString;
|
|
@@ -15263,6 +15646,390 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
15263
15646
|
Bindings: Bindings;
|
|
15264
15647
|
Variables: Variables;
|
|
15265
15648
|
}, import("hono/types").MergeSchemaPath<{
|
|
15649
|
+
"/": {
|
|
15650
|
+
$get: {
|
|
15651
|
+
input: {
|
|
15652
|
+
query: {
|
|
15653
|
+
sort?: string | undefined;
|
|
15654
|
+
page?: string | undefined;
|
|
15655
|
+
per_page?: string | undefined;
|
|
15656
|
+
include_totals?: string | undefined;
|
|
15657
|
+
q?: string | undefined;
|
|
15658
|
+
};
|
|
15659
|
+
} & {
|
|
15660
|
+
header: {
|
|
15661
|
+
"tenant-id": string;
|
|
15662
|
+
};
|
|
15663
|
+
};
|
|
15664
|
+
output: {
|
|
15665
|
+
created_at: string;
|
|
15666
|
+
updated_at: string;
|
|
15667
|
+
name: string;
|
|
15668
|
+
id: string;
|
|
15669
|
+
display_name?: string | undefined | undefined;
|
|
15670
|
+
branding?: {
|
|
15671
|
+
colors?: {
|
|
15672
|
+
primary?: string | undefined | undefined;
|
|
15673
|
+
page_background?: string | undefined | undefined;
|
|
15674
|
+
} | undefined;
|
|
15675
|
+
logo_url?: string | undefined | undefined;
|
|
15676
|
+
} | undefined;
|
|
15677
|
+
metadata?: {
|
|
15678
|
+
[x: string]: any;
|
|
15679
|
+
} | undefined;
|
|
15680
|
+
enabled_connections?: {
|
|
15681
|
+
connection_id: string;
|
|
15682
|
+
assign_membership_on_login: boolean;
|
|
15683
|
+
show_as_button: boolean;
|
|
15684
|
+
is_signup_enabled: boolean;
|
|
15685
|
+
}[] | undefined;
|
|
15686
|
+
token_quota?: {
|
|
15687
|
+
client_credentials?: {
|
|
15688
|
+
enforce: boolean;
|
|
15689
|
+
per_day: number;
|
|
15690
|
+
per_hour: number;
|
|
15691
|
+
} | undefined;
|
|
15692
|
+
} | undefined;
|
|
15693
|
+
}[] | {
|
|
15694
|
+
length: number;
|
|
15695
|
+
start: number;
|
|
15696
|
+
limit: number;
|
|
15697
|
+
organizations: {
|
|
15698
|
+
created_at: string;
|
|
15699
|
+
updated_at: string;
|
|
15700
|
+
name: string;
|
|
15701
|
+
id: string;
|
|
15702
|
+
display_name?: string | undefined | undefined;
|
|
15703
|
+
branding?: {
|
|
15704
|
+
colors?: {
|
|
15705
|
+
primary?: string | undefined | undefined;
|
|
15706
|
+
page_background?: string | undefined | undefined;
|
|
15707
|
+
} | undefined;
|
|
15708
|
+
logo_url?: string | undefined | undefined;
|
|
15709
|
+
} | undefined;
|
|
15710
|
+
metadata?: {
|
|
15711
|
+
[x: string]: any;
|
|
15712
|
+
} | undefined;
|
|
15713
|
+
enabled_connections?: {
|
|
15714
|
+
connection_id: string;
|
|
15715
|
+
assign_membership_on_login: boolean;
|
|
15716
|
+
show_as_button: boolean;
|
|
15717
|
+
is_signup_enabled: boolean;
|
|
15718
|
+
}[] | undefined;
|
|
15719
|
+
token_quota?: {
|
|
15720
|
+
client_credentials?: {
|
|
15721
|
+
enforce: boolean;
|
|
15722
|
+
per_day: number;
|
|
15723
|
+
per_hour: number;
|
|
15724
|
+
} | undefined;
|
|
15725
|
+
} | undefined;
|
|
15726
|
+
}[];
|
|
15727
|
+
};
|
|
15728
|
+
outputFormat: "json";
|
|
15729
|
+
status: 200;
|
|
15730
|
+
};
|
|
15731
|
+
};
|
|
15732
|
+
} & {
|
|
15733
|
+
"/:id": {
|
|
15734
|
+
$get: {
|
|
15735
|
+
input: {
|
|
15736
|
+
param: {
|
|
15737
|
+
id: string;
|
|
15738
|
+
};
|
|
15739
|
+
} & {
|
|
15740
|
+
header: {
|
|
15741
|
+
"tenant-id": string;
|
|
15742
|
+
};
|
|
15743
|
+
};
|
|
15744
|
+
output: {
|
|
15745
|
+
created_at: string;
|
|
15746
|
+
updated_at: string;
|
|
15747
|
+
name: string;
|
|
15748
|
+
id: string;
|
|
15749
|
+
display_name?: string | undefined | undefined;
|
|
15750
|
+
branding?: {
|
|
15751
|
+
colors?: {
|
|
15752
|
+
primary?: string | undefined | undefined;
|
|
15753
|
+
page_background?: string | undefined | undefined;
|
|
15754
|
+
} | undefined;
|
|
15755
|
+
logo_url?: string | undefined | undefined;
|
|
15756
|
+
} | undefined;
|
|
15757
|
+
metadata?: {
|
|
15758
|
+
[x: string]: any;
|
|
15759
|
+
} | undefined;
|
|
15760
|
+
enabled_connections?: {
|
|
15761
|
+
connection_id: string;
|
|
15762
|
+
assign_membership_on_login: boolean;
|
|
15763
|
+
show_as_button: boolean;
|
|
15764
|
+
is_signup_enabled: boolean;
|
|
15765
|
+
}[] | undefined;
|
|
15766
|
+
token_quota?: {
|
|
15767
|
+
client_credentials?: {
|
|
15768
|
+
enforce: boolean;
|
|
15769
|
+
per_day: number;
|
|
15770
|
+
per_hour: number;
|
|
15771
|
+
} | undefined;
|
|
15772
|
+
} | undefined;
|
|
15773
|
+
};
|
|
15774
|
+
outputFormat: "json";
|
|
15775
|
+
status: 200;
|
|
15776
|
+
};
|
|
15777
|
+
};
|
|
15778
|
+
} & {
|
|
15779
|
+
"/:id": {
|
|
15780
|
+
$delete: {
|
|
15781
|
+
input: {
|
|
15782
|
+
param: {
|
|
15783
|
+
id: string;
|
|
15784
|
+
};
|
|
15785
|
+
} & {
|
|
15786
|
+
header: {
|
|
15787
|
+
"tenant-id": string;
|
|
15788
|
+
};
|
|
15789
|
+
};
|
|
15790
|
+
output: {};
|
|
15791
|
+
outputFormat: string;
|
|
15792
|
+
status: 200;
|
|
15793
|
+
};
|
|
15794
|
+
};
|
|
15795
|
+
} & {
|
|
15796
|
+
"/:id": {
|
|
15797
|
+
$patch: {
|
|
15798
|
+
input: {
|
|
15799
|
+
param: {
|
|
15800
|
+
id: string;
|
|
15801
|
+
};
|
|
15802
|
+
} & {
|
|
15803
|
+
header: {
|
|
15804
|
+
"tenant-id": string;
|
|
15805
|
+
};
|
|
15806
|
+
} & {
|
|
15807
|
+
json: {
|
|
15808
|
+
name?: string | undefined;
|
|
15809
|
+
branding?: {
|
|
15810
|
+
colors?: {
|
|
15811
|
+
primary?: string | undefined;
|
|
15812
|
+
page_background?: string | undefined;
|
|
15813
|
+
} | undefined;
|
|
15814
|
+
logo_url?: string | undefined;
|
|
15815
|
+
} | undefined;
|
|
15816
|
+
id?: string | undefined;
|
|
15817
|
+
display_name?: string | undefined;
|
|
15818
|
+
metadata?: Record<string, any> | undefined;
|
|
15819
|
+
enabled_connections?: {
|
|
15820
|
+
connection_id: string;
|
|
15821
|
+
assign_membership_on_login?: boolean | undefined;
|
|
15822
|
+
show_as_button?: boolean | undefined;
|
|
15823
|
+
is_signup_enabled?: boolean | undefined;
|
|
15824
|
+
}[] | undefined;
|
|
15825
|
+
token_quota?: {
|
|
15826
|
+
client_credentials?: {
|
|
15827
|
+
enforce?: boolean | undefined;
|
|
15828
|
+
per_day?: number | undefined;
|
|
15829
|
+
per_hour?: number | undefined;
|
|
15830
|
+
} | undefined;
|
|
15831
|
+
} | undefined;
|
|
15832
|
+
};
|
|
15833
|
+
};
|
|
15834
|
+
output: {
|
|
15835
|
+
created_at: string;
|
|
15836
|
+
updated_at: string;
|
|
15837
|
+
name: string;
|
|
15838
|
+
id: string;
|
|
15839
|
+
display_name?: string | undefined | undefined;
|
|
15840
|
+
branding?: {
|
|
15841
|
+
colors?: {
|
|
15842
|
+
primary?: string | undefined | undefined;
|
|
15843
|
+
page_background?: string | undefined | undefined;
|
|
15844
|
+
} | undefined;
|
|
15845
|
+
logo_url?: string | undefined | undefined;
|
|
15846
|
+
} | undefined;
|
|
15847
|
+
metadata?: {
|
|
15848
|
+
[x: string]: any;
|
|
15849
|
+
} | undefined;
|
|
15850
|
+
enabled_connections?: {
|
|
15851
|
+
connection_id: string;
|
|
15852
|
+
assign_membership_on_login: boolean;
|
|
15853
|
+
show_as_button: boolean;
|
|
15854
|
+
is_signup_enabled: boolean;
|
|
15855
|
+
}[] | undefined;
|
|
15856
|
+
token_quota?: {
|
|
15857
|
+
client_credentials?: {
|
|
15858
|
+
enforce: boolean;
|
|
15859
|
+
per_day: number;
|
|
15860
|
+
per_hour: number;
|
|
15861
|
+
} | undefined;
|
|
15862
|
+
} | undefined;
|
|
15863
|
+
};
|
|
15864
|
+
outputFormat: "json";
|
|
15865
|
+
status: 200;
|
|
15866
|
+
};
|
|
15867
|
+
};
|
|
15868
|
+
} & {
|
|
15869
|
+
"/": {
|
|
15870
|
+
$post: {
|
|
15871
|
+
input: {
|
|
15872
|
+
header: {
|
|
15873
|
+
"tenant-id": string;
|
|
15874
|
+
};
|
|
15875
|
+
} & {
|
|
15876
|
+
json: {
|
|
15877
|
+
name: string;
|
|
15878
|
+
id?: string | undefined;
|
|
15879
|
+
display_name?: string | undefined;
|
|
15880
|
+
branding?: {
|
|
15881
|
+
colors?: {
|
|
15882
|
+
primary?: string | undefined;
|
|
15883
|
+
page_background?: string | undefined;
|
|
15884
|
+
} | undefined;
|
|
15885
|
+
logo_url?: string | undefined;
|
|
15886
|
+
} | undefined;
|
|
15887
|
+
metadata?: Record<string, any> | undefined;
|
|
15888
|
+
enabled_connections?: {
|
|
15889
|
+
connection_id: string;
|
|
15890
|
+
assign_membership_on_login?: boolean | undefined;
|
|
15891
|
+
show_as_button?: boolean | undefined;
|
|
15892
|
+
is_signup_enabled?: boolean | undefined;
|
|
15893
|
+
}[] | undefined;
|
|
15894
|
+
token_quota?: {
|
|
15895
|
+
client_credentials?: {
|
|
15896
|
+
enforce?: boolean | undefined;
|
|
15897
|
+
per_day?: number | undefined;
|
|
15898
|
+
per_hour?: number | undefined;
|
|
15899
|
+
} | undefined;
|
|
15900
|
+
} | undefined;
|
|
15901
|
+
};
|
|
15902
|
+
};
|
|
15903
|
+
output: {
|
|
15904
|
+
created_at: string;
|
|
15905
|
+
updated_at: string;
|
|
15906
|
+
name: string;
|
|
15907
|
+
id: string;
|
|
15908
|
+
display_name?: string | undefined | undefined;
|
|
15909
|
+
branding?: {
|
|
15910
|
+
colors?: {
|
|
15911
|
+
primary?: string | undefined | undefined;
|
|
15912
|
+
page_background?: string | undefined | undefined;
|
|
15913
|
+
} | undefined;
|
|
15914
|
+
logo_url?: string | undefined | undefined;
|
|
15915
|
+
} | undefined;
|
|
15916
|
+
metadata?: {
|
|
15917
|
+
[x: string]: any;
|
|
15918
|
+
} | undefined;
|
|
15919
|
+
enabled_connections?: {
|
|
15920
|
+
connection_id: string;
|
|
15921
|
+
assign_membership_on_login: boolean;
|
|
15922
|
+
show_as_button: boolean;
|
|
15923
|
+
is_signup_enabled: boolean;
|
|
15924
|
+
}[] | undefined;
|
|
15925
|
+
token_quota?: {
|
|
15926
|
+
client_credentials?: {
|
|
15927
|
+
enforce: boolean;
|
|
15928
|
+
per_day: number;
|
|
15929
|
+
per_hour: number;
|
|
15930
|
+
} | undefined;
|
|
15931
|
+
} | undefined;
|
|
15932
|
+
};
|
|
15933
|
+
outputFormat: "json";
|
|
15934
|
+
status: 201;
|
|
15935
|
+
};
|
|
15936
|
+
};
|
|
15937
|
+
} & {
|
|
15938
|
+
"/:id/members": {
|
|
15939
|
+
$get: {
|
|
15940
|
+
input: {
|
|
15941
|
+
param: {
|
|
15942
|
+
id: string;
|
|
15943
|
+
};
|
|
15944
|
+
} & {
|
|
15945
|
+
query: {
|
|
15946
|
+
sort?: string | undefined;
|
|
15947
|
+
page?: string | undefined;
|
|
15948
|
+
per_page?: string | undefined;
|
|
15949
|
+
include_totals?: string | undefined;
|
|
15950
|
+
q?: string | undefined;
|
|
15951
|
+
};
|
|
15952
|
+
} & {
|
|
15953
|
+
header: {
|
|
15954
|
+
"tenant-id": string;
|
|
15955
|
+
};
|
|
15956
|
+
};
|
|
15957
|
+
output: {
|
|
15958
|
+
created_at: string;
|
|
15959
|
+
updated_at: string;
|
|
15960
|
+
user_id: string;
|
|
15961
|
+
id: string;
|
|
15962
|
+
organization_id: string;
|
|
15963
|
+
}[] | {
|
|
15964
|
+
length: number;
|
|
15965
|
+
start: number;
|
|
15966
|
+
limit: number;
|
|
15967
|
+
userOrganizations: {
|
|
15968
|
+
created_at: string;
|
|
15969
|
+
updated_at: string;
|
|
15970
|
+
user_id: string;
|
|
15971
|
+
id: string;
|
|
15972
|
+
organization_id: string;
|
|
15973
|
+
}[];
|
|
15974
|
+
};
|
|
15975
|
+
outputFormat: "json";
|
|
15976
|
+
status: 200;
|
|
15977
|
+
};
|
|
15978
|
+
};
|
|
15979
|
+
} & {
|
|
15980
|
+
"/:id/members": {
|
|
15981
|
+
$post: {
|
|
15982
|
+
input: {
|
|
15983
|
+
param: {
|
|
15984
|
+
id: string;
|
|
15985
|
+
};
|
|
15986
|
+
} & {
|
|
15987
|
+
header: {
|
|
15988
|
+
"tenant-id": string;
|
|
15989
|
+
};
|
|
15990
|
+
} & {
|
|
15991
|
+
json: {
|
|
15992
|
+
users: string[];
|
|
15993
|
+
};
|
|
15994
|
+
};
|
|
15995
|
+
output: {};
|
|
15996
|
+
outputFormat: string;
|
|
15997
|
+
status: 201;
|
|
15998
|
+
};
|
|
15999
|
+
};
|
|
16000
|
+
} & {
|
|
16001
|
+
"/:id/members/:userId": {
|
|
16002
|
+
$delete: {
|
|
16003
|
+
input: {
|
|
16004
|
+
param: {
|
|
16005
|
+
id: string;
|
|
16006
|
+
userId: string;
|
|
16007
|
+
};
|
|
16008
|
+
} & {
|
|
16009
|
+
header: {
|
|
16010
|
+
"tenant-id": string;
|
|
16011
|
+
};
|
|
16012
|
+
};
|
|
16013
|
+
output: {};
|
|
16014
|
+
outputFormat: string;
|
|
16015
|
+
status: 204;
|
|
16016
|
+
} | {
|
|
16017
|
+
input: {
|
|
16018
|
+
param: {
|
|
16019
|
+
id: string;
|
|
16020
|
+
userId: string;
|
|
16021
|
+
};
|
|
16022
|
+
} & {
|
|
16023
|
+
header: {
|
|
16024
|
+
"tenant-id": string;
|
|
16025
|
+
};
|
|
16026
|
+
};
|
|
16027
|
+
output: {};
|
|
16028
|
+
outputFormat: string;
|
|
16029
|
+
status: 404;
|
|
16030
|
+
};
|
|
16031
|
+
};
|
|
16032
|
+
}, "/organizations"> & import("hono/types").MergeSchemaPath<{
|
|
15266
16033
|
"/": {
|
|
15267
16034
|
$get: {
|
|
15268
16035
|
input: {
|
|
@@ -18732,6 +19499,66 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
18732
19499
|
status: 200;
|
|
18733
19500
|
};
|
|
18734
19501
|
};
|
|
19502
|
+
} & {
|
|
19503
|
+
"/:user_id/organizations": {
|
|
19504
|
+
$get: {
|
|
19505
|
+
input: {
|
|
19506
|
+
param: {
|
|
19507
|
+
user_id: string;
|
|
19508
|
+
};
|
|
19509
|
+
} & {
|
|
19510
|
+
query: {
|
|
19511
|
+
sort?: string | undefined;
|
|
19512
|
+
page?: string | undefined;
|
|
19513
|
+
per_page?: string | undefined;
|
|
19514
|
+
include_totals?: string | undefined;
|
|
19515
|
+
q?: string | undefined;
|
|
19516
|
+
};
|
|
19517
|
+
} & {
|
|
19518
|
+
header: {
|
|
19519
|
+
"tenant-id": string;
|
|
19520
|
+
};
|
|
19521
|
+
};
|
|
19522
|
+
output: {
|
|
19523
|
+
created_at: string;
|
|
19524
|
+
updated_at: string;
|
|
19525
|
+
user_id: string;
|
|
19526
|
+
id: string;
|
|
19527
|
+
organization_id: string;
|
|
19528
|
+
}[] | {
|
|
19529
|
+
length: number;
|
|
19530
|
+
start: number;
|
|
19531
|
+
limit: number;
|
|
19532
|
+
userOrganizations: {
|
|
19533
|
+
created_at: string;
|
|
19534
|
+
updated_at: string;
|
|
19535
|
+
user_id: string;
|
|
19536
|
+
id: string;
|
|
19537
|
+
organization_id: string;
|
|
19538
|
+
}[];
|
|
19539
|
+
};
|
|
19540
|
+
outputFormat: "json";
|
|
19541
|
+
status: 200;
|
|
19542
|
+
};
|
|
19543
|
+
};
|
|
19544
|
+
} & {
|
|
19545
|
+
"/:user_id/organizations/:organization_id": {
|
|
19546
|
+
$delete: {
|
|
19547
|
+
input: {
|
|
19548
|
+
param: {
|
|
19549
|
+
user_id: string;
|
|
19550
|
+
organization_id: string;
|
|
19551
|
+
};
|
|
19552
|
+
} & {
|
|
19553
|
+
header: {
|
|
19554
|
+
"tenant-id": string;
|
|
19555
|
+
};
|
|
19556
|
+
};
|
|
19557
|
+
output: {};
|
|
19558
|
+
outputFormat: string;
|
|
19559
|
+
status: 200;
|
|
19560
|
+
};
|
|
19561
|
+
};
|
|
18735
19562
|
}, "/users"> & import("hono/types").MergeSchemaPath<{
|
|
18736
19563
|
"/": {
|
|
18737
19564
|
$get: {
|