@wix/himalaya-cli 0.1768.0 → 0.1770.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/dev-server/src/app-config.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-module.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
- package/dist/cli.mjs +311 -56
- package/guides/himi-json-output.md +3 -3
- package/guides/qa-builds.md +73 -84
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/branded-lite/config.ts +2 -1
- package/templates/branded-lite/dev/index.ts +2 -1
- package/templates/branded-lite/l10n/ar.json +120 -0
- package/templates/branded-lite/l10n/cs.json +120 -0
- package/templates/branded-lite/l10n/da.json +120 -0
- package/templates/branded-lite/l10n/de.json +120 -0
- package/templates/branded-lite/l10n/el.json +120 -0
- package/templates/branded-lite/l10n/es.json +120 -0
- package/templates/branded-lite/l10n/fi.json +120 -0
- package/templates/branded-lite/l10n/fr.json +120 -0
- package/templates/branded-lite/l10n/he.json +96 -0
- package/templates/branded-lite/l10n/hu.json +120 -0
- package/templates/branded-lite/l10n/id.json +120 -0
- package/templates/branded-lite/l10n/it.json +120 -0
- package/templates/branded-lite/l10n/ja.json +120 -0
- package/templates/branded-lite/l10n/ko.json +120 -0
- package/templates/branded-lite/l10n/lt.json +120 -0
- package/templates/branded-lite/l10n/nl.json +120 -0
- package/templates/branded-lite/l10n/no.json +120 -0
- package/templates/branded-lite/l10n/pl.json +120 -0
- package/templates/branded-lite/l10n/pt.json +120 -0
- package/templates/branded-lite/l10n/ru.json +120 -0
- package/templates/branded-lite/l10n/sv.json +120 -0
- package/templates/branded-lite/l10n/th.json +120 -0
- package/templates/branded-lite/l10n/tr.json +120 -0
- package/templates/branded-lite/l10n/uk.json +120 -0
- package/templates/branded-lite/l10n/vi.json +120 -0
- package/templates/branded-lite/l10n/zh.json +120 -0
- package/templates/branded-lite/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/branded-lite/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/branded-lite/tier5-src/_shared/inbox-search.ts +119 -0
- package/templates/branded-lite/tier5-src/_shared/member-inbox-transport.ts +64 -0
- package/templates/branded-lite/tier5-src/_shared/member-thread-rows.ts +233 -0
- package/templates/branded-lite/tier5-src/business-chat/index.ts +73 -22
- package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
- package/templates/branded-lite/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
- package/templates/branded-lite/tier5-src/wix-spaces-new-message/index.ts +4 -2
- package/templates/brandy/tier5-src/_shared/business-chat-message-model.ts +177 -0
- package/templates/brandy/tier5-src/_shared/business-chat-transport.ts +164 -0
- package/templates/brandy/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/brandy/tier5-src/_shared/inbox-search.ts +119 -0
- package/templates/brandy/tier5-src/_shared/member-inbox-transport.ts +64 -0
- package/templates/brandy/tier5-src/_shared/member-thread-rows.ts +233 -0
- package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +777 -54
- package/templates/brandy/tier5-src/wix-spaces-chat-thread/index.ts +426 -143
- package/templates/community-club/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/conference/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/conference/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/conference/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/conference/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/conference/tier5-src/business-chat/index.ts +73 -22
- package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/fitness-gym/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/fitness-gym/tier5-src/business-chat/index.ts +73 -22
- package/templates/gym-fitness/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/medical-services/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/medical-services/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/medical-services/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/medical-services/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/medical-services/tier5-src/business-chat/index.ts +73 -22
- package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/personal-fitness-trainer/dev/index.ts +2 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/personal-fitness-trainer/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +73 -22
- package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/restaurant/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/retail-store/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/salon-spa/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/salon-spa/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/salon-spa/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/salon-spa/tier5-src/business-chat/index.ts +73 -22
- package/templates/wholesale-store/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/wholesale-store/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/wholesale-store/tier5-src/_shared/inbox-rooms.ts +101 -11
- package/templates/wholesale-store/tier5-src/business-chat/index.ts +73 -22
- package/templates/yoga-studio/tier5-src/_shared/business-chat-transport.ts +20 -4
- package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +6 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +6 -0
|
@@ -1171,8 +1171,8 @@ keystore password is never printed.
|
|
|
1171
1171
|
|
|
1172
1172
|
`himi store app set|show --app <id> --site <msid>` prints one envelope. A refusal from the publishing
|
|
1173
1173
|
service keeps the service's own code in `serverError` (for example `forbidden_app`,
|
|
1174
|
-
`store_app_linked_to_other_site`, `store_app_site_taken`, `
|
|
1175
|
-
|
|
1174
|
+
`store_app_linked_to_other_site`, `store_app_site_taken`, `store_app_site_bound`, `store_id_missing`)
|
|
1175
|
+
and its HTTP `status`; the CLI `code` is one of:
|
|
1176
1176
|
|
|
1177
1177
|
| Code | Meaning |
|
|
1178
1178
|
|---|---|
|
|
@@ -1182,6 +1182,6 @@ service keeps the service's own code in `serverError` (for example `forbidden_ap
|
|
|
1182
1182
|
| `wix_token_unavailable` | The account Wix token (`wix token`) could not be minted; the publishing service needs it to verify you own the app and the site. Nothing was sent. |
|
|
1183
1183
|
| `unauthorized` | The control token was refused or revoked (401). |
|
|
1184
1184
|
| `forbidden` | Not your app, not your site, or the token may not act for the app (403); `serverError` says which. |
|
|
1185
|
-
| `refused` | A rule refused it (another 4xx): the package name, another app holding the site's store app, the app linked to another site,
|
|
1185
|
+
| `refused` | A rule refused it (another 4xx): the package name, another app holding the site's store app, the app linked to another site, a Containers app (its store ids are the Containers editor's), no saved package name; `serverError` says which. |
|
|
1186
1186
|
| `control_unreachable` | The publishing service could not be reached. |
|
|
1187
1187
|
| `request_failed` | Any other failure (5xx); `status` and `serverError` say which. |
|
package/guides/qa-builds.md
CHANGED
|
@@ -1397,37 +1397,24 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1397
1397
|
`DIST_ANDROID_FORMAT=aab` in its environment no longer turns an APK job into a bundle; the check
|
|
1398
1398
|
stays for a runner older than that rule. A later delivery that passes every check (a retry on a
|
|
1399
1399
|
clean machine) clears the verdict.
|
|
1400
|
-
- **A Containers app's bundle is a store build
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
fails is sent again on a later read and never fails the build. An optional `version` (1–3
|
|
1410
|
-
dot-separated integers) becomes the bundle's `versionName`, so Play shows the owner's version;
|
|
1411
|
-
without one the bundle keeps the shell's. Refusals:
|
|
1412
|
-
`store_build_version_invalid` (checked before the name is locked),
|
|
1400
|
+
- **A Containers app's bundle is a store build, which only mobile-apps-containers-builder starts.**
|
|
1401
|
+
For an app bound to a Wix site, the bundle is the file its owner uploads to Google Play. Its
|
|
1402
|
+
package name, the site's plan, the one-store-app-per-site hold and the build's record are that
|
|
1403
|
+
service's: it checks them and then starts the build here as the trusted caller (below), with the
|
|
1404
|
+
package name to build under. A request with a control token (the Containers editor or server, the
|
|
1405
|
+
owner, RelOps, an operator) is `403 store_build_requires_trusted_caller`, before anything is
|
|
1406
|
+
checked (MOBPUB-1246). An optional `version` (1–3 dot-separated integers) becomes the bundle's
|
|
1407
|
+
`versionName`, so Play shows the owner's version; without one the bundle keeps the shell's. A store
|
|
1408
|
+
build's own refusals (a Containers app's or a linked app's, below): `store_build_version_invalid`,
|
|
1413
1409
|
`store_build_android_only`, `store_build_incompatible_options` (`--signing byo`) and
|
|
1414
1410
|
`store_build_shell_unsupported` (any shell but `branded-lite`, the one that both builds under the
|
|
1415
|
-
contract's applicationId and targets the API level Google Play requires) 400,
|
|
1416
|
-
`
|
|
1417
|
-
`release_predates_store_builds` (the release was built from a
|
|
1418
|
-
its bundle would fail or Play would refuse it
|
|
1419
|
-
release and build again) 409,
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
`error`.
|
|
1423
|
-
The same checks are available WITHOUT a build, for the Containers editor to ask before it
|
|
1424
|
-
activates a draft release: `GET /v1/admin/site/store-build-check?app=&site=[&shell=]` answers
|
|
1425
|
-
`200 { ok: true, android: { packageName } }` or the same refusals, through `CheckIfBuildIsAllowed`,
|
|
1426
|
-
so it locks nothing. It names no release, so it cannot give
|
|
1427
|
-
`409 release_predates_store_builds`; a draft the editor just built is on a current commit. It is
|
|
1428
|
-
not sent the App name and icon either, so it cannot give their refusals (below). It never
|
|
1429
|
-
falls back to the locking call.
|
|
1430
|
-
- **An app you own, linked to a site you own, gets the same store build.** An app made with the
|
|
1411
|
+
contract's applicationId and targets the API level Google Play requires) 400,
|
|
1412
|
+
`store_build_site_forbidden` 403 (a linked app's owner check), `store_id_missing` (a linked app
|
|
1413
|
+
with no package name saved) and `release_predates_store_builds` (the release was built from a
|
|
1414
|
+
commit older than store builds, so its bundle would fail or Play would refuse it — publish a new
|
|
1415
|
+
release and build again) 409, `store_builds_unconfigured` 501, `store_builds_unavailable` 503 (also
|
|
1416
|
+
when the app's site binding or link cannot be read). Each refusal carries `code`, equal to `error`.
|
|
1417
|
+
- **An app you own, linked to a site you own, gets a store build under Himalaya's own rules.** An app made with the
|
|
1431
1418
|
CLI (`himi init`) is owned by your Wix account and bound to no site, so its `--aab` was
|
|
1432
1419
|
`403 android_format_not_allowed`. Binding it to a site is the wrong tool: that converts it into a
|
|
1433
1420
|
site app, after which your own `himi login` token can no longer push it. Instead, LINK it — the
|
|
@@ -1440,53 +1427,53 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1440
1427
|
--app-name "My App" --app-icon-url https://…/icon.png
|
|
1441
1428
|
```
|
|
1442
1429
|
|
|
1443
|
-
`set` is `PUT /v1/admin/site/store-app` and `show` is
|
|
1444
|
-
|
|
1430
|
+
`set` is `PUT /v1/admin/site/store-app` and `show` is `GET /v1/admin/site/store-build-check`
|
|
1431
|
+
(the store build's checks without the build: `200 { ok: true, android: { packageName } }` or the
|
|
1432
|
+
build's refusals; it names no release, so it cannot give `409 release_predates_store_builds`),
|
|
1433
|
+
both with your `himi login` control token AND your account's Wix credential (`wix token`, sent as
|
|
1445
1434
|
`Authorization`). The plane accepts the app only when the token's account is the app's OWNER (a
|
|
1446
1435
|
collaborator is `403 forbidden_app`), that same account controls the Wix credential and owns the
|
|
1447
1436
|
site (`403 forbidden_site`, or `store_build_site_forbidden` on the check), and the app is not
|
|
1448
1437
|
already linked to another site (`409 store_app_linked_to_other_site`; moving needs Wix support,
|
|
1449
|
-
because
|
|
1450
|
-
app), holds the site's store app (`409 store_app_site_taken` if another app holds it), and
|
|
1451
|
-
the package name; the response says `linked: true` the first time.
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
`himi dist --aab` then finds the site from the link and runs
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
the app in App Store Connect under that bundle id. The files
|
|
1438
|
+
because Google Play may already hold the package name). It records a link (app → site, one site
|
|
1439
|
+
per app), holds the site's store app (`409 store_app_site_taken` if another app holds it), and
|
|
1440
|
+
saves the package name on the link; the response says `linked: true` the first time. Running
|
|
1441
|
+
`set` again changes the name: nothing locks it. Only the Google Play package name is saved this
|
|
1442
|
+
way (`400 store_app_link_android_only` for iOS ids): App Store builds stay Containers-only, and a
|
|
1443
|
+
Containers app is `409 store_app_site_bound`. Before a link exists, the check and
|
|
1444
|
+
`GET /v1/admin/site/store-app` answer `409 store_app_requires_site_binding`, the code an unbound
|
|
1445
|
+
app always got.
|
|
1446
|
+
|
|
1447
|
+
`himi dist --aab` then finds the site and the package name from the link and runs Himalaya's own
|
|
1448
|
+
checks: the strict site-owner check, the app holds the site's store app, the app name and icon,
|
|
1449
|
+
`branded-lite` only, the release commit, the caps, WixOne signing. No Wix service is asked
|
|
1450
|
+
(MOBPUB-1252): nothing checks the site's plan, locks the package name or records the build. A link
|
|
1451
|
+
saved before the package name moved to the plane has none:
|
|
1452
|
+
its `--aab` is `409 store_id_missing` until `himi store app set` runs again. The link is re-checked
|
|
1453
|
+
on every build: if the app changed owner, was deactivated, or was since bound to a site, it no
|
|
1454
|
+
longer counts and the bundle is `403 android_format_not_allowed` again. The app is never
|
|
1455
|
+
site-bound anywhere else: push, CAPTCHA and every other route treat it as the account app it is.
|
|
1456
|
+
An `--android-signing owner` bundle keeps its own path.
|
|
1457
|
+
- **A Containers app's TestFlight build is an App Store build, which only mobile-apps-containers-builder
|
|
1458
|
+
starts.** For an app bound to a Wix site, `--platform ios --destination testflight --version <x.y.z>`
|
|
1459
|
+
with no `--signing` builds the app for the owner's own App Store account: signed with the owner's
|
|
1460
|
+
certificate, under the bundle id saved in mobile-apps-containers-builder, and uploaded to the
|
|
1461
|
+
owner's TestFlight with the owner's App Store Connect key. That service checks the owner, the plan
|
|
1462
|
+
and the saved bundle id and records the build, then starts it here as the trusted caller (below);
|
|
1463
|
+
with a control token it is `403 store_build_requires_trusted_caller`. The plane's checks run last
|
|
1464
|
+
before the build starts: the release's commit can make one (`appStoreBuild` in the signing
|
|
1465
|
+
marker), then `PrepareAppleCertificates` registers the bundle id in the owner's Apple account and
|
|
1466
|
+
answers the certificate, profile and key, and the bundle id it prepared must be the caller's
|
|
1467
|
+
`storeId`. `PrepareAppleCertificates` is the plane's one call to that service, made at dispatch,
|
|
1468
|
+
again when the pool fetches its signing (`GET /v1/dist/signing`), and again for each TestFlight
|
|
1469
|
+
upload. The owner must already have the app in App Store Connect under that bundle id. The files
|
|
1482
1470
|
and the key are never stored: the pool and the upload each fetch them again, the job keeps only
|
|
1483
1471
|
their hashes. The upload starts on its own once the pool reports the validated IPA: the pool's
|
|
1484
1472
|
callback starts it in the background, and so does every list read of the app's builds (the owner
|
|
1485
1473
|
card's poll) while it can be claimed, which also picks up one a stopped serve pod left. A status
|
|
1486
1474
|
read starts it the same way and answers without waiting for it (it never waits on Apple, so a
|
|
1487
|
-
read answers in seconds); any read the caller may make of the app moves it on, since the
|
|
1488
|
-
|
|
1489
|
-
owner's Wix login). A caller reads the job until `customerAppStore.status` is `UPLOADED` or
|
|
1475
|
+
read answers in seconds); any read the caller may make of the app moves it on, since the trusted
|
|
1476
|
+
caller checked the owner when it started the build. A caller reads the job until `customerAppStore.status` is `UPLOADED` or
|
|
1490
1477
|
`FAILED` to learn how it ended; it no longer has to read for the upload to happen. An attempt that
|
|
1491
1478
|
fails on a passing error (a 429 or 5xx from mobile-apps-containers-builder or Apple, a timeout, a
|
|
1492
1479
|
download that broke off) goes back to `READY_FOR_UPLOAD` with `failedAttempts`, `retryAt` and
|
|
@@ -1496,17 +1483,18 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1496
1483
|
within an hour of lapsing, the upload signs a fresh one from the stored bucket and key (the plane's
|
|
1497
1484
|
`DIST_ARTIFACT_AWS_*` key pair; without it, the recorded link).
|
|
1498
1485
|
Refusals, each with `code` equal to `error`: `store_build_ios_only`, `store_build_version_invalid`
|
|
1499
|
-
and `store_build_shell_unsupported` 400, `
|
|
1500
|
-
`
|
|
1486
|
+
and `store_build_shell_unsupported` 400, `store_build_requires_trusted_caller` and
|
|
1487
|
+
`store_build_site_forbidden` (the app is no longer bound to the site) 403, `store_id_missing`,
|
|
1488
|
+
`store_id_mismatch`, `release_predates_store_builds`, `apple_credentials_missing`,
|
|
1501
1489
|
`apple_private_key_invalid`, `apple_credentials_rejected`, `apple_credentials_access_denied`,
|
|
1502
|
-
`apple_agreement_not_accepted`, `bundle_id_not_available`, `apple_certificate_limit_reached
|
|
1503
|
-
`app_store_app_missing
|
|
1490
|
+
`apple_agreement_not_accepted`, `bundle_id_not_available`, `apple_certificate_limit_reached` and
|
|
1491
|
+
`app_store_app_missing` 409,
|
|
1504
1492
|
`store_builds_unconfigured` 501 (also until the generated client carries
|
|
1505
1493
|
`PrepareAppleCertificates`, and where customer App Store upload is off), `app_store_signing_invalid`
|
|
1506
1494
|
502 (the prepared files failed Himalaya's checks, the check's code in `reason`: a fix on Wix's
|
|
1507
1495
|
side, not a retry), `store_builds_unavailable` 503. A named `--signing byo` keeps the
|
|
1508
1496
|
customer-signed path above, from the site's legacy BuildSecrets.
|
|
1509
|
-
- **mobile-apps-containers-builder
|
|
1497
|
+
- **mobile-apps-containers-builder starts these store builds itself, as the trusted caller.** A
|
|
1510
1498
|
request with no `X-Control-Token` whose Wix identity the platform verified is a SERVICE identity
|
|
1511
1499
|
(`serviceIdentity.appDefId`) listed in `HIMI_TRUSTED_STORE_BUILD_APPS` (comma-separated; empty is
|
|
1512
1500
|
off, though a call to these routes without a control token still logs `Himalaya trusted caller
|
|
@@ -1514,8 +1502,8 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1514
1502
|
`POST /v1/admin/dist` a Containers app's Google Play bundle or App Store build with
|
|
1515
1503
|
`storeBuild: { metaSiteId, storeId }` and its own `attemptId` (required). The service has already
|
|
1516
1504
|
checked the site's owner, plan, saved store id and its store-app hold, and records the build once
|
|
1517
|
-
the plane accepts it, so the plane
|
|
1518
|
-
|
|
1505
|
+
the plane accepts it, so the plane makes no owner or plan check, keeps no hold or record of its
|
|
1506
|
+
own, reports nothing back, and builds under `storeId`. Every check of the plane's own still runs
|
|
1519
1507
|
(shape, release, shell, store marker, icon, kill switch, the per-app cap; for the App Store,
|
|
1520
1508
|
`PrepareAppleCertificates`, whose bundle id must equal `storeId`: `409 store_id_mismatch`). The app
|
|
1521
1509
|
must be bound to `metaSiteId` (`403 store_build_site_mismatch`); only the store-build fields are
|
|
@@ -1530,20 +1518,20 @@ himi dist --app <app> --platform android --aab --wait --target bo
|
|
|
1530
1518
|
TestFlight upload has settled, or the caller's cancel went through. Each read of a terminal job
|
|
1531
1519
|
asks Job Service whether it ended it, until it has, and the read that writes the result logs
|
|
1532
1520
|
`store_build.settled` (MOBPUB-1253). The caller learns the job ended from Job Service's own
|
|
1533
|
-
`wix.mre.v1.Job` domain events and then reads the job.
|
|
1534
|
-
|
|
1535
|
-
- **A store build ships under the owner's App name and icon.**
|
|
1536
|
-
app's `--aab` and its TestFlight build)
|
|
1537
|
-
(`himi dist --app-name <name> --app-icon-url <url>`):
|
|
1538
|
-
the
|
|
1521
|
+
`wix.mre.v1.Job` domain events and then reads the job. It is the only way a Containers app's store
|
|
1522
|
+
build starts: the same request with a control token is refused (above, MOBPUB-1246). MOBPUB-1241.
|
|
1523
|
+
- **A store build ships under the owner's App name and icon.** Every store build above (a Containers
|
|
1524
|
+
app's `--aab` and its TestFlight build, and a linked app's `--aab`) needs `appName` and `appIconUrl`
|
|
1525
|
+
on `POST /v1/admin/dist` (`himi dist --app-name <name> --app-icon-url <url>`): for a Containers app,
|
|
1526
|
+
the App name and App icon the owner set in the Containers editor, which the trusted caller sends. They win over
|
|
1539
1527
|
the release's app-config `name` and icon, which the generation agent picked. Any other build
|
|
1540
1528
|
takes them too when they are sent, and keeps the release's when they aren't. The name is trimmed,
|
|
1541
1529
|
1 to 200 characters, with no control characters and no `$` (Xcode would expand `$(NAME)` from the
|
|
1542
1530
|
pool's environment into the binary), and can't start with `@` or `?` (Android would read it as a
|
|
1543
1531
|
resource reference). The icon must be a Wix Media file, exactly
|
|
1544
1532
|
`https://static.wixstatic.com/media/<file>`. Its 1024x1024 PNG rendition
|
|
1545
|
-
(`<url>/v1/fill/w_1024,h_1024,al_c,q_100/icon.png`) is fetched and checked last before
|
|
1546
|
-
|
|
1533
|
+
(`<url>/v1/fill/w_1024,h_1024,al_c,q_100/icon.png`) is fetched and checked last before dispatch,
|
|
1534
|
+
and again when the pool reads its contract (`GET /v1/dist/contract`), twice at most.
|
|
1547
1535
|
If it can't be read then, the contract answers `503 app_icon_unavailable` and the build fails,
|
|
1548
1536
|
rather than baking the release's or the shell's icon. iOS gets the icon re-encoded with no alpha
|
|
1549
1537
|
channel, which App Store Connect refuses. The job records `appInfo`, and
|
|
@@ -1558,8 +1546,9 @@ app's bundle carries (`mobile-apps-engine` refuses any other certificate for a P
|
|
|
1558
1546
|
Play App Signing on, so Google re-signs what users install. An `.aab` therefore signs with it —
|
|
1559
1547
|
only its `WixOne` entry of `oneapp-production.keystore`: the alias is pinned for a bundle, whatever
|
|
1560
1548
|
alias the pool's signing files name. Because the first upload binds a Play listing to that key for good, a **self-serve** caller
|
|
1561
|
-
gets a bundle only as a Containers app's
|
|
1562
|
-
|
|
1549
|
+
gets a bundle only as a store build: a Containers app's, which the trusted caller starts once it
|
|
1550
|
+
checked the app, its owner and its package name, or a linked app's, whose owner the plane checks
|
|
1551
|
+
(above); any other self-serve `--aab` is `403 android_format_not_allowed`. A self-serve **APK** with
|
|
1563
1552
|
`wix-keystore` keeps `403 android_signing_not_allowed`, unchanged. The APK built beside a bundle is
|
|
1564
1553
|
QA-signed, so no installable APK carrying the WixOne signature is ever handed out; WixOne would not
|
|
1565
1554
|
help it anyway, because the APKs Google Play delivers carry Google's app-signing key, so a phone with
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1770.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": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "4c460ddf9692370e4501364882164e192dfde78b4dc718d48470bba5"
|
|
86
86
|
}
|
|
@@ -29,6 +29,19 @@ async function fenced<T>(identity: ChatIdentity, run: () => Promise<T>): Promise
|
|
|
29
29
|
/** Any other member-scoped call (the AI chat's) goes through the same fence. */
|
|
30
30
|
export const fence = fenced;
|
|
31
31
|
|
|
32
|
+
/** A signed-out visitor's Smart Chat calls are fenced the other way: still signed out before the request goes
|
|
33
|
+
* out and again before its response is used, so signing in mid-request never mixes the visitor's chat into
|
|
34
|
+
* the member's. Fails as `MemberAccessChanged`, like the member fence, so callers handle both alike. */
|
|
35
|
+
async function assertStillVisitor(): Promise<void> {
|
|
36
|
+
if ((await memberAccess()).email) throw Object.assign(new Error("visitor_signed_in"), { name: "MemberAccessChanged" });
|
|
37
|
+
}
|
|
38
|
+
export async function visitorFence<T>(run: () => Promise<T>): Promise<T> {
|
|
39
|
+
await assertStillVisitor();
|
|
40
|
+
const result = await run();
|
|
41
|
+
await assertStillVisitor();
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
|
|
32
45
|
// Minting a chat token is a network round trip, and every chat call used to mint its own. One token
|
|
33
46
|
// per member is reused until the member changes or a request using it is refused.
|
|
34
47
|
let cachedToken: { key: string; token: string } | null = null;
|
|
@@ -44,7 +57,7 @@ async function chatTokenFor(identity: ChatIdentity): Promise<string> {
|
|
|
44
57
|
return chatToken;
|
|
45
58
|
}
|
|
46
59
|
/** Runs `run` with the member's cached token; a refused request mints a fresh token and tries once more. */
|
|
47
|
-
async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
|
|
60
|
+
export async function withToken<T>(identity: ChatIdentity, run: (chatToken: string) => Promise<T>): Promise<T> {
|
|
48
61
|
const reused = cachedToken?.key === tokenKey(identity);
|
|
49
62
|
try {
|
|
50
63
|
return await run(await chatTokenFor(identity));
|
|
@@ -80,7 +93,7 @@ export const unreadRoomCount = (identity: ChatIdentity): Promise<number> => fenc
|
|
|
80
93
|
export const messagesPage = (identity: ChatIdentity, roomId: string): Promise<Raw[]> => fenced(identity, async () =>
|
|
81
94
|
(await withToken(identity, (chatToken) => getMessagesPage(roomId, { ...MEMBER, chatToken, pageSize: 50, ordering: "Desc" }))).items as unknown as Raw[]);
|
|
82
95
|
|
|
83
|
-
function bridge(): Bridge {
|
|
96
|
+
export function bridge(): Bridge {
|
|
84
97
|
const api = (globalThis as unknown as { himalaya?: { wixApi?: Bridge } }).himalaya?.wixApi;
|
|
85
98
|
if (!api) throw new Error("wix_api_bridge_unavailable");
|
|
86
99
|
return api;
|
|
@@ -89,7 +102,10 @@ function bridge(): Bridge {
|
|
|
89
102
|
* Wix Smart Chat and the AI can answer it; a message posted straight into the room has no channel, so the AI never
|
|
90
103
|
* saw it and the owner's reply went out by email. Smart Chat chooses the conversation and stored message id.
|
|
91
104
|
* The bridge resolves once the AI has finished answering, not when the message is stored. */
|
|
92
|
-
export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity,
|
|
105
|
+
export const sendMessage = (identity: ChatIdentity, text: string): Promise<string | undefined> => fenced(identity, () => postQuestion(text));
|
|
106
|
+
/** The same Smart Chat send for a signed-out visitor: Smart Chat accepts the anonymous visitor token. */
|
|
107
|
+
export const sendVisitorMessage = (text: string): Promise<string | undefined> => visitorFence(() => postQuestion(text));
|
|
108
|
+
async function postQuestion(text: string): Promise<string | undefined> {
|
|
93
109
|
const response = await bridge().call("POST", "/wix-assistant-widget/v1/messages/stream", {
|
|
94
110
|
message: { sender: "SITE_VISITOR", messageType: "QUESTION", body: { mainText: text } },
|
|
95
111
|
});
|
|
@@ -123,7 +139,7 @@ export const sendMessage = (identity: ChatIdentity, text: string): Promise<strin
|
|
|
123
139
|
if (input?.sender === "SITE_VISITOR" && input.messageType === "QUESTION" && typeof input.id === "string" && input.id) return `smart-chat:${input.id}`;
|
|
124
140
|
}
|
|
125
141
|
return undefined;
|
|
126
|
-
}
|
|
142
|
+
}
|
|
127
143
|
/** A tapped button is a silent, ephemeral message carrying the button's chat action. */
|
|
128
144
|
export const sendButton = (identity: ChatIdentity, roomId: string, input: { id: string; text: string; appId: string; interactionId: string }): Promise<void> => fenced(identity, async () => {
|
|
129
145
|
await withToken(identity, (chatToken) => bridge().call("POST", `${MANAGE}/_api/chat-web/v2/chatrooms/${encodeURIComponent(roomId)}/messages`, {
|
|
@@ -119,6 +119,12 @@ export function formatMonthDayLong(date: Date, locale = appLocale(), timeZone?:
|
|
|
119
119
|
|
|
120
120
|
const WEEKDAYS_LONG = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] as const;
|
|
121
121
|
|
|
122
|
+
/** `{ weekday: "short" }` — "Mon". */
|
|
123
|
+
export function formatWeekdayShort(date: Date, locale = appLocale(), timeZone?: string): string {
|
|
124
|
+
if (hasIntl()) return dateFormat(locale, { weekday: "short" }, timeZone).format(date);
|
|
125
|
+
return WEEKDAYS_SHORT[date.getDay()]!;
|
|
126
|
+
}
|
|
127
|
+
|
|
122
128
|
/** `{ weekday: "short", month: "short", day: "numeric" }` — "Mon, Jan 5". */
|
|
123
129
|
export function formatWeekdayMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
|
|
124
130
|
if (hasIntl()) {
|
|
@@ -119,6 +119,12 @@ export function formatMonthDayLong(date: Date, locale = appLocale(), timeZone?:
|
|
|
119
119
|
|
|
120
120
|
const WEEKDAYS_LONG = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] as const;
|
|
121
121
|
|
|
122
|
+
/** `{ weekday: "short" }` — "Mon". */
|
|
123
|
+
export function formatWeekdayShort(date: Date, locale = appLocale(), timeZone?: string): string {
|
|
124
|
+
if (hasIntl()) return dateFormat(locale, { weekday: "short" }, timeZone).format(date);
|
|
125
|
+
return WEEKDAYS_SHORT[date.getDay()]!;
|
|
126
|
+
}
|
|
127
|
+
|
|
122
128
|
/** `{ weekday: "short", month: "short", day: "numeric" }` — "Mon, Jan 5". */
|
|
123
129
|
export function formatWeekdayMonthDay(date: Date, locale = appLocale(), timeZone?: string): string {
|
|
124
130
|
if (hasIntl()) {
|
|
@@ -92346,7 +92346,8 @@ const SCREENS = runtimeSetting({
|
|
|
92346
92346
|
"displayName": "__HIMI_APP_NAME__",
|
|
92347
92347
|
"siteUrl": "__HIMI_MEMBER_SITE_URL__",
|
|
92348
92348
|
"productScreen": "himi_product",
|
|
92349
|
-
"serviceScreen": "himi_service"
|
|
92349
|
+
"serviceScreen": "himi_service",
|
|
92350
|
+
"visitorChat": "1"
|
|
92350
92351
|
}
|
|
92351
92352
|
}
|
|
92352
92353
|
}
|
|
@@ -9250,6 +9250,126 @@
|
|
|
9250
9250
|
"source": "Locked",
|
|
9251
9251
|
"translation": "مقفل",
|
|
9252
9252
|
"origin": "machine"
|
|
9253
|
+
},
|
|
9254
|
+
"h_195c32d26b9e": {
|
|
9255
|
+
"source": "You're offline. Check your connection and try again.",
|
|
9256
|
+
"translation": "أنت غير متصل بالإنترنت. تحقق من اتصالك وحاول مجددًا.",
|
|
9257
|
+
"origin": "machine"
|
|
9258
|
+
},
|
|
9259
|
+
"h_5ebf514df4d1": {
|
|
9260
|
+
"source": "You don't have access to your messages.",
|
|
9261
|
+
"translation": "ليس لديك إذن بالوصول إلى رسائلك.",
|
|
9262
|
+
"origin": "machine"
|
|
9263
|
+
},
|
|
9264
|
+
"h_e4a7bc84ee4e": {
|
|
9265
|
+
"source": "You don't have permission to do that.",
|
|
9266
|
+
"translation": "ليس لديك إذن للقيام بذلك.",
|
|
9267
|
+
"origin": "machine"
|
|
9268
|
+
},
|
|
9269
|
+
"h_00fff16759bc": {
|
|
9270
|
+
"source": "That didn't work. Please try again.",
|
|
9271
|
+
"translation": "لم ينجح ذلك. يُرجى المحاولة مجددًا.",
|
|
9272
|
+
"origin": "machine"
|
|
9273
|
+
},
|
|
9274
|
+
"h_5a15b87938a6": {
|
|
9275
|
+
"source": "This conversation can't be deleted.",
|
|
9276
|
+
"translation": "لا يمكن حذف هذه المحادثة.",
|
|
9277
|
+
"origin": "machine"
|
|
9278
|
+
},
|
|
9279
|
+
"h_4b50c6d7eea5": {
|
|
9280
|
+
"source": "Search isn't available right now.",
|
|
9281
|
+
"translation": "البحث غير متاح حاليًا.",
|
|
9282
|
+
"origin": "machine"
|
|
9283
|
+
},
|
|
9284
|
+
"h_9b976d70a5f3": {
|
|
9285
|
+
"source": "Conversation archived",
|
|
9286
|
+
"translation": "تمت أرشفة المحادثة",
|
|
9287
|
+
"origin": "machine"
|
|
9288
|
+
},
|
|
9289
|
+
"h_257a8e774c7d": {
|
|
9290
|
+
"source": "Conversation moved to your inbox",
|
|
9291
|
+
"translation": "تم نقل المحادثة إلى صندوق البريد الوارد",
|
|
9292
|
+
"origin": "machine"
|
|
9293
|
+
},
|
|
9294
|
+
"h_d78217d91c44": {
|
|
9295
|
+
"source": "Marked as read",
|
|
9296
|
+
"translation": "تم وضع علامة كمقروءة",
|
|
9297
|
+
"origin": "machine"
|
|
9298
|
+
},
|
|
9299
|
+
"h_53acd78f7f72": {
|
|
9300
|
+
"source": "Marked as unread",
|
|
9301
|
+
"translation": "تم وضع علامة كغير مقروءة",
|
|
9302
|
+
"origin": "machine"
|
|
9303
|
+
},
|
|
9304
|
+
"h_35f49dcfbfb2": {
|
|
9305
|
+
"source": "Sent",
|
|
9306
|
+
"translation": "تم الإرسال",
|
|
9307
|
+
"origin": "machine"
|
|
9308
|
+
},
|
|
9309
|
+
"h_3b2c9749f233": {
|
|
9310
|
+
"source": "Sending message…",
|
|
9311
|
+
"translation": "جارٍ إرسال الرسالة…",
|
|
9312
|
+
"origin": "machine"
|
|
9313
|
+
},
|
|
9314
|
+
"h_6e9f8a49efa6": {
|
|
9315
|
+
"source": "Couldn't send",
|
|
9316
|
+
"translation": "تعذّر الإرسال",
|
|
9317
|
+
"origin": "machine"
|
|
9318
|
+
},
|
|
9319
|
+
"h_3a18cb8c4560": {
|
|
9320
|
+
"source": "Type a message first.",
|
|
9321
|
+
"translation": "اكتب رسالة أولًا.",
|
|
9322
|
+
"origin": "machine"
|
|
9323
|
+
},
|
|
9324
|
+
"h_97b579dce558": {
|
|
9325
|
+
"source": "This message can't be shown here yet.",
|
|
9326
|
+
"translation": "لا يمكن عرض هذه الرسالة هنا بعد.",
|
|
9327
|
+
"origin": "machine"
|
|
9328
|
+
},
|
|
9329
|
+
"h_5f8f898dcfc2": {
|
|
9330
|
+
"source": "Photo in this conversation",
|
|
9331
|
+
"translation": "صورة في هذه المحادثة",
|
|
9332
|
+
"origin": "machine"
|
|
9333
|
+
},
|
|
9334
|
+
"h_b36bd6b7d161": {
|
|
9335
|
+
"source": "Open attachment",
|
|
9336
|
+
"translation": "فتح المرفق",
|
|
9337
|
+
"origin": "machine"
|
|
9338
|
+
},
|
|
9339
|
+
"h_b3a288248eee": {
|
|
9340
|
+
"source": "You're offline. Reconnect and try again.",
|
|
9341
|
+
"translation": "أنت غير متصل بالإنترنت. أعد الاتصال وحاول مجددًا.",
|
|
9342
|
+
"origin": "machine"
|
|
9343
|
+
},
|
|
9344
|
+
"h_110fe4bc942f": {
|
|
9345
|
+
"source": "This conversation couldn't be loaded. Please try again.",
|
|
9346
|
+
"translation": "تعذّر تحميل هذه المحادثة. يُرجى المحاولة مجددًا.",
|
|
9347
|
+
"origin": "machine"
|
|
9348
|
+
},
|
|
9349
|
+
"h_d22008fbd148": {
|
|
9350
|
+
"source": "You don't have access to this conversation.",
|
|
9351
|
+
"translation": "ليس لديك إذن بالوصول إلى هذه المحادثة.",
|
|
9352
|
+
"origin": "machine"
|
|
9353
|
+
},
|
|
9354
|
+
"h_b2f1a9bdc0b8": {
|
|
9355
|
+
"source": "Sign in to see this conversation.",
|
|
9356
|
+
"translation": "سجّل الدخول لرؤية هذه المحادثة.",
|
|
9357
|
+
"origin": "machine"
|
|
9358
|
+
},
|
|
9359
|
+
"h_cb5ace13b1cd": {
|
|
9360
|
+
"source": "Couldn't update this conversation. Please try again.",
|
|
9361
|
+
"translation": "تعذّر تحديث هذه المحادثة. يُرجى المحاولة مجددًا.",
|
|
9362
|
+
"origin": "machine"
|
|
9363
|
+
},
|
|
9364
|
+
"h_e049d4b2051d": {
|
|
9365
|
+
"source": "You don't have permission to change this conversation.",
|
|
9366
|
+
"translation": "ليس لديك إذن بتغيير هذه المحادثة.",
|
|
9367
|
+
"origin": "machine"
|
|
9368
|
+
},
|
|
9369
|
+
"h_9b0375e475e1": {
|
|
9370
|
+
"source": "Only private conversations can be deleted.",
|
|
9371
|
+
"translation": "يمكن حذف المحادثات الخاصة فقط.",
|
|
9372
|
+
"origin": "machine"
|
|
9253
9373
|
}
|
|
9254
9374
|
}
|
|
9255
9375
|
}
|