@wix/himalaya-cli 0.1300.0 → 0.1301.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.
@@ -78,8 +78,10 @@ export interface WixAuthConfig {
78
78
  /** @deprecated Use {@link WixOwnerAuthProvider}. */
79
79
  export declare function WixAuthProvider(config: WixAuthConfig): AuthProvider;
80
80
  export interface WixNativeAuthConfig {
81
- /** Which credential model the obtained account session adapts to. */
82
- mode: "owner" | "consumer";
81
+ /** Which credential model the obtained account session adapts to. `account` (RFC 0071) is
82
+ * owner mode's sign-in and transport with a per-site `Member` instance on site-scoped calls —
83
+ * one Wix account acting as the member of every site it belongs to (Spaces Lite). */
84
+ mode: "owner" | "consumer" | "account";
83
85
  /** Per-site Wix Headless OAuth client id (consumer member-token exchange). */
84
86
  clientId?: string;
85
87
  /** App URL scheme registered in the client's allowed redirect URIs — used by
@@ -68,4 +68,19 @@ export declare class SignedInstanceResolver {
68
68
  private cacheKey;
69
69
  private report;
70
70
  }
71
+ /** A site-scoped call for a site the signed-in account is not a member of. Raised only by the
72
+ * per-site mint or its validation, never by a call's own 403 (a permission verdict). */
73
+ export declare class NotSiteMember extends Error {
74
+ readonly metaSiteId: string;
75
+ readonly reason: string;
76
+ constructor(metaSiteId: string, reason: string);
77
+ }
78
+ /** The decoded payload of a Wix signed instance (`<signature>.<base64url JSON>`), or null. */
79
+ export declare function signedInstancePayload(instance: string): Record<string, unknown> | null;
80
+ /** Why [instance] is not a Member instance of [metaSiteId], or null when it is. A Member payload
81
+ * carries no `signedInstanceType`: it is recognised by a non-empty `siteMemberId` equal to `uid`
82
+ * and no `permissions` (a User instance carries `permissions: "OWNER"`). */
83
+ export declare function memberInstanceRejection(instance: string, metaSiteId: string): string | null;
84
+ /** 60 s before the instance's own `expirationDate`, or null when it carries none. */
85
+ export declare function signedInstanceRefreshDeadline(instance: string, now?: Date): Date | null;
71
86
  export {};
@@ -1176,8 +1176,8 @@ function WixAuthProvider(config) {
1176
1176
  });
1177
1177
  }
1178
1178
  function WixNativeAuthProvider(config) {
1179
- if (config.mode !== "owner" && config.mode !== "consumer") {
1180
- throw new Error('WixNativeAuthProvider: mode must be "owner" or "consumer".');
1179
+ if (config.mode !== "owner" && config.mode !== "consumer" && config.mode !== "account") {
1180
+ throw new Error('WixNativeAuthProvider: mode must be "owner", "consumer" or "account".');
1181
1181
  }
1182
1182
  return {
1183
1183
  providerId: "wix-native",
package/dist/cli.mjs CHANGED
@@ -7586,7 +7586,6 @@ function resolveTranslation(value, catalog3, sourceCatalog) {
7586
7586
  var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
7587
7587
  var init_bindings = __esm({
7588
7588
  "../../core/ts/src/bindings.ts"() {
7589
- "use strict";
7590
7589
  BINDING_SIGILS = ["service", "flag", "item", "t"];
7591
7590
  BINDING_SIGIL_RE = new RegExp(
7592
7591
  `^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1300.0",
3
+ "version": "0.1301.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": [
@@ -70,5 +70,5 @@
70
70
  "artifactId": "himalaya-cli"
71
71
  }
72
72
  },
73
- "falconPackageHash": "e8c5c98f40683e0fbf406c1adc9911358d8678fa8023e82a053b0d2d"
73
+ "falconPackageHash": "2dafac8ccfac415808b09743b8923aebec953612e157b7b2182df610"
74
74
  }