@wix/himalaya-cli 0.1797.0 → 0.1798.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/base44/src/index.d.ts +14 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/base44.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{04eac2ea24e0edfcc5aaa757dc5d06c6bf35c3c5ce9ccbb448b305db05715492.bin → 7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +43 -43
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/sdk-reference.json +9 -2
- package/guides/web-page-sdk-reference.md +1 -1
- package/package.json +2 -2
- package/templates/brandy/dev/index.ts +109 -19
- package/templates/brandy/tier5-src/himi-brandy-base44-account/index.ts +70 -15
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/base44/src/index.d.ts
CHANGED
|
@@ -29,7 +29,16 @@ export interface AuthStatus {
|
|
|
29
29
|
export interface LoginResult {
|
|
30
30
|
user: Base44User;
|
|
31
31
|
}
|
|
32
|
-
export type AuthProvider = "google";
|
|
32
|
+
export type AuthProvider = "google" | "microsoft" | "facebook" | "apple" | "sso";
|
|
33
|
+
/** What `auth.providers()` answers. */
|
|
34
|
+
export interface SignInMethods {
|
|
35
|
+
/** Email + password (and its verify / reset steps) is on. */
|
|
36
|
+
password: boolean;
|
|
37
|
+
/** The hosted providers the app turned on, in Base44's order. */
|
|
38
|
+
providers: AuthProvider[];
|
|
39
|
+
/** Whether this host can complete a provider sign-in at all. */
|
|
40
|
+
providerSignIn: boolean;
|
|
41
|
+
}
|
|
33
42
|
/** A rejected Base44 call. `status` is the HTTP status (0 when the request never got a reply).
|
|
34
43
|
* An `Error` with extra fields rather than a subclass: Tier-5 bundles target an engine
|
|
35
44
|
* profile without `class` syntax, so use {@link isBase44Error} instead of `instanceof`. */
|
|
@@ -49,6 +58,10 @@ export declare const auth: {
|
|
|
49
58
|
loginViaEmailPassword(email: string, password: string): Promise<LoginResult>;
|
|
50
59
|
/** Sign in with a provider using the native system browser. The token stays native. */
|
|
51
60
|
loginWithProvider(provider?: AuthProvider): Promise<LoginResult>;
|
|
61
|
+
/** The sign-in methods this Base44 app turned on, from its public app record. `providerSignIn`
|
|
62
|
+
* is false where this host cannot complete a provider sign-in (the web host, or a build whose
|
|
63
|
+
* site host is not bound) — hide provider buttons then. */
|
|
64
|
+
providers(): Promise<SignInMethods>;
|
|
52
65
|
register(email: string, password: string): Promise<JsonObject>;
|
|
53
66
|
/** Send a one-time login code to `email`. */
|
|
54
67
|
loginViaOtp(email: string): Promise<JsonObject>;
|
|
@@ -3,7 +3,7 @@ export declare const CAPABILITY_REGISTRY: {
|
|
|
3
3
|
readonly app_info: readonly ["get"];
|
|
4
4
|
readonly audio_record: readonly ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"];
|
|
5
5
|
readonly barcode_detection: readonly ["availability", "detect"];
|
|
6
|
-
readonly base44: readonly ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"];
|
|
6
|
+
readonly base44: readonly ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"];
|
|
7
7
|
readonly biometrics: readonly ["available", "confirm"];
|
|
8
8
|
readonly browser_auth: readonly ["start"];
|
|
9
9
|
readonly calendar: readonly ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"];
|
|
@@ -18,7 +18,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
18
18
|
"app_info": ["get"],
|
|
19
19
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
20
20
|
"barcode_detection": ["availability", "detect"],
|
|
21
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
22
22
|
"biometrics": ["available", "confirm"],
|
|
23
23
|
"browser_auth": ["start"],
|
|
24
24
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -73,6 +73,12 @@ var auth = {
|
|
|
73
73
|
async loginWithProvider(provider = "google") {
|
|
74
74
|
return unwrap(await dispatch2("capability.base44.authLoginWithProvider", { provider }));
|
|
75
75
|
},
|
|
76
|
+
/** The sign-in methods this Base44 app turned on, from its public app record. `providerSignIn`
|
|
77
|
+
* is false where this host cannot complete a provider sign-in (the web host, or a build whose
|
|
78
|
+
* site host is not bound) — hide provider buttons then. */
|
|
79
|
+
async providers() {
|
|
80
|
+
return unwrap(await dispatch2("capability.base44.authProviders"));
|
|
81
|
+
},
|
|
76
82
|
async register(email, password) {
|
|
77
83
|
return unwrap(await dispatch2("capability.base44.authRegister", { email, password }));
|
|
78
84
|
},
|
|
@@ -18,7 +18,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
18
18
|
"app_info": ["get"],
|
|
19
19
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
20
20
|
"barcode_detection": ["availability", "detect"],
|
|
21
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
22
22
|
"biometrics": ["available", "confirm"],
|
|
23
23
|
"browser_auth": ["start"],
|
|
24
24
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -18,7 +18,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
18
18
|
"app_info": ["get"],
|
|
19
19
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
20
20
|
"barcode_detection": ["availability", "detect"],
|
|
21
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
22
22
|
"biometrics": ["available", "confirm"],
|
|
23
23
|
"browser_auth": ["start"],
|
|
24
24
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -18,7 +18,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
18
18
|
"app_info": ["get"],
|
|
19
19
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
20
20
|
"barcode_detection": ["availability", "detect"],
|
|
21
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
22
22
|
"biometrics": ["available", "confirm"],
|
|
23
23
|
"browser_auth": ["start"],
|
|
24
24
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -18,7 +18,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
18
18
|
"app_info": ["get"],
|
|
19
19
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
20
20
|
"barcode_detection": ["availability", "detect"],
|
|
21
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
22
22
|
"biometrics": ["available", "confirm"],
|
|
23
23
|
"browser_auth": ["start"],
|
|
24
24
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -18,7 +18,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
18
18
|
"app_info": ["get"],
|
|
19
19
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
20
20
|
"barcode_detection": ["availability", "detect"],
|
|
21
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
22
22
|
"biometrics": ["available", "confirm"],
|
|
23
23
|
"browser_auth": ["start"],
|
|
24
24
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -18,7 +18,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
18
18
|
"app_info": ["get"],
|
|
19
19
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
20
20
|
"barcode_detection": ["availability", "detect"],
|
|
21
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
22
22
|
"biometrics": ["available", "confirm"],
|
|
23
23
|
"browser_auth": ["start"],
|
|
24
24
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -3,7 +3,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
3
3
|
"app_info": ["get"],
|
|
4
4
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
5
5
|
"barcode_detection": ["availability", "detect"],
|
|
6
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
6
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
7
7
|
"biometrics": ["available", "confirm"],
|
|
8
8
|
"browser_auth": ["start"],
|
|
9
9
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -18,7 +18,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
18
18
|
"app_info": ["get"],
|
|
19
19
|
"audio_record": ["cancel", "cancelSession", "getPermissionStatus", "getSession", "listSegments", "listSessions", "pause", "requestPermission", "resume", "start", "startSession", "stop", "stopSession", "subscribeLevel", "watchNext", "watchStart", "watchStop"],
|
|
20
20
|
"barcode_detection": ["availability", "detect"],
|
|
21
|
-
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
|
+
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authProviders", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
22
22
|
"biometrics": ["available", "confirm"],
|
|
23
23
|
"browser_auth": ["start"],
|
|
24
24
|
"calendar": ["createEvent", "deleteEvent", "getEvent", "getPermissionStatus", "listCalendars", "listEvents", "presentEditor", "presentViewer", "requestPermission", "updateEvent"],
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"files": [
|
|
3
3
|
{
|
|
4
4
|
"name": "sw.js",
|
|
5
|
-
"bytes":
|
|
5
|
+
"bytes": 2606652
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
"name": "host.html",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bytes": 24320
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"name": "preview-deferred/
|
|
24
|
+
"name": "preview-deferred/7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff.bin",
|
|
25
25
|
"bytes": 488215
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
],
|
|
80
80
|
"deferred": [
|
|
81
81
|
{
|
|
82
|
-
"key": "assets/pdf-
|
|
82
|
+
"key": "assets/pdf-D87DNAnY.js",
|
|
83
83
|
"contentType": "application/javascript; charset=utf-8",
|
|
84
|
-
"sha256": "
|
|
85
|
-
"file": "preview-deferred/
|
|
84
|
+
"sha256": "7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff",
|
|
85
|
+
"file": "preview-deferred/7838236432e18e6d8b08481d145add5e31d7bfe9573403d3365e141f749e13ff.bin"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"key": "assets/pdf.worker.min-BGnVRhRG.js",
|