@yaakapp/api 0.1.14 → 0.1.15

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.
Files changed (158) hide show
  1. package/lib/gen/GrpcEvent.d.ts +0 -1
  2. package/lib/gen/Model.d.ts +1 -2
  3. package/lib/index.d.ts +0 -1
  4. package/lib/index.js +0 -1
  5. package/lib/plugins/index.d.ts +1 -1
  6. package/package.json +1 -1
  7. package/lib/gen/CallTemplateFunctionPurpose.d.ts +0 -1
  8. package/lib/gen/CallTemplateFunctionPurpose.js +0 -3
  9. package/lib/gen/PingRequest.d.ts +0 -3
  10. package/lib/gen/PingRequest.js +0 -3
  11. package/lib/gen/PingResponse.d.ts +0 -3
  12. package/lib/gen/PingResponse.js +0 -3
  13. package/lib/gen/Plugin.d.ts +0 -11
  14. package/lib/gen/Plugin.js +0 -3
  15. package/lib/gen/PluginBootRequest.d.ts +0 -3
  16. package/lib/gen/PluginBootRequest.js +0 -3
  17. package/lib/gen/PluginBootResponse.d.ts +0 -5
  18. package/lib/gen/PluginBootResponse.js +0 -3
  19. package/lib/gen/common/ExportableModel.d.ts +0 -6
  20. package/lib/gen/common/PluginImportResources.d.ts +0 -12
  21. package/lib/gen/common/PluginImportResources.js +0 -2
  22. package/lib/gen/events/PluginBootRequest.d.ts +0 -3
  23. package/lib/gen/events/PluginBootRequest.js +0 -3
  24. package/lib/gen/events/PluginBootResponse.d.ts +0 -5
  25. package/lib/gen/events/PluginBootResponse.js +0 -3
  26. package/lib/gen/events/PluginEvent.d.ts +0 -7
  27. package/lib/gen/events/PluginEvent.js +0 -2
  28. package/lib/gen/events/PluginEventPayload.d.ts +0 -19
  29. package/lib/gen/events/PluginEventPayload.js +0 -2
  30. package/lib/gen/events/PluginImportRequest.d.ts +0 -3
  31. package/lib/gen/events/PluginImportRequest.js +0 -3
  32. package/lib/gen/events/PluginImportResponse.d.ts +0 -4
  33. package/lib/gen/events/PluginImportResponse.js +0 -2
  34. package/lib/gen/events/PluginPingRequest.d.ts +0 -3
  35. package/lib/gen/events/PluginPingRequest.js +0 -3
  36. package/lib/gen/events/PluginPingResponse.d.ts +0 -3
  37. package/lib/gen/events/PluginPingResponse.js +0 -3
  38. package/lib/gen/models/Environment.d.ts +0 -10
  39. package/lib/gen/models/Environment.js +0 -2
  40. package/lib/gen/models/EnvironmentVariable.d.ts +0 -5
  41. package/lib/gen/models/EnvironmentVariable.js +0 -3
  42. package/lib/gen/models/Folder.d.ts +0 -10
  43. package/lib/gen/models/Folder.js +0 -3
  44. package/lib/gen/models/GrpcConnection.d.ts +0 -17
  45. package/lib/gen/models/GrpcConnection.js +0 -3
  46. package/lib/gen/models/GrpcEvent.d.ts +0 -16
  47. package/lib/gen/models/GrpcEvent.js +0 -2
  48. package/lib/gen/models/GrpcEventType.d.ts +0 -1
  49. package/lib/gen/models/GrpcEventType.js +0 -3
  50. package/lib/gen/models/GrpcMetadataEntry.d.ts +0 -5
  51. package/lib/gen/models/GrpcMetadataEntry.js +0 -3
  52. package/lib/gen/models/GrpcRequest.d.ts +0 -18
  53. package/lib/gen/models/GrpcRequest.js +0 -2
  54. package/lib/gen/models/HttpRequest.d.ts +0 -20
  55. package/lib/gen/models/HttpRequest.js +0 -2
  56. package/lib/gen/models/HttpRequestHeader.d.ts +0 -5
  57. package/lib/gen/models/HttpRequestHeader.js +0 -3
  58. package/lib/gen/models/HttpResponse.d.ts +0 -20
  59. package/lib/gen/models/HttpResponse.js +0 -2
  60. package/lib/gen/models/HttpResponseHeader.d.ts +0 -4
  61. package/lib/gen/models/HttpResponseHeader.js +0 -3
  62. package/lib/gen/models/HttpUrlParameter.d.ts +0 -5
  63. package/lib/gen/models/HttpUrlParameter.js +0 -3
  64. package/lib/gen/models/KeyValue.d.ts +0 -8
  65. package/lib/gen/models/KeyValue.js +0 -3
  66. package/lib/gen/models/Workspace.d.ts +0 -13
  67. package/lib/gen/models/Workspace.js +0 -2
  68. package/lib/gen/serde_json/JsonValue.d.ts +0 -3
  69. package/lib/gen/serde_json/JsonValue.js +0 -3
  70. package/lib/plugin-runtime-types/src/gen/common/PluginImportResources.d.ts +0 -12
  71. package/lib/plugin-runtime-types/src/gen/common/PluginImportResources.js +0 -2
  72. package/lib/plugin-runtime-types/src/gen/events/PluginBootRequest.d.ts +0 -3
  73. package/lib/plugin-runtime-types/src/gen/events/PluginBootRequest.js +0 -3
  74. package/lib/plugin-runtime-types/src/gen/events/PluginBootResponse.d.ts +0 -5
  75. package/lib/plugin-runtime-types/src/gen/events/PluginBootResponse.js +0 -3
  76. package/lib/plugin-runtime-types/src/gen/events/PluginEvent.d.ts +0 -7
  77. package/lib/plugin-runtime-types/src/gen/events/PluginEvent.js +0 -2
  78. package/lib/plugin-runtime-types/src/gen/events/PluginEventPayload.d.ts +0 -19
  79. package/lib/plugin-runtime-types/src/gen/events/PluginEventPayload.js +0 -2
  80. package/lib/plugin-runtime-types/src/gen/events/PluginExportHttpRequestRequest.d.ts +0 -4
  81. package/lib/plugin-runtime-types/src/gen/events/PluginExportHttpRequestRequest.js +0 -2
  82. package/lib/plugin-runtime-types/src/gen/events/PluginExportHttpRequestResponse.d.ts +0 -3
  83. package/lib/plugin-runtime-types/src/gen/events/PluginExportHttpRequestResponse.js +0 -3
  84. package/lib/plugin-runtime-types/src/gen/events/PluginFilterRequest.d.ts +0 -3
  85. package/lib/plugin-runtime-types/src/gen/events/PluginFilterRequest.js +0 -3
  86. package/lib/plugin-runtime-types/src/gen/events/PluginFilterResponse.d.ts +0 -4
  87. package/lib/plugin-runtime-types/src/gen/events/PluginFilterResponse.js +0 -2
  88. package/lib/plugin-runtime-types/src/gen/events/PluginImportRequest.d.ts +0 -3
  89. package/lib/plugin-runtime-types/src/gen/events/PluginImportRequest.js +0 -3
  90. package/lib/plugin-runtime-types/src/gen/events/PluginImportResponse.d.ts +0 -4
  91. package/lib/plugin-runtime-types/src/gen/events/PluginImportResponse.js +0 -2
  92. package/lib/plugin-runtime-types/src/gen/events/PluginPingRequest.d.ts +0 -3
  93. package/lib/plugin-runtime-types/src/gen/events/PluginPingRequest.js +0 -3
  94. package/lib/plugin-runtime-types/src/gen/events/PluginPingResponse.d.ts +0 -3
  95. package/lib/plugin-runtime-types/src/gen/events/PluginPingResponse.js +0 -3
  96. package/lib/plugin-runtime-types/src/gen/models/Environment.d.ts +0 -10
  97. package/lib/plugin-runtime-types/src/gen/models/Environment.js +0 -2
  98. package/lib/plugin-runtime-types/src/gen/models/EnvironmentVariable.d.ts +0 -5
  99. package/lib/plugin-runtime-types/src/gen/models/EnvironmentVariable.js +0 -3
  100. package/lib/plugin-runtime-types/src/gen/models/Folder.d.ts +0 -10
  101. package/lib/plugin-runtime-types/src/gen/models/Folder.js +0 -3
  102. package/lib/plugin-runtime-types/src/gen/models/GrpcConnection.d.ts +0 -17
  103. package/lib/plugin-runtime-types/src/gen/models/GrpcConnection.js +0 -3
  104. package/lib/plugin-runtime-types/src/gen/models/GrpcEvent.d.ts +0 -16
  105. package/lib/plugin-runtime-types/src/gen/models/GrpcEvent.js +0 -2
  106. package/lib/plugin-runtime-types/src/gen/models/GrpcEventType.d.ts +0 -1
  107. package/lib/plugin-runtime-types/src/gen/models/GrpcEventType.js +0 -3
  108. package/lib/plugin-runtime-types/src/gen/models/GrpcMetadataEntry.d.ts +0 -5
  109. package/lib/plugin-runtime-types/src/gen/models/GrpcMetadataEntry.js +0 -3
  110. package/lib/plugin-runtime-types/src/gen/models/GrpcRequest.d.ts +0 -18
  111. package/lib/plugin-runtime-types/src/gen/models/GrpcRequest.js +0 -2
  112. package/lib/plugin-runtime-types/src/gen/models/HttpRequest.d.ts +0 -20
  113. package/lib/plugin-runtime-types/src/gen/models/HttpRequest.js +0 -2
  114. package/lib/plugin-runtime-types/src/gen/models/HttpRequestHeader.d.ts +0 -5
  115. package/lib/plugin-runtime-types/src/gen/models/HttpRequestHeader.js +0 -3
  116. package/lib/plugin-runtime-types/src/gen/models/HttpResponse.d.ts +0 -20
  117. package/lib/plugin-runtime-types/src/gen/models/HttpResponse.js +0 -2
  118. package/lib/plugin-runtime-types/src/gen/models/HttpResponseHeader.d.ts +0 -4
  119. package/lib/plugin-runtime-types/src/gen/models/HttpResponseHeader.js +0 -3
  120. package/lib/plugin-runtime-types/src/gen/models/HttpUrlParameter.d.ts +0 -5
  121. package/lib/plugin-runtime-types/src/gen/models/HttpUrlParameter.js +0 -3
  122. package/lib/plugin-runtime-types/src/gen/models/KeyValue.d.ts +0 -8
  123. package/lib/plugin-runtime-types/src/gen/models/KeyValue.js +0 -3
  124. package/lib/plugin-runtime-types/src/gen/models/Workspace.d.ts +0 -13
  125. package/lib/plugin-runtime-types/src/gen/models/Workspace.js +0 -2
  126. package/lib/plugin-runtime-types/src/helpers.d.ts +0 -2
  127. package/lib/plugin-runtime-types/src/helpers.js +0 -2
  128. package/lib/plugin-runtime-types/src/index.d.ts +0 -31
  129. package/lib/plugin-runtime-types/src/index.js +0 -45
  130. package/lib/plugin-runtime-types/src/plugins/context.d.ts +0 -11
  131. package/lib/plugin-runtime-types/src/plugins/context.js +0 -2
  132. package/lib/plugin-runtime-types/src/plugins/filter.d.ts +0 -13
  133. package/lib/plugin-runtime-types/src/plugins/filter.js +0 -2
  134. package/lib/plugin-runtime-types/src/plugins/httpRequestAction.d.ts +0 -9
  135. package/lib/plugin-runtime-types/src/plugins/httpRequestAction.js +0 -2
  136. package/lib/plugin-runtime-types/src/plugins/import.d.ts +0 -19
  137. package/lib/plugin-runtime-types/src/plugins/import.js +0 -2
  138. package/lib/plugin-runtime-types/src/plugins/index.d.ts +0 -14
  139. package/lib/plugin-runtime-types/src/plugins/index.js +0 -2
  140. package/lib/plugin-runtime-types/src/plugins/theme.d.ts +0 -7
  141. package/lib/plugin-runtime-types/src/plugins/theme.js +0 -2
  142. package/lib/plugin-runtime-types/src/themes/index.d.ts +0 -39
  143. package/lib/plugin-runtime-types/src/themes/index.js +0 -2
  144. package/lib/plugins/context.js +0 -2
  145. package/lib/plugins/filter.d.ts +0 -13
  146. package/lib/plugins/filter.js +0 -2
  147. package/lib/plugins/httpRequestAction.d.ts +0 -6
  148. package/lib/plugins/httpRequestAction.js +0 -2
  149. package/lib/plugins/import.d.ts +0 -19
  150. package/lib/plugins/import.js +0 -2
  151. package/lib/plugins/templateTag.d.ts +0 -6
  152. package/lib/plugins/templateTag.js +0 -2
  153. package/lib/plugins/theme.d.ts +0 -7
  154. package/lib/plugins/theme.js +0 -2
  155. package/lib/src-tauri/yaak_plugin_runtime/bindings/serde_json/JsonValue.d.ts +0 -3
  156. package/lib/src-tauri/yaak_plugin_runtime/bindings/serde_json/JsonValue.js +0 -2
  157. /package/lib/plugins/{context.d.ts → Context.d.ts} +0 -0
  158. /package/lib/{gen/common/ExportableModel.js → plugins/Context.js} +0 -0
@@ -1,3 +0,0 @@
1
- export type PluginFilterRequest = {
2
- content: string;
3
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,4 +0,0 @@
1
- import type { JsonValue } from "../../../../src-tauri/yaak_plugin_runtime/bindings/serde_json/JsonValue";
2
- export type PluginFilterResponse = {
3
- items: Array<JsonValue>;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export type PluginImportRequest = {
2
- content: string;
3
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,4 +0,0 @@
1
- import type { PluginImportResources } from "../common/PluginImportResources";
2
- export type PluginImportResponse = {
3
- resources: PluginImportResources;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export type PluginPingRequest = {
2
- message: string;
3
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,3 +0,0 @@
1
- export type PluginPingResponse = {
2
- message: string;
3
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,10 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export type EnvironmentVariable = {
2
- enabled?: boolean;
3
- name: string;
4
- value: string;
5
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,10 +0,0 @@
1
- export type Folder = {
2
- createdAt: string;
3
- updatedAt: string;
4
- id: string;
5
- workspaceId: string;
6
- folderId: string | null;
7
- model: "folder";
8
- name: string;
9
- sortPriority: number;
10
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,17 +0,0 @@
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
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,16 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type GrpcEventType = "info" | "error" | "client_message" | "server_message" | "connection_start" | "connection_end";
@@ -1,3 +0,0 @@
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 });
@@ -1,5 +0,0 @@
1
- export type GrpcMetadataEntry = {
2
- enabled?: boolean;
3
- name: string;
4
- value: string;
5
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,18 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export type HttpRequestHeader = {
2
- enabled?: boolean;
3
- name: string;
4
- value: string;
5
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,20 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export type HttpResponseHeader = {
2
- name: string;
3
- value: string;
4
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,5 +0,0 @@
1
- export type HttpUrlParameter = {
2
- enabled?: boolean;
3
- name: string;
4
- value: string;
5
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,8 +0,0 @@
1
- export type KeyValue = {
2
- model: "key_value";
3
- createdAt: string;
4
- updatedAt: string;
5
- namespace: string;
6
- key: string;
7
- value: string;
8
- };
@@ -1,3 +0,0 @@
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 });
@@ -1,13 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export type AtLeast<T, K extends keyof T> = Partial<T> & Pick<T, K>;
2
- export type OneOrMany<T> = T[] | T;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- export type * from './plugins';
2
- export type * from './themes';
3
- export * from './gen/events/PluginBootRequest';
4
- export * from './gen/events/PluginBootResponse';
5
- export * from './gen/events/PluginEvent';
6
- export * from './gen/events/PluginEventPayload';
7
- export * from './gen/events/PluginEventPayload';
8
- export * from './gen/events/PluginExportHttpRequestRequest';
9
- export * from './gen/events/PluginExportHttpRequestResponse';
10
- export * from './gen/events/PluginFilterRequest';
11
- export * from './gen/events/PluginFilterResponse';
12
- export * from './gen/events/PluginPingRequest';
13
- export * from './gen/events/PluginPingResponse';
14
- export * from './gen/events/PluginImportRequest';
15
- export * from './gen/events/PluginImportResponse';
16
- export * from './gen/common/PluginImportResources';
17
- export * from './gen/models/Environment';
18
- export * from './gen/models/EnvironmentVariable';
19
- export * from './gen/models/Folder';
20
- export * from './gen/models/GrpcConnection';
21
- export * from './gen/models/GrpcEvent';
22
- export * from './gen/models/GrpcEventType';
23
- export * from './gen/models/GrpcMetadataEntry';
24
- export * from './gen/models/GrpcRequest';
25
- export * from './gen/models/HttpRequest';
26
- export * from './gen/models/HttpRequestHeader';
27
- export * from './gen/models/HttpResponse';
28
- export * from './gen/models/HttpResponseHeader';
29
- export * from './gen/models/HttpUrlParameter';
30
- export * from './gen/models/KeyValue';
31
- export * from './gen/models/Workspace';
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./gen/events/PluginBootRequest"), exports);
18
- __exportStar(require("./gen/events/PluginBootResponse"), exports);
19
- __exportStar(require("./gen/events/PluginEvent"), exports);
20
- __exportStar(require("./gen/events/PluginEventPayload"), exports);
21
- __exportStar(require("./gen/events/PluginEventPayload"), exports);
22
- __exportStar(require("./gen/events/PluginExportHttpRequestRequest"), exports);
23
- __exportStar(require("./gen/events/PluginExportHttpRequestResponse"), exports);
24
- __exportStar(require("./gen/events/PluginFilterRequest"), exports);
25
- __exportStar(require("./gen/events/PluginFilterResponse"), exports);
26
- __exportStar(require("./gen/events/PluginPingRequest"), exports);
27
- __exportStar(require("./gen/events/PluginPingResponse"), exports);
28
- __exportStar(require("./gen/events/PluginImportRequest"), exports);
29
- __exportStar(require("./gen/events/PluginImportResponse"), exports);
30
- __exportStar(require("./gen/common/PluginImportResources"), exports);
31
- __exportStar(require("./gen/models/Environment"), exports);
32
- __exportStar(require("./gen/models/EnvironmentVariable"), exports);
33
- __exportStar(require("./gen/models/Folder"), exports);
34
- __exportStar(require("./gen/models/GrpcConnection"), exports);
35
- __exportStar(require("./gen/models/GrpcEvent"), exports);
36
- __exportStar(require("./gen/models/GrpcEventType"), exports);
37
- __exportStar(require("./gen/models/GrpcMetadataEntry"), exports);
38
- __exportStar(require("./gen/models/GrpcRequest"), exports);
39
- __exportStar(require("./gen/models/HttpRequest"), exports);
40
- __exportStar(require("./gen/models/HttpRequestHeader"), exports);
41
- __exportStar(require("./gen/models/HttpResponse"), exports);
42
- __exportStar(require("./gen/models/HttpResponseHeader"), exports);
43
- __exportStar(require("./gen/models/HttpUrlParameter"), exports);
44
- __exportStar(require("./gen/models/KeyValue"), exports);
45
- __exportStar(require("./gen/models/Workspace"), exports);
@@ -1,11 +0,0 @@
1
- import { HttpRequest } from '../gen/models/HttpRequest';
2
- import { HttpResponse } from '../gen/models/HttpResponse';
3
- export type YaakContext = {
4
- metadata: {
5
- getVersion(): Promise<string>;
6
- };
7
- httpRequest: {
8
- send(id: string): Promise<HttpResponse>;
9
- getById(id: string): Promise<HttpRequest | null>;
10
- };
11
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { YaakContext } from './context';
2
- export type FilterPluginResponse = string[];
3
- export type FilterPlugin = {
4
- name: string;
5
- description?: string;
6
- canFilter(ctx: YaakContext, args: {
7
- mimeType: string;
8
- }): Promise<boolean>;
9
- onFilter(ctx: YaakContext, args: {
10
- payload: string;
11
- mimeType: string;
12
- }): Promise<FilterPluginResponse>;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { HttpRequest } from '../gen/models/HttpRequest';
2
- import { YaakContext } from './context';
3
- export type HttpRequestActionPlugin = {
4
- key: string;
5
- label: string;
6
- onSelect(ctx: YaakContext, args: {
7
- httpRequest: HttpRequest;
8
- }): void;
9
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- import { Environment } from '../gen/models/Environment';
2
- import { Folder } from '../gen/models/Folder';
3
- import { HttpRequest } from '../gen/models/HttpRequest';
4
- import { Workspace } from '../gen/models/Workspace';
5
- import { AtLeast } from '../helpers';
6
- import { YaakContext } from './context';
7
- export type ImportPluginResponse = null | {
8
- workspaces: AtLeast<Workspace, 'name' | 'id' | 'model'>[];
9
- environments: AtLeast<Environment, 'name' | 'id' | 'model' | 'workspaceId'>[];
10
- httpRequests: AtLeast<HttpRequest, 'name' | 'id' | 'model' | 'workspaceId'>[];
11
- folders: AtLeast<Folder, 'name' | 'id' | 'model' | 'workspaceId'>[];
12
- };
13
- export type ImporterPlugin = {
14
- name: string;
15
- description?: string;
16
- onImport(ctx: YaakContext, args: {
17
- text: string;
18
- }): Promise<ImportPluginResponse>;
19
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import { OneOrMany } from '../helpers';
2
- import { FilterPlugin } from './filter';
3
- import { HttpRequestActionPlugin } from './httpRequestAction';
4
- import { ImporterPlugin } from './import';
5
- import { ThemePlugin } from './theme';
6
- /**
7
- * The global structure of a Yaak plugin
8
- */
9
- export type YaakPlugin = {
10
- importer?: OneOrMany<ImporterPlugin>;
11
- theme?: OneOrMany<ThemePlugin>;
12
- filter?: OneOrMany<FilterPlugin>;
13
- httpRequestAction?: OneOrMany<HttpRequestActionPlugin>;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { Theme } from '../themes';
2
- import { YaakContext } from './context';
3
- export type ThemePlugin = {
4
- name: string;
5
- description?: string;
6
- getTheme(ctx: YaakContext, fileContents: string): Promise<Theme>;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,39 +0,0 @@
1
- export type Colors = {
2
- surface: string;
3
- surfaceHighlight?: string;
4
- surfaceActive?: string;
5
- text: string;
6
- textSubtle?: string;
7
- textSubtlest?: string;
8
- border?: string;
9
- borderSubtle?: string;
10
- borderFocus?: string;
11
- shadow?: string;
12
- backdrop?: string;
13
- selection?: string;
14
- primary?: string;
15
- secondary?: string;
16
- info?: string;
17
- success?: string;
18
- notice?: string;
19
- warning?: string;
20
- danger?: string;
21
- };
22
- export type Theme = Colors & {
23
- id: string;
24
- name: string;
25
- components?: Partial<{
26
- dialog: Partial<Colors>;
27
- menu: Partial<Colors>;
28
- toast: Partial<Colors>;
29
- sidebar: Partial<Colors>;
30
- responsePane: Partial<Colors>;
31
- appHeader: Partial<Colors>;
32
- button: Partial<Colors>;
33
- banner: Partial<Colors>;
34
- placeholder: Partial<Colors>;
35
- urlBar: Partial<Colors>;
36
- editor: Partial<Colors>;
37
- input: Partial<Colors>;
38
- }>;
39
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { YaakContext } from './context';
2
- export type FilterPluginResponse = string[];
3
- export type FilterPlugin = {
4
- name: string;
5
- description?: string;
6
- canFilter(ctx: YaakContext, args: {
7
- mimeType: string;
8
- }): Promise<boolean>;
9
- onFilter(ctx: YaakContext, args: {
10
- payload: string;
11
- mimeType: string;
12
- }): Promise<FilterPluginResponse>;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { CallHttpRequestActionArgs } from '../gen/CallHttpRequestActionArgs';
2
- import { HttpRequestAction } from '../gen/HttpRequestAction';
3
- import { YaakContext } from './context';
4
- export type HttpRequestActionPlugin = HttpRequestAction & {
5
- onSelect(ctx: YaakContext, args: CallHttpRequestActionArgs): Promise<void> | void;
6
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- import { Environment } from '../gen/Environment';
2
- import { Folder } from '../gen/Folder';
3
- import { HttpRequest } from '../gen/HttpRequest';
4
- import { Workspace } from '../gen/Workspace';
5
- import { AtLeast } from '../helpers';
6
- import { YaakContext } from './context';
7
- export type ImportPluginResponse = null | {
8
- workspaces: AtLeast<Workspace, 'name' | 'id' | 'model'>[];
9
- environments: AtLeast<Environment, 'name' | 'id' | 'model' | 'workspaceId'>[];
10
- httpRequests: AtLeast<HttpRequest, 'name' | 'id' | 'model' | 'workspaceId'>[];
11
- folders: AtLeast<Folder, 'name' | 'id' | 'model' | 'workspaceId'>[];
12
- };
13
- export type ImporterPlugin = {
14
- name: string;
15
- description?: string;
16
- onImport(ctx: YaakContext, args: {
17
- text: string;
18
- }): Promise<ImportPluginResponse>;
19
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { CallTemplateFunctionArgs } from '../gen/CallTemplateFunctionArgs';
2
- import { TemplateFunction } from '../gen/TemplateFunction';
3
- import { YaakContext } from './context';
4
- export type TemplateFunctionPlugin = TemplateFunction & {
5
- onRender(ctx: YaakContext, args: CallTemplateFunctionArgs): Promise<string>;
6
- };