@devkong/cli 0.0.67-alpha.29 → 0.0.67-alpha.30

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.67-alpha.29",
3
+ "version": "0.0.67-alpha.30",
4
4
  "type": "commonjs",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -17,8 +17,8 @@ export declare class PublishVersionCommand {
17
17
  private defaultRendererOptions;
18
18
  private get wslPrefix();
19
19
  constructor(profile: Profile, verbose?: boolean, contractPath?: string | null);
20
- execute(appName: string, notes: string, onStep?: (step: string, status: "pending" | "succeeded" | "failed") => void): Promise<number>;
21
- flowFactory(appName: string, notes: string): Generator<ListrTask<PublishContext>>;
20
+ execute(appName: string, notes: string, checkpoint?: string, onStep?: (step: string, status: "pending" | "succeeded" | "failed") => void): Promise<number>;
21
+ flowFactory(appName: string, notes: string, checkpoint?: string): Generator<ListrTask<PublishContext>>;
22
22
  private resolveRegistryUrl;
23
23
  private dockerBuildCmdText;
24
24
  private dockerPushCmdText;
@@ -1,4 +1,4 @@
1
- import { Optional, ShortUUID } from "@kong/ts";
1
+ import { Optional } from "@kong/ts";
2
2
  export interface ILogger {
3
3
  info(message: string): void;
4
4
  debug(message: string): void;
@@ -9,7 +9,6 @@ export declare function env(key: string): string;
9
9
  export declare function optionalEnv(key: string): Optional<string>;
10
10
  export declare function loadJsonFile<T>(filePath: string): T;
11
11
  export declare function resolveProjectPath(fileName: string): string;
12
- export declare function generateShortId(): ShortUUID;
13
12
  export declare function spawnCommand(commandText: string, logger?: ILogger | null, shell?: boolean): Promise<string>;
14
13
  export declare function spawnCommandWithArgs(command: string, commandArgs: string[], logger?: ILogger | null, shell?: boolean): Promise<string>;
15
14
  export declare function printError(label: string, error: unknown): void;
@@ -3,12 +3,13 @@ export type { AppAliasDetails } from "./lib/appAliasDetails";
3
3
  export type { AppAliasListItem } from "./lib/appAliasListItem";
4
4
  export type { AppAliasUse } from "./lib/appAliasUse";
5
5
  export type { AppAliasUseDetails } from "./lib/appAliasUseDetails";
6
+ export type { AppArtifact, AppArtifactDetails, AppCodeTemplateData, AppCodeTemplateFile, } from "./lib/appArtifact";
6
7
  export { AuditObjectType } from "./lib/appAuditLog";
7
8
  export type { AppAuditLog } from "./lib/appAuditLog";
8
9
  export type { AppBroadcastData } from "./lib/appBroadcastData";
9
10
  export type { AppCheckpoint } from "./lib/appCheckpoint";
11
+ export type { AppOrganizationItem } from "./lib/appOrganizationItem";
10
12
  export type { AppComponentStartRequest } from "./lib/appComponentStartRequest";
11
- export type { AppArtifact, AppArtifactDetails, AppCodeTemplateData, AppCodeTemplateFile, } from "./lib/appArtifact";
12
13
  export { APP_CONNECT_PORT, CLI_CONNECT_BASE_URL } from "./lib/appConnect";
13
14
  export type { AppConnectDeployRequest, AppConnectDeployStart, AppConnectDeployStatus, AppConnectDeployStep, AppConnectFile, AppConnectProfile, AppConnectTestRequest, AppConnectTestResult, } from "./lib/appConnect";
14
15
  export type { AppDependency } from "./lib/appDependency";
@@ -27,6 +28,7 @@ export type { AppProcessStats, AppProcessStatsBucket, AppProcessStatsSeries, } f
27
28
  export type { AppProject } from "./lib/appProject";
28
29
  export type { AppSecret } from "./lib/appSecret";
29
30
  export type { AppSecretDetails } from "./lib/appSecretDetails";
31
+ export type { AppSecretPermission, AppSecretPermissionSubjectType, } from "./lib/appSecretPermission";
30
32
  export type { AppSecretType } from "./lib/appSecretType";
31
33
  export type { AppSnapshot } from "./lib/appSnapshot";
32
34
  export type { AppSnapshotDetails } from "./lib/appSnapshotDetails";
@@ -25,6 +25,7 @@ export interface AppConnectTestResult {
25
25
  export interface AppConnectDeployRequest {
26
26
  extensionId: string;
27
27
  extensionName: string;
28
+ checkpoint: string;
28
29
  bundleUrl: string;
29
30
  notes?: string;
30
31
  }
@@ -8,6 +8,7 @@ export interface AppDocument extends Entity {
8
8
  workspaceId: AppWorkspace["id"];
9
9
  projectId: AppProject["id"];
10
10
  title: string;
11
+ deprecated: boolean;
11
12
  checkpoint: Optional<AppCheckpoint["id"]>;
12
13
  created: UtcDateTime;
13
14
  updated: UtcDateTime;
@@ -0,0 +1,7 @@
1
+ export interface AppOrganizationItem {
2
+ type: string;
3
+ id: string;
4
+ name: string;
5
+ context?: string;
6
+ deprecated: boolean;
7
+ }
@@ -3,6 +3,7 @@ import { AppWorkspace } from "./appWorkspace";
3
3
  export interface AppProject extends Entity {
4
4
  id: ShortUUID;
5
5
  title: string;
6
+ deprecated: boolean;
6
7
  created: UtcDateTime;
7
8
  updated: UtcDateTime;
8
9
  workspaceId: AppWorkspace["id"];
@@ -1,5 +1,7 @@
1
1
  import { JsonObject } from "@kong/ts";
2
2
  import { AppSecret } from "@kong/contract";
3
+ import { AppSecretPermission } from "./appSecretPermission";
3
4
  export type AppSecretDetails = AppSecret & {
4
5
  data: JsonObject;
6
+ permissions: AppSecretPermission[];
5
7
  };
@@ -0,0 +1,5 @@
1
+ export type AppSecretPermissionSubjectType = "ORG_WORKSPACE" | "ORG_PROJECT";
2
+ export interface AppSecretPermission {
3
+ subjectType: AppSecretPermissionSubjectType;
4
+ subjectId: string;
5
+ }
@@ -2,6 +2,7 @@ import { Entity, ShortUUID, User, UtcDateTime } from "@kong/ts";
2
2
  export interface AppWorkspace extends Entity {
3
3
  id: ShortUUID;
4
4
  title: string;
5
+ deprecated: boolean;
5
6
  created: UtcDateTime;
6
7
  updated: UtcDateTime;
7
8
  createdBy: User["name"];