musora-content-services 2.170.0 → 2.171.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/.claude/settings.local.json +7 -44
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/services/user/account.ts +24 -0
- package/src/version-info.js +1 -1
|
@@ -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
|
-
|
|
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,13 @@
|
|
|
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.171.0](https://github.com/railroadmedia/musora-content-services/compare/v2.170.0...v2.171.0) (2026-08-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 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))
|
|
11
|
+
|
|
5
12
|
## [2.170.0](https://github.com/railroadmedia/musora-content-services/compare/v2.169.4...v2.170.0) (2026-08-10)
|
|
6
13
|
|
|
7
14
|
## [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
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,30 @@ 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
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @param {Object} props - The parameters for creating the pending account.
|
|
119
|
+
* @property {string} email - The email address for the account.
|
|
120
|
+
* @property {string} [revenuecatAppUserId] - The RevenueCat App User ID for MA environments.
|
|
121
|
+
*
|
|
122
|
+
* @returns {Promise<AccountSetupResponse>} - A promise that resolves when the pending account is created or an HttpError if the request fails.
|
|
123
|
+
* @throws {HttpError} - Throws an HttpError if the HTTP request fails.
|
|
124
|
+
*/
|
|
125
|
+
export async function createPendingAccount(props: PendingAccountProps): Promise<AccountSetupResponse> {
|
|
126
|
+
const httpClient = new HttpClient(globalConfig.baseUrl)
|
|
127
|
+
return await httpClient.post<AccountSetupResponse>(
|
|
128
|
+
`/api/user-management-system/v1/accounts/pending`,
|
|
129
|
+
{
|
|
130
|
+
email: props.email,
|
|
131
|
+
mobile_app_id: props.revenuecatAppUserId,
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
|
|
112
136
|
/**
|
|
113
137
|
* @param {string} email - The email address to send the password reset email to.
|
|
114
138
|
* @returns {Promise<void>} - A promise that resolves when the email change request is made.
|
package/src/version-info.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MCS_VERSION = '2.
|
|
1
|
+
export const MCS_VERSION = '2.171.0'
|