@wix/himalaya-cli 0.1588.0 → 0.1589.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/sdk-types/src/capabilities.generated.d.ts +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/torch/src/index.d.ts +39 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +13 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/groups/src/extensions.d.ts +28 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/torch.mjs +78 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-groups.mjs +14 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +4 -0
- package/dist/cli.mjs +68 -39
- package/dist/preview-assets.generated.bin +0 -0
- package/fixtures/wix-canned.json +16 -0
- package/guides/app-config.md +1 -1
- package/guides/importable-sdks.md +1 -0
- package/guides/qa-builds.md +12 -0
- package/guides/sdk-reference.json +99 -0
- package/guides/web-page-sdk-reference.md +1 -0
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/branded-lite/config.ts +7 -0
- package/templates/branded-lite/dev/index.ts +469 -0
- package/templates/branded-lite/himalaya.content.json +3 -0
- package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-my-groups/index.ts +236 -0
- package/templates/community-club/config.ts +7 -0
- package/templates/community-club/dev/index.ts +469 -0
- package/templates/community-club/himalaya.content.json +3 -0
- package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/community-club/tier5-src/himi-branded-lite-my-groups/index.ts +236 -0
- package/templates/events-meetups/config.ts +7 -0
- package/templates/events-meetups/dev/index.ts +469 -0
- package/templates/events-meetups/himalaya.content.json +3 -0
- package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-my-groups/index.ts +236 -0
- package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/nonprofit-cause/config.ts +7 -0
- package/templates/nonprofit-cause/dev/index.ts +469 -0
- package/templates/nonprofit-cause/himalaya.content.json +3 -0
- package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-my-groups/index.ts +236 -0
- package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
- package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
package/fixtures/wix-canned.json
CHANGED
|
@@ -1884,6 +1884,22 @@
|
|
|
1884
1884
|
"comments": [],
|
|
1885
1885
|
"commentCount": 0
|
|
1886
1886
|
},
|
|
1887
|
+
"GET /social-groups-proxy/members/v2/members/mem-0001/memberships": {
|
|
1888
|
+
"memberships": [
|
|
1889
|
+
{
|
|
1890
|
+
"groupId": "grp-0001",
|
|
1891
|
+
"status": "JOINED",
|
|
1892
|
+
"role": {
|
|
1893
|
+
"value": "MEMBER"
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
],
|
|
1897
|
+
"metadata": {
|
|
1898
|
+
"count": 1,
|
|
1899
|
+
"offset": 0,
|
|
1900
|
+
"total": 1
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1887
1903
|
"GET /social-groups-proxy/groups/v2/groups/grp-0001": {
|
|
1888
1904
|
"group": {
|
|
1889
1905
|
"id": "grp-0001",
|
package/guides/app-config.md
CHANGED
|
@@ -137,7 +137,7 @@ does not include answers `module_not_linked` on device. Some components need one
|
|
|
137
137
|
and `himi validate` errors on a screen that uses one the app does not declare.
|
|
138
138
|
`presigned_upload.putFile` also requires `files` on the calling screen.
|
|
139
139
|
|
|
140
|
-
App-level capability vocabulary: `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`, `network`, `wix_cashier`, `wix_chat`, `live_activity`, `local_database`, `speech`, `speaker_diarization`, `system_intents`, `on_device_ai`, `app_info`, `release_control`, `godot`, `base44`, `animation`.
|
|
140
|
+
App-level capability vocabulary: `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`, `godot`, `base44`, `animation`.
|
|
141
141
|
|
|
142
142
|
## What `himi validate` checks (7 passes)
|
|
143
143
|
|
|
@@ -63,6 +63,7 @@ package in one greppable file) or `GET /v1/sdk/<name>` over HTTP; in the CLI,
|
|
|
63
63
|
- `@himalaya/tasks` — Tier-5 typed binding for reminders / to-dos.
|
|
64
64
|
- `@himalaya/theme` — Tier-5 typed binding for the runtime brand overlay.
|
|
65
65
|
- `@himalaya/time` — Tier-5 temporal helpers.
|
|
66
|
+
- `@himalaya/torch` — Tier-5 typed binding for the platform's torch (the camera flashlight).
|
|
66
67
|
- `@himalaya/ui` — Tier-5 typed binding to the platform's imperative popup capability.
|
|
67
68
|
- `@himalaya/webview` — Tier-5 typed binding for the page ↔ worker message channel of a worker-backed webview screen (Part 2 / RFC 0025 composition).
|
|
68
69
|
- `@himalaya/webview-page` — browser-side SDK for a trusted page hosted by a worker-backed Himalaya WebView.
|
package/guides/qa-builds.md
CHANGED
|
@@ -643,6 +643,18 @@ the log rather than silently replaced. The sha↔build mapping lands in `artifac
|
|
|
643
643
|
the install page, and the QA summary — the number itself is a clock reading, so it is only traceable
|
|
644
644
|
because those write it down.
|
|
645
645
|
|
|
646
|
+
### Build number
|
|
647
|
+
|
|
648
|
+
A store-bound build can also carry a **store floor**: **`DIST_BUILD_FLOOR_IOS`** /
|
|
649
|
+
**`DIST_BUILD_FLOOR_ANDROID`**, the lowest build number the store will accept for the listing (its
|
|
650
|
+
highest uploaded build + 1). The build machine never reads a store or holds store credentials: the
|
|
651
|
+
floor is an input the job carries. Nothing sets it automatically yet; the store lanes that will read
|
|
652
|
+
the store once per job and pass it are tracked in #4650. When the floor is set, the build number is
|
|
653
|
+
`max(derived, floor)`, and the log says which won (`build 58 (floor: DIST_BUILD_FLOOR_ANDROID 58)` or
|
|
654
|
+
`(derived)`). An explicit `DIST_BUILD_NUMBER` **below** the floor is refused before anything is
|
|
655
|
+
archived, with a message naming the floor; a floor that is not an integer in `1..2100000000` fails
|
|
656
|
+
the job rather than being ignored. A QA (`link`) build gets no floor and is unchanged.
|
|
657
|
+
|
|
646
658
|
## Where an artifact lives, and when it is deleted
|
|
647
659
|
|
|
648
660
|
Each build owns a directory, keyed by the app, the shell, the platform, the shell commit and a
|
|
@@ -5039,6 +5039,79 @@
|
|
|
5039
5039
|
}
|
|
5040
5040
|
]
|
|
5041
5041
|
},
|
|
5042
|
+
{
|
|
5043
|
+
"name": "@himalaya/torch",
|
|
5044
|
+
"source": "core/sdk/torch/src/index.ts",
|
|
5045
|
+
"description": "Tier-5 typed binding for the platform's torch (the camera flashlight).",
|
|
5046
|
+
"api": [
|
|
5047
|
+
{
|
|
5048
|
+
"name": "TorchStatus",
|
|
5049
|
+
"kind": "interface",
|
|
5050
|
+
"jsdoc": "/** The torch right now. `level` is 0..1 while lit, `null` while off or when unknown. */",
|
|
5051
|
+
"decl": "export interface TorchStatus {\n /** Does this device have a torch the app can drive? */\n available: boolean;\n /** Is the torch lit? */\n on: boolean;\n /** Brightness 0..1 while lit (1 = the brightest the device allows), else `null`. */\n level: number | null;\n /** Why the torch is unavailable, when it is. */\n reason?: string;\n}"
|
|
5052
|
+
},
|
|
5053
|
+
{
|
|
5054
|
+
"name": "TorchOnOptions",
|
|
5055
|
+
"kind": "interface",
|
|
5056
|
+
"jsdoc": "",
|
|
5057
|
+
"decl": "export interface TorchOnOptions {\n /** Brightness in 0..1 (default 1). Values outside the range are clamped; 0 turns the torch off.\n * A device without adjustable strength (Android below API 33, or a single-level flash) lights at\n * full brightness and reports `level: 1`. */\n level?: number;\n}"
|
|
5058
|
+
},
|
|
5059
|
+
{
|
|
5060
|
+
"name": "TorchErrorCode",
|
|
5061
|
+
"kind": "type",
|
|
5062
|
+
"jsdoc": "",
|
|
5063
|
+
"decl": "export type TorchErrorCode = \"unavailable\" | \"invalid_argument\" | \"failed\";"
|
|
5064
|
+
},
|
|
5065
|
+
{
|
|
5066
|
+
"name": "TorchError",
|
|
5067
|
+
"kind": "interface",
|
|
5068
|
+
"jsdoc": "/** What every torch verb throws when the native/web arm reports a typed error. */",
|
|
5069
|
+
"decl": "export interface TorchError extends Error {\n code: TorchErrorCode;\n}"
|
|
5070
|
+
},
|
|
5071
|
+
{
|
|
5072
|
+
"name": "torchError",
|
|
5073
|
+
"kind": "function",
|
|
5074
|
+
"jsdoc": "/** Build a [TorchError]. */",
|
|
5075
|
+
"decl": "export function torchError(code: TorchErrorCode, message: string): TorchError;"
|
|
5076
|
+
},
|
|
5077
|
+
{
|
|
5078
|
+
"name": "isTorchError",
|
|
5079
|
+
"kind": "function",
|
|
5080
|
+
"jsdoc": "/** Narrow a caught value: `catch (e) { if (isTorchError(e) && e.code === \"unavailable\") … }`. */",
|
|
5081
|
+
"decl": "export function isTorchError(e: unknown): e is TorchError;"
|
|
5082
|
+
},
|
|
5083
|
+
{
|
|
5084
|
+
"name": "on",
|
|
5085
|
+
"kind": "function",
|
|
5086
|
+
"jsdoc": "/**\n * Turn the torch on, at `level` (0..1, default 1). Resolves with the resulting status.\n * Rejects `unavailable` on a device with no torch, `invalid_argument` for a non-numeric level.\n */",
|
|
5087
|
+
"decl": "export async function on(opts: TorchOnOptions = {}): Promise<TorchStatus>;"
|
|
5088
|
+
},
|
|
5089
|
+
{
|
|
5090
|
+
"name": "off",
|
|
5091
|
+
"kind": "function",
|
|
5092
|
+
"jsdoc": "/** Turn the torch off. Idempotent — resolves (never rejects `unavailable`) when there is no torch. */",
|
|
5093
|
+
"decl": "export async function off(): Promise<TorchStatus>;"
|
|
5094
|
+
},
|
|
5095
|
+
{
|
|
5096
|
+
"name": "toggle",
|
|
5097
|
+
"kind": "function",
|
|
5098
|
+
"jsdoc": "/** Flip the torch: off → on at full brightness, on → off. Rejects `unavailable` with no torch. */",
|
|
5099
|
+
"decl": "export async function toggle(): Promise<TorchStatus>;"
|
|
5100
|
+
},
|
|
5101
|
+
{
|
|
5102
|
+
"name": "status",
|
|
5103
|
+
"kind": "function",
|
|
5104
|
+
"jsdoc": "/** Read the torch's availability and state. Never rejects for a missing torch. */",
|
|
5105
|
+
"decl": "export async function status(): Promise<TorchStatus>;"
|
|
5106
|
+
},
|
|
5107
|
+
{
|
|
5108
|
+
"name": "version",
|
|
5109
|
+
"kind": "const",
|
|
5110
|
+
"jsdoc": "/** Capability version, for bundles that gate on a min binary version. */",
|
|
5111
|
+
"decl": "export const version = 1;"
|
|
5112
|
+
}
|
|
5113
|
+
]
|
|
5114
|
+
},
|
|
5042
5115
|
{
|
|
5043
5116
|
"name": "@himalaya/ui",
|
|
5044
5117
|
"source": "core/sdk/ui/src/index.ts",
|
|
@@ -22598,6 +22671,32 @@
|
|
|
22598
22671
|
"http": "GET /social-groups/v2/rules/{…}",
|
|
22599
22672
|
"scope": "visitor"
|
|
22600
22673
|
},
|
|
22674
|
+
{
|
|
22675
|
+
"name": "WixGroupMembershipStatus",
|
|
22676
|
+
"kind": "type",
|
|
22677
|
+
"jsdoc": "",
|
|
22678
|
+
"decl": "export type WixGroupMembershipStatus = \"UNKNOWN_STATUS\" | \"JOINED\" | \"PENDING\";"
|
|
22679
|
+
},
|
|
22680
|
+
{
|
|
22681
|
+
"name": "WixGroupMembership",
|
|
22682
|
+
"kind": "interface",
|
|
22683
|
+
"jsdoc": "",
|
|
22684
|
+
"decl": "export interface WixGroupMembership {\n groupId?: string;\n status?: WixGroupMembershipStatus | string;\n /** Empty unless the membership is JOINED. */\n role?: { value?: \"MEMBER\" | \"ADMIN\" | string };\n}"
|
|
22685
|
+
},
|
|
22686
|
+
{
|
|
22687
|
+
"name": "WixListMembershipsResponse",
|
|
22688
|
+
"kind": "interface",
|
|
22689
|
+
"jsdoc": "",
|
|
22690
|
+
"decl": "export interface WixListMembershipsResponse {\n memberships?: WixGroupMembership[];\n metadata?: { count?: number; offset?: number; total?: number; tooManyToCount?: boolean };\n}"
|
|
22691
|
+
},
|
|
22692
|
+
{
|
|
22693
|
+
"name": "listMemberships",
|
|
22694
|
+
"kind": "function",
|
|
22695
|
+
"jsdoc": "/**\n * List a member's group memberships — GET /social-groups-proxy/members/v2/members/{memberId}/memberships.\n *\n * @scope member — a signed-in member lists their own memberships only; an owner-scoped token lists\n * anyone's. Sorted by `groupId` descending by default. `limit` is at most 100.\n */",
|
|
22696
|
+
"decl": "export function listMemberships(\n memberId: string,\n paging: { limit?: number; offset?: number } = {},\n opts?: WixCallOptions,\n): Promise<WixListMembershipsResponse>;",
|
|
22697
|
+
"http": "GET /social-groups-proxy/members/v2/members/{…}/memberships${params ?",
|
|
22698
|
+
"scope": "member"
|
|
22699
|
+
},
|
|
22601
22700
|
{
|
|
22602
22701
|
"name": "WixGroupCoverImage",
|
|
22603
22702
|
"kind": "interface",
|
|
@@ -52,6 +52,7 @@ the SDK sources, so it matches the shipped SDKs.
|
|
|
52
52
|
- [`system_intents`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fsystem_intents?format=md) — System-intents capability. 2 methods · not in Brandy.
|
|
53
53
|
- [`tasks`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftasks?format=md) — Reminders / to-dos. 7 methods.
|
|
54
54
|
- [`theme`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftheme?format=md) — Runtime brand overlay. 2 methods.
|
|
55
|
+
- [`torch`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Ftorch?format=md) — Torch (the camera flashlight). 4 methods.
|
|
55
56
|
- [`ui`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fui?format=md) — Imperative popup capability. 2 methods · not in Brandy.
|
|
56
57
|
- [`wix_cashier`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fwix_cashier?format=md) — Native cashier. 2 methods.
|
|
57
58
|
- [`wix_chat`](https://apps.wix.com/_api/himi-serve/authoring/resource/web-sdk%2Fwix_chat?format=md) — Host-owned realtime Chat event subscriptions. 2 methods.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1589.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "90984a6109a8a7bcdc2b514a13a5abda6d5b9967765e6606d2254b68"
|
|
76
76
|
}
|
|
@@ -98,6 +98,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
|
|
|
98
98
|
himi_gift_cards: ["giftCards"],
|
|
99
99
|
himi_groups: ["groups"],
|
|
100
100
|
himi_group_about: ["groups"],
|
|
101
|
+
himi_my_groups: ["groups"],
|
|
101
102
|
himi_invoice: ["invoices"],
|
|
102
103
|
himi_invoices: ["invoices"],
|
|
103
104
|
himi_loyalty: ["loyalty"],
|
|
@@ -598,6 +598,13 @@ export default defineApp({
|
|
|
598
598
|
"parentScreenId": "himi_group",
|
|
599
599
|
"tabId": ""
|
|
600
600
|
},
|
|
601
|
+
{
|
|
602
|
+
"screenId": "himi_my_groups",
|
|
603
|
+
"isPublic": true,
|
|
604
|
+
"paramKeys": [],
|
|
605
|
+
"parentScreenId": "himi_groups",
|
|
606
|
+
"tabId": ""
|
|
607
|
+
},
|
|
601
608
|
{
|
|
602
609
|
"screenId": "himi_cms",
|
|
603
610
|
"isPublic": true,
|