@inai-dev/types 1.4.0 → 1.5.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/index.d.cts +16 -5
- package/dist/index.d.ts +16 -5
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -61,7 +61,7 @@ interface JWTClaims {
|
|
|
61
61
|
|
|
62
62
|
interface UserResource {
|
|
63
63
|
id: string;
|
|
64
|
-
tenantId
|
|
64
|
+
tenantId?: string;
|
|
65
65
|
email: string;
|
|
66
66
|
firstName: string | null;
|
|
67
67
|
lastName: string | null;
|
|
@@ -69,8 +69,8 @@ interface UserResource {
|
|
|
69
69
|
isActive: boolean;
|
|
70
70
|
emailVerified: boolean;
|
|
71
71
|
mfaEnabled: boolean;
|
|
72
|
-
externalId
|
|
73
|
-
roles
|
|
72
|
+
externalId?: string | null;
|
|
73
|
+
roles?: string[];
|
|
74
74
|
createdAt: string;
|
|
75
75
|
updatedAt: string;
|
|
76
76
|
}
|
|
@@ -82,6 +82,13 @@ interface PlatformUserResource {
|
|
|
82
82
|
lastName: string | null;
|
|
83
83
|
avatarUrl: string | null;
|
|
84
84
|
roles: string[];
|
|
85
|
+
permissions: string[];
|
|
86
|
+
tenant: {
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
slug: string;
|
|
90
|
+
plan: string;
|
|
91
|
+
} | null;
|
|
85
92
|
createdAt: string;
|
|
86
93
|
updatedAt: string;
|
|
87
94
|
}
|
|
@@ -111,6 +118,7 @@ interface ApplicationResource {
|
|
|
111
118
|
domain: string | null;
|
|
112
119
|
logoUrl: string | null;
|
|
113
120
|
homeUrl: string | null;
|
|
121
|
+
callbackUrls: string[] | null;
|
|
114
122
|
isActive: boolean;
|
|
115
123
|
settings: Record<string, unknown> | null;
|
|
116
124
|
authConfig: Record<string, unknown> | null;
|
|
@@ -185,6 +193,7 @@ interface LoginResult {
|
|
|
185
193
|
refresh_token?: string;
|
|
186
194
|
token_type?: string;
|
|
187
195
|
expires_in?: number;
|
|
196
|
+
user?: UserResource;
|
|
188
197
|
}
|
|
189
198
|
interface MFAChallengeParams {
|
|
190
199
|
mfa_token: string;
|
|
@@ -208,9 +217,11 @@ interface SignUpResult {
|
|
|
208
217
|
error?: string;
|
|
209
218
|
}
|
|
210
219
|
interface InAIAuthErrorBody {
|
|
211
|
-
|
|
220
|
+
type: string;
|
|
221
|
+
title: string;
|
|
222
|
+
status: number;
|
|
212
223
|
detail: string;
|
|
213
|
-
|
|
224
|
+
instance?: string;
|
|
214
225
|
}
|
|
215
226
|
|
|
216
227
|
export type { ApiKeyResource, ApplicationResource, ApplicationStats, AuthObject, EnvironmentResource, InAIAuthConfig, InAIAuthErrorBody, InAIAuthSDKConfig, InAIMiddlewareConfig, JWTClaims, LoginParams, LoginResult, MFAChallengeParams, OrganizationResource, PaginatedResult, PlatformUserResource, ProtectedAuthObject, ServerAuthObject, SessionResource, SignInResult, SignUpResult, TokenPair, UserResource };
|
package/dist/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ interface JWTClaims {
|
|
|
61
61
|
|
|
62
62
|
interface UserResource {
|
|
63
63
|
id: string;
|
|
64
|
-
tenantId
|
|
64
|
+
tenantId?: string;
|
|
65
65
|
email: string;
|
|
66
66
|
firstName: string | null;
|
|
67
67
|
lastName: string | null;
|
|
@@ -69,8 +69,8 @@ interface UserResource {
|
|
|
69
69
|
isActive: boolean;
|
|
70
70
|
emailVerified: boolean;
|
|
71
71
|
mfaEnabled: boolean;
|
|
72
|
-
externalId
|
|
73
|
-
roles
|
|
72
|
+
externalId?: string | null;
|
|
73
|
+
roles?: string[];
|
|
74
74
|
createdAt: string;
|
|
75
75
|
updatedAt: string;
|
|
76
76
|
}
|
|
@@ -82,6 +82,13 @@ interface PlatformUserResource {
|
|
|
82
82
|
lastName: string | null;
|
|
83
83
|
avatarUrl: string | null;
|
|
84
84
|
roles: string[];
|
|
85
|
+
permissions: string[];
|
|
86
|
+
tenant: {
|
|
87
|
+
id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
slug: string;
|
|
90
|
+
plan: string;
|
|
91
|
+
} | null;
|
|
85
92
|
createdAt: string;
|
|
86
93
|
updatedAt: string;
|
|
87
94
|
}
|
|
@@ -111,6 +118,7 @@ interface ApplicationResource {
|
|
|
111
118
|
domain: string | null;
|
|
112
119
|
logoUrl: string | null;
|
|
113
120
|
homeUrl: string | null;
|
|
121
|
+
callbackUrls: string[] | null;
|
|
114
122
|
isActive: boolean;
|
|
115
123
|
settings: Record<string, unknown> | null;
|
|
116
124
|
authConfig: Record<string, unknown> | null;
|
|
@@ -185,6 +193,7 @@ interface LoginResult {
|
|
|
185
193
|
refresh_token?: string;
|
|
186
194
|
token_type?: string;
|
|
187
195
|
expires_in?: number;
|
|
196
|
+
user?: UserResource;
|
|
188
197
|
}
|
|
189
198
|
interface MFAChallengeParams {
|
|
190
199
|
mfa_token: string;
|
|
@@ -208,9 +217,11 @@ interface SignUpResult {
|
|
|
208
217
|
error?: string;
|
|
209
218
|
}
|
|
210
219
|
interface InAIAuthErrorBody {
|
|
211
|
-
|
|
220
|
+
type: string;
|
|
221
|
+
title: string;
|
|
222
|
+
status: number;
|
|
212
223
|
detail: string;
|
|
213
|
-
|
|
224
|
+
instance?: string;
|
|
214
225
|
}
|
|
215
226
|
|
|
216
227
|
export type { ApiKeyResource, ApplicationResource, ApplicationStats, AuthObject, EnvironmentResource, InAIAuthConfig, InAIAuthErrorBody, InAIAuthSDKConfig, InAIMiddlewareConfig, JWTClaims, LoginParams, LoginResult, MFAChallengeParams, OrganizationResource, PaginatedResult, PlatformUserResource, ProtectedAuthObject, ServerAuthObject, SessionResource, SignInResult, SignUpResult, TokenPair, UserResource };
|