musora-content-services 2.169.0 → 2.169.2

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,16 +1,39 @@
1
1
  {
2
2
  "permissions": {
3
3
  "allow": [
4
- "Bash(rg:*)",
5
- "Bash(npm run lint:*)",
6
- "Bash(ls:*)",
4
+ "Bash(npx jest *)",
5
+ "Bash(npx tsc *)",
6
+ "Skill(counselors)",
7
+ "Bash(counselors ls *)",
8
+ "Bash(counselors groups *)",
9
+ "Bash(counselors run *)",
7
10
  "Bash(npm test *)",
8
- "Bash(npx jest *)"
9
- ],
10
- "deny": []
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
+ ]
11
34
  },
35
+ "model": "sonnet",
12
36
  "enabledMcpjsonServers": [
13
- "1password",
14
37
  "atlassian",
15
38
  "figma",
16
39
  "google-workspace",
@@ -24,10 +47,14 @@
24
47
  "chrome-devtools",
25
48
  "railway",
26
49
  "github",
27
- "asana",
50
+ "asana"
51
+ ],
52
+ "disabledMcpjsonServers": [
28
53
  "nightwatch",
54
+ "1password",
29
55
  "mysql-staging",
30
56
  "mysql-local",
31
57
  "mobile"
32
- ]
58
+ ],
59
+ "effortLevel": "medium"
33
60
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
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.169.2](https://github.com/railroadmedia/musora-content-services/compare/v2.169.1...v2.169.2) (2026-08-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * function return type ([9762230](https://github.com/railroadmedia/musora-content-services/commit/97622301bccb6dbbf79a546427fd5fac0fef62bd))
11
+
12
+ ### [2.169.1](https://github.com/railroadmedia/musora-content-services/compare/v2.169.0...v2.169.1) (2026-08-07)
13
+
5
14
  ## [2.169.0](https://github.com/railroadmedia/musora-content-services/compare/v2.168.0...v2.169.0) (2026-08-04)
6
15
 
7
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musora-content-services",
3
- "version": "2.169.0",
3
+ "version": "2.169.2",
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
@@ -490,6 +490,10 @@ import {
490
490
  updateProfileVisibility
491
491
  } from './services/user/profile.ts';
492
492
 
493
+ import {
494
+ verifyOAuthToken
495
+ } from './services/user/session.ts';
496
+
493
497
  import {
494
498
  generateAuthSessionUrl,
495
499
  login,
@@ -889,6 +893,7 @@ declare module 'musora-content-services' {
889
893
  userOnboardingForBrand,
890
894
  verifyImageSRC,
891
895
  verifyLocalDataContext,
896
+ verifyOAuthToken,
892
897
  whoLikedComment,
893
898
  whoLikedContent,
894
899
  whoLikedPost,
package/src/index.js CHANGED
@@ -494,6 +494,10 @@ import {
494
494
  updateProfileVisibility
495
495
  } from './services/user/profile.ts';
496
496
 
497
+ import {
498
+ verifyOAuthToken
499
+ } from './services/user/session.ts';
500
+
497
501
  import {
498
502
  generateAuthSessionUrl,
499
503
  login,
@@ -888,6 +892,7 @@ export {
888
892
  userOnboardingForBrand,
889
893
  verifyImageSRC,
890
894
  verifyLocalDataContext,
895
+ verifyOAuthToken,
891
896
  whoLikedComment,
892
897
  whoLikedContent,
893
898
  whoLikedPost,
@@ -6,17 +6,23 @@ import { HttpError } from '../../infrastructure/http/interfaces/HttpError'
6
6
  import { globalConfig } from '../config.js'
7
7
  import { clearAllCachedData } from '../dataContext.js'
8
8
  import { Onboarding } from './onboarding'
9
+ import { OAuthProvider } from './session'
9
10
  import { AuthResponse } from './types'
10
11
 
12
+ export interface AccountStatus {
13
+ requires_setup: boolean
14
+ last_login_provider?: OAuthProvider
15
+ }
16
+
11
17
  /**
12
18
  * @param {string} email - The email address to check the account status for.
13
- * @returns {Promise<{requires_setup: boolean}>} - A promise that resolves to an object indicating whether account setup is required, or an HttpError if the request fails.
19
+ * @returns {Promise<OAuthProvider>} - A promise that resolves to an object indicating whether account setup is required, or an HttpError if the request fails.
14
20
  *
15
21
  * @throws {HttpError} - Throws HttpError if the request fails.
16
22
  */
17
- export async function status(email: string): Promise<{ requires_setup: boolean }> {
23
+ export async function status(email: string): Promise<AccountStatus> {
18
24
  const httpClient = new HttpClient(globalConfig.baseUrl)
19
- return await httpClient.post<{ requires_setup: boolean }>(
25
+ return await httpClient.post<AccountStatus>(
20
26
  `/api/user-management-system/v1/accounts/${encodeURIComponent(email)}/status`,
21
27
  []
22
28
  )
@@ -0,0 +1,40 @@
1
+ import { globalConfig } from '../config.js'
2
+ import { HttpClient } from '@/infrastructure/http'
3
+ import { AuthResponse } from './types'
4
+
5
+ export interface VerifyOAuthTokenParams {
6
+ id_token: string
7
+ access_token?: string
8
+ device_name: string
9
+ device_token?: string
10
+ platform?: 'ios' | 'android'
11
+ user?: string
12
+ }
13
+
14
+ export type OAuthProvider = 'google' | 'apple'
15
+
16
+ export async function verifyOAuthToken(
17
+ provider: OAuthProvider,
18
+ params: VerifyOAuthTokenParams
19
+ ): Promise<AuthResponse> {
20
+ const apiUrl = `/api/user-management-system/v1/oauth/${encodeURIComponent(provider)}/verify`
21
+ const httpClient = new HttpClient(globalConfig.baseUrl)
22
+ return httpClient.post<AuthResponse>(apiUrl, params)
23
+ }
24
+
25
+ export interface RedirectToOAuthProviderOptions {
26
+ redirect_to?: string
27
+ flow?: string
28
+ theme?: string
29
+ [key: string]: string | undefined
30
+ }
31
+
32
+ export async function redirectToOAuthProvider(
33
+ provider: OAuthProvider,
34
+ options: RedirectToOAuthProviderOptions
35
+ ): Promise<void> {
36
+ const queryParams = new URLSearchParams(options as Record<string, string>).toString()
37
+ const apiUrl = `/api/user-management-system/v1/oauth/${encodeURIComponent(provider)}/redirect?${queryParams}`
38
+ const httpClient = new HttpClient(globalConfig.baseUrl)
39
+ return httpClient.get(apiUrl)
40
+ }
@@ -1 +1 @@
1
- export const MCS_VERSION = '2.169.0'
1
+ export const MCS_VERSION = '2.169.2'
Binary file
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });