import { AgentSkeleton } from '../api/AgentApi'; import { IdObjectSkeletonInterface } from '../api/ApiTypes'; import { AuthenticationSettingsSkeleton } from '../api/AuthenticationSettingsApi'; import { CircleOfTrustSkeleton } from '../api/CirclesOfTrustApi'; import { SecretSkeleton } from '../api/cloud/SecretsApi'; import { VariableSkeleton } from '../api/cloud/VariablesApi'; import { OAuth2ClientSkeleton } from '../api/OAuth2ClientApi'; import { PolicySkeleton } from '../api/PoliciesApi'; import { PolicySetSkeleton } from '../api/PolicySetApi'; import { ResourceTypeSkeleton } from '../api/ResourceTypesApi'; import { Saml2ProviderSkeleton } from '../api/Saml2Api'; import { ScriptSkeleton } from '../api/ScriptApi'; import { AmServiceSkeleton } from '../api/ServiceApi'; import { SocialIdpSkeleton } from '../api/SocialIdentityProvidersApi'; import { State } from '../shared/State'; import { ApplicationSkeleton } from './ApplicationOps'; import { EmailTemplateSkeleton } from './EmailTemplateOps'; import { SingleTreeExportInterface } from './JourneyOps'; import { MappingSkeleton, SyncSkeleton } from './MappingOps'; import { ExportMetaData } from './OpsTypes'; import { ThemeSkeleton } from './ThemeOps'; export type Config = { /** * Export full configuration * @param {FullExportOptions} options export options * @param {Error[]} collectErrors optional parameter to collect errors instead of having the function throw. Pass an empty array to collect errors and report on them but have the function perform all it can and return the export data even if it encounters errors. * @returns {Promise} a promise resolving to a full export object */ exportFullConfiguration(options: FullExportOptions, collectErrors?: Error[]): Promise; /** * Import full configuration * @param {FullExportInterface} importData import data * @param {FullImportOptions} options import options * @param {Error[]} collectErrors optional parameter to collect errors instead of having the function throw. Pass an empty array to collect errors and report on them but have the function perform all it can and return the export data even if it encounters errors. */ importFullConfiguration(importData: FullExportInterface, options: FullImportOptions, collectErrors?: Error[]): Promise<(object | any[])[]>; }; declare const _default: (state: State) => Config; export default _default; /** * Full export options */ export interface FullExportOptions { /** * Use string arrays to store multi-line text in scripts. */ useStringArrays: boolean; /** * Do not include decoded variable value in export */ noDecode: boolean; /** * Include x and y coordinate positions of the journey/tree nodes. */ coords: boolean; /** * Include default scripts in export if true */ includeDefault: boolean; /** * Include active and loaded secret values */ includeActiveValues: boolean; /** * Host URL of target environment to encrypt secret values for */ target?: string; } /** * Full import options */ export interface FullImportOptions { /** * Generate new UUIDs for all journey nodes during import. */ reUuidJourneys: boolean; /** * Generate new UUIDs for all scripts during import. */ reUuidScripts: boolean; /** * Indicates whether to remove previously existing services of the same id before importing */ cleanServices: boolean; /** * Include default scripts in import if true */ includeDefault: boolean; /** * Include active secret values */ includeActiveValues: boolean; /** * Host URL of source environment to decrypt secret values from */ source?: string; } export interface FullExportInterface { meta?: ExportMetaData; global: FullGlobalExportInterface; realm: Record; } export interface FullGlobalExportInterface { emailTemplate: Record | undefined; idm: Record | undefined; mapping: Record | undefined; secret: Record | undefined; service: Record | undefined; sync: SyncSkeleton | undefined; variable: Record | undefined; } export interface FullRealmExportInterface { agent: Record | undefined; application: Record | undefined; authentication: AuthenticationSettingsSkeleton | undefined; idp: Record | undefined; managedApplication: Record | undefined; policy: Record | undefined; policyset: Record | undefined; resourcetype: Record | undefined; saml: { hosted: Record; remote: Record; metadata: Record; cot: Record | undefined; } | undefined; script: Record | undefined; service: Record | undefined; theme: Record | undefined; trees: Record | undefined; } /** * Export full configuration * @param {FullExportOptions} options export options * @param {Error[]} collectErrors optional parameter to collect errors instead of having the function throw. Pass an empty array to collect errors and report on them but have the function perform all it can and return the export data even if it encounters errors. */ export declare function exportFullConfiguration({ options, collectErrors, state, }: { options: FullExportOptions; collectErrors?: Error[]; state: State; }): Promise; /** * Import full configuration * @param {FullExportInterface} importData import data * @param {FullImportOptions} options import options * @param {Error[]} collectErrors optional parameter to collect errors instead of having the function throw. Pass an empty array to collect errors and report on them but have the function perform all it can and return the export data even if it encounters errors. */ export declare function importFullConfiguration({ importData, options, collectErrors, state, }: { importData: FullExportInterface; options: FullImportOptions; collectErrors?: Error[]; state: State; }): Promise<(object | any[])[]>; //# sourceMappingURL=ConfigOps.d.ts.map