@n8n/rest-api-client 1.26.0 → 2.0.0-rc.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.
@@ -26,6 +26,6 @@ import { t as dismissBannerPermanently } from "../ui.cjs";
26
26
  import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "../usage.cjs";
27
27
  import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as logout, a as IPersonalizationSurveyAnswersV3, b as signup, c as IUserResponse, d as deleteUser, f as getInviteLink, g as loginCurrentUser, h as login, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getUsers, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getPasswordResetLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as sendForgotPasswordEmail, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as setupOwner } from "../users.cjs";
28
28
  import { t as findWebhook } from "../webhooks.cjs";
29
- import { a as WorkflowVersionId, i as WorkflowVersion, n as WorkflowHistoryActionTypes, o as getWorkflowHistory, r as WorkflowHistoryRequestParams, s as getWorkflowVersion, t as WorkflowHistory } from "../workflowHistory.cjs";
29
+ import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.cjs";
30
30
  import "../index2.cjs";
31
- export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, N8nPromptResponse, N8nPrompts, ProvisioningConfig, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createProjectRole, deleteApiKey, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
31
+ export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, N8nPromptResponse, N8nPrompts, ProvisioningConfig, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createProjectRole, deleteApiKey, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
@@ -26,6 +26,6 @@ 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
27
  import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as logout, a as IPersonalizationSurveyAnswersV3, b as signup, c as IUserResponse, d as deleteUser, f as getInviteLink, g as loginCurrentUser, h as login, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getUsers, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getPasswordResetLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as sendForgotPasswordEmail, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as setupOwner } from "../users.mjs";
28
28
  import { t as findWebhook } from "../webhooks.mjs";
29
- import { a as WorkflowVersionId, i as WorkflowVersion, n as WorkflowHistoryActionTypes, o as getWorkflowHistory, r as WorkflowHistoryRequestParams, s as getWorkflowVersion, t as WorkflowHistory } from "../workflowHistory.mjs";
29
+ import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.mjs";
30
30
  import "../index2.mjs";
31
- export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, N8nPromptResponse, N8nPrompts, ProvisioningConfig, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createProjectRole, deleteApiKey, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
31
+ export { ApiMessageEventBusDestinationOptions, Cloud, CurrentUserResponse, DisableMfaParams, DynamicNotification, IPersonalizationLatestVersion, IPersonalizationSurveyAnswersV1, IPersonalizationSurveyAnswersV2, IPersonalizationSurveyAnswersV3, IPersonalizationSurveyVersions, ITag, ITemplatesCategory, ITemplatesCollection, ITemplatesCollectionFull, ITemplatesCollectionResponse, ITemplatesNode, ITemplatesQuery, ITemplatesWorkflow, ITemplatesWorkflowFull, ITemplatesWorkflowInfo, ITemplatesWorkflowResponse, IUser, IUserResponse, IWorkflowTemplate, IWorkflowTemplateNode, IWorkflowTemplateNodeCredentials, InstanceUsage, LdapConfig, LdapSyncData, LdapSyncTable, N8nPromptResponse, N8nPrompts, ProvisioningConfig, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createProjectRole, deleteApiKey, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, registerCommunityEdition, reloadProvider, renewLicense, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
@@ -1,3 +1,3 @@
1
1
  import "../types2.cjs";
2
- import { a as WorkflowVersionId, i as WorkflowVersion, n as WorkflowHistoryActionTypes, o as getWorkflowHistory, r as WorkflowHistoryRequestParams, s as getWorkflowVersion, t as WorkflowHistory } from "../workflowHistory.cjs";
3
- export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion };
2
+ import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.cjs";
3
+ export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion };
@@ -1,3 +1,3 @@
1
1
  import "../types2.mjs";
2
- import { a as WorkflowVersionId, i as WorkflowVersion, n as WorkflowHistoryActionTypes, o as getWorkflowHistory, r as WorkflowHistoryRequestParams, s as getWorkflowVersion, t as WorkflowHistory } from "../workflowHistory.mjs";
3
- export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion };
2
+ import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "../workflowHistory.mjs";
3
+ export { WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, getWorkflowHistory, getWorkflowVersion };
package/dist/index.d.cts CHANGED
@@ -26,7 +26,7 @@ import { t as dismissBannerPermanently } from "./ui.cjs";
26
26
  import { a as requestLicenseTrial, i as renewLicense, n as getLicense, r as registerCommunityEdition, t as activateLicenseKey } from "./usage.cjs";
27
27
  import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as logout, a as IPersonalizationSurveyAnswersV3, b as signup, c as IUserResponse, d as deleteUser, f as getInviteLink, g as loginCurrentUser, h as login, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getUsers, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getPasswordResetLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as sendForgotPasswordEmail, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as setupOwner } from "./users.cjs";
28
28
  import { t as findWebhook } from "./webhooks.cjs";
29
- import { a as WorkflowVersionId, i as WorkflowVersion, n as WorkflowHistoryActionTypes, o as getWorkflowHistory, r as WorkflowHistoryRequestParams, s as getWorkflowVersion, t as WorkflowHistory } from "./workflowHistory.cjs";
29
+ import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "./workflowHistory.cjs";
30
30
  import "./index2.cjs";
31
31
  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";
32
- 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, N8nPromptResponse, N8nPrompts, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createProjectRole, deleteApiKey, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
32
+ 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, N8nPromptResponse, N8nPrompts, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createProjectRole, deleteApiKey, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
package/dist/index.d.mts CHANGED
@@ -26,7 +26,7 @@ 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
27
  import { C as updateCurrentUserPassword, D as validatePasswordToken, E as updateOtherUserSettings, O as validateSignupToken, S as updateCurrentUser, T as updateGlobalRole, _ as logout, a as IPersonalizationSurveyAnswersV3, b as signup, c as IUserResponse, d as deleteUser, f as getInviteLink, g as loginCurrentUser, h as login, i as IPersonalizationSurveyAnswersV2, l as UpdateGlobalRolePayload, m as getUsers, n as IPersonalizationLatestVersion, o as IPersonalizationSurveyVersions, p as getPasswordResetLink, r as IPersonalizationSurveyAnswersV1, s as IUser, t as CurrentUserResponse, u as changePassword, v as sendForgotPasswordEmail, w as updateCurrentUserSettings, x as submitPersonalizationSurvey, y as setupOwner } from "./users.mjs";
28
28
  import { t as findWebhook } from "./webhooks.mjs";
29
- import { a as WorkflowVersionId, i as WorkflowVersion, n as WorkflowHistoryActionTypes, o as getWorkflowHistory, r as WorkflowHistoryRequestParams, s as getWorkflowVersion, t as WorkflowHistory } from "./workflowHistory.mjs";
29
+ import { a as WorkflowVersion, c as getWorkflowVersion, i as WorkflowPublishHistory, n as WorkflowHistoryActionTypes, o as WorkflowVersionId, r as WorkflowHistoryRequestParams, s as getWorkflowHistory, t as WorkflowHistory } from "./workflowHistory.mjs";
30
30
  import "./index2.mjs";
31
31
  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";
32
- 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, N8nPromptResponse, N8nPrompts, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createProjectRole, deleteApiKey, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
32
+ 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, N8nPromptResponse, N8nPrompts, NO_NETWORK_ERROR_CODE, ProvisioningConfig, ResponseError, STREAM_SEPARATOR, SamlPreferencesExtractedData, TemplateSearchFacet, UpdateGlobalRolePayload, Version, VersionNode, WhatsNewArticle, WhatsNewSection, WorkflowData, WorkflowDataCreate, WorkflowDataUpdate, WorkflowHistory, WorkflowHistoryActionTypes, WorkflowHistoryRequestParams, WorkflowMetadata, WorkflowPublishHistory, WorkflowVersion, WorkflowVersionId, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createProjectRole, deleteApiKey, deleteDestinationFromDb, deleteProjectRole, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getCollectionById, getCollections, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFullApiResponse, getInstalledCommunityNodes, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypes, getNodesInformation, getOidcConfig, getPasswordResetLink, getPromptsData, getProvisioningConfig, getResourceLocatorResults, getResourceMapperFields, getRoleBySlug, getRoles, getSamlConfig, getSamlMetadata, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, login, loginCurrentUser, logout, makeRestApiRequest, patch, post, registerCommunityEdition, reloadProvider, renewLicense, request, requestLicenseTrial, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, signup, streamRequest, submitContactInfo, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testSamlConfig, toggleSamlConfig, uninstallPackage, updateApiKey, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectRole, updateProvider, validatePasswordToken, validateSignupToken, verifyMfaCode };
@@ -1 +1 @@
1
- {"version":3,"file":"workflowHistory.cjs","names":["get"],"sources":["../src/api/workflowHistory.ts"],"sourcesContent":["import type { IConnections, INode } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { get } from '../utils';\n\nexport type WorkflowHistory = {\n\tversionId: string;\n\tauthors: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n};\n\nexport type WorkflowVersionId = WorkflowHistory['versionId'];\n\nexport type WorkflowVersion = WorkflowHistory & {\n\tworkflowId: string;\n\tnodes: INode[];\n\tconnections: IConnections;\n};\n\nexport type WorkflowHistoryActionTypes = ['restore', 'clone', 'open', 'download'];\n\nexport type WorkflowHistoryRequestParams = { take: number; skip?: number };\n\nexport const getWorkflowHistory = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tqueryParams: WorkflowHistoryRequestParams,\n): Promise<WorkflowHistory[]> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}`,\n\t\tqueryParams,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersion = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionId: string,\n): Promise<WorkflowVersion> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/version/${versionId}`,\n\t);\n\treturn data;\n};\n"],"mappings":";;;AAwBA,MAAa,qBAAqB,OACjC,SACA,YACA,gBACgC;CAChC,MAAM,EAAE,SAAS,MAAMA,kBACtB,QAAQ,SACR,8BAA8B,cAC9B,YACA;AACD,QAAO;;AAGR,MAAa,qBAAqB,OACjC,SACA,YACA,cAC8B;CAC9B,MAAM,EAAE,SAAS,MAAMA,kBACtB,QAAQ,SACR,8BAA8B,WAAW,WAAW,YACpD;AACD,QAAO"}
1
+ {"version":3,"file":"workflowHistory.cjs","names":["get"],"sources":["../src/api/workflowHistory.ts"],"sourcesContent":["import type { IConnections, INode } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { get } from '../utils';\n\nexport type WorkflowHistory = {\n\tversionId: string;\n\tauthors: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tworkflowPublishHistory: WorkflowPublishHistory[];\n\tname: string | null;\n\tdescription: string | null;\n};\n\nexport type WorkflowPublishHistory = {\n\tcreatedAt: string;\n\tid: number;\n\tevent: 'activated' | 'deactivated';\n\tuserId: string | null;\n\tversionId: string;\n\tworkflowId: string;\n};\n\nexport type WorkflowVersionId = WorkflowHistory['versionId'];\n\nexport type WorkflowVersion = WorkflowHistory & {\n\tworkflowId: string;\n\tnodes: INode[];\n\tconnections: IConnections;\n};\n\nexport type WorkflowHistoryActionTypes = Array<\n\t'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download'\n>;\n\nexport type WorkflowHistoryRequestParams = { take: number; skip?: number };\n\nexport const getWorkflowHistory = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tqueryParams: WorkflowHistoryRequestParams,\n): Promise<WorkflowHistory[]> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}`,\n\t\tqueryParams,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersion = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionId: string,\n): Promise<WorkflowVersion> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/version/${versionId}`,\n\t);\n\treturn data;\n};\n"],"mappings":";;;AAsCA,MAAa,qBAAqB,OACjC,SACA,YACA,gBACgC;CAChC,MAAM,EAAE,SAAS,MAAMA,kBACtB,QAAQ,SACR,8BAA8B,cAC9B,YACA;AACD,QAAO;;AAGR,MAAa,qBAAqB,OACjC,SACA,YACA,cAC8B;CAC9B,MAAM,EAAE,SAAS,MAAMA,kBACtB,QAAQ,SACR,8BAA8B,WAAW,WAAW,YACpD;AACD,QAAO"}
@@ -7,6 +7,17 @@ type WorkflowHistory = {
7
7
  authors: string;
8
8
  createdAt: string;
9
9
  updatedAt: string;
10
+ workflowPublishHistory: WorkflowPublishHistory[];
11
+ name: string | null;
12
+ description: string | null;
13
+ };
14
+ type WorkflowPublishHistory = {
15
+ createdAt: string;
16
+ id: number;
17
+ event: 'activated' | 'deactivated';
18
+ userId: string | null;
19
+ versionId: string;
20
+ workflowId: string;
10
21
  };
11
22
  type WorkflowVersionId = WorkflowHistory['versionId'];
12
23
  type WorkflowVersion = WorkflowHistory & {
@@ -14,7 +25,7 @@ type WorkflowVersion = WorkflowHistory & {
14
25
  nodes: INode[];
15
26
  connections: IConnections;
16
27
  };
17
- type WorkflowHistoryActionTypes = ['restore', 'clone', 'open', 'download'];
28
+ type WorkflowHistoryActionTypes = Array<'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download'>;
18
29
  type WorkflowHistoryRequestParams = {
19
30
  take: number;
20
31
  skip?: number;
@@ -22,5 +33,5 @@ type WorkflowHistoryRequestParams = {
22
33
  declare const getWorkflowHistory: (context: IRestApiContext, workflowId: string, queryParams: WorkflowHistoryRequestParams) => Promise<WorkflowHistory[]>;
23
34
  declare const getWorkflowVersion: (context: IRestApiContext, workflowId: string, versionId: string) => Promise<WorkflowVersion>;
24
35
  //#endregion
25
- export { WorkflowVersionId as a, WorkflowVersion as i, WorkflowHistoryActionTypes as n, getWorkflowHistory as o, WorkflowHistoryRequestParams as r, getWorkflowVersion as s, WorkflowHistory as t };
36
+ export { WorkflowVersion as a, getWorkflowVersion as c, WorkflowPublishHistory as i, WorkflowHistoryActionTypes as n, WorkflowVersionId as o, WorkflowHistoryRequestParams as r, getWorkflowHistory as s, WorkflowHistory as t };
26
37
  //# sourceMappingURL=workflowHistory.d.cts.map
@@ -7,6 +7,17 @@ type WorkflowHistory = {
7
7
  authors: string;
8
8
  createdAt: string;
9
9
  updatedAt: string;
10
+ workflowPublishHistory: WorkflowPublishHistory[];
11
+ name: string | null;
12
+ description: string | null;
13
+ };
14
+ type WorkflowPublishHistory = {
15
+ createdAt: string;
16
+ id: number;
17
+ event: 'activated' | 'deactivated';
18
+ userId: string | null;
19
+ versionId: string;
20
+ workflowId: string;
10
21
  };
11
22
  type WorkflowVersionId = WorkflowHistory['versionId'];
12
23
  type WorkflowVersion = WorkflowHistory & {
@@ -14,7 +25,7 @@ type WorkflowVersion = WorkflowHistory & {
14
25
  nodes: INode[];
15
26
  connections: IConnections;
16
27
  };
17
- type WorkflowHistoryActionTypes = ['restore', 'clone', 'open', 'download'];
28
+ type WorkflowHistoryActionTypes = Array<'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download'>;
18
29
  type WorkflowHistoryRequestParams = {
19
30
  take: number;
20
31
  skip?: number;
@@ -22,5 +33,5 @@ type WorkflowHistoryRequestParams = {
22
33
  declare const getWorkflowHistory: (context: IRestApiContext, workflowId: string, queryParams: WorkflowHistoryRequestParams) => Promise<WorkflowHistory[]>;
23
34
  declare const getWorkflowVersion: (context: IRestApiContext, workflowId: string, versionId: string) => Promise<WorkflowVersion>;
24
35
  //#endregion
25
- export { WorkflowVersionId as a, WorkflowVersion as i, WorkflowHistoryActionTypes as n, getWorkflowHistory as o, WorkflowHistoryRequestParams as r, getWorkflowVersion as s, WorkflowHistory as t };
36
+ export { WorkflowVersion as a, getWorkflowVersion as c, WorkflowPublishHistory as i, WorkflowHistoryActionTypes as n, WorkflowVersionId as o, WorkflowHistoryRequestParams as r, getWorkflowHistory as s, WorkflowHistory as t };
26
37
  //# sourceMappingURL=workflowHistory.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflowHistory.mjs","names":[],"sources":["../src/api/workflowHistory.ts"],"sourcesContent":["import type { IConnections, INode } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { get } from '../utils';\n\nexport type WorkflowHistory = {\n\tversionId: string;\n\tauthors: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n};\n\nexport type WorkflowVersionId = WorkflowHistory['versionId'];\n\nexport type WorkflowVersion = WorkflowHistory & {\n\tworkflowId: string;\n\tnodes: INode[];\n\tconnections: IConnections;\n};\n\nexport type WorkflowHistoryActionTypes = ['restore', 'clone', 'open', 'download'];\n\nexport type WorkflowHistoryRequestParams = { take: number; skip?: number };\n\nexport const getWorkflowHistory = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tqueryParams: WorkflowHistoryRequestParams,\n): Promise<WorkflowHistory[]> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}`,\n\t\tqueryParams,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersion = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionId: string,\n): Promise<WorkflowVersion> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/version/${versionId}`,\n\t);\n\treturn data;\n};\n"],"mappings":";;;AAwBA,MAAa,qBAAqB,OACjC,SACA,YACA,gBACgC;CAChC,MAAM,EAAE,SAAS,MAAM,IACtB,QAAQ,SACR,8BAA8B,cAC9B,YACA;AACD,QAAO;;AAGR,MAAa,qBAAqB,OACjC,SACA,YACA,cAC8B;CAC9B,MAAM,EAAE,SAAS,MAAM,IACtB,QAAQ,SACR,8BAA8B,WAAW,WAAW,YACpD;AACD,QAAO"}
1
+ {"version":3,"file":"workflowHistory.mjs","names":[],"sources":["../src/api/workflowHistory.ts"],"sourcesContent":["import type { IConnections, INode } from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { get } from '../utils';\n\nexport type WorkflowHistory = {\n\tversionId: string;\n\tauthors: string;\n\tcreatedAt: string;\n\tupdatedAt: string;\n\tworkflowPublishHistory: WorkflowPublishHistory[];\n\tname: string | null;\n\tdescription: string | null;\n};\n\nexport type WorkflowPublishHistory = {\n\tcreatedAt: string;\n\tid: number;\n\tevent: 'activated' | 'deactivated';\n\tuserId: string | null;\n\tversionId: string;\n\tworkflowId: string;\n};\n\nexport type WorkflowVersionId = WorkflowHistory['versionId'];\n\nexport type WorkflowVersion = WorkflowHistory & {\n\tworkflowId: string;\n\tnodes: INode[];\n\tconnections: IConnections;\n};\n\nexport type WorkflowHistoryActionTypes = Array<\n\t'restore' | 'publish' | 'unpublish' | 'clone' | 'open' | 'download'\n>;\n\nexport type WorkflowHistoryRequestParams = { take: number; skip?: number };\n\nexport const getWorkflowHistory = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tqueryParams: WorkflowHistoryRequestParams,\n): Promise<WorkflowHistory[]> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}`,\n\t\tqueryParams,\n\t);\n\treturn data;\n};\n\nexport const getWorkflowVersion = async (\n\tcontext: IRestApiContext,\n\tworkflowId: string,\n\tversionId: string,\n): Promise<WorkflowVersion> => {\n\tconst { data } = await get(\n\t\tcontext.baseUrl,\n\t\t`/workflow-history/workflow/${workflowId}/version/${versionId}`,\n\t);\n\treturn data;\n};\n"],"mappings":";;;AAsCA,MAAa,qBAAqB,OACjC,SACA,YACA,gBACgC;CAChC,MAAM,EAAE,SAAS,MAAM,IACtB,QAAQ,SACR,8BAA8B,cAC9B,YACA;AACD,QAAO;;AAGR,MAAa,qBAAqB,OACjC,SACA,YACA,cAC8B;CAC9B,MAAM,EAAE,SAAS,MAAM,IACtB,QAAQ,SACR,8BAA8B,WAAW,WAAW,YACpD;AACD,QAAO"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@n8n/rest-api-client",
3
3
  "type": "module",
4
- "version": "1.26.0",
4
+ "version": "2.0.0-rc.0",
5
5
  "files": [
6
6
  "dist",
7
- "LICENSE.md",
8
- "LICENSE_EE.md"
7
+ "LICENSE_EE.md",
8
+ "LICENSE.md"
9
9
  ],
10
10
  "main": "./dist/index.cjs",
11
11
  "module": "./dist/index.mjs",
@@ -26,11 +26,11 @@
26
26
  "js-base64": "3.7.2",
27
27
  "axios": "1.12.0",
28
28
  "flatted": "3.2.7",
29
- "@n8n/api-types": "0.57.0",
29
+ "@n8n/api-types": "1.0.0-rc.0",
30
30
  "@n8n/constants": "0.14.0",
31
- "@n8n/permissions": "0.43.0",
32
31
  "@n8n/utils": "1.20.0",
33
- "n8n-workflow": "1.120.0"
32
+ "@n8n/permissions": "0.43.0",
33
+ "n8n-workflow": "2.0.0-rc.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@testing-library/jest-dom": "^6.6.3",
@@ -40,7 +40,7 @@
40
40
  "vite": "npm:rolldown-vite@latest",
41
41
  "vitest": "^3.1.3",
42
42
  "@n8n/eslint-config": "0.0.1",
43
- "@n8n/i18n": "1.27.0",
43
+ "@n8n/i18n": "2.0.0-rc.0",
44
44
  "@n8n/typescript-config": "1.3.0",
45
45
  "@n8n/vitest-config": "1.5.0"
46
46
  },