@inai-dev/types 1.4.0 → 1.6.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 +23 -9
- package/dist/index.d.ts +23 -9
- 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,16 +82,25 @@ 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
|
}
|
|
88
95
|
interface SessionResource {
|
|
89
96
|
id: string;
|
|
90
97
|
userId: string;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
userEmail: string | null;
|
|
99
|
+
userAgent: string | null;
|
|
100
|
+
ipAddress: string | null;
|
|
94
101
|
expiresAt: string;
|
|
102
|
+
revokedAt: string | null;
|
|
103
|
+
createdAt: string;
|
|
95
104
|
}
|
|
96
105
|
interface OrganizationResource {
|
|
97
106
|
id: string;
|
|
@@ -99,7 +108,8 @@ interface OrganizationResource {
|
|
|
99
108
|
name: string;
|
|
100
109
|
slug: string;
|
|
101
110
|
imageUrl: string | null;
|
|
102
|
-
metadata:
|
|
111
|
+
metadata: unknown | null;
|
|
112
|
+
createdBy: string | null;
|
|
103
113
|
createdAt: string;
|
|
104
114
|
updatedAt: string;
|
|
105
115
|
}
|
|
@@ -111,6 +121,7 @@ interface ApplicationResource {
|
|
|
111
121
|
domain: string | null;
|
|
112
122
|
logoUrl: string | null;
|
|
113
123
|
homeUrl: string | null;
|
|
124
|
+
callbackUrls: string[] | null;
|
|
114
125
|
isActive: boolean;
|
|
115
126
|
settings: Record<string, unknown> | null;
|
|
116
127
|
authConfig: Record<string, unknown> | null;
|
|
@@ -185,6 +196,7 @@ interface LoginResult {
|
|
|
185
196
|
refresh_token?: string;
|
|
186
197
|
token_type?: string;
|
|
187
198
|
expires_in?: number;
|
|
199
|
+
user?: UserResource;
|
|
188
200
|
}
|
|
189
201
|
interface MFAChallengeParams {
|
|
190
202
|
mfa_token: string;
|
|
@@ -208,9 +220,11 @@ interface SignUpResult {
|
|
|
208
220
|
error?: string;
|
|
209
221
|
}
|
|
210
222
|
interface InAIAuthErrorBody {
|
|
211
|
-
|
|
223
|
+
type: string;
|
|
224
|
+
title: string;
|
|
225
|
+
status: number;
|
|
212
226
|
detail: string;
|
|
213
|
-
|
|
227
|
+
instance?: string;
|
|
214
228
|
}
|
|
215
229
|
|
|
216
230
|
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,16 +82,25 @@ 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
|
}
|
|
88
95
|
interface SessionResource {
|
|
89
96
|
id: string;
|
|
90
97
|
userId: string;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
98
|
+
userEmail: string | null;
|
|
99
|
+
userAgent: string | null;
|
|
100
|
+
ipAddress: string | null;
|
|
94
101
|
expiresAt: string;
|
|
102
|
+
revokedAt: string | null;
|
|
103
|
+
createdAt: string;
|
|
95
104
|
}
|
|
96
105
|
interface OrganizationResource {
|
|
97
106
|
id: string;
|
|
@@ -99,7 +108,8 @@ interface OrganizationResource {
|
|
|
99
108
|
name: string;
|
|
100
109
|
slug: string;
|
|
101
110
|
imageUrl: string | null;
|
|
102
|
-
metadata:
|
|
111
|
+
metadata: unknown | null;
|
|
112
|
+
createdBy: string | null;
|
|
103
113
|
createdAt: string;
|
|
104
114
|
updatedAt: string;
|
|
105
115
|
}
|
|
@@ -111,6 +121,7 @@ interface ApplicationResource {
|
|
|
111
121
|
domain: string | null;
|
|
112
122
|
logoUrl: string | null;
|
|
113
123
|
homeUrl: string | null;
|
|
124
|
+
callbackUrls: string[] | null;
|
|
114
125
|
isActive: boolean;
|
|
115
126
|
settings: Record<string, unknown> | null;
|
|
116
127
|
authConfig: Record<string, unknown> | null;
|
|
@@ -185,6 +196,7 @@ interface LoginResult {
|
|
|
185
196
|
refresh_token?: string;
|
|
186
197
|
token_type?: string;
|
|
187
198
|
expires_in?: number;
|
|
199
|
+
user?: UserResource;
|
|
188
200
|
}
|
|
189
201
|
interface MFAChallengeParams {
|
|
190
202
|
mfa_token: string;
|
|
@@ -208,9 +220,11 @@ interface SignUpResult {
|
|
|
208
220
|
error?: string;
|
|
209
221
|
}
|
|
210
222
|
interface InAIAuthErrorBody {
|
|
211
|
-
|
|
223
|
+
type: string;
|
|
224
|
+
title: string;
|
|
225
|
+
status: number;
|
|
212
226
|
detail: string;
|
|
213
|
-
|
|
227
|
+
instance?: string;
|
|
214
228
|
}
|
|
215
229
|
|
|
216
230
|
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 };
|