@wix/himalaya-cli 0.1099.0 → 0.1101.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.
Files changed (55) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/comments-v1/src/extensions.d.ts +13 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/_shared/runtime.generated.d.ts +27 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/_shared/types.generated.d.ts +829 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/categories.generated.d.ts +113 -0
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/commentContexts.generated.d.ts +43 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/comments.generated.d.ts +553 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/contentRevisions.generated.d.ts +100 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/index.generated.d.ts +7 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/ratings.generated.d.ts +72 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/widgets.generated.d.ts +138 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +280 -7
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +1 -1
  13. package/dist/cli.mjs +16 -1
  14. package/guides/release-notes.md +9 -0
  15. package/guides/sdk-reference.json +291 -1
  16. package/guides/wix-api-usage.md +34 -1
  17. package/package.json +2 -2
  18. package/templates/beauty-salon/dev/index.ts +394 -514
  19. package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +8 -1
  20. package/templates/beauty-salon/tier5-src/himi-blog-post/index.ts +14 -4
  21. package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +8 -1
  22. package/templates/branded-lite/dev/index.ts +394 -514
  23. package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +8 -1
  24. package/templates/branded-lite/tier5-src/himi-blog-post/index.ts +14 -4
  25. package/templates/community-club/tier5-src/_shared/collection-contract.ts +8 -1
  26. package/templates/community-club/tier5-src/himi-blog-post/index.ts +14 -4
  27. package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +8 -1
  28. package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +8 -1
  29. package/templates/events-meetups/tier5-src/himi-blog-post/index.ts +14 -4
  30. package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +8 -1
  31. package/templates/gym-fitness/dev/index.ts +394 -514
  32. package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +8 -1
  33. package/templates/gym-fitness/tier5-src/himi-blog-post/index.ts +14 -4
  34. package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +8 -1
  35. package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +8 -1
  36. package/templates/nonprofit-cause/tier5-src/himi-blog-post/index.ts +14 -4
  37. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +8 -1
  38. package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +8 -1
  39. package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +8 -1
  40. package/templates/podcast-creator/tier5-src/himi-blog-post/index.ts +14 -4
  41. package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +8 -1
  42. package/templates/portfolio-creative/dev/index.ts +396 -516
  43. package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +8 -1
  44. package/templates/portfolio-creative/tier5-src/himi-blog-post/index.ts +14 -4
  45. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +8 -1
  46. package/templates/restaurant/tier5-src/_shared/collection-contract.ts +8 -1
  47. package/templates/restaurant/tier5-src/himi-blog-post/index.ts +14 -4
  48. package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +8 -1
  49. package/templates/retail-store/dev/index.ts +396 -516
  50. package/templates/retail-store/tier5-src/_shared/collection-contract.ts +8 -1
  51. package/templates/retail-store/tier5-src/himi-blog-post/index.ts +14 -4
  52. package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +8 -1
  53. package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +8 -1
  54. package/templates/yoga-studio/tier5-src/himi-blog-post/index.ts +14 -4
  55. package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +8 -1
package/dist/cli.mjs CHANGED
@@ -4290,6 +4290,17 @@ var init_splash = __esm({
4290
4290
  }
4291
4291
  });
4292
4292
 
4293
+ // ../../core/dev-server/tier5-bundles-src/wix-sdk-auto-aliases.generated.mjs
4294
+ var AUTO_WIX_SDK;
4295
+ var init_wix_sdk_auto_aliases_generated = __esm({
4296
+ "../../core/dev-server/tier5-bundles-src/wix-sdk-auto-aliases.generated.mjs"() {
4297
+ "use strict";
4298
+ AUTO_WIX_SDK = {
4299
+ "@himalaya/wix-comments": { pkg: "comments", index: "stdlib/wix-sdk-auto/comments/index.generated.ts", curated: "comments-v1" }
4300
+ };
4301
+ }
4302
+ });
4303
+
4293
4304
  // ../../core/dev-server/tier5-bundles-src/build-lib.mjs
4294
4305
  var build_lib_exports = {};
4295
4306
  __export(build_lib_exports, {
@@ -4882,6 +4893,7 @@ var _compilerP, __dirname, REPO_ROOT4, SDK, alias, sourceAliases, SRC_DIR, OUT_D
4882
4893
  var init_build_lib = __esm({
4883
4894
  "../../core/dev-server/tier5-bundles-src/build-lib.mjs"() {
4884
4895
  "use strict";
4896
+ init_wix_sdk_auto_aliases_generated();
4885
4897
  __dirname = dirname8(fileURLToPath5(import.meta.url));
4886
4898
  REPO_ROOT4 = resolve8(__dirname, "../../..");
4887
4899
  SDK = (d) => resolve8(REPO_ROOT4, `stdlib/wix-sdk/${d}/src/index.ts`);
@@ -4973,7 +4985,6 @@ var init_build_lib = __esm({
4973
4985
  "@himalaya/wix-ecom": SDK("ecom"),
4974
4986
  "@himalaya/wix-redirects": SDK("redirects-v1"),
4975
4987
  "@himalaya/wix-blog": SDK("blog-v3"),
4976
- "@himalaya/wix-comments": SDK("comments-v1"),
4977
4988
  "@himalaya/wix-users": SDK("users"),
4978
4989
  "@himalaya/wix-new-releases": SDK("new-releases"),
4979
4990
  "@himalaya/wix-business-feed": SDK("business-feed"),
@@ -5021,6 +5032,10 @@ var init_build_lib = __esm({
5021
5032
  "@himalaya/wix-notifications": SDK("notifications-v3"),
5022
5033
  "@himalaya/wix-seo": SDK("seo-v1")
5023
5034
  };
5035
+ for (const [key2, e] of Object.entries(AUTO_WIX_SDK)) {
5036
+ if (key2 in alias) throw new Error(`build-lib.mjs: ${key2} is hand-listed AND in wix-sdk-auto-aliases.generated.mjs \u2014 delete the hand-listed entry`);
5037
+ alias[key2] = resolve8(REPO_ROOT4, e.index);
5038
+ }
5024
5039
  sourceAliases = Object.fromEntries(Object.entries(alias).flatMap(([name, target]) => [
5025
5040
  [name, target],
5026
5041
  [name.replace(/^@himalaya\//, "@wix/himalaya/"), target]
@@ -14,6 +14,15 @@ areas, always in the same order, so you can skim for the one you care about.
14
14
 
15
15
  ---
16
16
 
17
+ ## 2026-09-28
18
+
19
+ ### Logic, data & SDKs
20
+
21
+ - **`@himalaya/wix-comments` now exposes every `@wix/comments` module as a namespace**
22
+ (`comments`, `ratings`, `widgets`, `categories`, `commentContexts`, `contentRevisions`), called
23
+ with the REST request object — e.g. `comments.createComment({ comment })`. Existing imports are
24
+ unchanged. (#3476)
25
+
17
26
  ## 2026-09-25
18
27
 
19
28
  ### Preview, push & release
@@ -8411,7 +8411,7 @@
8411
8411
  },
8412
8412
  {
8413
8413
  "name": "@himalaya/wix-comments",
8414
- "source": "stdlib/wix-sdk/comments-v1/src/index.ts",
8414
+ "source": "stdlib/wix-sdk-auto/comments/index.generated.ts",
8415
8415
  "description": "Comments on any resource",
8416
8416
  "api": [
8417
8417
  {
@@ -10240,12 +10240,24 @@
10240
10240
  "http": "POST /comments/v1/bulk/comments/reactions/get",
10241
10241
  "scope": "visitor"
10242
10242
  },
10243
+ {
10244
+ "name": "BLOG_COMMENTS_APP_ID",
10245
+ "kind": "const",
10246
+ "jsdoc": "",
10247
+ "decl": "export const BLOG_COMMENTS_APP_ID = \"14bcded7-0066-7c35-14d7-466cb3f09103\";"
10248
+ },
10243
10249
  {
10244
10250
  "name": "WixBlogCommentRow",
10245
10251
  "kind": "type",
10246
10252
  "jsdoc": "",
10247
10253
  "decl": "export type WixBlogCommentRow = {\n id: string;\n authorName: string;\n text: string;\n createdDate: string;\n};"
10248
10254
  },
10255
+ {
10256
+ "name": "blogCommentRow",
10257
+ "kind": "function",
10258
+ "jsdoc": "/** A created or listed comment as the blog screen's row. Accepts the curated and the auto-tier\n * (`comments.createComment`) response shapes alike — both are the same REST wire object. */",
10259
+ "decl": "export function blogCommentRow(comment: BlogCommentLike | undefined): WixBlogCommentRow;"
10260
+ },
10249
10261
  {
10250
10262
  "name": "createBlogComment",
10251
10263
  "kind": "function",
@@ -10258,6 +10270,284 @@
10258
10270
  "jsdoc": "",
10259
10271
  "decl": "export async function listBlogComments(postId: string): Promise<WixBlogCommentRow[]>;",
10260
10272
  "http": "GET /comments/v1/comments/list-by-resource?{…}"
10273
+ },
10274
+ {
10275
+ "name": "categories.createCategory",
10276
+ "kind": "function",
10277
+ "jsdoc": "/**\n * Creates a new category.\n *\n * @permissionId WIX_COMMENTS.CATEGORY_CREATE\n * @fqn wix.comments.categories.v1.CommentsCategories.CreateCategory\n *\n * POST /comments/v1/categories\n */",
10278
+ "decl": "export function createCategory(req: CreateCategoryRequest = {} as CreateCategoryRequest, opts?: WixCallOptions): Promise<CreateCategoryResponse>;",
10279
+ "http": "POST /comments/v1/categories"
10280
+ },
10281
+ {
10282
+ "name": "categories.deleteCategory",
10283
+ "kind": "function",
10284
+ "jsdoc": "/**\n * Deletes a category.\n *\n * @permissionId WIX_COMMENTS.CATEGORY_DELETE\n * @fqn wix.comments.categories.v1.CommentsCategories.DeleteCategory\n *\n * DELETE /comments/v1/categories/{categoryId}\n */",
10285
+ "decl": "export function deleteCategory(req: DeleteCategoryRequest, opts?: WixCallOptions): Promise<DeleteCategoryResponse>;",
10286
+ "http": "DELETE /comments/v1/categories/{categoryId}"
10287
+ },
10288
+ {
10289
+ "name": "categories.getCategory",
10290
+ "kind": "function",
10291
+ "jsdoc": "/**\n * Retrieves a category by ID.\n *\n * @permissionId WIX_COMMENTS.CATEGORY_READ\n * @fqn wix.comments.categories.v1.CommentsCategories.GetCategory\n *\n * GET /comments/v1/categories/{categoryId}\n */",
10292
+ "decl": "export function getCategory(req: GetCategoryRequest, opts?: WixCallOptions): Promise<GetCategoryResponse>;",
10293
+ "http": "GET /comments/v1/categories/{categoryId}"
10294
+ },
10295
+ {
10296
+ "name": "categories.queryCategory",
10297
+ "kind": "function",
10298
+ "jsdoc": "/**\n * Creates a query to retrieve a list of comment categories.\n *\n * @permissionId WIX_COMMENTS.CATEGORY_READ\n * @fqn wix.comments.categories.v1.CommentsCategories.QueryCategory\n *\n * POST /comments/v1/categories/query\n */",
10299
+ "decl": "export function queryCategory(req: QueryCategoryRequest = {} as QueryCategoryRequest, opts?: WixCallOptions): Promise<QueryCategoryResponse>;",
10300
+ "http": "POST /comments/v1/categories/query"
10301
+ },
10302
+ {
10303
+ "name": "categories.updateCategory",
10304
+ "kind": "function",
10305
+ "jsdoc": "/**\n * Updates a category.\n *\n * @permissionId WIX_COMMENTS.CATEGORY_EDIT\n * @fqn wix.comments.categories.v1.CommentsCategories.UpdateCategory\n *\n * PATCH /comments/v1/categories/{categoryId}\n */",
10306
+ "decl": "export function updateCategory(req: UpdateCategoryRequest, opts?: WixCallOptions): Promise<UpdateCategoryResponse>;",
10307
+ "http": "PATCH /comments/v1/categories/{categoryId}"
10308
+ },
10309
+ {
10310
+ "name": "commentContexts.getCommentContext",
10311
+ "kind": "function",
10312
+ "jsdoc": "/**\n * Retrieves the comment permissions resolved for the current identity in the specified context.\n *\n * @permissionId WIX_COMMENTS.COMMENT_CONTEXT_READ\n * @fqn wix.comments.context.v1.CommentsContextHost.GetCommentContext\n *\n * GET /comments/v1/contexts/{appId}\n */",
10313
+ "decl": "export function getCommentContext(req: GetCommentContextRequest, opts?: WixCallOptions): Promise<GetCommentContextResponse>;",
10314
+ "http": "GET /comments/v1/contexts/{appId}"
10315
+ },
10316
+ {
10317
+ "name": "comments.addCommentReaction",
10318
+ "kind": "function",
10319
+ "jsdoc": "/**\n * Adds the current identity's reaction to a comment.\n *\n * @scope visitor — an anonymous visitor session is enough.\n * @permissionId comments:v2:comment:add_comment_reaction\n * @fqn wix.comments.ng.v1.CommentsNg.AddCommentReaction\n *\n * POST /comments/v1/comments/{commentId}/reactions\n */",
10320
+ "decl": "export function addCommentReaction(req: AddCommentReactionRequest, opts?: WixCallOptions): Promise<AddCommentReactionResponse>;",
10321
+ "http": "POST /comments/v1/comments/{commentId}/reactions",
10322
+ "scope": "visitor"
10323
+ },
10324
+ {
10325
+ "name": "comments.bulkDeleteComment",
10326
+ "kind": "function",
10327
+ "jsdoc": "/**\n * Deletes multiple comments.\n *\n * @permissionId WIX_COMMENTS.BULK_COMMENT_DELETE\n * @fqn wix.comments.ng.v1.CommentsNg.BulkDeleteComment\n *\n * PUT /comments/v1/bulk/comments/delete-by-filter\n */",
10328
+ "decl": "export function bulkDeleteComment(req: BulkDeleteCommentRequest = {} as BulkDeleteCommentRequest, opts?: WixCallOptions): Promise<BulkDeleteCommentResponse>;",
10329
+ "http": "PUT /comments/v1/bulk/comments/delete-by-filter"
10330
+ },
10331
+ {
10332
+ "name": "comments.bulkGetCommentReactions",
10333
+ "kind": "function",
10334
+ "jsdoc": "/**\n * Retrieves reactions for multiple comments.\n *\n * @scope visitor — an anonymous visitor session is enough.\n * @permissionId comments:v2:comment:bulk_get_comment_reactions\n * @fqn wix.comments.ng.v1.CommentsNg.BulkGetCommentReactions\n *\n * POST /comments/v1/bulk/comments/reactions/get\n */",
10335
+ "decl": "export function bulkGetCommentReactions(req: BulkGetCommentReactionsRequest = {} as BulkGetCommentReactionsRequest, opts?: WixCallOptions): Promise<BulkGetCommentReactionsResponse>;",
10336
+ "http": "POST /comments/v1/bulk/comments/reactions/get",
10337
+ "scope": "visitor"
10338
+ },
10339
+ {
10340
+ "name": "comments.bulkHideComment",
10341
+ "kind": "function",
10342
+ "jsdoc": "/**\n * Hides multiple comments. The comment status becomes `HIDDEN`.\n *\n * @permissionId WIX_COMMENTS.BULK_COMMENT_HIDE\n * @fqn wix.comments.ng.v1.CommentsNg.BulkHideComment\n *\n * PUT /comments/v1/bulk/comments/hide-by-filter\n */",
10343
+ "decl": "export function bulkHideComment(req: BulkHideCommentRequest = {} as BulkHideCommentRequest, opts?: WixCallOptions): Promise<BulkHideCommentResponse>;",
10344
+ "http": "PUT /comments/v1/bulk/comments/hide-by-filter"
10345
+ },
10346
+ {
10347
+ "name": "comments.bulkModerateDraftContent",
10348
+ "kind": "function",
10349
+ "jsdoc": "/**\n * Moderates the draft content of multiple comments that match the specified filter.\n *\n * @permissionId WIX_COMMENTS.BULK_COMMENT_MODERATE_DRAFT_CONTENT\n * @fqn wix.comments.ng.v1.CommentsNg.BulkModerateDraftContent\n *\n * POST /comments/v1/bulk/comments/moderate-by-filter\n */",
10350
+ "decl": "export function bulkModerateDraftContent(req: BulkModerateDraftContentRequest = {} as BulkModerateDraftContentRequest, opts?: WixCallOptions): Promise<BulkModerateDraftContentResponse>;",
10351
+ "http": "POST /comments/v1/bulk/comments/moderate-by-filter"
10352
+ },
10353
+ {
10354
+ "name": "comments.bulkMoveCommentByFilter",
10355
+ "kind": "function",
10356
+ "jsdoc": "/**\n * Moves multiple comments to another resource.\n *\n * @permissionId WIX_COMMENTS.BULK_COMMENT_MOVE\n * @fqn wix.comments.ng.v1.CommentsNg.BulkMoveCommentByFilter\n *\n * PUT /comments/v1/bulk/comments/move-by-filter\n */",
10357
+ "decl": "export function bulkMoveCommentByFilter(req: BulkMoveCommentByFilterRequest = {} as BulkMoveCommentByFilterRequest, opts?: WixCallOptions): Promise<BulkMoveCommentByFilterResponse>;",
10358
+ "http": "PUT /comments/v1/bulk/comments/move-by-filter"
10359
+ },
10360
+ {
10361
+ "name": "comments.bulkPublishComment",
10362
+ "kind": "function",
10363
+ "jsdoc": "/**\n * Publishes multiple comments with the `HIDDEN` status. The comment status becomes `PUBLISHED`.\n *\n * @permissionId WIX_COMMENTS.BULK_COMMENT_PUBLISH\n * @fqn wix.comments.ng.v1.CommentsNg.BulkPublishComment\n *\n * POST /comments/v1/bulk/comments/publish-by-filter\n */",
10364
+ "decl": "export function bulkPublishComment(req: BulkPublishCommentRequest = {} as BulkPublishCommentRequest, opts?: WixCallOptions): Promise<BulkPublishCommentResponse>;",
10365
+ "http": "POST /comments/v1/bulk/comments/publish-by-filter"
10366
+ },
10367
+ {
10368
+ "name": "comments.countComments",
10369
+ "kind": "function",
10370
+ "jsdoc": "/**\n * Counts comments, given the specified filtering. Comments with the `HIDDEN` status are not included in the response.\n *\n * @permissionId WIX_COMMENTS.COMMENT_COUNT\n * @fqn wix.comments.ng.v1.CommentsNg.CountComments\n *\n * POST /comments/v1/comments/count\n */",
10371
+ "decl": "export function countComments(req: CountCommentsRequest = {} as CountCommentsRequest, opts?: WixCallOptions): Promise<CountCommentsResponse>;",
10372
+ "http": "POST /comments/v1/comments/count"
10373
+ },
10374
+ {
10375
+ "name": "comments.createComment",
10376
+ "kind": "function",
10377
+ "jsdoc": "/**\n * Creates a new comment.\n *\n * @scope member — requires a signed-in site member.\n * @permissionId WIX_COMMENTS.COMMENT_CREATE\n * @permissionId WIX_COMMENTS.COMMENT_OVERRIDE_AUTHOR\n * @permissionId WIX_COMMENTS.COMMENT_OVERRIDE_COMMENT_DATE\n * @fqn wix.comments.ng.v1.CommentsNg.CreateComment\n *\n * POST /comments/v1/comments\n */",
10378
+ "decl": "export function createComment(req: CreateCommentRequest = {} as CreateCommentRequest, opts?: WixCallOptions): Promise<CreateCommentResponse>;",
10379
+ "http": "POST /comments/v1/comments",
10380
+ "scope": "member"
10381
+ },
10382
+ {
10383
+ "name": "comments.deleteComment",
10384
+ "kind": "function",
10385
+ "jsdoc": "/**\n * Deletes a comment.\n *\n * @permissionId WIX_COMMENTS.COMMENT_DELETE\n * @fqn wix.comments.ng.v1.CommentsNg.DeleteComment\n *\n * DELETE /comments/v1/comments/{commentId}\n */",
10386
+ "decl": "export function deleteComment(req: DeleteCommentRequest, opts?: WixCallOptions): Promise<DeleteCommentResponse>;",
10387
+ "http": "DELETE /comments/v1/comments/{commentId}"
10388
+ },
10389
+ {
10390
+ "name": "comments.getComment",
10391
+ "kind": "function",
10392
+ "jsdoc": "/**\n * Retrieves a comment.\n *\n * @permissionId WIX_COMMENTS.COMMENT_READ\n * @fqn wix.comments.ng.v1.CommentsNg.GetComment\n *\n * GET /comments/v1/comments/{commentId}\n */",
10393
+ "decl": "export function getComment(req: GetCommentRequest, opts?: WixCallOptions): Promise<GetCommentResponse>;",
10394
+ "http": "GET /comments/v1/comments/{commentId}"
10395
+ },
10396
+ {
10397
+ "name": "comments.getCommentThread",
10398
+ "kind": "function",
10399
+ "jsdoc": "/**\n * Returns a thread of a comment or a reply.\n *\n * @permissionId WIX_COMMENTS.COMMENT_THREAD\n * @fqn wix.comments.ng.v1.CommentsNg.GetCommentThread\n *\n * GET /comments/v1/comments/{commentId}/thread\n */",
10400
+ "decl": "export function getCommentThread(req: GetCommentThreadRequest, opts?: WixCallOptions): Promise<GetCommentThreadResponse>;",
10401
+ "http": "GET /comments/v1/comments/{commentId}/thread"
10402
+ },
10403
+ {
10404
+ "name": "comments.hideComment",
10405
+ "kind": "function",
10406
+ "jsdoc": "/**\n * Hides a comment in a widget. The comment status becomes `HIDDEN`.\n *\n * @permissionId WIX_COMMENTS.COMMENT_HIDE\n * @fqn wix.comments.ng.v1.CommentsNg.HideComment\n *\n * PUT /comments/v1/comments/{commentId}/hide\n */",
10407
+ "decl": "export function hideComment(req: HideCommentRequest, opts?: WixCallOptions): Promise<HideCommentResponse>;",
10408
+ "http": "PUT /comments/v1/comments/{commentId}/hide"
10409
+ },
10410
+ {
10411
+ "name": "comments.listCommentsByResource",
10412
+ "kind": "function",
10413
+ "jsdoc": "/**\n * Lists published comments and replies from a specified resource, such as a blog post.\n *\n * @permissionId WIX_COMMENTS.COMMENT_LIST\n * @fqn wix.comments.ng.v1.CommentsNg.ListCommentsByResource\n *\n * GET /comments/v1/comments/list-by-resource\n */",
10414
+ "decl": "export function listCommentsByResource(req: ListCommentsByResourceRequest = {} as ListCommentsByResourceRequest, opts?: WixCallOptions): Promise<ListCommentsByResourceResponse>;",
10415
+ "http": "GET /comments/v1/comments/list-by-resource"
10416
+ },
10417
+ {
10418
+ "name": "comments.markComment",
10419
+ "kind": "function",
10420
+ "jsdoc": "/**\n * Sets `marked` to `TRUE` to mark a comment.\n *\n * @permissionId WIX_COMMENTS.COMMENT_MARK\n * @fqn wix.comments.ng.v1.CommentsNg.MarkComment\n *\n * PUT /comments/v1/comments/{commentId}/mark\n */",
10421
+ "decl": "export function markComment(req: MarkCommentRequest, opts?: WixCallOptions): Promise<MarkCommentResponse>;",
10422
+ "http": "PUT /comments/v1/comments/{commentId}/mark"
10423
+ },
10424
+ {
10425
+ "name": "comments.moderateDraftContent",
10426
+ "kind": "function",
10427
+ "jsdoc": "/**\n * Moderates the draft content of a comment.\n *\n * @permissionId WIX_COMMENTS.COMMENT_MODERATE_DRAFT_CONTENT\n * @fqn wix.comments.ng.v1.CommentsNg.ModerateDraftContent\n *\n * POST /comments/v1/comments/{commentId}/moderate\n */",
10428
+ "decl": "export function moderateDraftContent(req: ModerateDraftContentRequest, opts?: WixCallOptions): Promise<ModerateDraftContentResponse>;",
10429
+ "http": "POST /comments/v1/comments/{commentId}/moderate"
10430
+ },
10431
+ {
10432
+ "name": "comments.publishComment",
10433
+ "kind": "function",
10434
+ "jsdoc": "/**\n * Publishes a comment with the `HIDDEN` status. The comment status becomes `PUBLISHED`.\n *\n * @permissionId WIX_COMMENTS.COMMENT_PUBLISH\n * @fqn wix.comments.ng.v1.CommentsNg.PublishComment\n *\n * PUT /comments/v1/comments/{commentId}/publish\n */",
10435
+ "decl": "export function publishComment(req: PublishCommentRequest, opts?: WixCallOptions): Promise<PublishCommentResponse>;",
10436
+ "http": "PUT /comments/v1/comments/{commentId}/publish"
10437
+ },
10438
+ {
10439
+ "name": "comments.queryComments",
10440
+ "kind": "function",
10441
+ "jsdoc": "/**\n * Creates a query to retrieve a list of comments.\n *\n * @permissionId WIX_COMMENTS.COMMENT_QUERY\n * @fqn wix.comments.ng.v1.CommentsNg.QueryComments\n *\n * POST /comments/v1/comments/query-cursor\n */",
10442
+ "decl": "export function queryComments(req: QueryCommentsRequest = {} as QueryCommentsRequest, opts?: WixCallOptions): Promise<QueryCommentsResponse>;",
10443
+ "http": "POST /comments/v1/comments/query-cursor"
10444
+ },
10445
+ {
10446
+ "name": "comments.removeCommentReaction",
10447
+ "kind": "function",
10448
+ "jsdoc": "/**\n * Removes the current identity's reaction from a comment.\n *\n * @scope visitor — an anonymous visitor session is enough.\n * @permissionId comments:v2:comment:remove_comment_reaction\n * @fqn wix.comments.ng.v1.CommentsNg.RemoveCommentReaction\n *\n * POST /comments/v1/comments/{commentId}/reactions/remove\n */",
10449
+ "decl": "export function removeCommentReaction(req: RemoveCommentReactionRequest, opts?: WixCallOptions): Promise<RemoveCommentReactionResponse>;",
10450
+ "http": "POST /comments/v1/comments/{commentId}/reactions/remove",
10451
+ "scope": "visitor"
10452
+ },
10453
+ {
10454
+ "name": "comments.unmarkComment",
10455
+ "kind": "function",
10456
+ "jsdoc": "/**\n * Sets `marked` to `FALSE` to unmark a comment.\n *\n * @permissionId WIX_COMMENTS.COMMENT_MARK\n * @fqn wix.comments.ng.v1.CommentsNg.UnmarkComment\n *\n * PUT /comments/v1/comments/{commentId}/unmark\n */",
10457
+ "decl": "export function unmarkComment(req: UnmarkCommentRequest, opts?: WixCallOptions): Promise<UnmarkCommentResponse>;",
10458
+ "http": "PUT /comments/v1/comments/{commentId}/unmark"
10459
+ },
10460
+ {
10461
+ "name": "comments.updateComment",
10462
+ "kind": "function",
10463
+ "jsdoc": "/**\n * Updates a comment.\n *\n * @scope member — requires a signed-in site member.\n * @permissionId WIX_COMMENTS.COMMENT_UPDATE\n * @fqn wix.comments.ng.v1.CommentsNg.UpdateComment\n *\n * PATCH /comments/v1/comments/{commentId}\n */",
10464
+ "decl": "export function updateComment(req: UpdateCommentRequest, opts?: WixCallOptions): Promise<UpdateCommentResponse>;",
10465
+ "http": "PATCH /comments/v1/comments/{commentId}",
10466
+ "scope": "member"
10467
+ },
10468
+ {
10469
+ "name": "contentRevisions.listCommentContentRevisions",
10470
+ "kind": "function",
10471
+ "jsdoc": "/**\n * Retrieves saved previous content versions for a comment.\n *\n * @permissionId WIX_COMMENTS_CONTENT_REVISIONS.LIST_REVISIONS\n * @fqn wix.comments.revisions.v1.CommentContentRevisions.ListCommentContentRevisions\n *\n * GET /comments/v1/content-revisions/{commentId}\n */",
10472
+ "decl": "export function listCommentContentRevisions(req: ListCommentContentRevisionsRequest, opts?: WixCallOptions): Promise<ListCommentContentRevisionsResponse>;",
10473
+ "http": "GET /comments/v1/content-revisions/{commentId}"
10474
+ },
10475
+ {
10476
+ "name": "ratings.createRating",
10477
+ "kind": "function",
10478
+ "jsdoc": "/**\n * Creates resource rating, if member/visitor has already created an rating it will be updated with provided value\n *\n * @fqn wix.comments.ratings.v1.CommentsRatings.CreateRating\n *\n * POST /comments/v1/comment/resource/{resourceRatingResourceId}/rating\n */",
10479
+ "decl": "export function createRating(req: V1CreateRatingRequest, opts?: WixCallOptions): Promise<V1CreateRatingResponse>;",
10480
+ "http": "POST /comments/v1/comment/resource/{resourceRatingResourceId}/rating"
10481
+ },
10482
+ {
10483
+ "name": "ratings.getMyRating",
10484
+ "kind": "function",
10485
+ "jsdoc": "/**\n * Returns rating for current caller\n *\n * @fqn wix.comments.ratings.v1.CommentsRatings.GetMyRating\n *\n * GET /comments/v1/comment/resource/{resourceId}/rating/my\n */",
10486
+ "decl": "export function getMyRating(req: V1GetMyRatingRequest, opts?: WixCallOptions): Promise<V1GetMyRatingResponse>;",
10487
+ "http": "GET /comments/v1/comment/resource/{resourceId}/rating/my"
10488
+ },
10489
+ {
10490
+ "name": "ratings.getResourceSummary",
10491
+ "kind": "function",
10492
+ "jsdoc": "/**\n * @fqn wix.comments.ratings.v1.CommentsRatings.GetResourceSummary\n */",
10493
+ "decl": "export function getResourceSummary(req: GetResourceSummaryRequest, opts?: WixCallOptions): Promise<GetResourceSummaryResponse>;",
10494
+ "http": "GET /comments/v1/comment/resource/{resourceId}/summary"
10495
+ },
10496
+ {
10497
+ "name": "ratings.removeMyRating",
10498
+ "kind": "function",
10499
+ "jsdoc": "/**\n * Removes rating for current caller\n *\n * @fqn wix.comments.ratings.v1.CommentsRatings.RemoveMyRating\n *\n * DELETE /comments/v1/comment/resource/{resourceId}/rating/my\n */",
10500
+ "decl": "export function removeMyRating(req: RemoveMyRatingRequest, opts?: WixCallOptions): Promise<RemoveMyRatingResponse>;",
10501
+ "http": "DELETE /comments/v1/comment/resource/{resourceId}/rating/my"
10502
+ },
10503
+ {
10504
+ "name": "widgets.createCommentsWidget",
10505
+ "kind": "function",
10506
+ "jsdoc": "/**\n * Creates a new CommentsWidget\n *\n * @permissionId WIX_COMMENTS.COMMENTS_WIDGET_CREATE\n * @fqn wix.comments.categories.v1.CommentsWidgetRegistry.CreateCommentsWidget\n *\n * POST /api/v1/comments/widgets\n */",
10507
+ "decl": "export function createCommentsWidget(req: CreateCommentsWidgetRequest = {} as CreateCommentsWidgetRequest, opts?: WixCallOptions): Promise<CreateCommentsWidgetResponse>;",
10508
+ "http": "POST /api/v1/comments/widgets"
10509
+ },
10510
+ {
10511
+ "name": "widgets.deleteCommentsWidget",
10512
+ "kind": "function",
10513
+ "jsdoc": "/**\n * Delete a CommentsWidget\n *\n * @permissionId WIX_COMMENTS.COMMENTS_WIDGET_DELETE\n * @fqn wix.comments.categories.v1.CommentsWidgetRegistry.DeleteCommentsWidget\n *\n * DELETE /api/v1/comments/widgets/{commentsWidgetId}\n */",
10514
+ "decl": "export function deleteCommentsWidget(req: DeleteCommentsWidgetRequest, opts?: WixCallOptions): Promise<DeleteCommentsWidgetResponse>;",
10515
+ "http": "DELETE /api/v1/comments/widgets/{commentsWidgetId}"
10516
+ },
10517
+ {
10518
+ "name": "widgets.getCommentsWidget",
10519
+ "kind": "function",
10520
+ "jsdoc": "/**\n * Get a CommentsWidget by id\n *\n * @permissionId WIX_COMMENTS.COMMENTS_WIDGET_READ\n * @fqn wix.comments.categories.v1.CommentsWidgetRegistry.GetCommentsWidget\n *\n * GET /api/v1/comments/widgets/{commentsWidgetId}\n */",
10521
+ "decl": "export function getCommentsWidget(req: GetCommentsWidgetRequest, opts?: WixCallOptions): Promise<GetCommentsWidgetResponse>;",
10522
+ "http": "GET /api/v1/comments/widgets/{commentsWidgetId}"
10523
+ },
10524
+ {
10525
+ "name": "widgets.queryCommentsWidget",
10526
+ "kind": "function",
10527
+ "jsdoc": "/**\n * Query CommentsWidgets using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)\n *\n * @permissionId WIX_COMMENTS.COMMENTS_WIDGET_QUERY\n * @fqn wix.comments.categories.v1.CommentsWidgetRegistry.QueryCommentsWidget\n *\n * POST /api/v1/comments/widgets/query\n */",
10528
+ "decl": "export function queryCommentsWidget(req: QueryCommentsWidgetRequest = {} as QueryCommentsWidgetRequest, opts?: WixCallOptions): Promise<QueryCommentsWidgetResponse>;",
10529
+ "http": "POST /api/v1/comments/widgets/query"
10530
+ },
10531
+ {
10532
+ "name": "widgets.queryCommentsWidgetResources",
10533
+ "kind": "function",
10534
+ "jsdoc": "/**\n * Returns all registered widget resource ids contained in metaSite\n *\n * @permissionId WIX_COMMENTS.COMMENTS_WIDGET_RESOURCES_QUERY\n * @fqn wix.comments.categories.v1.CommentsWidgetRegistry.QueryCommentsWidgetResources\n *\n * POST /api/v1/comments/widgets/resources/query\n */",
10535
+ "decl": "export function queryCommentsWidgetResources(req: QueryCommentsWidgetResourcesRequest = {} as QueryCommentsWidgetResourcesRequest, opts?: WixCallOptions): Promise<QueryCommentsWidgetResourcesResponse>;",
10536
+ "http": "POST /api/v1/comments/widgets/resources/query"
10537
+ },
10538
+ {
10539
+ "name": "widgets.registerCommentsWidget",
10540
+ "kind": "function",
10541
+ "jsdoc": "/**\n * Registers CommentsWidget. Whenever a widget is loaded for the first time or its resourceId changes, it saves the new resource information about the widget\n *\n * @permissionId WIX_COMMENTS.COMMENTS_WIDGET_REGISTER\n * @fqn wix.comments.categories.v1.CommentsWidgetRegistry.RegisterCommentsWidget\n *\n * POST /api/v1/comments/widgets/register\n */",
10542
+ "decl": "export function registerCommentsWidget(req: RegisterCommentsWidgetRequest = {} as RegisterCommentsWidgetRequest, opts?: WixCallOptions): Promise<RegisterCommentsWidgetResponse>;",
10543
+ "http": "POST /api/v1/comments/widgets/register"
10544
+ },
10545
+ {
10546
+ "name": "widgets.updateCommentsWidget",
10547
+ "kind": "function",
10548
+ "jsdoc": "/**\n * Update CommentsWidget, supports partial update Pass the latest `revision` for a successful update\n *\n * @permissionId WIX_COMMENTS.COMMENTS_WIDGET_EDIT\n * @fqn wix.comments.categories.v1.CommentsWidgetRegistry.UpdateCommentsWidget\n *\n * PATCH /api/v1/comments/widgets/{commentsWidgetId}\n */",
10549
+ "decl": "export function updateCommentsWidget(req: UpdateCommentsWidgetRequest, opts?: WixCallOptions): Promise<UpdateCommentsWidgetResponse>;",
10550
+ "http": "PATCH /api/v1/comments/widgets/{commentsWidgetId}"
10261
10551
  }
10262
10552
  ]
10263
10553
  },
@@ -124,9 +124,42 @@ package `@himalaya/wix-<domain>` (unversioned name; the REST version is in the p
124
124
  > display helpers (note the V3 count field is `itemCounter`, not `numberOfProducts`).
125
125
  > `himi sdk wix-stores-collections` lists both surfaces. Pick the pair that matches your site's catalog version.
126
126
 
127
+ ## Namespaces: every module of a Wix package
128
+
129
+ Some `@himalaya/wix-<pkg>` packages also export every module of the matching `@wix/<pkg>` npm
130
+ package as a namespace — the auto tier (see [the codegen guide's "Auto tier"
131
+ section](codegen-wix-sdk.md)). `@himalaya/wix-comments` is the first: it re-exports
132
+ `@wix/comments`'s six modules as `comments`, `ratings`, `widgets`, `categories`,
133
+ `commentContexts`, and `contentRevisions`.
134
+
135
+ ```ts
136
+ import { comments } from "@himalaya/wix-comments";
137
+
138
+ const { comment } = await comments.createComment({
139
+ comment: { appId, contextId, resourceId, content: { richContent } },
140
+ });
141
+ await comments.getComment({ commentId: comment.id });
142
+ ```
143
+
144
+ Each namespace function takes **one argument: the REST request object exactly as the REST
145
+ reference shows it** — path params are just fields of that object (`commentId` above becomes
146
+ `/comments/v1/comments/{commentId}`, filled from `req.commentId`). Module and method names mirror
147
+ `@wix/<pkg>` itself, so the REST docs for that package describe these functions directly. Every
148
+ function also takes the same optional trailing `opts?: WixCallOptions` as the rest of the SDK.
149
+ `@scope` appears on a function's JSDoc only where it has actually been observed (a curated
150
+ domain's own scope, or an entry in `codegen/wix/auto/scopes.json` with evidence) — never guessed
151
+ from Wix's own `@applicableIdentity` annotation, which does not mean what our visitor/member/owner
152
+ vocabulary means.
153
+
154
+ Namespaces are additive: existing flat imports from a package that already had one (e.g.
155
+ `createBlogComment` from `@himalaya/wix-comments`) are unchanged and keep working side by side
156
+ with the namespace form. Only packages listed in `codegen/wix/auto/tier.json` get a namespace —
157
+ for everything else, the raw `wixApi.call` escape hatch below is still how you reach it.
158
+
127
159
  ## Raw wixApi for un-codegen'd endpoints
128
160
 
129
- For a Wix endpoint with no generated client:
161
+ For a Wix endpoint with no generated client, and for any `@wix/<pkg>` not yet in the auto tier
162
+ (`codegen/wix/auto/tier.json`):
130
163
 
131
164
  ```ts
132
165
  // call() returns the PARSED JSON body already (the bridge JSON.parses it; raw string if the body isn't JSON).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1099.0",
3
+ "version": "0.1101.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": [
@@ -67,5 +67,5 @@
67
67
  "artifactId": "himalaya-cli"
68
68
  }
69
69
  },
70
- "falconPackageHash": "abd3482789935a7c1024e42bc726a232ef26e4612586b570d0b0fda7"
70
+ "falconPackageHash": "2618ea0b06031d403b767c776f5a991ef20f8a4b7878493bbd8bee92"
71
71
  }