@devkong/cli 0.0.31 → 0.0.33
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/index.js +3 -4
- package/package.json +1 -1
- package/packages/kong-spec/src/index.d.ts +1 -1
- package/packages/kong-spec/src/lib/kongSpec.d.ts +13 -3
- package/packages/kong-spec/src/lib/kongSpecBuild.d.ts +3 -1
- package/packages/kong-spec/src/lib/kongSpecDoc.d.ts +2 -0
- package/packages/kong-spec/src/lib/kongSpecRef.d.ts +2 -1
- package/packages/kong-spec/src/lib/kongSpecUtils.d.ts +1 -1
- package/packages/kong-ts/src/lib/tenant.d.ts +1 -1
- package/packages/kong-ts-contract/src/index.d.ts +7 -0
- package/packages/kong-ts-contract/src/lib/appAliasDetails.d.ts +8 -0
- package/packages/kong-ts-contract/src/lib/appAliasEditorMode.d.ts +1 -0
- package/packages/kong-ts-contract/src/lib/appAliasUse.d.ts +5 -0
- package/packages/kong-ts-contract/src/lib/appAliasUseDetails.d.ts +7 -0
- package/packages/kong-ts-contract/src/lib/appDocumentSnapshot.d.ts +1 -9
- package/packages/kong-ts-contract/src/lib/appDocumentSnapshotDetails.d.ts +5 -0
- package/packages/kong-ts-contract/src/lib/appExtensionAliasDetails.d.ts +2 -5
- package/packages/kong-ts-contract/src/lib/appExtensionAliasUse.d.ts +2 -4
- package/packages/kong-ts-contract/src/lib/appExtensionAliasUseDetails.d.ts +2 -4
- package/packages/kong-ts-contract/src/lib/appExtensionSnapshotDetails.d.ts +2 -7
- package/packages/kong-ts-contract/src/lib/appProcessAliasDetails.d.ts +4 -4
- package/packages/kong-ts-contract/src/lib/appProcessAliasUse.d.ts +2 -6
- package/packages/kong-ts-contract/src/lib/appProcessAliasUseDetails.d.ts +3 -0
- package/packages/kong-ts-contract/src/lib/appSnapshotDetails.d.ts +8 -0
- package/packages/kong-ts-contract/src/lib/sdkAlias.d.ts +16 -0
- package/packages/kong-ts-contract/src/lib/sdkExtensionAlias.d.ts +3 -16
package/index.js
CHANGED
|
@@ -67996,9 +67996,9 @@ var deepMerge = deepmergeCustom({
|
|
|
67996
67996
|
});
|
|
67997
67997
|
|
|
67998
67998
|
// packages/kong-ts/src/lib/tenant.ts
|
|
67999
|
-
function parseTenant(url2) {
|
|
67999
|
+
function parseTenant(url2, defaultTenant = "sandbox") {
|
|
68000
68000
|
const hostname = new URL(url2).hostname;
|
|
68001
|
-
return hostname === "localhost" ?
|
|
68001
|
+
return hostname === "localhost" ? defaultTenant : hostname.split(".")[0];
|
|
68002
68002
|
}
|
|
68003
68003
|
|
|
68004
68004
|
// packages/kong-ts/src/lib/url.ts
|
|
@@ -77756,8 +77756,7 @@ var PublishVersionCommand = class {
|
|
|
77756
77756
|
return `${this.wslPrefix} docker push ${imageName}`;
|
|
77757
77757
|
}
|
|
77758
77758
|
dockerLoginCmdText(username, password, registry3) {
|
|
77759
|
-
|
|
77760
|
-
return !this.isWin || this.wslPrefix ? `${this.wslPrefix} /bin/bash -c '${baseCommand}'` : `powershell -c '${baseCommand}'`;
|
|
77759
|
+
return !this.isWin || this.wslPrefix ? `${this.wslPrefix} /bin/bash -c 'echo ${password} |docker login -u ${username} --password-stdin ${registry3}'` : `docker login -u ${username} -p ${password} ${registry3}"`;
|
|
77761
77760
|
}
|
|
77762
77761
|
getPythonSchemaCmdText() {
|
|
77763
77762
|
const engine = this.isWin ? ".\\.venv\\Scripts\\python.exe" : "./.venv/bin/python";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { makeServerlessJavaAppProps, serverlessFlowBuilder, stringifyServerlessFlow, } from "./lib/kongServerless";
|
|
2
2
|
export type { FloweyServerlessBuilder } from "./lib/kongServerless";
|
|
3
3
|
export type { KongSpecJobSession } from "./lib/kongSession";
|
|
4
|
-
export type { KongSpecAction, KongSpecActionCallFunction, KongSpecActionCallProcess, KongSpecActionSendEvent, KongSpecAppend, KongSpecBranch, KongSpecCache, KongSpecCallModel, KongSpecCircuitBreaker, KongSpecCondition, KongSpecEffect, KongSpecEffectStatus, KongSpecError, KongSpecEventBroker, KongSpecEventConnection, KongSpecFeatureCompensation, KongSpecFlow, KongSpecFunctionRef, KongSpecHowToInvoke, KongSpecHowToOutput, KongSpecProcessRef, KongSpecRecord, KongSpecRecordHeader, KongSpecRetry, KongSpecState, KongSpecStateCallFunction, KongSpecStateCallProcess, KongSpecStateCompensate, KongSpecStateExit, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent, KongSpecSupportsActions, KongSpecSupportsErrors, KongSpecSupportsTransition, } from "./lib/kongSpec";
|
|
4
|
+
export type { KongSpecAction, KongSpecActionCallFunction, KongSpecActionCallProcess, KongSpecActionSendEvent, KongSpecAppend, KongSpecBranch, KongSpecCache, KongSpecCallModel, KongSpecCircuitBreaker, KongSpecCondition, KongSpecEffect, KongSpecEffectStatus, KongSpecError, KongSpecEventBroker, KongSpecEventConnection, KongSpecFeatureCompensation, KongSpecFlow, KongSpecFunctionRef, KongSpecHowToInvoke, KongSpecHowToOutput, KongSpecProcessRef, KongSpecRecord, KongSpecRecordHeader, KongSpecRetry, KongSpecRule, KongSpecState, KongSpecStateCallFunction, KongSpecStateCallProcess, KongSpecStateCompensate, KongSpecStateExit, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateRule, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent, KongSpecSupportsActions, KongSpecSupportsErrors, KongSpecSupportsTransition, } from "./lib/kongSpec";
|
|
5
5
|
export { KongSpecBuild } from "./lib/kongSpecBuild";
|
|
6
6
|
export { KongSpecDoc } from "./lib/kongSpecDoc";
|
|
7
7
|
export { KongSpecEnv } from "./lib/kongSpecEnv";
|
|
@@ -14,7 +14,7 @@ export interface KongSpecProcessRef {
|
|
|
14
14
|
interface KongSpecStateBase {
|
|
15
15
|
id: Distinct<string, "KongSpecStateId">;
|
|
16
16
|
name: string;
|
|
17
|
-
type: "start" | "succeed" | "fail" | "inject" | "compensate" | "foreach" | "callFunction" | "parallel" | "switch" | "sendEvent" | "waitEvent" | "callProcess";
|
|
17
|
+
type: "start" | "succeed" | "fail" | "inject" | "compensate" | "foreach" | "callFunction" | "parallel" | "rule" | "switch" | "sendEvent" | "waitEvent" | "callProcess";
|
|
18
18
|
}
|
|
19
19
|
export interface KongSpecSupportsTransition {
|
|
20
20
|
next: KongSpecStateBase["id"] | null;
|
|
@@ -120,7 +120,7 @@ export interface KongSpecStateInject extends KongSpecStateBase, KongSpecSupports
|
|
|
120
120
|
export interface KongSpecStateCompensate extends KongSpecStateBase, KongSpecSupportsTransition {
|
|
121
121
|
type: "compensate";
|
|
122
122
|
}
|
|
123
|
-
export interface KongSpecCondition extends KongSpecSupportsTransition
|
|
123
|
+
export interface KongSpecCondition extends KongSpecSupportsTransition {
|
|
124
124
|
id: Distinct<string, "KongSpecConditionId">;
|
|
125
125
|
description: string;
|
|
126
126
|
match: JqFilter;
|
|
@@ -129,6 +129,16 @@ export interface KongSpecStateSwitch extends KongSpecStateBase, KongSpecCanBeUse
|
|
|
129
129
|
type: "switch";
|
|
130
130
|
conditions: KongSpecCondition[];
|
|
131
131
|
}
|
|
132
|
+
export interface KongSpecRule extends KongSpecSupportsOutputFilter {
|
|
133
|
+
id: Distinct<string, "KongSpecRuleId">;
|
|
134
|
+
description: string;
|
|
135
|
+
match: JqFilter;
|
|
136
|
+
}
|
|
137
|
+
export interface KongSpecStateRule extends KongSpecStateBase, KongSpecCanBeUsedForCompensation, KongSpecSupportsTransition {
|
|
138
|
+
type: "rule";
|
|
139
|
+
rules: KongSpecRule[];
|
|
140
|
+
nextOnMatch: KongSpecSupportsTransition["next"];
|
|
141
|
+
}
|
|
132
142
|
export interface KongSpecEventBroker {
|
|
133
143
|
host: string;
|
|
134
144
|
port: number;
|
|
@@ -201,7 +211,7 @@ export interface KongSpecStateParallel extends KongSpecStateBase, KongSpecSuppor
|
|
|
201
211
|
branches: KongSpecBranch[];
|
|
202
212
|
completionType: "allOf" | "atLeast";
|
|
203
213
|
}
|
|
204
|
-
export type KongSpecState = KongSpecStateStart | KongSpecStateSucceed | KongSpecStateFail | KongSpecStateInject | KongSpecStateCompensate | KongSpecStateForeach | KongSpecStateCallFunction | KongSpecStateCallProcess | KongSpecStateSwitch | KongSpecStateSendEvent | KongSpecStateWaitEvent | KongSpecStateParallel;
|
|
214
|
+
export type KongSpecState = KongSpecStateStart | KongSpecStateSucceed | KongSpecStateFail | KongSpecStateInject | KongSpecStateCompensate | KongSpecStateForeach | KongSpecStateCallFunction | KongSpecStateCallProcess | KongSpecStateSwitch | KongSpecStateRule | KongSpecStateSendEvent | KongSpecStateWaitEvent | KongSpecStateParallel;
|
|
205
215
|
export type KongSpecStateExit = KongSpecStateFail | KongSpecStateSucceed;
|
|
206
216
|
export interface KongSpecFlow {
|
|
207
217
|
id: Distinct<ShortUUID, "KongSpecFlowId">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JqObject, SessionTenant, Timezone } from "@kong/ts";
|
|
2
2
|
import { KongSpecJobSession } from "./kongSession";
|
|
3
|
-
import { KongSpecActionCallFunction, KongSpecActionSendEvent, KongSpecBranch, KongSpecCallModel, KongSpecCondition, KongSpecError, KongSpecEventBroker, KongSpecFlow, KongSpecFunctionRef, KongSpecHowToInvoke, KongSpecHowToOutput, KongSpecProcessRef, KongSpecRecordHeader, KongSpecStateCallFunction, KongSpecStateCallProcess, KongSpecStateCompensate, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent } from "./kongSpec";
|
|
3
|
+
import { KongSpecActionCallFunction, KongSpecActionSendEvent, KongSpecBranch, KongSpecCallModel, KongSpecCondition, KongSpecError, KongSpecEventBroker, KongSpecFlow, KongSpecFunctionRef, KongSpecHowToInvoke, KongSpecHowToOutput, KongSpecProcessRef, KongSpecRecordHeader, KongSpecRule, KongSpecStateCallFunction, KongSpecStateCallProcess, KongSpecStateCompensate, KongSpecStateFail, KongSpecStateForeach, KongSpecStateInject, KongSpecStateParallel, KongSpecStateRule, KongSpecStateSendEvent, KongSpecStateStart, KongSpecStateSucceed, KongSpecStateSwitch, KongSpecStateWaitEvent } from "./kongSpec";
|
|
4
4
|
export declare class KongSpecBuild {
|
|
5
5
|
flow(id: KongSpecFlow["id"]): KongSpecFlow;
|
|
6
6
|
startState(overrides?: Partial<KongSpecStateStart>): KongSpecStateStart;
|
|
@@ -17,7 +17,9 @@ export declare class KongSpecBuild {
|
|
|
17
17
|
sendEventAction(overrides?: Partial<KongSpecActionSendEvent>): KongSpecActionSendEvent;
|
|
18
18
|
waitEventState(overrides?: Partial<KongSpecStateWaitEvent>): KongSpecStateWaitEvent;
|
|
19
19
|
switchState(overrides?: Partial<KongSpecStateSwitch>): KongSpecStateSwitch;
|
|
20
|
+
ruleState(overrides?: Partial<KongSpecStateRule>): KongSpecStateRule;
|
|
20
21
|
condition(overrides?: Partial<KongSpecCondition>): KongSpecCondition;
|
|
22
|
+
rule(overrides?: Partial<KongSpecRule>): KongSpecRule;
|
|
21
23
|
branch(id: KongSpecBranch["id"], overrides?: Partial<KongSpecBranch>): KongSpecBranch;
|
|
22
24
|
broker(overrides?: Partial<KongSpecEventBroker>): KongSpecEventBroker;
|
|
23
25
|
recordHeader(overrides?: Partial<KongSpecRecordHeader>): KongSpecRecordHeader;
|
|
@@ -8,6 +8,7 @@ export declare class KongSpecDoc {
|
|
|
8
8
|
static aboutCache: string;
|
|
9
9
|
static aboutRetry: string;
|
|
10
10
|
static aboutConditions: string;
|
|
11
|
+
static aboutRules: string;
|
|
11
12
|
static aboutResilience: string;
|
|
12
13
|
static aboutLimits: string;
|
|
13
14
|
static aboutIdentify: string;
|
|
@@ -22,5 +23,6 @@ export declare class KongSpecDoc {
|
|
|
22
23
|
static aboutStart: string;
|
|
23
24
|
static aboutSucceed: string;
|
|
24
25
|
static aboutSwitch: string;
|
|
26
|
+
static aboutRule: string;
|
|
25
27
|
static aboutWaitEvent: string;
|
|
26
28
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Optional, SessionTenant } from "@kong/ts";
|
|
2
|
-
import { KongSpecAction, KongSpecBranch, KongSpecCondition, KongSpecError, KongSpecFunctionRef, KongSpecProcessRef, KongSpecState } from "./kongSpec";
|
|
2
|
+
import { KongSpecAction, KongSpecBranch, KongSpecCondition, KongSpecError, KongSpecFunctionRef, KongSpecProcessRef, KongSpecRule, KongSpecState } from "./kongSpec";
|
|
3
3
|
export declare class KongSpecRef {
|
|
4
4
|
static newStateId(): KongSpecState["id"];
|
|
5
5
|
static newConditionId(): KongSpecCondition["id"];
|
|
6
|
+
static newRuleId(): KongSpecRule["id"];
|
|
6
7
|
static newBranchId(): KongSpecBranch["id"];
|
|
7
8
|
static newErrorId(): KongSpecError["id"];
|
|
8
9
|
static newActionId(): KongSpecAction["id"];
|
|
@@ -2,7 +2,7 @@ import { JqFilter, JsonObject } from "@kong/ts";
|
|
|
2
2
|
import { KongSpecAction, KongSpecFlow, KongSpecState } from "./kongSpec";
|
|
3
3
|
interface FloweyTraverseStateTestItem {
|
|
4
4
|
id: KongSpecState["id"] | KongSpecAction["id"];
|
|
5
|
-
source: "initial" | "errors" | "transition" | "conditions" | "compensateBy" | "actions" | "branches";
|
|
5
|
+
source: "initial" | "errors" | "transition" | "noMatchedRule" | "conditions" | "compensateBy" | "actions" | "branches";
|
|
6
6
|
}
|
|
7
7
|
export declare function traverseFlowUp(id: KongSpecState["id"] | KongSpecAction["id"], states: KongSpecFlow["states"], test: (current: FloweyTraverseStateTestItem) => boolean): boolean;
|
|
8
8
|
export declare function outputAggregator(jq: (sample: JsonObject, filter: JqFilter) => Promise<string>): (flow: KongSpecFlow, targetRef: KongSpecState["id"] | KongSpecAction["id"], includeTarget?: boolean) => Promise<JsonObject>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export type { AppAliasDetails } from "./lib/appAliasDetails";
|
|
2
|
+
export type { AppAliasEditorMode } from "./lib/appAliasEditorMode";
|
|
3
|
+
export type { AppAliasUse } from "./lib/appAliasUse";
|
|
4
|
+
export type { AppAliasUseDetails } from "./lib/appAliasUseDetails";
|
|
1
5
|
export type { AppCheckpoint } from "./lib/appCheckpoint";
|
|
2
6
|
export type { AppDevRequest } from "./lib/appDevRequest";
|
|
3
7
|
export type { AppDocument } from "./lib/appDocument";
|
|
@@ -14,13 +18,16 @@ export type { AppPresignedUrl } from "./lib/appPresignedUrl";
|
|
|
14
18
|
export type { AppProcessAlias } from "./lib/appProcessAlias";
|
|
15
19
|
export type { AppProcessAliasDetails } from "./lib/appProcessAliasDetails";
|
|
16
20
|
export type { AppProcessAliasUse } from "./lib/appProcessAliasUse";
|
|
21
|
+
export type { AppProcessAliasUseDetails } from "./lib/appProcessAliasUseDetails";
|
|
17
22
|
export type { AppProcessInstanceId } from "./lib/appProcessInstanceId";
|
|
18
23
|
export type { AppProcessStartRequest } from "./lib/appProcessStartRequest";
|
|
19
24
|
export type { AppProject } from "./lib/appProject";
|
|
25
|
+
export type { AppSnapshotDetails } from "./lib/appSnapshotDetails";
|
|
20
26
|
export type { AppTestCase } from "./lib/appTestCase";
|
|
21
27
|
export type { AppTestCaseDetails } from "./lib/appTestCaseDetails";
|
|
22
28
|
export type { AppTestCaseMatchFeature } from "./lib/appTestCaseMatchFeature";
|
|
23
29
|
export type { AppTestResult } from "./lib/appTestResult";
|
|
24
30
|
export type { AppWorkspace } from "./lib/appWorkspace";
|
|
31
|
+
export type { SdkAlias, SdkAliasInput, SdkAliasOutput } from "./lib/sdkAlias";
|
|
25
32
|
export type { SdkExtensionAlias } from "./lib/sdkExtensionAlias";
|
|
26
33
|
export type { SdkConcurrencyQuota, SdkQuotaName, SdkRateLimiterQuota } from "./lib/sdkQuota";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KongSpecHowToInvoke } from "@kong/spec";
|
|
2
|
+
import { AppAlias } from "./appAlias";
|
|
3
|
+
import { SdkAlias } from "./sdkAlias";
|
|
4
|
+
export interface AppAliasDetails<T> extends AppAlias<T> {
|
|
5
|
+
inputSchema?: NonNullable<SdkAlias["input"]>["schema"];
|
|
6
|
+
outputSchema?: NonNullable<SdkAlias["input"]>["schema"];
|
|
7
|
+
invoke?: Partial<KongSpecHowToInvoke>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AppAliasEditorMode = "add" | "edit";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AppAliasUse } from "./appAliasUse";
|
|
2
|
+
import { AppSnapshot } from "./appSnapshot";
|
|
3
|
+
import { SdkAlias } from "./sdkAlias";
|
|
4
|
+
export interface AppAliasUseDetails<T extends AppSnapshot> extends AppAliasUse<T> {
|
|
5
|
+
inputFilter?: NonNullable<SdkAlias["input"]>["filter"];
|
|
6
|
+
outputFilter?: NonNullable<SdkAlias["output"]>["filter"];
|
|
7
|
+
}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import { User, UtcDateTime } from "@kong/ts";
|
|
2
|
-
import { AppCheckpoint } from "./appCheckpoint";
|
|
3
|
-
import { AppDocument } from "./appDocument";
|
|
4
1
|
import { AppSnapshot } from "./appSnapshot";
|
|
5
|
-
export
|
|
6
|
-
documentId: AppDocument["id"];
|
|
7
|
-
checkpoint: AppCheckpoint["id"];
|
|
8
|
-
updated: UtcDateTime;
|
|
9
|
-
updatedBy: User["name"];
|
|
10
|
-
}
|
|
2
|
+
export type AppDocumentSnapshot = AppSnapshot;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { KongSpecFunctionRef, KongSpecHowToInvoke } from "@kong/spec";
|
|
2
|
-
import {
|
|
2
|
+
import { AppAliasDetails } from "./appAliasDetails";
|
|
3
3
|
import { AppExtensionAliasUseDetails } from "./appExtensionAliasUseDetails";
|
|
4
|
-
|
|
5
|
-
export interface AppExtensionAliasDetails extends AppAlias<AppExtensionAliasUseDetails> {
|
|
4
|
+
export interface AppExtensionAliasDetails extends AppAliasDetails<AppExtensionAliasUseDetails> {
|
|
6
5
|
name: KongSpecFunctionRef["aliasName"];
|
|
7
6
|
basedOnName: KongSpecFunctionRef["basedOn"];
|
|
8
|
-
inputSchema?: NonNullable<SdkExtensionAlias["input"]>["schema"];
|
|
9
|
-
outputSchema?: NonNullable<SdkExtensionAlias["output"]>["schema"];
|
|
10
7
|
invoke?: Partial<KongSpecHowToInvoke>;
|
|
11
8
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
+
import { AppAliasUse } from "./appAliasUse";
|
|
1
2
|
import { AppExtensionSnapshot } from "./appExtensionSnapshot";
|
|
2
|
-
export
|
|
3
|
-
snapshot: AppExtensionSnapshot;
|
|
4
|
-
balance: number;
|
|
5
|
-
}
|
|
3
|
+
export type AppExtensionAliasUse = AppAliasUse<AppExtensionSnapshot>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppAliasUse } from "./appAliasUse";
|
|
2
2
|
import { AppExtensionSnapshotDetails } from "./appExtensionSnapshotDetails";
|
|
3
3
|
import { SdkExtensionAlias } from "./sdkExtensionAlias";
|
|
4
|
-
export interface AppExtensionAliasUseDetails {
|
|
5
|
-
snapshot: AppExtensionSnapshotDetails;
|
|
6
|
-
balance: AppExtensionAliasUse["balance"];
|
|
4
|
+
export interface AppExtensionAliasUseDetails extends AppAliasUse<AppExtensionSnapshotDetails> {
|
|
7
5
|
inputFilter?: NonNullable<SdkExtensionAlias["input"]>["filter"];
|
|
8
6
|
outputFilter?: NonNullable<SdkExtensionAlias["output"]>["filter"];
|
|
9
7
|
env?: SdkExtensionAlias["env"];
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { AppSnapshot } from "./appSnapshot";
|
|
4
|
-
export interface AppExtensionSnapshotDetails extends AppSnapshot {
|
|
1
|
+
import { AppSnapshotDetails } from "./appSnapshotDetails";
|
|
2
|
+
export interface AppExtensionSnapshotDetails extends AppSnapshotDetails {
|
|
5
3
|
sdk: string;
|
|
6
|
-
inputSchema: JSONSchema7;
|
|
7
|
-
outputSchema: JSONSchema7;
|
|
8
|
-
metadata: JsonObject;
|
|
9
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KongSpecProcessRef } from "@kong/spec";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
2
|
+
import { AppAliasDetails } from "./appAliasDetails";
|
|
3
|
+
import { AppProcessAliasUseDetails } from "./appProcessAliasUseDetails";
|
|
4
|
+
export interface AppProcessAliasDetails extends AppAliasDetails<AppProcessAliasUseDetails> {
|
|
5
5
|
name: KongSpecProcessRef["aliasName"];
|
|
6
6
|
basedOnName: KongSpecProcessRef["basedOn"];
|
|
7
|
-
}
|
|
7
|
+
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
+
import { AppAliasUse } from "./appAliasUse";
|
|
1
2
|
import { AppDocumentSnapshot } from "./appDocumentSnapshot";
|
|
2
|
-
|
|
3
|
-
export interface AppProcessAliasUse {
|
|
4
|
-
snapshotVersion: AppDocumentSnapshot["version"];
|
|
5
|
-
snapshotSdk: AppExtensionSnapshot["sdk"];
|
|
6
|
-
balance: number;
|
|
7
|
-
}
|
|
3
|
+
export type AppProcessAliasUse = AppAliasUse<AppDocumentSnapshot>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JsonObject } from "@kong/ts";
|
|
2
|
+
import { JSONSchema7 } from "json-schema";
|
|
3
|
+
import { AppSnapshot } from "./appSnapshot";
|
|
4
|
+
export interface AppSnapshotDetails extends AppSnapshot {
|
|
5
|
+
inputSchema: JSONSchema7;
|
|
6
|
+
outputSchema: JSONSchema7;
|
|
7
|
+
metadata: JsonObject;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { JqFilter, JsonObject } from "@kong/ts";
|
|
2
|
+
import { JSONSchema7 } from "json-schema";
|
|
3
|
+
import { SdkQuotaName } from "./sdkQuota";
|
|
4
|
+
export interface SdkAliasInput {
|
|
5
|
+
filter: JqFilter;
|
|
6
|
+
schema: JSONSchema7;
|
|
7
|
+
}
|
|
8
|
+
export interface SdkAliasOutput {
|
|
9
|
+
filter: JqFilter;
|
|
10
|
+
schema: JSONSchema7;
|
|
11
|
+
}
|
|
12
|
+
export interface SdkAlias {
|
|
13
|
+
input?: SdkAliasInput;
|
|
14
|
+
output?: SdkAliasOutput;
|
|
15
|
+
quotas?: Record<SdkQuotaName, JsonObject>;
|
|
16
|
+
}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { KongSpecHowToInvoke } from "@kong/spec";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
interface SdkExtensionAliasInput {
|
|
6
|
-
filter: JqFilter;
|
|
7
|
-
schema: JSONSchema7;
|
|
8
|
-
}
|
|
9
|
-
interface SdkExtensionAliasOutput {
|
|
10
|
-
filter: JqFilter;
|
|
11
|
-
schema: JSONSchema7;
|
|
12
|
-
}
|
|
13
|
-
export interface SdkExtensionAlias {
|
|
14
|
-
input?: SdkExtensionAliasInput;
|
|
15
|
-
output?: SdkExtensionAliasOutput;
|
|
2
|
+
import { JsonObject } from "@kong/ts";
|
|
3
|
+
import { SdkAlias } from "./sdkAlias";
|
|
4
|
+
export interface SdkExtensionAlias extends SdkAlias {
|
|
16
5
|
invoke?: KongSpecHowToInvoke;
|
|
17
|
-
quotas?: Record<SdkQuotaName, JsonObject>;
|
|
18
6
|
env?: JsonObject;
|
|
19
7
|
}
|
|
20
|
-
export {};
|