@casual-simulation/aux-vm 3.2.7-alpha.7049482266 → 3.2.7-alpha.7120895964
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
|
@@ -146,6 +146,10 @@ export interface OAuthRedirectRequest {
|
|
|
146
146
|
* - null indicates that the user should be asked.
|
|
147
147
|
*/
|
|
148
148
|
export type LoginHint = 'sign in' | 'sign up' | null;
|
|
149
|
+
export interface PolicyUrls {
|
|
150
|
+
privacyPolicyUrl: string;
|
|
151
|
+
termsOfServiceUrl: string;
|
|
152
|
+
}
|
|
149
153
|
/**
|
|
150
154
|
* Defines an interface for an object that is able to communicate with an authentication service.
|
|
151
155
|
*/
|
|
@@ -279,5 +283,10 @@ export interface AuxAuth {
|
|
|
279
283
|
* Only supported on protocol version 7 or more.
|
|
280
284
|
*/
|
|
281
285
|
getConnectionKey(): Promise<string>;
|
|
286
|
+
/**
|
|
287
|
+
* Gets the policy URLs.
|
|
288
|
+
* Only supported on protocol version 9 or more.
|
|
289
|
+
*/
|
|
290
|
+
getPolicyUrls(): Promise<PolicyUrls>;
|
|
282
291
|
}
|
|
283
292
|
//# sourceMappingURL=AuxAuth.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AuthData } from '@casual-simulation/aux-common';
|
|
2
2
|
import { CreatePublicRecordKeyResult, IsValidDisplayNameResult, IsValidEmailAddressResult, PublicRecordKeyPolicy } from '@casual-simulation/aux-records';
|
|
3
3
|
import { Observable, SubscriptionLike } from 'rxjs';
|
|
4
|
-
import { LoginHint, LoginStatus, LoginUIStatus, PrivoSignUpInfo } from '../auth/AuxAuth';
|
|
4
|
+
import { LoginHint, LoginStatus, LoginUIStatus, PolicyUrls, PrivoSignUpInfo } from '../auth/AuxAuth';
|
|
5
5
|
/**
|
|
6
6
|
* Defines an interface for objects that are able to keep track of the user's authentication state.
|
|
7
7
|
*/
|
|
@@ -123,5 +123,9 @@ export interface AuthHelperInterface extends SubscriptionLike {
|
|
|
123
123
|
* Logs the user out.
|
|
124
124
|
*/
|
|
125
125
|
logout(): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Gets the URLs for the different policies (privacy policy, terms of service, etc.).
|
|
128
|
+
*/
|
|
129
|
+
getPolicyUrls(): Promise<PolicyUrls>;
|
|
126
130
|
}
|
|
127
131
|
//# 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.7-alpha.
|
|
3
|
+
"version": "3.2.7-alpha.7120895964",
|
|
4
4
|
"description": "A set of abstractions required to securely run an AUX.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aux"
|
|
@@ -39,19 +39,16 @@
|
|
|
39
39
|
"url": "https://github.com/casual-simulation/casualos/issues"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@casual-simulation/aux-common": "^3.2.7-alpha.
|
|
43
|
-
"@casual-simulation/aux-records": "^3.2.7-alpha.
|
|
44
|
-
"@casual-simulation/aux-runtime": "^3.2.7-alpha.
|
|
42
|
+
"@casual-simulation/aux-common": "^3.2.7-alpha.7120895964",
|
|
43
|
+
"@casual-simulation/aux-records": "^3.2.7-alpha.7120895964",
|
|
44
|
+
"@casual-simulation/aux-runtime": "^3.2.7-alpha.7120895964",
|
|
45
45
|
"@casual-simulation/crypto": "^3.2.0",
|
|
46
46
|
"@casual-simulation/fast-json-stable-stringify": "^3.1.11",
|
|
47
47
|
"@casual-simulation/timesync": "^3.1.28",
|
|
48
48
|
"@casual-simulation/undom": "^3.1.22",
|
|
49
|
-
"esbuild": "^0.13.8",
|
|
50
|
-
"esbuild-wasm": "^0.8.43",
|
|
51
49
|
"lodash": "4.17.21",
|
|
52
|
-
"rollup": "^2.39.0",
|
|
53
50
|
"rxjs": "7.5.7",
|
|
54
51
|
"uuid": "^8.3.2"
|
|
55
52
|
},
|
|
56
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "08ab658f0aa355604922e4fde4cd439e6d397d04"
|
|
57
54
|
}
|
package/vm/AuxConfig.d.ts
CHANGED
|
@@ -83,6 +83,10 @@ export interface AuxConfigParameters {
|
|
|
83
83
|
* - "builder" indicates that the instance has been configured for building AUXes.
|
|
84
84
|
*/
|
|
85
85
|
playerMode?: 'player' | 'builder';
|
|
86
|
+
/**
|
|
87
|
+
* Whether privo login is required.
|
|
88
|
+
*/
|
|
89
|
+
requirePrivoLogin?: boolean;
|
|
86
90
|
}
|
|
87
91
|
export interface AuxTimeSyncConfiguration {
|
|
88
92
|
/**
|
package/vm/AuxConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuxConfig.js","sourceRoot":"","sources":["AuxConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,QAAQ,GAIX,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"AuxConfig.js","sourceRoot":"","sources":["AuxConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,QAAQ,GAIX,MAAM,+BAA+B,CAAC;AA2HvC,MAAM,UAAU,kBAAkB,CAAC,MAA2B;;IAC1D,IAAI,CAAC,MAAM,EAAE;QACT,OAAO,IAAI,CAAC;KACf;IACD,qCACI,IAAI,EAAE,MAAM,CAAC,WAAW,IACrB,kBAAkB,CAAC,MAAM,CAAC,OAAO,CAAC,KACrC,UAAU,EAAE,MAAA,MAAM,CAAC,UAAU,mCAAI,SAAS,IAC5C;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAe;IAC9C,IAAI,CAAC,OAAO,EAAE;QACV,OAAO;YACH,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;SACd,CAAC;KACL;IAC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