@casual-simulation/aux-vm 3.2.16 → 3.2.17-alpha.8117520706
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/auth/AuxAuth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthData, AvailablePermissions, RemoteCausalRepoProtocol } from '@casual-simulation/aux-common';
|
|
2
|
-
import { CreatePublicRecordKeyResult, FormError, GetPlayerConfigResult, GrantMarkerPermissionResult, GrantResourcePermissionResult, IsValidDisplayNameResult, IsValidEmailAddressResult, PublicRecordKeyPolicy } from '@casual-simulation/aux-records';
|
|
2
|
+
import { CompleteLoginSuccess, CompleteWebAuthnLoginSuccess, CreatePublicRecordKeyResult, FormError, GetPlayerConfigResult, GrantMarkerPermissionResult, GrantResourcePermissionResult, IsValidDisplayNameResult, IsValidEmailAddressResult, PublicRecordKeyPolicy } from '@casual-simulation/aux-records';
|
|
3
3
|
import { AddressType } from '@casual-simulation/aux-records/AuthStore';
|
|
4
4
|
/**
|
|
5
5
|
* Defines an interface that represents the login state of the user.
|
|
@@ -18,7 +18,7 @@ export interface LoginStatus {
|
|
|
18
18
|
*/
|
|
19
19
|
authData?: AuthData;
|
|
20
20
|
}
|
|
21
|
-
export type LoginUIStatus = LoginUINoStatus | LoginUIAddressStatus | LoginUICheckAddressStatus | LoginUIShowIframe | LoginUIHasAccount | LoginUIPrivoSignUp | LoginUIUpdatePasswordLink;
|
|
21
|
+
export type LoginUIStatus = LoginUINoStatus | LoginUIAddressStatus | LoginUICheckAddressStatus | LoginUIShowIframe | LoginUIHasAccount | LoginUIPrivoSignUp | LoginUIUpdatePasswordLink | LoginUIRegisterWebAuthn;
|
|
22
22
|
export interface LoginUINoStatus {
|
|
23
23
|
page: false;
|
|
24
24
|
}
|
|
@@ -44,6 +44,10 @@ export interface LoginUIAddressStatus {
|
|
|
44
44
|
* Whether SMS phone numbers are supported for login.
|
|
45
45
|
*/
|
|
46
46
|
supportsSms?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Whether WebAuthn is supported for login.
|
|
49
|
+
*/
|
|
50
|
+
supportsWebAuthn?: boolean;
|
|
47
51
|
}
|
|
48
52
|
export interface LoginUICheckAddressStatus {
|
|
49
53
|
page: 'check_address' | 'check_email';
|
|
@@ -112,6 +116,11 @@ export interface LoginUIUpdatePasswordLink {
|
|
|
112
116
|
*/
|
|
113
117
|
providedParentEmail: boolean;
|
|
114
118
|
}
|
|
119
|
+
export interface LoginUIRegisterWebAuthn {
|
|
120
|
+
page: 'show_register_webauthn';
|
|
121
|
+
apiEndpoint: string;
|
|
122
|
+
authenticationHeaders: Record<string, string>;
|
|
123
|
+
}
|
|
115
124
|
export interface PrivoSignUpInfo {
|
|
116
125
|
/**
|
|
117
126
|
* The email address that the user entered.
|
|
@@ -313,5 +322,11 @@ export interface AuxAuth {
|
|
|
313
322
|
* @param permission The permission that should be granted.
|
|
314
323
|
*/
|
|
315
324
|
grantPermission(recordName: string, permission: AvailablePermissions): Promise<GrantMarkerPermissionResult | GrantResourcePermissionResult>;
|
|
325
|
+
/**
|
|
326
|
+
* Provides the given login result to be used for the login process.
|
|
327
|
+
* Only supported on protocol version 10 or more.
|
|
328
|
+
* @param result The result that should be used.
|
|
329
|
+
*/
|
|
330
|
+
provideLoginResult(result: CompleteLoginSuccess | CompleteWebAuthnLoginSuccess): Promise<void>;
|
|
316
331
|
}
|
|
317
332
|
//# sourceMappingURL=AuxAuth.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AuthData, AvailablePermissions, RemoteCausalRepoProtocol } from '@casual-simulation/aux-common';
|
|
2
|
-
import { CreatePublicRecordKeyResult, GetPlayerConfigResult, GrantMarkerPermissionResult, GrantResourcePermissionResult, IsValidDisplayNameResult, IsValidEmailAddressResult, PublicRecordKeyPolicy } from '@casual-simulation/aux-records';
|
|
2
|
+
import { CompleteLoginSuccess, CompleteWebAuthnLoginSuccess, CreatePublicRecordKeyResult, GetPlayerConfigResult, GrantMarkerPermissionResult, GrantResourcePermissionResult, IsValidDisplayNameResult, IsValidEmailAddressResult, PublicRecordKeyPolicy } from '@casual-simulation/aux-records';
|
|
3
3
|
import { Observable, SubscriptionLike } from 'rxjs';
|
|
4
4
|
import { LoginHint, LoginStatus, LoginUIStatus, PolicyUrls, PrivoSignUpInfo } from '../auth/AuxAuth';
|
|
5
5
|
/**
|
|
@@ -148,5 +148,10 @@ export interface AuthHelperInterface extends SubscriptionLike {
|
|
|
148
148
|
* @param permission The permission that should be granted.
|
|
149
149
|
*/
|
|
150
150
|
grantPermission(recordName: string, permission: AvailablePermissions): Promise<GrantMarkerPermissionResult | GrantResourcePermissionResult>;
|
|
151
|
+
/**
|
|
152
|
+
* Provides the given login result to be used for the login process.
|
|
153
|
+
* @param result The result that should be used.
|
|
154
|
+
*/
|
|
155
|
+
provideLoginResult(result: CompleteLoginSuccess | CompleteWebAuthnLoginSuccess): Promise<void>;
|
|
151
156
|
}
|
|
152
157
|
//# sourceMappingURL=AuthHelperInterface.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casual-simulation/aux-vm",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.17-alpha.8117520706",
|
|
4
4
|
"description": "A set of abstractions required to securely run an AUX.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aux"
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
"url": "https://github.com/casual-simulation/casualos/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@casual-simulation/aux-common": "^3.2.
|
|
43
|
-
"@casual-simulation/aux-records": "^3.2.
|
|
44
|
-
"@casual-simulation/aux-runtime": "^3.2.
|
|
42
|
+
"@casual-simulation/aux-common": "^3.2.17-alpha.8117520706",
|
|
43
|
+
"@casual-simulation/aux-records": "^3.2.17-alpha.8117520706",
|
|
44
|
+
"@casual-simulation/aux-runtime": "^3.2.17-alpha.8117520706",
|
|
45
45
|
"@casual-simulation/crypto": "^3.2.7",
|
|
46
46
|
"@casual-simulation/fast-json-stable-stringify": "^3.1.11",
|
|
47
47
|
"@casual-simulation/timesync": "^3.2.7",
|
|
48
|
-
"@casual-simulation/undom": "^3.2.
|
|
48
|
+
"@casual-simulation/undom": "^3.2.17-alpha.8117520706",
|
|
49
49
|
"axios": "1.6.2",
|
|
50
50
|
"comlink": "4.3.1",
|
|
51
51
|
"hash.js": "1.1.7",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"rxjs": "7.5.7",
|
|
57
57
|
"uuid": "^8.3.2"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "8d69f4bd725a2b24818f0706e7afff24fef7e57c"
|
|
60
60
|
}
|