authhero 0.54.0 → 0.55.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/authhero.cjs +29 -29
- package/dist/authhero.d.ts +241 -47
- package/dist/authhero.mjs +2310 -2181
- package/package.json +3 -3
package/dist/authhero.d.ts
CHANGED
|
@@ -1150,6 +1150,7 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1150
1150
|
email_service?: string | undefined;
|
|
1151
1151
|
}>, "many">;
|
|
1152
1152
|
tenant: z.ZodObject<{
|
|
1153
|
+
id: z.ZodString;
|
|
1153
1154
|
name: z.ZodString;
|
|
1154
1155
|
audience: z.ZodString;
|
|
1155
1156
|
sender_email: z.ZodString;
|
|
@@ -1161,7 +1162,6 @@ declare const ClientSchema: z.ZodObject<{
|
|
|
1161
1162
|
language: z.ZodOptional<z.ZodString>;
|
|
1162
1163
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
1163
1164
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
1164
|
-
id: z.ZodString;
|
|
1165
1165
|
}, "strip", z.ZodTypeAny, {
|
|
1166
1166
|
created_at: string;
|
|
1167
1167
|
updated_at: string;
|
|
@@ -2711,52 +2711,155 @@ export declare const passwordSchema: z.ZodObject<{
|
|
|
2711
2711
|
}>;
|
|
2712
2712
|
export type Password = z.infer<typeof passwordSchema>;
|
|
2713
2713
|
export declare const sessionInsertSchema: z.ZodObject<{
|
|
2714
|
-
|
|
2714
|
+
id: z.ZodString;
|
|
2715
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
2715
2716
|
client_id: z.ZodString;
|
|
2716
|
-
|
|
2717
|
+
revoked_at: z.ZodOptional<z.ZodString>;
|
|
2717
2718
|
used_at: z.ZodString;
|
|
2718
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
2719
2719
|
user_id: z.ZodString;
|
|
2720
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
2721
|
+
idle_expires_at: z.ZodOptional<z.ZodString>;
|
|
2722
|
+
device: z.ZodObject<{
|
|
2723
|
+
initial_user_agent: z.ZodString;
|
|
2724
|
+
initial_ip: z.ZodString;
|
|
2725
|
+
initial_asn: z.ZodString;
|
|
2726
|
+
last_user_agent: z.ZodString;
|
|
2727
|
+
last_ip: z.ZodString;
|
|
2728
|
+
last_asn: z.ZodString;
|
|
2729
|
+
}, "strip", z.ZodTypeAny, {
|
|
2730
|
+
last_ip: string;
|
|
2731
|
+
initial_user_agent: string;
|
|
2732
|
+
initial_ip: string;
|
|
2733
|
+
initial_asn: string;
|
|
2734
|
+
last_user_agent: string;
|
|
2735
|
+
last_asn: string;
|
|
2736
|
+
}, {
|
|
2737
|
+
last_ip: string;
|
|
2738
|
+
initial_user_agent: string;
|
|
2739
|
+
initial_ip: string;
|
|
2740
|
+
initial_asn: string;
|
|
2741
|
+
last_user_agent: string;
|
|
2742
|
+
last_asn: string;
|
|
2743
|
+
}>;
|
|
2744
|
+
clients: z.ZodArray<z.ZodString, "many">;
|
|
2720
2745
|
}, "strip", z.ZodTypeAny, {
|
|
2721
2746
|
user_id: string;
|
|
2747
|
+
id: string;
|
|
2722
2748
|
client_id: string;
|
|
2723
|
-
expires_at: string;
|
|
2724
2749
|
used_at: string;
|
|
2725
|
-
|
|
2726
|
-
|
|
2750
|
+
device: {
|
|
2751
|
+
last_ip: string;
|
|
2752
|
+
initial_user_agent: string;
|
|
2753
|
+
initial_ip: string;
|
|
2754
|
+
initial_asn: string;
|
|
2755
|
+
last_user_agent: string;
|
|
2756
|
+
last_asn: string;
|
|
2757
|
+
};
|
|
2758
|
+
clients: string[];
|
|
2759
|
+
expires_at?: string | undefined;
|
|
2760
|
+
session_id?: string | undefined;
|
|
2761
|
+
revoked_at?: string | undefined;
|
|
2762
|
+
idle_expires_at?: string | undefined;
|
|
2727
2763
|
}, {
|
|
2728
2764
|
user_id: string;
|
|
2765
|
+
id: string;
|
|
2729
2766
|
client_id: string;
|
|
2730
|
-
expires_at: string;
|
|
2731
2767
|
used_at: string;
|
|
2732
|
-
|
|
2733
|
-
|
|
2768
|
+
device: {
|
|
2769
|
+
last_ip: string;
|
|
2770
|
+
initial_user_agent: string;
|
|
2771
|
+
initial_ip: string;
|
|
2772
|
+
initial_asn: string;
|
|
2773
|
+
last_user_agent: string;
|
|
2774
|
+
last_asn: string;
|
|
2775
|
+
};
|
|
2776
|
+
clients: string[];
|
|
2777
|
+
expires_at?: string | undefined;
|
|
2778
|
+
session_id?: string | undefined;
|
|
2779
|
+
revoked_at?: string | undefined;
|
|
2780
|
+
idle_expires_at?: string | undefined;
|
|
2734
2781
|
}>;
|
|
2735
2782
|
export type SessionInsert = z.infer<typeof sessionInsertSchema>;
|
|
2736
2783
|
export declare const sessionSchema: z.ZodObject<{
|
|
2737
|
-
|
|
2784
|
+
id: z.ZodString;
|
|
2785
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
2738
2786
|
client_id: z.ZodString;
|
|
2739
|
-
|
|
2787
|
+
revoked_at: z.ZodOptional<z.ZodString>;
|
|
2740
2788
|
used_at: z.ZodString;
|
|
2741
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
2742
2789
|
user_id: z.ZodString;
|
|
2790
|
+
expires_at: z.ZodOptional<z.ZodString>;
|
|
2791
|
+
idle_expires_at: z.ZodOptional<z.ZodString>;
|
|
2792
|
+
device: z.ZodObject<{
|
|
2793
|
+
initial_user_agent: z.ZodString;
|
|
2794
|
+
initial_ip: z.ZodString;
|
|
2795
|
+
initial_asn: z.ZodString;
|
|
2796
|
+
last_user_agent: z.ZodString;
|
|
2797
|
+
last_ip: z.ZodString;
|
|
2798
|
+
last_asn: z.ZodString;
|
|
2799
|
+
}, "strip", z.ZodTypeAny, {
|
|
2800
|
+
last_ip: string;
|
|
2801
|
+
initial_user_agent: string;
|
|
2802
|
+
initial_ip: string;
|
|
2803
|
+
initial_asn: string;
|
|
2804
|
+
last_user_agent: string;
|
|
2805
|
+
last_asn: string;
|
|
2806
|
+
}, {
|
|
2807
|
+
last_ip: string;
|
|
2808
|
+
initial_user_agent: string;
|
|
2809
|
+
initial_ip: string;
|
|
2810
|
+
initial_asn: string;
|
|
2811
|
+
last_user_agent: string;
|
|
2812
|
+
last_asn: string;
|
|
2813
|
+
}>;
|
|
2814
|
+
clients: z.ZodArray<z.ZodString, "many">;
|
|
2743
2815
|
created_at: z.ZodString;
|
|
2816
|
+
updated_at: z.ZodString;
|
|
2817
|
+
authenticated_at: z.ZodString;
|
|
2818
|
+
last_interaction_at: z.ZodString;
|
|
2744
2819
|
}, "strip", z.ZodTypeAny, {
|
|
2745
2820
|
created_at: string;
|
|
2821
|
+
updated_at: string;
|
|
2746
2822
|
user_id: string;
|
|
2823
|
+
id: string;
|
|
2747
2824
|
client_id: string;
|
|
2748
|
-
expires_at: string;
|
|
2749
2825
|
used_at: string;
|
|
2750
|
-
|
|
2751
|
-
|
|
2826
|
+
device: {
|
|
2827
|
+
last_ip: string;
|
|
2828
|
+
initial_user_agent: string;
|
|
2829
|
+
initial_ip: string;
|
|
2830
|
+
initial_asn: string;
|
|
2831
|
+
last_user_agent: string;
|
|
2832
|
+
last_asn: string;
|
|
2833
|
+
};
|
|
2834
|
+
clients: string[];
|
|
2835
|
+
authenticated_at: string;
|
|
2836
|
+
last_interaction_at: string;
|
|
2837
|
+
expires_at?: string | undefined;
|
|
2838
|
+
session_id?: string | undefined;
|
|
2839
|
+
revoked_at?: string | undefined;
|
|
2840
|
+
idle_expires_at?: string | undefined;
|
|
2752
2841
|
}, {
|
|
2753
2842
|
created_at: string;
|
|
2843
|
+
updated_at: string;
|
|
2754
2844
|
user_id: string;
|
|
2845
|
+
id: string;
|
|
2755
2846
|
client_id: string;
|
|
2756
|
-
expires_at: string;
|
|
2757
2847
|
used_at: string;
|
|
2758
|
-
|
|
2759
|
-
|
|
2848
|
+
device: {
|
|
2849
|
+
last_ip: string;
|
|
2850
|
+
initial_user_agent: string;
|
|
2851
|
+
initial_ip: string;
|
|
2852
|
+
initial_asn: string;
|
|
2853
|
+
last_user_agent: string;
|
|
2854
|
+
last_asn: string;
|
|
2855
|
+
};
|
|
2856
|
+
clients: string[];
|
|
2857
|
+
authenticated_at: string;
|
|
2858
|
+
last_interaction_at: string;
|
|
2859
|
+
expires_at?: string | undefined;
|
|
2860
|
+
session_id?: string | undefined;
|
|
2861
|
+
revoked_at?: string | undefined;
|
|
2862
|
+
idle_expires_at?: string | undefined;
|
|
2760
2863
|
}>;
|
|
2761
2864
|
export type Session = z.infer<typeof sessionSchema>;
|
|
2762
2865
|
export declare const signingKeySchema: z.ZodObject<{
|
|
@@ -2777,6 +2880,7 @@ export declare const signingKeySchema: z.ZodObject<{
|
|
|
2777
2880
|
cert: string;
|
|
2778
2881
|
fingerprint: string;
|
|
2779
2882
|
thumbprint: string;
|
|
2883
|
+
revoked_at?: string | undefined;
|
|
2780
2884
|
pkcs7?: string | undefined;
|
|
2781
2885
|
current?: boolean | undefined;
|
|
2782
2886
|
next?: boolean | undefined;
|
|
@@ -2784,12 +2888,12 @@ export declare const signingKeySchema: z.ZodObject<{
|
|
|
2784
2888
|
current_since?: string | undefined;
|
|
2785
2889
|
current_until?: string | undefined;
|
|
2786
2890
|
revoked?: boolean | undefined;
|
|
2787
|
-
revoked_at?: string | undefined;
|
|
2788
2891
|
}, {
|
|
2789
2892
|
kid: string;
|
|
2790
2893
|
cert: string;
|
|
2791
2894
|
fingerprint: string;
|
|
2792
2895
|
thumbprint: string;
|
|
2896
|
+
revoked_at?: string | undefined;
|
|
2793
2897
|
pkcs7?: string | undefined;
|
|
2794
2898
|
current?: boolean | undefined;
|
|
2795
2899
|
next?: boolean | undefined;
|
|
@@ -2797,7 +2901,6 @@ export declare const signingKeySchema: z.ZodObject<{
|
|
|
2797
2901
|
current_since?: string | undefined;
|
|
2798
2902
|
current_until?: string | undefined;
|
|
2799
2903
|
revoked?: boolean | undefined;
|
|
2800
|
-
revoked_at?: string | undefined;
|
|
2801
2904
|
}>;
|
|
2802
2905
|
export type SigningKey = z.infer<typeof signingKeySchema>;
|
|
2803
2906
|
export declare const tenantInsertSchema: z.ZodObject<{
|
|
@@ -2810,11 +2913,13 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
2810
2913
|
primary_color: z.ZodOptional<z.ZodString>;
|
|
2811
2914
|
secondary_color: z.ZodOptional<z.ZodString>;
|
|
2812
2915
|
language: z.ZodOptional<z.ZodString>;
|
|
2916
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2813
2917
|
}, "strip", z.ZodTypeAny, {
|
|
2814
2918
|
name: string;
|
|
2815
2919
|
audience: string;
|
|
2816
2920
|
sender_email: string;
|
|
2817
2921
|
sender_name: string;
|
|
2922
|
+
id?: string | undefined;
|
|
2818
2923
|
support_url?: string | undefined;
|
|
2819
2924
|
logo?: string | undefined;
|
|
2820
2925
|
primary_color?: string | undefined;
|
|
@@ -2825,6 +2930,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
2825
2930
|
audience: string;
|
|
2826
2931
|
sender_email: string;
|
|
2827
2932
|
sender_name: string;
|
|
2933
|
+
id?: string | undefined;
|
|
2828
2934
|
support_url?: string | undefined;
|
|
2829
2935
|
logo?: string | undefined;
|
|
2830
2936
|
primary_color?: string | undefined;
|
|
@@ -2832,6 +2938,7 @@ export declare const tenantInsertSchema: z.ZodObject<{
|
|
|
2832
2938
|
language?: string | undefined;
|
|
2833
2939
|
}>;
|
|
2834
2940
|
export declare const tenantSchema: z.ZodObject<{
|
|
2941
|
+
id: z.ZodString;
|
|
2835
2942
|
name: z.ZodString;
|
|
2836
2943
|
audience: z.ZodString;
|
|
2837
2944
|
sender_email: z.ZodString;
|
|
@@ -2843,7 +2950,6 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
2843
2950
|
language: z.ZodOptional<z.ZodString>;
|
|
2844
2951
|
created_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2845
2952
|
updated_at: z.ZodEffects<z.ZodString, string, string>;
|
|
2846
|
-
id: z.ZodString;
|
|
2847
2953
|
}, "strip", z.ZodTypeAny, {
|
|
2848
2954
|
created_at: string;
|
|
2849
2955
|
updated_at: string;
|
|
@@ -2871,20 +2977,7 @@ export declare const tenantSchema: z.ZodObject<{
|
|
|
2871
2977
|
secondary_color?: string | undefined;
|
|
2872
2978
|
language?: string | undefined;
|
|
2873
2979
|
}>;
|
|
2874
|
-
export
|
|
2875
|
-
id: string;
|
|
2876
|
-
name: string;
|
|
2877
|
-
audience: string;
|
|
2878
|
-
sender_email: string;
|
|
2879
|
-
sender_name: string;
|
|
2880
|
-
support_url?: string;
|
|
2881
|
-
logo?: string;
|
|
2882
|
-
primary_color?: string;
|
|
2883
|
-
secondary_color?: string;
|
|
2884
|
-
language?: string;
|
|
2885
|
-
created_at: string;
|
|
2886
|
-
updated_at: string;
|
|
2887
|
-
}
|
|
2980
|
+
export type Tenant = z.infer<typeof tenantSchema>;
|
|
2888
2981
|
export declare const vendorSettingsSchema: z.ZodObject<{
|
|
2889
2982
|
logoUrl: z.ZodString;
|
|
2890
2983
|
loginBackgroundImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -4312,9 +4405,7 @@ export interface SessionsAdapter {
|
|
|
4312
4405
|
create: (tenant_id: string, session: SessionInsert) => Promise<Session>;
|
|
4313
4406
|
get: (tenant_id: string, id: string) => Promise<Session | null>;
|
|
4314
4407
|
list(tenantId: string, params?: ListParams): Promise<ListSesssionsResponse>;
|
|
4315
|
-
update: (tenant_id: string, id: string, session:
|
|
4316
|
-
used_at: string;
|
|
4317
|
-
}) => Promise<boolean>;
|
|
4408
|
+
update: (tenant_id: string, id: string, session: Partial<Session>) => Promise<boolean>;
|
|
4318
4409
|
remove: (tenant_id: string, id: string) => Promise<boolean>;
|
|
4319
4410
|
}
|
|
4320
4411
|
export interface CreateTenantParams {
|
|
@@ -4549,6 +4640,79 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
4549
4640
|
Bindings: Bindings;
|
|
4550
4641
|
Variables: Variables;
|
|
4551
4642
|
}, import("hono/types").MergeSchemaPath<{
|
|
4643
|
+
"/:id": {
|
|
4644
|
+
$get: {
|
|
4645
|
+
input: {
|
|
4646
|
+
param: {
|
|
4647
|
+
id: string;
|
|
4648
|
+
};
|
|
4649
|
+
} & {
|
|
4650
|
+
header: {
|
|
4651
|
+
"tenant-id": string;
|
|
4652
|
+
};
|
|
4653
|
+
};
|
|
4654
|
+
output: {
|
|
4655
|
+
created_at: string;
|
|
4656
|
+
updated_at: string;
|
|
4657
|
+
user_id: string;
|
|
4658
|
+
id: string;
|
|
4659
|
+
client_id: string;
|
|
4660
|
+
used_at: string;
|
|
4661
|
+
device: {
|
|
4662
|
+
last_ip: string;
|
|
4663
|
+
initial_user_agent: string;
|
|
4664
|
+
initial_ip: string;
|
|
4665
|
+
initial_asn: string;
|
|
4666
|
+
last_user_agent: string;
|
|
4667
|
+
last_asn: string;
|
|
4668
|
+
};
|
|
4669
|
+
clients: string[];
|
|
4670
|
+
authenticated_at: string;
|
|
4671
|
+
last_interaction_at: string;
|
|
4672
|
+
expires_at?: string | undefined;
|
|
4673
|
+
session_id?: string | undefined;
|
|
4674
|
+
revoked_at?: string | undefined;
|
|
4675
|
+
idle_expires_at?: string | undefined;
|
|
4676
|
+
};
|
|
4677
|
+
outputFormat: "json" | "text";
|
|
4678
|
+
status: 200;
|
|
4679
|
+
};
|
|
4680
|
+
};
|
|
4681
|
+
} & {
|
|
4682
|
+
"/:id": {
|
|
4683
|
+
$delete: {
|
|
4684
|
+
input: {
|
|
4685
|
+
param: {
|
|
4686
|
+
id: string;
|
|
4687
|
+
};
|
|
4688
|
+
} & {
|
|
4689
|
+
header: {
|
|
4690
|
+
"tenant-id": string;
|
|
4691
|
+
};
|
|
4692
|
+
};
|
|
4693
|
+
output: {};
|
|
4694
|
+
outputFormat: string;
|
|
4695
|
+
status: 200;
|
|
4696
|
+
};
|
|
4697
|
+
};
|
|
4698
|
+
} & {
|
|
4699
|
+
"/:id/revoke": {
|
|
4700
|
+
$post: {
|
|
4701
|
+
input: {
|
|
4702
|
+
param: {
|
|
4703
|
+
id: string;
|
|
4704
|
+
};
|
|
4705
|
+
} & {
|
|
4706
|
+
header: {
|
|
4707
|
+
"tenant-id": string;
|
|
4708
|
+
};
|
|
4709
|
+
};
|
|
4710
|
+
output: {};
|
|
4711
|
+
outputFormat: string;
|
|
4712
|
+
status: 202;
|
|
4713
|
+
};
|
|
4714
|
+
};
|
|
4715
|
+
}, "/sessions"> & import("hono/types").MergeSchemaPath<{
|
|
4552
4716
|
"/": {
|
|
4553
4717
|
$get: {
|
|
4554
4718
|
input: {
|
|
@@ -5201,6 +5365,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5201
5365
|
} & {
|
|
5202
5366
|
json: {
|
|
5203
5367
|
name?: string | undefined;
|
|
5368
|
+
id?: string | undefined;
|
|
5204
5369
|
audience?: string | undefined;
|
|
5205
5370
|
sender_email?: string | undefined;
|
|
5206
5371
|
sender_name?: string | undefined;
|
|
@@ -5225,6 +5390,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5225
5390
|
audience: string;
|
|
5226
5391
|
sender_email: string;
|
|
5227
5392
|
sender_name: string;
|
|
5393
|
+
id?: string | undefined;
|
|
5228
5394
|
support_url?: string | undefined;
|
|
5229
5395
|
logo?: string | undefined;
|
|
5230
5396
|
primary_color?: string | undefined;
|
|
@@ -5598,6 +5764,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5598
5764
|
cert: string;
|
|
5599
5765
|
fingerprint: string;
|
|
5600
5766
|
thumbprint: string;
|
|
5767
|
+
revoked_at?: string | undefined;
|
|
5601
5768
|
pkcs7?: string | undefined;
|
|
5602
5769
|
current?: boolean | undefined;
|
|
5603
5770
|
next?: boolean | undefined;
|
|
@@ -5605,7 +5772,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5605
5772
|
current_since?: string | undefined;
|
|
5606
5773
|
current_until?: string | undefined;
|
|
5607
5774
|
revoked?: boolean | undefined;
|
|
5608
|
-
revoked_at?: string | undefined;
|
|
5609
5775
|
}[];
|
|
5610
5776
|
outputFormat: "json" | "text";
|
|
5611
5777
|
status: 200;
|
|
@@ -5628,6 +5794,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5628
5794
|
cert: string;
|
|
5629
5795
|
fingerprint: string;
|
|
5630
5796
|
thumbprint: string;
|
|
5797
|
+
revoked_at?: string | undefined;
|
|
5631
5798
|
pkcs7?: string | undefined;
|
|
5632
5799
|
current?: boolean | undefined;
|
|
5633
5800
|
next?: boolean | undefined;
|
|
@@ -5635,7 +5802,6 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
5635
5802
|
current_since?: string | undefined;
|
|
5636
5803
|
current_until?: string | undefined;
|
|
5637
5804
|
revoked?: boolean | undefined;
|
|
5638
|
-
revoked_at?: string | undefined;
|
|
5639
5805
|
};
|
|
5640
5806
|
outputFormat: "json" | "text";
|
|
5641
5807
|
status: 200;
|
|
@@ -6099,24 +6265,52 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6099
6265
|
};
|
|
6100
6266
|
output: {
|
|
6101
6267
|
created_at: string;
|
|
6268
|
+
updated_at: string;
|
|
6102
6269
|
user_id: string;
|
|
6270
|
+
id: string;
|
|
6103
6271
|
client_id: string;
|
|
6104
|
-
expires_at: string;
|
|
6105
6272
|
used_at: string;
|
|
6106
|
-
|
|
6107
|
-
|
|
6273
|
+
device: {
|
|
6274
|
+
last_ip: string;
|
|
6275
|
+
initial_user_agent: string;
|
|
6276
|
+
initial_ip: string;
|
|
6277
|
+
initial_asn: string;
|
|
6278
|
+
last_user_agent: string;
|
|
6279
|
+
last_asn: string;
|
|
6280
|
+
};
|
|
6281
|
+
clients: string[];
|
|
6282
|
+
authenticated_at: string;
|
|
6283
|
+
last_interaction_at: string;
|
|
6284
|
+
expires_at?: string | undefined;
|
|
6285
|
+
session_id?: string | undefined;
|
|
6286
|
+
revoked_at?: string | undefined;
|
|
6287
|
+
idle_expires_at?: string | undefined;
|
|
6108
6288
|
}[] | {
|
|
6109
6289
|
length: number;
|
|
6110
6290
|
start: number;
|
|
6111
6291
|
limit: number;
|
|
6112
6292
|
sessions: {
|
|
6113
6293
|
created_at: string;
|
|
6294
|
+
updated_at: string;
|
|
6114
6295
|
user_id: string;
|
|
6296
|
+
id: string;
|
|
6115
6297
|
client_id: string;
|
|
6116
|
-
expires_at: string;
|
|
6117
6298
|
used_at: string;
|
|
6118
|
-
|
|
6119
|
-
|
|
6299
|
+
device: {
|
|
6300
|
+
last_ip: string;
|
|
6301
|
+
initial_user_agent: string;
|
|
6302
|
+
initial_ip: string;
|
|
6303
|
+
initial_asn: string;
|
|
6304
|
+
last_user_agent: string;
|
|
6305
|
+
last_asn: string;
|
|
6306
|
+
};
|
|
6307
|
+
clients: string[];
|
|
6308
|
+
authenticated_at: string;
|
|
6309
|
+
last_interaction_at: string;
|
|
6310
|
+
expires_at?: string | undefined;
|
|
6311
|
+
session_id?: string | undefined;
|
|
6312
|
+
revoked_at?: string | undefined;
|
|
6313
|
+
idle_expires_at?: string | undefined;
|
|
6120
6314
|
}[];
|
|
6121
6315
|
};
|
|
6122
6316
|
outputFormat: "json" | "text";
|