@n8n/rest-api-client 2.33.0 → 2.34.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/breaking-changes.cjs +4 -0
- package/dist/api/breaking-changes.cjs.map +1 -1
- package/dist/api/breaking-changes.d.cts +3 -2
- package/dist/api/breaking-changes.d.mts +3 -2
- package/dist/api/breaking-changes.mjs +4 -1
- package/dist/api/breaking-changes.mjs.map +1 -1
- package/dist/api/cloudPlans.cjs +1 -0
- package/dist/api/cloudPlans.d.cts +2 -2
- package/dist/api/cloudPlans.d.mts +2 -2
- package/dist/api/cloudPlans.mjs +2 -2
- package/dist/api/index.cjs +2 -0
- package/dist/api/index.d.cts +3 -3
- package/dist/api/index.d.mts +3 -3
- package/dist/api/index.mjs +3 -3
- package/dist/api/sso.cjs +1 -0
- package/dist/api/sso.d.cts +2 -2
- package/dist/api/sso.d.mts +2 -2
- package/dist/api/sso.mjs +2 -2
- package/dist/cloudPlans.cjs +9 -0
- package/dist/cloudPlans.cjs.map +1 -1
- package/dist/cloudPlans.d.cts +20 -1
- package/dist/cloudPlans.d.mts +20 -1
- package/dist/cloudPlans.mjs +4 -1
- package/dist/cloudPlans.mjs.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/nodeTypes.cjs +2 -2
- package/dist/nodeTypes.cjs.map +1 -1
- package/dist/nodeTypes.mjs +1 -1
- package/dist/nodeTypes.mjs.map +1 -1
- package/dist/provisioning.cjs.map +1 -1
- package/dist/provisioning.d.cts +1 -0
- package/dist/provisioning.d.mts +1 -0
- package/dist/provisioning.mjs.map +1 -1
- package/dist/sso.cjs +9 -0
- package/dist/sso.cjs.map +1 -1
- package/dist/sso.d.cts +5 -1
- package/dist/sso.d.mts +5 -1
- package/dist/sso.mjs +4 -1
- package/dist/sso.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -10,9 +10,13 @@ async function refreshReport(context, query) {
|
|
|
10
10
|
async function getReportForRule(context, ruleId) {
|
|
11
11
|
return (await require_utils.get(context.baseUrl, `/breaking-changes/report/${ruleId}`)).data;
|
|
12
12
|
}
|
|
13
|
+
async function migrateWorkflowForRule(context, ruleId, workflowId) {
|
|
14
|
+
return await require_utils.makeRestApiRequest(context, "POST", `/breaking-changes/report/${ruleId}/workflows/${workflowId}/migrate`);
|
|
15
|
+
}
|
|
13
16
|
|
|
14
17
|
//#endregion
|
|
15
18
|
exports.getReport = getReport;
|
|
16
19
|
exports.getReportForRule = getReportForRule;
|
|
20
|
+
exports.migrateWorkflowForRule = migrateWorkflowForRule;
|
|
17
21
|
exports.refreshReport = refreshReport;
|
|
18
22
|
//# sourceMappingURL=breaking-changes.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breaking-changes.cjs","names":["get","makeRestApiRequest"],"sources":["../../src/api/breaking-changes.ts"],"sourcesContent":["import type {\n\tBreakingChangeLightReportResult,\n\tBreakingChangeWorkflowRuleResult,\n\tBreakingChangeVersion,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest, get } from '../utils';\n\ntype BreakingChangeQuery = {\n\tversion?: BreakingChangeVersion;\n};\n\nexport async function getReport(\n\tcontext: IRestApiContext,\n\tquery?: BreakingChangeQuery,\n): Promise<BreakingChangeLightReportResult> {\n\treturn (await get(context.baseUrl, '/breaking-changes/report', query)).data;\n}\n\nexport async function refreshReport(\n\tcontext: IRestApiContext,\n\tquery?: BreakingChangeQuery,\n): Promise<BreakingChangeLightReportResult> {\n\tconst refreshUrl = query?.version\n\t\t? `/breaking-changes/report/refresh?version=${query.version}`\n\t\t: '/breaking-changes/report/refresh';\n\n\treturn await makeRestApiRequest(context, 'POST', refreshUrl);\n}\n\nexport async function getReportForRule(\n\tcontext: IRestApiContext,\n\truleId: string,\n): Promise<BreakingChangeWorkflowRuleResult> {\n\treturn (await get(context.baseUrl, `/breaking-changes/report/${ruleId}`)).data;\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"breaking-changes.cjs","names":["get","makeRestApiRequest"],"sources":["../../src/api/breaking-changes.ts"],"sourcesContent":["import type {\n\tBreakingChangeLightReportResult,\n\tBreakingChangeWorkflowRuleResult,\n\tBreakingChangeVersion,\n\tWorkflowMigrationResult,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest, get } from '../utils';\n\ntype BreakingChangeQuery = {\n\tversion?: BreakingChangeVersion;\n};\n\nexport async function getReport(\n\tcontext: IRestApiContext,\n\tquery?: BreakingChangeQuery,\n): Promise<BreakingChangeLightReportResult> {\n\treturn (await get(context.baseUrl, '/breaking-changes/report', query)).data;\n}\n\nexport async function refreshReport(\n\tcontext: IRestApiContext,\n\tquery?: BreakingChangeQuery,\n): Promise<BreakingChangeLightReportResult> {\n\tconst refreshUrl = query?.version\n\t\t? `/breaking-changes/report/refresh?version=${query.version}`\n\t\t: '/breaking-changes/report/refresh';\n\n\treturn await makeRestApiRequest(context, 'POST', refreshUrl);\n}\n\nexport async function getReportForRule(\n\tcontext: IRestApiContext,\n\truleId: string,\n): Promise<BreakingChangeWorkflowRuleResult> {\n\treturn (await get(context.baseUrl, `/breaking-changes/report/${ruleId}`)).data;\n}\n\nexport async function migrateWorkflowForRule(\n\tcontext: IRestApiContext,\n\truleId: string,\n\tworkflowId: string,\n): Promise<WorkflowMigrationResult> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/breaking-changes/report/${ruleId}/workflows/${workflowId}/migrate`,\n\t);\n}\n"],"mappings":";;;AAcA,eAAsB,UACrB,SACA,OAC2C;AAC3C,SAAQ,MAAMA,kBAAI,QAAQ,SAAS,4BAA4B,MAAM,EAAE;;AAGxE,eAAsB,cACrB,SACA,OAC2C;AAK3C,QAAO,MAAMC,iCAAmB,SAAS,QAJtB,OAAO,UACvB,4CAA4C,MAAM,YAClD,mCAEyD;;AAG7D,eAAsB,iBACrB,SACA,QAC4C;AAC5C,SAAQ,MAAMD,kBAAI,QAAQ,SAAS,4BAA4B,SAAS,EAAE;;AAG3E,eAAsB,uBACrB,SACA,QACA,YACmC;AACnC,QAAO,MAAMC,iCACZ,SACA,QACA,4BAA4B,OAAO,aAAa,WAAW,UAC3D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as IRestApiContext } from "../types2.cjs";
|
|
2
|
-
import { BreakingChangeLightReportResult, BreakingChangeVersion, BreakingChangeWorkflowRuleResult } from "@n8n/api-types";
|
|
2
|
+
import { BreakingChangeLightReportResult, BreakingChangeVersion, BreakingChangeWorkflowRuleResult, WorkflowMigrationResult } from "@n8n/api-types";
|
|
3
3
|
|
|
4
4
|
//#region src/api/breaking-changes.d.ts
|
|
5
5
|
type BreakingChangeQuery = {
|
|
@@ -8,6 +8,7 @@ type BreakingChangeQuery = {
|
|
|
8
8
|
declare function getReport(context: IRestApiContext, query?: BreakingChangeQuery): Promise<BreakingChangeLightReportResult>;
|
|
9
9
|
declare function refreshReport(context: IRestApiContext, query?: BreakingChangeQuery): Promise<BreakingChangeLightReportResult>;
|
|
10
10
|
declare function getReportForRule(context: IRestApiContext, ruleId: string): Promise<BreakingChangeWorkflowRuleResult>;
|
|
11
|
+
declare function migrateWorkflowForRule(context: IRestApiContext, ruleId: string, workflowId: string): Promise<WorkflowMigrationResult>;
|
|
11
12
|
//#endregion
|
|
12
|
-
export { getReport, getReportForRule, refreshReport };
|
|
13
|
+
export { getReport, getReportForRule, migrateWorkflowForRule, refreshReport };
|
|
13
14
|
//# sourceMappingURL=breaking-changes.d.cts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as IRestApiContext } from "../types2.mjs";
|
|
2
|
-
import { BreakingChangeLightReportResult, BreakingChangeVersion, BreakingChangeWorkflowRuleResult } from "@n8n/api-types";
|
|
2
|
+
import { BreakingChangeLightReportResult, BreakingChangeVersion, BreakingChangeWorkflowRuleResult, WorkflowMigrationResult } from "@n8n/api-types";
|
|
3
3
|
|
|
4
4
|
//#region src/api/breaking-changes.d.ts
|
|
5
5
|
type BreakingChangeQuery = {
|
|
@@ -8,6 +8,7 @@ type BreakingChangeQuery = {
|
|
|
8
8
|
declare function getReport(context: IRestApiContext, query?: BreakingChangeQuery): Promise<BreakingChangeLightReportResult>;
|
|
9
9
|
declare function refreshReport(context: IRestApiContext, query?: BreakingChangeQuery): Promise<BreakingChangeLightReportResult>;
|
|
10
10
|
declare function getReportForRule(context: IRestApiContext, ruleId: string): Promise<BreakingChangeWorkflowRuleResult>;
|
|
11
|
+
declare function migrateWorkflowForRule(context: IRestApiContext, ruleId: string, workflowId: string): Promise<WorkflowMigrationResult>;
|
|
11
12
|
//#endregion
|
|
12
|
-
export { getReport, getReportForRule, refreshReport };
|
|
13
|
+
export { getReport, getReportForRule, migrateWorkflowForRule, refreshReport };
|
|
13
14
|
//# sourceMappingURL=breaking-changes.d.mts.map
|
|
@@ -10,7 +10,10 @@ async function refreshReport(context, query) {
|
|
|
10
10
|
async function getReportForRule(context, ruleId) {
|
|
11
11
|
return (await get(context.baseUrl, `/breaking-changes/report/${ruleId}`)).data;
|
|
12
12
|
}
|
|
13
|
+
async function migrateWorkflowForRule(context, ruleId, workflowId) {
|
|
14
|
+
return await makeRestApiRequest(context, "POST", `/breaking-changes/report/${ruleId}/workflows/${workflowId}/migrate`);
|
|
15
|
+
}
|
|
13
16
|
|
|
14
17
|
//#endregion
|
|
15
|
-
export { getReport, getReportForRule, refreshReport };
|
|
18
|
+
export { getReport, getReportForRule, migrateWorkflowForRule, refreshReport };
|
|
16
19
|
//# sourceMappingURL=breaking-changes.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breaking-changes.mjs","names":[],"sources":["../../src/api/breaking-changes.ts"],"sourcesContent":["import type {\n\tBreakingChangeLightReportResult,\n\tBreakingChangeWorkflowRuleResult,\n\tBreakingChangeVersion,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest, get } from '../utils';\n\ntype BreakingChangeQuery = {\n\tversion?: BreakingChangeVersion;\n};\n\nexport async function getReport(\n\tcontext: IRestApiContext,\n\tquery?: BreakingChangeQuery,\n): Promise<BreakingChangeLightReportResult> {\n\treturn (await get(context.baseUrl, '/breaking-changes/report', query)).data;\n}\n\nexport async function refreshReport(\n\tcontext: IRestApiContext,\n\tquery?: BreakingChangeQuery,\n): Promise<BreakingChangeLightReportResult> {\n\tconst refreshUrl = query?.version\n\t\t? `/breaking-changes/report/refresh?version=${query.version}`\n\t\t: '/breaking-changes/report/refresh';\n\n\treturn await makeRestApiRequest(context, 'POST', refreshUrl);\n}\n\nexport async function getReportForRule(\n\tcontext: IRestApiContext,\n\truleId: string,\n): Promise<BreakingChangeWorkflowRuleResult> {\n\treturn (await get(context.baseUrl, `/breaking-changes/report/${ruleId}`)).data;\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"breaking-changes.mjs","names":[],"sources":["../../src/api/breaking-changes.ts"],"sourcesContent":["import type {\n\tBreakingChangeLightReportResult,\n\tBreakingChangeWorkflowRuleResult,\n\tBreakingChangeVersion,\n\tWorkflowMigrationResult,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest, get } from '../utils';\n\ntype BreakingChangeQuery = {\n\tversion?: BreakingChangeVersion;\n};\n\nexport async function getReport(\n\tcontext: IRestApiContext,\n\tquery?: BreakingChangeQuery,\n): Promise<BreakingChangeLightReportResult> {\n\treturn (await get(context.baseUrl, '/breaking-changes/report', query)).data;\n}\n\nexport async function refreshReport(\n\tcontext: IRestApiContext,\n\tquery?: BreakingChangeQuery,\n): Promise<BreakingChangeLightReportResult> {\n\tconst refreshUrl = query?.version\n\t\t? `/breaking-changes/report/refresh?version=${query.version}`\n\t\t: '/breaking-changes/report/refresh';\n\n\treturn await makeRestApiRequest(context, 'POST', refreshUrl);\n}\n\nexport async function getReportForRule(\n\tcontext: IRestApiContext,\n\truleId: string,\n): Promise<BreakingChangeWorkflowRuleResult> {\n\treturn (await get(context.baseUrl, `/breaking-changes/report/${ruleId}`)).data;\n}\n\nexport async function migrateWorkflowForRule(\n\tcontext: IRestApiContext,\n\truleId: string,\n\tworkflowId: string,\n): Promise<WorkflowMigrationResult> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t`/breaking-changes/report/${ruleId}/workflows/${workflowId}/migrate`,\n\t);\n}\n"],"mappings":";;;AAcA,eAAsB,UACrB,SACA,OAC2C;AAC3C,SAAQ,MAAM,IAAI,QAAQ,SAAS,4BAA4B,MAAM,EAAE;;AAGxE,eAAsB,cACrB,SACA,OAC2C;AAK3C,QAAO,MAAM,mBAAmB,SAAS,QAJtB,OAAO,UACvB,4CAA4C,MAAM,YAClD,mCAEyD;;AAG7D,eAAsB,iBACrB,SACA,QAC4C;AAC5C,SAAQ,MAAM,IAAI,QAAQ,SAAS,4BAA4B,SAAS,EAAE;;AAG3E,eAAsB,uBACrB,SACA,QACA,YACmC;AACnC,QAAO,MAAM,mBACZ,SACA,QACA,4BAA4B,OAAO,aAAa,WAAW,UAC3D"}
|
package/dist/api/cloudPlans.cjs
CHANGED
|
@@ -5,5 +5,6 @@ exports.getAdminPanelLoginCode = require_cloudPlans.getAdminPanelLoginCode;
|
|
|
5
5
|
exports.getCloudUserInfo = require_cloudPlans.getCloudUserInfo;
|
|
6
6
|
exports.getCurrentPlan = require_cloudPlans.getCurrentPlan;
|
|
7
7
|
exports.getCurrentUsage = require_cloudPlans.getCurrentUsage;
|
|
8
|
+
exports.getUpgradeOffer = require_cloudPlans.getUpgradeOffer;
|
|
8
9
|
exports.sendConfirmationEmail = require_cloudPlans.sendConfirmationEmail;
|
|
9
10
|
exports.sendUserEvent = require_cloudPlans.sendUserEvent;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../types2.cjs";
|
|
2
|
-
import { a as getCloudUserInfo, c as
|
|
3
|
-
export { Cloud, DynamicNotification, InstanceUsage, getAdminPanelLoginCode, getCloudUserInfo, getCurrentPlan, getCurrentUsage, sendConfirmationEmail, sendUserEvent };
|
|
2
|
+
import { a as getCloudUserInfo, c as getUpgradeOffer, i as getAdminPanelLoginCode, l as sendConfirmationEmail, n as DynamicNotification, o as getCurrentPlan, r as InstanceUsage, s as getCurrentUsage, t as Cloud, u as sendUserEvent } from "../cloudPlans.cjs";
|
|
3
|
+
export { Cloud, DynamicNotification, InstanceUsage, getAdminPanelLoginCode, getCloudUserInfo, getCurrentPlan, getCurrentUsage, getUpgradeOffer, sendConfirmationEmail, sendUserEvent };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../types2.mjs";
|
|
2
|
-
import { a as getCloudUserInfo, c as
|
|
3
|
-
export { Cloud, DynamicNotification, InstanceUsage, getAdminPanelLoginCode, getCloudUserInfo, getCurrentPlan, getCurrentUsage, sendConfirmationEmail, sendUserEvent };
|
|
2
|
+
import { a as getCloudUserInfo, c as getUpgradeOffer, i as getAdminPanelLoginCode, l as sendConfirmationEmail, n as DynamicNotification, o as getCurrentPlan, r as InstanceUsage, s as getCurrentUsage, t as Cloud, u as sendUserEvent } from "../cloudPlans.mjs";
|
|
3
|
+
export { Cloud, DynamicNotification, InstanceUsage, getAdminPanelLoginCode, getCloudUserInfo, getCurrentPlan, getCurrentUsage, getUpgradeOffer, sendConfirmationEmail, sendUserEvent };
|
package/dist/api/cloudPlans.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../utils2.mjs";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as getUpgradeOffer, i as getCurrentUsage, n as getCloudUserInfo, o as sendConfirmationEmail, r as getCurrentPlan, s as sendUserEvent, t as getAdminPanelLoginCode } from "../cloudPlans.mjs";
|
|
3
3
|
|
|
4
|
-
export { getAdminPanelLoginCode, getCloudUserInfo, getCurrentPlan, getCurrentUsage, sendConfirmationEmail, sendUserEvent };
|
|
4
|
+
export { getAdminPanelLoginCode, getCloudUserInfo, getCurrentPlan, getCurrentUsage, getUpgradeOffer, sendConfirmationEmail, sendUserEvent };
|
package/dist/api/index.cjs
CHANGED
|
@@ -123,6 +123,7 @@ exports.getSecuritySettings = require_security_settings.getSecuritySettings;
|
|
|
123
123
|
exports.getSettings = require_settings.getSettings;
|
|
124
124
|
exports.getTemplateById = require_templates.getTemplateById;
|
|
125
125
|
exports.getThirdPartyLicenses = require_third_party_licenses.getThirdPartyLicenses;
|
|
126
|
+
exports.getUpgradeOffer = require_cloudPlans.getUpgradeOffer;
|
|
126
127
|
exports.getUsers = require_users.getUsers;
|
|
127
128
|
exports.getWhatsNewSection = require_versions.getWhatsNewSection;
|
|
128
129
|
exports.getWorkflowHistory = require_workflowHistory.getWorkflowHistory;
|
|
@@ -139,6 +140,7 @@ exports.login = require_users.login;
|
|
|
139
140
|
exports.loginCurrentUser = require_users.loginCurrentUser;
|
|
140
141
|
exports.logout = require_users.logout;
|
|
141
142
|
exports.moveRoleMappingRule = require_roleMappingRule.moveRoleMappingRule;
|
|
143
|
+
exports.oidcLogout = require_sso.oidcLogout;
|
|
142
144
|
exports.registerCommunityEdition = require_usage.registerCommunityEdition;
|
|
143
145
|
exports.reloadProvider = require_externalSecrets_ee.reloadProvider;
|
|
144
146
|
exports.reloadSecretProviderConnection = require_secretsProvider_ee.reloadSecretProviderConnection;
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../types2.cjs";
|
|
2
2
|
import { t as updateAiUsageSettings } from "../ai-usage.cjs";
|
|
3
3
|
import { a as rotateApiKey, i as getApiKeys, n as deleteApiKey, o as updateApiKey, r as getApiKeyScopes, t as createApiKey } from "../api-keys.cjs";
|
|
4
|
-
import { a as getCloudUserInfo, c as
|
|
4
|
+
import { a as getCloudUserInfo, c as getUpgradeOffer, i as getAdminPanelLoginCode, l as sendConfirmationEmail, n as DynamicNotification, o as getCurrentPlan, r as InstanceUsage, s as getCurrentUsage, t as Cloud, u as sendUserEvent } 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
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";
|
|
@@ -22,7 +22,7 @@ import { a as getRoleMembers, c as updateRole, i as getRoleBySlug, n as deleteRo
|
|
|
22
22
|
import { n as updateSecuritySettings, t as getSecuritySettings } from "../security-settings.cjs";
|
|
23
23
|
import { t as getSettings } from "../settings.cjs";
|
|
24
24
|
import { t as getModuleSettings } from "../module-settings.cjs";
|
|
25
|
-
import { a as
|
|
25
|
+
import { a as getSamlMetadata, c as oidcLogout, d as testOidcConfig, f as testSamlConfig, i as getSamlConfig, l as saveOidcConfig, n as SamlPreferencesExtractedData, o as initOidcLogin, p as toggleSamlConfig, r as getOidcConfig, s as initSSO, t as OidcLogoutResponse, u as saveSamlConfig } from "../sso.cjs";
|
|
26
26
|
import { t as ITag } from "../tags.cjs";
|
|
27
27
|
import { a as getNextVersions, i as WhatsNewSection, n as VersionNode, o as getWhatsNewSection, r as WhatsNewArticle, t as Version } from "../versions.cjs";
|
|
28
28
|
import { i as WorkflowMetadata, n as WorkflowDataCreate, r as WorkflowDataUpdate, t as WorkflowData } from "../workflows.cjs";
|
|
@@ -34,4 +34,4 @@ import { C as updateCurrentUserPassword, D as validatePasswordToken, E as update
|
|
|
34
34
|
import { t as findWebhook } from "../webhooks.cjs";
|
|
35
35
|
import { a as WorkflowHistoryRequestParams, c as WorkflowVersionData, d as getWorkflowHistory, f as getWorkflowVersion, i as WorkflowHistoryActionTypes, l as WorkflowVersionId, m as updateWorkflowHistoryVersion, n as UpdateWorkflowHistoryVersion, o as WorkflowPublishHistory, p as getWorkflowVersionsByIds, r as WorkflowHistory, s as WorkflowVersion, t as PublishTimelineEvent, u as getPublishTimeline } from "../workflowHistory.cjs";
|
|
36
36
|
import "../index2.cjs";
|
|
37
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CreateRoleMappingRuleInput, CurrentUserResponse, DisableMfaParams, DynamicNotification, IInstanceAiExampleWorkflow, IInstanceAiExamplesQuery, IInstanceAiExamplesResponse, 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, PatchRoleMappingRuleInput, ProvisioningConfig, ProvisioningConfigPatch, PublishTimelineEvent, RoleMappingRuleResponse, RoleMappingRuleType, 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, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, moveRoleMappingRule, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
37
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CreateRoleMappingRuleInput, CurrentUserResponse, DisableMfaParams, DynamicNotification, IInstanceAiExampleWorkflow, IInstanceAiExamplesQuery, IInstanceAiExamplesResponse, 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, OidcLogoutResponse, PatchRoleMappingRuleInput, ProvisioningConfig, ProvisioningConfigPatch, PublishTimelineEvent, RoleMappingRuleResponse, RoleMappingRuleType, 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, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUpgradeOffer, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, moveRoleMappingRule, oidcLogout, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/api/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../types2.mjs";
|
|
2
2
|
import { t as updateAiUsageSettings } from "../ai-usage.mjs";
|
|
3
3
|
import { a as rotateApiKey, i as getApiKeys, n as deleteApiKey, o as updateApiKey, r as getApiKeyScopes, t as createApiKey } from "../api-keys.mjs";
|
|
4
|
-
import { a as getCloudUserInfo, c as
|
|
4
|
+
import { a as getCloudUserInfo, c as getUpgradeOffer, i as getAdminPanelLoginCode, l as sendConfirmationEmail, n as DynamicNotification, o as getCurrentPlan, r as InstanceUsage, s as getCurrentUsage, t as Cloud, u as sendUserEvent } 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
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";
|
|
@@ -22,7 +22,7 @@ import { a as getRoleMembers, c as updateRole, i as getRoleBySlug, n as deleteRo
|
|
|
22
22
|
import { n as updateSecuritySettings, t as getSecuritySettings } from "../security-settings.mjs";
|
|
23
23
|
import { t as getSettings } from "../settings.mjs";
|
|
24
24
|
import { t as getModuleSettings } from "../module-settings.mjs";
|
|
25
|
-
import { a as
|
|
25
|
+
import { a as getSamlMetadata, c as oidcLogout, d as testOidcConfig, f as testSamlConfig, i as getSamlConfig, l as saveOidcConfig, n as SamlPreferencesExtractedData, o as initOidcLogin, p as toggleSamlConfig, r as getOidcConfig, s as initSSO, t as OidcLogoutResponse, u as saveSamlConfig } from "../sso.mjs";
|
|
26
26
|
import { t as ITag } from "../tags.mjs";
|
|
27
27
|
import { a as getNextVersions, i as WhatsNewSection, n as VersionNode, o as getWhatsNewSection, r as WhatsNewArticle, t as Version } from "../versions.mjs";
|
|
28
28
|
import { i as WorkflowMetadata, n as WorkflowDataCreate, r as WorkflowDataUpdate, t as WorkflowData } from "../workflows.mjs";
|
|
@@ -34,4 +34,4 @@ import { C as updateCurrentUserPassword, D as validatePasswordToken, E as update
|
|
|
34
34
|
import { t as findWebhook } from "../webhooks.mjs";
|
|
35
35
|
import { a as WorkflowHistoryRequestParams, c as WorkflowVersionData, d as getWorkflowHistory, f as getWorkflowVersion, i as WorkflowHistoryActionTypes, l as WorkflowVersionId, m as updateWorkflowHistoryVersion, n as UpdateWorkflowHistoryVersion, o as WorkflowPublishHistory, p as getWorkflowVersionsByIds, r as WorkflowHistory, s as WorkflowVersion, t as PublishTimelineEvent, u as getPublishTimeline } from "../workflowHistory.mjs";
|
|
36
36
|
import "../index2.mjs";
|
|
37
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CreateRoleMappingRuleInput, CurrentUserResponse, DisableMfaParams, DynamicNotification, IInstanceAiExampleWorkflow, IInstanceAiExamplesQuery, IInstanceAiExamplesResponse, 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, PatchRoleMappingRuleInput, ProvisioningConfig, ProvisioningConfigPatch, PublishTimelineEvent, RoleMappingRuleResponse, RoleMappingRuleType, 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, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, moveRoleMappingRule, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
37
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CreateRoleMappingRuleInput, CurrentUserResponse, DisableMfaParams, DynamicNotification, IInstanceAiExampleWorkflow, IInstanceAiExamplesQuery, IInstanceAiExamplesResponse, 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, OidcLogoutResponse, PatchRoleMappingRuleInput, ProvisioningConfig, ProvisioningConfigPatch, PublishTimelineEvent, RoleMappingRuleResponse, RoleMappingRuleType, 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, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUpgradeOffer, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, moveRoleMappingRule, oidcLogout, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/api/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../utils2.mjs";
|
|
2
2
|
import { t as updateAiUsageSettings } from "../ai-usage.mjs";
|
|
3
3
|
import { a as rotateApiKey, i as getApiKeys, n as deleteApiKey, o as updateApiKey, r as getApiKeyScopes, t as createApiKey } from "../api-keys.mjs";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as getUpgradeOffer, i as getCurrentUsage, n as getCloudUserInfo, o as sendConfirmationEmail, r as getCurrentPlan, s as sendUserEvent, 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
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";
|
|
@@ -22,7 +22,7 @@ import { a as getRoleMembers, c as updateRole, i as getRoleBySlug, n as deleteRo
|
|
|
22
22
|
import { n as updateSecuritySettings, t as getSecuritySettings } from "../security-settings.mjs";
|
|
23
23
|
import { t as getSettings } from "../settings.mjs";
|
|
24
24
|
import { t as getModuleSettings } from "../module-settings.mjs";
|
|
25
|
-
import { a as initSSO, c as
|
|
25
|
+
import { a as initSSO, c as saveSamlConfig, d as toggleSamlConfig, i as initOidcLogin, l as testOidcConfig, n as getSamlConfig, o as oidcLogout, r as getSamlMetadata, s as saveOidcConfig, t as getOidcConfig, u as testSamlConfig } from "../sso.mjs";
|
|
26
26
|
import { a as getTemplateById, c as testHealthEndpoint, i as getInstanceAiExamples, n as getCollectionById, o as getWorkflowTemplate, r as getCollections, s as getWorkflows, t as getCategories } from "../templates.mjs";
|
|
27
27
|
import { t as getThirdPartyLicenses } from "../third-party-licenses.mjs";
|
|
28
28
|
import { t as dismissBannerPermanently } from "../ui.mjs";
|
|
@@ -33,4 +33,4 @@ import { t as findWebhook } from "../webhooks.mjs";
|
|
|
33
33
|
import { a as updateWorkflowHistoryVersion, i as getWorkflowVersionsByIds, n as getWorkflowHistory, r as getWorkflowVersion, t as getPublishTimeline } from "../workflowHistory.mjs";
|
|
34
34
|
import "../api.mjs";
|
|
35
35
|
|
|
36
|
-
export { activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, moveRoleMappingRule, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
36
|
+
export { activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUpgradeOffer, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, moveRoleMappingRule, oidcLogout, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/api/sso.cjs
CHANGED
|
@@ -6,6 +6,7 @@ exports.getSamlConfig = require_sso.getSamlConfig;
|
|
|
6
6
|
exports.getSamlMetadata = require_sso.getSamlMetadata;
|
|
7
7
|
exports.initOidcLogin = require_sso.initOidcLogin;
|
|
8
8
|
exports.initSSO = require_sso.initSSO;
|
|
9
|
+
exports.oidcLogout = require_sso.oidcLogout;
|
|
9
10
|
exports.saveOidcConfig = require_sso.saveOidcConfig;
|
|
10
11
|
exports.saveSamlConfig = require_sso.saveSamlConfig;
|
|
11
12
|
exports.testOidcConfig = require_sso.testOidcConfig;
|
package/dist/api/sso.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../types2.cjs";
|
|
2
|
-
import { a as
|
|
3
|
-
export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, saveOidcConfig, saveSamlConfig, testOidcConfig, testSamlConfig, toggleSamlConfig };
|
|
2
|
+
import { a as getSamlMetadata, c as oidcLogout, d as testOidcConfig, f as testSamlConfig, i as getSamlConfig, l as saveOidcConfig, n as SamlPreferencesExtractedData, o as initOidcLogin, p as toggleSamlConfig, r as getOidcConfig, s as initSSO, t as OidcLogoutResponse, u as saveSamlConfig } from "../sso.cjs";
|
|
3
|
+
export { OidcLogoutResponse, SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, oidcLogout, saveOidcConfig, saveSamlConfig, testOidcConfig, testSamlConfig, toggleSamlConfig };
|
package/dist/api/sso.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../types2.mjs";
|
|
2
|
-
import { a as
|
|
3
|
-
export { SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, saveOidcConfig, saveSamlConfig, testOidcConfig, testSamlConfig, toggleSamlConfig };
|
|
2
|
+
import { a as getSamlMetadata, c as oidcLogout, d as testOidcConfig, f as testSamlConfig, i as getSamlConfig, l as saveOidcConfig, n as SamlPreferencesExtractedData, o as initOidcLogin, p as toggleSamlConfig, r as getOidcConfig, s as initSSO, t as OidcLogoutResponse, u as saveSamlConfig } from "../sso.mjs";
|
|
3
|
+
export { OidcLogoutResponse, SamlPreferencesExtractedData, getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, oidcLogout, saveOidcConfig, saveSamlConfig, testOidcConfig, testSamlConfig, toggleSamlConfig };
|
package/dist/api/sso.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../utils2.mjs";
|
|
2
|
-
import { a as initSSO, c as
|
|
2
|
+
import { a as initSSO, c as saveSamlConfig, d as toggleSamlConfig, i as initOidcLogin, l as testOidcConfig, n as getSamlConfig, o as oidcLogout, r as getSamlMetadata, s as saveOidcConfig, t as getOidcConfig, u as testSamlConfig } from "../sso.mjs";
|
|
3
3
|
|
|
4
|
-
export { getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, saveOidcConfig, saveSamlConfig, testOidcConfig, testSamlConfig, toggleSamlConfig };
|
|
4
|
+
export { getOidcConfig, getSamlConfig, getSamlMetadata, initOidcLogin, initSSO, oidcLogout, saveOidcConfig, saveSamlConfig, testOidcConfig, testSamlConfig, toggleSamlConfig };
|
package/dist/cloudPlans.cjs
CHANGED
|
@@ -10,6 +10,9 @@ async function getCurrentUsage(context) {
|
|
|
10
10
|
async function getCloudUserInfo(context) {
|
|
11
11
|
return await require_utils.get(context.baseUrl, "/cloud/proxy/user/me");
|
|
12
12
|
}
|
|
13
|
+
async function getUpgradeOffer(context) {
|
|
14
|
+
return await require_utils.post(context.baseUrl, "/cloud/proxy/upgrade-offer");
|
|
15
|
+
}
|
|
13
16
|
async function sendConfirmationEmail(context) {
|
|
14
17
|
return await require_utils.post(context.baseUrl, "/cloud/proxy/user/resend-confirmation-email");
|
|
15
18
|
}
|
|
@@ -45,6 +48,12 @@ Object.defineProperty(exports, 'getCurrentUsage', {
|
|
|
45
48
|
return getCurrentUsage;
|
|
46
49
|
}
|
|
47
50
|
});
|
|
51
|
+
Object.defineProperty(exports, 'getUpgradeOffer', {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return getUpgradeOffer;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
48
57
|
Object.defineProperty(exports, 'sendConfirmationEmail', {
|
|
49
58
|
enumerable: true,
|
|
50
59
|
get: function () {
|
package/dist/cloudPlans.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudPlans.cjs","names":["get","post"],"sources":["../src/api/cloudPlans.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { get, post } from '../utils';\n\nexport declare namespace Cloud {\n\texport interface PlanData {\n\t\tplanId: number;\n\t\tmonthlyExecutionsLimit: number;\n\t\tactiveWorkflowsLimit: number;\n\t\tcredentialsLimit: number;\n\t\tisActive: boolean;\n\t\tdisplayName: string;\n\t\texpirationDate: string;\n\t\tmetadata: PlanMetadata;\n\t\tuserIsTrialing?: boolean;\n\t\tbannerConfig?: BannerConfig;\n\t}\n\n\texport interface PlanMetadata {\n\t\tversion: 'v1';\n\t\tgroup: 'opt-out' | 'opt-in' | 'trial';\n\t\tslug: 'pro-1' | 'pro-2' | 'starter' | 'trial-1';\n\t\ttrial?: Trial;\n\t}\n\n\tinterface Trial {\n\t\tlength: number;\n\t\tgracePeriod: number;\n\t}\n\n\texport interface BannerConfig {\n\t\t// If set, show time left section\n\t\t// - If text provided, use it\n\t\t// - If text not provided, compute from expirationDate\n\t\ttimeLeft?: {\n\t\t\ttext?: string;\n\t\t};\n\n\t\t// If true, show executions section with progress bar and x/y text\n\t\tshowExecutions?: boolean;\n\n\t\t// CTA button configuration\n\t\tcta?: {\n\t\t\ttext?: string;\n\t\t\ticon?: string;\n\t\t\tsize?: 'small' | 'medium';\n\t\t\t/** @deprecated Use variant instead */\n\t\t\tstyle?: 'primary' | 'success' | 'warning' | 'danger';\n\t\t\tvariant?: 'solid' | 'subtle' | 'ghost' | 'outline' | 'destructive' | 'success';\n\t\t\thref?: string; // If provided, navigate to this URL; otherwise use upgrade flow\n\t\t};\n\n\t\t// Banner icon (left side) - if not set, no icon shown\n\t\ticon?: string;\n\n\t\tdismissible?: boolean;\n\t\tforceShow?: boolean; // Override localStorage dismissal\n\t}\n\n\texport type UserAccount = {\n\t\tconfirmed: boolean;\n\t\tusername: string;\n\t\temail: string;\n\t\thasEarlyAccess?: boolean;\n\t\trole?: string;\n\t\tselectedApps?: string[];\n\t\tinformation?: {\n\t\t\t[key: string]: string | string[];\n\t\t};\n\t};\n}\n\nexport interface InstanceUsage {\n\ttimeframe?: string;\n\texecutions: number;\n\tactiveWorkflows: number;\n}\n\nexport async function getCurrentPlan(context: IRestApiContext): Promise<Cloud.PlanData> {\n\treturn await get(context.baseUrl, '/admin/cloud-plan');\n}\n\nexport async function getCurrentUsage(context: IRestApiContext): Promise<InstanceUsage> {\n\treturn await get(context.baseUrl, '/cloud/limits');\n}\n\nexport async function getCloudUserInfo(context: IRestApiContext): Promise<Cloud.UserAccount> {\n\treturn await get(context.baseUrl, '/cloud/proxy/user/me');\n}\n\nexport async function sendConfirmationEmail(context: IRestApiContext): Promise<Cloud.UserAccount> {\n\treturn await post(context.baseUrl, '/cloud/proxy/user/resend-confirmation-email');\n}\n\nexport async function getAdminPanelLoginCode(context: IRestApiContext): Promise<{ code: string }> {\n\treturn await get(context.baseUrl, '/cloud/proxy/login/code');\n}\n\nexport interface DynamicNotification {\n\ttitle?: string;\n\tmessage?: string;\n}\n\nexport async function sendUserEvent(\n\tcontext: IRestApiContext,\n\teventData: { eventType: string; metadata?: Record<string, unknown> },\n): Promise<DynamicNotification> {\n\treturn await post(context.baseUrl, '/cloud/proxy/user/event', eventData);\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cloudPlans.cjs","names":["get","post"],"sources":["../src/api/cloudPlans.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { get, post } from '../utils';\n\nexport declare namespace Cloud {\n\texport interface PlanData {\n\t\tplanId: number;\n\t\tmonthlyExecutionsLimit: number;\n\t\tactiveWorkflowsLimit: number;\n\t\tcredentialsLimit: number;\n\t\tisActive: boolean;\n\t\tdisplayName: string;\n\t\texpirationDate: string;\n\t\tmetadata: PlanMetadata;\n\t\tuserIsTrialing?: boolean;\n\t\tbannerConfig?: BannerConfig;\n\t\tlicenseFeatures?: Record<string, number>;\n\t}\n\n\texport interface PlanMetadata {\n\t\tversion: 'v1';\n\t\tgroup: 'opt-out' | 'opt-in' | 'trial';\n\t\tslug: 'pro-1' | 'pro-2' | 'starter' | 'trial-1';\n\t\ttrial?: Trial;\n\t}\n\n\tinterface Trial {\n\t\tlength: number;\n\t\tgracePeriod: number;\n\t}\n\n\texport interface BannerConfig {\n\t\t// If set, show time left section\n\t\t// - If text provided, use it\n\t\t// - If text not provided, compute from expirationDate\n\t\ttimeLeft?: {\n\t\t\ttext?: string;\n\t\t};\n\n\t\t// If true, show executions section with progress bar and x/y text\n\t\tshowExecutions?: boolean;\n\n\t\t// CTA button configuration\n\t\tcta?: {\n\t\t\ttext?: string;\n\t\t\ticon?: string;\n\t\t\tsize?: 'small' | 'medium';\n\t\t\t/** @deprecated Use variant instead */\n\t\t\tstyle?: 'primary' | 'success' | 'warning' | 'danger';\n\t\t\tvariant?: 'solid' | 'subtle' | 'ghost' | 'outline' | 'destructive' | 'success';\n\t\t\thref?: string; // If provided, navigate to this URL; otherwise use upgrade flow\n\t\t};\n\n\t\t// Banner icon (left side) - if not set, no icon shown\n\t\ticon?: string;\n\n\t\tdismissible?: boolean;\n\t\tforceShow?: boolean; // Override localStorage dismissal\n\t}\n\n\texport interface UpgradeOffer {\n\t\tslug: string;\n\t\tquotas: { monthlyExecutionsLimit: number; instanceAiCredits: number };\n\t\tcurrency?: { code: string; symbol: string; position: 'prefix' | 'suffix' };\n\t\tprices?: {\n\t\t\tmonthly: number;\n\t\t\tyearlyPerMonth: number;\n\t\t\tdiscountPct: number;\n\t\t};\n\t}\n\n\texport type UserAccount = {\n\t\tconfirmed: boolean;\n\t\tusername: string;\n\t\temail: string;\n\t\thasEarlyAccess?: boolean;\n\t\trole?: string;\n\t\tselectedApps?: string[];\n\t\tinformation?: {\n\t\t\t[key: string]: string | string[];\n\t\t};\n\t};\n}\n\nexport interface InstanceUsage {\n\ttimeframe?: string;\n\texecutions: number;\n\tactiveWorkflows: number;\n}\n\nexport async function getCurrentPlan(context: IRestApiContext): Promise<Cloud.PlanData> {\n\treturn await get(context.baseUrl, '/admin/cloud-plan');\n}\n\nexport async function getCurrentUsage(context: IRestApiContext): Promise<InstanceUsage> {\n\treturn await get(context.baseUrl, '/cloud/limits');\n}\n\nexport async function getCloudUserInfo(context: IRestApiContext): Promise<Cloud.UserAccount> {\n\treturn await get(context.baseUrl, '/cloud/proxy/user/me');\n}\n\nexport async function getUpgradeOffer(\n\tcontext: IRestApiContext,\n): Promise<Cloud.UpgradeOffer | Record<string, never>> {\n\treturn await post(context.baseUrl, '/cloud/proxy/upgrade-offer');\n}\n\nexport async function sendConfirmationEmail(context: IRestApiContext): Promise<Cloud.UserAccount> {\n\treturn await post(context.baseUrl, '/cloud/proxy/user/resend-confirmation-email');\n}\n\nexport async function getAdminPanelLoginCode(context: IRestApiContext): Promise<{ code: string }> {\n\treturn await get(context.baseUrl, '/cloud/proxy/login/code');\n}\n\nexport interface DynamicNotification {\n\ttitle?: string;\n\tmessage?: string;\n}\n\nexport async function sendUserEvent(\n\tcontext: IRestApiContext,\n\teventData: { eventType: string; metadata?: Record<string, unknown> },\n): Promise<DynamicNotification> {\n\treturn await post(context.baseUrl, '/cloud/proxy/user/event', eventData);\n}\n"],"mappings":";;;AAyFA,eAAsB,eAAe,SAAmD;AACvF,QAAO,MAAMA,kBAAI,QAAQ,SAAS,oBAAoB;;AAGvD,eAAsB,gBAAgB,SAAkD;AACvF,QAAO,MAAMA,kBAAI,QAAQ,SAAS,gBAAgB;;AAGnD,eAAsB,iBAAiB,SAAsD;AAC5F,QAAO,MAAMA,kBAAI,QAAQ,SAAS,uBAAuB;;AAG1D,eAAsB,gBACrB,SACsD;AACtD,QAAO,MAAMC,mBAAK,QAAQ,SAAS,6BAA6B;;AAGjE,eAAsB,sBAAsB,SAAsD;AACjG,QAAO,MAAMA,mBAAK,QAAQ,SAAS,8CAA8C;;AAGlF,eAAsB,uBAAuB,SAAqD;AACjG,QAAO,MAAMD,kBAAI,QAAQ,SAAS,0BAA0B;;AAQ7D,eAAsB,cACrB,SACA,WAC+B;AAC/B,QAAO,MAAMC,mBAAK,QAAQ,SAAS,2BAA2B,UAAU"}
|
package/dist/cloudPlans.d.cts
CHANGED
|
@@ -13,6 +13,7 @@ declare namespace Cloud {
|
|
|
13
13
|
metadata: PlanMetadata;
|
|
14
14
|
userIsTrialing?: boolean;
|
|
15
15
|
bannerConfig?: BannerConfig;
|
|
16
|
+
licenseFeatures?: Record<string, number>;
|
|
16
17
|
}
|
|
17
18
|
interface PlanMetadata {
|
|
18
19
|
version: 'v1';
|
|
@@ -41,6 +42,23 @@ declare namespace Cloud {
|
|
|
41
42
|
dismissible?: boolean;
|
|
42
43
|
forceShow?: boolean;
|
|
43
44
|
}
|
|
45
|
+
interface UpgradeOffer {
|
|
46
|
+
slug: string;
|
|
47
|
+
quotas: {
|
|
48
|
+
monthlyExecutionsLimit: number;
|
|
49
|
+
instanceAiCredits: number;
|
|
50
|
+
};
|
|
51
|
+
currency?: {
|
|
52
|
+
code: string;
|
|
53
|
+
symbol: string;
|
|
54
|
+
position: 'prefix' | 'suffix';
|
|
55
|
+
};
|
|
56
|
+
prices?: {
|
|
57
|
+
monthly: number;
|
|
58
|
+
yearlyPerMonth: number;
|
|
59
|
+
discountPct: number;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
44
62
|
type UserAccount = {
|
|
45
63
|
confirmed: boolean;
|
|
46
64
|
username: string;
|
|
@@ -61,6 +79,7 @@ interface InstanceUsage {
|
|
|
61
79
|
declare function getCurrentPlan(context: IRestApiContext): Promise<Cloud.PlanData>;
|
|
62
80
|
declare function getCurrentUsage(context: IRestApiContext): Promise<InstanceUsage>;
|
|
63
81
|
declare function getCloudUserInfo(context: IRestApiContext): Promise<Cloud.UserAccount>;
|
|
82
|
+
declare function getUpgradeOffer(context: IRestApiContext): Promise<Cloud.UpgradeOffer | Record<string, never>>;
|
|
64
83
|
declare function sendConfirmationEmail(context: IRestApiContext): Promise<Cloud.UserAccount>;
|
|
65
84
|
declare function getAdminPanelLoginCode(context: IRestApiContext): Promise<{
|
|
66
85
|
code: string;
|
|
@@ -74,5 +93,5 @@ declare function sendUserEvent(context: IRestApiContext, eventData: {
|
|
|
74
93
|
metadata?: Record<string, unknown>;
|
|
75
94
|
}): Promise<DynamicNotification>;
|
|
76
95
|
//#endregion
|
|
77
|
-
export { getCloudUserInfo as a,
|
|
96
|
+
export { getCloudUserInfo as a, getUpgradeOffer as c, getAdminPanelLoginCode as i, sendConfirmationEmail as l, DynamicNotification as n, getCurrentPlan as o, InstanceUsage as r, getCurrentUsage as s, Cloud as t, sendUserEvent as u };
|
|
78
97
|
//# sourceMappingURL=cloudPlans.d.cts.map
|
package/dist/cloudPlans.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ declare namespace Cloud {
|
|
|
13
13
|
metadata: PlanMetadata;
|
|
14
14
|
userIsTrialing?: boolean;
|
|
15
15
|
bannerConfig?: BannerConfig;
|
|
16
|
+
licenseFeatures?: Record<string, number>;
|
|
16
17
|
}
|
|
17
18
|
interface PlanMetadata {
|
|
18
19
|
version: 'v1';
|
|
@@ -41,6 +42,23 @@ declare namespace Cloud {
|
|
|
41
42
|
dismissible?: boolean;
|
|
42
43
|
forceShow?: boolean;
|
|
43
44
|
}
|
|
45
|
+
interface UpgradeOffer {
|
|
46
|
+
slug: string;
|
|
47
|
+
quotas: {
|
|
48
|
+
monthlyExecutionsLimit: number;
|
|
49
|
+
instanceAiCredits: number;
|
|
50
|
+
};
|
|
51
|
+
currency?: {
|
|
52
|
+
code: string;
|
|
53
|
+
symbol: string;
|
|
54
|
+
position: 'prefix' | 'suffix';
|
|
55
|
+
};
|
|
56
|
+
prices?: {
|
|
57
|
+
monthly: number;
|
|
58
|
+
yearlyPerMonth: number;
|
|
59
|
+
discountPct: number;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
44
62
|
type UserAccount = {
|
|
45
63
|
confirmed: boolean;
|
|
46
64
|
username: string;
|
|
@@ -61,6 +79,7 @@ interface InstanceUsage {
|
|
|
61
79
|
declare function getCurrentPlan(context: IRestApiContext): Promise<Cloud.PlanData>;
|
|
62
80
|
declare function getCurrentUsage(context: IRestApiContext): Promise<InstanceUsage>;
|
|
63
81
|
declare function getCloudUserInfo(context: IRestApiContext): Promise<Cloud.UserAccount>;
|
|
82
|
+
declare function getUpgradeOffer(context: IRestApiContext): Promise<Cloud.UpgradeOffer | Record<string, never>>;
|
|
64
83
|
declare function sendConfirmationEmail(context: IRestApiContext): Promise<Cloud.UserAccount>;
|
|
65
84
|
declare function getAdminPanelLoginCode(context: IRestApiContext): Promise<{
|
|
66
85
|
code: string;
|
|
@@ -74,5 +93,5 @@ declare function sendUserEvent(context: IRestApiContext, eventData: {
|
|
|
74
93
|
metadata?: Record<string, unknown>;
|
|
75
94
|
}): Promise<DynamicNotification>;
|
|
76
95
|
//#endregion
|
|
77
|
-
export { getCloudUserInfo as a,
|
|
96
|
+
export { getCloudUserInfo as a, getUpgradeOffer as c, getAdminPanelLoginCode as i, sendConfirmationEmail as l, DynamicNotification as n, getCurrentPlan as o, InstanceUsage as r, getCurrentUsage as s, Cloud as t, sendUserEvent as u };
|
|
78
97
|
//# sourceMappingURL=cloudPlans.d.mts.map
|
package/dist/cloudPlans.mjs
CHANGED
|
@@ -10,6 +10,9 @@ async function getCurrentUsage(context) {
|
|
|
10
10
|
async function getCloudUserInfo(context) {
|
|
11
11
|
return await get(context.baseUrl, "/cloud/proxy/user/me");
|
|
12
12
|
}
|
|
13
|
+
async function getUpgradeOffer(context) {
|
|
14
|
+
return await post(context.baseUrl, "/cloud/proxy/upgrade-offer");
|
|
15
|
+
}
|
|
13
16
|
async function sendConfirmationEmail(context) {
|
|
14
17
|
return await post(context.baseUrl, "/cloud/proxy/user/resend-confirmation-email");
|
|
15
18
|
}
|
|
@@ -21,5 +24,5 @@ async function sendUserEvent(context, eventData) {
|
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
//#endregion
|
|
24
|
-
export {
|
|
27
|
+
export { getUpgradeOffer as a, getCurrentUsage as i, getCloudUserInfo as n, sendConfirmationEmail as o, getCurrentPlan as r, sendUserEvent as s, getAdminPanelLoginCode as t };
|
|
25
28
|
//# sourceMappingURL=cloudPlans.mjs.map
|
package/dist/cloudPlans.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudPlans.mjs","names":[],"sources":["../src/api/cloudPlans.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { get, post } from '../utils';\n\nexport declare namespace Cloud {\n\texport interface PlanData {\n\t\tplanId: number;\n\t\tmonthlyExecutionsLimit: number;\n\t\tactiveWorkflowsLimit: number;\n\t\tcredentialsLimit: number;\n\t\tisActive: boolean;\n\t\tdisplayName: string;\n\t\texpirationDate: string;\n\t\tmetadata: PlanMetadata;\n\t\tuserIsTrialing?: boolean;\n\t\tbannerConfig?: BannerConfig;\n\t}\n\n\texport interface PlanMetadata {\n\t\tversion: 'v1';\n\t\tgroup: 'opt-out' | 'opt-in' | 'trial';\n\t\tslug: 'pro-1' | 'pro-2' | 'starter' | 'trial-1';\n\t\ttrial?: Trial;\n\t}\n\n\tinterface Trial {\n\t\tlength: number;\n\t\tgracePeriod: number;\n\t}\n\n\texport interface BannerConfig {\n\t\t// If set, show time left section\n\t\t// - If text provided, use it\n\t\t// - If text not provided, compute from expirationDate\n\t\ttimeLeft?: {\n\t\t\ttext?: string;\n\t\t};\n\n\t\t// If true, show executions section with progress bar and x/y text\n\t\tshowExecutions?: boolean;\n\n\t\t// CTA button configuration\n\t\tcta?: {\n\t\t\ttext?: string;\n\t\t\ticon?: string;\n\t\t\tsize?: 'small' | 'medium';\n\t\t\t/** @deprecated Use variant instead */\n\t\t\tstyle?: 'primary' | 'success' | 'warning' | 'danger';\n\t\t\tvariant?: 'solid' | 'subtle' | 'ghost' | 'outline' | 'destructive' | 'success';\n\t\t\thref?: string; // If provided, navigate to this URL; otherwise use upgrade flow\n\t\t};\n\n\t\t// Banner icon (left side) - if not set, no icon shown\n\t\ticon?: string;\n\n\t\tdismissible?: boolean;\n\t\tforceShow?: boolean; // Override localStorage dismissal\n\t}\n\n\texport type UserAccount = {\n\t\tconfirmed: boolean;\n\t\tusername: string;\n\t\temail: string;\n\t\thasEarlyAccess?: boolean;\n\t\trole?: string;\n\t\tselectedApps?: string[];\n\t\tinformation?: {\n\t\t\t[key: string]: string | string[];\n\t\t};\n\t};\n}\n\nexport interface InstanceUsage {\n\ttimeframe?: string;\n\texecutions: number;\n\tactiveWorkflows: number;\n}\n\nexport async function getCurrentPlan(context: IRestApiContext): Promise<Cloud.PlanData> {\n\treturn await get(context.baseUrl, '/admin/cloud-plan');\n}\n\nexport async function getCurrentUsage(context: IRestApiContext): Promise<InstanceUsage> {\n\treturn await get(context.baseUrl, '/cloud/limits');\n}\n\nexport async function getCloudUserInfo(context: IRestApiContext): Promise<Cloud.UserAccount> {\n\treturn await get(context.baseUrl, '/cloud/proxy/user/me');\n}\n\nexport async function sendConfirmationEmail(context: IRestApiContext): Promise<Cloud.UserAccount> {\n\treturn await post(context.baseUrl, '/cloud/proxy/user/resend-confirmation-email');\n}\n\nexport async function getAdminPanelLoginCode(context: IRestApiContext): Promise<{ code: string }> {\n\treturn await get(context.baseUrl, '/cloud/proxy/login/code');\n}\n\nexport interface DynamicNotification {\n\ttitle?: string;\n\tmessage?: string;\n}\n\nexport async function sendUserEvent(\n\tcontext: IRestApiContext,\n\teventData: { eventType: string; metadata?: Record<string, unknown> },\n): Promise<DynamicNotification> {\n\treturn await post(context.baseUrl, '/cloud/proxy/user/event', eventData);\n}\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cloudPlans.mjs","names":[],"sources":["../src/api/cloudPlans.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { get, post } from '../utils';\n\nexport declare namespace Cloud {\n\texport interface PlanData {\n\t\tplanId: number;\n\t\tmonthlyExecutionsLimit: number;\n\t\tactiveWorkflowsLimit: number;\n\t\tcredentialsLimit: number;\n\t\tisActive: boolean;\n\t\tdisplayName: string;\n\t\texpirationDate: string;\n\t\tmetadata: PlanMetadata;\n\t\tuserIsTrialing?: boolean;\n\t\tbannerConfig?: BannerConfig;\n\t\tlicenseFeatures?: Record<string, number>;\n\t}\n\n\texport interface PlanMetadata {\n\t\tversion: 'v1';\n\t\tgroup: 'opt-out' | 'opt-in' | 'trial';\n\t\tslug: 'pro-1' | 'pro-2' | 'starter' | 'trial-1';\n\t\ttrial?: Trial;\n\t}\n\n\tinterface Trial {\n\t\tlength: number;\n\t\tgracePeriod: number;\n\t}\n\n\texport interface BannerConfig {\n\t\t// If set, show time left section\n\t\t// - If text provided, use it\n\t\t// - If text not provided, compute from expirationDate\n\t\ttimeLeft?: {\n\t\t\ttext?: string;\n\t\t};\n\n\t\t// If true, show executions section with progress bar and x/y text\n\t\tshowExecutions?: boolean;\n\n\t\t// CTA button configuration\n\t\tcta?: {\n\t\t\ttext?: string;\n\t\t\ticon?: string;\n\t\t\tsize?: 'small' | 'medium';\n\t\t\t/** @deprecated Use variant instead */\n\t\t\tstyle?: 'primary' | 'success' | 'warning' | 'danger';\n\t\t\tvariant?: 'solid' | 'subtle' | 'ghost' | 'outline' | 'destructive' | 'success';\n\t\t\thref?: string; // If provided, navigate to this URL; otherwise use upgrade flow\n\t\t};\n\n\t\t// Banner icon (left side) - if not set, no icon shown\n\t\ticon?: string;\n\n\t\tdismissible?: boolean;\n\t\tforceShow?: boolean; // Override localStorage dismissal\n\t}\n\n\texport interface UpgradeOffer {\n\t\tslug: string;\n\t\tquotas: { monthlyExecutionsLimit: number; instanceAiCredits: number };\n\t\tcurrency?: { code: string; symbol: string; position: 'prefix' | 'suffix' };\n\t\tprices?: {\n\t\t\tmonthly: number;\n\t\t\tyearlyPerMonth: number;\n\t\t\tdiscountPct: number;\n\t\t};\n\t}\n\n\texport type UserAccount = {\n\t\tconfirmed: boolean;\n\t\tusername: string;\n\t\temail: string;\n\t\thasEarlyAccess?: boolean;\n\t\trole?: string;\n\t\tselectedApps?: string[];\n\t\tinformation?: {\n\t\t\t[key: string]: string | string[];\n\t\t};\n\t};\n}\n\nexport interface InstanceUsage {\n\ttimeframe?: string;\n\texecutions: number;\n\tactiveWorkflows: number;\n}\n\nexport async function getCurrentPlan(context: IRestApiContext): Promise<Cloud.PlanData> {\n\treturn await get(context.baseUrl, '/admin/cloud-plan');\n}\n\nexport async function getCurrentUsage(context: IRestApiContext): Promise<InstanceUsage> {\n\treturn await get(context.baseUrl, '/cloud/limits');\n}\n\nexport async function getCloudUserInfo(context: IRestApiContext): Promise<Cloud.UserAccount> {\n\treturn await get(context.baseUrl, '/cloud/proxy/user/me');\n}\n\nexport async function getUpgradeOffer(\n\tcontext: IRestApiContext,\n): Promise<Cloud.UpgradeOffer | Record<string, never>> {\n\treturn await post(context.baseUrl, '/cloud/proxy/upgrade-offer');\n}\n\nexport async function sendConfirmationEmail(context: IRestApiContext): Promise<Cloud.UserAccount> {\n\treturn await post(context.baseUrl, '/cloud/proxy/user/resend-confirmation-email');\n}\n\nexport async function getAdminPanelLoginCode(context: IRestApiContext): Promise<{ code: string }> {\n\treturn await get(context.baseUrl, '/cloud/proxy/login/code');\n}\n\nexport interface DynamicNotification {\n\ttitle?: string;\n\tmessage?: string;\n}\n\nexport async function sendUserEvent(\n\tcontext: IRestApiContext,\n\teventData: { eventType: string; metadata?: Record<string, unknown> },\n): Promise<DynamicNotification> {\n\treturn await post(context.baseUrl, '/cloud/proxy/user/event', eventData);\n}\n"],"mappings":";;;AAyFA,eAAsB,eAAe,SAAmD;AACvF,QAAO,MAAM,IAAI,QAAQ,SAAS,oBAAoB;;AAGvD,eAAsB,gBAAgB,SAAkD;AACvF,QAAO,MAAM,IAAI,QAAQ,SAAS,gBAAgB;;AAGnD,eAAsB,iBAAiB,SAAsD;AAC5F,QAAO,MAAM,IAAI,QAAQ,SAAS,uBAAuB;;AAG1D,eAAsB,gBACrB,SACsD;AACtD,QAAO,MAAM,KAAK,QAAQ,SAAS,6BAA6B;;AAGjE,eAAsB,sBAAsB,SAAsD;AACjG,QAAO,MAAM,KAAK,QAAQ,SAAS,8CAA8C;;AAGlF,eAAsB,uBAAuB,SAAqD;AACjG,QAAO,MAAM,IAAI,QAAQ,SAAS,0BAA0B;;AAQ7D,eAAsB,cACrB,SACA,WAC+B;AAC/B,QAAO,MAAM,KAAK,QAAQ,SAAS,2BAA2B,UAAU"}
|
package/dist/index.cjs
CHANGED
|
@@ -129,6 +129,7 @@ exports.getSecuritySettings = require_security_settings.getSecuritySettings;
|
|
|
129
129
|
exports.getSettings = require_settings.getSettings;
|
|
130
130
|
exports.getTemplateById = require_templates.getTemplateById;
|
|
131
131
|
exports.getThirdPartyLicenses = require_third_party_licenses.getThirdPartyLicenses;
|
|
132
|
+
exports.getUpgradeOffer = require_cloudPlans.getUpgradeOffer;
|
|
132
133
|
exports.getUsers = require_users.getUsers;
|
|
133
134
|
exports.getWhatsNewSection = require_versions.getWhatsNewSection;
|
|
134
135
|
exports.getWorkflowHistory = require_workflowHistory.getWorkflowHistory;
|
|
@@ -146,6 +147,7 @@ exports.loginCurrentUser = require_users.loginCurrentUser;
|
|
|
146
147
|
exports.logout = require_users.logout;
|
|
147
148
|
exports.makeRestApiRequest = require_utils.makeRestApiRequest;
|
|
148
149
|
exports.moveRoleMappingRule = require_roleMappingRule.moveRoleMappingRule;
|
|
150
|
+
exports.oidcLogout = require_sso.oidcLogout;
|
|
149
151
|
exports.patch = require_utils.patch;
|
|
150
152
|
exports.post = require_utils.post;
|
|
151
153
|
exports.registerCommunityEdition = require_usage.registerCommunityEdition;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as IRestApiContext } from "./types2.cjs";
|
|
2
2
|
import { t as updateAiUsageSettings } from "./ai-usage.cjs";
|
|
3
3
|
import { a as rotateApiKey, i as getApiKeys, n as deleteApiKey, o as updateApiKey, r as getApiKeyScopes, t as createApiKey } from "./api-keys.cjs";
|
|
4
|
-
import { a as getCloudUserInfo, c as
|
|
4
|
+
import { a as getCloudUserInfo, c as getUpgradeOffer, i as getAdminPanelLoginCode, l as sendConfirmationEmail, n as DynamicNotification, o as getCurrentPlan, r as InstanceUsage, s as getCurrentUsage, t as Cloud, u as sendUserEvent } 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
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";
|
|
@@ -22,7 +22,7 @@ import { a as getRoleMembers, c as updateRole, i as getRoleBySlug, n as deleteRo
|
|
|
22
22
|
import { n as updateSecuritySettings, t as getSecuritySettings } from "./security-settings.cjs";
|
|
23
23
|
import { t as getSettings } from "./settings.cjs";
|
|
24
24
|
import { t as getModuleSettings } from "./module-settings.cjs";
|
|
25
|
-
import { a as
|
|
25
|
+
import { a as getSamlMetadata, c as oidcLogout, d as testOidcConfig, f as testSamlConfig, i as getSamlConfig, l as saveOidcConfig, n as SamlPreferencesExtractedData, o as initOidcLogin, p as toggleSamlConfig, r as getOidcConfig, s as initSSO, t as OidcLogoutResponse, u as saveSamlConfig } from "./sso.cjs";
|
|
26
26
|
import { t as ITag } from "./tags.cjs";
|
|
27
27
|
import { a as getNextVersions, i as WhatsNewSection, n as VersionNode, o as getWhatsNewSection, r as WhatsNewArticle, t as Version } from "./versions.cjs";
|
|
28
28
|
import { i as WorkflowMetadata, n as WorkflowDataCreate, r as WorkflowDataUpdate, t as WorkflowData } from "./workflows.cjs";
|
|
@@ -35,4 +35,4 @@ import { t as findWebhook } from "./webhooks.cjs";
|
|
|
35
35
|
import { a as WorkflowHistoryRequestParams, c as WorkflowVersionData, d as getWorkflowHistory, f as getWorkflowVersion, i as WorkflowHistoryActionTypes, l as WorkflowVersionId, m as updateWorkflowHistoryVersion, n as UpdateWorkflowHistoryVersion, o as WorkflowPublishHistory, p as getWorkflowVersionsByIds, r as WorkflowHistory, s as WorkflowVersion, t as PublishTimelineEvent, u as getPublishTimeline } from "./workflowHistory.cjs";
|
|
36
36
|
import "./index2.cjs";
|
|
37
37
|
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";
|
|
38
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CreateRoleMappingRuleInput, CurrentUserResponse, DisableMfaParams, DynamicNotification, IInstanceAiExampleWorkflow, IInstanceAiExamplesQuery, IInstanceAiExamplesResponse, 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, PatchRoleMappingRuleInput, ProvisioningConfig, ProvisioningConfigPatch, PublishTimelineEvent, ResponseError, RoleMappingRuleResponse, RoleMappingRuleType, 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, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, makeRestApiRequest, moveRoleMappingRule, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
38
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CreateRoleMappingRuleInput, CurrentUserResponse, DisableMfaParams, DynamicNotification, IInstanceAiExampleWorkflow, IInstanceAiExamplesQuery, IInstanceAiExamplesResponse, 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, OidcLogoutResponse, PatchRoleMappingRuleInput, ProvisioningConfig, ProvisioningConfigPatch, PublishTimelineEvent, ResponseError, RoleMappingRuleResponse, RoleMappingRuleType, 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, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUpgradeOffer, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, makeRestApiRequest, moveRoleMappingRule, oidcLogout, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as IRestApiContext } from "./types2.mjs";
|
|
2
2
|
import { t as updateAiUsageSettings } from "./ai-usage.mjs";
|
|
3
3
|
import { a as rotateApiKey, i as getApiKeys, n as deleteApiKey, o as updateApiKey, r as getApiKeyScopes, t as createApiKey } from "./api-keys.mjs";
|
|
4
|
-
import { a as getCloudUserInfo, c as
|
|
4
|
+
import { a as getCloudUserInfo, c as getUpgradeOffer, i as getAdminPanelLoginCode, l as sendConfirmationEmail, n as DynamicNotification, o as getCurrentPlan, r as InstanceUsage, s as getCurrentUsage, t as Cloud, u as sendUserEvent } 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
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";
|
|
@@ -22,7 +22,7 @@ import { a as getRoleMembers, c as updateRole, i as getRoleBySlug, n as deleteRo
|
|
|
22
22
|
import { n as updateSecuritySettings, t as getSecuritySettings } from "./security-settings.mjs";
|
|
23
23
|
import { t as getSettings } from "./settings.mjs";
|
|
24
24
|
import { t as getModuleSettings } from "./module-settings.mjs";
|
|
25
|
-
import { a as
|
|
25
|
+
import { a as getSamlMetadata, c as oidcLogout, d as testOidcConfig, f as testSamlConfig, i as getSamlConfig, l as saveOidcConfig, n as SamlPreferencesExtractedData, o as initOidcLogin, p as toggleSamlConfig, r as getOidcConfig, s as initSSO, t as OidcLogoutResponse, u as saveSamlConfig } from "./sso.mjs";
|
|
26
26
|
import { t as ITag } from "./tags.mjs";
|
|
27
27
|
import { a as getNextVersions, i as WhatsNewSection, n as VersionNode, o as getWhatsNewSection, r as WhatsNewArticle, t as Version } from "./versions.mjs";
|
|
28
28
|
import { i as WorkflowMetadata, n as WorkflowDataCreate, r as WorkflowDataUpdate, t as WorkflowData } from "./workflows.mjs";
|
|
@@ -35,4 +35,4 @@ import { t as findWebhook } from "./webhooks.mjs";
|
|
|
35
35
|
import { a as WorkflowHistoryRequestParams, c as WorkflowVersionData, d as getWorkflowHistory, f as getWorkflowVersion, i as WorkflowHistoryActionTypes, l as WorkflowVersionId, m as updateWorkflowHistoryVersion, n as UpdateWorkflowHistoryVersion, o as WorkflowPublishHistory, p as getWorkflowVersionsByIds, r as WorkflowHistory, s as WorkflowVersion, t as PublishTimelineEvent, u as getPublishTimeline } from "./workflowHistory.mjs";
|
|
36
36
|
import "./index2.mjs";
|
|
37
37
|
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";
|
|
38
|
-
export { ApiMessageEventBusDestinationOptions, Cloud, CreateRoleMappingRuleInput, CurrentUserResponse, DisableMfaParams, DynamicNotification, IInstanceAiExampleWorkflow, IInstanceAiExamplesQuery, IInstanceAiExamplesResponse, 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, PatchRoleMappingRuleInput, ProvisioningConfig, ProvisioningConfigPatch, PublishTimelineEvent, ResponseError, RoleMappingRuleResponse, RoleMappingRuleType, 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, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, makeRestApiRequest, moveRoleMappingRule, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
38
|
+
export { ApiMessageEventBusDestinationOptions, Cloud, CreateRoleMappingRuleInput, CurrentUserResponse, DisableMfaParams, DynamicNotification, IInstanceAiExampleWorkflow, IInstanceAiExamplesQuery, IInstanceAiExamplesResponse, 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, OidcLogoutResponse, PatchRoleMappingRuleInput, ProvisioningConfig, ProvisioningConfigPatch, PublishTimelineEvent, ResponseError, RoleMappingRuleResponse, RoleMappingRuleType, 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, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUpgradeOffer, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, makeRestApiRequest, moveRoleMappingRule, oidcLogout, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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";
|
|
2
2
|
import { t as updateAiUsageSettings } from "./ai-usage.mjs";
|
|
3
3
|
import { a as rotateApiKey, i as getApiKeys, n as deleteApiKey, o as updateApiKey, r as getApiKeyScopes, t as createApiKey } from "./api-keys.mjs";
|
|
4
|
-
import { a as
|
|
4
|
+
import { a as getUpgradeOffer, i as getCurrentUsage, n as getCloudUserInfo, o as sendConfirmationEmail, r as getCurrentPlan, s as sendUserEvent, 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
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";
|
|
@@ -22,7 +22,7 @@ import { a as getRoleMembers, c as updateRole, i as getRoleBySlug, n as deleteRo
|
|
|
22
22
|
import { n as updateSecuritySettings, t as getSecuritySettings } from "./security-settings.mjs";
|
|
23
23
|
import { t as getSettings } from "./settings.mjs";
|
|
24
24
|
import { t as getModuleSettings } from "./module-settings.mjs";
|
|
25
|
-
import { a as initSSO, c as
|
|
25
|
+
import { a as initSSO, c as saveSamlConfig, d as toggleSamlConfig, i as initOidcLogin, l as testOidcConfig, n as getSamlConfig, o as oidcLogout, r as getSamlMetadata, s as saveOidcConfig, t as getOidcConfig, u as testSamlConfig } from "./sso.mjs";
|
|
26
26
|
import { a as getTemplateById, c as testHealthEndpoint, i as getInstanceAiExamples, n as getCollectionById, o as getWorkflowTemplate, r as getCollections, s as getWorkflows, t as getCategories } from "./templates.mjs";
|
|
27
27
|
import { t as getThirdPartyLicenses } from "./third-party-licenses.mjs";
|
|
28
28
|
import { t as dismissBannerPermanently } from "./ui.mjs";
|
|
@@ -33,4 +33,4 @@ import { t as findWebhook } from "./webhooks.mjs";
|
|
|
33
33
|
import { a as updateWorkflowHistoryVersion, i as getWorkflowVersionsByIds, n as getWorkflowHistory, r as getWorkflowVersion, t as getPublishTimeline } from "./workflowHistory.mjs";
|
|
34
34
|
import "./api.mjs";
|
|
35
35
|
|
|
36
|
-
export { MfaRequiredError, NO_NETWORK_ERROR_CODE, ResponseError, STREAM_SEPARATOR, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, makeRestApiRequest, moveRoleMappingRule, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
|
36
|
+
export { MfaRequiredError, NO_NETWORK_ERROR_CODE, ResponseError, STREAM_SEPARATOR, activateLicenseKey, canEnableMFA, changePassword, connectProvider, createApiKey, createCredentialResolver, createProjectSecretProviderConnection, createRole, createRoleMappingRule, createSecretProviderConnection, deleteApiKey, deleteCredentialResolver, deleteDestinationFromDb, deleteProjectSecretProviderConnection, deleteRole, deleteRoleMappingRule, deleteSecretProviderConnection, deleteUser, disableMfa, dismissBannerPermanently, enableMfa, enableSecretProviderConnection, fetchCommunityNodeAttributes, fetchCommunityNodeTypes, findWebhook, generateInviteLink, get, getAdminPanelLoginCode, getApiKeyScopes, getApiKeys, getAvailableCommunityPackageCount, getBecomeCreatorCta, getCategories, getCloudUserInfo, getClusterInfo, getCollectionById, getCollections, getCredentialResolver, getCredentialResolverTypes, getCredentialResolverWorkflows, getCredentialResolvers, getCurrentPlan, getCurrentUsage, getDestinationsFromBackend, getEventNamesFromBackend, getExternalSecrets, getExternalSecretsProvider, getExternalSecretsProviders, getFirstAdoptionDate, getFullApiResponse, getGlobalExternalSecrets, getGlobalExternalSecretsForProject, getInstalledCommunityNodes, getInstanceAiExamples, getInviteLink, getLdapConfig, getLdapSynchronizations, getLicense, getLocalResourceMapperFields, getMfaQR, getModuleSettings, getNextVersions, getNodeParameterActionResult, getNodeParameterOptions, getNodeTranslationHeaders, getNodeTypeVersions, getNodeTypes, getNodeTypesByIdentifier, getNodesInformation, getOidcConfig, getPasswordResetLink, getProjectExternalSecrets, getProjectSecretProviderConnectionByKey, getProjectSecretProviderConnectionsByProjectId, getProvisioningConfig, getPublishTimeline, getResourceLocatorResults, getResourceMapperFields, getRoleAssignments, getRoleBySlug, getRoleMembers, getRoleProjectMembers, getRoles, getSamlConfig, getSamlMetadata, getSecretProviderConnectionByKey, getSecretProviderConnections, getSecretProviderTypes, getSecuritySettings, getSettings, getTemplateById, getThirdPartyLicenses, getUpgradeOffer, getUsers, getWhatsNewSection, getWorkflowHistory, getWorkflowTemplate, getWorkflowVersion, getWorkflowVersionsByIds, getWorkflows, hasDestinationId, initOidcLogin, initSSO, installNewPackage, listRoleMappingRules, login, loginCurrentUser, logout, makeRestApiRequest, moveRoleMappingRule, oidcLogout, patch, post, registerCommunityEdition, reloadProvider, reloadSecretProviderConnection, renewLicense, request, requestLicenseTrial, rotateApiKey, runLdapSync, saveDestinationToDb, saveOidcConfig, saveProvisioningConfig, saveSamlConfig, sendConfirmationEmail, sendForgotPasswordEmail, sendGetWorkerStatus, sendTestMessageToDestination, sendUserEvent, sessionStarted, setupOwner, streamRequest, submitPersonalizationSurvey, testExternalSecretsProviderConnection, testHealthEndpoint, testLdapConnection, testOidcConfig, testProjectSecretProviderConnection, testSamlConfig, testSecretProviderConnection, toggleSamlConfig, uninstallPackage, updateAiUsageSettings, updateApiKey, updateCredentialResolver, updateCurrentUser, updateCurrentUserPassword, updateCurrentUserSettings, updateEnforceMfa, updateExternalSecretsSettings, updateGlobalRole, updateLdapConfig, updateNpsSurveyState, updateOtherUserSettings, updatePackage, updateProjectSecretProviderConnection, updateProvider, updateRole, updateRoleMappingRule, updateSecretProviderConnection, updateSecuritySettings, updateWorkflowHistoryVersion, validatePasswordToken, validateSignupToken, verifyMfaCode };
|
package/dist/nodeTypes.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const require_utils = require('./utils2.cjs');
|
|
2
2
|
let axios = require("axios");
|
|
3
3
|
axios = require_utils.__toESM(axios);
|
|
4
|
-
let
|
|
4
|
+
let __n8n_utils_sleep = require("@n8n/utils/sleep");
|
|
5
5
|
|
|
6
6
|
//#region src/api/nodeTypes.ts
|
|
7
7
|
async function fetchNodeTypesJsonWithRetry(url, retries = 5, delay = 500) {
|
|
8
8
|
for (let attempt = 0; attempt < retries; attempt++) {
|
|
9
9
|
const response = await axios.default.get(url, { withCredentials: true });
|
|
10
10
|
if (typeof response.data === "object" && response.data !== null) return response.data;
|
|
11
|
-
await (0,
|
|
11
|
+
await (0, __n8n_utils_sleep.sleep)(delay * attempt);
|
|
12
12
|
}
|
|
13
13
|
throw new Error("Could not fetch node types");
|
|
14
14
|
}
|
package/dist/nodeTypes.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeTypes.cjs","names":["makeRestApiRequest"],"sources":["../src/api/nodeTypes.ts"],"sourcesContent":["import type {\n\tActionResultRequestDto,\n\tCommunityNodeType,\n\tGetNodeTypesByIdentifierRequestDto,\n\tOptionsRequestDto,\n\tResourceLocatorRequestDto,\n\tResourceMapperFieldsRequestDto,\n} from '@n8n/api-types';\nimport type { INodeTranslationHeaders } from '@n8n/i18n';\nimport axios from 'axios';\nimport type {\n\tINodeListSearchResult,\n\tINodePropertyOptions,\n\tINodeTypeDescription,\n\tINodeTypeNameVersion,\n\tNodeParameterValueType,\n\tResourceMapperFields,\n} from 'n8n-workflow';\
|
|
1
|
+
{"version":3,"file":"nodeTypes.cjs","names":["makeRestApiRequest"],"sources":["../src/api/nodeTypes.ts"],"sourcesContent":["import type {\n\tActionResultRequestDto,\n\tCommunityNodeType,\n\tGetNodeTypesByIdentifierRequestDto,\n\tOptionsRequestDto,\n\tResourceLocatorRequestDto,\n\tResourceMapperFieldsRequestDto,\n} from '@n8n/api-types';\nimport type { INodeTranslationHeaders } from '@n8n/i18n';\nimport { sleep } from '@n8n/utils/sleep';\nimport axios from 'axios';\nimport type {\n\tINodeListSearchResult,\n\tINodePropertyOptions,\n\tINodeTypeDescription,\n\tINodeTypeNameVersion,\n\tNodeParameterValueType,\n\tResourceMapperFields,\n} from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nasync function fetchNodeTypesJsonWithRetry(url: string, retries = 5, delay = 500) {\n\tfor (let attempt = 0; attempt < retries; attempt++) {\n\t\tconst response = await axios.get(url, { withCredentials: true });\n\n\t\tif (typeof response.data === 'object' && response.data !== null) {\n\t\t\treturn response.data;\n\t\t}\n\n\t\tawait sleep(delay * attempt);\n\t}\n\n\tthrow new Error('Could not fetch node types');\n}\n\nexport async function getNodeTypes(baseUrl: string) {\n\treturn await fetchNodeTypesJsonWithRetry(baseUrl + 'types/nodes.json');\n}\n\nexport async function getNodeTypeVersions(baseUrl: string): Promise<string[]> {\n\treturn await fetchNodeTypesJsonWithRetry(baseUrl + 'types/node-versions.json');\n}\n\n/**\n * Fetch specific node types by their identifier (name@version format)\n * This is useful for incremental syncs where only missing node types need to be fetched\n *\n * @param context - The REST API context containing base URL and auth info\n * @param identifiers - Array of node type identifiers in \"name@version\" format\n * @returns Array of node type descriptions for the requested identifiers\n */\nexport async function getNodeTypesByIdentifier(\n\tcontext: IRestApiContext,\n\tidentifiers: string[],\n): Promise<INodeTypeDescription[]> {\n\tconst body: GetNodeTypesByIdentifierRequestDto = { identifiers };\n\treturn await makeRestApiRequest(context, 'POST', '/node-types/by-identifier', body);\n}\n\nexport async function fetchCommunityNodeTypes(\n\tcontext: IRestApiContext,\n): Promise<CommunityNodeType[]> {\n\treturn await makeRestApiRequest(context, 'GET', '/community-node-types');\n}\n\nexport async function fetchCommunityNodeAttributes(\n\tcontext: IRestApiContext,\n\ttype: string,\n): Promise<CommunityNodeType | null> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/community-node-types/${encodeURIComponent(type)}`,\n\t);\n}\n\nexport async function getNodeTranslationHeaders(\n\tcontext: IRestApiContext,\n): Promise<INodeTranslationHeaders | undefined> {\n\treturn await makeRestApiRequest(context, 'GET', '/node-translation-headers');\n}\n\nexport async function getNodesInformation(\n\tcontext: IRestApiContext,\n\tnodeInfos: INodeTypeNameVersion[],\n): Promise<INodeTypeDescription[]> {\n\treturn await makeRestApiRequest(context, 'POST', '/node-types', { nodeInfos });\n}\n\nexport async function getNodeParameterOptions(\n\tcontext: IRestApiContext,\n\tsendData: OptionsRequestDto,\n): Promise<INodePropertyOptions[]> {\n\treturn await makeRestApiRequest(context, 'POST', '/dynamic-node-parameters/options', sendData);\n}\n\nexport async function getResourceLocatorResults(\n\tcontext: IRestApiContext,\n\tsendData: ResourceLocatorRequestDto,\n): Promise<INodeListSearchResult> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/dynamic-node-parameters/resource-locator-results',\n\t\tsendData,\n\t);\n}\n\nexport async function getResourceMapperFields(\n\tcontext: IRestApiContext,\n\tsendData: ResourceMapperFieldsRequestDto,\n): Promise<ResourceMapperFields> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/dynamic-node-parameters/resource-mapper-fields',\n\t\tsendData,\n\t);\n}\n\nexport async function getLocalResourceMapperFields(\n\tcontext: IRestApiContext,\n\tsendData: ResourceMapperFieldsRequestDto,\n): Promise<ResourceMapperFields> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/dynamic-node-parameters/local-resource-mapper-fields',\n\t\tsendData,\n\t);\n}\n\nexport async function getNodeParameterActionResult(\n\tcontext: IRestApiContext,\n\tsendData: ActionResultRequestDto,\n): Promise<NodeParameterValueType> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/dynamic-node-parameters/action-result',\n\t\tsendData,\n\t);\n}\n"],"mappings":";;;;;;AAuBA,eAAe,4BAA4B,KAAa,UAAU,GAAG,QAAQ,KAAK;AACjF,MAAK,IAAI,UAAU,GAAG,UAAU,SAAS,WAAW;EACnD,MAAM,WAAW,MAAM,cAAM,IAAI,KAAK,EAAE,iBAAiB,MAAM,CAAC;AAEhE,MAAI,OAAO,SAAS,SAAS,YAAY,SAAS,SAAS,KAC1D,QAAO,SAAS;AAGjB,qCAAY,QAAQ,QAAQ;;AAG7B,OAAM,IAAI,MAAM,6BAA6B;;AAG9C,eAAsB,aAAa,SAAiB;AACnD,QAAO,MAAM,4BAA4B,UAAU,mBAAmB;;AAGvE,eAAsB,oBAAoB,SAAoC;AAC7E,QAAO,MAAM,4BAA4B,UAAU,2BAA2B;;;;;;;;;;AAW/E,eAAsB,yBACrB,SACA,aACkC;AAElC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,6BADA,EAAE,aAAa,CACmB;;AAGpF,eAAsB,wBACrB,SAC+B;AAC/B,QAAO,MAAMA,iCAAmB,SAAS,OAAO,wBAAwB;;AAGzE,eAAsB,6BACrB,SACA,MACoC;AACpC,QAAO,MAAMA,iCACZ,SACA,OACA,yBAAyB,mBAAmB,KAAK,GACjD;;AAGF,eAAsB,0BACrB,SAC+C;AAC/C,QAAO,MAAMA,iCAAmB,SAAS,OAAO,4BAA4B;;AAG7E,eAAsB,oBACrB,SACA,WACkC;AAClC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,eAAe,EAAE,WAAW,CAAC;;AAG/E,eAAsB,wBACrB,SACA,UACkC;AAClC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oCAAoC,SAAS;;AAG/F,eAAsB,0BACrB,SACA,UACiC;AACjC,QAAO,MAAMA,iCACZ,SACA,QACA,qDACA,SACA;;AAGF,eAAsB,wBACrB,SACA,UACgC;AAChC,QAAO,MAAMA,iCACZ,SACA,QACA,mDACA,SACA;;AAGF,eAAsB,6BACrB,SACA,UACgC;AAChC,QAAO,MAAMA,iCACZ,SACA,QACA,yDACA,SACA;;AAGF,eAAsB,6BACrB,SACA,UACkC;AAClC,QAAO,MAAMA,iCACZ,SACA,QACA,0CACA,SACA"}
|
package/dist/nodeTypes.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { s as makeRestApiRequest } from "./utils2.mjs";
|
|
2
2
|
import axios from "axios";
|
|
3
|
-
import { sleep } from "n8n
|
|
3
|
+
import { sleep } from "@n8n/utils/sleep";
|
|
4
4
|
|
|
5
5
|
//#region src/api/nodeTypes.ts
|
|
6
6
|
async function fetchNodeTypesJsonWithRetry(url, retries = 5, delay = 500) {
|
package/dist/nodeTypes.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeTypes.mjs","names":[],"sources":["../src/api/nodeTypes.ts"],"sourcesContent":["import type {\n\tActionResultRequestDto,\n\tCommunityNodeType,\n\tGetNodeTypesByIdentifierRequestDto,\n\tOptionsRequestDto,\n\tResourceLocatorRequestDto,\n\tResourceMapperFieldsRequestDto,\n} from '@n8n/api-types';\nimport type { INodeTranslationHeaders } from '@n8n/i18n';\nimport axios from 'axios';\nimport type {\n\tINodeListSearchResult,\n\tINodePropertyOptions,\n\tINodeTypeDescription,\n\tINodeTypeNameVersion,\n\tNodeParameterValueType,\n\tResourceMapperFields,\n} from 'n8n-workflow';\
|
|
1
|
+
{"version":3,"file":"nodeTypes.mjs","names":[],"sources":["../src/api/nodeTypes.ts"],"sourcesContent":["import type {\n\tActionResultRequestDto,\n\tCommunityNodeType,\n\tGetNodeTypesByIdentifierRequestDto,\n\tOptionsRequestDto,\n\tResourceLocatorRequestDto,\n\tResourceMapperFieldsRequestDto,\n} from '@n8n/api-types';\nimport type { INodeTranslationHeaders } from '@n8n/i18n';\nimport { sleep } from '@n8n/utils/sleep';\nimport axios from 'axios';\nimport type {\n\tINodeListSearchResult,\n\tINodePropertyOptions,\n\tINodeTypeDescription,\n\tINodeTypeNameVersion,\n\tNodeParameterValueType,\n\tResourceMapperFields,\n} from 'n8n-workflow';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nasync function fetchNodeTypesJsonWithRetry(url: string, retries = 5, delay = 500) {\n\tfor (let attempt = 0; attempt < retries; attempt++) {\n\t\tconst response = await axios.get(url, { withCredentials: true });\n\n\t\tif (typeof response.data === 'object' && response.data !== null) {\n\t\t\treturn response.data;\n\t\t}\n\n\t\tawait sleep(delay * attempt);\n\t}\n\n\tthrow new Error('Could not fetch node types');\n}\n\nexport async function getNodeTypes(baseUrl: string) {\n\treturn await fetchNodeTypesJsonWithRetry(baseUrl + 'types/nodes.json');\n}\n\nexport async function getNodeTypeVersions(baseUrl: string): Promise<string[]> {\n\treturn await fetchNodeTypesJsonWithRetry(baseUrl + 'types/node-versions.json');\n}\n\n/**\n * Fetch specific node types by their identifier (name@version format)\n * This is useful for incremental syncs where only missing node types need to be fetched\n *\n * @param context - The REST API context containing base URL and auth info\n * @param identifiers - Array of node type identifiers in \"name@version\" format\n * @returns Array of node type descriptions for the requested identifiers\n */\nexport async function getNodeTypesByIdentifier(\n\tcontext: IRestApiContext,\n\tidentifiers: string[],\n): Promise<INodeTypeDescription[]> {\n\tconst body: GetNodeTypesByIdentifierRequestDto = { identifiers };\n\treturn await makeRestApiRequest(context, 'POST', '/node-types/by-identifier', body);\n}\n\nexport async function fetchCommunityNodeTypes(\n\tcontext: IRestApiContext,\n): Promise<CommunityNodeType[]> {\n\treturn await makeRestApiRequest(context, 'GET', '/community-node-types');\n}\n\nexport async function fetchCommunityNodeAttributes(\n\tcontext: IRestApiContext,\n\ttype: string,\n): Promise<CommunityNodeType | null> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'GET',\n\t\t`/community-node-types/${encodeURIComponent(type)}`,\n\t);\n}\n\nexport async function getNodeTranslationHeaders(\n\tcontext: IRestApiContext,\n): Promise<INodeTranslationHeaders | undefined> {\n\treturn await makeRestApiRequest(context, 'GET', '/node-translation-headers');\n}\n\nexport async function getNodesInformation(\n\tcontext: IRestApiContext,\n\tnodeInfos: INodeTypeNameVersion[],\n): Promise<INodeTypeDescription[]> {\n\treturn await makeRestApiRequest(context, 'POST', '/node-types', { nodeInfos });\n}\n\nexport async function getNodeParameterOptions(\n\tcontext: IRestApiContext,\n\tsendData: OptionsRequestDto,\n): Promise<INodePropertyOptions[]> {\n\treturn await makeRestApiRequest(context, 'POST', '/dynamic-node-parameters/options', sendData);\n}\n\nexport async function getResourceLocatorResults(\n\tcontext: IRestApiContext,\n\tsendData: ResourceLocatorRequestDto,\n): Promise<INodeListSearchResult> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/dynamic-node-parameters/resource-locator-results',\n\t\tsendData,\n\t);\n}\n\nexport async function getResourceMapperFields(\n\tcontext: IRestApiContext,\n\tsendData: ResourceMapperFieldsRequestDto,\n): Promise<ResourceMapperFields> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/dynamic-node-parameters/resource-mapper-fields',\n\t\tsendData,\n\t);\n}\n\nexport async function getLocalResourceMapperFields(\n\tcontext: IRestApiContext,\n\tsendData: ResourceMapperFieldsRequestDto,\n): Promise<ResourceMapperFields> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/dynamic-node-parameters/local-resource-mapper-fields',\n\t\tsendData,\n\t);\n}\n\nexport async function getNodeParameterActionResult(\n\tcontext: IRestApiContext,\n\tsendData: ActionResultRequestDto,\n): Promise<NodeParameterValueType> {\n\treturn await makeRestApiRequest(\n\t\tcontext,\n\t\t'POST',\n\t\t'/dynamic-node-parameters/action-result',\n\t\tsendData,\n\t);\n}\n"],"mappings":";;;;;AAuBA,eAAe,4BAA4B,KAAa,UAAU,GAAG,QAAQ,KAAK;AACjF,MAAK,IAAI,UAAU,GAAG,UAAU,SAAS,WAAW;EACnD,MAAM,WAAW,MAAM,MAAM,IAAI,KAAK,EAAE,iBAAiB,MAAM,CAAC;AAEhE,MAAI,OAAO,SAAS,SAAS,YAAY,SAAS,SAAS,KAC1D,QAAO,SAAS;AAGjB,QAAM,MAAM,QAAQ,QAAQ;;AAG7B,OAAM,IAAI,MAAM,6BAA6B;;AAG9C,eAAsB,aAAa,SAAiB;AACnD,QAAO,MAAM,4BAA4B,UAAU,mBAAmB;;AAGvE,eAAsB,oBAAoB,SAAoC;AAC7E,QAAO,MAAM,4BAA4B,UAAU,2BAA2B;;;;;;;;;;AAW/E,eAAsB,yBACrB,SACA,aACkC;AAElC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,6BADA,EAAE,aAAa,CACmB;;AAGpF,eAAsB,wBACrB,SAC+B;AAC/B,QAAO,MAAM,mBAAmB,SAAS,OAAO,wBAAwB;;AAGzE,eAAsB,6BACrB,SACA,MACoC;AACpC,QAAO,MAAM,mBACZ,SACA,OACA,yBAAyB,mBAAmB,KAAK,GACjD;;AAGF,eAAsB,0BACrB,SAC+C;AAC/C,QAAO,MAAM,mBAAmB,SAAS,OAAO,4BAA4B;;AAG7E,eAAsB,oBACrB,SACA,WACkC;AAClC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,eAAe,EAAE,WAAW,CAAC;;AAG/E,eAAsB,wBACrB,SACA,UACkC;AAClC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oCAAoC,SAAS;;AAG/F,eAAsB,0BACrB,SACA,UACiC;AACjC,QAAO,MAAM,mBACZ,SACA,QACA,qDACA,SACA;;AAGF,eAAsB,wBACrB,SACA,UACgC;AAChC,QAAO,MAAM,mBACZ,SACA,QACA,mDACA,SACA;;AAGF,eAAsB,6BACrB,SACA,UACgC;AAChC,QAAO,MAAM,mBACZ,SACA,QACA,yDACA,SACA;;AAGF,eAAsB,6BACrB,SACA,UACkC;AAClC,QAAO,MAAM,mBACZ,SACA,QACA,0CACA,SACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisioning.cjs","names":["makeRestApiRequest"],"sources":["../src/api/provisioning.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport interface ProvisioningConfig {\n\tscopesInstanceRoleClaimName: string;\n\tscopesName: string;\n\tscopesProjectsRolesClaimName: string;\n\tscopesProvisionInstanceRole: boolean;\n\tscopesProvisionProjectRoles: boolean;\n\tscopesUseExpressionMapping: boolean;\n}\n\nexport type ProvisioningConfigPatch = Partial<ProvisioningConfig> & {\n\tdeleteProjectRules?: boolean;\n};\n\nexport const getProvisioningConfig = async (\n\tcontext: IRestApiContext,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/provisioning/config');\n};\n\nexport const saveProvisioningConfig = async (\n\tcontext: IRestApiContext,\n\tconfig: ProvisioningConfigPatch,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'PATCH', '/sso/provisioning/config', config);\n};\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"provisioning.cjs","names":["makeRestApiRequest"],"sources":["../src/api/provisioning.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport interface ProvisioningConfig {\n\tscopesInstanceRoleClaimName: string;\n\tscopesName: string;\n\tscopesProjectsRolesClaimName: string;\n\tscopesProvisionInstanceRole: boolean;\n\tscopesProvisionProjectRoles: boolean;\n\tscopesUseExpressionMapping: boolean;\n\t/**\n\t * Default condition: role slug (or BLOCK_ACCESS_ASSIGNMENT) applied when a\n\t * login doesn't resolve to an instance role. Unset preserves legacy behavior.\n\t */\n\tdefaultInstanceRole?: string;\n}\n\nexport type ProvisioningConfigPatch = Partial<ProvisioningConfig> & {\n\tdeleteProjectRules?: boolean;\n};\n\nexport const getProvisioningConfig = async (\n\tcontext: IRestApiContext,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/provisioning/config');\n};\n\nexport const saveProvisioningConfig = async (\n\tcontext: IRestApiContext,\n\tconfig: ProvisioningConfigPatch,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'PATCH', '/sso/provisioning/config', config);\n};\n"],"mappings":";;;AAqBA,MAAa,wBAAwB,OACpC,YACiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,OAAO,2BAA2B;;AAG5E,MAAa,yBAAyB,OACrC,SACA,WACiC;AACjC,QAAO,MAAMA,iCAAmB,SAAS,SAAS,4BAA4B,OAAO"}
|
package/dist/provisioning.d.cts
CHANGED
|
@@ -8,6 +8,7 @@ interface ProvisioningConfig {
|
|
|
8
8
|
scopesProvisionInstanceRole: boolean;
|
|
9
9
|
scopesProvisionProjectRoles: boolean;
|
|
10
10
|
scopesUseExpressionMapping: boolean;
|
|
11
|
+
defaultInstanceRole?: string;
|
|
11
12
|
}
|
|
12
13
|
type ProvisioningConfigPatch = Partial<ProvisioningConfig> & {
|
|
13
14
|
deleteProjectRules?: boolean;
|
package/dist/provisioning.d.mts
CHANGED
|
@@ -8,6 +8,7 @@ interface ProvisioningConfig {
|
|
|
8
8
|
scopesProvisionInstanceRole: boolean;
|
|
9
9
|
scopesProvisionProjectRoles: boolean;
|
|
10
10
|
scopesUseExpressionMapping: boolean;
|
|
11
|
+
defaultInstanceRole?: string;
|
|
11
12
|
}
|
|
12
13
|
type ProvisioningConfigPatch = Partial<ProvisioningConfig> & {
|
|
13
14
|
deleteProjectRules?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisioning.mjs","names":[],"sources":["../src/api/provisioning.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport interface ProvisioningConfig {\n\tscopesInstanceRoleClaimName: string;\n\tscopesName: string;\n\tscopesProjectsRolesClaimName: string;\n\tscopesProvisionInstanceRole: boolean;\n\tscopesProvisionProjectRoles: boolean;\n\tscopesUseExpressionMapping: boolean;\n}\n\nexport type ProvisioningConfigPatch = Partial<ProvisioningConfig> & {\n\tdeleteProjectRules?: boolean;\n};\n\nexport const getProvisioningConfig = async (\n\tcontext: IRestApiContext,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/provisioning/config');\n};\n\nexport const saveProvisioningConfig = async (\n\tcontext: IRestApiContext,\n\tconfig: ProvisioningConfigPatch,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'PATCH', '/sso/provisioning/config', config);\n};\n"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"provisioning.mjs","names":[],"sources":["../src/api/provisioning.ts"],"sourcesContent":["import type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport interface ProvisioningConfig {\n\tscopesInstanceRoleClaimName: string;\n\tscopesName: string;\n\tscopesProjectsRolesClaimName: string;\n\tscopesProvisionInstanceRole: boolean;\n\tscopesProvisionProjectRoles: boolean;\n\tscopesUseExpressionMapping: boolean;\n\t/**\n\t * Default condition: role slug (or BLOCK_ACCESS_ASSIGNMENT) applied when a\n\t * login doesn't resolve to an instance role. Unset preserves legacy behavior.\n\t */\n\tdefaultInstanceRole?: string;\n}\n\nexport type ProvisioningConfigPatch = Partial<ProvisioningConfig> & {\n\tdeleteProjectRules?: boolean;\n};\n\nexport const getProvisioningConfig = async (\n\tcontext: IRestApiContext,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/provisioning/config');\n};\n\nexport const saveProvisioningConfig = async (\n\tcontext: IRestApiContext,\n\tconfig: ProvisioningConfigPatch,\n): Promise<ProvisioningConfig> => {\n\treturn await makeRestApiRequest(context, 'PATCH', '/sso/provisioning/config', config);\n};\n"],"mappings":";;;AAqBA,MAAa,wBAAwB,OACpC,YACiC;AACjC,QAAO,MAAM,mBAAmB,SAAS,OAAO,2BAA2B;;AAG5E,MAAa,yBAAyB,OACrC,SACA,WACiC;AACjC,QAAO,MAAM,mBAAmB,SAAS,SAAS,4BAA4B,OAAO"}
|
package/dist/sso.cjs
CHANGED
|
@@ -31,6 +31,9 @@ const testOidcConfig = async (context) => {
|
|
|
31
31
|
const initOidcLogin = async (context) => {
|
|
32
32
|
return await require_utils.makeRestApiRequest(context, "GET", "/sso/oidc/login");
|
|
33
33
|
};
|
|
34
|
+
const oidcLogout = async (context) => {
|
|
35
|
+
return await require_utils.makeRestApiRequest(context, "POST", "/sso/oidc/logout");
|
|
36
|
+
};
|
|
34
37
|
|
|
35
38
|
//#endregion
|
|
36
39
|
Object.defineProperty(exports, 'getOidcConfig', {
|
|
@@ -63,6 +66,12 @@ Object.defineProperty(exports, 'initSSO', {
|
|
|
63
66
|
return initSSO;
|
|
64
67
|
}
|
|
65
68
|
});
|
|
69
|
+
Object.defineProperty(exports, 'oidcLogout', {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () {
|
|
72
|
+
return oidcLogout;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
66
75
|
Object.defineProperty(exports, 'saveOidcConfig', {
|
|
67
76
|
enumerable: true,
|
|
68
77
|
get: function () {
|
package/dist/sso.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso.cjs","names":["makeRestApiRequest"],"sources":["../src/api/sso.ts"],"sourcesContent":["import type {\n\tOidcConfigDto,\n\tSamlPreferences,\n\tSamlToggleDto,\n\tTestOidcConfigResponseDto,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type SamlPreferencesExtractedData = {\n\tentityID: string;\n\treturnUrl: string;\n};\n\nexport const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);\n};\n\nexport const getSamlMetadata = async (context: IRestApiContext): Promise<SamlPreferences> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/metadata');\n};\n\nexport const getSamlConfig = async (\n\tcontext: IRestApiContext,\n): Promise<SamlPreferences & SamlPreferencesExtractedData> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config');\n};\n\nexport const saveSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<SamlPreferences | undefined> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config', data);\n};\n\nexport const toggleSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: SamlToggleDto,\n): Promise<void> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/toggle', data);\n};\n\nexport const testSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/test', data);\n};\n\nexport const getOidcConfig = async (context: IRestApiContext): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/config');\n};\n\nexport const saveOidcConfig = async (\n\tcontext: IRestApiContext,\n\tdata: OidcConfigDto,\n): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config', data);\n};\n\nexport const testOidcConfig = async (\n\tcontext: IRestApiContext,\n): Promise<TestOidcConfigResponseDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config/test');\n};\n\nexport const initOidcLogin = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/login');\n};\n"],"mappings":";;;AAeA,MAAa,UAAU,OAAO,SAA0B,cAAc,OAAwB;AAC7F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,8BAA8B,cAAc;;AAG7F,MAAa,kBAAkB,OAAO,YAAuD;AAC5F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,qBAAqB;;AAGtE,MAAa,gBAAgB,OAC5B,YAC6D;AAC7D,QAAO,MAAMA,iCAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC0C;AAC1C,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,mBAAmB,OAC/B,SACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,2BAA2B,KAAK;;AAGlF,MAAa,iBAAiB,OAC7B,SACA,SACqB;AACrB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,yBAAyB,KAAK;;AAGhF,MAAa,gBAAgB,OAAO,YAAqD;AACxF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC4B;AAC5B,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,iBAAiB,OAC7B,YACwC;AACxC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,wBAAwB;;AAG1E,MAAa,gBAAgB,OAAO,YAA8C;AACjF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,kBAAkB"}
|
|
1
|
+
{"version":3,"file":"sso.cjs","names":["makeRestApiRequest"],"sources":["../src/api/sso.ts"],"sourcesContent":["import type {\n\tOidcConfigDto,\n\tSamlPreferences,\n\tSamlToggleDto,\n\tTestOidcConfigResponseDto,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type SamlPreferencesExtractedData = {\n\tentityID: string;\n\treturnUrl: string;\n};\n\nexport const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);\n};\n\nexport const getSamlMetadata = async (context: IRestApiContext): Promise<SamlPreferences> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/metadata');\n};\n\nexport const getSamlConfig = async (\n\tcontext: IRestApiContext,\n): Promise<SamlPreferences & SamlPreferencesExtractedData> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config');\n};\n\nexport const saveSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<SamlPreferences | undefined> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config', data);\n};\n\nexport const toggleSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: SamlToggleDto,\n): Promise<void> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/toggle', data);\n};\n\nexport const testSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/test', data);\n};\n\nexport const getOidcConfig = async (context: IRestApiContext): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/config');\n};\n\nexport const saveOidcConfig = async (\n\tcontext: IRestApiContext,\n\tdata: OidcConfigDto,\n): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config', data);\n};\n\nexport const testOidcConfig = async (\n\tcontext: IRestApiContext,\n): Promise<TestOidcConfigResponseDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config/test');\n};\n\nexport const initOidcLogin = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/login');\n};\n\nexport type OidcLogoutResponse = {\n\t/**\n\t * OIDC RP-Initiated Logout URL to redirect the browser to, or `null` when\n\t * the session was not established through OIDC or the provider does not\n\t * support RP-initiated logout. The n8n session is terminated either way.\n\t */\n\tredirectUrl: string | null;\n};\n\nexport const oidcLogout = async (context: IRestApiContext): Promise<OidcLogoutResponse> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/logout');\n};\n"],"mappings":";;;AAeA,MAAa,UAAU,OAAO,SAA0B,cAAc,OAAwB;AAC7F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,8BAA8B,cAAc;;AAG7F,MAAa,kBAAkB,OAAO,YAAuD;AAC5F,QAAO,MAAMA,iCAAmB,SAAS,OAAO,qBAAqB;;AAGtE,MAAa,gBAAgB,OAC5B,YAC6D;AAC7D,QAAO,MAAMA,iCAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC0C;AAC1C,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,mBAAmB,OAC/B,SACA,SACmB;AACnB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,2BAA2B,KAAK;;AAGlF,MAAa,iBAAiB,OAC7B,SACA,SACqB;AACrB,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,yBAAyB,KAAK;;AAGhF,MAAa,gBAAgB,OAAO,YAAqD;AACxF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC4B;AAC5B,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,iBAAiB,OAC7B,YACwC;AACxC,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,wBAAwB;;AAG1E,MAAa,gBAAgB,OAAO,YAA8C;AACjF,QAAO,MAAMA,iCAAmB,SAAS,OAAO,kBAAkB;;AAYnE,MAAa,aAAa,OAAO,YAA0D;AAC1F,QAAO,MAAMA,iCAAmB,SAAS,QAAQ,mBAAmB"}
|
package/dist/sso.d.cts
CHANGED
|
@@ -16,6 +16,10 @@ declare const getOidcConfig: (context: IRestApiContext) => Promise<OidcConfigDto
|
|
|
16
16
|
declare const saveOidcConfig: (context: IRestApiContext, data: OidcConfigDto) => Promise<OidcConfigDto>;
|
|
17
17
|
declare const testOidcConfig: (context: IRestApiContext) => Promise<TestOidcConfigResponseDto>;
|
|
18
18
|
declare const initOidcLogin: (context: IRestApiContext) => Promise<string>;
|
|
19
|
+
type OidcLogoutResponse = {
|
|
20
|
+
redirectUrl: string | null;
|
|
21
|
+
};
|
|
22
|
+
declare const oidcLogout: (context: IRestApiContext) => Promise<OidcLogoutResponse>;
|
|
19
23
|
//#endregion
|
|
20
|
-
export {
|
|
24
|
+
export { getSamlMetadata as a, oidcLogout as c, testOidcConfig as d, testSamlConfig as f, getSamlConfig as i, saveOidcConfig as l, SamlPreferencesExtractedData as n, initOidcLogin as o, toggleSamlConfig as p, getOidcConfig as r, initSSO as s, OidcLogoutResponse as t, saveSamlConfig as u };
|
|
21
25
|
//# sourceMappingURL=sso.d.cts.map
|
package/dist/sso.d.mts
CHANGED
|
@@ -16,6 +16,10 @@ declare const getOidcConfig: (context: IRestApiContext) => Promise<OidcConfigDto
|
|
|
16
16
|
declare const saveOidcConfig: (context: IRestApiContext, data: OidcConfigDto) => Promise<OidcConfigDto>;
|
|
17
17
|
declare const testOidcConfig: (context: IRestApiContext) => Promise<TestOidcConfigResponseDto>;
|
|
18
18
|
declare const initOidcLogin: (context: IRestApiContext) => Promise<string>;
|
|
19
|
+
type OidcLogoutResponse = {
|
|
20
|
+
redirectUrl: string | null;
|
|
21
|
+
};
|
|
22
|
+
declare const oidcLogout: (context: IRestApiContext) => Promise<OidcLogoutResponse>;
|
|
19
23
|
//#endregion
|
|
20
|
-
export {
|
|
24
|
+
export { getSamlMetadata as a, oidcLogout as c, testOidcConfig as d, testSamlConfig as f, getSamlConfig as i, saveOidcConfig as l, SamlPreferencesExtractedData as n, initOidcLogin as o, toggleSamlConfig as p, getOidcConfig as r, initSSO as s, OidcLogoutResponse as t, saveSamlConfig as u };
|
|
21
25
|
//# sourceMappingURL=sso.d.mts.map
|
package/dist/sso.mjs
CHANGED
|
@@ -31,7 +31,10 @@ const testOidcConfig = async (context) => {
|
|
|
31
31
|
const initOidcLogin = async (context) => {
|
|
32
32
|
return await makeRestApiRequest(context, "GET", "/sso/oidc/login");
|
|
33
33
|
};
|
|
34
|
+
const oidcLogout = async (context) => {
|
|
35
|
+
return await makeRestApiRequest(context, "POST", "/sso/oidc/logout");
|
|
36
|
+
};
|
|
34
37
|
|
|
35
38
|
//#endregion
|
|
36
|
-
export { initSSO as a,
|
|
39
|
+
export { initSSO as a, saveSamlConfig as c, toggleSamlConfig as d, initOidcLogin as i, testOidcConfig as l, getSamlConfig as n, oidcLogout as o, getSamlMetadata as r, saveOidcConfig as s, getOidcConfig as t, testSamlConfig as u };
|
|
37
40
|
//# sourceMappingURL=sso.mjs.map
|
package/dist/sso.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sso.mjs","names":[],"sources":["../src/api/sso.ts"],"sourcesContent":["import type {\n\tOidcConfigDto,\n\tSamlPreferences,\n\tSamlToggleDto,\n\tTestOidcConfigResponseDto,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type SamlPreferencesExtractedData = {\n\tentityID: string;\n\treturnUrl: string;\n};\n\nexport const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);\n};\n\nexport const getSamlMetadata = async (context: IRestApiContext): Promise<SamlPreferences> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/metadata');\n};\n\nexport const getSamlConfig = async (\n\tcontext: IRestApiContext,\n): Promise<SamlPreferences & SamlPreferencesExtractedData> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config');\n};\n\nexport const saveSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<SamlPreferences | undefined> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config', data);\n};\n\nexport const toggleSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: SamlToggleDto,\n): Promise<void> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/toggle', data);\n};\n\nexport const testSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/test', data);\n};\n\nexport const getOidcConfig = async (context: IRestApiContext): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/config');\n};\n\nexport const saveOidcConfig = async (\n\tcontext: IRestApiContext,\n\tdata: OidcConfigDto,\n): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config', data);\n};\n\nexport const testOidcConfig = async (\n\tcontext: IRestApiContext,\n): Promise<TestOidcConfigResponseDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config/test');\n};\n\nexport const initOidcLogin = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/login');\n};\n"],"mappings":";;;AAeA,MAAa,UAAU,OAAO,SAA0B,cAAc,OAAwB;AAC7F,QAAO,MAAM,mBAAmB,SAAS,OAAO,8BAA8B,cAAc;;AAG7F,MAAa,kBAAkB,OAAO,YAAuD;AAC5F,QAAO,MAAM,mBAAmB,SAAS,OAAO,qBAAqB;;AAGtE,MAAa,gBAAgB,OAC5B,YAC6D;AAC7D,QAAO,MAAM,mBAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC0C;AAC1C,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,mBAAmB,OAC/B,SACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,2BAA2B,KAAK;;AAGlF,MAAa,iBAAiB,OAC7B,SACA,SACqB;AACrB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,yBAAyB,KAAK;;AAGhF,MAAa,gBAAgB,OAAO,YAAqD;AACxF,QAAO,MAAM,mBAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC4B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,iBAAiB,OAC7B,YACwC;AACxC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,wBAAwB;;AAG1E,MAAa,gBAAgB,OAAO,YAA8C;AACjF,QAAO,MAAM,mBAAmB,SAAS,OAAO,kBAAkB"}
|
|
1
|
+
{"version":3,"file":"sso.mjs","names":[],"sources":["../src/api/sso.ts"],"sourcesContent":["import type {\n\tOidcConfigDto,\n\tSamlPreferences,\n\tSamlToggleDto,\n\tTestOidcConfigResponseDto,\n} from '@n8n/api-types';\n\nimport type { IRestApiContext } from '../types';\nimport { makeRestApiRequest } from '../utils';\n\nexport type SamlPreferencesExtractedData = {\n\tentityID: string;\n\treturnUrl: string;\n};\n\nexport const initSSO = async (context: IRestApiContext, redirectUrl = ''): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', `/sso/saml/initsso?redirect=${redirectUrl}`);\n};\n\nexport const getSamlMetadata = async (context: IRestApiContext): Promise<SamlPreferences> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/metadata');\n};\n\nexport const getSamlConfig = async (\n\tcontext: IRestApiContext,\n): Promise<SamlPreferences & SamlPreferencesExtractedData> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/saml/config');\n};\n\nexport const saveSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<SamlPreferences | undefined> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config', data);\n};\n\nexport const toggleSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: SamlToggleDto,\n): Promise<void> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/toggle', data);\n};\n\nexport const testSamlConfig = async (\n\tcontext: IRestApiContext,\n\tdata: Partial<SamlPreferences>,\n): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/saml/config/test', data);\n};\n\nexport const getOidcConfig = async (context: IRestApiContext): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/config');\n};\n\nexport const saveOidcConfig = async (\n\tcontext: IRestApiContext,\n\tdata: OidcConfigDto,\n): Promise<OidcConfigDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config', data);\n};\n\nexport const testOidcConfig = async (\n\tcontext: IRestApiContext,\n): Promise<TestOidcConfigResponseDto> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/config/test');\n};\n\nexport const initOidcLogin = async (context: IRestApiContext): Promise<string> => {\n\treturn await makeRestApiRequest(context, 'GET', '/sso/oidc/login');\n};\n\nexport type OidcLogoutResponse = {\n\t/**\n\t * OIDC RP-Initiated Logout URL to redirect the browser to, or `null` when\n\t * the session was not established through OIDC or the provider does not\n\t * support RP-initiated logout. The n8n session is terminated either way.\n\t */\n\tredirectUrl: string | null;\n};\n\nexport const oidcLogout = async (context: IRestApiContext): Promise<OidcLogoutResponse> => {\n\treturn await makeRestApiRequest(context, 'POST', '/sso/oidc/logout');\n};\n"],"mappings":";;;AAeA,MAAa,UAAU,OAAO,SAA0B,cAAc,OAAwB;AAC7F,QAAO,MAAM,mBAAmB,SAAS,OAAO,8BAA8B,cAAc;;AAG7F,MAAa,kBAAkB,OAAO,YAAuD;AAC5F,QAAO,MAAM,mBAAmB,SAAS,OAAO,qBAAqB;;AAGtE,MAAa,gBAAgB,OAC5B,YAC6D;AAC7D,QAAO,MAAM,mBAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC0C;AAC1C,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,mBAAmB,OAC/B,SACA,SACmB;AACnB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,2BAA2B,KAAK;;AAGlF,MAAa,iBAAiB,OAC7B,SACA,SACqB;AACrB,QAAO,MAAM,mBAAmB,SAAS,QAAQ,yBAAyB,KAAK;;AAGhF,MAAa,gBAAgB,OAAO,YAAqD;AACxF,QAAO,MAAM,mBAAmB,SAAS,OAAO,mBAAmB;;AAGpE,MAAa,iBAAiB,OAC7B,SACA,SAC4B;AAC5B,QAAO,MAAM,mBAAmB,SAAS,QAAQ,oBAAoB,KAAK;;AAG3E,MAAa,iBAAiB,OAC7B,YACwC;AACxC,QAAO,MAAM,mBAAmB,SAAS,QAAQ,wBAAwB;;AAG1E,MAAa,gBAAgB,OAAO,YAA8C;AACjF,QAAO,MAAM,mBAAmB,SAAS,OAAO,kBAAkB;;AAYnE,MAAa,aAAa,OAAO,YAA0D;AAC1F,QAAO,MAAM,mBAAmB,SAAS,QAAQ,mBAAmB"}
|
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.34.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"LICENSE.md",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"js-base64": "3.7.8",
|
|
27
27
|
"axios": "1.18.0",
|
|
28
28
|
"flatted": "3.4.2",
|
|
29
|
-
"@n8n/api-types": "1.
|
|
30
|
-
"@n8n/
|
|
31
|
-
"@n8n/
|
|
32
|
-
"@n8n/utils": "1.
|
|
33
|
-
"n8n-workflow": "2.
|
|
29
|
+
"@n8n/api-types": "1.34.0",
|
|
30
|
+
"@n8n/permissions": "0.71.0",
|
|
31
|
+
"@n8n/constants": "0.33.0",
|
|
32
|
+
"@n8n/utils": "1.42.0",
|
|
33
|
+
"n8n-workflow": "2.34.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@n8n/eslint-config": "0.0.1",
|
|
44
44
|
"@n8n/playwright-janitor": "0.1.0",
|
|
45
45
|
"@n8n/typescript-config": "1.9.0",
|
|
46
|
-
"@n8n/
|
|
47
|
-
"@n8n/
|
|
46
|
+
"@n8n/vitest-config": "1.19.0",
|
|
47
|
+
"@n8n/i18n": "2.34.0"
|
|
48
48
|
},
|
|
49
49
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
50
50
|
"homepage": "https://n8n.io",
|