@symbo.ls/sdk 2.32.6 → 2.32.8
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/dist/cjs/config/environment.js +19 -0
- package/dist/cjs/services/AuthService.js +4 -2
- package/dist/cjs/services/CollabService.js +214 -64
- package/dist/cjs/services/ProjectService.js +19 -10
- package/dist/cjs/utils/CollabClient.js +46 -9
- package/dist/esm/config/environment.js +19 -0
- package/dist/esm/index.js +302 -85
- package/dist/esm/services/AdminService.js +19 -0
- package/dist/esm/services/AuthService.js +23 -2
- package/dist/esm/services/BaseService.js +19 -0
- package/dist/esm/services/BranchService.js +19 -0
- package/dist/esm/services/CollabService.js +279 -73
- package/dist/esm/services/CoreService.js +19 -0
- package/dist/esm/services/DnsService.js +19 -0
- package/dist/esm/services/FileService.js +19 -0
- package/dist/esm/services/PaymentService.js +19 -0
- package/dist/esm/services/PlanService.js +19 -0
- package/dist/esm/services/ProjectService.js +38 -10
- package/dist/esm/services/PullRequestService.js +19 -0
- package/dist/esm/services/ScreenshotService.js +19 -0
- package/dist/esm/services/SubscriptionService.js +19 -0
- package/dist/esm/services/index.js +302 -85
- package/dist/esm/utils/CollabClient.js +65 -9
- package/dist/node/config/environment.js +19 -0
- package/dist/node/services/AuthService.js +4 -2
- package/dist/node/services/CollabService.js +214 -64
- package/dist/node/services/ProjectService.js +19 -10
- package/dist/node/utils/CollabClient.js +46 -9
- package/package.json +6 -6
- package/src/config/environment.js +20 -1
- package/src/services/AuthService.js +7 -2
- package/src/services/CollabService.js +258 -77
- package/src/services/ProjectService.js +19 -10
- package/src/utils/CollabClient.js +51 -8
|
@@ -30,6 +30,9 @@ var CONFIG = {
|
|
|
30
30
|
// For based api
|
|
31
31
|
githubClientId: "Ov23liAFrsR0StbAO6PO",
|
|
32
32
|
// For github api
|
|
33
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/aef64330db80bdfeaac084317bf72f99",
|
|
34
|
+
// For grafana tracing
|
|
35
|
+
grafanaAppName: "Localhost Symbols",
|
|
33
36
|
// Environment-specific feature toggles (override common)
|
|
34
37
|
features: {
|
|
35
38
|
betaFeatures: true
|
|
@@ -45,6 +48,9 @@ var CONFIG = {
|
|
|
45
48
|
socketUrl: "https://dev.api.symbols.app",
|
|
46
49
|
apiUrl: "https://dev.api.symbols.app",
|
|
47
50
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
51
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
52
|
+
// For grafana tracing
|
|
53
|
+
grafanaAppName: "Symbols Dev",
|
|
48
54
|
typesenseCollectionName: "docs",
|
|
49
55
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
50
56
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -58,6 +64,9 @@ var CONFIG = {
|
|
|
58
64
|
basedProject: "platform-v2-sm",
|
|
59
65
|
basedOrg: "symbols",
|
|
60
66
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
67
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
68
|
+
// For grafana tracing
|
|
69
|
+
grafanaAppName: "Symbols Test",
|
|
61
70
|
typesenseCollectionName: "docs",
|
|
62
71
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
63
72
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -68,6 +77,9 @@ var CONFIG = {
|
|
|
68
77
|
socketUrl: "https://upcoming.api.symbols.app",
|
|
69
78
|
apiUrl: "https://upcoming.api.symbols.app",
|
|
70
79
|
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
80
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
81
|
+
// For grafana tracing
|
|
82
|
+
grafanaAppName: "Symbols Upcoming",
|
|
71
83
|
typesenseCollectionName: "docs",
|
|
72
84
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
73
85
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -81,6 +93,9 @@ var CONFIG = {
|
|
|
81
93
|
basedProject: "platform-v2-sm",
|
|
82
94
|
basedOrg: "symbols",
|
|
83
95
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
96
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
97
|
+
// For grafana tracing
|
|
98
|
+
grafanaAppName: "Symbols Staging",
|
|
84
99
|
typesenseCollectionName: "docs",
|
|
85
100
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
86
101
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -94,6 +109,9 @@ var CONFIG = {
|
|
|
94
109
|
basedProject: "platform-v2-sm",
|
|
95
110
|
basedOrg: "symbols",
|
|
96
111
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
112
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/5c1089f3c3eea4ec5658e05c3f53baae",
|
|
113
|
+
// For grafana tracing
|
|
114
|
+
grafanaAppName: "Symbols",
|
|
97
115
|
typesenseCollectionName: "docs",
|
|
98
116
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
99
117
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -120,6 +138,7 @@ var getConfig = () => {
|
|
|
120
138
|
basedProject: process.env.SYMBOLS_APP_BASED_PROJECT || envConfig.basedProject,
|
|
121
139
|
basedOrg: process.env.SYMBOLS_APP_BASED_ORG || envConfig.basedOrg,
|
|
122
140
|
githubClientId: process.env.SYMBOLS_APP_GITHUB_CLIENT_ID || envConfig.githubClientId,
|
|
141
|
+
grafanaUrl: process.env.SYMBOLS_APP_GRAFANA_URL || envConfig.grafanaUrl,
|
|
123
142
|
typesenseCollectionName: process.env.TYPESENSE_COLLECTION_NAME || envConfig.typesenseCollectionName,
|
|
124
143
|
typesenseApiKey: process.env.TYPESENSE_API_KEY || envConfig.typesenseApiKey,
|
|
125
144
|
typesenseHost: process.env.TYPESENSE_HOST || envConfig.typesenseHost,
|
|
@@ -1139,10 +1158,12 @@ var AuthService = class extends BaseService {
|
|
|
1139
1158
|
throw new Error(`Password change confirmation failed: ${error.message}`, { cause: error });
|
|
1140
1159
|
}
|
|
1141
1160
|
}
|
|
1142
|
-
async getMe() {
|
|
1161
|
+
async getMe(options = {}) {
|
|
1143
1162
|
this._requireReady("getMe");
|
|
1144
1163
|
try {
|
|
1145
|
-
const
|
|
1164
|
+
const session = this._resolvePluginSession(options.session);
|
|
1165
|
+
const endpoint = session ? `/auth/me?session=${encodeURIComponent(session)}` : "/auth/me";
|
|
1166
|
+
const response = await this._request(endpoint, {
|
|
1146
1167
|
method: "GET",
|
|
1147
1168
|
methodName: "getMe"
|
|
1148
1169
|
});
|
|
@@ -30,6 +30,9 @@ var CONFIG = {
|
|
|
30
30
|
// For based api
|
|
31
31
|
githubClientId: "Ov23liAFrsR0StbAO6PO",
|
|
32
32
|
// For github api
|
|
33
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/aef64330db80bdfeaac084317bf72f99",
|
|
34
|
+
// For grafana tracing
|
|
35
|
+
grafanaAppName: "Localhost Symbols",
|
|
33
36
|
// Environment-specific feature toggles (override common)
|
|
34
37
|
features: {
|
|
35
38
|
betaFeatures: true
|
|
@@ -45,6 +48,9 @@ var CONFIG = {
|
|
|
45
48
|
socketUrl: "https://dev.api.symbols.app",
|
|
46
49
|
apiUrl: "https://dev.api.symbols.app",
|
|
47
50
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
51
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
52
|
+
// For grafana tracing
|
|
53
|
+
grafanaAppName: "Symbols Dev",
|
|
48
54
|
typesenseCollectionName: "docs",
|
|
49
55
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
50
56
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -58,6 +64,9 @@ var CONFIG = {
|
|
|
58
64
|
basedProject: "platform-v2-sm",
|
|
59
65
|
basedOrg: "symbols",
|
|
60
66
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
67
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
68
|
+
// For grafana tracing
|
|
69
|
+
grafanaAppName: "Symbols Test",
|
|
61
70
|
typesenseCollectionName: "docs",
|
|
62
71
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
63
72
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -68,6 +77,9 @@ var CONFIG = {
|
|
|
68
77
|
socketUrl: "https://upcoming.api.symbols.app",
|
|
69
78
|
apiUrl: "https://upcoming.api.symbols.app",
|
|
70
79
|
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
80
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
81
|
+
// For grafana tracing
|
|
82
|
+
grafanaAppName: "Symbols Upcoming",
|
|
71
83
|
typesenseCollectionName: "docs",
|
|
72
84
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
73
85
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -81,6 +93,9 @@ var CONFIG = {
|
|
|
81
93
|
basedProject: "platform-v2-sm",
|
|
82
94
|
basedOrg: "symbols",
|
|
83
95
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
96
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
97
|
+
// For grafana tracing
|
|
98
|
+
grafanaAppName: "Symbols Staging",
|
|
84
99
|
typesenseCollectionName: "docs",
|
|
85
100
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
86
101
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -94,6 +109,9 @@ var CONFIG = {
|
|
|
94
109
|
basedProject: "platform-v2-sm",
|
|
95
110
|
basedOrg: "symbols",
|
|
96
111
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
112
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/5c1089f3c3eea4ec5658e05c3f53baae",
|
|
113
|
+
// For grafana tracing
|
|
114
|
+
grafanaAppName: "Symbols",
|
|
97
115
|
typesenseCollectionName: "docs",
|
|
98
116
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
99
117
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -120,6 +138,7 @@ var getConfig = () => {
|
|
|
120
138
|
basedProject: process.env.SYMBOLS_APP_BASED_PROJECT || envConfig.basedProject,
|
|
121
139
|
basedOrg: process.env.SYMBOLS_APP_BASED_ORG || envConfig.basedOrg,
|
|
122
140
|
githubClientId: process.env.SYMBOLS_APP_GITHUB_CLIENT_ID || envConfig.githubClientId,
|
|
141
|
+
grafanaUrl: process.env.SYMBOLS_APP_GRAFANA_URL || envConfig.grafanaUrl,
|
|
123
142
|
typesenseCollectionName: process.env.TYPESENSE_COLLECTION_NAME || envConfig.typesenseCollectionName,
|
|
124
143
|
typesenseApiKey: process.env.TYPESENSE_API_KEY || envConfig.typesenseApiKey,
|
|
125
144
|
typesenseHost: process.env.TYPESENSE_HOST || envConfig.typesenseHost,
|
|
@@ -30,6 +30,9 @@ var CONFIG = {
|
|
|
30
30
|
// For based api
|
|
31
31
|
githubClientId: "Ov23liAFrsR0StbAO6PO",
|
|
32
32
|
// For github api
|
|
33
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/aef64330db80bdfeaac084317bf72f99",
|
|
34
|
+
// For grafana tracing
|
|
35
|
+
grafanaAppName: "Localhost Symbols",
|
|
33
36
|
// Environment-specific feature toggles (override common)
|
|
34
37
|
features: {
|
|
35
38
|
betaFeatures: true
|
|
@@ -45,6 +48,9 @@ var CONFIG = {
|
|
|
45
48
|
socketUrl: "https://dev.api.symbols.app",
|
|
46
49
|
apiUrl: "https://dev.api.symbols.app",
|
|
47
50
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
51
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
52
|
+
// For grafana tracing
|
|
53
|
+
grafanaAppName: "Symbols Dev",
|
|
48
54
|
typesenseCollectionName: "docs",
|
|
49
55
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
50
56
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -58,6 +64,9 @@ var CONFIG = {
|
|
|
58
64
|
basedProject: "platform-v2-sm",
|
|
59
65
|
basedOrg: "symbols",
|
|
60
66
|
githubClientId: "Ov23liHxyWFBxS8f1gnF",
|
|
67
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
68
|
+
// For grafana tracing
|
|
69
|
+
grafanaAppName: "Symbols Test",
|
|
61
70
|
typesenseCollectionName: "docs",
|
|
62
71
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
63
72
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -68,6 +77,9 @@ var CONFIG = {
|
|
|
68
77
|
socketUrl: "https://upcoming.api.symbols.app",
|
|
69
78
|
apiUrl: "https://upcoming.api.symbols.app",
|
|
70
79
|
githubClientId: "Ov23liWF7NvdZ056RV5J",
|
|
80
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
81
|
+
// For grafana tracing
|
|
82
|
+
grafanaAppName: "Symbols Upcoming",
|
|
71
83
|
typesenseCollectionName: "docs",
|
|
72
84
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
73
85
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -81,6 +93,9 @@ var CONFIG = {
|
|
|
81
93
|
basedProject: "platform-v2-sm",
|
|
82
94
|
basedOrg: "symbols",
|
|
83
95
|
githubClientId: "Ov23ligwZDQVD0VfuWNa",
|
|
96
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/7a3ba473cee2025c68513667024316b8",
|
|
97
|
+
// For grafana tracing
|
|
98
|
+
grafanaAppName: "Symbols Staging",
|
|
84
99
|
typesenseCollectionName: "docs",
|
|
85
100
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
86
101
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -94,6 +109,9 @@ var CONFIG = {
|
|
|
94
109
|
basedProject: "platform-v2-sm",
|
|
95
110
|
basedOrg: "symbols",
|
|
96
111
|
githubClientId: "Ov23liFAlOEIXtX3dBtR",
|
|
112
|
+
grafanaUrl: "https://faro-collector-prod-us-east-0.grafana.net/collect/5c1089f3c3eea4ec5658e05c3f53baae",
|
|
113
|
+
// For grafana tracing
|
|
114
|
+
grafanaAppName: "Symbols",
|
|
97
115
|
typesenseCollectionName: "docs",
|
|
98
116
|
typesenseApiKey: "awmcVpbWqZi9IUgmvslp1C5LKDU8tMjA",
|
|
99
117
|
typesenseHost: "tl2qpnwxev4cjm36p-1.a1.typesense.net",
|
|
@@ -120,6 +138,7 @@ var getConfig = () => {
|
|
|
120
138
|
basedProject: process.env.SYMBOLS_APP_BASED_PROJECT || envConfig.basedProject,
|
|
121
139
|
basedOrg: process.env.SYMBOLS_APP_BASED_ORG || envConfig.basedOrg,
|
|
122
140
|
githubClientId: process.env.SYMBOLS_APP_GITHUB_CLIENT_ID || envConfig.githubClientId,
|
|
141
|
+
grafanaUrl: process.env.SYMBOLS_APP_GRAFANA_URL || envConfig.grafanaUrl,
|
|
123
142
|
typesenseCollectionName: process.env.TYPESENSE_COLLECTION_NAME || envConfig.typesenseCollectionName,
|
|
124
143
|
typesenseApiKey: process.env.TYPESENSE_API_KEY || envConfig.typesenseApiKey,
|
|
125
144
|
typesenseHost: process.env.TYPESENSE_HOST || envConfig.typesenseHost,
|