musora-content-services 2.170.0 → 2.173.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.
@@ -1,39 +1,6 @@
1
1
  {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npx jest *)",
5
- "Bash(npx tsc *)",
6
- "Skill(counselors)",
7
- "Bash(counselors ls *)",
8
- "Bash(counselors groups *)",
9
- "Bash(counselors run *)",
10
- "Bash(npm test *)",
11
- "Bash(gh pr *)",
12
- "Bash(gh api *)",
13
- "Bash(mkdir -p /tmp/pr-review-v2)",
14
- "Read(//tmp/pr-review-v2/**)",
15
- "Bash(cat /home/alesevero/railenvironment/applications/musora-content-services/AGENTS.md)",
16
- "Bash(echo \"no AGENTS.md\")",
17
- "Bash(echo \"exit=$?\")",
18
- "Bash(git checkout *)",
19
- "Skill(pr)",
20
- "Skill(create-decision)",
21
- "mcp__github__pull_request_read",
22
- "mcp__github__push_files",
23
- "Bash(git push *)",
24
- "mcp__github__create_pull_request",
25
- "mcp__github__search_pull_requests",
26
- "Bash(git commit *)",
27
- "Bash(git add *)",
28
- "mcp__github__list_pull_requests",
29
- "mcp__sanity__get_schema",
30
- "mcp__sanity__query_documents",
31
- "Bash(git rm *)",
32
- "Bash(git rebase *)"
33
- ]
34
- },
35
- "model": "sonnet",
36
2
  "enabledMcpjsonServers": [
3
+ "1password",
37
4
  "atlassian",
38
5
  "figma",
39
6
  "google-workspace",
@@ -42,19 +9,15 @@
42
9
  "hex",
43
10
  "sanity",
44
11
  "mysql",
12
+ "mysql-staging",
13
+ "mysql-local",
45
14
  "slack",
46
15
  "langfuse",
47
16
  "chrome-devtools",
17
+ "mobile",
48
18
  "railway",
49
19
  "github",
50
- "asana"
51
- ],
52
- "disabledMcpjsonServers": [
53
- "nightwatch",
54
- "1password",
55
- "mysql-staging",
56
- "mysql-local",
57
- "mobile"
58
- ],
59
- "effortLevel": "medium"
20
+ "asana",
21
+ "nightwatch"
22
+ ]
60
23
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.173.0](https://github.com/railroadmedia/musora-content-services/compare/v2.171.0...v2.173.0) (2026-08-12)
6
+
7
+
8
+ ### Features
9
+
10
+ * adds previous_email param to pending account creation ([#1028](https://github.com/railroadmedia/musora-content-services/issues/1028)) ([997d5ab](https://github.com/railroadmedia/musora-content-services/commit/997d5ab9883353a4a5f35000c92f9ff322e730b5))
11
+
12
+ ## [2.172.0](https://github.com/railroadmedia/musora-content-services/compare/v2.171.0...v2.172.0) (2026-08-12)
13
+
14
+
15
+ ### Features
16
+
17
+ * adds previous_email param to pending account creation ([#1028](https://github.com/railroadmedia/musora-content-services/issues/1028)) ([997d5ab](https://github.com/railroadmedia/musora-content-services/commit/997d5ab9883353a4a5f35000c92f9ff322e730b5))
18
+
19
+ ## [2.171.0](https://github.com/railroadmedia/musora-content-services/compare/v2.170.0...v2.171.0) (2026-08-12)
20
+
21
+
22
+ ### Features
23
+
24
+ * adds create pending user fn ([#1025](https://github.com/railroadmedia/musora-content-services/issues/1025)) ([c4ba8ef](https://github.com/railroadmedia/musora-content-services/commit/c4ba8ef3a118718236d177885372781714a08c9a))
25
+
5
26
  ## [2.170.0](https://github.com/railroadmedia/musora-content-services/compare/v2.169.4...v2.170.0) (2026-08-10)
6
27
 
7
28
  ## [2.169.0-0](https://github.com/railroadmedia/musora-content-services/compare/v2.168.0...v2.169.0-0) (2026-07-31)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.170.0",
3
+ "version": "2.173.0",
4
4
  "description": "A package for Musoras content services ",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.d.ts CHANGED
@@ -410,6 +410,7 @@ import {
410
410
 
411
411
  import {
412
412
  confirmEmailChange,
413
+ createPendingAccount,
413
414
  deleteAccount,
414
415
  numberOfActiveUsers,
415
416
  requestEmailChange,
@@ -569,6 +570,7 @@ declare module 'musora-content-services' {
569
570
  createComment,
570
571
  createForumCategory,
571
572
  createInvites,
573
+ createPendingAccount,
572
574
  createPlaylist,
573
575
  createPost,
574
576
  createPracticeNotes,
package/src/index.js CHANGED
@@ -414,6 +414,7 @@ import {
414
414
 
415
415
  import {
416
416
  confirmEmailChange,
417
+ createPendingAccount,
417
418
  deleteAccount,
418
419
  numberOfActiveUsers,
419
420
  requestEmailChange,
@@ -568,6 +569,7 @@ export {
568
569
  createComment,
569
570
  createForumCategory,
570
571
  createInvites,
572
+ createPendingAccount,
571
573
  createPlaylist,
572
574
  createPost,
573
575
  createPracticeNotes,
@@ -109,6 +109,33 @@ export async function setupAccount(props: AccountSetupProps): Promise<AccountSet
109
109
  return res
110
110
  }
111
111
 
112
+ export interface PendingAccountProps {
113
+ email: string
114
+ revenuecatAppUserId?: string
115
+ previousEmail?: string
116
+ }
117
+
118
+ /**
119
+ * @param {Object} props - The parameters for creating the pending account.
120
+ * @property {string} email - The email address for the account.
121
+ * @property {string} [revenuecatAppUserId] - The RevenueCat App User ID for MA environments.
122
+ * @property {string} [previousEmail] - The previous email address, if this account replaces an existing one.
123
+ *
124
+ * @returns {Promise<AccountSetupResponse>} - A promise that resolves when the pending account is created or an HttpError if the request fails.
125
+ * @throws {HttpError} - Throws an HttpError if the HTTP request fails.
126
+ */
127
+ export async function createPendingAccount(props: PendingAccountProps): Promise<AccountSetupResponse> {
128
+ const httpClient = new HttpClient(globalConfig.baseUrl)
129
+ return await httpClient.post<AccountSetupResponse>(
130
+ `/api/user-management-system/v1/accounts/pending`,
131
+ {
132
+ email: props.email,
133
+ mobile_app_id: props.revenuecatAppUserId,
134
+ previous_email: props.previousEmail,
135
+ }
136
+ )
137
+ }
138
+
112
139
  /**
113
140
  * @param {string} email - The email address to send the password reset email to.
114
141
  * @returns {Promise<void>} - A promise that resolves when the email change request is made.
@@ -1 +1 @@
1
- export const MCS_VERSION = '2.170.0'
1
+ export const MCS_VERSION = '2.173.0'