@botpress/cli 4.17.14 → 4.17.15
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/.turbo/turbo-build.log +16 -12
- package/bin.js +1 -1
- package/dist/api/bot-body.d.ts +5 -0
- package/dist/api/client.d.ts +50 -0
- package/dist/api/index.d.ts +6 -0
- package/dist/api/integration-body.d.ts +5 -0
- package/dist/api/interface-body.d.ts +7 -0
- package/dist/api/paging.d.ts +9 -0
- package/dist/api/plugin-body.d.ts +5 -0
- package/dist/api/retry.d.ts +2 -0
- package/dist/api/types.d.ts +62 -0
- package/dist/chat/index.d.ts +25 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +51 -0
- package/dist/cli.js.map +7 -0
- package/dist/code-generation/bot-implementation/bot-implementation.d.ts +8 -0
- package/dist/code-generation/bot-implementation/bot-plugins/index.d.ts +7 -0
- package/dist/code-generation/bot-implementation/bot-plugins/plugin-module.d.ts +13 -0
- package/dist/code-generation/bot-implementation/bot-typings/actions-module.d.ts +21 -0
- package/dist/code-generation/bot-implementation/bot-typings/events-module.d.ts +10 -0
- package/dist/code-generation/bot-implementation/bot-typings/index.d.ts +7 -0
- package/dist/code-generation/bot-implementation/bot-typings/states-module.d.ts +17 -0
- package/dist/code-generation/bot-implementation/bot-typings/tables-module.d.ts +10 -0
- package/dist/code-generation/bot-implementation/bot-typings/workflows-module.d.ts +27 -0
- package/dist/code-generation/bot-implementation/index.d.ts +3 -0
- package/dist/code-generation/consts.d.ts +5 -0
- package/dist/code-generation/generators.d.ts +10 -0
- package/dist/code-generation/index.d.ts +8 -0
- package/dist/code-generation/integration-implementation/index.d.ts +3 -0
- package/dist/code-generation/integration-implementation/integration-implementation.d.ts +7 -0
- package/dist/code-generation/integration-implementation/integration-secret.d.ts +8 -0
- package/dist/code-generation/integration-implementation/integration-typings/actions-module.d.ts +21 -0
- package/dist/code-generation/integration-implementation/integration-typings/channels-module.d.ts +5 -0
- package/dist/code-generation/integration-implementation/integration-typings/configuration-module.d.ts +7 -0
- package/dist/code-generation/integration-implementation/integration-typings/configurations-module.d.ts +10 -0
- package/dist/code-generation/integration-implementation/integration-typings/entities-module.d.ts +10 -0
- package/dist/code-generation/integration-implementation/integration-typings/events-module.d.ts +10 -0
- package/dist/code-generation/integration-implementation/integration-typings/index.d.ts +8 -0
- package/dist/code-generation/integration-implementation/integration-typings/states-module.d.ts +17 -0
- package/dist/code-generation/integration-package/index.d.ts +2 -0
- package/dist/code-generation/integration-package/integration-package-definition/actions-module.d.ts +21 -0
- package/dist/code-generation/integration-package/integration-package-definition/channels-module.d.ts +5 -0
- package/dist/code-generation/integration-package/integration-package-definition/configuration-module.d.ts +7 -0
- package/dist/code-generation/integration-package/integration-package-definition/configurations-module.d.ts +10 -0
- package/dist/code-generation/integration-package/integration-package-definition/entities-module.d.ts +10 -0
- package/dist/code-generation/integration-package/integration-package-definition/events-module.d.ts +10 -0
- package/dist/code-generation/integration-package/integration-package-definition/index.d.ts +8 -0
- package/dist/code-generation/integration-package/integration-package-definition/interfaces-module.d.ts +10 -0
- package/dist/code-generation/integration-package/integration-package-definition/states-module.d.ts +10 -0
- package/dist/code-generation/integration-package/integration-package-definition/typings.d.ts +10 -0
- package/dist/code-generation/interface-implementation/index.d.ts +4 -0
- package/dist/code-generation/interface-implementation/integration-typings/actions-module.d.ts +21 -0
- package/dist/code-generation/interface-implementation/integration-typings/channels-module.d.ts +5 -0
- package/dist/code-generation/interface-implementation/integration-typings/entities-module.d.ts +10 -0
- package/dist/code-generation/interface-implementation/integration-typings/events-module.d.ts +10 -0
- package/dist/code-generation/interface-implementation/integration-typings/index.d.ts +8 -0
- package/dist/code-generation/interface-package/index.d.ts +2 -0
- package/dist/code-generation/interface-package/interface-package-definition/actions-module.d.ts +21 -0
- package/dist/code-generation/interface-package/interface-package-definition/channels-module.d.ts +5 -0
- package/dist/code-generation/interface-package/interface-package-definition/entities-module.d.ts +10 -0
- package/dist/code-generation/interface-package/interface-package-definition/events-module.d.ts +10 -0
- package/dist/code-generation/interface-package/interface-package-definition/index.d.ts +8 -0
- package/dist/code-generation/interface-package/interface-package-definition/typings.d.ts +7 -0
- package/dist/code-generation/module.d.ts +49 -0
- package/dist/code-generation/plugin-implementation/index.d.ts +3 -0
- package/dist/code-generation/plugin-implementation/plugin-implementation.d.ts +7 -0
- package/dist/code-generation/plugin-implementation/plugin-typings/actions-module.d.ts +21 -0
- package/dist/code-generation/plugin-implementation/plugin-typings/configuration-module.d.ts +7 -0
- package/dist/code-generation/plugin-implementation/plugin-typings/events-module.d.ts +10 -0
- package/dist/code-generation/plugin-implementation/plugin-typings/index.d.ts +8 -0
- package/dist/code-generation/plugin-implementation/plugin-typings/states-module.d.ts +17 -0
- package/dist/code-generation/plugin-implementation/plugin-typings/tables-module.d.ts +10 -0
- package/dist/code-generation/plugin-implementation/plugin-typings/workflows-module.d.ts +27 -0
- package/dist/code-generation/plugin-package/index.d.ts +2 -0
- package/dist/code-generation/plugin-package/plugin-package-definition/actions-module.d.ts +21 -0
- package/dist/code-generation/plugin-package/plugin-package-definition/configuration-module.d.ts +7 -0
- package/dist/code-generation/plugin-package/plugin-package-definition/events-module.d.ts +10 -0
- package/dist/code-generation/plugin-package/plugin-package-definition/index.d.ts +8 -0
- package/dist/code-generation/plugin-package/plugin-package-definition/interfaces-module.d.ts +7 -0
- package/dist/code-generation/plugin-package/plugin-package-definition/recurring-events-module.d.ts +5 -0
- package/dist/code-generation/plugin-package/plugin-package-definition/states-module.d.ts +10 -0
- package/dist/code-generation/plugin-package/plugin-package-definition/typings.d.ts +7 -0
- package/dist/code-generation/strings.d.ts +4 -0
- package/dist/code-generation/typings.d.ts +162 -0
- package/dist/code-generation/typings.test.d.ts +1 -0
- package/dist/command-definitions.d.ts +1480 -0
- package/dist/command-implementations/add-command.d.ts +15 -0
- package/dist/command-implementations/base-command.d.ts +13 -0
- package/dist/command-implementations/bot-commands.d.ts +20 -0
- package/dist/command-implementations/build-command.d.ts +9 -0
- package/dist/command-implementations/bundle-command.d.ts +10 -0
- package/dist/command-implementations/chat-command.d.ts +13 -0
- package/dist/command-implementations/deploy-command.d.ts +18 -0
- package/dist/command-implementations/dev-command.d.ts +21 -0
- package/dist/command-implementations/gen-command.d.ts +11 -0
- package/dist/command-implementations/global-command.d.ts +57 -0
- package/dist/command-implementations/index.d.ts +1534 -0
- package/dist/command-implementations/init-command.d.ts +17 -0
- package/dist/command-implementations/integration-commands.d.ts +15 -0
- package/dist/command-implementations/interface-commands.d.ts +14 -0
- package/dist/command-implementations/lint-command.d.ts +15 -0
- package/dist/command-implementations/login-command.d.ts +6 -0
- package/dist/command-implementations/logout-command.d.ts +6 -0
- package/dist/command-implementations/plugin-commands.d.ts +14 -0
- package/dist/command-implementations/profile-commands.d.ts +14 -0
- package/dist/command-implementations/project-command.d.ts +67 -0
- package/dist/command-implementations/read-command.d.ts +10 -0
- package/dist/command-implementations/serve-command.d.ts +6 -0
- package/dist/command-tree.d.ts +39 -0
- package/dist/config.d.ts +1441 -0
- package/dist/consts.d.ts +41 -0
- package/dist/errors.d.ts +56 -0
- package/dist/index.d.ts +1524 -0
- package/dist/index.js +50 -25
- package/dist/index.js.map +3 -3
- package/dist/init.d.ts +1 -0
- package/dist/linter/base-linter.d.ts +21 -0
- package/dist/linter/base-linter.test.d.ts +1 -0
- package/dist/linter/bot-linter.d.ts +5 -0
- package/dist/linter/integration-linter.d.ts +7 -0
- package/dist/linter/interface-linter.d.ts +5 -0
- package/dist/linter/ruleset-tests/bot.ruleset.test.d.ts +1 -0
- package/dist/linter/ruleset-tests/common.d.ts +9 -0
- package/dist/linter/ruleset-tests/integration.ruleset.test.d.ts +1 -0
- package/dist/linter/ruleset-tests/interface.ruleset.test.d.ts +1 -0
- package/dist/linter/rulesets/bot.ruleset.d.ts +165 -0
- package/dist/linter/rulesets/integration.ruleset.d.ts +390 -0
- package/dist/linter/rulesets/interface.ruleset.d.ts +141 -0
- package/dist/linter/spectral-functions.d.ts +11 -0
- package/dist/logger/base-logger.d.ts +43 -0
- package/dist/logger/index.d.ts +22 -0
- package/dist/logger/logger.test.d.ts +1 -0
- package/dist/package-ref.d.ts +22 -0
- package/dist/package-ref.test.d.ts +1 -0
- package/dist/project-templates.d.ts +42 -0
- package/dist/register-yargs.d.ts +4 -0
- package/dist/root.d.ts +7 -0
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/validate-bot.d.ts +2 -0
- package/dist/sdk/validate-bot.test.d.ts +1 -0
- package/dist/sdk/validate-integration.d.ts +2 -0
- package/dist/tables/index.d.ts +1 -0
- package/dist/tables/schemas.d.ts +1259 -0
- package/dist/tables/tables-publisher.d.ts +22 -0
- package/dist/typings.d.ts +27 -0
- package/dist/utils/attribute-utils.d.ts +10 -0
- package/dist/utils/cache-utils.d.ts +14 -0
- package/dist/utils/case-utils.d.ts +14 -0
- package/dist/utils/case-utils.test.d.ts +1 -0
- package/dist/utils/concurrency-utils.d.ts +1 -0
- package/dist/utils/concurrency-utils.test.d.ts +1 -0
- package/dist/utils/esbuild-utils.d.ts +29 -0
- package/dist/utils/event-emitter.d.ts +7 -0
- package/dist/utils/file-watcher.d.ts +17 -0
- package/dist/utils/guard-utils.d.ts +4 -0
- package/dist/utils/id-utils.d.ts +2 -0
- package/dist/utils/index.d.ts +22 -0
- package/dist/utils/object-utils.d.ts +1 -0
- package/dist/utils/path-utils.d.ts +28 -0
- package/dist/utils/path-utils.test.d.ts +1 -0
- package/dist/utils/pkgjson-utils.d.ts +17 -0
- package/dist/utils/promise-utils.d.ts +2 -0
- package/dist/utils/promise-utils.test.d.ts +1 -0
- package/dist/utils/prompt-utils.d.ts +33 -0
- package/dist/utils/record-utils.d.ts +8 -0
- package/dist/utils/record-utils.test.d.ts +1 -0
- package/dist/utils/require-utils.d.ts +2 -0
- package/dist/utils/require-utils.test.d.ts +1 -0
- package/dist/utils/schema-utils.d.ts +13 -0
- package/dist/utils/schema-utils.test.d.ts +1 -0
- package/dist/utils/semver-utils.d.ts +8 -0
- package/dist/utils/string-utils.d.ts +2 -0
- package/dist/utils/template-utils.d.ts +1 -0
- package/dist/utils/tunnel-utils.d.ts +49 -0
- package/dist/utils/type-utils.d.ts +19 -0
- package/dist/utils/url-utils.d.ts +19 -0
- package/dist/worker/child-entrypoint.d.ts +1 -0
- package/dist/worker/child-wrapper.d.ts +18 -0
- package/dist/worker/config.d.ts +28 -0
- package/dist/worker/index.d.ts +2 -0
- package/dist/worker/is-child.d.ts +14 -0
- package/dist/worker/worker-state.d.ts +30 -0
- package/dist/worker/worker.d.ts +20 -0
- package/package.json +6 -4
- package/tsconfig.build.json +14 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type commandDefinitions from '../command-definitions';
|
|
2
|
+
import { GlobalCommand } from './global-command';
|
|
3
|
+
export type AddCommandDefinition = typeof commandDefinitions.add;
|
|
4
|
+
export declare class AddCommand extends GlobalCommand<AddCommandDefinition> {
|
|
5
|
+
run(): Promise<void>;
|
|
6
|
+
private _parseArgvRef;
|
|
7
|
+
private _addSinglePackage;
|
|
8
|
+
private _findRemotePackage;
|
|
9
|
+
private _findLocalPackage;
|
|
10
|
+
private _install;
|
|
11
|
+
private _uninstall;
|
|
12
|
+
private _readProject;
|
|
13
|
+
private _pkgCouldBe;
|
|
14
|
+
private _getProjectCmd;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Logger } from '../logger';
|
|
2
|
+
import type { CommandArgv, CommandDefinition } from '../typings';
|
|
3
|
+
export declare abstract class BaseCommand<C extends CommandDefinition> {
|
|
4
|
+
protected readonly logger: Logger;
|
|
5
|
+
protected readonly argv: CommandArgv<C>;
|
|
6
|
+
constructor(logger: Logger, argv: CommandArgv<C>);
|
|
7
|
+
protected abstract run(): Promise<void>;
|
|
8
|
+
protected bootstrap?(): Promise<void>;
|
|
9
|
+
protected teardown?(): Promise<void>;
|
|
10
|
+
handler(): Promise<{
|
|
11
|
+
exitCode: number;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type commandDefinitions from '../command-definitions';
|
|
2
|
+
import { GlobalCommand } from './global-command';
|
|
3
|
+
export type GetBotCommandDefinition = typeof commandDefinitions.bots.subcommands.get;
|
|
4
|
+
export declare class GetBotCommand extends GlobalCommand<GetBotCommandDefinition> {
|
|
5
|
+
run(): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export type ListBotsCommandDefinition = typeof commandDefinitions.bots.subcommands.list;
|
|
8
|
+
export declare class ListBotsCommand extends GlobalCommand<ListBotsCommandDefinition> {
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
export type DeleteBotCommandDefinition = typeof commandDefinitions.bots.subcommands.delete;
|
|
12
|
+
export declare class DeleteBotCommand extends GlobalCommand<DeleteBotCommandDefinition> {
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
export type CreateBotCommandDefinition = typeof commandDefinitions.bots.subcommands.create;
|
|
16
|
+
export declare class CreateBotCommand extends GlobalCommand<CreateBotCommandDefinition> {
|
|
17
|
+
run(): Promise<void>;
|
|
18
|
+
private _getOrCreate;
|
|
19
|
+
private _create;
|
|
20
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type commandDefinitions from '../command-definitions';
|
|
2
|
+
import * as utils from '../utils';
|
|
3
|
+
import { ProjectCommand } from './project-command';
|
|
4
|
+
export type BuildCommandDefinition = typeof commandDefinitions.build;
|
|
5
|
+
export declare class BuildCommand extends ProjectCommand<BuildCommandDefinition> {
|
|
6
|
+
run(buildContext?: utils.esbuild.IncrementalBuildContext): Promise<void>;
|
|
7
|
+
private _runGenerate;
|
|
8
|
+
private _runBundle;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type commandDefinitions from '../command-definitions';
|
|
2
|
+
import * as utils from '../utils';
|
|
3
|
+
import { ProjectCommand } from './project-command';
|
|
4
|
+
export type BundleCommandDefinition = typeof commandDefinitions.bundle;
|
|
5
|
+
export declare class BundleCommand extends ProjectCommand<BundleCommandDefinition> {
|
|
6
|
+
run(buildContext?: utils.esbuild.IncrementalBuildContext): Promise<void>;
|
|
7
|
+
private _bundle;
|
|
8
|
+
private get _code();
|
|
9
|
+
private get _buildOptions();
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type commandDefinitions from '../command-definitions';
|
|
2
|
+
import { GlobalCommand } from './global-command';
|
|
3
|
+
export type ChatCommandDefinition = typeof commandDefinitions.chat;
|
|
4
|
+
export declare class ChatCommand extends GlobalCommand<ChatCommandDefinition> {
|
|
5
|
+
run(): Promise<void>;
|
|
6
|
+
private _chat;
|
|
7
|
+
private _getChatApiUrl;
|
|
8
|
+
private _selectBot;
|
|
9
|
+
private _installChatIntegration;
|
|
10
|
+
private _findChatInstance;
|
|
11
|
+
private _getChatApiTargetVersionRange;
|
|
12
|
+
private _getChatApiTargetVersion;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type commandDefinitions from '../command-definitions';
|
|
2
|
+
import { ProjectCommand } from './project-command';
|
|
3
|
+
export type DeployCommandDefinition = typeof commandDefinitions.deploy;
|
|
4
|
+
export declare class DeployCommand extends ProjectCommand<DeployCommandDefinition> {
|
|
5
|
+
run(): Promise<void>;
|
|
6
|
+
private _runBuild;
|
|
7
|
+
private get _visibility();
|
|
8
|
+
private _deployIntegration;
|
|
9
|
+
private _deployInterface;
|
|
10
|
+
private _deployPlugin;
|
|
11
|
+
private _allowDeprecatedFeatures;
|
|
12
|
+
private _detectDeprecatedFeatures;
|
|
13
|
+
private _deployBot;
|
|
14
|
+
private _createNewBot;
|
|
15
|
+
private _getExistingBot;
|
|
16
|
+
private _manageWorkspaceHandle;
|
|
17
|
+
private _parseIntegrationName;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type commandDefinitions from '../command-definitions';
|
|
2
|
+
import { ProjectCommand } from './project-command';
|
|
3
|
+
export type DevCommandDefinition = typeof commandDefinitions.dev;
|
|
4
|
+
export declare class DevCommand extends ProjectCommand<DevCommandDefinition> {
|
|
5
|
+
private _initialDef;
|
|
6
|
+
private _cacheDevRequestBody;
|
|
7
|
+
private _buildContext;
|
|
8
|
+
constructor(...args: ConstructorParameters<typeof ProjectCommand<DevCommandDefinition>>);
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
private _restart;
|
|
11
|
+
private _deploy;
|
|
12
|
+
private _checkSecrets;
|
|
13
|
+
private _spawnWorker;
|
|
14
|
+
private _runBuild;
|
|
15
|
+
private _deployDevIntegration;
|
|
16
|
+
private _deployDevBot;
|
|
17
|
+
private _didDefinitionChange;
|
|
18
|
+
private _forwardTunnelRequest;
|
|
19
|
+
private _formatLocalUrl;
|
|
20
|
+
private _getHeaders;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type commandDefinitions from '../command-definitions';
|
|
2
|
+
import { ProjectCommand } from './project-command';
|
|
3
|
+
export type GenerateCommandDefinition = typeof commandDefinitions.generate;
|
|
4
|
+
export declare class GenerateCommand extends ProjectCommand<GenerateCommandDefinition> {
|
|
5
|
+
run(): Promise<void>;
|
|
6
|
+
private _generateIntegration;
|
|
7
|
+
private _generateBot;
|
|
8
|
+
private _generatePlugin;
|
|
9
|
+
private _writeGeneratedFilesToOutFolder;
|
|
10
|
+
private _validateSecrets;
|
|
11
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from '@botpress/sdk';
|
|
2
|
+
import type { YargsConfig } from '@bpinternal/yargs-extra';
|
|
3
|
+
import type { ApiClientFactory } from '../api/client';
|
|
4
|
+
import * as config from '../config';
|
|
5
|
+
import * as consts from '../consts';
|
|
6
|
+
import type { CommandArgv, CommandDefinition } from '../typings';
|
|
7
|
+
import * as utils from '../utils';
|
|
8
|
+
import { BaseCommand } from './base-command';
|
|
9
|
+
export type GlobalCommandDefinition = CommandDefinition<typeof config.schemas.global>;
|
|
10
|
+
export type GlobalCache = {
|
|
11
|
+
apiUrl: string;
|
|
12
|
+
token: string;
|
|
13
|
+
workspaceId: string;
|
|
14
|
+
activeProfile: string;
|
|
15
|
+
};
|
|
16
|
+
export type ConfigurableGlobalPaths = {
|
|
17
|
+
botpressHomeDir: string;
|
|
18
|
+
cliRootDir: utils.path.AbsolutePath;
|
|
19
|
+
profilesPath: string;
|
|
20
|
+
};
|
|
21
|
+
export type ConstantGlobalPaths = typeof consts.fromHomeDir & typeof consts.fromCliRootDir;
|
|
22
|
+
export type AllGlobalPaths = ConfigurableGlobalPaths & ConstantGlobalPaths;
|
|
23
|
+
declare const profileCredentialSchema: import("@botpress/sdk").ZodObject<{
|
|
24
|
+
apiUrl: import("@botpress/sdk").ZodString;
|
|
25
|
+
workspaceId: import("@botpress/sdk").ZodString;
|
|
26
|
+
token: import("@botpress/sdk").ZodString;
|
|
27
|
+
}, "strip", {
|
|
28
|
+
apiUrl: string;
|
|
29
|
+
workspaceId: string;
|
|
30
|
+
token: string;
|
|
31
|
+
}, {
|
|
32
|
+
apiUrl: string;
|
|
33
|
+
workspaceId: string;
|
|
34
|
+
token: string;
|
|
35
|
+
}>;
|
|
36
|
+
export type ProfileCredentials = z.infer<typeof profileCredentialSchema>;
|
|
37
|
+
declare class GlobalPaths extends utils.path.PathStore<keyof AllGlobalPaths> {
|
|
38
|
+
constructor(argv: CommandArgv<GlobalCommandDefinition>);
|
|
39
|
+
}
|
|
40
|
+
export declare abstract class GlobalCommand<C extends GlobalCommandDefinition> extends BaseCommand<C> {
|
|
41
|
+
protected api: ApiClientFactory;
|
|
42
|
+
protected prompt: utils.prompt.CLIPrompt;
|
|
43
|
+
private _pkgJson;
|
|
44
|
+
constructor(api: ApiClientFactory, prompt: utils.prompt.CLIPrompt, ...args: ConstructorParameters<typeof BaseCommand<C>>);
|
|
45
|
+
protected get globalPaths(): GlobalPaths;
|
|
46
|
+
protected get globalCache(): utils.cache.FSKeyValueCache<GlobalCache>;
|
|
47
|
+
protected bootstrap(): Promise<void>;
|
|
48
|
+
protected teardown: () => Promise<void>;
|
|
49
|
+
protected getAuthenticatedClient(credentials: Partial<YargsConfig<typeof config.schemas.credentials>>): Promise<import("../api/client").ApiClient | null>;
|
|
50
|
+
protected readProfileFromFS(profile: string): Promise<ProfileCredentials>;
|
|
51
|
+
protected readProfilesFromFS(): Promise<Record<string, ProfileCredentials>>;
|
|
52
|
+
protected writeProfileToFS(profileName: string, profile: ProfileCredentials): Promise<void>;
|
|
53
|
+
protected ensureLoginAndCreateClient(credentials: YargsConfig<typeof config.schemas.credentials>): Promise<import("../api/client").ApiClient>;
|
|
54
|
+
private readonly _notifyUpdateCli;
|
|
55
|
+
protected readPkgJson(): Promise<utils.pkgJson.PackageJson>;
|
|
56
|
+
}
|
|
57
|
+
export {};
|