@n8n/rest-api-client 1.9.2 → 1.10.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/dist/api/index.cjs +42 -2
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.d.cts +1 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +41 -1
- package/dist/api/users.cjs +44 -0
- package/dist/api/users.cjs.map +1 -0
- package/dist/api/users.d.cts +121 -0
- package/dist/api/users.d.ts +121 -0
- package/dist/api/users.js +44 -0
- package/dist/chunk-54IORXZH.js +1 -0
- package/dist/chunk-54IORXZH.js.map +1 -0
- package/dist/chunk-G754AW6V.js +96 -0
- package/dist/chunk-G754AW6V.js.map +1 -0
- package/dist/chunk-HZTJD4WD.cjs +96 -0
- package/dist/chunk-HZTJD4WD.cjs.map +1 -0
- package/dist/chunk-UJOGK5LF.cjs +1 -0
- package/dist/{chunk-GLSB4GH3.cjs.map → chunk-UJOGK5LF.cjs.map} +1 -1
- package/dist/index.cjs +42 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -1
- package/package.json +9 -9
- package/dist/chunk-72B7PPKD.js +0 -1
- package/dist/chunk-GLSB4GH3.cjs +0 -1
- /package/dist/{chunk-72B7PPKD.js.map → api/users.js.map} +0 -0
package/dist/api/index.cjs
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-UJOGK5LF.cjs');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var _chunkHZTJD4WDcjs = require('../chunk-HZTJD4WD.cjs');
|
|
2
23
|
|
|
3
24
|
|
|
4
25
|
|
|
@@ -191,5 +212,24 @@ require('../chunk-76QO7IXK.cjs');
|
|
|
191
212
|
|
|
192
213
|
|
|
193
214
|
|
|
194
|
-
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
exports.canEnableMFA = _chunk6ZTX4I3Gcjs.canEnableMFA; exports.changePassword = _chunkHZTJD4WDcjs.changePassword; exports.createApiKey = _chunkCK22VKYYcjs.createApiKey; exports.deleteApiKey = _chunkCK22VKYYcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunkTWENYPGKcjs.deleteDestinationFromDb; exports.deleteUser = _chunkHZTJD4WDcjs.deleteUser; exports.disableMfa = _chunk6ZTX4I3Gcjs.disableMfa; exports.dismissBannerPermanently = _chunkLPNDZTUAcjs.dismissBannerPermanently; exports.enableMfa = _chunk6ZTX4I3Gcjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkICKNSBDIcjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkICKNSBDIcjs.fetchCommunityNodeTypes; exports.findWebhook = _chunk6EOXPQPAcjs.findWebhook; exports.getAdminPanelLoginCode = _chunk3IH3LKGTcjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkCK22VKYYcjs.getApiKeyScopes; exports.getApiKeys = _chunkCK22VKYYcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkUJI6HACTcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunkTG35HP5Ccjs.getBecomeCreatorCta; exports.getCategories = _chunkE7DC7LJEcjs.getCategories; exports.getCloudUserInfo = _chunk3IH3LKGTcjs.getCloudUserInfo; exports.getCollectionById = _chunkE7DC7LJEcjs.getCollectionById; exports.getCollections = _chunkE7DC7LJEcjs.getCollections; exports.getCurrentPlan = _chunk3IH3LKGTcjs.getCurrentPlan; exports.getCurrentUsage = _chunk3IH3LKGTcjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunkTWENYPGKcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunkTWENYPGKcjs.getEventNamesFromBackend; exports.getInstalledCommunityNodes = _chunkUJI6HACTcjs.getInstalledCommunityNodes; exports.getInviteLink = _chunkHZTJD4WDcjs.getInviteLink; exports.getLdapConfig = _chunkFQANWCTGcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkFQANWCTGcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkICKNSBDIcjs.getLocalResourceMapperFields; exports.getMfaQR = _chunk6ZTX4I3Gcjs.getMfaQR; exports.getModuleSettings = _chunkU3YVBLF7cjs.getModuleSettings; exports.getNextVersions = _chunkCG7MWVBXcjs.getNextVersions; exports.getNodeParameterActionResult = _chunkICKNSBDIcjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkICKNSBDIcjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkICKNSBDIcjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkICKNSBDIcjs.getNodeTypes; exports.getNodesInformation = _chunkICKNSBDIcjs.getNodesInformation; exports.getOidcConfig = _chunkHVKVUYHGcjs.getOidcConfig; exports.getPasswordResetLink = _chunkHZTJD4WDcjs.getPasswordResetLink; exports.getPromptsData = _chunkTKGDZLC6cjs.getPromptsData; exports.getResourceLocatorResults = _chunkICKNSBDIcjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkICKNSBDIcjs.getResourceMapperFields; exports.getRoles = _chunk2MKCR5R2cjs.getRoles; exports.getSamlConfig = _chunkHVKVUYHGcjs.getSamlConfig; exports.getSamlMetadata = _chunkHVKVUYHGcjs.getSamlMetadata; exports.getSettings = _chunkYLVJV4ATcjs.getSettings; exports.getTemplateById = _chunkE7DC7LJEcjs.getTemplateById; exports.getUsers = _chunkHZTJD4WDcjs.getUsers; exports.getWhatsNewSection = _chunkCG7MWVBXcjs.getWhatsNewSection; exports.getWorkflowHistory = _chunkBWR373PPcjs.getWorkflowHistory; exports.getWorkflowTemplate = _chunkE7DC7LJEcjs.getWorkflowTemplate; exports.getWorkflowVersion = _chunkBWR373PPcjs.getWorkflowVersion; exports.getWorkflows = _chunkE7DC7LJEcjs.getWorkflows; exports.hasDestinationId = _chunkTWENYPGKcjs.hasDestinationId; exports.initOidcLogin = _chunkHVKVUYHGcjs.initOidcLogin; exports.initSSO = _chunkHVKVUYHGcjs.initSSO; exports.installNewPackage = _chunkUJI6HACTcjs.installNewPackage; exports.login = _chunkHZTJD4WDcjs.login; exports.loginCurrentUser = _chunkHZTJD4WDcjs.loginCurrentUser; exports.logout = _chunkHZTJD4WDcjs.logout; exports.runLdapSync = _chunkFQANWCTGcjs.runLdapSync; exports.saveDestinationToDb = _chunkTWENYPGKcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkHVKVUYHGcjs.saveOidcConfig; exports.saveSamlConfig = _chunkHVKVUYHGcjs.saveSamlConfig; exports.sendConfirmationEmail = _chunk3IH3LKGTcjs.sendConfirmationEmail; exports.sendForgotPasswordEmail = _chunkHZTJD4WDcjs.sendForgotPasswordEmail; exports.sendGetWorkerStatus = _chunkLJBEN4XScjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunkTWENYPGKcjs.sendTestMessageToDestination; exports.sessionStarted = _chunkVFQIXX6Ccjs.sessionStarted; exports.setupOwner = _chunkHZTJD4WDcjs.setupOwner; exports.signup = _chunkHZTJD4WDcjs.signup; exports.submitContactInfo = _chunkTKGDZLC6cjs.submitContactInfo; exports.submitPersonalizationSurvey = _chunkHZTJD4WDcjs.submitPersonalizationSurvey; exports.testHealthEndpoint = _chunkE7DC7LJEcjs.testHealthEndpoint; exports.testLdapConnection = _chunkFQANWCTGcjs.testLdapConnection; exports.testSamlConfig = _chunkHVKVUYHGcjs.testSamlConfig; exports.toggleSamlConfig = _chunkHVKVUYHGcjs.toggleSamlConfig; exports.uninstallPackage = _chunkUJI6HACTcjs.uninstallPackage; exports.updateApiKey = _chunkCK22VKYYcjs.updateApiKey; exports.updateCurrentUser = _chunkHZTJD4WDcjs.updateCurrentUser; exports.updateCurrentUserPassword = _chunkHZTJD4WDcjs.updateCurrentUserPassword; exports.updateCurrentUserSettings = _chunkHZTJD4WDcjs.updateCurrentUserSettings; exports.updateEnforceMfa = _chunk6ZTX4I3Gcjs.updateEnforceMfa; exports.updateGlobalRole = _chunkHZTJD4WDcjs.updateGlobalRole; exports.updateLdapConfig = _chunkFQANWCTGcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunkUUMSEI6Ocjs.updateNpsSurveyState; exports.updateOtherUserSettings = _chunkHZTJD4WDcjs.updateOtherUserSettings; exports.updatePackage = _chunkUJI6HACTcjs.updatePackage; exports.validatePasswordToken = _chunkHZTJD4WDcjs.validatePasswordToken; exports.validateSignupToken = _chunkHZTJD4WDcjs.validateSignupToken; exports.verifyMfaCode = _chunk6ZTX4I3Gcjs.verifyMfaCode;
|
|
195
235
|
//# sourceMappingURL=index.cjs.map
|
package/dist/api/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/index.cjs"],"names":[],"mappings":"AAAA,0GAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yzLAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/index.cjs"}
|
package/dist/api/index.d.cts
CHANGED
|
@@ -17,6 +17,7 @@ export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMeta
|
|
|
17
17
|
export { ITag } from './tags.cjs';
|
|
18
18
|
export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './templates.cjs';
|
|
19
19
|
export { dismissBannerPermanently } from './ui.cjs';
|
|
20
|
+
export { CurrentUserResponse, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IUser, IUserResponse, UpdateGlobalRolePayload, changePassword, deleteUser, getInviteLink, getPasswordResetLink, getUsers, login, loginCurrentUser, logout, sendForgotPasswordEmail, setupOwner, signup, submitPersonalizationSurvey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateGlobalRole, updateOtherUserSettings, validatePasswordToken, validateSignupToken } from './users.cjs';
|
|
20
21
|
export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './versions.cjs';
|
|
21
22
|
export { findWebhook } from './webhooks.cjs';
|
|
22
23
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './workflowHistory.cjs';
|
package/dist/api/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMeta
|
|
|
17
17
|
export { ITag } from './tags.js';
|
|
18
18
|
export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './templates.js';
|
|
19
19
|
export { dismissBannerPermanently } from './ui.js';
|
|
20
|
+
export { CurrentUserResponse, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IUser, IUserResponse, UpdateGlobalRolePayload, changePassword, deleteUser, getInviteLink, getPasswordResetLink, getUsers, login, loginCurrentUser, logout, sendForgotPasswordEmail, setupOwner, signup, submitPersonalizationSurvey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateGlobalRole, updateOtherUserSettings, validatePasswordToken, validateSignupToken } from './users.js';
|
|
20
21
|
export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './versions.js';
|
|
21
22
|
export { findWebhook } from './webhooks.js';
|
|
22
23
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './workflowHistory.js';
|
package/dist/api/index.js
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-54IORXZH.js";
|
|
2
|
+
import {
|
|
3
|
+
changePassword,
|
|
4
|
+
deleteUser,
|
|
5
|
+
getInviteLink,
|
|
6
|
+
getPasswordResetLink,
|
|
7
|
+
getUsers,
|
|
8
|
+
login,
|
|
9
|
+
loginCurrentUser,
|
|
10
|
+
logout,
|
|
11
|
+
sendForgotPasswordEmail,
|
|
12
|
+
setupOwner,
|
|
13
|
+
signup,
|
|
14
|
+
submitPersonalizationSurvey,
|
|
15
|
+
updateCurrentUser,
|
|
16
|
+
updateCurrentUserPassword,
|
|
17
|
+
updateCurrentUserSettings,
|
|
18
|
+
updateGlobalRole,
|
|
19
|
+
updateOtherUserSettings,
|
|
20
|
+
validatePasswordToken,
|
|
21
|
+
validateSignupToken
|
|
22
|
+
} from "../chunk-G754AW6V.js";
|
|
2
23
|
import {
|
|
3
24
|
getNextVersions,
|
|
4
25
|
getWhatsNewSection
|
|
@@ -119,9 +140,11 @@ import {
|
|
|
119
140
|
import "../chunk-NTAW2A35.js";
|
|
120
141
|
export {
|
|
121
142
|
canEnableMFA,
|
|
143
|
+
changePassword,
|
|
122
144
|
createApiKey,
|
|
123
145
|
deleteApiKey,
|
|
124
146
|
deleteDestinationFromDb,
|
|
147
|
+
deleteUser,
|
|
125
148
|
disableMfa,
|
|
126
149
|
dismissBannerPermanently,
|
|
127
150
|
enableMfa,
|
|
@@ -142,6 +165,7 @@ export {
|
|
|
142
165
|
getDestinationsFromBackend,
|
|
143
166
|
getEventNamesFromBackend,
|
|
144
167
|
getInstalledCommunityNodes,
|
|
168
|
+
getInviteLink,
|
|
145
169
|
getLdapConfig,
|
|
146
170
|
getLdapSynchronizations,
|
|
147
171
|
getLocalResourceMapperFields,
|
|
@@ -154,6 +178,7 @@ export {
|
|
|
154
178
|
getNodeTypes,
|
|
155
179
|
getNodesInformation,
|
|
156
180
|
getOidcConfig,
|
|
181
|
+
getPasswordResetLink,
|
|
157
182
|
getPromptsData,
|
|
158
183
|
getResourceLocatorResults,
|
|
159
184
|
getResourceMapperFields,
|
|
@@ -162,6 +187,7 @@ export {
|
|
|
162
187
|
getSamlMetadata,
|
|
163
188
|
getSettings,
|
|
164
189
|
getTemplateById,
|
|
190
|
+
getUsers,
|
|
165
191
|
getWhatsNewSection,
|
|
166
192
|
getWorkflowHistory,
|
|
167
193
|
getWorkflowTemplate,
|
|
@@ -171,25 +197,39 @@ export {
|
|
|
171
197
|
initOidcLogin,
|
|
172
198
|
initSSO,
|
|
173
199
|
installNewPackage,
|
|
200
|
+
login,
|
|
201
|
+
loginCurrentUser,
|
|
202
|
+
logout,
|
|
174
203
|
runLdapSync,
|
|
175
204
|
saveDestinationToDb,
|
|
176
205
|
saveOidcConfig,
|
|
177
206
|
saveSamlConfig,
|
|
178
207
|
sendConfirmationEmail,
|
|
208
|
+
sendForgotPasswordEmail,
|
|
179
209
|
sendGetWorkerStatus,
|
|
180
210
|
sendTestMessageToDestination,
|
|
181
211
|
sessionStarted,
|
|
212
|
+
setupOwner,
|
|
213
|
+
signup,
|
|
182
214
|
submitContactInfo,
|
|
215
|
+
submitPersonalizationSurvey,
|
|
183
216
|
testHealthEndpoint,
|
|
184
217
|
testLdapConnection,
|
|
185
218
|
testSamlConfig,
|
|
186
219
|
toggleSamlConfig,
|
|
187
220
|
uninstallPackage,
|
|
188
221
|
updateApiKey,
|
|
222
|
+
updateCurrentUser,
|
|
223
|
+
updateCurrentUserPassword,
|
|
224
|
+
updateCurrentUserSettings,
|
|
189
225
|
updateEnforceMfa,
|
|
226
|
+
updateGlobalRole,
|
|
190
227
|
updateLdapConfig,
|
|
191
228
|
updateNpsSurveyState,
|
|
229
|
+
updateOtherUserSettings,
|
|
192
230
|
updatePackage,
|
|
231
|
+
validatePasswordToken,
|
|
232
|
+
validateSignupToken,
|
|
193
233
|
verifyMfaCode
|
|
194
234
|
};
|
|
195
235
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkHZTJD4WDcjs = require('../chunk-HZTJD4WD.cjs');
|
|
22
|
+
require('../chunk-76QO7IXK.cjs');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
exports.changePassword = _chunkHZTJD4WDcjs.changePassword; exports.deleteUser = _chunkHZTJD4WDcjs.deleteUser; exports.getInviteLink = _chunkHZTJD4WDcjs.getInviteLink; exports.getPasswordResetLink = _chunkHZTJD4WDcjs.getPasswordResetLink; exports.getUsers = _chunkHZTJD4WDcjs.getUsers; exports.login = _chunkHZTJD4WDcjs.login; exports.loginCurrentUser = _chunkHZTJD4WDcjs.loginCurrentUser; exports.logout = _chunkHZTJD4WDcjs.logout; exports.sendForgotPasswordEmail = _chunkHZTJD4WDcjs.sendForgotPasswordEmail; exports.setupOwner = _chunkHZTJD4WDcjs.setupOwner; exports.signup = _chunkHZTJD4WDcjs.signup; exports.submitPersonalizationSurvey = _chunkHZTJD4WDcjs.submitPersonalizationSurvey; exports.updateCurrentUser = _chunkHZTJD4WDcjs.updateCurrentUser; exports.updateCurrentUserPassword = _chunkHZTJD4WDcjs.updateCurrentUserPassword; exports.updateCurrentUserSettings = _chunkHZTJD4WDcjs.updateCurrentUserSettings; exports.updateGlobalRole = _chunkHZTJD4WDcjs.updateGlobalRole; exports.updateOtherUserSettings = _chunkHZTJD4WDcjs.updateOtherUserSettings; exports.validatePasswordToken = _chunkHZTJD4WDcjs.validatePasswordToken; exports.validateSignupToken = _chunkHZTJD4WDcjs.validateSignupToken;
|
|
44
|
+
//# sourceMappingURL=users.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/users.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,4qCAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/api/users.cjs"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { User, LoginRequestDto, UserUpdateRequestDto, SettingsUpdateRequestDto, PasswordUpdateRequestDto, UsersListFilterDto, UsersList, Role } from '@n8n/api-types';
|
|
2
|
+
import { Scope } from '@n8n/permissions';
|
|
3
|
+
import { IPersonalizationSurveyAnswersV4, IUserSettings, FeatureFlags } from 'n8n-workflow';
|
|
4
|
+
import { IRestApiContext } from '../types.cjs';
|
|
5
|
+
|
|
6
|
+
type IPersonalizationSurveyAnswersV1 = {
|
|
7
|
+
codingSkill?: string | null;
|
|
8
|
+
companyIndustry?: string[] | null;
|
|
9
|
+
companySize?: string | null;
|
|
10
|
+
otherCompanyIndustry?: string | null;
|
|
11
|
+
otherWorkArea?: string | null;
|
|
12
|
+
workArea?: string[] | string | null;
|
|
13
|
+
};
|
|
14
|
+
type IPersonalizationSurveyAnswersV2 = {
|
|
15
|
+
version: 'v2';
|
|
16
|
+
automationGoal?: string | null;
|
|
17
|
+
codingSkill?: string | null;
|
|
18
|
+
companyIndustryExtended?: string[] | null;
|
|
19
|
+
companySize?: string | null;
|
|
20
|
+
companyType?: string | null;
|
|
21
|
+
customerType?: string | null;
|
|
22
|
+
mspFocus?: string[] | null;
|
|
23
|
+
mspFocusOther?: string | null;
|
|
24
|
+
otherAutomationGoal?: string | null;
|
|
25
|
+
otherCompanyIndustryExtended?: string[] | null;
|
|
26
|
+
};
|
|
27
|
+
type IPersonalizationSurveyAnswersV3 = {
|
|
28
|
+
version: 'v3';
|
|
29
|
+
automationGoal?: string | null;
|
|
30
|
+
otherAutomationGoal?: string | null;
|
|
31
|
+
companyIndustryExtended?: string[] | null;
|
|
32
|
+
otherCompanyIndustryExtended?: string[] | null;
|
|
33
|
+
companySize?: string | null;
|
|
34
|
+
companyType?: string | null;
|
|
35
|
+
automationGoalSm?: string[] | null;
|
|
36
|
+
automationGoalSmOther?: string | null;
|
|
37
|
+
usageModes?: string[] | null;
|
|
38
|
+
email?: string | null;
|
|
39
|
+
};
|
|
40
|
+
type IPersonalizationLatestVersion = IPersonalizationSurveyAnswersV4;
|
|
41
|
+
type IPersonalizationSurveyVersions = IPersonalizationSurveyAnswersV1 | IPersonalizationSurveyAnswersV2 | IPersonalizationSurveyAnswersV3 | IPersonalizationSurveyAnswersV4;
|
|
42
|
+
interface IUserResponse extends User {
|
|
43
|
+
globalScopes?: Scope[];
|
|
44
|
+
personalizationAnswers?: IPersonalizationSurveyVersions | null;
|
|
45
|
+
settings?: IUserSettings | null;
|
|
46
|
+
}
|
|
47
|
+
interface CurrentUserResponse extends IUserResponse {
|
|
48
|
+
featureFlags?: FeatureFlags;
|
|
49
|
+
}
|
|
50
|
+
interface IUser extends IUserResponse {
|
|
51
|
+
isDefaultUser: boolean;
|
|
52
|
+
isPendingUser: boolean;
|
|
53
|
+
inviteAcceptUrl?: string;
|
|
54
|
+
fullName?: string;
|
|
55
|
+
createdAt?: string;
|
|
56
|
+
mfaEnabled: boolean;
|
|
57
|
+
mfaAuthenticated?: boolean;
|
|
58
|
+
}
|
|
59
|
+
declare function loginCurrentUser(context: IRestApiContext): Promise<CurrentUserResponse | null>;
|
|
60
|
+
declare function login(context: IRestApiContext, params: LoginRequestDto): Promise<CurrentUserResponse>;
|
|
61
|
+
declare function logout(context: IRestApiContext): Promise<void>;
|
|
62
|
+
declare function setupOwner(context: IRestApiContext, params: {
|
|
63
|
+
firstName: string;
|
|
64
|
+
lastName: string;
|
|
65
|
+
email: string;
|
|
66
|
+
password: string;
|
|
67
|
+
}): Promise<CurrentUserResponse>;
|
|
68
|
+
declare function validateSignupToken(context: IRestApiContext, params: {
|
|
69
|
+
inviterId: string;
|
|
70
|
+
inviteeId: string;
|
|
71
|
+
}): Promise<{
|
|
72
|
+
inviter: {
|
|
73
|
+
firstName: string;
|
|
74
|
+
lastName: string;
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
declare function signup(context: IRestApiContext, params: {
|
|
78
|
+
inviterId: string;
|
|
79
|
+
inviteeId: string;
|
|
80
|
+
firstName: string;
|
|
81
|
+
lastName: string;
|
|
82
|
+
password: string;
|
|
83
|
+
}): Promise<CurrentUserResponse>;
|
|
84
|
+
declare function sendForgotPasswordEmail(context: IRestApiContext, params: {
|
|
85
|
+
email: string;
|
|
86
|
+
}): Promise<void>;
|
|
87
|
+
declare function validatePasswordToken(context: IRestApiContext, params: {
|
|
88
|
+
token: string;
|
|
89
|
+
}): Promise<void>;
|
|
90
|
+
declare function changePassword(context: IRestApiContext, params: {
|
|
91
|
+
token: string;
|
|
92
|
+
password: string;
|
|
93
|
+
mfaCode?: string;
|
|
94
|
+
}): Promise<void>;
|
|
95
|
+
declare function updateCurrentUser(context: IRestApiContext, params: UserUpdateRequestDto): Promise<IUserResponse>;
|
|
96
|
+
declare function updateCurrentUserSettings(context: IRestApiContext, settings: SettingsUpdateRequestDto): Promise<IUserSettings>;
|
|
97
|
+
declare function updateOtherUserSettings(context: IRestApiContext, userId: string, settings: SettingsUpdateRequestDto): Promise<IUserSettings>;
|
|
98
|
+
declare function updateCurrentUserPassword(context: IRestApiContext, params: PasswordUpdateRequestDto): Promise<void>;
|
|
99
|
+
declare function deleteUser(context: IRestApiContext, { id, transferId }: {
|
|
100
|
+
id: string;
|
|
101
|
+
transferId?: string;
|
|
102
|
+
}): Promise<void>;
|
|
103
|
+
declare function getUsers(context: IRestApiContext, filter?: UsersListFilterDto): Promise<UsersList>;
|
|
104
|
+
declare function getInviteLink(context: IRestApiContext, { id }: {
|
|
105
|
+
id: string;
|
|
106
|
+
}): Promise<{
|
|
107
|
+
link: string;
|
|
108
|
+
}>;
|
|
109
|
+
declare function getPasswordResetLink(context: IRestApiContext, { id }: {
|
|
110
|
+
id: string;
|
|
111
|
+
}): Promise<{
|
|
112
|
+
link: string;
|
|
113
|
+
}>;
|
|
114
|
+
declare function submitPersonalizationSurvey(context: IRestApiContext, params: IPersonalizationLatestVersion): Promise<void>;
|
|
115
|
+
interface UpdateGlobalRolePayload {
|
|
116
|
+
id: string;
|
|
117
|
+
newRoleName: Role;
|
|
118
|
+
}
|
|
119
|
+
declare function updateGlobalRole(context: IRestApiContext, { id, newRoleName }: UpdateGlobalRolePayload): Promise<IUserResponse>;
|
|
120
|
+
|
|
121
|
+
export { type CurrentUserResponse, type IPersonalizationLatestVersion, type IPersonalizationSurveyAnswersV1, type IPersonalizationSurveyAnswersV2, type IPersonalizationSurveyAnswersV3, type IPersonalizationSurveyVersions, type IUser, type IUserResponse, type UpdateGlobalRolePayload, changePassword, deleteUser, getInviteLink, getPasswordResetLink, getUsers, login, loginCurrentUser, logout, sendForgotPasswordEmail, setupOwner, signup, submitPersonalizationSurvey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateGlobalRole, updateOtherUserSettings, validatePasswordToken, validateSignupToken };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { User, LoginRequestDto, UserUpdateRequestDto, SettingsUpdateRequestDto, PasswordUpdateRequestDto, UsersListFilterDto, UsersList, Role } from '@n8n/api-types';
|
|
2
|
+
import { Scope } from '@n8n/permissions';
|
|
3
|
+
import { IPersonalizationSurveyAnswersV4, IUserSettings, FeatureFlags } from 'n8n-workflow';
|
|
4
|
+
import { IRestApiContext } from '../types.js';
|
|
5
|
+
|
|
6
|
+
type IPersonalizationSurveyAnswersV1 = {
|
|
7
|
+
codingSkill?: string | null;
|
|
8
|
+
companyIndustry?: string[] | null;
|
|
9
|
+
companySize?: string | null;
|
|
10
|
+
otherCompanyIndustry?: string | null;
|
|
11
|
+
otherWorkArea?: string | null;
|
|
12
|
+
workArea?: string[] | string | null;
|
|
13
|
+
};
|
|
14
|
+
type IPersonalizationSurveyAnswersV2 = {
|
|
15
|
+
version: 'v2';
|
|
16
|
+
automationGoal?: string | null;
|
|
17
|
+
codingSkill?: string | null;
|
|
18
|
+
companyIndustryExtended?: string[] | null;
|
|
19
|
+
companySize?: string | null;
|
|
20
|
+
companyType?: string | null;
|
|
21
|
+
customerType?: string | null;
|
|
22
|
+
mspFocus?: string[] | null;
|
|
23
|
+
mspFocusOther?: string | null;
|
|
24
|
+
otherAutomationGoal?: string | null;
|
|
25
|
+
otherCompanyIndustryExtended?: string[] | null;
|
|
26
|
+
};
|
|
27
|
+
type IPersonalizationSurveyAnswersV3 = {
|
|
28
|
+
version: 'v3';
|
|
29
|
+
automationGoal?: string | null;
|
|
30
|
+
otherAutomationGoal?: string | null;
|
|
31
|
+
companyIndustryExtended?: string[] | null;
|
|
32
|
+
otherCompanyIndustryExtended?: string[] | null;
|
|
33
|
+
companySize?: string | null;
|
|
34
|
+
companyType?: string | null;
|
|
35
|
+
automationGoalSm?: string[] | null;
|
|
36
|
+
automationGoalSmOther?: string | null;
|
|
37
|
+
usageModes?: string[] | null;
|
|
38
|
+
email?: string | null;
|
|
39
|
+
};
|
|
40
|
+
type IPersonalizationLatestVersion = IPersonalizationSurveyAnswersV4;
|
|
41
|
+
type IPersonalizationSurveyVersions = IPersonalizationSurveyAnswersV1 | IPersonalizationSurveyAnswersV2 | IPersonalizationSurveyAnswersV3 | IPersonalizationSurveyAnswersV4;
|
|
42
|
+
interface IUserResponse extends User {
|
|
43
|
+
globalScopes?: Scope[];
|
|
44
|
+
personalizationAnswers?: IPersonalizationSurveyVersions | null;
|
|
45
|
+
settings?: IUserSettings | null;
|
|
46
|
+
}
|
|
47
|
+
interface CurrentUserResponse extends IUserResponse {
|
|
48
|
+
featureFlags?: FeatureFlags;
|
|
49
|
+
}
|
|
50
|
+
interface IUser extends IUserResponse {
|
|
51
|
+
isDefaultUser: boolean;
|
|
52
|
+
isPendingUser: boolean;
|
|
53
|
+
inviteAcceptUrl?: string;
|
|
54
|
+
fullName?: string;
|
|
55
|
+
createdAt?: string;
|
|
56
|
+
mfaEnabled: boolean;
|
|
57
|
+
mfaAuthenticated?: boolean;
|
|
58
|
+
}
|
|
59
|
+
declare function loginCurrentUser(context: IRestApiContext): Promise<CurrentUserResponse | null>;
|
|
60
|
+
declare function login(context: IRestApiContext, params: LoginRequestDto): Promise<CurrentUserResponse>;
|
|
61
|
+
declare function logout(context: IRestApiContext): Promise<void>;
|
|
62
|
+
declare function setupOwner(context: IRestApiContext, params: {
|
|
63
|
+
firstName: string;
|
|
64
|
+
lastName: string;
|
|
65
|
+
email: string;
|
|
66
|
+
password: string;
|
|
67
|
+
}): Promise<CurrentUserResponse>;
|
|
68
|
+
declare function validateSignupToken(context: IRestApiContext, params: {
|
|
69
|
+
inviterId: string;
|
|
70
|
+
inviteeId: string;
|
|
71
|
+
}): Promise<{
|
|
72
|
+
inviter: {
|
|
73
|
+
firstName: string;
|
|
74
|
+
lastName: string;
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
declare function signup(context: IRestApiContext, params: {
|
|
78
|
+
inviterId: string;
|
|
79
|
+
inviteeId: string;
|
|
80
|
+
firstName: string;
|
|
81
|
+
lastName: string;
|
|
82
|
+
password: string;
|
|
83
|
+
}): Promise<CurrentUserResponse>;
|
|
84
|
+
declare function sendForgotPasswordEmail(context: IRestApiContext, params: {
|
|
85
|
+
email: string;
|
|
86
|
+
}): Promise<void>;
|
|
87
|
+
declare function validatePasswordToken(context: IRestApiContext, params: {
|
|
88
|
+
token: string;
|
|
89
|
+
}): Promise<void>;
|
|
90
|
+
declare function changePassword(context: IRestApiContext, params: {
|
|
91
|
+
token: string;
|
|
92
|
+
password: string;
|
|
93
|
+
mfaCode?: string;
|
|
94
|
+
}): Promise<void>;
|
|
95
|
+
declare function updateCurrentUser(context: IRestApiContext, params: UserUpdateRequestDto): Promise<IUserResponse>;
|
|
96
|
+
declare function updateCurrentUserSettings(context: IRestApiContext, settings: SettingsUpdateRequestDto): Promise<IUserSettings>;
|
|
97
|
+
declare function updateOtherUserSettings(context: IRestApiContext, userId: string, settings: SettingsUpdateRequestDto): Promise<IUserSettings>;
|
|
98
|
+
declare function updateCurrentUserPassword(context: IRestApiContext, params: PasswordUpdateRequestDto): Promise<void>;
|
|
99
|
+
declare function deleteUser(context: IRestApiContext, { id, transferId }: {
|
|
100
|
+
id: string;
|
|
101
|
+
transferId?: string;
|
|
102
|
+
}): Promise<void>;
|
|
103
|
+
declare function getUsers(context: IRestApiContext, filter?: UsersListFilterDto): Promise<UsersList>;
|
|
104
|
+
declare function getInviteLink(context: IRestApiContext, { id }: {
|
|
105
|
+
id: string;
|
|
106
|
+
}): Promise<{
|
|
107
|
+
link: string;
|
|
108
|
+
}>;
|
|
109
|
+
declare function getPasswordResetLink(context: IRestApiContext, { id }: {
|
|
110
|
+
id: string;
|
|
111
|
+
}): Promise<{
|
|
112
|
+
link: string;
|
|
113
|
+
}>;
|
|
114
|
+
declare function submitPersonalizationSurvey(context: IRestApiContext, params: IPersonalizationLatestVersion): Promise<void>;
|
|
115
|
+
interface UpdateGlobalRolePayload {
|
|
116
|
+
id: string;
|
|
117
|
+
newRoleName: Role;
|
|
118
|
+
}
|
|
119
|
+
declare function updateGlobalRole(context: IRestApiContext, { id, newRoleName }: UpdateGlobalRolePayload): Promise<IUserResponse>;
|
|
120
|
+
|
|
121
|
+
export { type CurrentUserResponse, type IPersonalizationLatestVersion, type IPersonalizationSurveyAnswersV1, type IPersonalizationSurveyAnswersV2, type IPersonalizationSurveyAnswersV3, type IPersonalizationSurveyVersions, type IUser, type IUserResponse, type UpdateGlobalRolePayload, changePassword, deleteUser, getInviteLink, getPasswordResetLink, getUsers, login, loginCurrentUser, logout, sendForgotPasswordEmail, setupOwner, signup, submitPersonalizationSurvey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateGlobalRole, updateOtherUserSettings, validatePasswordToken, validateSignupToken };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
changePassword,
|
|
3
|
+
deleteUser,
|
|
4
|
+
getInviteLink,
|
|
5
|
+
getPasswordResetLink,
|
|
6
|
+
getUsers,
|
|
7
|
+
login,
|
|
8
|
+
loginCurrentUser,
|
|
9
|
+
logout,
|
|
10
|
+
sendForgotPasswordEmail,
|
|
11
|
+
setupOwner,
|
|
12
|
+
signup,
|
|
13
|
+
submitPersonalizationSurvey,
|
|
14
|
+
updateCurrentUser,
|
|
15
|
+
updateCurrentUserPassword,
|
|
16
|
+
updateCurrentUserSettings,
|
|
17
|
+
updateGlobalRole,
|
|
18
|
+
updateOtherUserSettings,
|
|
19
|
+
validatePasswordToken,
|
|
20
|
+
validateSignupToken
|
|
21
|
+
} from "../chunk-G754AW6V.js";
|
|
22
|
+
import "../chunk-NTAW2A35.js";
|
|
23
|
+
export {
|
|
24
|
+
changePassword,
|
|
25
|
+
deleteUser,
|
|
26
|
+
getInviteLink,
|
|
27
|
+
getPasswordResetLink,
|
|
28
|
+
getUsers,
|
|
29
|
+
login,
|
|
30
|
+
loginCurrentUser,
|
|
31
|
+
logout,
|
|
32
|
+
sendForgotPasswordEmail,
|
|
33
|
+
setupOwner,
|
|
34
|
+
signup,
|
|
35
|
+
submitPersonalizationSurvey,
|
|
36
|
+
updateCurrentUser,
|
|
37
|
+
updateCurrentUserPassword,
|
|
38
|
+
updateCurrentUserSettings,
|
|
39
|
+
updateGlobalRole,
|
|
40
|
+
updateOtherUserSettings,
|
|
41
|
+
validatePasswordToken,
|
|
42
|
+
validateSignupToken
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-54IORXZH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeRestApiRequest
|
|
3
|
+
} from "./chunk-NTAW2A35.js";
|
|
4
|
+
|
|
5
|
+
// src/api/users.ts
|
|
6
|
+
async function loginCurrentUser(context) {
|
|
7
|
+
return await makeRestApiRequest(context, "GET", "/login");
|
|
8
|
+
}
|
|
9
|
+
async function login(context, params) {
|
|
10
|
+
return await makeRestApiRequest(context, "POST", "/login", params);
|
|
11
|
+
}
|
|
12
|
+
async function logout(context) {
|
|
13
|
+
await makeRestApiRequest(context, "POST", "/logout");
|
|
14
|
+
}
|
|
15
|
+
async function setupOwner(context, params) {
|
|
16
|
+
return await makeRestApiRequest(
|
|
17
|
+
context,
|
|
18
|
+
"POST",
|
|
19
|
+
"/owner/setup",
|
|
20
|
+
params
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
async function validateSignupToken(context, params) {
|
|
24
|
+
return await makeRestApiRequest(context, "GET", "/resolve-signup-token", params);
|
|
25
|
+
}
|
|
26
|
+
async function signup(context, params) {
|
|
27
|
+
const { inviteeId, ...props } = params;
|
|
28
|
+
return await makeRestApiRequest(
|
|
29
|
+
context,
|
|
30
|
+
"POST",
|
|
31
|
+
`/users/${params.inviteeId}`,
|
|
32
|
+
props
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
async function sendForgotPasswordEmail(context, params) {
|
|
36
|
+
await makeRestApiRequest(context, "POST", "/forgot-password", params);
|
|
37
|
+
}
|
|
38
|
+
async function validatePasswordToken(context, params) {
|
|
39
|
+
await makeRestApiRequest(context, "GET", "/resolve-password-token", params);
|
|
40
|
+
}
|
|
41
|
+
async function changePassword(context, params) {
|
|
42
|
+
await makeRestApiRequest(context, "POST", "/change-password", params);
|
|
43
|
+
}
|
|
44
|
+
async function updateCurrentUser(context, params) {
|
|
45
|
+
return await makeRestApiRequest(context, "PATCH", "/me", params);
|
|
46
|
+
}
|
|
47
|
+
async function updateCurrentUserSettings(context, settings) {
|
|
48
|
+
return await makeRestApiRequest(context, "PATCH", "/me/settings", settings);
|
|
49
|
+
}
|
|
50
|
+
async function updateOtherUserSettings(context, userId, settings) {
|
|
51
|
+
return await makeRestApiRequest(context, "PATCH", `/users/${userId}/settings`, settings);
|
|
52
|
+
}
|
|
53
|
+
async function updateCurrentUserPassword(context, params) {
|
|
54
|
+
return await makeRestApiRequest(context, "PATCH", "/me/password", params);
|
|
55
|
+
}
|
|
56
|
+
async function deleteUser(context, { id, transferId }) {
|
|
57
|
+
await makeRestApiRequest(context, "DELETE", `/users/${id}`, transferId ? { transferId } : {});
|
|
58
|
+
}
|
|
59
|
+
async function getUsers(context, filter) {
|
|
60
|
+
return await makeRestApiRequest(context, "GET", "/users", filter);
|
|
61
|
+
}
|
|
62
|
+
async function getInviteLink(context, { id }) {
|
|
63
|
+
return await makeRestApiRequest(context, "GET", `/users/${id}/invite-link`);
|
|
64
|
+
}
|
|
65
|
+
async function getPasswordResetLink(context, { id }) {
|
|
66
|
+
return await makeRestApiRequest(context, "GET", `/users/${id}/password-reset-link`);
|
|
67
|
+
}
|
|
68
|
+
async function submitPersonalizationSurvey(context, params) {
|
|
69
|
+
await makeRestApiRequest(context, "POST", "/me/survey", params);
|
|
70
|
+
}
|
|
71
|
+
async function updateGlobalRole(context, { id, newRoleName }) {
|
|
72
|
+
return await makeRestApiRequest(context, "PATCH", `/users/${id}/role`, { newRoleName });
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export {
|
|
76
|
+
loginCurrentUser,
|
|
77
|
+
login,
|
|
78
|
+
logout,
|
|
79
|
+
setupOwner,
|
|
80
|
+
validateSignupToken,
|
|
81
|
+
signup,
|
|
82
|
+
sendForgotPasswordEmail,
|
|
83
|
+
validatePasswordToken,
|
|
84
|
+
changePassword,
|
|
85
|
+
updateCurrentUser,
|
|
86
|
+
updateCurrentUserSettings,
|
|
87
|
+
updateOtherUserSettings,
|
|
88
|
+
updateCurrentUserPassword,
|
|
89
|
+
deleteUser,
|
|
90
|
+
getUsers,
|
|
91
|
+
getInviteLink,
|
|
92
|
+
getPasswordResetLink,
|
|
93
|
+
submitPersonalizationSurvey,
|
|
94
|
+
updateGlobalRole
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=chunk-G754AW6V.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/api/users.ts"],"sourcesContent":["import type {\n\tLoginRequestDto,\n\tPasswordUpdateRequestDto,\n\tSettingsUpdateRequestDto,\n\tUsersListFilterDto,\n\tUserUpdateRequestDto,\n\tRole,\n\tUsersList,\n\tUser,\n} from '@n8n/api-types';\nimport type { Scope } from '@n8n/permissions';\nimport type {\n\tFeatureFlags,\n\tIDataObject,\n\tIPersonalizationSurveyAnswersV4,\n\tIUserSettings,\n} from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type IPersonalizationSurveyAnswersV1 = {\n\tcodingSkill?: string | null;\n\tcompanyIndustry?: string[] | null;\n\tcompanySize?: string | null;\n\totherCompanyIndustry?: string | null;\n\totherWorkArea?: string | null;\n\tworkArea?: string[] | string | null;\n};\n\nexport type IPersonalizationSurveyAnswersV2 = {\n\tversion: 'v2';\n\tautomationGoal?: string | null;\n\tcodingSkill?: string | null;\n\tcompanyIndustryExtended?: string[] | null;\n\tcompanySize?: string | null;\n\tcompanyType?: string | null;\n\tcustomerType?: string | null;\n\tmspFocus?: string[] | null;\n\tmspFocusOther?: string | null;\n\totherAutomationGoal?: string | null;\n\totherCompanyIndustryExtended?: string[] | null;\n};\n\nexport type IPersonalizationSurveyAnswersV3 = {\n\tversion: 'v3';\n\tautomationGoal?: string | null;\n\totherAutomationGoal?: string | null;\n\tcompanyIndustryExtended?: string[] | null;\n\totherCompanyIndustryExtended?: string[] | null;\n\tcompanySize?: string | null;\n\tcompanyType?: string | null;\n\tautomationGoalSm?: string[] | null;\n\tautomationGoalSmOther?: string | null;\n\tusageModes?: string[] | null;\n\temail?: string | null;\n};\n\nexport type IPersonalizationLatestVersion = IPersonalizationSurveyAnswersV4;\n\nexport type IPersonalizationSurveyVersions =\n\t| IPersonalizationSurveyAnswersV1\n\t| IPersonalizationSurveyAnswersV2\n\t| IPersonalizationSurveyAnswersV3\n\t| IPersonalizationSurveyAnswersV4;\n\nexport interface IUserResponse extends User {\n\tglobalScopes?: Scope[];\n\tpersonalizationAnswers?: IPersonalizationSurveyVersions | null;\n\tsettings?: IUserSettings | null;\n}\n\nexport interface CurrentUserResponse extends IUserResponse {\n\tfeatureFlags?: FeatureFlags;\n}\n\nexport interface IUser extends IUserResponse {\n\tisDefaultUser: boolean;\n\tisPendingUser: boolean;\n\tinviteAcceptUrl?: string;\n\tfullName?: string;\n\tcreatedAt?: string;\n\tmfaEnabled: boolean;\n\tmfaAuthenticated?: boolean;\n}\n\nexport async function loginCurrentUser(\n\tcontext: IRestApiContext,\n): Promise<CurrentUserResponse | null> {\n\treturn await makeRestApiRequest(context, 'GET', '/login');\n}\n\nexport async function login(\n\tcontext: IRestApiContext,\n\tparams: LoginRequestDto,\n): Promise<CurrentUserResponse> {\n\treturn await makeRestApiRequest(context, 'POST', '/login', params);\n}\n\nexport async function logout(context: IRestApiContext): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/logout');\n}\n\nexport async function setupOwner(\n\tcontext: IRestApiContext,\n\tparams: { firstName: string; lastName: string; email: string; password: string },\n): Promise<CurrentUserResponse> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/owner/setup',\n\t\tparams as unknown as IDataObject,\n\t);\n}\n\nexport async function validateSignupToken(\n\tcontext: IRestApiContext,\n\tparams: { inviterId: string; inviteeId: string },\n): Promise<{ inviter: { firstName: string; lastName: string } }> {\n\treturn await makeRestApiRequest(context, 'GET', '/resolve-signup-token', params);\n}\n\nexport async function signup(\n\tcontext: IRestApiContext,\n\tparams: {\n\t\tinviterId: string;\n\t\tinviteeId: string;\n\t\tfirstName: string;\n\t\tlastName: string;\n\t\tpassword: string;\n\t},\n): Promise<CurrentUserResponse> {\n\tconst { inviteeId, ...props } = params;\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/users/${params.inviteeId}`,\n\t\tprops as unknown as IDataObject,\n\t);\n}\n\nexport async function sendForgotPasswordEmail(\n\tcontext: IRestApiContext,\n\tparams: { email: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/forgot-password', params);\n}\n\nexport async function validatePasswordToken(\n\tcontext: IRestApiContext,\n\tparams: { token: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'GET', '/resolve-password-token', params);\n}\n\nexport async function changePassword(\n\tcontext: IRestApiContext,\n\tparams: { token: string; password: string; mfaCode?: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/change-password', params);\n}\n\nexport async function updateCurrentUser(\n\tcontext: IRestApiContext,\n\tparams: UserUpdateRequestDto,\n): Promise<IUserResponse> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me', params);\n}\n\nexport async function updateCurrentUserSettings(\n\tcontext: IRestApiContext,\n\tsettings: SettingsUpdateRequestDto,\n): Promise<IUserSettings> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me/settings', settings);\n}\n\nexport async function updateOtherUserSettings(\n\tcontext: IRestApiContext,\n\tuserId: string,\n\tsettings: SettingsUpdateRequestDto,\n): Promise<IUserSettings> {\n\treturn await makeRestApiRequest(context, 'PATCH', `/users/${userId}/settings`, settings);\n}\n\nexport async function updateCurrentUserPassword(\n\tcontext: IRestApiContext,\n\tparams: PasswordUpdateRequestDto,\n): Promise<void> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me/password', params);\n}\n\nexport async function deleteUser(\n\tcontext: IRestApiContext,\n\t{ id, transferId }: { id: string; transferId?: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'DELETE', `/users/${id}`, transferId ? { transferId } : {});\n}\n\nexport async function getUsers(\n\tcontext: IRestApiContext,\n\tfilter?: UsersListFilterDto,\n): Promise<UsersList> {\n\treturn await makeRestApiRequest(context, 'GET', '/users', filter);\n}\n\nexport async function getInviteLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'GET', `/users/${id}/invite-link`);\n}\n\nexport async function getPasswordResetLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'GET', `/users/${id}/password-reset-link`);\n}\n\nexport async function submitPersonalizationSurvey(\n\tcontext: IRestApiContext,\n\tparams: IPersonalizationLatestVersion,\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/me/survey', params as unknown as IDataObject);\n}\n\nexport interface UpdateGlobalRolePayload {\n\tid: string;\n\tnewRoleName: Role;\n}\n\nexport async function updateGlobalRole(\n\tcontext: IRestApiContext,\n\t{ id, newRoleName }: UpdateGlobalRolePayload,\n): Promise<IUserResponse> {\n\treturn await makeRestApiRequest(context, 'PATCH', `/users/${id}/role`, { newRoleName });\n}\n"],"mappings":";;;;;AAsFA,eAAsB,iBACrB,SACsC;AACtC,SAAO,MAAM,mBAAmB,SAAS,OAAO,QAAQ;AACzD;AAEA,eAAsB,MACrB,SACA,QAC+B;AAC/B,SAAO,MAAM,mBAAmB,SAAS,QAAQ,UAAU,MAAM;AAClE;AAEA,eAAsB,OAAO,SAAyC;AACrE,QAAM,mBAAmB,SAAS,QAAQ,SAAS;AACpD;AAEA,eAAsB,WACrB,SACA,QAC+B;AAC/B,SAAO,MAAM;AAAA,IACZ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AACD;AAEA,eAAsB,oBACrB,SACA,QACgE;AAChE,SAAO,MAAM,mBAAmB,SAAS,OAAO,yBAAyB,MAAM;AAChF;AAEA,eAAsB,OACrB,SACA,QAO+B;AAC/B,QAAM,EAAE,WAAW,GAAG,MAAM,IAAI;AAChC,SAAO,MAAM;AAAA,IACZ;AAAA,IACA;AAAA,IACA,UAAU,OAAO,SAAS;AAAA,IAC1B;AAAA,EACD;AACD;AAEA,eAAsB,wBACrB,SACA,QACgB;AAChB,QAAM,mBAAmB,SAAS,QAAQ,oBAAoB,MAAM;AACrE;AAEA,eAAsB,sBACrB,SACA,QACgB;AAChB,QAAM,mBAAmB,SAAS,OAAO,2BAA2B,MAAM;AAC3E;AAEA,eAAsB,eACrB,SACA,QACgB;AAChB,QAAM,mBAAmB,SAAS,QAAQ,oBAAoB,MAAM;AACrE;AAEA,eAAsB,kBACrB,SACA,QACyB;AACzB,SAAO,MAAM,mBAAmB,SAAS,SAAS,OAAO,MAAM;AAChE;AAEA,eAAsB,0BACrB,SACA,UACyB;AACzB,SAAO,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,QAAQ;AAC3E;AAEA,eAAsB,wBACrB,SACA,QACA,UACyB;AACzB,SAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,MAAM,aAAa,QAAQ;AACxF;AAEA,eAAsB,0BACrB,SACA,QACgB;AAChB,SAAO,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,MAAM;AACzE;AAEA,eAAsB,WACrB,SACA,EAAE,IAAI,WAAW,GACD;AAChB,QAAM,mBAAmB,SAAS,UAAU,UAAU,EAAE,IAAI,aAAa,EAAE,WAAW,IAAI,CAAC,CAAC;AAC7F;AAEA,eAAsB,SACrB,SACA,QACqB;AACrB,SAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,MAAM;AACjE;AAEA,eAAsB,cACrB,SACA,EAAE,GAAG,GACuB;AAC5B,SAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,EAAE,cAAc;AAC3E;AAEA,eAAsB,qBACrB,SACA,EAAE,GAAG,GACuB;AAC5B,SAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,EAAE,sBAAsB;AACnF;AAEA,eAAsB,4BACrB,SACA,QACgB;AAChB,QAAM,mBAAmB,SAAS,QAAQ,cAAc,MAAgC;AACzF;AAOA,eAAsB,iBACrB,SACA,EAAE,IAAI,YAAY,GACO;AACzB,SAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;AACvF;","names":[]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunk76QO7IXKcjs = require('./chunk-76QO7IXK.cjs');
|
|
4
|
+
|
|
5
|
+
// src/api/users.ts
|
|
6
|
+
async function loginCurrentUser(context) {
|
|
7
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "GET", "/login");
|
|
8
|
+
}
|
|
9
|
+
async function login(context, params) {
|
|
10
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "POST", "/login", params);
|
|
11
|
+
}
|
|
12
|
+
async function logout(context) {
|
|
13
|
+
await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "POST", "/logout");
|
|
14
|
+
}
|
|
15
|
+
async function setupOwner(context, params) {
|
|
16
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0,
|
|
17
|
+
context,
|
|
18
|
+
"POST",
|
|
19
|
+
"/owner/setup",
|
|
20
|
+
params
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
async function validateSignupToken(context, params) {
|
|
24
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "GET", "/resolve-signup-token", params);
|
|
25
|
+
}
|
|
26
|
+
async function signup(context, params) {
|
|
27
|
+
const { inviteeId, ...props } = params;
|
|
28
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0,
|
|
29
|
+
context,
|
|
30
|
+
"POST",
|
|
31
|
+
`/users/${params.inviteeId}`,
|
|
32
|
+
props
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
async function sendForgotPasswordEmail(context, params) {
|
|
36
|
+
await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "POST", "/forgot-password", params);
|
|
37
|
+
}
|
|
38
|
+
async function validatePasswordToken(context, params) {
|
|
39
|
+
await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "GET", "/resolve-password-token", params);
|
|
40
|
+
}
|
|
41
|
+
async function changePassword(context, params) {
|
|
42
|
+
await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "POST", "/change-password", params);
|
|
43
|
+
}
|
|
44
|
+
async function updateCurrentUser(context, params) {
|
|
45
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "PATCH", "/me", params);
|
|
46
|
+
}
|
|
47
|
+
async function updateCurrentUserSettings(context, settings) {
|
|
48
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "PATCH", "/me/settings", settings);
|
|
49
|
+
}
|
|
50
|
+
async function updateOtherUserSettings(context, userId, settings) {
|
|
51
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "PATCH", `/users/${userId}/settings`, settings);
|
|
52
|
+
}
|
|
53
|
+
async function updateCurrentUserPassword(context, params) {
|
|
54
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "PATCH", "/me/password", params);
|
|
55
|
+
}
|
|
56
|
+
async function deleteUser(context, { id, transferId }) {
|
|
57
|
+
await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "DELETE", `/users/${id}`, transferId ? { transferId } : {});
|
|
58
|
+
}
|
|
59
|
+
async function getUsers(context, filter) {
|
|
60
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "GET", "/users", filter);
|
|
61
|
+
}
|
|
62
|
+
async function getInviteLink(context, { id }) {
|
|
63
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "GET", `/users/${id}/invite-link`);
|
|
64
|
+
}
|
|
65
|
+
async function getPasswordResetLink(context, { id }) {
|
|
66
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "GET", `/users/${id}/password-reset-link`);
|
|
67
|
+
}
|
|
68
|
+
async function submitPersonalizationSurvey(context, params) {
|
|
69
|
+
await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "POST", "/me/survey", params);
|
|
70
|
+
}
|
|
71
|
+
async function updateGlobalRole(context, { id, newRoleName }) {
|
|
72
|
+
return await _chunk76QO7IXKcjs.makeRestApiRequest.call(void 0, context, "PATCH", `/users/${id}/role`, { newRoleName });
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
exports.loginCurrentUser = loginCurrentUser; exports.login = login; exports.logout = logout; exports.setupOwner = setupOwner; exports.validateSignupToken = validateSignupToken; exports.signup = signup; exports.sendForgotPasswordEmail = sendForgotPasswordEmail; exports.validatePasswordToken = validatePasswordToken; exports.changePassword = changePassword; exports.updateCurrentUser = updateCurrentUser; exports.updateCurrentUserSettings = updateCurrentUserSettings; exports.updateOtherUserSettings = updateOtherUserSettings; exports.updateCurrentUserPassword = updateCurrentUserPassword; exports.deleteUser = deleteUser; exports.getUsers = getUsers; exports.getInviteLink = getInviteLink; exports.getPasswordResetLink = getPasswordResetLink; exports.submitPersonalizationSurvey = submitPersonalizationSurvey; exports.updateGlobalRole = updateGlobalRole;
|
|
96
|
+
//# sourceMappingURL=chunk-HZTJD4WD.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-HZTJD4WD.cjs","../src/api/users.ts"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B;AACA;ACkFA,MAAA,SAAsB,gBAAA,CACrB,OAAA,EACsC;AACtC,EAAA,OAAO,MAAM,kDAAA,OAAmB,EAAS,KAAA,EAAO,QAAQ,CAAA;AACzD;AAEA,MAAA,SAAsB,KAAA,CACrB,OAAA,EACA,MAAA,EAC+B;AAC/B,EAAA,OAAO,MAAM,kDAAA,OAAmB,EAAS,MAAA,EAAQ,QAAA,EAAU,MAAM,CAAA;AAClE;AAEA,MAAA,SAAsB,MAAA,CAAO,OAAA,EAAyC;AACrE,EAAA,MAAM,kDAAA,OAAmB,EAAS,MAAA,EAAQ,SAAS,CAAA;AACpD;AAEA,MAAA,SAAsB,UAAA,CACrB,OAAA,EACA,MAAA,EAC+B;AAC/B,EAAA,OAAO,MAAM,kDAAA;AAAA,IACZ,OAAA;AAAA,IACA,MAAA;AAAA,IACA,cAAA;AAAA,IACA;AAAA,EACD,CAAA;AACD;AAEA,MAAA,SAAsB,mBAAA,CACrB,OAAA,EACA,MAAA,EACgE;AAChE,EAAA,OAAO,MAAM,kDAAA,OAAmB,EAAS,KAAA,EAAO,uBAAA,EAAyB,MAAM,CAAA;AAChF;AAEA,MAAA,SAAsB,MAAA,CACrB,OAAA,EACA,MAAA,EAO+B;AAC/B,EAAA,MAAM,EAAE,SAAA,EAAW,GAAG,MAAM,EAAA,EAAI,MAAA;AAChC,EAAA,OAAO,MAAM,kDAAA;AAAA,IACZ,OAAA;AAAA,IACA,MAAA;AAAA,IACA,CAAA,OAAA,EAAU,MAAA,CAAO,SAAS,CAAA,CAAA;AAC1B,IAAA;AACD,EAAA;AACD;AAEsB;AAII,EAAA;AAC1B;AAEsB;AAII,EAAA;AAC1B;AAGC;AAGyB,EAAA;AAC1B;AAEsB;AAIR,EAAA;AACd;AAEsB;AAIR,EAAA;AACd;AAEsB;AAKR,EAAA;AACd;AAEsB;AAIR,EAAA;AACd;AAGC;AAGyB,EAAA;AAC1B;AAGC;AAGa,EAAA;AACd;AAGC;AAGa,EAAA;AACd;AAEsB;AAIR,EAAA;AACd;AAEsB;AAII,EAAA;AAC1B;AAOsB;AAIR,EAAA;AACd;ADnK+B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-HZTJD4WD.cjs","sourcesContent":[null,"import type {\n\tLoginRequestDto,\n\tPasswordUpdateRequestDto,\n\tSettingsUpdateRequestDto,\n\tUsersListFilterDto,\n\tUserUpdateRequestDto,\n\tRole,\n\tUsersList,\n\tUser,\n} from '@n8n/api-types';\nimport type { Scope } from '@n8n/permissions';\nimport type {\n\tFeatureFlags,\n\tIDataObject,\n\tIPersonalizationSurveyAnswersV4,\n\tIUserSettings,\n} from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type IPersonalizationSurveyAnswersV1 = {\n\tcodingSkill?: string | null;\n\tcompanyIndustry?: string[] | null;\n\tcompanySize?: string | null;\n\totherCompanyIndustry?: string | null;\n\totherWorkArea?: string | null;\n\tworkArea?: string[] | string | null;\n};\n\nexport type IPersonalizationSurveyAnswersV2 = {\n\tversion: 'v2';\n\tautomationGoal?: string | null;\n\tcodingSkill?: string | null;\n\tcompanyIndustryExtended?: string[] | null;\n\tcompanySize?: string | null;\n\tcompanyType?: string | null;\n\tcustomerType?: string | null;\n\tmspFocus?: string[] | null;\n\tmspFocusOther?: string | null;\n\totherAutomationGoal?: string | null;\n\totherCompanyIndustryExtended?: string[] | null;\n};\n\nexport type IPersonalizationSurveyAnswersV3 = {\n\tversion: 'v3';\n\tautomationGoal?: string | null;\n\totherAutomationGoal?: string | null;\n\tcompanyIndustryExtended?: string[] | null;\n\totherCompanyIndustryExtended?: string[] | null;\n\tcompanySize?: string | null;\n\tcompanyType?: string | null;\n\tautomationGoalSm?: string[] | null;\n\tautomationGoalSmOther?: string | null;\n\tusageModes?: string[] | null;\n\temail?: string | null;\n};\n\nexport type IPersonalizationLatestVersion = IPersonalizationSurveyAnswersV4;\n\nexport type IPersonalizationSurveyVersions =\n\t| IPersonalizationSurveyAnswersV1\n\t| IPersonalizationSurveyAnswersV2\n\t| IPersonalizationSurveyAnswersV3\n\t| IPersonalizationSurveyAnswersV4;\n\nexport interface IUserResponse extends User {\n\tglobalScopes?: Scope[];\n\tpersonalizationAnswers?: IPersonalizationSurveyVersions | null;\n\tsettings?: IUserSettings | null;\n}\n\nexport interface CurrentUserResponse extends IUserResponse {\n\tfeatureFlags?: FeatureFlags;\n}\n\nexport interface IUser extends IUserResponse {\n\tisDefaultUser: boolean;\n\tisPendingUser: boolean;\n\tinviteAcceptUrl?: string;\n\tfullName?: string;\n\tcreatedAt?: string;\n\tmfaEnabled: boolean;\n\tmfaAuthenticated?: boolean;\n}\n\nexport async function loginCurrentUser(\n\tcontext: IRestApiContext,\n): Promise<CurrentUserResponse | null> {\n\treturn await makeRestApiRequest(context, 'GET', '/login');\n}\n\nexport async function login(\n\tcontext: IRestApiContext,\n\tparams: LoginRequestDto,\n): Promise<CurrentUserResponse> {\n\treturn await makeRestApiRequest(context, 'POST', '/login', params);\n}\n\nexport async function logout(context: IRestApiContext): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/logout');\n}\n\nexport async function setupOwner(\n\tcontext: IRestApiContext,\n\tparams: { firstName: string; lastName: string; email: string; password: string },\n): Promise<CurrentUserResponse> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/owner/setup',\n\t\tparams as unknown as IDataObject,\n\t);\n}\n\nexport async function validateSignupToken(\n\tcontext: IRestApiContext,\n\tparams: { inviterId: string; inviteeId: string },\n): Promise<{ inviter: { firstName: string; lastName: string } }> {\n\treturn await makeRestApiRequest(context, 'GET', '/resolve-signup-token', params);\n}\n\nexport async function signup(\n\tcontext: IRestApiContext,\n\tparams: {\n\t\tinviterId: string;\n\t\tinviteeId: string;\n\t\tfirstName: string;\n\t\tlastName: string;\n\t\tpassword: string;\n\t},\n): Promise<CurrentUserResponse> {\n\tconst { inviteeId, ...props } = params;\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/users/${params.inviteeId}`,\n\t\tprops as unknown as IDataObject,\n\t);\n}\n\nexport async function sendForgotPasswordEmail(\n\tcontext: IRestApiContext,\n\tparams: { email: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/forgot-password', params);\n}\n\nexport async function validatePasswordToken(\n\tcontext: IRestApiContext,\n\tparams: { token: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'GET', '/resolve-password-token', params);\n}\n\nexport async function changePassword(\n\tcontext: IRestApiContext,\n\tparams: { token: string; password: string; mfaCode?: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/change-password', params);\n}\n\nexport async function updateCurrentUser(\n\tcontext: IRestApiContext,\n\tparams: UserUpdateRequestDto,\n): Promise<IUserResponse> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me', params);\n}\n\nexport async function updateCurrentUserSettings(\n\tcontext: IRestApiContext,\n\tsettings: SettingsUpdateRequestDto,\n): Promise<IUserSettings> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me/settings', settings);\n}\n\nexport async function updateOtherUserSettings(\n\tcontext: IRestApiContext,\n\tuserId: string,\n\tsettings: SettingsUpdateRequestDto,\n): Promise<IUserSettings> {\n\treturn await makeRestApiRequest(context, 'PATCH', `/users/${userId}/settings`, settings);\n}\n\nexport async function updateCurrentUserPassword(\n\tcontext: IRestApiContext,\n\tparams: PasswordUpdateRequestDto,\n): Promise<void> {\n\treturn await makeRestApiRequest(context, 'PATCH', '/me/password', params);\n}\n\nexport async function deleteUser(\n\tcontext: IRestApiContext,\n\t{ id, transferId }: { id: string; transferId?: string },\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'DELETE', `/users/${id}`, transferId ? { transferId } : {});\n}\n\nexport async function getUsers(\n\tcontext: IRestApiContext,\n\tfilter?: UsersListFilterDto,\n): Promise<UsersList> {\n\treturn await makeRestApiRequest(context, 'GET', '/users', filter);\n}\n\nexport async function getInviteLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'GET', `/users/${id}/invite-link`);\n}\n\nexport async function getPasswordResetLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'GET', `/users/${id}/password-reset-link`);\n}\n\nexport async function submitPersonalizationSurvey(\n\tcontext: IRestApiContext,\n\tparams: IPersonalizationLatestVersion,\n): Promise<void> {\n\tawait makeRestApiRequest(context, 'POST', '/me/survey', params as unknown as IDataObject);\n}\n\nexport interface UpdateGlobalRolePayload {\n\tid: string;\n\tnewRoleName: Role;\n}\n\nexport async function updateGlobalRole(\n\tcontext: IRestApiContext,\n\t{ id, newRoleName }: UpdateGlobalRolePayload,\n): Promise<IUserResponse> {\n\treturn await makeRestApiRequest(context, 'PATCH', `/users/${id}/role`, { newRoleName });\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=chunk-UJOGK5LF.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-UJOGK5LF.cjs"],"names":[],"mappings":"AAAA","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/chunk-UJOGK5LF.cjs"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-UJOGK5LF.cjs');
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var _chunkHZTJD4WDcjs = require('./chunk-HZTJD4WD.cjs');
|
|
2
23
|
|
|
3
24
|
|
|
4
25
|
|
|
@@ -215,5 +236,24 @@ var _chunk76QO7IXKcjs = require('./chunk-76QO7IXK.cjs');
|
|
|
215
236
|
|
|
216
237
|
|
|
217
238
|
|
|
218
|
-
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
exports.MfaRequiredError = _chunk76QO7IXKcjs.MfaRequiredError; exports.NO_NETWORK_ERROR_CODE = _chunk76QO7IXKcjs.NO_NETWORK_ERROR_CODE; exports.ResponseError = _chunk76QO7IXKcjs.ResponseError; exports.STREAM_SEPERATOR = _chunk76QO7IXKcjs.STREAM_SEPERATOR; exports.canEnableMFA = _chunk6ZTX4I3Gcjs.canEnableMFA; exports.changePassword = _chunkHZTJD4WDcjs.changePassword; exports.createApiKey = _chunkCK22VKYYcjs.createApiKey; exports.deleteApiKey = _chunkCK22VKYYcjs.deleteApiKey; exports.deleteDestinationFromDb = _chunkTWENYPGKcjs.deleteDestinationFromDb; exports.deleteUser = _chunkHZTJD4WDcjs.deleteUser; exports.disableMfa = _chunk6ZTX4I3Gcjs.disableMfa; exports.dismissBannerPermanently = _chunkLPNDZTUAcjs.dismissBannerPermanently; exports.enableMfa = _chunk6ZTX4I3Gcjs.enableMfa; exports.fetchCommunityNodeAttributes = _chunkICKNSBDIcjs.fetchCommunityNodeAttributes; exports.fetchCommunityNodeTypes = _chunkICKNSBDIcjs.fetchCommunityNodeTypes; exports.findWebhook = _chunk6EOXPQPAcjs.findWebhook; exports.get = _chunk76QO7IXKcjs.get; exports.getAdminPanelLoginCode = _chunk3IH3LKGTcjs.getAdminPanelLoginCode; exports.getApiKeyScopes = _chunkCK22VKYYcjs.getApiKeyScopes; exports.getApiKeys = _chunkCK22VKYYcjs.getApiKeys; exports.getAvailableCommunityPackageCount = _chunkUJI6HACTcjs.getAvailableCommunityPackageCount; exports.getBecomeCreatorCta = _chunkTG35HP5Ccjs.getBecomeCreatorCta; exports.getCategories = _chunkE7DC7LJEcjs.getCategories; exports.getCloudUserInfo = _chunk3IH3LKGTcjs.getCloudUserInfo; exports.getCollectionById = _chunkE7DC7LJEcjs.getCollectionById; exports.getCollections = _chunkE7DC7LJEcjs.getCollections; exports.getCurrentPlan = _chunk3IH3LKGTcjs.getCurrentPlan; exports.getCurrentUsage = _chunk3IH3LKGTcjs.getCurrentUsage; exports.getDestinationsFromBackend = _chunkTWENYPGKcjs.getDestinationsFromBackend; exports.getEventNamesFromBackend = _chunkTWENYPGKcjs.getEventNamesFromBackend; exports.getFullApiResponse = _chunk76QO7IXKcjs.getFullApiResponse; exports.getInstalledCommunityNodes = _chunkUJI6HACTcjs.getInstalledCommunityNodes; exports.getInviteLink = _chunkHZTJD4WDcjs.getInviteLink; exports.getLdapConfig = _chunkFQANWCTGcjs.getLdapConfig; exports.getLdapSynchronizations = _chunkFQANWCTGcjs.getLdapSynchronizations; exports.getLocalResourceMapperFields = _chunkICKNSBDIcjs.getLocalResourceMapperFields; exports.getMfaQR = _chunk6ZTX4I3Gcjs.getMfaQR; exports.getModuleSettings = _chunkU3YVBLF7cjs.getModuleSettings; exports.getNextVersions = _chunkCG7MWVBXcjs.getNextVersions; exports.getNodeParameterActionResult = _chunkICKNSBDIcjs.getNodeParameterActionResult; exports.getNodeParameterOptions = _chunkICKNSBDIcjs.getNodeParameterOptions; exports.getNodeTranslationHeaders = _chunkICKNSBDIcjs.getNodeTranslationHeaders; exports.getNodeTypes = _chunkICKNSBDIcjs.getNodeTypes; exports.getNodesInformation = _chunkICKNSBDIcjs.getNodesInformation; exports.getOidcConfig = _chunkHVKVUYHGcjs.getOidcConfig; exports.getPasswordResetLink = _chunkHZTJD4WDcjs.getPasswordResetLink; exports.getPromptsData = _chunkTKGDZLC6cjs.getPromptsData; exports.getResourceLocatorResults = _chunkICKNSBDIcjs.getResourceLocatorResults; exports.getResourceMapperFields = _chunkICKNSBDIcjs.getResourceMapperFields; exports.getRoles = _chunk2MKCR5R2cjs.getRoles; exports.getSamlConfig = _chunkHVKVUYHGcjs.getSamlConfig; exports.getSamlMetadata = _chunkHVKVUYHGcjs.getSamlMetadata; exports.getSettings = _chunkYLVJV4ATcjs.getSettings; exports.getTemplateById = _chunkE7DC7LJEcjs.getTemplateById; exports.getUsers = _chunkHZTJD4WDcjs.getUsers; exports.getWhatsNewSection = _chunkCG7MWVBXcjs.getWhatsNewSection; exports.getWorkflowHistory = _chunkBWR373PPcjs.getWorkflowHistory; exports.getWorkflowTemplate = _chunkE7DC7LJEcjs.getWorkflowTemplate; exports.getWorkflowVersion = _chunkBWR373PPcjs.getWorkflowVersion; exports.getWorkflows = _chunkE7DC7LJEcjs.getWorkflows; exports.hasDestinationId = _chunkTWENYPGKcjs.hasDestinationId; exports.initOidcLogin = _chunkHVKVUYHGcjs.initOidcLogin; exports.initSSO = _chunkHVKVUYHGcjs.initSSO; exports.installNewPackage = _chunkUJI6HACTcjs.installNewPackage; exports.login = _chunkHZTJD4WDcjs.login; exports.loginCurrentUser = _chunkHZTJD4WDcjs.loginCurrentUser; exports.logout = _chunkHZTJD4WDcjs.logout; exports.makeRestApiRequest = _chunk76QO7IXKcjs.makeRestApiRequest; exports.patch = _chunk76QO7IXKcjs.patch; exports.post = _chunk76QO7IXKcjs.post; exports.request = _chunk76QO7IXKcjs.request; exports.runLdapSync = _chunkFQANWCTGcjs.runLdapSync; exports.saveDestinationToDb = _chunkTWENYPGKcjs.saveDestinationToDb; exports.saveOidcConfig = _chunkHVKVUYHGcjs.saveOidcConfig; exports.saveSamlConfig = _chunkHVKVUYHGcjs.saveSamlConfig; exports.sendConfirmationEmail = _chunk3IH3LKGTcjs.sendConfirmationEmail; exports.sendForgotPasswordEmail = _chunkHZTJD4WDcjs.sendForgotPasswordEmail; exports.sendGetWorkerStatus = _chunkLJBEN4XScjs.sendGetWorkerStatus; exports.sendTestMessageToDestination = _chunkTWENYPGKcjs.sendTestMessageToDestination; exports.sessionStarted = _chunkVFQIXX6Ccjs.sessionStarted; exports.setupOwner = _chunkHZTJD4WDcjs.setupOwner; exports.signup = _chunkHZTJD4WDcjs.signup; exports.streamRequest = _chunk76QO7IXKcjs.streamRequest; exports.submitContactInfo = _chunkTKGDZLC6cjs.submitContactInfo; exports.submitPersonalizationSurvey = _chunkHZTJD4WDcjs.submitPersonalizationSurvey; exports.testHealthEndpoint = _chunkE7DC7LJEcjs.testHealthEndpoint; exports.testLdapConnection = _chunkFQANWCTGcjs.testLdapConnection; exports.testSamlConfig = _chunkHVKVUYHGcjs.testSamlConfig; exports.toggleSamlConfig = _chunkHVKVUYHGcjs.toggleSamlConfig; exports.uninstallPackage = _chunkUJI6HACTcjs.uninstallPackage; exports.updateApiKey = _chunkCK22VKYYcjs.updateApiKey; exports.updateCurrentUser = _chunkHZTJD4WDcjs.updateCurrentUser; exports.updateCurrentUserPassword = _chunkHZTJD4WDcjs.updateCurrentUserPassword; exports.updateCurrentUserSettings = _chunkHZTJD4WDcjs.updateCurrentUserSettings; exports.updateEnforceMfa = _chunk6ZTX4I3Gcjs.updateEnforceMfa; exports.updateGlobalRole = _chunkHZTJD4WDcjs.updateGlobalRole; exports.updateLdapConfig = _chunkFQANWCTGcjs.updateLdapConfig; exports.updateNpsSurveyState = _chunkUUMSEI6Ocjs.updateNpsSurveyState; exports.updateOtherUserSettings = _chunkHZTJD4WDcjs.updateOtherUserSettings; exports.updatePackage = _chunkUJI6HACTcjs.updatePackage; exports.validatePasswordToken = _chunkHZTJD4WDcjs.validatePasswordToken; exports.validateSignupToken = _chunkHZTJD4WDcjs.validateSignupToken; exports.verifyMfaCode = _chunk6ZTX4I3Gcjs.verifyMfaCode;
|
|
219
259
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"],"names":[],"mappings":"AAAA,yGAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"],"names":[],"mappings":"AAAA,yGAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,wDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,05MAAC","file":"/home/runner/work/n8n/n8n/packages/frontend/@n8n/rest-api-client/dist/index.cjs"}
|
package/dist/index.d.cts
CHANGED
|
@@ -17,6 +17,7 @@ export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMeta
|
|
|
17
17
|
export { ITag } from './api/tags.cjs';
|
|
18
18
|
export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './api/templates.cjs';
|
|
19
19
|
export { dismissBannerPermanently } from './api/ui.cjs';
|
|
20
|
+
export { CurrentUserResponse, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IUser, IUserResponse, UpdateGlobalRolePayload, changePassword, deleteUser, getInviteLink, getPasswordResetLink, getUsers, login, loginCurrentUser, logout, sendForgotPasswordEmail, setupOwner, signup, submitPersonalizationSurvey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateGlobalRole, updateOtherUserSettings, validatePasswordToken, validateSignupToken } from './api/users.cjs';
|
|
20
21
|
export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './api/versions.cjs';
|
|
21
22
|
export { findWebhook } from './api/webhooks.cjs';
|
|
22
23
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './api/workflowHistory.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMeta
|
|
|
17
17
|
export { ITag } from './api/tags.js';
|
|
18
18
|
export { ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, TemplateSearchFacet, getCategories, getCollectionById, getCollections, getTemplateById, getWorkflowTemplate, getWorkflows, testHealthEndpoint } from './api/templates.js';
|
|
19
19
|
export { dismissBannerPermanently } from './api/ui.js';
|
|
20
|
+
export { CurrentUserResponse, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IUser, IUserResponse, UpdateGlobalRolePayload, changePassword, deleteUser, getInviteLink, getPasswordResetLink, getUsers, login, loginCurrentUser, logout, sendForgotPasswordEmail, setupOwner, signup, submitPersonalizationSurvey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateGlobalRole, updateOtherUserSettings, validatePasswordToken, validateSignupToken } from './api/users.js';
|
|
20
21
|
export { Version, VersionNode, WhatsNewArticle, WhatsNewSection, getNextVersions, getWhatsNewSection } from './api/versions.js';
|
|
21
22
|
export { findWebhook } from './api/webhooks.js';
|
|
22
23
|
export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion } from './api/workflowHistory.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-54IORXZH.js";
|
|
2
|
+
import {
|
|
3
|
+
changePassword,
|
|
4
|
+
deleteUser,
|
|
5
|
+
getInviteLink,
|
|
6
|
+
getPasswordResetLink,
|
|
7
|
+
getUsers,
|
|
8
|
+
login,
|
|
9
|
+
loginCurrentUser,
|
|
10
|
+
logout,
|
|
11
|
+
sendForgotPasswordEmail,
|
|
12
|
+
setupOwner,
|
|
13
|
+
signup,
|
|
14
|
+
submitPersonalizationSurvey,
|
|
15
|
+
updateCurrentUser,
|
|
16
|
+
updateCurrentUserPassword,
|
|
17
|
+
updateCurrentUserSettings,
|
|
18
|
+
updateGlobalRole,
|
|
19
|
+
updateOtherUserSettings,
|
|
20
|
+
validatePasswordToken,
|
|
21
|
+
validateSignupToken
|
|
22
|
+
} from "./chunk-G754AW6V.js";
|
|
2
23
|
import {
|
|
3
24
|
getNextVersions,
|
|
4
25
|
getWhatsNewSection
|
|
@@ -136,9 +157,11 @@ export {
|
|
|
136
157
|
ResponseError,
|
|
137
158
|
STREAM_SEPERATOR,
|
|
138
159
|
canEnableMFA,
|
|
160
|
+
changePassword,
|
|
139
161
|
createApiKey,
|
|
140
162
|
deleteApiKey,
|
|
141
163
|
deleteDestinationFromDb,
|
|
164
|
+
deleteUser,
|
|
142
165
|
disableMfa,
|
|
143
166
|
dismissBannerPermanently,
|
|
144
167
|
enableMfa,
|
|
@@ -161,6 +184,7 @@ export {
|
|
|
161
184
|
getEventNamesFromBackend,
|
|
162
185
|
getFullApiResponse,
|
|
163
186
|
getInstalledCommunityNodes,
|
|
187
|
+
getInviteLink,
|
|
164
188
|
getLdapConfig,
|
|
165
189
|
getLdapSynchronizations,
|
|
166
190
|
getLocalResourceMapperFields,
|
|
@@ -173,6 +197,7 @@ export {
|
|
|
173
197
|
getNodeTypes,
|
|
174
198
|
getNodesInformation,
|
|
175
199
|
getOidcConfig,
|
|
200
|
+
getPasswordResetLink,
|
|
176
201
|
getPromptsData,
|
|
177
202
|
getResourceLocatorResults,
|
|
178
203
|
getResourceMapperFields,
|
|
@@ -181,6 +206,7 @@ export {
|
|
|
181
206
|
getSamlMetadata,
|
|
182
207
|
getSettings,
|
|
183
208
|
getTemplateById,
|
|
209
|
+
getUsers,
|
|
184
210
|
getWhatsNewSection,
|
|
185
211
|
getWorkflowHistory,
|
|
186
212
|
getWorkflowTemplate,
|
|
@@ -190,6 +216,9 @@ export {
|
|
|
190
216
|
initOidcLogin,
|
|
191
217
|
initSSO,
|
|
192
218
|
installNewPackage,
|
|
219
|
+
login,
|
|
220
|
+
loginCurrentUser,
|
|
221
|
+
logout,
|
|
193
222
|
makeRestApiRequest,
|
|
194
223
|
patch,
|
|
195
224
|
post,
|
|
@@ -199,21 +228,32 @@ export {
|
|
|
199
228
|
saveOidcConfig,
|
|
200
229
|
saveSamlConfig,
|
|
201
230
|
sendConfirmationEmail,
|
|
231
|
+
sendForgotPasswordEmail,
|
|
202
232
|
sendGetWorkerStatus,
|
|
203
233
|
sendTestMessageToDestination,
|
|
204
234
|
sessionStarted,
|
|
235
|
+
setupOwner,
|
|
236
|
+
signup,
|
|
205
237
|
streamRequest,
|
|
206
238
|
submitContactInfo,
|
|
239
|
+
submitPersonalizationSurvey,
|
|
207
240
|
testHealthEndpoint,
|
|
208
241
|
testLdapConnection,
|
|
209
242
|
testSamlConfig,
|
|
210
243
|
toggleSamlConfig,
|
|
211
244
|
uninstallPackage,
|
|
212
245
|
updateApiKey,
|
|
246
|
+
updateCurrentUser,
|
|
247
|
+
updateCurrentUserPassword,
|
|
248
|
+
updateCurrentUserSettings,
|
|
213
249
|
updateEnforceMfa,
|
|
250
|
+
updateGlobalRole,
|
|
214
251
|
updateLdapConfig,
|
|
215
252
|
updateNpsSurveyState,
|
|
253
|
+
updateOtherUserSettings,
|
|
216
254
|
updatePackage,
|
|
255
|
+
validatePasswordToken,
|
|
256
|
+
validateSignupToken,
|
|
217
257
|
verifyMfaCode
|
|
218
258
|
};
|
|
219
259
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/rest-api-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
7
|
+
"LICENSE_EE.md",
|
|
8
|
+
"LICENSE.md"
|
|
9
9
|
],
|
|
10
10
|
"main": "./dist/index.cjs",
|
|
11
11
|
"module": "./dist/index.js",
|
|
@@ -26,22 +26,22 @@
|
|
|
26
26
|
"js-base64": "3.7.2",
|
|
27
27
|
"axios": "1.8.3",
|
|
28
28
|
"flatted": "3.2.7",
|
|
29
|
-
"@n8n/
|
|
30
|
-
"@n8n/api-types": "0.40.2",
|
|
29
|
+
"@n8n/api-types": "0.41.0",
|
|
31
30
|
"@n8n/permissions": "0.31.0",
|
|
32
|
-
"
|
|
33
|
-
"n8n
|
|
31
|
+
"n8n-workflow": "1.104.0",
|
|
32
|
+
"@n8n/constants": "0.11.0",
|
|
33
|
+
"@n8n/utils": "1.15.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@testing-library/jest-dom": "^6.6.3",
|
|
37
37
|
"@testing-library/user-event": "^14.6.1",
|
|
38
38
|
"tsup": "^8.5.0",
|
|
39
|
-
"typescript": "5.
|
|
39
|
+
"typescript": "5.9.2",
|
|
40
40
|
"vite": "^6.3.5",
|
|
41
41
|
"vitest": "^3.1.3",
|
|
42
|
-
"@n8n/i18n": "1.10.2",
|
|
43
42
|
"@n8n/eslint-config": "0.0.1",
|
|
44
43
|
"@n8n/typescript-config": "1.3.0",
|
|
44
|
+
"@n8n/i18n": "1.11.0",
|
|
45
45
|
"@n8n/vitest-config": "1.5.0"
|
|
46
46
|
},
|
|
47
47
|
"license": "SEE LICENSE IN LICENSE.md",
|
package/dist/chunk-72B7PPKD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=chunk-72B7PPKD.js.map
|
package/dist/chunk-GLSB4GH3.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";//# sourceMappingURL=chunk-GLSB4GH3.cjs.map
|
|
File without changes
|