@yaakapp/api 0.1.0-beta.8 → 0.1.0
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/lib/gen/BootRequest.d.ts +3 -0
- package/lib/gen/BootRequest.js +3 -0
- package/lib/gen/BootResponse.d.ts +5 -0
- package/lib/gen/BootResponse.js +3 -0
- package/lib/gen/EmptyResponse.d.ts +1 -0
- package/lib/gen/EmptyResponse.js +3 -0
- package/lib/gen/ExportHttpRequestRequest.d.ts +4 -0
- package/lib/gen/ExportHttpRequestRequest.js +2 -0
- package/lib/gen/ExportHttpRequestResponse.d.ts +3 -0
- package/lib/gen/ExportHttpRequestResponse.js +3 -0
- package/lib/gen/FilterRequest.d.ts +4 -0
- package/lib/gen/FilterRequest.js +3 -0
- package/lib/gen/FilterResponse.d.ts +4 -0
- package/lib/gen/FilterResponse.js +2 -0
- package/lib/gen/ImportRequest.d.ts +3 -0
- package/lib/gen/ImportRequest.js +3 -0
- package/lib/gen/ImportResources.d.ts +12 -0
- package/lib/gen/ImportResources.js +2 -0
- package/lib/gen/ImportResponse.d.ts +4 -0
- package/lib/gen/ImportResponse.js +2 -0
- package/lib/gen/InternalEvent.d.ts +7 -0
- package/lib/gen/InternalEvent.js +2 -0
- package/lib/gen/InternalEventPayload.d.ts +28 -0
- package/lib/gen/InternalEventPayload.js +2 -0
- package/lib/gen/PingRequest.d.ts +3 -0
- package/lib/gen/PingRequest.js +3 -0
- package/lib/gen/PingResponse.d.ts +3 -0
- package/lib/gen/PingResponse.js +3 -0
- package/lib/gen/PluginBootRequest.d.ts +3 -0
- package/lib/gen/PluginBootRequest.js +3 -0
- package/lib/gen/PluginBootResponse.d.ts +5 -0
- package/lib/gen/PluginBootResponse.js +3 -0
- package/lib/gen/common/ExportableModel.d.ts +6 -0
- package/lib/gen/common/ExportableModel.js +2 -0
- package/lib/gen/common/PluginImportResources.d.ts +12 -0
- package/lib/gen/common/PluginImportResources.js +2 -0
- package/lib/gen/events/PluginBootRequest.d.ts +3 -0
- package/lib/gen/events/PluginBootRequest.js +3 -0
- package/lib/gen/events/PluginBootResponse.d.ts +5 -0
- package/lib/gen/events/PluginBootResponse.js +3 -0
- package/lib/gen/events/PluginEvent.d.ts +7 -0
- package/lib/gen/events/PluginEvent.js +2 -0
- package/lib/gen/events/PluginEventPayload.d.ts +19 -0
- package/lib/gen/events/PluginEventPayload.js +2 -0
- package/lib/gen/events/PluginImportRequest.d.ts +3 -0
- package/lib/gen/events/PluginImportRequest.js +3 -0
- package/lib/gen/events/PluginImportResponse.d.ts +4 -0
- package/lib/gen/events/PluginImportResponse.js +2 -0
- package/lib/gen/events/PluginPingRequest.d.ts +3 -0
- package/lib/gen/events/PluginPingRequest.js +3 -0
- package/lib/gen/events/PluginPingResponse.d.ts +3 -0
- package/lib/gen/events/PluginPingResponse.js +3 -0
- package/lib/gen/models/Environment.d.ts +10 -0
- package/lib/gen/models/Environment.js +2 -0
- package/lib/gen/models/EnvironmentVariable.d.ts +5 -0
- package/lib/gen/models/EnvironmentVariable.js +3 -0
- package/lib/gen/models/Folder.d.ts +10 -0
- package/lib/gen/models/Folder.js +3 -0
- package/lib/gen/models/GrpcConnection.d.ts +17 -0
- package/lib/gen/models/GrpcConnection.js +3 -0
- package/lib/gen/models/GrpcEvent.d.ts +16 -0
- package/lib/gen/models/GrpcEvent.js +2 -0
- package/lib/gen/models/GrpcEventType.d.ts +1 -0
- package/lib/gen/models/GrpcEventType.js +3 -0
- package/lib/gen/models/GrpcMetadataEntry.d.ts +5 -0
- package/lib/gen/models/GrpcMetadataEntry.js +3 -0
- package/lib/gen/models/GrpcRequest.d.ts +18 -0
- package/lib/gen/models/GrpcRequest.js +2 -0
- package/lib/gen/models/HttpRequest.d.ts +20 -0
- package/lib/gen/models/HttpRequest.js +2 -0
- package/lib/gen/models/HttpRequestHeader.d.ts +5 -0
- package/lib/gen/models/HttpRequestHeader.js +3 -0
- package/lib/gen/models/HttpResponse.d.ts +20 -0
- package/lib/gen/models/HttpResponse.js +2 -0
- package/lib/gen/models/HttpResponseHeader.d.ts +4 -0
- package/lib/gen/models/HttpResponseHeader.js +3 -0
- package/lib/gen/models/HttpUrlParameter.d.ts +5 -0
- package/lib/gen/models/HttpUrlParameter.js +3 -0
- package/lib/gen/models/KeyValue.d.ts +8 -0
- package/lib/gen/models/KeyValue.js +3 -0
- package/lib/gen/models/Workspace.d.ts +13 -0
- package/lib/gen/models/Workspace.js +2 -0
- package/lib/gen/serde_json/JsonValue.d.ts +3 -0
- package/lib/gen/serde_json/JsonValue.js +3 -0
- package/lib/index.d.ts +12 -5
- package/lib/index.js +12 -5
- package/lib/plugin-runtime-types/src/gen/common/PluginImportResources.d.ts +12 -0
- package/lib/plugin-runtime-types/src/gen/common/PluginImportResources.js +2 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginBootRequest.d.ts +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginBootRequest.js +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginBootResponse.d.ts +5 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginBootResponse.js +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginEvent.d.ts +7 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginEvent.js +2 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginEventPayload.d.ts +19 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginEventPayload.js +2 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginExportHttpRequestRequest.d.ts +4 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginExportHttpRequestRequest.js +2 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginExportHttpRequestResponse.d.ts +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginExportHttpRequestResponse.js +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginFilterRequest.d.ts +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginFilterRequest.js +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginFilterResponse.d.ts +4 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginFilterResponse.js +2 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginImportRequest.d.ts +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginImportRequest.js +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginImportResponse.d.ts +4 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginImportResponse.js +2 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginPingRequest.d.ts +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginPingRequest.js +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginPingResponse.d.ts +3 -0
- package/lib/plugin-runtime-types/src/gen/events/PluginPingResponse.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/Environment.d.ts +10 -0
- package/lib/plugin-runtime-types/src/gen/models/Environment.js +2 -0
- package/lib/plugin-runtime-types/src/gen/models/EnvironmentVariable.d.ts +5 -0
- package/lib/plugin-runtime-types/src/gen/models/EnvironmentVariable.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/Folder.d.ts +10 -0
- package/lib/plugin-runtime-types/src/gen/models/Folder.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcConnection.d.ts +17 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcConnection.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcEvent.d.ts +16 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcEvent.js +2 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcEventType.d.ts +1 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcEventType.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcMetadataEntry.d.ts +5 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcMetadataEntry.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcRequest.d.ts +18 -0
- package/lib/plugin-runtime-types/src/gen/models/GrpcRequest.js +2 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpRequest.d.ts +20 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpRequest.js +2 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpRequestHeader.d.ts +5 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpRequestHeader.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpResponse.d.ts +20 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpResponse.js +2 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpResponseHeader.d.ts +4 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpResponseHeader.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpUrlParameter.d.ts +5 -0
- package/lib/plugin-runtime-types/src/gen/models/HttpUrlParameter.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/KeyValue.d.ts +8 -0
- package/lib/plugin-runtime-types/src/gen/models/KeyValue.js +3 -0
- package/lib/plugin-runtime-types/src/gen/models/Workspace.d.ts +13 -0
- package/lib/plugin-runtime-types/src/gen/models/Workspace.js +2 -0
- package/lib/plugin-runtime-types/src/helpers.d.ts +2 -0
- package/lib/plugin-runtime-types/src/helpers.js +2 -0
- package/lib/plugin-runtime-types/src/index.d.ts +31 -0
- package/lib/plugin-runtime-types/src/index.js +45 -0
- package/lib/plugin-runtime-types/src/plugins/context.d.ts +11 -0
- package/lib/plugin-runtime-types/src/plugins/context.js +2 -0
- package/lib/plugin-runtime-types/src/plugins/filter.d.ts +13 -0
- package/lib/plugin-runtime-types/src/plugins/filter.js +2 -0
- package/lib/plugin-runtime-types/src/plugins/httpRequestAction.d.ts +9 -0
- package/lib/plugin-runtime-types/src/plugins/httpRequestAction.js +2 -0
- package/lib/plugin-runtime-types/src/plugins/import.d.ts +19 -0
- package/lib/plugin-runtime-types/src/plugins/import.js +2 -0
- package/lib/plugin-runtime-types/src/plugins/index.d.ts +14 -0
- package/lib/plugin-runtime-types/src/plugins/index.js +2 -0
- package/lib/plugin-runtime-types/src/plugins/theme.d.ts +7 -0
- package/lib/plugin-runtime-types/src/plugins/theme.js +2 -0
- package/lib/plugin-runtime-types/src/themes/index.d.ts +39 -0
- package/lib/plugin-runtime-types/src/themes/index.js +2 -0
- package/lib/src-tauri/yaak_plugin_runtime/bindings/serde_json/JsonValue.d.ts +3 -0
- package/lib/src-tauri/yaak_plugin_runtime/bindings/serde_json/JsonValue.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EmptyResponse = {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Environment } from "./Environment";
|
|
2
|
+
import type { Folder } from "./Folder";
|
|
3
|
+
import type { GrpcRequest } from "./GrpcRequest";
|
|
4
|
+
import type { HttpRequest } from "./HttpRequest";
|
|
5
|
+
import type { Workspace } from "./Workspace";
|
|
6
|
+
export type ImportResources = {
|
|
7
|
+
workspaces: Array<Workspace>;
|
|
8
|
+
environments: Array<Environment>;
|
|
9
|
+
folders: Array<Folder>;
|
|
10
|
+
httpRequests: Array<HttpRequest>;
|
|
11
|
+
grpcRequests: Array<GrpcRequest>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BootRequest } from "./BootRequest";
|
|
2
|
+
import type { BootResponse } from "./BootResponse";
|
|
3
|
+
import type { EmptyResponse } from "./EmptyResponse";
|
|
4
|
+
import type { ExportHttpRequestRequest } from "./ExportHttpRequestRequest";
|
|
5
|
+
import type { ExportHttpRequestResponse } from "./ExportHttpRequestResponse";
|
|
6
|
+
import type { FilterRequest } from "./FilterRequest";
|
|
7
|
+
import type { FilterResponse } from "./FilterResponse";
|
|
8
|
+
import type { ImportRequest } from "./ImportRequest";
|
|
9
|
+
import type { ImportResponse } from "./ImportResponse";
|
|
10
|
+
export type InternalEventPayload = {
|
|
11
|
+
"type": "boot_request";
|
|
12
|
+
} & BootRequest | {
|
|
13
|
+
"type": "boot_response";
|
|
14
|
+
} & BootResponse | {
|
|
15
|
+
"type": "import_request";
|
|
16
|
+
} & ImportRequest | {
|
|
17
|
+
"type": "import_response";
|
|
18
|
+
} & ImportResponse | {
|
|
19
|
+
"type": "filter_request";
|
|
20
|
+
} & FilterRequest | {
|
|
21
|
+
"type": "filter_response";
|
|
22
|
+
} & FilterResponse | {
|
|
23
|
+
"type": "export_http_request_request";
|
|
24
|
+
} & ExportHttpRequestRequest | {
|
|
25
|
+
"type": "export_http_request_response";
|
|
26
|
+
} & ExportHttpRequestResponse | {
|
|
27
|
+
"type": "empty_response";
|
|
28
|
+
} & EmptyResponse;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Environment } from "../models/Environment";
|
|
2
|
+
import type { Folder } from "../models/Folder";
|
|
3
|
+
import type { GrpcRequest } from "../models/GrpcRequest";
|
|
4
|
+
import type { HttpRequest } from "../models/HttpRequest";
|
|
5
|
+
import type { Workspace } from "../models/Workspace";
|
|
6
|
+
export type ExportableModel = Workspace | Environment | Folder | HttpRequest | GrpcRequest;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Environment } from "../models/Environment";
|
|
2
|
+
import type { Folder } from "../models/Folder";
|
|
3
|
+
import type { GrpcRequest } from "../models/GrpcRequest";
|
|
4
|
+
import type { HttpRequest } from "../models/HttpRequest";
|
|
5
|
+
import type { Workspace } from "../models/Workspace";
|
|
6
|
+
export type PluginImportResources = {
|
|
7
|
+
workspaces: Array<Workspace>;
|
|
8
|
+
environments: Array<Environment>;
|
|
9
|
+
folders: Array<Folder>;
|
|
10
|
+
httpRequests: Array<HttpRequest>;
|
|
11
|
+
grpcRequests: Array<GrpcRequest>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PluginBootRequest } from "./PluginBootRequest";
|
|
2
|
+
import type { PluginBootResponse } from "./PluginBootResponse";
|
|
3
|
+
import type { PluginImportRequest } from "./PluginImportRequest";
|
|
4
|
+
import type { PluginImportResponse } from "./PluginImportResponse";
|
|
5
|
+
import type { PluginPingRequest } from "./PluginPingRequest";
|
|
6
|
+
import type { PluginPingResponse } from "./PluginPingResponse";
|
|
7
|
+
export type PluginEventPayload = {
|
|
8
|
+
"type": "ping_request";
|
|
9
|
+
} & PluginPingRequest | {
|
|
10
|
+
"type": "ping_response";
|
|
11
|
+
} & PluginPingResponse | {
|
|
12
|
+
"type": "boot_request";
|
|
13
|
+
} & PluginBootRequest | {
|
|
14
|
+
"type": "boot_response";
|
|
15
|
+
} & PluginBootResponse | {
|
|
16
|
+
"type": "import_request";
|
|
17
|
+
} & PluginImportRequest | {
|
|
18
|
+
"type": "import_response";
|
|
19
|
+
} & PluginImportResponse;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EnvironmentVariable } from "./EnvironmentVariable";
|
|
2
|
+
export type Environment = {
|
|
3
|
+
id: string;
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
model: "environment";
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
name: string;
|
|
9
|
+
variables: Array<EnvironmentVariable>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type GrpcConnection = {
|
|
2
|
+
id: string;
|
|
3
|
+
model: "grpc_connection";
|
|
4
|
+
workspaceId: string;
|
|
5
|
+
requestId: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
service: string;
|
|
9
|
+
method: string;
|
|
10
|
+
elapsed: number;
|
|
11
|
+
status: number;
|
|
12
|
+
url: string;
|
|
13
|
+
error: string | null;
|
|
14
|
+
trailers: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GrpcEventType } from "./GrpcEventType";
|
|
2
|
+
export type GrpcEvent = {
|
|
3
|
+
id: string;
|
|
4
|
+
model: "grpc_event";
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
requestId: string;
|
|
7
|
+
connectionId: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
content: string;
|
|
10
|
+
eventType: GrpcEventType;
|
|
11
|
+
metadata: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
status: number | null;
|
|
15
|
+
error: string | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type GrpcEventType = "info" | "error" | "client_message" | "server_message" | "connection_start" | "connection_end";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { GrpcMetadataEntry } from "./GrpcMetadataEntry";
|
|
2
|
+
export type GrpcRequest = {
|
|
3
|
+
id: string;
|
|
4
|
+
model: "grpc_request";
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
folderId: string | null;
|
|
9
|
+
name: string;
|
|
10
|
+
sortPriority: number;
|
|
11
|
+
url: string;
|
|
12
|
+
service: string | null;
|
|
13
|
+
method: string | null;
|
|
14
|
+
message: string;
|
|
15
|
+
authenticationType: string | null;
|
|
16
|
+
authentication: Record<string, any>;
|
|
17
|
+
metadata: Array<GrpcMetadataEntry>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HttpRequestHeader } from "./HttpRequestHeader";
|
|
2
|
+
import type { HttpUrlParameter } from "./HttpUrlParameter";
|
|
3
|
+
export type HttpRequest = {
|
|
4
|
+
createdAt: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
id: string;
|
|
7
|
+
workspaceId: string;
|
|
8
|
+
folderId: string | null;
|
|
9
|
+
model: "http_request";
|
|
10
|
+
sortPriority: number;
|
|
11
|
+
name: string;
|
|
12
|
+
url: string;
|
|
13
|
+
urlParameters: Array<HttpUrlParameter>;
|
|
14
|
+
method: string;
|
|
15
|
+
body: Record<string, any>;
|
|
16
|
+
bodyType: string | null;
|
|
17
|
+
authentication: Record<string, any>;
|
|
18
|
+
authenticationType: string | null;
|
|
19
|
+
headers: Array<HttpRequestHeader>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HttpResponseHeader } from "./HttpResponseHeader";
|
|
2
|
+
export type HttpResponse = {
|
|
3
|
+
id: string;
|
|
4
|
+
model: "http_response";
|
|
5
|
+
workspaceId: string;
|
|
6
|
+
requestId: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
error: string | null;
|
|
10
|
+
url: string;
|
|
11
|
+
contentLength: number | null;
|
|
12
|
+
version: string | null;
|
|
13
|
+
elapsed: number;
|
|
14
|
+
elapsedHeaders: number;
|
|
15
|
+
remoteAddr: string | null;
|
|
16
|
+
status: number;
|
|
17
|
+
statusReason: string | null;
|
|
18
|
+
bodyPath: string | null;
|
|
19
|
+
headers: Array<HttpResponseHeader>;
|
|
20
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EnvironmentVariable } from "./EnvironmentVariable";
|
|
2
|
+
export type Workspace = {
|
|
3
|
+
id: string;
|
|
4
|
+
model: "workspace";
|
|
5
|
+
createdAt: string;
|
|
6
|
+
updatedAt: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
variables: Array<EnvironmentVariable>;
|
|
10
|
+
settingValidateCertificates: boolean;
|
|
11
|
+
settingFollowRedirects: boolean;
|
|
12
|
+
settingRequestTimeout: number;
|
|
13
|
+
};
|