@n8n/rest-api-client 2.12.0 → 2.14.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/credentialResolvers.cjs +1 -0
- package/dist/api/credentialResolvers.d.cts +2 -2
- package/dist/api/credentialResolvers.d.mts +2 -2
- package/dist/api/credentialResolvers.mjs +2 -2
- package/dist/api/externalSecrets.ee.cjs +1 -0
- package/dist/api/externalSecrets.ee.d.cts +2 -2
- package/dist/api/externalSecrets.ee.d.mts +2 -2
- package/dist/api/externalSecrets.ee.mjs +2 -2
- package/dist/api/index.cjs +3 -1
- package/dist/api/index.d.cts +5 -5
- package/dist/api/index.d.mts +5 -5
- package/dist/api/index.mjs +5 -5
- package/dist/api/secretsProvider.ee.cjs +1 -0
- package/dist/api/secretsProvider.ee.d.cts +2 -2
- package/dist/api/secretsProvider.ee.d.mts +2 -2
- package/dist/api/secretsProvider.ee.mjs +2 -2
- package/dist/api/users.cjs +0 -1
- package/dist/api/users.d.cts +2 -2
- package/dist/api/users.d.mts +2 -2
- package/dist/api/users.mjs +2 -2
- package/dist/credentialResolvers.cjs +9 -0
- package/dist/credentialResolvers.cjs.map +1 -1
- package/dist/credentialResolvers.d.cts +3 -2
- package/dist/credentialResolvers.d.mts +3 -2
- package/dist/credentialResolvers.mjs +4 -1
- package/dist/credentialResolvers.mjs.map +1 -1
- package/dist/externalSecrets.ee.cjs +9 -0
- package/dist/externalSecrets.ee.cjs.map +1 -1
- package/dist/externalSecrets.ee.d.cts +6 -1
- package/dist/externalSecrets.ee.d.mts +6 -1
- package/dist/externalSecrets.ee.mjs +4 -1
- package/dist/externalSecrets.ee.mjs.map +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +5 -5
- package/dist/secretsProvider.ee.cjs +9 -0
- package/dist/secretsProvider.ee.cjs.map +1 -1
- package/dist/secretsProvider.ee.d.cts +2 -1
- package/dist/secretsProvider.ee.d.mts +2 -1
- package/dist/secretsProvider.ee.mjs +4 -1
- package/dist/secretsProvider.ee.mjs.map +1 -1
- package/dist/users.cjs +0 -10
- package/dist/users.cjs.map +1 -1
- package/dist/users.d.cts +2 -12
- package/dist/users.d.mts +2 -12
- package/dist/users.mjs +1 -5
- package/dist/users.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -53,6 +53,7 @@ exports.deleteUser = require_users.deleteUser;
|
|
|
53
53
|
exports.disableMfa = require_mfa.disableMfa;
|
|
54
54
|
exports.dismissBannerPermanently = require_ui.dismissBannerPermanently;
|
|
55
55
|
exports.enableMfa = require_mfa.enableMfa;
|
|
56
|
+
exports.enableSecretProviderConnection = require_secretsProvider_ee.enableSecretProviderConnection;
|
|
56
57
|
exports.fetchCommunityNodeAttributes = require_nodeTypes.fetchCommunityNodeAttributes;
|
|
57
58
|
exports.fetchCommunityNodeTypes = require_nodeTypes.fetchCommunityNodeTypes;
|
|
58
59
|
exports.findWebhook = require_webhooks.findWebhook;
|
|
@@ -69,6 +70,7 @@ exports.getCollectionById = require_templates.getCollectionById;
|
|
|
69
70
|
exports.getCollections = require_templates.getCollections;
|
|
70
71
|
exports.getCredentialResolver = require_credentialResolvers.getCredentialResolver;
|
|
71
72
|
exports.getCredentialResolverTypes = require_credentialResolvers.getCredentialResolverTypes;
|
|
73
|
+
exports.getCredentialResolverWorkflows = require_credentialResolvers.getCredentialResolverWorkflows;
|
|
72
74
|
exports.getCredentialResolvers = require_credentialResolvers.getCredentialResolvers;
|
|
73
75
|
exports.getCurrentPlan = require_cloudPlans.getCurrentPlan;
|
|
74
76
|
exports.getCurrentUsage = require_cloudPlans.getCurrentUsage;
|
|
@@ -152,7 +154,6 @@ exports.sendTestMessageToDestination = require_eventbus_ee.sendTestMessageToDest
|
|
|
152
154
|
exports.sendUserEvent = require_cloudPlans.sendUserEvent;
|
|
153
155
|
exports.sessionStarted = require_events.sessionStarted;
|
|
154
156
|
exports.setupOwner = require_users.setupOwner;
|
|
155
|
-
exports.signup = require_users.signup;
|
|
156
157
|
exports.streamRequest = require_utils.streamRequest;
|
|
157
158
|
exports.submitPersonalizationSurvey = require_users.submitPersonalizationSurvey;
|
|
158
159
|
exports.testExternalSecretsProviderConnection = require_externalSecrets_ee.testExternalSecretsProviderConnection;
|
|
@@ -170,6 +171,7 @@ exports.updateCurrentUser = require_users.updateCurrentUser;
|
|
|
170
171
|
exports.updateCurrentUserPassword = require_users.updateCurrentUserPassword;
|
|
171
172
|
exports.updateCurrentUserSettings = require_users.updateCurrentUserSettings;
|
|
172
173
|
exports.updateEnforceMfa = require_mfa.updateEnforceMfa;
|
|
174
|
+
exports.updateExternalSecretsSettings = require_externalSecrets_ee.updateExternalSecretsSettings;
|
|
173
175
|
exports.updateGlobalRole = require_users.updateGlobalRole;
|
|
174
176
|
exports.updateLdapConfig = require_ldap.updateLdapConfig;
|
|
175
177
|
exports.updateNpsSurveyState = require_npsSurvey.updateNpsSurveyState;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,12 +3,12 @@ import { t as updateAiUsageSettings } from "./ai-usage.cjs";
|
|
|
3
3
|
import { a as updateApiKey, i as getApiKeys, n as deleteApiKey, r as getApiKeyScopes, t as createApiKey } from "./api-keys.cjs";
|
|
4
4
|
import { a as getCloudUserInfo, c as sendConfirmationEmail, i as getAdminPanelLoginCode, l as sendUserEvent, n as DynamicNotification, o as getCurrentPlan, r as InstanceUsage, s as getCurrentUsage, t as Cloud } from "./cloudPlans.cjs";
|
|
5
5
|
import { a as updatePackage, i as uninstallPackage, n as getInstalledCommunityNodes, r as installNewPackage, t as getAvailableCommunityPackageCount } from "./communityNodes.cjs";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as getCredentialResolverWorkflows, i as getCredentialResolverTypes, n as deleteCredentialResolver, o as getCredentialResolvers, r as getCredentialResolver, s as updateCredentialResolver, t as createCredentialResolver } from "./credentialResolvers.cjs";
|
|
7
7
|
import { t as getBecomeCreatorCta } from "./ctas.cjs";
|
|
8
8
|
import { a as hasDestinationId, i as getEventNamesFromBackend, n as deleteDestinationFromDb, o as saveDestinationToDb, r as getDestinationsFromBackend, s as sendTestMessageToDestination, t as ApiMessageEventBusDestinationOptions } from "./eventbus.ee.cjs";
|
|
9
9
|
import { t as sessionStarted } from "./events.cjs";
|
|
10
|
-
import { a as getGlobalExternalSecrets, c as reloadProvider, i as getExternalSecretsProviders, l as testExternalSecretsProviderConnection, n as getExternalSecrets, o as getGlobalExternalSecretsForProject, r as getExternalSecretsProvider, s as getProjectExternalSecrets, t as connectProvider, u as
|
|
11
|
-
import { a as
|
|
10
|
+
import { a as getGlobalExternalSecrets, c as reloadProvider, d as updateProvider, i as getExternalSecretsProviders, l as testExternalSecretsProviderConnection, n as getExternalSecrets, o as getGlobalExternalSecretsForProject, r as getExternalSecretsProvider, s as getProjectExternalSecrets, t as connectProvider, u as updateExternalSecretsSettings } from "./externalSecrets.ee.cjs";
|
|
11
|
+
import { a as enableSecretProviderConnection, c as getSecretProviderConnectionByKey, d as reloadSecretProviderConnection, f as testProjectSecretProviderConnection, h as updateSecretProviderConnection, i as deleteSecretProviderConnection, l as getSecretProviderConnections, m as updateProjectSecretProviderConnection, n as createSecretProviderConnection, o as getProjectSecretProviderConnectionByKey, p as testSecretProviderConnection, r as deleteProjectSecretProviderConnection, s as getProjectSecretProviderConnectionsByProjectId, t as createProjectSecretProviderConnection, u as getSecretProviderTypes } from "./secretsProvider.ee.cjs";
|
|
12
12
|
import { a as getLdapSynchronizations, c as updateLdapConfig, i as getLdapConfig, n as LdapSyncData, o as runLdapSync, r as LdapSyncTable, s as testLdapConnection, t as LdapConfig } from "./ldap.cjs";
|
|
13
13
|
import { a as getMfaQR, i as enableMfa, n as canEnableMFA, o as updateEnforceMfa, r as disableMfa, s as verifyMfaCode, t as DisableMfaParams } from "./mfa.cjs";
|
|
14
14
|
import { a as getNodeParameterOptions, c as getNodeTypes, d as getResourceLocatorResults, f as getResourceMapperFields, i as getNodeParameterActionResult, l as getNodeTypesByIdentifier, n as fetchCommunityNodeTypes, o as getNodeTranslationHeaders, r as getLocalResourceMapperFields, s as getNodeTypeVersions, t as fetchCommunityNodeAttributes, u as getNodesInformation } from "./nodeTypes.cjs";
|
|
@@ -27,9 +27,9 @@ import { _ as getCollections, a as ITemplatesNode, b as getWorkflows, c as ITemp
|
|
|
27
27
|
import { t as getThirdPartyLicenses } from "./third-party-licenses.cjs";
|
|
28
28
|
import { t as dismissBannerPermanently } from "./ui.cjs";
|
|
29
29
|
import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "./usage.cjs";
|
|
30
|
-
import { C as
|
|
30
|
+
import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as loginCurrentUser, a as IPersonalizationSurveyAnswersV3, b as setupOwner, c as IUserResponse, d as deleteUser, f as generateInviteLink, g as login, h as getUsers, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getPasswordResetLink, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getInviteLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as logout, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as sendForgotPasswordEmail } from "./users.cjs";
|
|
31
31
|
import { t as findWebhook } from "./webhooks.cjs";
|
|
32
32
|
import { a as WorkflowPublishHistory, c as WorkflowVersionId, d as getWorkflowVersionsByIds, f as updateWorkflowHistoryVersion, i as WorkflowHistoryRequestParams, l as getWorkflowHistory, n as WorkflowHistory, o as WorkflowVersion, r as WorkflowHistoryActionTypes, s as WorkflowVersionData, t as UpdateWorkflowHistoryVersion, u as getWorkflowVersion } from "./workflowHistory.cjs";
|
|
33
33
|
import "./index2.cjs";
|
|
34
34
|
import { a as get, c as patch, d as streamRequest, i as STREAM_SEPARATOR, l as post, n as NO_NETWORK_ERROR_CODE, o as getFullApiResponse, r as ResponseError, s as makeRestApiRequest, t as MfaRequiredError, u as request } from "./utils2.cjs";
|
|
35
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IRestApiContext, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, MfaRequiredError, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, UpdateWorkflowHistoryVersion, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionData, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, createProjectSecretProviderConnection, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteProjectSecretProviderConnection, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner,
|
|
35
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IRestApiContext, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, MfaRequiredError, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, UpdateWorkflowHistoryVersion, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionData, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, createProjectSecretProviderConnection, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteProjectSecretProviderConnection, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProjectSecretProviderConnection, updateProvider, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/index.d.mts
CHANGED
|
@@ -3,12 +3,12 @@ import { t as updateAiUsageSettings } from "./ai-usage.mjs";
|
|
|
3
3
|
import { a as updateApiKey, i as getApiKeys, n as deleteApiKey, r as getApiKeyScopes, t as createApiKey } from "./api-keys.mjs";
|
|
4
4
|
import { a as getCloudUserInfo, c as sendConfirmationEmail, i as getAdminPanelLoginCode, l as sendUserEvent, n as DynamicNotification, o as getCurrentPlan, r as InstanceUsage, s as getCurrentUsage, t as Cloud } from "./cloudPlans.mjs";
|
|
5
5
|
import { a as updatePackage, i as uninstallPackage, n as getInstalledCommunityNodes, r as installNewPackage, t as getAvailableCommunityPackageCount } from "./communityNodes.mjs";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as getCredentialResolverWorkflows, i as getCredentialResolverTypes, n as deleteCredentialResolver, o as getCredentialResolvers, r as getCredentialResolver, s as updateCredentialResolver, t as createCredentialResolver } from "./credentialResolvers.mjs";
|
|
7
7
|
import { t as getBecomeCreatorCta } from "./ctas.mjs";
|
|
8
8
|
import { a as hasDestinationId, i as getEventNamesFromBackend, n as deleteDestinationFromDb, o as saveDestinationToDb, r as getDestinationsFromBackend, s as sendTestMessageToDestination, t as ApiMessageEventBusDestinationOptions } from "./eventbus.ee.mjs";
|
|
9
9
|
import { t as sessionStarted } from "./events.mjs";
|
|
10
|
-
import { a as getGlobalExternalSecrets, c as reloadProvider, i as getExternalSecretsProviders, l as testExternalSecretsProviderConnection, n as getExternalSecrets, o as getGlobalExternalSecretsForProject, r as getExternalSecretsProvider, s as getProjectExternalSecrets, t as connectProvider, u as
|
|
11
|
-
import { a as
|
|
10
|
+
import { a as getGlobalExternalSecrets, c as reloadProvider, d as updateProvider, i as getExternalSecretsProviders, l as testExternalSecretsProviderConnection, n as getExternalSecrets, o as getGlobalExternalSecretsForProject, r as getExternalSecretsProvider, s as getProjectExternalSecrets, t as connectProvider, u as updateExternalSecretsSettings } from "./externalSecrets.ee.mjs";
|
|
11
|
+
import { a as enableSecretProviderConnection, c as getSecretProviderConnectionByKey, d as reloadSecretProviderConnection, f as testProjectSecretProviderConnection, h as updateSecretProviderConnection, i as deleteSecretProviderConnection, l as getSecretProviderConnections, m as updateProjectSecretProviderConnection, n as createSecretProviderConnection, o as getProjectSecretProviderConnectionByKey, p as testSecretProviderConnection, r as deleteProjectSecretProviderConnection, s as getProjectSecretProviderConnectionsByProjectId, t as createProjectSecretProviderConnection, u as getSecretProviderTypes } from "./secretsProvider.ee.mjs";
|
|
12
12
|
import { a as getLdapSynchronizations, c as updateLdapConfig, i as getLdapConfig, n as LdapSyncData, o as runLdapSync, r as LdapSyncTable, s as testLdapConnection, t as LdapConfig } from "./ldap.mjs";
|
|
13
13
|
import { a as getMfaQR, i as enableMfa, n as canEnableMFA, o as updateEnforceMfa, r as disableMfa, s as verifyMfaCode, t as DisableMfaParams } from "./mfa.mjs";
|
|
14
14
|
import { a as getNodeParameterOptions, c as getNodeTypes, d as getResourceLocatorResults, f as getResourceMapperFields, i as getNodeParameterActionResult, l as getNodeTypesByIdentifier, n as fetchCommunityNodeTypes, o as getNodeTranslationHeaders, r as getLocalResourceMapperFields, s as getNodeTypeVersions, t as fetchCommunityNodeAttributes, u as getNodesInformation } from "./nodeTypes.mjs";
|
|
@@ -27,9 +27,9 @@ import { _ as getCollections, a as ITemplatesNode, b as getWorkflows, c as ITemp
|
|
|
27
27
|
import { t as getThirdPartyLicenses } from "./third-party-licenses.mjs";
|
|
28
28
|
import { t as dismissBannerPermanently } from "./ui.mjs";
|
|
29
29
|
import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "./usage.mjs";
|
|
30
|
-
import { C as
|
|
30
|
+
import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as loginCurrentUser, a as IPersonalizationSurveyAnswersV3, b as setupOwner, c as IUserResponse, d as deleteUser, f as generateInviteLink, g as login, h as getUsers, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getPasswordResetLink, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getInviteLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as logout, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as sendForgotPasswordEmail } from "./users.mjs";
|
|
31
31
|
import { t as findWebhook } from "./webhooks.mjs";
|
|
32
32
|
import { a as WorkflowPublishHistory, c as WorkflowVersionId, d as getWorkflowVersionsByIds, f as updateWorkflowHistoryVersion, i as WorkflowHistoryRequestParams, l as getWorkflowHistory, n as WorkflowHistory, o as WorkflowVersion, r as WorkflowHistoryActionTypes, s as WorkflowVersionData, t as UpdateWorkflowHistoryVersion, u as getWorkflowVersion } from "./workflowHistory.mjs";
|
|
33
33
|
import "./index2.mjs";
|
|
34
34
|
import { a as get, c as patch, d as streamRequest, i as STREAM_SEPARATOR, l as post, n as NO_NETWORK_ERROR_CODE, o as getFullApiResponse, r as ResponseError, s as makeRestApiRequest, t as MfaRequiredError, u as request } from "./utils2.mjs";
|
|
35
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IRestApiContext, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, MfaRequiredError, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, UpdateWorkflowHistoryVersion, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionData, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, createProjectSecretProviderConnection, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteProjectSecretProviderConnection, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner,
|
|
35
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, IRestApiContext, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, MfaRequiredError, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, UpdateWorkflowHistoryVersion, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionData, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, createProjectSecretProviderConnection, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteProjectSecretProviderConnection, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProjectSecretProviderConnection, updateProvider, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/index.mjs
CHANGED
|
@@ -3,12 +3,12 @@ import { t as updateAiUsageSettings } from "./ai-usage.mjs";
|
|
|
3
3
|
import { a as updateApiKey, i as getApiKeys, n as deleteApiKey, r as getApiKeyScopes, t as createApiKey } from "./api-keys.mjs";
|
|
4
4
|
import { a as sendConfirmationEmail, i as getCurrentUsage, n as getCloudUserInfo, o as sendUserEvent, r as getCurrentPlan, t as getAdminPanelLoginCode } from "./cloudPlans.mjs";
|
|
5
5
|
import { a as updatePackage, i as uninstallPackage, n as getInstalledCommunityNodes, r as installNewPackage, t as getAvailableCommunityPackageCount } from "./communityNodes.mjs";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as getCredentialResolverWorkflows, i as getCredentialResolverTypes, n as deleteCredentialResolver, o as getCredentialResolvers, r as getCredentialResolver, s as updateCredentialResolver, t as createCredentialResolver } from "./credentialResolvers.mjs";
|
|
7
7
|
import { t as getBecomeCreatorCta } from "./ctas.mjs";
|
|
8
8
|
import { a as saveDestinationToDb, i as hasDestinationId, n as getDestinationsFromBackend, o as sendTestMessageToDestination, r as getEventNamesFromBackend, t as deleteDestinationFromDb } from "./eventbus.ee.mjs";
|
|
9
9
|
import { t as sessionStarted } from "./events.mjs";
|
|
10
|
-
import { a as getGlobalExternalSecrets, c as reloadProvider, i as getExternalSecretsProviders, l as testExternalSecretsProviderConnection, n as getExternalSecrets, o as getGlobalExternalSecretsForProject, r as getExternalSecretsProvider, s as getProjectExternalSecrets, t as connectProvider, u as
|
|
11
|
-
import { a as
|
|
10
|
+
import { a as getGlobalExternalSecrets, c as reloadProvider, d as updateProvider, i as getExternalSecretsProviders, l as testExternalSecretsProviderConnection, n as getExternalSecrets, o as getGlobalExternalSecretsForProject, r as getExternalSecretsProvider, s as getProjectExternalSecrets, t as connectProvider, u as updateExternalSecretsSettings } from "./externalSecrets.ee.mjs";
|
|
11
|
+
import { a as enableSecretProviderConnection, c as getSecretProviderConnectionByKey, d as reloadSecretProviderConnection, f as testProjectSecretProviderConnection, h as updateSecretProviderConnection, i as deleteSecretProviderConnection, l as getSecretProviderConnections, m as updateProjectSecretProviderConnection, n as createSecretProviderConnection, o as getProjectSecretProviderConnectionByKey, p as testSecretProviderConnection, r as deleteProjectSecretProviderConnection, s as getProjectSecretProviderConnectionsByProjectId, t as createProjectSecretProviderConnection, u as getSecretProviderTypes } from "./secretsProvider.ee.mjs";
|
|
12
12
|
import { a as updateLdapConfig, i as testLdapConnection, n as getLdapSynchronizations, r as runLdapSync, t as getLdapConfig } from "./ldap.mjs";
|
|
13
13
|
import { a as updateEnforceMfa, i as getMfaQR, n as disableMfa, o as verifyMfaCode, r as enableMfa, t as canEnableMFA } from "./mfa.mjs";
|
|
14
14
|
import { a as getNodeParameterOptions, c as getNodeTypes, d as getResourceLocatorResults, f as getResourceMapperFields, i as getNodeParameterActionResult, l as getNodeTypesByIdentifier, n as fetchCommunityNodeTypes, o as getNodeTranslationHeaders, r as getLocalResourceMapperFields, s as getNodeTypeVersions, t as fetchCommunityNodeAttributes, u as getNodesInformation } from "./nodeTypes.mjs";
|
|
@@ -24,10 +24,10 @@ import { a as getWorkflowTemplate, i as getTemplateById, n as getCollectionById,
|
|
|
24
24
|
import { t as getThirdPartyLicenses } from "./third-party-licenses.mjs";
|
|
25
25
|
import { t as dismissBannerPermanently } from "./ui.mjs";
|
|
26
26
|
import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "./usage.mjs";
|
|
27
|
-
import { _ as
|
|
27
|
+
import { _ as updateOtherUserSettings, a as getPasswordResetLink, c as loginCurrentUser, d as setupOwner, f as submitPersonalizationSurvey, g as updateGlobalRole, h as updateCurrentUserSettings, i as getInviteLink, l as logout, m as updateCurrentUserPassword, n as deleteUser, o as getUsers, p as updateCurrentUser, r as generateInviteLink, s as login, t as changePassword, u as sendForgotPasswordEmail, v as validatePasswordToken, y as validateSignupToken } from "./users.mjs";
|
|
28
28
|
import { n as getWhatsNewSection, t as getNextVersions } from "./versions.mjs";
|
|
29
29
|
import { t as findWebhook } from "./webhooks.mjs";
|
|
30
30
|
import { i as updateWorkflowHistoryVersion, n as getWorkflowVersion, r as getWorkflowVersionsByIds, t as getWorkflowHistory } from "./workflowHistory.mjs";
|
|
31
31
|
import "./api.mjs";
|
|
32
32
|
|
|
33
|
-
export { MfaRequiredError, NO_NETWORK_ERROR_CODE, ResponseError, STREAM_SEPARATOR, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, createProjectSecretProviderConnection, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteProjectSecretProviderConnection, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner,
|
|
33
|
+
export { MfaRequiredError, NO_NETWORK_ERROR_CODE, ResponseError, STREAM_SEPARATOR, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectRole, createProjectSecretProviderConnection, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectRole, deleteProjectSecretProviderConnection, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProjectSecretProviderConnection, updateProvider, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
@@ -16,6 +16,9 @@ const createSecretProviderConnection = async (context, data) => {
|
|
|
16
16
|
const updateSecretProviderConnection = async (context, providerKey, data) => {
|
|
17
17
|
return await require_utils.makeRestApiRequest(context, "PATCH", `/secret-providers/connections/${providerKey}`, data);
|
|
18
18
|
};
|
|
19
|
+
const enableSecretProviderConnection = async (context, providerKey) => {
|
|
20
|
+
return await require_utils.makeRestApiRequest(context, "PATCH", `/secret-providers/connections/${providerKey}`, { isEnabled: true });
|
|
21
|
+
};
|
|
19
22
|
const testSecretProviderConnection = async (context, providerKey) => {
|
|
20
23
|
return await require_utils.makeRestApiRequest(context, "POST", `/secret-providers/connections/${providerKey}/test`);
|
|
21
24
|
};
|
|
@@ -69,6 +72,12 @@ Object.defineProperty(exports, 'deleteSecretProviderConnection', {
|
|
|
69
72
|
return deleteSecretProviderConnection;
|
|
70
73
|
}
|
|
71
74
|
});
|
|
75
|
+
Object.defineProperty(exports, 'enableSecretProviderConnection', {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () {
|
|
78
|
+
return enableSecretProviderConnection;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
72
81
|
Object.defineProperty(exports, 'getProjectSecretProviderConnectionByKey', {
|
|
73
82
|
enumerable: true,
|
|
74
83
|
get: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secretsProvider.ee.cjs","names":["makeRestApiRequest"],"sources":["../src/api/secretsProvider.ee.ts"],"sourcesContent":["import type {\n\tReloadSecretProviderConnectionResponse,\n\tSecretProviderConnection,\n\tSecretProviderTypeResponse,\n\tTestSecretProviderConnectionResponse,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getSecretProviderTypes = async (\n\tcontext: IRestApiContext,\n): Promise<SecretProviderTypeResponse[]> => {\n\treturn await makeRestApiRequest(context, 'GET', '/secret-providers/types');\n};\n\nexport const getSecretProviderConnections = async (\n\tcontext: IRestApiContext,\n): Promise<SecretProviderConnection[]> => {\n\treturn await makeRestApiRequest(context, 'GET', '/secret-providers/connections');\n};\n\nexport const getSecretProviderConnectionByKey = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(context, 'GET', `/secret-providers/connections/${providerKey}`);\n};\n\nexport const createSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tdata: {\n\t\tproviderKey: string;\n\t\ttype: string;\n\t\tisGlobal: boolean;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(context, 'POST', '/secret-providers/connections', data);\n};\n\nexport const updateSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n\tdata: {\n\t\tisGlobal: boolean;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t\tdata,\n\t);\n};\n\nexport const testSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<TestSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/connections/${providerKey}/test`,\n\t);\n};\n\nexport const reloadSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<ReloadSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/connections/${providerKey}/reload`,\n\t);\n};\n\nexport const deleteSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<void> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'DELETE',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t);\n};\n\nexport const getProjectSecretProviderConnectionsByProjectId = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n): Promise<SecretProviderConnection[]> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/secret-providers/projects/${projectId}/connections`,\n\t);\n};\n\nexport const getProjectSecretProviderConnectionByKey = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t);\n};\n\nexport const createProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tdata: {\n\t\tproviderKey: string;\n\t\ttype: string;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/projects/${projectId}/connections`,\n\t\tdata,\n\t);\n};\n\nexport const updateProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n\tdata: {\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t\tdata,\n\t);\n};\n\nexport const testProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<TestSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}/test`,\n\t);\n};\n\nexport const deleteProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<void> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'DELETE',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t);\n};\n"],"mappings":";;;AAUA,MAAa,yBAAyB,OACrC,YAC2C;AAC3C,QAAO,MAAMA,iCAAmB,SAAS,OAAO,0BAA0B;;AAG3E,MAAa,+BAA+B,OAC3C,YACyC;AACzC,QAAO,MAAMA,iCAAmB,SAAS,OAAO,gCAAgC;;AAGjF,MAAa,mCAAmC,OAC/C,SACA,gBACuC;AACvC,QAAO,MAAMA,iCAAmB,SAAS,OAAO,iCAAiC,cAAc;;AAGhG,MAAa,iCAAiC,OAC7C,SACA,SAOuC;AACvC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,iCAAiC,KAAK;;AAGxF,MAAa,iCAAiC,OAC7C,SACA,aACA,SAKuC;AACvC,QAAO,MAAMA,iCACZ,SACA,SACA,iCAAiC,eACjC,KACA;;AAGF,MAAa,+BAA+B,OAC3C,SACA,gBACmD;AACnD,QAAO,MAAMA,iCACZ,SACA,QACA,iCAAiC,YAAY,OAC7C;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACqD;AACrD,QAAO,MAAMA,iCACZ,SACA,QACA,iCAAiC,YAAY,SAC7C;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACmB;AACnB,QAAO,MAAMA,iCACZ,SACA,UACA,iCAAiC,cACjC;;AAGF,MAAa,iDAAiD,OAC7D,SACA,cACyC;AACzC,QAAO,MAAMA,iCACZ,SACA,OACA,8BAA8B,UAAU,cACxC;;AAGF,MAAa,0CAA0C,OACtD,SACA,WACA,gBACuC;AACvC,QAAO,MAAMA,iCACZ,SACA,OACA,8BAA8B,UAAU,eAAe,cACvD;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,SAMuC;AACvC,QAAO,MAAMA,iCACZ,SACA,QACA,8BAA8B,UAAU,eACxC,KACA;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,aACA,SAGuC;AACvC,QAAO,MAAMA,iCACZ,SACA,SACA,8BAA8B,UAAU,eAAe,eACvD,KACA;;AAGF,MAAa,sCAAsC,OAClD,SACA,WACA,gBACmD;AACnD,QAAO,MAAMA,iCACZ,SACA,QACA,8BAA8B,UAAU,eAAe,YAAY,OACnE;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,gBACmB;AACnB,QAAO,MAAMA,iCACZ,SACA,UACA,8BAA8B,UAAU,eAAe,cACvD"}
|
|
1
|
+
{"version":3,"file":"secretsProvider.ee.cjs","names":["makeRestApiRequest"],"sources":["../src/api/secretsProvider.ee.ts"],"sourcesContent":["import type {\n\tReloadSecretProviderConnectionResponse,\n\tSecretProviderConnection,\n\tSecretProviderTypeResponse,\n\tTestSecretProviderConnectionResponse,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getSecretProviderTypes = async (\n\tcontext: IRestApiContext,\n): Promise<SecretProviderTypeResponse[]> => {\n\treturn await makeRestApiRequest(context, 'GET', '/secret-providers/types');\n};\n\nexport const getSecretProviderConnections = async (\n\tcontext: IRestApiContext,\n): Promise<SecretProviderConnection[]> => {\n\treturn await makeRestApiRequest(context, 'GET', '/secret-providers/connections');\n};\n\nexport const getSecretProviderConnectionByKey = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(context, 'GET', `/secret-providers/connections/${providerKey}`);\n};\n\nexport const createSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tdata: {\n\t\tproviderKey: string;\n\t\ttype: string;\n\t\tisGlobal: boolean;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(context, 'POST', '/secret-providers/connections', data);\n};\n\nexport const updateSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n\tdata: {\n\t\tisGlobal: boolean;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t\tdata,\n\t);\n};\n\nexport const enableSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t\t{\n\t\t\tisEnabled: true,\n\t\t},\n\t);\n};\n\nexport const testSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<TestSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/connections/${providerKey}/test`,\n\t);\n};\n\nexport const reloadSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<ReloadSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/connections/${providerKey}/reload`,\n\t);\n};\n\nexport const deleteSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<void> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'DELETE',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t);\n};\n\nexport const getProjectSecretProviderConnectionsByProjectId = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n): Promise<SecretProviderConnection[]> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/secret-providers/projects/${projectId}/connections`,\n\t);\n};\n\nexport const getProjectSecretProviderConnectionByKey = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t);\n};\n\nexport const createProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tdata: {\n\t\tproviderKey: string;\n\t\ttype: string;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/projects/${projectId}/connections`,\n\t\tdata,\n\t);\n};\n\nexport const updateProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n\tdata: {\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t\tdata,\n\t);\n};\n\nexport const testProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<TestSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}/test`,\n\t);\n};\n\nexport const deleteProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<void> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'DELETE',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t);\n};\n"],"mappings":";;;AAUA,MAAa,yBAAyB,OACrC,YAC2C;AAC3C,QAAO,MAAMA,iCAAmB,SAAS,OAAO,0BAA0B;;AAG3E,MAAa,+BAA+B,OAC3C,YACyC;AACzC,QAAO,MAAMA,iCAAmB,SAAS,OAAO,gCAAgC;;AAGjF,MAAa,mCAAmC,OAC/C,SACA,gBACuC;AACvC,QAAO,MAAMA,iCAAmB,SAAS,OAAO,iCAAiC,cAAc;;AAGhG,MAAa,iCAAiC,OAC7C,SACA,SAOuC;AACvC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,iCAAiC,KAAK;;AAGxF,MAAa,iCAAiC,OAC7C,SACA,aACA,SAKuC;AACvC,QAAO,MAAMA,iCACZ,SACA,SACA,iCAAiC,eACjC,KACA;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACuC;AACvC,QAAO,MAAMA,iCACZ,SACA,SACA,iCAAiC,eACjC,EACC,WAAW,MACX,CACD;;AAGF,MAAa,+BAA+B,OAC3C,SACA,gBACmD;AACnD,QAAO,MAAMA,iCACZ,SACA,QACA,iCAAiC,YAAY,OAC7C;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACqD;AACrD,QAAO,MAAMA,iCACZ,SACA,QACA,iCAAiC,YAAY,SAC7C;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACmB;AACnB,QAAO,MAAMA,iCACZ,SACA,UACA,iCAAiC,cACjC;;AAGF,MAAa,iDAAiD,OAC7D,SACA,cACyC;AACzC,QAAO,MAAMA,iCACZ,SACA,OACA,8BAA8B,UAAU,cACxC;;AAGF,MAAa,0CAA0C,OACtD,SACA,WACA,gBACuC;AACvC,QAAO,MAAMA,iCACZ,SACA,OACA,8BAA8B,UAAU,eAAe,cACvD;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,SAMuC;AACvC,QAAO,MAAMA,iCACZ,SACA,QACA,8BAA8B,UAAU,eACxC,KACA;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,aACA,SAGuC;AACvC,QAAO,MAAMA,iCACZ,SACA,SACA,8BAA8B,UAAU,eAAe,eACvD,KACA;;AAGF,MAAa,sCAAsC,OAClD,SACA,WACA,gBACmD;AACnD,QAAO,MAAMA,iCACZ,SACA,QACA,8BAA8B,UAAU,eAAe,YAAY,OACnE;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,gBACmB;AACnB,QAAO,MAAMA,iCACZ,SACA,UACA,8BAA8B,UAAU,eAAe,cACvD"}
|
|
@@ -17,6 +17,7 @@ declare const updateSecretProviderConnection: (context: IRestApiContext, provide
|
|
|
17
17
|
projectIds: string[];
|
|
18
18
|
settings: Record<string, unknown>;
|
|
19
19
|
}) => Promise<SecretProviderConnection>;
|
|
20
|
+
declare const enableSecretProviderConnection: (context: IRestApiContext, providerKey: string) => Promise<SecretProviderConnection>;
|
|
20
21
|
declare const testSecretProviderConnection: (context: IRestApiContext, providerKey: string) => Promise<TestSecretProviderConnectionResponse>;
|
|
21
22
|
declare const reloadSecretProviderConnection: (context: IRestApiContext, providerKey: string) => Promise<ReloadSecretProviderConnectionResponse>;
|
|
22
23
|
declare const deleteSecretProviderConnection: (context: IRestApiContext, providerKey: string) => Promise<void>;
|
|
@@ -34,5 +35,5 @@ declare const updateProjectSecretProviderConnection: (context: IRestApiContext,
|
|
|
34
35
|
declare const testProjectSecretProviderConnection: (context: IRestApiContext, projectId: string, providerKey: string) => Promise<TestSecretProviderConnectionResponse>;
|
|
35
36
|
declare const deleteProjectSecretProviderConnection: (context: IRestApiContext, projectId: string, providerKey: string) => Promise<void>;
|
|
36
37
|
//#endregion
|
|
37
|
-
export {
|
|
38
|
+
export { enableSecretProviderConnection as a, getSecretProviderConnectionByKey as c, reloadSecretProviderConnection as d, testProjectSecretProviderConnection as f, updateSecretProviderConnection as h, deleteSecretProviderConnection as i, getSecretProviderConnections as l, updateProjectSecretProviderConnection as m, createSecretProviderConnection as n, getProjectSecretProviderConnectionByKey as o, testSecretProviderConnection as p, deleteProjectSecretProviderConnection as r, getProjectSecretProviderConnectionsByProjectId as s, createProjectSecretProviderConnection as t, getSecretProviderTypes as u };
|
|
38
39
|
//# sourceMappingURL=secretsProvider.ee.d.cts.map
|
|
@@ -17,6 +17,7 @@ declare const updateSecretProviderConnection: (context: IRestApiContext, provide
|
|
|
17
17
|
projectIds: string[];
|
|
18
18
|
settings: Record<string, unknown>;
|
|
19
19
|
}) => Promise<SecretProviderConnection>;
|
|
20
|
+
declare const enableSecretProviderConnection: (context: IRestApiContext, providerKey: string) => Promise<SecretProviderConnection>;
|
|
20
21
|
declare const testSecretProviderConnection: (context: IRestApiContext, providerKey: string) => Promise<TestSecretProviderConnectionResponse>;
|
|
21
22
|
declare const reloadSecretProviderConnection: (context: IRestApiContext, providerKey: string) => Promise<ReloadSecretProviderConnectionResponse>;
|
|
22
23
|
declare const deleteSecretProviderConnection: (context: IRestApiContext, providerKey: string) => Promise<void>;
|
|
@@ -34,5 +35,5 @@ declare const updateProjectSecretProviderConnection: (context: IRestApiContext,
|
|
|
34
35
|
declare const testProjectSecretProviderConnection: (context: IRestApiContext, projectId: string, providerKey: string) => Promise<TestSecretProviderConnectionResponse>;
|
|
35
36
|
declare const deleteProjectSecretProviderConnection: (context: IRestApiContext, projectId: string, providerKey: string) => Promise<void>;
|
|
36
37
|
//#endregion
|
|
37
|
-
export {
|
|
38
|
+
export { enableSecretProviderConnection as a, getSecretProviderConnectionByKey as c, reloadSecretProviderConnection as d, testProjectSecretProviderConnection as f, updateSecretProviderConnection as h, deleteSecretProviderConnection as i, getSecretProviderConnections as l, updateProjectSecretProviderConnection as m, createSecretProviderConnection as n, getProjectSecretProviderConnectionByKey as o, testSecretProviderConnection as p, deleteProjectSecretProviderConnection as r, getProjectSecretProviderConnectionsByProjectId as s, createProjectSecretProviderConnection as t, getSecretProviderTypes as u };
|
|
38
39
|
//# sourceMappingURL=secretsProvider.ee.d.mts.map
|
|
@@ -16,6 +16,9 @@ const createSecretProviderConnection = async (context, data) => {
|
|
|
16
16
|
const updateSecretProviderConnection = async (context, providerKey, data) => {
|
|
17
17
|
return await makeRestApiRequest(context, "PATCH", `/secret-providers/connections/${providerKey}`, data);
|
|
18
18
|
};
|
|
19
|
+
const enableSecretProviderConnection = async (context, providerKey) => {
|
|
20
|
+
return await makeRestApiRequest(context, "PATCH", `/secret-providers/connections/${providerKey}`, { isEnabled: true });
|
|
21
|
+
};
|
|
19
22
|
const testSecretProviderConnection = async (context, providerKey) => {
|
|
20
23
|
return await makeRestApiRequest(context, "POST", `/secret-providers/connections/${providerKey}/test`);
|
|
21
24
|
};
|
|
@@ -45,5 +48,5 @@ const deleteProjectSecretProviderConnection = async (context, projectId, provide
|
|
|
45
48
|
};
|
|
46
49
|
|
|
47
50
|
//#endregion
|
|
48
|
-
export {
|
|
51
|
+
export { enableSecretProviderConnection as a, getSecretProviderConnectionByKey as c, reloadSecretProviderConnection as d, testProjectSecretProviderConnection as f, updateSecretProviderConnection as h, deleteSecretProviderConnection as i, getSecretProviderConnections as l, updateProjectSecretProviderConnection as m, createSecretProviderConnection as n, getProjectSecretProviderConnectionByKey as o, testSecretProviderConnection as p, deleteProjectSecretProviderConnection as r, getProjectSecretProviderConnectionsByProjectId as s, createProjectSecretProviderConnection as t, getSecretProviderTypes as u };
|
|
49
52
|
//# sourceMappingURL=secretsProvider.ee.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secretsProvider.ee.mjs","names":[],"sources":["../src/api/secretsProvider.ee.ts"],"sourcesContent":["import type {\n\tReloadSecretProviderConnectionResponse,\n\tSecretProviderConnection,\n\tSecretProviderTypeResponse,\n\tTestSecretProviderConnectionResponse,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getSecretProviderTypes = async (\n\tcontext: IRestApiContext,\n): Promise<SecretProviderTypeResponse[]> => {\n\treturn await makeRestApiRequest(context, 'GET', '/secret-providers/types');\n};\n\nexport const getSecretProviderConnections = async (\n\tcontext: IRestApiContext,\n): Promise<SecretProviderConnection[]> => {\n\treturn await makeRestApiRequest(context, 'GET', '/secret-providers/connections');\n};\n\nexport const getSecretProviderConnectionByKey = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(context, 'GET', `/secret-providers/connections/${providerKey}`);\n};\n\nexport const createSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tdata: {\n\t\tproviderKey: string;\n\t\ttype: string;\n\t\tisGlobal: boolean;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(context, 'POST', '/secret-providers/connections', data);\n};\n\nexport const updateSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n\tdata: {\n\t\tisGlobal: boolean;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t\tdata,\n\t);\n};\n\nexport const testSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<TestSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/connections/${providerKey}/test`,\n\t);\n};\n\nexport const reloadSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<ReloadSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/connections/${providerKey}/reload`,\n\t);\n};\n\nexport const deleteSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<void> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'DELETE',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t);\n};\n\nexport const getProjectSecretProviderConnectionsByProjectId = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n): Promise<SecretProviderConnection[]> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/secret-providers/projects/${projectId}/connections`,\n\t);\n};\n\nexport const getProjectSecretProviderConnectionByKey = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t);\n};\n\nexport const createProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tdata: {\n\t\tproviderKey: string;\n\t\ttype: string;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/projects/${projectId}/connections`,\n\t\tdata,\n\t);\n};\n\nexport const updateProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n\tdata: {\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t\tdata,\n\t);\n};\n\nexport const testProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<TestSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}/test`,\n\t);\n};\n\nexport const deleteProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<void> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'DELETE',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t);\n};\n"],"mappings":";;;AAUA,MAAa,yBAAyB,OACrC,YAC2C;AAC3C,QAAO,MAAM,mBAAmB,SAAS,OAAO,0BAA0B;;AAG3E,MAAa,+BAA+B,OAC3C,YACyC;AACzC,QAAO,MAAM,mBAAmB,SAAS,OAAO,gCAAgC;;AAGjF,MAAa,mCAAmC,OAC/C,SACA,gBACuC;AACvC,QAAO,MAAM,mBAAmB,SAAS,OAAO,iCAAiC,cAAc;;AAGhG,MAAa,iCAAiC,OAC7C,SACA,SAOuC;AACvC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,iCAAiC,KAAK;;AAGxF,MAAa,iCAAiC,OAC7C,SACA,aACA,SAKuC;AACvC,QAAO,MAAM,mBACZ,SACA,SACA,iCAAiC,eACjC,KACA;;AAGF,MAAa,+BAA+B,OAC3C,SACA,gBACmD;AACnD,QAAO,MAAM,mBACZ,SACA,QACA,iCAAiC,YAAY,OAC7C;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACqD;AACrD,QAAO,MAAM,mBACZ,SACA,QACA,iCAAiC,YAAY,SAC7C;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACmB;AACnB,QAAO,MAAM,mBACZ,SACA,UACA,iCAAiC,cACjC;;AAGF,MAAa,iDAAiD,OAC7D,SACA,cACyC;AACzC,QAAO,MAAM,mBACZ,SACA,OACA,8BAA8B,UAAU,cACxC;;AAGF,MAAa,0CAA0C,OACtD,SACA,WACA,gBACuC;AACvC,QAAO,MAAM,mBACZ,SACA,OACA,8BAA8B,UAAU,eAAe,cACvD;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,SAMuC;AACvC,QAAO,MAAM,mBACZ,SACA,QACA,8BAA8B,UAAU,eACxC,KACA;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,aACA,SAGuC;AACvC,QAAO,MAAM,mBACZ,SACA,SACA,8BAA8B,UAAU,eAAe,eACvD,KACA;;AAGF,MAAa,sCAAsC,OAClD,SACA,WACA,gBACmD;AACnD,QAAO,MAAM,mBACZ,SACA,QACA,8BAA8B,UAAU,eAAe,YAAY,OACnE;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,gBACmB;AACnB,QAAO,MAAM,mBACZ,SACA,UACA,8BAA8B,UAAU,eAAe,cACvD"}
|
|
1
|
+
{"version":3,"file":"secretsProvider.ee.mjs","names":[],"sources":["../src/api/secretsProvider.ee.ts"],"sourcesContent":["import type {\n\tReloadSecretProviderConnectionResponse,\n\tSecretProviderConnection,\n\tSecretProviderTypeResponse,\n\tTestSecretProviderConnectionResponse,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport const getSecretProviderTypes = async (\n\tcontext: IRestApiContext,\n): Promise<SecretProviderTypeResponse[]> => {\n\treturn await makeRestApiRequest(context, 'GET', '/secret-providers/types');\n};\n\nexport const getSecretProviderConnections = async (\n\tcontext: IRestApiContext,\n): Promise<SecretProviderConnection[]> => {\n\treturn await makeRestApiRequest(context, 'GET', '/secret-providers/connections');\n};\n\nexport const getSecretProviderConnectionByKey = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(context, 'GET', `/secret-providers/connections/${providerKey}`);\n};\n\nexport const createSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tdata: {\n\t\tproviderKey: string;\n\t\ttype: string;\n\t\tisGlobal: boolean;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(context, 'POST', '/secret-providers/connections', data);\n};\n\nexport const updateSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n\tdata: {\n\t\tisGlobal: boolean;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t\tdata,\n\t);\n};\n\nexport const enableSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t\t{\n\t\t\tisEnabled: true,\n\t\t},\n\t);\n};\n\nexport const testSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<TestSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/connections/${providerKey}/test`,\n\t);\n};\n\nexport const reloadSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<ReloadSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/connections/${providerKey}/reload`,\n\t);\n};\n\nexport const deleteSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tproviderKey: string,\n): Promise<void> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'DELETE',\n\t\t`/secret-providers/connections/${providerKey}`,\n\t);\n};\n\nexport const getProjectSecretProviderConnectionsByProjectId = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n): Promise<SecretProviderConnection[]> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/secret-providers/projects/${projectId}/connections`,\n\t);\n};\n\nexport const getProjectSecretProviderConnectionByKey = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t);\n};\n\nexport const createProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tdata: {\n\t\tproviderKey: string;\n\t\ttype: string;\n\t\tprojectIds: string[];\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/projects/${projectId}/connections`,\n\t\tdata,\n\t);\n};\n\nexport const updateProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n\tdata: {\n\t\tsettings: Record<string, unknown>;\n\t},\n): Promise<SecretProviderConnection> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'PATCH',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t\tdata,\n\t);\n};\n\nexport const testProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<TestSecretProviderConnectionResponse> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}/test`,\n\t);\n};\n\nexport const deleteProjectSecretProviderConnection = async (\n\tcontext: IRestApiContext,\n\tprojectId: string,\n\tproviderKey: string,\n): Promise<void> => {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'DELETE',\n\t\t`/secret-providers/projects/${projectId}/connections/${providerKey}`,\n\t);\n};\n"],"mappings":";;;AAUA,MAAa,yBAAyB,OACrC,YAC2C;AAC3C,QAAO,MAAM,mBAAmB,SAAS,OAAO,0BAA0B;;AAG3E,MAAa,+BAA+B,OAC3C,YACyC;AACzC,QAAO,MAAM,mBAAmB,SAAS,OAAO,gCAAgC;;AAGjF,MAAa,mCAAmC,OAC/C,SACA,gBACuC;AACvC,QAAO,MAAM,mBAAmB,SAAS,OAAO,iCAAiC,cAAc;;AAGhG,MAAa,iCAAiC,OAC7C,SACA,SAOuC;AACvC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,iCAAiC,KAAK;;AAGxF,MAAa,iCAAiC,OAC7C,SACA,aACA,SAKuC;AACvC,QAAO,MAAM,mBACZ,SACA,SACA,iCAAiC,eACjC,KACA;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACuC;AACvC,QAAO,MAAM,mBACZ,SACA,SACA,iCAAiC,eACjC,EACC,WAAW,MACX,CACD;;AAGF,MAAa,+BAA+B,OAC3C,SACA,gBACmD;AACnD,QAAO,MAAM,mBACZ,SACA,QACA,iCAAiC,YAAY,OAC7C;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACqD;AACrD,QAAO,MAAM,mBACZ,SACA,QACA,iCAAiC,YAAY,SAC7C;;AAGF,MAAa,iCAAiC,OAC7C,SACA,gBACmB;AACnB,QAAO,MAAM,mBACZ,SACA,UACA,iCAAiC,cACjC;;AAGF,MAAa,iDAAiD,OAC7D,SACA,cACyC;AACzC,QAAO,MAAM,mBACZ,SACA,OACA,8BAA8B,UAAU,cACxC;;AAGF,MAAa,0CAA0C,OACtD,SACA,WACA,gBACuC;AACvC,QAAO,MAAM,mBACZ,SACA,OACA,8BAA8B,UAAU,eAAe,cACvD;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,SAMuC;AACvC,QAAO,MAAM,mBACZ,SACA,QACA,8BAA8B,UAAU,eACxC,KACA;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,aACA,SAGuC;AACvC,QAAO,MAAM,mBACZ,SACA,SACA,8BAA8B,UAAU,eAAe,eACvD,KACA;;AAGF,MAAa,sCAAsC,OAClD,SACA,WACA,gBACmD;AACnD,QAAO,MAAM,mBACZ,SACA,QACA,8BAA8B,UAAU,eAAe,YAAY,OACnE;;AAGF,MAAa,wCAAwC,OACpD,SACA,WACA,gBACmB;AACnB,QAAO,MAAM,mBACZ,SACA,UACA,8BAA8B,UAAU,eAAe,cACvD"}
|
package/dist/users.cjs
CHANGED
|
@@ -16,10 +16,6 @@ async function setupOwner(context, params) {
|
|
|
16
16
|
async function validateSignupToken(context, params) {
|
|
17
17
|
return await require_utils.makeRestApiRequest(context, "GET", "/resolve-signup-token", params);
|
|
18
18
|
}
|
|
19
|
-
async function signup(context, params) {
|
|
20
|
-
const { inviteeId, ...props } = params;
|
|
21
|
-
return await require_utils.makeRestApiRequest(context, "POST", `/users/${params.inviteeId}`, props);
|
|
22
|
-
}
|
|
23
19
|
async function sendForgotPasswordEmail(context, params) {
|
|
24
20
|
await require_utils.makeRestApiRequest(context, "POST", "/forgot-password", params);
|
|
25
21
|
}
|
|
@@ -130,12 +126,6 @@ Object.defineProperty(exports, 'setupOwner', {
|
|
|
130
126
|
return setupOwner;
|
|
131
127
|
}
|
|
132
128
|
});
|
|
133
|
-
Object.defineProperty(exports, 'signup', {
|
|
134
|
-
enumerable: true,
|
|
135
|
-
get: function () {
|
|
136
|
-
return signup;
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
129
|
Object.defineProperty(exports, 'submitPersonalizationSurvey', {
|
|
140
130
|
enumerable: true,
|
|
141
131
|
get: function () {
|
package/dist/users.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.cjs","names":["makeRestApiRequest"],"sources":["../src/api/users.ts"],"sourcesContent":["import type {\n\tLoginRequestDto,\n\tPasswordUpdateRequestDto,\n\tSettingsUpdateRequestDto,\n\tUserSelfSettingsUpdateRequestDto,\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: { token
|
|
1
|
+
{"version":3,"file":"users.cjs","names":["makeRestApiRequest"],"sources":["../src/api/users.ts"],"sourcesContent":["import type {\n\tLoginRequestDto,\n\tPasswordUpdateRequestDto,\n\tSettingsUpdateRequestDto,\n\tUserSelfSettingsUpdateRequestDto,\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: { token: string },\n): Promise<{ inviter: { firstName: string; lastName: string } }> {\n\treturn await makeRestApiRequest(context, 'GET', '/resolve-signup-token', params);\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: UserSelfSettingsUpdateRequestDto,\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 generateInviteLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'POST', `/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":";;;AAuFA,eAAsB,iBACrB,SACsC;AACtC,QAAO,MAAMA,iCAAmB,SAAS,OAAO,SAAS;;AAG1D,eAAsB,MACrB,SACA,QAC+B;AAC/B,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,UAAU,OAAO;;AAGnE,eAAsB,OAAO,SAAyC;AACrE,OAAMA,iCAAmB,SAAS,QAAQ,UAAU;;AAGrD,eAAsB,WACrB,SACA,QAC+B;AAC/B,QAAO,MAAMA,iCACZ,SACA,QACA,gBACA,OACA;;AAGF,eAAsB,oBACrB,SACA,QACgE;AAChE,QAAO,MAAMA,iCAAmB,SAAS,OAAO,yBAAyB,OAAO;;AAGjF,eAAsB,wBACrB,SACA,QACgB;AAChB,OAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,OAAO;;AAGtE,eAAsB,sBACrB,SACA,QACgB;AAChB,OAAMA,iCAAmB,SAAS,OAAO,2BAA2B,OAAO;;AAG5E,eAAsB,eACrB,SACA,QACgB;AAChB,OAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,OAAO;;AAGtE,eAAsB,kBACrB,SACA,QACyB;AACzB,QAAO,MAAMA,iCAAmB,SAAS,SAAS,OAAO,OAAO;;AAGjE,eAAsB,0BACrB,SACA,UACyB;AACzB,QAAO,MAAMA,iCAAmB,SAAS,SAAS,gBAAgB,SAAS;;AAG5E,eAAsB,wBACrB,SACA,QACA,UACyB;AACzB,QAAO,MAAMA,iCAAmB,SAAS,SAAS,UAAU,OAAO,YAAY,SAAS;;AAGzF,eAAsB,0BACrB,SACA,QACgB;AAChB,QAAO,MAAMA,iCAAmB,SAAS,SAAS,gBAAgB,OAAO;;AAG1E,eAAsB,WACrB,SACA,EAAE,IAAI,cACU;AAChB,OAAMA,iCAAmB,SAAS,UAAU,UAAU,MAAM,aAAa,EAAE,YAAY,GAAG,EAAE,CAAC;;AAG9F,eAAsB,SACrB,SACA,QACqB;AACrB,QAAO,MAAMA,iCAAmB,SAAS,OAAO,UAAU,OAAO;;AAGlE,eAAsB,cACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAMA,iCAAmB,SAAS,OAAO,UAAU,GAAG,cAAc;;AAG5E,eAAsB,mBACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,UAAU,GAAG,cAAc;;AAG7E,eAAsB,qBACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAMA,iCAAmB,SAAS,OAAO,UAAU,GAAG,sBAAsB;;AAGpF,eAAsB,4BACrB,SACA,QACgB;AAChB,OAAMA,iCAAmB,SAAS,QAAQ,cAAc,OAAiC;;AAQ1F,eAAsB,iBACrB,SACA,EAAE,IAAI,eACmB;AACzB,QAAO,MAAMA,iCAAmB,SAAS,SAAS,UAAU,GAAG,QAAQ,EAAE,aAAa,CAAC"}
|
package/dist/users.d.cts
CHANGED
|
@@ -67,23 +67,13 @@ declare function setupOwner(context: IRestApiContext, params: {
|
|
|
67
67
|
password: string;
|
|
68
68
|
}): Promise<CurrentUserResponse>;
|
|
69
69
|
declare function validateSignupToken(context: IRestApiContext, params: {
|
|
70
|
-
token
|
|
71
|
-
} | {
|
|
72
|
-
inviterId?: string;
|
|
73
|
-
inviteeId?: string;
|
|
70
|
+
token: string;
|
|
74
71
|
}): Promise<{
|
|
75
72
|
inviter: {
|
|
76
73
|
firstName: string;
|
|
77
74
|
lastName: string;
|
|
78
75
|
};
|
|
79
76
|
}>;
|
|
80
|
-
declare function signup(context: IRestApiContext, params: {
|
|
81
|
-
inviterId: string;
|
|
82
|
-
inviteeId: string;
|
|
83
|
-
firstName: string;
|
|
84
|
-
lastName: string;
|
|
85
|
-
password: string;
|
|
86
|
-
}): Promise<CurrentUserResponse>;
|
|
87
77
|
declare function sendForgotPasswordEmail(context: IRestApiContext, params: {
|
|
88
78
|
email: string;
|
|
89
79
|
}): Promise<void>;
|
|
@@ -138,5 +128,5 @@ declare function updateGlobalRole(context: IRestApiContext, {
|
|
|
138
128
|
newRoleName
|
|
139
129
|
}: UpdateGlobalRolePayload): Promise<IUserResponse>;
|
|
140
130
|
//#endregion
|
|
141
|
-
export {
|
|
131
|
+
export { updateCurrentUserPassword as C, validatePasswordToken as D, updateOtherUserSettings as E, validateSignupToken as O, updateCurrentUser as S, updateGlobalRole as T, loginCurrentUser as _, IPersonalizationSurveyAnswersV3 as a, setupOwner as b, IUserResponse as c, deleteUser as d, generateInviteLink as f, login as g, getUsers as h, IPersonalizationSurveyAnswersV2 as i, UpdateGlobalRolePayload as l, getPasswordResetLink as m, IPersonalizationLatestVersion as n, IPersonalizationSurveyVersions as o, getInviteLink as p, IPersonalizationSurveyAnswersV1 as r, IUser as s, CurrentUserResponse as t, changePassword as u, logout as v, updateCurrentUserSettings as w, submitPersonalizationSurvey as x, sendForgotPasswordEmail as y };
|
|
142
132
|
//# sourceMappingURL=users.d.cts.map
|
package/dist/users.d.mts
CHANGED
|
@@ -67,23 +67,13 @@ declare function setupOwner(context: IRestApiContext, params: {
|
|
|
67
67
|
password: string;
|
|
68
68
|
}): Promise<CurrentUserResponse>;
|
|
69
69
|
declare function validateSignupToken(context: IRestApiContext, params: {
|
|
70
|
-
token
|
|
71
|
-
} | {
|
|
72
|
-
inviterId?: string;
|
|
73
|
-
inviteeId?: string;
|
|
70
|
+
token: string;
|
|
74
71
|
}): Promise<{
|
|
75
72
|
inviter: {
|
|
76
73
|
firstName: string;
|
|
77
74
|
lastName: string;
|
|
78
75
|
};
|
|
79
76
|
}>;
|
|
80
|
-
declare function signup(context: IRestApiContext, params: {
|
|
81
|
-
inviterId: string;
|
|
82
|
-
inviteeId: string;
|
|
83
|
-
firstName: string;
|
|
84
|
-
lastName: string;
|
|
85
|
-
password: string;
|
|
86
|
-
}): Promise<CurrentUserResponse>;
|
|
87
77
|
declare function sendForgotPasswordEmail(context: IRestApiContext, params: {
|
|
88
78
|
email: string;
|
|
89
79
|
}): Promise<void>;
|
|
@@ -138,5 +128,5 @@ declare function updateGlobalRole(context: IRestApiContext, {
|
|
|
138
128
|
newRoleName
|
|
139
129
|
}: UpdateGlobalRolePayload): Promise<IUserResponse>;
|
|
140
130
|
//#endregion
|
|
141
|
-
export {
|
|
131
|
+
export { updateCurrentUserPassword as C, validatePasswordToken as D, updateOtherUserSettings as E, validateSignupToken as O, updateCurrentUser as S, updateGlobalRole as T, loginCurrentUser as _, IPersonalizationSurveyAnswersV3 as a, setupOwner as b, IUserResponse as c, deleteUser as d, generateInviteLink as f, login as g, getUsers as h, IPersonalizationSurveyAnswersV2 as i, UpdateGlobalRolePayload as l, getPasswordResetLink as m, IPersonalizationLatestVersion as n, IPersonalizationSurveyVersions as o, getInviteLink as p, IPersonalizationSurveyAnswersV1 as r, IUser as s, CurrentUserResponse as t, changePassword as u, logout as v, updateCurrentUserSettings as w, submitPersonalizationSurvey as x, sendForgotPasswordEmail as y };
|
|
142
132
|
//# sourceMappingURL=users.d.mts.map
|
package/dist/users.mjs
CHANGED
|
@@ -16,10 +16,6 @@ async function setupOwner(context, params) {
|
|
|
16
16
|
async function validateSignupToken(context, params) {
|
|
17
17
|
return await makeRestApiRequest(context, "GET", "/resolve-signup-token", params);
|
|
18
18
|
}
|
|
19
|
-
async function signup(context, params) {
|
|
20
|
-
const { inviteeId, ...props } = params;
|
|
21
|
-
return await makeRestApiRequest(context, "POST", `/users/${params.inviteeId}`, props);
|
|
22
|
-
}
|
|
23
19
|
async function sendForgotPasswordEmail(context, params) {
|
|
24
20
|
await makeRestApiRequest(context, "POST", "/forgot-password", params);
|
|
25
21
|
}
|
|
@@ -64,5 +60,5 @@ async function updateGlobalRole(context, { id, newRoleName }) {
|
|
|
64
60
|
}
|
|
65
61
|
|
|
66
62
|
//#endregion
|
|
67
|
-
export {
|
|
63
|
+
export { updateOtherUserSettings as _, getPasswordResetLink as a, loginCurrentUser as c, setupOwner as d, submitPersonalizationSurvey as f, updateGlobalRole as g, updateCurrentUserSettings as h, getInviteLink as i, logout as l, updateCurrentUserPassword as m, deleteUser as n, getUsers as o, updateCurrentUser as p, generateInviteLink as r, login as s, changePassword as t, sendForgotPasswordEmail as u, validatePasswordToken as v, validateSignupToken as y };
|
|
68
64
|
//# sourceMappingURL=users.mjs.map
|
package/dist/users.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.mjs","names":[],"sources":["../src/api/users.ts"],"sourcesContent":["import type {\n\tLoginRequestDto,\n\tPasswordUpdateRequestDto,\n\tSettingsUpdateRequestDto,\n\tUserSelfSettingsUpdateRequestDto,\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: { token
|
|
1
|
+
{"version":3,"file":"users.mjs","names":[],"sources":["../src/api/users.ts"],"sourcesContent":["import type {\n\tLoginRequestDto,\n\tPasswordUpdateRequestDto,\n\tSettingsUpdateRequestDto,\n\tUserSelfSettingsUpdateRequestDto,\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: { token: string },\n): Promise<{ inviter: { firstName: string; lastName: string } }> {\n\treturn await makeRestApiRequest(context, 'GET', '/resolve-signup-token', params);\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: UserSelfSettingsUpdateRequestDto,\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 generateInviteLink(\n\tcontext: IRestApiContext,\n\t{ id }: { id: string },\n): Promise<{ link: string }> {\n\treturn await makeRestApiRequest(context, 'POST', `/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":";;;AAuFA,eAAsB,iBACrB,SACsC;AACtC,QAAO,MAAM,mBAAmB,SAAS,OAAO,SAAS;;AAG1D,eAAsB,MACrB,SACA,QAC+B;AAC/B,QAAO,MAAM,mBAAmB,SAAS,QAAQ,UAAU,OAAO;;AAGnE,eAAsB,OAAO,SAAyC;AACrE,OAAM,mBAAmB,SAAS,QAAQ,UAAU;;AAGrD,eAAsB,WACrB,SACA,QAC+B;AAC/B,QAAO,MAAM,mBACZ,SACA,QACA,gBACA,OACA;;AAGF,eAAsB,oBACrB,SACA,QACgE;AAChE,QAAO,MAAM,mBAAmB,SAAS,OAAO,yBAAyB,OAAO;;AAGjF,eAAsB,wBACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,oBAAoB,OAAO;;AAGtE,eAAsB,sBACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,OAAO,2BAA2B,OAAO;;AAG5E,eAAsB,eACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,oBAAoB,OAAO;;AAGtE,eAAsB,kBACrB,SACA,QACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,OAAO,OAAO;;AAGjE,eAAsB,0BACrB,SACA,UACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,SAAS;;AAG5E,eAAsB,wBACrB,SACA,QACA,UACyB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,OAAO,YAAY,SAAS;;AAGzF,eAAsB,0BACrB,SACA,QACgB;AAChB,QAAO,MAAM,mBAAmB,SAAS,SAAS,gBAAgB,OAAO;;AAG1E,eAAsB,WACrB,SACA,EAAE,IAAI,cACU;AAChB,OAAM,mBAAmB,SAAS,UAAU,UAAU,MAAM,aAAa,EAAE,YAAY,GAAG,EAAE,CAAC;;AAG9F,eAAsB,SACrB,SACA,QACqB;AACrB,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,OAAO;;AAGlE,eAAsB,cACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,GAAG,cAAc;;AAG5E,eAAsB,mBACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,QAAQ,UAAU,GAAG,cAAc;;AAG7E,eAAsB,qBACrB,SACA,EAAE,MAC0B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,OAAO,UAAU,GAAG,sBAAsB;;AAGpF,eAAsB,4BACrB,SACA,QACgB;AAChB,OAAM,mBAAmB,SAAS,QAAQ,cAAc,OAAiC;;AAQ1F,eAAsB,iBACrB,SACA,EAAE,IAAI,eACmB;AACzB,QAAO,MAAM,mBAAmB,SAAS,SAAS,UAAU,GAAG,QAAQ,EAAE,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/rest-api-client",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.14.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"LICENSE.md",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"js-base64": "3.7.2",
|
|
27
27
|
"axios": "1.13.5",
|
|
28
28
|
"flatted": "3.2.7",
|
|
29
|
-
"@n8n/api-types": "1.
|
|
30
|
-
"@n8n/
|
|
31
|
-
"@n8n/
|
|
32
|
-
"n8n
|
|
33
|
-
"
|
|
29
|
+
"@n8n/api-types": "1.14.0",
|
|
30
|
+
"@n8n/constants": "0.19.0",
|
|
31
|
+
"@n8n/permissions": "0.54.0",
|
|
32
|
+
"@n8n/utils": "1.26.0",
|
|
33
|
+
"n8n-workflow": "2.14.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"typescript": "5.9.2",
|
|
40
40
|
"vite": "npm:rolldown-vite@latest",
|
|
41
41
|
"vitest": "^3.1.3",
|
|
42
|
-
"@n8n/
|
|
43
|
-
"@n8n/i18n": "2.12.0",
|
|
42
|
+
"@n8n/i18n": "2.14.0",
|
|
44
43
|
"@n8n/typescript-config": "1.3.0",
|
|
45
|
-
"@n8n/vitest-config": "1.7.0"
|
|
44
|
+
"@n8n/vitest-config": "1.7.0",
|
|
45
|
+
"@n8n/eslint-config": "0.0.1"
|
|
46
46
|
},
|
|
47
47
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
48
48
|
"homepage": "https://n8n.io",
|