@yaakapp/api 0.1.15 → 0.1.16

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.
@@ -6,6 +6,7 @@ export type GrpcEvent = {
6
6
  requestId: string;
7
7
  connectionId: string;
8
8
  createdAt: string;
9
+ updatedAt: string;
9
10
  content: string;
10
11
  eventType: GrpcEventType;
11
12
  metadata: {
@@ -1,5 +1,3 @@
1
- import type { BootRequest } from "./BootRequest";
2
- import type { BootResponse } from "./BootResponse";
3
1
  import type { CallHttpRequestActionRequest } from "./CallHttpRequestActionRequest";
4
2
  import type { CallTemplateFunctionRequest } from "./CallTemplateFunctionRequest";
5
3
  import type { CallTemplateFunctionResponse } from "./CallTemplateFunctionResponse";
@@ -18,6 +16,8 @@ import type { GetHttpRequestByIdResponse } from "./GetHttpRequestByIdResponse";
18
16
  import type { GetTemplateFunctionsResponse } from "./GetTemplateFunctionsResponse";
19
17
  import type { ImportRequest } from "./ImportRequest";
20
18
  import type { ImportResponse } from "./ImportResponse";
19
+ import type { PluginBootRequest } from "./PluginBootRequest";
20
+ import type { PluginBootResponse } from "./PluginBootResponse";
21
21
  import type { RenderHttpRequestRequest } from "./RenderHttpRequestRequest";
22
22
  import type { RenderHttpRequestResponse } from "./RenderHttpRequestResponse";
23
23
  import type { SendHttpRequestRequest } from "./SendHttpRequestRequest";
@@ -25,9 +25,9 @@ import type { SendHttpRequestResponse } from "./SendHttpRequestResponse";
25
25
  import type { ShowToastRequest } from "./ShowToastRequest";
26
26
  export type InternalEventPayload = {
27
27
  "type": "boot_request";
28
- } & BootRequest | {
28
+ } & PluginBootRequest | {
29
29
  "type": "boot_response";
30
- } & BootResponse | {
30
+ } & PluginBootResponse | {
31
31
  "type": "import_request";
32
32
  } & ImportRequest | {
33
33
  "type": "import_response";
@@ -7,6 +7,7 @@ import type { GrpcRequest } from "./GrpcRequest";
7
7
  import type { HttpRequest } from "./HttpRequest";
8
8
  import type { HttpResponse } from "./HttpResponse";
9
9
  import type { KeyValue } from "./KeyValue";
10
+ import type { Plugin } from "./Plugin";
10
11
  import type { Settings } from "./Settings";
11
12
  import type { Workspace } from "./Workspace";
12
- export type Model = Environment | Folder | GrpcConnection | GrpcEvent | GrpcRequest | HttpRequest | HttpResponse | KeyValue | Workspace | CookieJar | Settings;
13
+ export type Model = Environment | Folder | GrpcConnection | GrpcEvent | GrpcRequest | HttpRequest | HttpResponse | KeyValue | Workspace | CookieJar | Settings | Plugin;
@@ -0,0 +1,11 @@
1
+ export type Plugin = {
2
+ id: string;
3
+ model: "plugin";
4
+ createdAt: string;
5
+ updatedAt: string;
6
+ checkedAt: string | null;
7
+ name: string;
8
+ version: string;
9
+ uri: string;
10
+ enabled: boolean;
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type PluginBootRequest = {
2
+ dir: string;
3
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export type PluginBootResponse = {
2
+ name: string;
3
+ version: string;
4
+ capabilities: Array<string>;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  export type * from './plugins';
2
2
  export type * from './themes';
3
- export * from './gen/BootRequest';
4
- export * from './gen/BootResponse';
5
3
  export * from './gen/CallHttpRequestActionArgs';
6
4
  export * from './gen/CallHttpRequestActionRequest';
7
5
  export * from './gen/CallTemplateFunctionRequest';
@@ -61,3 +59,4 @@ export * from './gen/TemplateFunctionSelectOption';
61
59
  export * from './gen/TemplateFunctionTextArg';
62
60
  export * from './gen/ToastVariant';
63
61
  export * from './gen/Workspace';
62
+ export * from './gen/Plugin';
package/lib/index.js CHANGED
@@ -15,8 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // TODO: The next ts-rs release includes the ability to put everything in 1 file!
18
- __exportStar(require("./gen/BootRequest"), exports);
19
- __exportStar(require("./gen/BootResponse"), exports);
20
18
  __exportStar(require("./gen/CallHttpRequestActionArgs"), exports);
21
19
  __exportStar(require("./gen/CallHttpRequestActionRequest"), exports);
22
20
  __exportStar(require("./gen/CallTemplateFunctionRequest"), exports);
@@ -76,3 +74,4 @@ __exportStar(require("./gen/TemplateFunctionSelectOption"), exports);
76
74
  __exportStar(require("./gen/TemplateFunctionTextArg"), exports);
77
75
  __exportStar(require("./gen/ToastVariant"), exports);
78
76
  __exportStar(require("./gen/Workspace"), exports);
77
+ __exportStar(require("./gen/Plugin"), exports);
@@ -7,7 +7,7 @@ export type { Context } from './Context';
7
7
  /**
8
8
  * The global structure of a Yaak plugin
9
9
  */
10
- export type Plugin = {
10
+ export type PluginDefinition = {
11
11
  importer?: ImporterPlugin;
12
12
  theme?: ThemePlugin;
13
13
  filter?: FilterPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaakapp/api",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "main": "lib/index.js",
5
5
  "typings": "./lib/index.d.ts",
6
6
  "files": [