@yaakapp/api 0.6.0 → 0.6.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/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # Yaak Plugin API
2
+
3
+ Yaak is a desktop API client for interacting with REST, GraphQL, Server Sent Events (SSE),
4
+ WebSocket, and gRPC APIs. It's built using Tauri, Rust, and ReactJS.
5
+
6
+ Yaak plugins are written in TypeScript and executed within a NodeJS runtime. This package
7
+ contains the TypeScript type definitions required to make building Yaak plugins a breeze.
8
+
9
+ ## Quick Start
10
+
11
+ The easiest way to get started is by generating a plugin with the Yaak CLI:
12
+
13
+ ```shell
14
+ npx @yaakapp/cli generate
15
+ ```
16
+
17
+ ## Installation
18
+
19
+ If you prefer starting from scratch, manually install the types package:
20
+
21
+ ```shell
22
+ npm install @yaakapp/api
23
+ ```
@@ -1,11 +1,5 @@
1
- import type { Environment } from "./gen_models.js";
2
- import type { Folder } from "./gen_models.js";
3
- import type { GrpcRequest } from "./gen_models.js";
4
- import type { HttpRequest } from "./gen_models.js";
5
- import type { HttpResponse } from "./gen_models.js";
1
+ import type { Environment, Folder, GrpcRequest, HttpRequest, HttpResponse, WebsocketRequest, Workspace } from "./gen_models.js";
6
2
  import type { JsonValue } from "./serde_json/JsonValue.js";
7
- import type { WebsocketRequest } from "./gen_models.js";
8
- import type { Workspace } from "./gen_models.js";
9
3
  export type BootRequest = {
10
4
  dir: string;
11
5
  watch: boolean;
@@ -52,7 +46,7 @@ export type CallHttpRequestActionRequest = {
52
46
  export type CallTemplateFunctionArgs = {
53
47
  purpose: RenderPurpose;
54
48
  values: {
55
- [key in string]?: string;
49
+ [key in string]?: JsonValue;
56
50
  };
57
51
  };
58
52
  export type CallTemplateFunctionRequest = {
@@ -8,6 +8,7 @@ export type Environment = {
8
8
  public: boolean;
9
9
  base: boolean;
10
10
  variables: Array<EnvironmentVariable>;
11
+ color: string | null;
11
12
  };
12
13
  export type EnvironmentVariable = {
13
14
  enabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "@yaakapp/api",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
+ "keywords": [
5
+ "api-client",
6
+ "insomnia-alternative",
7
+ "bruno-alternative",
8
+ "postman-alternative"
9
+ ],
4
10
  "main": "lib/index.js",
5
11
  "typings": "./lib/index.d.ts",
6
12
  "files": [