@wix/himalaya-cli 0.1727.0 → 0.1729.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/barcode-detection/src/index.d.ts +39 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/entity-extraction/src/index.d.ts +34 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/image-labeling/src/index.d.ts +32 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +7 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-embedding/src/index.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/text-recognition/src/index.d.ts +43 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/translation/src/index.d.ts +51 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +12 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/barcode-detection.mjs +36 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/entity-extraction.mjs +38 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/image-labeling.mjs +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-embedding.mjs +76 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/text-recognition.mjs +41 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/translation.mjs +66 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +24 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{962f3ed94715c3a8d073254239901e2ffd5bb99015fd5d37ae36eaa0f0dce2be.bin → ad21c55bd7cec9a3951ff818f08792daab5d3698b7e54af1b1764499335604ea.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +531 -91
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-config.md +1 -1
- package/guides/capabilities.md +6 -0
- package/guides/himi-test.md +4 -2
- package/guides/importable-sdks.md +6 -0
- package/guides/qa-builds.md +104 -1
- package/guides/release-notes.md +30 -0
- package/guides/sdk-reference.json +448 -0
- package/guides/tier-5-add-a-screen.md +18 -0
- package/guides/web-page-sdk-reference.md +6 -0
- package/package.json +2 -2
- package/templates/beauty-salon-owner/dev/index.ts +35 -0
- package/templates/branded-lite/dev/index.ts +16 -0
- package/templates/community-club/dev/index.ts +2 -0
- package/templates/community-club-owner/dev/index.ts +35 -0
- package/templates/conference/dev/index.ts +1 -0
- package/templates/events-meetups/dev/index.ts +2 -0
- package/templates/events-meetups-owner/dev/index.ts +31 -0
- package/templates/gym-fitness/dev/index.ts +1 -0
- package/templates/gym-fitness-owner/dev/index.ts +37 -0
- package/templates/nonprofit-cause/dev/index.ts +2 -0
- package/templates/nonprofit-cause-owner/dev/index.ts +33 -0
- package/templates/owner-lite/dev/index.ts +37 -0
- package/templates/podcast-creator/dev/index.ts +2 -0
- package/templates/podcast-creator-owner/dev/index.ts +35 -0
- package/templates/portfolio-creative/dev/index.ts +2 -0
- package/templates/portfolio-creative-owner/dev/index.ts +35 -0
- package/templates/restaurant/dev/index.ts +2 -0
- package/templates/restaurant-owner/dev/index.ts +37 -0
- package/templates/retail-store-owner/dev/index.ts +33 -0
- package/templates/yoga-studio/dev/index.ts +2 -0
- package/templates/yoga-studio-owner/dev/index.ts +33 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { FileHandle } from "@wix/himalaya/sdk-types";
|
|
2
|
+
/** A file the worker holds: a FileHandle, or just its `uri` (+ `ownerScope`). */
|
|
3
|
+
export type ImageInput = FileHandle | {
|
|
4
|
+
uri: string;
|
|
5
|
+
ownerScope?: string;
|
|
6
|
+
};
|
|
7
|
+
export type BarcodeFormat = "qr" | "aztec" | "data_matrix" | "pdf417" | "ean13" | "ean8" | "upc_a" | "upc_e" | "code128" | "code39" | "code93" | "codabar" | "itf" | "unknown";
|
|
8
|
+
/** A rectangle normalised to 0..1 of the image's width / height, origin top-left. */
|
|
9
|
+
export interface NormalizedBox {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
}
|
|
15
|
+
export interface BarcodeDetectionAvailability {
|
|
16
|
+
available: boolean;
|
|
17
|
+
/** "apple_vision" | "mlkit" | "barcode_detector" when available. */
|
|
18
|
+
engine?: string;
|
|
19
|
+
reason?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface DetectOptions {
|
|
22
|
+
/** Only these formats (default: all). Narrowing speeds detection up. */
|
|
23
|
+
formats?: BarcodeFormat[];
|
|
24
|
+
}
|
|
25
|
+
export interface Barcode {
|
|
26
|
+
/** The decoded payload (a URL, a product number, a Wi-Fi config…). */
|
|
27
|
+
value: string;
|
|
28
|
+
format: BarcodeFormat;
|
|
29
|
+
box: NormalizedBox;
|
|
30
|
+
}
|
|
31
|
+
export interface DetectResult {
|
|
32
|
+
barcodes: Barcode[];
|
|
33
|
+
engine: string;
|
|
34
|
+
}
|
|
35
|
+
/** Whether on-device barcode detection is available on this device / host (spec R8). Never rejects. */
|
|
36
|
+
export declare function availability(): Promise<BarcodeDetectionAvailability>;
|
|
37
|
+
/** Find and decode the barcodes in an image the worker holds. Rejects when unavailable or the file is missing. */
|
|
38
|
+
export declare function detect(image: ImageInput, opts?: DetectOptions): Promise<DetectResult>;
|
|
39
|
+
export declare const version = 1;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type EntityType = "date_time" | "address" | "phone" | "email" | "url" | "money" | "flight_number" | "tracking_number" | "iban" | "payment_card" | "isbn" | "person" | "place" | "organization";
|
|
2
|
+
export interface EntityExtractionAvailability {
|
|
3
|
+
available: boolean;
|
|
4
|
+
/** "apple_natural_language" | "mlkit" when available. */
|
|
5
|
+
engine?: string;
|
|
6
|
+
reason?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ExtractOptions {
|
|
9
|
+
/** BCP-47 language of the text. Default "en". */
|
|
10
|
+
language?: string;
|
|
11
|
+
/** Only these types (default: all the engine supports). */
|
|
12
|
+
types?: EntityType[];
|
|
13
|
+
}
|
|
14
|
+
export interface Entity {
|
|
15
|
+
/** The entity as it appears in the text. */
|
|
16
|
+
text: string;
|
|
17
|
+
/** Start index into the input (inclusive). */
|
|
18
|
+
start: number;
|
|
19
|
+
/** End index into the input (exclusive). */
|
|
20
|
+
end: number;
|
|
21
|
+
type: EntityType;
|
|
22
|
+
/** A normalised form when the engine has one — ISO-8601 for date_time, the URL for url, … */
|
|
23
|
+
value?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ExtractResult {
|
|
26
|
+
/** In order of appearance. */
|
|
27
|
+
entities: Entity[];
|
|
28
|
+
engine: string;
|
|
29
|
+
}
|
|
30
|
+
/** Whether on-device entity extraction is available for a language (default "en"). Never rejects. */
|
|
31
|
+
export declare function availability(language?: string): Promise<EntityExtractionAvailability>;
|
|
32
|
+
/** Extract entities from text on device. Rejects when unavailable. */
|
|
33
|
+
export declare function extract(text: string, opts?: ExtractOptions): Promise<ExtractResult>;
|
|
34
|
+
export declare const version = 1;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { FileHandle } from "@wix/himalaya/sdk-types";
|
|
2
|
+
/** A file the worker holds: a FileHandle, or just its `uri` (+ `ownerScope`). */
|
|
3
|
+
export type ImageInput = FileHandle | {
|
|
4
|
+
uri: string;
|
|
5
|
+
ownerScope?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface ImageLabelingAvailability {
|
|
8
|
+
available: boolean;
|
|
9
|
+
/** "apple_vision" | "mlkit" when available. */
|
|
10
|
+
engine?: string;
|
|
11
|
+
reason?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LabelOptions {
|
|
14
|
+
/** Drop labels below this confidence (0..1). Default 0.5. */
|
|
15
|
+
minConfidence?: number;
|
|
16
|
+
/** At most this many labels. Default 10. */
|
|
17
|
+
maxResults?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface ImageLabel {
|
|
20
|
+
label: string;
|
|
21
|
+
confidence: number;
|
|
22
|
+
}
|
|
23
|
+
export interface LabelResult {
|
|
24
|
+
/** Most confident first. */
|
|
25
|
+
labels: ImageLabel[];
|
|
26
|
+
engine: string;
|
|
27
|
+
}
|
|
28
|
+
/** Whether on-device image labelling is available on this device / host (spec R8). Never rejects. */
|
|
29
|
+
export declare function availability(): Promise<ImageLabelingAvailability>;
|
|
30
|
+
/** Label an image the worker holds. Rejects when unavailable or the file is missing. */
|
|
31
|
+
export declare function label(image: ImageInput, opts?: LabelOptions): Promise<LabelResult>;
|
|
32
|
+
export declare const version = 1;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
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
|
+
readonly barcode_detection: readonly ["availability", "detect"];
|
|
5
6
|
readonly base44: readonly ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"];
|
|
6
7
|
readonly biometrics: readonly ["available", "confirm"];
|
|
7
8
|
readonly browser_auth: readonly ["start"];
|
|
@@ -10,6 +11,7 @@ export declare const CAPABILITY_REGISTRY: {
|
|
|
10
11
|
readonly camera: readonly ["capture", "pickDocument", "prepareImage", "scanQR"];
|
|
11
12
|
readonly clipboard: readonly ["hasImage", "hasText", "readText", "writeImage", "writeText"];
|
|
12
13
|
readonly contacts: readonly ["add", "getPermissionStatus", "pick", "presentNewContact", "requestPermission", "search"];
|
|
14
|
+
readonly entity_extraction: readonly ["availability", "extract"];
|
|
13
15
|
readonly file_picker: readonly ["pick", "pickDirectoryForExport"];
|
|
14
16
|
readonly files: readonly ["download", "export", "list", "readText", "remove", "stat", "storageInfo", "write"];
|
|
15
17
|
readonly godot: readonly ["loadPack", "release", "send"];
|
|
@@ -17,6 +19,7 @@ export declare const CAPABILITY_REGISTRY: {
|
|
|
17
19
|
readonly health: readonly ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"];
|
|
18
20
|
readonly himi_apps: readonly ["canOpen", "current", "hostInfo", "open"];
|
|
19
21
|
readonly iap: readonly ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"];
|
|
22
|
+
readonly image_labeling: readonly ["availability", "label"];
|
|
20
23
|
readonly keyboard: readonly ["dismiss"];
|
|
21
24
|
readonly legacy_import: readonly ["ack", "read"];
|
|
22
25
|
readonly live_activity: readonly ["end", "start", "update"];
|
|
@@ -38,14 +41,17 @@ export declare const CAPABILITY_REGISTRY: {
|
|
|
38
41
|
readonly speech: readonly ["availability", "recognizeOnce", "speak", "stop", "streamNext", "streamStart", "streamStop", "transcribeFile"];
|
|
39
42
|
readonly system_intents: readonly ["donate", "refreshShortcuts"];
|
|
40
43
|
readonly tasks: readonly ["backend", "create", "getPermissionStatus", "list", "remove", "requestPermission", "setCompleted"];
|
|
44
|
+
readonly text_embedding: readonly ["availability", "embed"];
|
|
45
|
+
readonly text_recognition: readonly ["availability", "recognize"];
|
|
41
46
|
readonly theme: readonly ["applyOverlay", "clearOverlay", "surfaces"];
|
|
42
47
|
readonly torch: readonly ["off", "on", "status", "toggle"];
|
|
48
|
+
readonly translation: readonly ["availability", "identifyLanguage", "prepare", "translate"];
|
|
43
49
|
readonly ui: readonly ["alert", "snackbar"];
|
|
44
50
|
readonly wix_cashier: readonly ["isAvailable", "proceedToPayment"];
|
|
45
51
|
readonly wix_chat: readonly ["getRealtimeStatus", "subscribeRealtime", "unsubscribeRealtime"];
|
|
46
52
|
};
|
|
47
53
|
/** A capability id backed by an @himalaya/* SDK binding. */
|
|
48
|
-
export type SdkCapability = "app_info" | "audio_record" | "base44" | "biometrics" | "browser_auth" | "calendar" | "calls" | "camera" | "clipboard" | "contacts" | "file_picker" | "files" | "godot" | "haptic" | "health" | "himi_apps" | "iap" | "keyboard" | "legacy_import" | "live_activity" | "local_database" | "location" | "media_playback" | "motion" | "network" | "on_device_ai" | "open_url" | "pdf" | "photos" | "presigned_upload" | "push" | "release_control" | "secure_storage" | "share" | "speaker_diarization" | "speech" | "system_intents" | "tasks" | "theme" | "torch" | "ui" | "wix_cashier" | "wix_chat";
|
|
54
|
+
export type SdkCapability = "app_info" | "audio_record" | "barcode_detection" | "base44" | "biometrics" | "browser_auth" | "calendar" | "calls" | "camera" | "clipboard" | "contacts" | "entity_extraction" | "file_picker" | "files" | "godot" | "haptic" | "health" | "himi_apps" | "iap" | "image_labeling" | "keyboard" | "legacy_import" | "live_activity" | "local_database" | "location" | "media_playback" | "motion" | "network" | "on_device_ai" | "open_url" | "pdf" | "photos" | "presigned_upload" | "push" | "release_control" | "secure_storage" | "share" | "speaker_diarization" | "speech" | "system_intents" | "tasks" | "text_embedding" | "text_recognition" | "theme" | "torch" | "translation" | "ui" | "wix_cashier" | "wix_chat";
|
|
49
55
|
/** All `capability.<id>.<verb>` action ids, flattened (the worker-bridge wire vocabulary). */
|
|
50
56
|
export declare const CAPABILITY_ACTION_IDS: readonly string[];
|
|
51
57
|
/** Capability id → the @himalaya/* package(s) a worker imports to reach it — every dispatch
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** The most texts one `embed` call takes. */
|
|
2
|
+
export declare const MAX_TEXTS_PER_CALL = 64;
|
|
3
|
+
export interface TextEmbeddingAvailability {
|
|
4
|
+
available: boolean;
|
|
5
|
+
/** "apple_natural_language" | "mediapipe" when available. */
|
|
6
|
+
engine?: string;
|
|
7
|
+
/** Vector length, when known. */
|
|
8
|
+
dimensions?: number;
|
|
9
|
+
/** Why it is unavailable — on Android, also while the model is still downloading. */
|
|
10
|
+
reason?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface EmbedResult {
|
|
13
|
+
/** One vector per input text, in the same order. */
|
|
14
|
+
vectors: number[][];
|
|
15
|
+
dimensions: number;
|
|
16
|
+
engine: string;
|
|
17
|
+
}
|
|
18
|
+
export interface RankedText {
|
|
19
|
+
text: string;
|
|
20
|
+
/** Index of the text in the input array. */
|
|
21
|
+
index: number;
|
|
22
|
+
/** Cosine similarity to the query, -1..1. */
|
|
23
|
+
score: number;
|
|
24
|
+
}
|
|
25
|
+
/** Whether on-device embeddings are available for a language (default "en"). Never rejects. */
|
|
26
|
+
export declare function availability(language?: string): Promise<TextEmbeddingAvailability>;
|
|
27
|
+
/** Embed up to {@link MAX_TEXTS_PER_CALL} texts on device. Rejects when unavailable. */
|
|
28
|
+
export declare function embed(texts: string[], opts?: {
|
|
29
|
+
language?: string;
|
|
30
|
+
}): Promise<EmbedResult>;
|
|
31
|
+
/** Cosine similarity of two vectors (-1..1); 0 when either is empty or zero or their lengths differ. */
|
|
32
|
+
export declare function cosineSimilarity(a: readonly number[], b: readonly number[]): number;
|
|
33
|
+
/** Rank `candidates` by semantic similarity to `query`, most similar first. Embeds in batches. */
|
|
34
|
+
export declare function rank(query: string, candidates: string[], opts?: {
|
|
35
|
+
language?: string;
|
|
36
|
+
}): Promise<RankedText[]>;
|
|
37
|
+
export declare const version = 1;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { FileHandle } from "@wix/himalaya/sdk-types";
|
|
2
|
+
/** A file the worker holds: a FileHandle, or just its `uri` (+ `ownerScope`). */
|
|
3
|
+
export type ImageInput = FileHandle | {
|
|
4
|
+
uri: string;
|
|
5
|
+
ownerScope?: string;
|
|
6
|
+
};
|
|
7
|
+
/** A rectangle normalised to 0..1 of the image's width / height, origin top-left. */
|
|
8
|
+
export interface NormalizedBox {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
}
|
|
14
|
+
export interface TextRecognitionAvailability {
|
|
15
|
+
available: boolean;
|
|
16
|
+
/** "apple_vision" | "mlkit" when available. */
|
|
17
|
+
engine?: string;
|
|
18
|
+
/** Why it is unavailable ("module_not_linked", "OCR is not available in this browser", …). */
|
|
19
|
+
reason?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface RecognizeOptions {
|
|
22
|
+
/** BCP-47 language hints, most likely first (e.g. ["en", "fr"]). Engines may ignore them. */
|
|
23
|
+
languages?: string[];
|
|
24
|
+
/** "accurate" (default) or "fast". */
|
|
25
|
+
level?: "accurate" | "fast";
|
|
26
|
+
}
|
|
27
|
+
export interface TextBlock {
|
|
28
|
+
text: string;
|
|
29
|
+
/** 0..1, absent when the engine reports none. */
|
|
30
|
+
confidence?: number;
|
|
31
|
+
box: NormalizedBox;
|
|
32
|
+
}
|
|
33
|
+
export interface RecognizeResult {
|
|
34
|
+
/** Every block's text, joined by newlines in reading order. */
|
|
35
|
+
text: string;
|
|
36
|
+
blocks: TextBlock[];
|
|
37
|
+
engine: string;
|
|
38
|
+
}
|
|
39
|
+
/** Whether on-device OCR is available on this device / host (spec R8). Never rejects. */
|
|
40
|
+
export declare function availability(): Promise<TextRecognitionAvailability>;
|
|
41
|
+
/** Recognise the text in an image the worker holds. Rejects when unavailable or the file is missing. */
|
|
42
|
+
export declare function recognize(image: ImageInput, opts?: RecognizeOptions): Promise<RecognizeResult>;
|
|
43
|
+
export declare const version = 1;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type PairStatus = "installed" | "downloadable" | "unsupported";
|
|
2
|
+
export interface TranslationAvailability {
|
|
3
|
+
available: boolean;
|
|
4
|
+
/** "apple_translation" | "mlkit" | "chrome_built_in" when available. */
|
|
5
|
+
engine?: string;
|
|
6
|
+
reason?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PairAvailability extends TranslationAvailability {
|
|
9
|
+
status: PairStatus;
|
|
10
|
+
}
|
|
11
|
+
export interface LanguageCandidate {
|
|
12
|
+
language: string;
|
|
13
|
+
confidence: number;
|
|
14
|
+
}
|
|
15
|
+
export interface IdentifyResult {
|
|
16
|
+
/** The most likely language, or "und". */
|
|
17
|
+
language: string;
|
|
18
|
+
confidence: number;
|
|
19
|
+
/** Up to five candidates, most likely first. */
|
|
20
|
+
candidates: LanguageCandidate[];
|
|
21
|
+
engine: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PrepareResult {
|
|
24
|
+
status: PairStatus;
|
|
25
|
+
engine: string;
|
|
26
|
+
reason?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface TranslateInput {
|
|
29
|
+
text: string;
|
|
30
|
+
/** The language to translate into. */
|
|
31
|
+
target: string;
|
|
32
|
+
/** The source language; identified from the text when omitted. */
|
|
33
|
+
source?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface TranslateResult {
|
|
36
|
+
text: string;
|
|
37
|
+
source: string;
|
|
38
|
+
target: string;
|
|
39
|
+
engine: string;
|
|
40
|
+
}
|
|
41
|
+
/** Whether on-device translation is available at all on this device / host (spec R8). Never rejects. */
|
|
42
|
+
export declare function availability(): Promise<TranslationAvailability>;
|
|
43
|
+
/** Whether a language pair is installed, downloadable or unsupported. Never rejects. */
|
|
44
|
+
export declare function pairAvailability(source: string, target: string): Promise<PairAvailability>;
|
|
45
|
+
/** Identify the language of a piece of text. Rejects when unavailable. */
|
|
46
|
+
export declare function identifyLanguage(text: string): Promise<IdentifyResult>;
|
|
47
|
+
/** Download a pair's models where the platform allows it (Android, web), and answer its status. */
|
|
48
|
+
export declare function prepare(source: string, target: string): Promise<PrepareResult>;
|
|
49
|
+
/** Translate text on device. Rejects when the pair is unavailable or the source cannot be identified. */
|
|
50
|
+
export declare function translate(input: TranslateInput): Promise<TranslateResult>;
|
|
51
|
+
export declare const version = 1;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as AppInfoSdk from "@wix/himalaya/app-info";
|
|
2
2
|
import type * as AudioRecordSdk from "@wix/himalaya/audio-record";
|
|
3
|
+
import type * as BarcodeDetectionSdk from "@wix/himalaya/barcode-detection";
|
|
3
4
|
import type * as Base44Sdk from "@wix/himalaya/base44";
|
|
4
5
|
import type * as BiometricsSdk from "@wix/himalaya/biometrics";
|
|
5
6
|
import type * as BrowserAuthSdk from "@wix/himalaya/browser-auth";
|
|
@@ -8,6 +9,7 @@ import type * as CallsSdk from "@wix/himalaya/calls";
|
|
|
8
9
|
import type * as CameraSdk from "@wix/himalaya/camera";
|
|
9
10
|
import type * as ClipboardSdk from "@wix/himalaya/clipboard";
|
|
10
11
|
import type * as ContactsSdk from "@wix/himalaya/contacts";
|
|
12
|
+
import type * as EntityExtractionSdk from "@wix/himalaya/entity-extraction";
|
|
11
13
|
import type * as FilePickerSdk from "@wix/himalaya/file-picker";
|
|
12
14
|
import type * as FilesSdk from "@wix/himalaya/files";
|
|
13
15
|
import type * as GodotSdk from "@wix/himalaya/godot";
|
|
@@ -15,6 +17,7 @@ import type * as HapticSdk from "@wix/himalaya/haptic";
|
|
|
15
17
|
import type * as HealthSdk from "@wix/himalaya/health";
|
|
16
18
|
import type * as HimiAppsSdk from "@wix/himalaya/himi-apps";
|
|
17
19
|
import type * as IapSdk from "@wix/himalaya/iap";
|
|
20
|
+
import type * as ImageLabelingSdk from "@wix/himalaya/image-labeling";
|
|
18
21
|
import type * as KeyboardSdk from "@wix/himalaya/keyboard";
|
|
19
22
|
import type * as LegacyImportSdk from "@wix/himalaya/legacy-import";
|
|
20
23
|
import type * as LiveActivitySdk from "@wix/himalaya/live-activity";
|
|
@@ -36,8 +39,11 @@ import type * as SpeakerDiarizationSdk from "@wix/himalaya/speaker-diarization";
|
|
|
36
39
|
import type * as SpeechSdk from "@wix/himalaya/speech";
|
|
37
40
|
import type * as SystemIntentsSdk from "@wix/himalaya/system-intents";
|
|
38
41
|
import type * as TasksSdk from "@wix/himalaya/tasks";
|
|
42
|
+
import type * as TextEmbeddingSdk from "@wix/himalaya/text-embedding";
|
|
43
|
+
import type * as TextRecognitionSdk from "@wix/himalaya/text-recognition";
|
|
39
44
|
import type * as ThemeSdk from "@wix/himalaya/theme";
|
|
40
45
|
import type * as TorchSdk from "@wix/himalaya/torch";
|
|
46
|
+
import type * as TranslationSdk from "@wix/himalaya/translation";
|
|
41
47
|
import type * as UiSdk from "@wix/himalaya/ui";
|
|
42
48
|
import type * as WixCashierSdk from "@wix/himalaya/wix-cashier";
|
|
43
49
|
import type * as WixChatSdk from "@wix/himalaya/wix-chat";
|
|
@@ -55,6 +61,7 @@ type PageEvents = {
|
|
|
55
61
|
export interface HimalayaPageCapabilities {
|
|
56
62
|
readonly "app_info": PageModule<typeof AppInfoSdk> & PageEvents;
|
|
57
63
|
readonly "audio_record": PageModule<typeof AudioRecordSdk> & PageEvents;
|
|
64
|
+
readonly "barcode_detection": PageModule<typeof BarcodeDetectionSdk> & PageEvents;
|
|
58
65
|
readonly "base44": PageModule<typeof Base44Sdk> & PageEvents;
|
|
59
66
|
readonly "biometrics": PageModule<typeof BiometricsSdk> & PageEvents;
|
|
60
67
|
readonly "browser_auth": PageModule<typeof BrowserAuthSdk> & PageEvents;
|
|
@@ -63,6 +70,7 @@ export interface HimalayaPageCapabilities {
|
|
|
63
70
|
readonly "camera": PageModule<typeof CameraSdk> & PageEvents;
|
|
64
71
|
readonly "clipboard": PageModule<typeof ClipboardSdk> & PageEvents;
|
|
65
72
|
readonly "contacts": PageModule<typeof ContactsSdk> & PageEvents;
|
|
73
|
+
readonly "entity_extraction": PageModule<typeof EntityExtractionSdk> & PageEvents;
|
|
66
74
|
readonly "file_picker": PageModule<typeof FilePickerSdk> & PageEvents;
|
|
67
75
|
readonly "files": PageModule<typeof FilesSdk> & PageEvents;
|
|
68
76
|
readonly "godot": PageModule<typeof GodotSdk> & PageEvents;
|
|
@@ -70,6 +78,7 @@ export interface HimalayaPageCapabilities {
|
|
|
70
78
|
readonly "health": PageModule<typeof HealthSdk> & PageEvents;
|
|
71
79
|
readonly "himi_apps": PageModule<typeof HimiAppsSdk> & PageEvents;
|
|
72
80
|
readonly "iap": PageModule<typeof IapSdk> & PageEvents;
|
|
81
|
+
readonly "image_labeling": PageModule<typeof ImageLabelingSdk> & PageEvents;
|
|
73
82
|
readonly "keyboard": PageModule<typeof KeyboardSdk> & PageEvents;
|
|
74
83
|
readonly "legacy_import": PageModule<typeof LegacyImportSdk> & PageEvents;
|
|
75
84
|
readonly "live_activity": PageModule<typeof LiveActivitySdk> & PageEvents;
|
|
@@ -91,8 +100,11 @@ export interface HimalayaPageCapabilities {
|
|
|
91
100
|
readonly "speech": PageModule<typeof SpeechSdk> & PageEvents;
|
|
92
101
|
readonly "system_intents": PageModule<typeof SystemIntentsSdk> & PageEvents;
|
|
93
102
|
readonly "tasks": PageModule<typeof TasksSdk> & PageEvents;
|
|
103
|
+
readonly "text_embedding": PageModule<typeof TextEmbeddingSdk> & PageEvents;
|
|
104
|
+
readonly "text_recognition": PageModule<typeof TextRecognitionSdk> & PageEvents;
|
|
94
105
|
readonly "theme": PageModule<typeof ThemeSdk> & PageEvents;
|
|
95
106
|
readonly "torch": PageModule<typeof TorchSdk> & PageEvents;
|
|
107
|
+
readonly "translation": PageModule<typeof TranslationSdk> & PageEvents;
|
|
96
108
|
readonly "ui": PageModule<typeof UiSdk> & PageEvents;
|
|
97
109
|
readonly "wix_cashier": PageModule<typeof WixCashierSdk> & PageEvents;
|
|
98
110
|
readonly "wix_chat": PageModule<typeof WixChatSdk> & PageEvents;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts
CHANGED
|
@@ -883,7 +883,7 @@ export interface OrientationEnvelope {
|
|
|
883
883
|
export declare const DEFAULT_ORIENTATION_ENVELOPE: Required<OrientationEnvelope>;
|
|
884
884
|
/** Fill in the absent families. Total, so callers never branch on `undefined`. */
|
|
885
885
|
export declare function resolveOrientationEnvelope(env?: OrientationEnvelope): Required<OrientationEnvelope>;
|
|
886
|
-
export type Capability = "camera" | "barcode_scanner" | "biometrics" | "secure_storage" | "share" | "push" | "file_picker" | "files" | "open_url" | "pdf" | "clipboard" | "theme" | "l10n" | "photos" | "presigned_upload" | "ui" | "calendar" | "contacts" | "tasks" | "audio_record" | "audio_record_background" | "calls" | "location" | "location_background" | "motion" | "health" | "media_playback" | "webview" | "browser_auth" | "haptic" | "himi_apps" | "iap" | "keyboard" | "torch" | "network" | "wix_cashier" | "wix_chat" | "live_activity" | "local_database" | "speech" | "speaker_diarization" | "system_intents" | "on_device_ai" | "app_info" | "release_control" | "legacy_import" | "godot" | "base44" | "animation" | "video_playback";
|
|
886
|
+
export type Capability = "camera" | "barcode_scanner" | "biometrics" | "secure_storage" | "share" | "push" | "file_picker" | "files" | "open_url" | "pdf" | "clipboard" | "theme" | "l10n" | "photos" | "presigned_upload" | "ui" | "calendar" | "contacts" | "tasks" | "audio_record" | "audio_record_background" | "calls" | "location" | "location_background" | "motion" | "health" | "media_playback" | "webview" | "browser_auth" | "haptic" | "himi_apps" | "iap" | "keyboard" | "torch" | "network" | "wix_cashier" | "wix_chat" | "live_activity" | "local_database" | "speech" | "speaker_diarization" | "system_intents" | "on_device_ai" | "text_recognition" | "translation" | "image_labeling" | "barcode_detection" | "text_embedding" | "entity_extraction" | "app_info" | "release_control" | "legacy_import" | "godot" | "base44" | "animation" | "video_playback";
|
|
887
887
|
/** `defineApp({ wixIap })` — the purchases-service app a build binds this app to. */
|
|
888
888
|
export interface WixIapConfig {
|
|
889
889
|
/** The purchases service's app UUID, registered on the app's own auth site. Not a secret. */
|
|
@@ -17,6 +17,7 @@ function dispatch(handlerId, params, _options) {
|
|
|
17
17
|
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
|
+
"barcode_detection": ["availability", "detect"],
|
|
20
21
|
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
22
|
"biometrics": ["available", "confirm"],
|
|
22
23
|
"browser_auth": ["start"],
|
|
@@ -25,6 +26,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
25
26
|
"camera": ["capture", "pickDocument", "prepareImage", "scanQR"],
|
|
26
27
|
"clipboard": ["hasImage", "hasText", "readText", "writeImage", "writeText"],
|
|
27
28
|
"contacts": ["add", "getPermissionStatus", "pick", "presentNewContact", "requestPermission", "search"],
|
|
29
|
+
"entity_extraction": ["availability", "extract"],
|
|
28
30
|
"file_picker": ["pick", "pickDirectoryForExport"],
|
|
29
31
|
"files": ["download", "export", "list", "readText", "remove", "stat", "storageInfo", "write"],
|
|
30
32
|
"godot": ["loadPack", "release", "send"],
|
|
@@ -32,6 +34,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
32
34
|
"health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
|
|
33
35
|
"himi_apps": ["canOpen", "current", "hostInfo", "open"],
|
|
34
36
|
"iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
|
|
37
|
+
"image_labeling": ["availability", "label"],
|
|
35
38
|
"keyboard": ["dismiss"],
|
|
36
39
|
"legacy_import": ["ack", "read"],
|
|
37
40
|
"live_activity": ["end", "start", "update"],
|
|
@@ -53,8 +56,11 @@ var CAPABILITY_REGISTRY = {
|
|
|
53
56
|
"speech": ["availability", "recognizeOnce", "speak", "stop", "streamNext", "streamStart", "streamStop", "transcribeFile"],
|
|
54
57
|
"system_intents": ["donate", "refreshShortcuts"],
|
|
55
58
|
"tasks": ["backend", "create", "getPermissionStatus", "list", "remove", "requestPermission", "setCompleted"],
|
|
59
|
+
"text_embedding": ["availability", "embed"],
|
|
60
|
+
"text_recognition": ["availability", "recognize"],
|
|
56
61
|
"theme": ["applyOverlay", "clearOverlay", "surfaces"],
|
|
57
62
|
"torch": ["off", "on", "status", "toggle"],
|
|
63
|
+
"translation": ["availability", "identifyLanguage", "prepare", "translate"],
|
|
58
64
|
"ui": ["alert", "snackbar"],
|
|
59
65
|
"wix_cashier": ["isAvailable", "proceedToPayment"],
|
|
60
66
|
"wix_chat": ["getRealtimeStatus", "subscribeRealtime", "unsubscribeRealtime"]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// ../../core/sdk/dispatch/src/index.ts
|
|
2
|
+
function dispatch(handlerId, params, _options) {
|
|
3
|
+
const himalaya = globalThis.himalaya;
|
|
4
|
+
if (!himalaya) {
|
|
5
|
+
return Promise.reject(
|
|
6
|
+
new Error("@himalaya/dispatch: called outside a Himalaya runtime. This bundle must run inside a JSWorker (Tier 5).")
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
const stringParams = {};
|
|
10
|
+
if (params) {
|
|
11
|
+
for (const [k, v] of Object.entries(params)) stringParams[k] = String(v);
|
|
12
|
+
}
|
|
13
|
+
return himalaya.dispatch(handlerId, stringParams);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// ../../core/sdk/barcode-detection/src/index.ts
|
|
17
|
+
async function availability() {
|
|
18
|
+
const r = await dispatch("capability.barcode_detection.availability");
|
|
19
|
+
return { available: r?.available === true, engine: r?.engine, reason: r?.reason };
|
|
20
|
+
}
|
|
21
|
+
async function detect(image, opts = {}) {
|
|
22
|
+
if (!image?.uri) throw new Error("barcode-detection.detect: an image with a uri is required");
|
|
23
|
+
const r = await dispatch("capability.barcode_detection.detect", {
|
|
24
|
+
uri: image.uri,
|
|
25
|
+
...image.ownerScope ? { ownerScope: image.ownerScope } : {},
|
|
26
|
+
...opts.formats?.length ? { formats: opts.formats.join(",") } : {}
|
|
27
|
+
});
|
|
28
|
+
return { barcodes: Array.isArray(r?.barcodes) ? r.barcodes : [], engine: r?.engine ?? "" };
|
|
29
|
+
}
|
|
30
|
+
var version = 1;
|
|
31
|
+
export {
|
|
32
|
+
availability,
|
|
33
|
+
detect,
|
|
34
|
+
version
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=barcode-detection.mjs.map
|
|
@@ -17,6 +17,7 @@ function dispatch(handlerId, params, _options) {
|
|
|
17
17
|
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
|
+
"barcode_detection": ["availability", "detect"],
|
|
20
21
|
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
22
|
"biometrics": ["available", "confirm"],
|
|
22
23
|
"browser_auth": ["start"],
|
|
@@ -25,6 +26,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
25
26
|
"camera": ["capture", "pickDocument", "prepareImage", "scanQR"],
|
|
26
27
|
"clipboard": ["hasImage", "hasText", "readText", "writeImage", "writeText"],
|
|
27
28
|
"contacts": ["add", "getPermissionStatus", "pick", "presentNewContact", "requestPermission", "search"],
|
|
29
|
+
"entity_extraction": ["availability", "extract"],
|
|
28
30
|
"file_picker": ["pick", "pickDirectoryForExport"],
|
|
29
31
|
"files": ["download", "export", "list", "readText", "remove", "stat", "storageInfo", "write"],
|
|
30
32
|
"godot": ["loadPack", "release", "send"],
|
|
@@ -32,6 +34,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
32
34
|
"health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
|
|
33
35
|
"himi_apps": ["canOpen", "current", "hostInfo", "open"],
|
|
34
36
|
"iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
|
|
37
|
+
"image_labeling": ["availability", "label"],
|
|
35
38
|
"keyboard": ["dismiss"],
|
|
36
39
|
"legacy_import": ["ack", "read"],
|
|
37
40
|
"live_activity": ["end", "start", "update"],
|
|
@@ -53,8 +56,11 @@ var CAPABILITY_REGISTRY = {
|
|
|
53
56
|
"speech": ["availability", "recognizeOnce", "speak", "stop", "streamNext", "streamStart", "streamStop", "transcribeFile"],
|
|
54
57
|
"system_intents": ["donate", "refreshShortcuts"],
|
|
55
58
|
"tasks": ["backend", "create", "getPermissionStatus", "list", "remove", "requestPermission", "setCompleted"],
|
|
59
|
+
"text_embedding": ["availability", "embed"],
|
|
60
|
+
"text_recognition": ["availability", "recognize"],
|
|
56
61
|
"theme": ["applyOverlay", "clearOverlay", "surfaces"],
|
|
57
62
|
"torch": ["off", "on", "status", "toggle"],
|
|
63
|
+
"translation": ["availability", "identifyLanguage", "prepare", "translate"],
|
|
58
64
|
"ui": ["alert", "snackbar"],
|
|
59
65
|
"wix_cashier": ["isAvailable", "proceedToPayment"],
|
|
60
66
|
"wix_chat": ["getRealtimeStatus", "subscribeRealtime", "unsubscribeRealtime"]
|
|
@@ -17,6 +17,7 @@ function dispatch(handlerId, params, _options) {
|
|
|
17
17
|
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
|
+
"barcode_detection": ["availability", "detect"],
|
|
20
21
|
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
22
|
"biometrics": ["available", "confirm"],
|
|
22
23
|
"browser_auth": ["start"],
|
|
@@ -25,6 +26,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
25
26
|
"camera": ["capture", "pickDocument", "prepareImage", "scanQR"],
|
|
26
27
|
"clipboard": ["hasImage", "hasText", "readText", "writeImage", "writeText"],
|
|
27
28
|
"contacts": ["add", "getPermissionStatus", "pick", "presentNewContact", "requestPermission", "search"],
|
|
29
|
+
"entity_extraction": ["availability", "extract"],
|
|
28
30
|
"file_picker": ["pick", "pickDirectoryForExport"],
|
|
29
31
|
"files": ["download", "export", "list", "readText", "remove", "stat", "storageInfo", "write"],
|
|
30
32
|
"godot": ["loadPack", "release", "send"],
|
|
@@ -32,6 +34,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
32
34
|
"health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
|
|
33
35
|
"himi_apps": ["canOpen", "current", "hostInfo", "open"],
|
|
34
36
|
"iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
|
|
37
|
+
"image_labeling": ["availability", "label"],
|
|
35
38
|
"keyboard": ["dismiss"],
|
|
36
39
|
"legacy_import": ["ack", "read"],
|
|
37
40
|
"live_activity": ["end", "start", "update"],
|
|
@@ -53,8 +56,11 @@ var CAPABILITY_REGISTRY = {
|
|
|
53
56
|
"speech": ["availability", "recognizeOnce", "speak", "stop", "streamNext", "streamStart", "streamStop", "transcribeFile"],
|
|
54
57
|
"system_intents": ["donate", "refreshShortcuts"],
|
|
55
58
|
"tasks": ["backend", "create", "getPermissionStatus", "list", "remove", "requestPermission", "setCompleted"],
|
|
59
|
+
"text_embedding": ["availability", "embed"],
|
|
60
|
+
"text_recognition": ["availability", "recognize"],
|
|
56
61
|
"theme": ["applyOverlay", "clearOverlay", "surfaces"],
|
|
57
62
|
"torch": ["off", "on", "status", "toggle"],
|
|
63
|
+
"translation": ["availability", "identifyLanguage", "prepare", "translate"],
|
|
58
64
|
"ui": ["alert", "snackbar"],
|
|
59
65
|
"wix_cashier": ["isAvailable", "proceedToPayment"],
|
|
60
66
|
"wix_chat": ["getRealtimeStatus", "subscribeRealtime", "unsubscribeRealtime"]
|
|
@@ -17,6 +17,7 @@ function dispatch(handlerId, params, _options) {
|
|
|
17
17
|
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
|
+
"barcode_detection": ["availability", "detect"],
|
|
20
21
|
"base44": ["authLoginViaEmailPassword", "authLoginViaOtp", "authLoginWithProvider", "authLogout", "authMe", "authRegister", "authResetPassword", "authStatus", "authUpdateMe", "authVerifyOtp", "entitiesBulkCreate", "entitiesCreate", "entitiesDelete", "entitiesFilter", "entitiesGet", "entitiesList", "entitiesUpdate", "functionsInvoke"],
|
|
21
22
|
"biometrics": ["available", "confirm"],
|
|
22
23
|
"browser_auth": ["start"],
|
|
@@ -25,6 +26,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
25
26
|
"camera": ["capture", "pickDocument", "prepareImage", "scanQR"],
|
|
26
27
|
"clipboard": ["hasImage", "hasText", "readText", "writeImage", "writeText"],
|
|
27
28
|
"contacts": ["add", "getPermissionStatus", "pick", "presentNewContact", "requestPermission", "search"],
|
|
29
|
+
"entity_extraction": ["availability", "extract"],
|
|
28
30
|
"file_picker": ["pick", "pickDirectoryForExport"],
|
|
29
31
|
"files": ["download", "export", "list", "readText", "remove", "stat", "storageInfo", "write"],
|
|
30
32
|
"godot": ["loadPack", "release", "send"],
|
|
@@ -32,6 +34,7 @@ var CAPABILITY_REGISTRY = {
|
|
|
32
34
|
"health": ["availability", "getPermissionStatus", "query", "requestPermission", "saveWorkout"],
|
|
33
35
|
"himi_apps": ["canOpen", "current", "hostInfo", "open"],
|
|
34
36
|
"iap": ["appBinding", "consume", "entitlements", "finishTransaction", "getPaywallConfig", "getProducts", "getUnfinishedTransactions", "purchase", "purchaseForVerification", "restore", "storefront"],
|
|
37
|
+
"image_labeling": ["availability", "label"],
|
|
35
38
|
"keyboard": ["dismiss"],
|
|
36
39
|
"legacy_import": ["ack", "read"],
|
|
37
40
|
"live_activity": ["end", "start", "update"],
|
|
@@ -53,8 +56,11 @@ var CAPABILITY_REGISTRY = {
|
|
|
53
56
|
"speech": ["availability", "recognizeOnce", "speak", "stop", "streamNext", "streamStart", "streamStop", "transcribeFile"],
|
|
54
57
|
"system_intents": ["donate", "refreshShortcuts"],
|
|
55
58
|
"tasks": ["backend", "create", "getPermissionStatus", "list", "remove", "requestPermission", "setCompleted"],
|
|
59
|
+
"text_embedding": ["availability", "embed"],
|
|
60
|
+
"text_recognition": ["availability", "recognize"],
|
|
56
61
|
"theme": ["applyOverlay", "clearOverlay", "surfaces"],
|
|
57
62
|
"torch": ["off", "on", "status", "toggle"],
|
|
63
|
+
"translation": ["availability", "identifyLanguage", "prepare", "translate"],
|
|
58
64
|
"ui": ["alert", "snackbar"],
|
|
59
65
|
"wix_cashier": ["isAvailable", "proceedToPayment"],
|
|
60
66
|
"wix_chat": ["getRealtimeStatus", "subscribeRealtime", "unsubscribeRealtime"]
|
|
@@ -15432,6 +15432,7 @@ function assertSiteShellConfig(site, opts) {
|
|
|
15432
15432
|
var PAGE_CAPABILITY_DISPATCHES = {
|
|
15433
15433
|
"app_info": [],
|
|
15434
15434
|
"audio_record": [],
|
|
15435
|
+
"barcode_detection": [],
|
|
15435
15436
|
"base44": [],
|
|
15436
15437
|
"biometrics": [],
|
|
15437
15438
|
"browser_auth": [],
|
|
@@ -15440,6 +15441,7 @@ var PAGE_CAPABILITY_DISPATCHES = {
|
|
|
15440
15441
|
"camera": [],
|
|
15441
15442
|
"clipboard": [],
|
|
15442
15443
|
"contacts": [],
|
|
15444
|
+
"entity_extraction": [],
|
|
15443
15445
|
"file_picker": [],
|
|
15444
15446
|
"files": [],
|
|
15445
15447
|
"godot": [],
|
|
@@ -15447,6 +15449,7 @@ var PAGE_CAPABILITY_DISPATCHES = {
|
|
|
15447
15449
|
"health": [],
|
|
15448
15450
|
"himi_apps": [],
|
|
15449
15451
|
"iap": ["wix_api"],
|
|
15452
|
+
"image_labeling": [],
|
|
15450
15453
|
"keyboard": [],
|
|
15451
15454
|
"legacy_import": [],
|
|
15452
15455
|
"live_activity": [],
|
|
@@ -15468,8 +15471,11 @@ var PAGE_CAPABILITY_DISPATCHES = {
|
|
|
15468
15471
|
"speech": [],
|
|
15469
15472
|
"system_intents": [],
|
|
15470
15473
|
"tasks": [],
|
|
15474
|
+
"text_embedding": [],
|
|
15475
|
+
"text_recognition": [],
|
|
15471
15476
|
"theme": [],
|
|
15472
15477
|
"torch": [],
|
|
15478
|
+
"translation": [],
|
|
15473
15479
|
"ui": [],
|
|
15474
15480
|
"wix_cashier": [],
|
|
15475
15481
|
"wix_chat": [],
|