@devkong/cli 0.0.66 → 0.0.67-1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devkong/cli",
3
- "version": "0.0.66",
3
+ "version": "0.0.67-1",
4
4
  "type": "commonjs",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -10,4 +10,4 @@
10
10
  "dependencies": {
11
11
  "@napi-rs/keyring": "1.1.6"
12
12
  }
13
- }
13
+ }
@@ -1,4 +1,6 @@
1
1
  export declare class ConfigureCommand {
2
+ private readonly verbose;
3
+ constructor(verbose?: boolean);
2
4
  execute(): Promise<void>;
3
5
  private selectProfile;
4
6
  private configureProfile;
@@ -2,6 +2,8 @@ import { UrlText } from "@kong/ts";
2
2
  export interface Profile {
3
3
  kongBaseUrl: UrlText;
4
4
  userName: string;
5
+ authType?: "local" | "domain";
6
+ idpHint?: string;
5
7
  }
6
8
  export type ProfileName = "default" | string;
7
9
  export type ProfileMap = Record<ProfileName, Profile>;
@@ -0,0 +1,8 @@
1
+ export interface DomainLoginTokens {
2
+ accessToken: string;
3
+ refreshToken: string;
4
+ expiresIn: number;
5
+ preferredUsername?: string;
6
+ email?: string;
7
+ }
8
+ export declare function loginWithBrowser(kongBaseUrl: string, verbose?: boolean): Promise<DomainLoginTokens>;
@@ -2,6 +2,8 @@ export type { AppAlias } from "./lib/appAlias";
2
2
  export type { AppAliasDetails } from "./lib/appAliasDetails";
3
3
  export type { AppAliasUse } from "./lib/appAliasUse";
4
4
  export type { AppAliasUseDetails } from "./lib/appAliasUseDetails";
5
+ export { AuditObjectType } from "./lib/appAuditLog";
6
+ export type { AppAuditLog } from "./lib/appAuditLog";
5
7
  export type { AppBroadcastData } from "./lib/appBroadcastData";
6
8
  export type { AppCheckpoint } from "./lib/appCheckpoint";
7
9
  export type { AppComponentStartRequest } from "./lib/appComponentStartRequest";
@@ -0,0 +1,18 @@
1
+ import { JsonObject, User, UtcDateTime } from "@kong/ts";
2
+ export declare enum AuditObjectType {
3
+ DOCUMENT = "document",
4
+ PROCESS_ALIAS = "process_alias",
5
+ EXTENSION_ALIAS = "extension_alias",
6
+ EXTENSION_SNAPSHOT = "extension_snapshot",
7
+ DOCUMENT_SNAPSHOT = "document_snapshot",
8
+ EXTENSION = "extension"
9
+ }
10
+ export interface AppAuditLog {
11
+ objectType: AuditObjectType;
12
+ objectId: string;
13
+ created: UtcDateTime;
14
+ createdBy: User["name"];
15
+ action: string;
16
+ eventType: string;
17
+ eventData: JsonObject;
18
+ }