@yaakapp/api 0.2.4 → 0.2.6

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 (162) hide show
  1. package/lib/helpers.d.ts +0 -1
  2. package/lib/index.d.ts +1 -2
  3. package/lib/index.js +1 -2
  4. package/lib/plugin-runtime-types/src/helpers.d.ts +2 -0
  5. package/lib/plugin-runtime-types/src/index.d.ts +4 -0
  6. package/lib/plugin-runtime-types/src/index.js +18 -0
  7. package/lib/plugin-runtime-types/src/plugins/Context.d.ts +17 -0
  8. package/lib/plugin-runtime-types/src/plugins/FilterPlugin.d.ts +13 -0
  9. package/lib/plugin-runtime-types/src/plugins/HttpRequestActionPlugin.d.ts +5 -0
  10. package/lib/plugin-runtime-types/src/plugins/ImporterPlugin.d.ts +16 -0
  11. package/lib/plugin-runtime-types/src/plugins/TemplateFunctionPlugin.d.ts +5 -0
  12. package/lib/plugin-runtime-types/src/plugins/ThemePlugin.d.ts +7 -0
  13. package/lib/plugin-runtime-types/src/plugins/index.d.ts +16 -0
  14. package/lib/plugin-runtime-types/src/themes/index.d.ts +39 -0
  15. package/lib/plugins/Context.d.ts +1 -1
  16. package/lib/plugins/HttpRequestActionPlugin.d.ts +1 -1
  17. package/lib/plugins/ImporterPlugin.d.ts +1 -1
  18. package/lib/plugins/TemplateFunctionPlugin.d.ts +1 -1
  19. package/lib/{gen → src-tauri/yaak_plugin_runtime/bindings}/events.d.ts +1 -4
  20. package/lib/src-tauri/yaak_plugin_runtime/bindings/events.js +1 -0
  21. package/lib/{gen → src-tauri/yaak_plugin_runtime/bindings}/models.d.ts +41 -91
  22. package/lib/{gen → src-tauri/yaak_plugin_runtime/bindings}/models.js +1 -2
  23. package/package.json +1 -1
  24. package/lib/gen/BootRequest.d.ts +0 -3
  25. package/lib/gen/BootRequest.js +0 -3
  26. package/lib/gen/BootResponse.d.ts +0 -5
  27. package/lib/gen/BootResponse.js +0 -3
  28. package/lib/gen/CallHttpRequestActionArgs.d.ts +0 -4
  29. package/lib/gen/CallHttpRequestActionRequest.d.ts +0 -6
  30. package/lib/gen/CallTemplateFunctionArgs.d.ts +0 -7
  31. package/lib/gen/CallTemplateFunctionRequest.d.ts +0 -5
  32. package/lib/gen/CallTemplateFunctionResponse.d.ts +0 -3
  33. package/lib/gen/CallTemplateFunctionResponse.js +0 -3
  34. package/lib/gen/Cookie.d.ts +0 -8
  35. package/lib/gen/CookieDomain.d.ts +0 -5
  36. package/lib/gen/CookieDomain.js +0 -3
  37. package/lib/gen/CookieExpires.d.ts +0 -3
  38. package/lib/gen/CookieExpires.js +0 -3
  39. package/lib/gen/CookieJar.d.ts +0 -10
  40. package/lib/gen/CopyTextRequest.d.ts +0 -3
  41. package/lib/gen/CopyTextRequest.js +0 -3
  42. package/lib/gen/EmptyResponse.d.ts +0 -1
  43. package/lib/gen/EmptyResponse.js +0 -3
  44. package/lib/gen/Environment.d.ts +0 -10
  45. package/lib/gen/EnvironmentVariable.d.ts +0 -5
  46. package/lib/gen/EnvironmentVariable.js +0 -3
  47. package/lib/gen/ExportHttpRequestRequest.d.ts +0 -4
  48. package/lib/gen/ExportHttpRequestResponse.d.ts +0 -3
  49. package/lib/gen/ExportHttpRequestResponse.js +0 -3
  50. package/lib/gen/FilterRequest.d.ts +0 -4
  51. package/lib/gen/FilterRequest.js +0 -3
  52. package/lib/gen/FilterResponse.d.ts +0 -3
  53. package/lib/gen/FilterResponse.js +0 -3
  54. package/lib/gen/FindHttpResponsesRequest.d.ts +0 -4
  55. package/lib/gen/FindHttpResponsesRequest.js +0 -3
  56. package/lib/gen/FindHttpResponsesResponse.d.ts +0 -4
  57. package/lib/gen/Folder.d.ts +0 -10
  58. package/lib/gen/Folder.js +0 -3
  59. package/lib/gen/GetHttpRequestActionsRequest.d.ts +0 -1
  60. package/lib/gen/GetHttpRequestActionsRequest.js +0 -3
  61. package/lib/gen/GetHttpRequestActionsResponse.d.ts +0 -5
  62. package/lib/gen/GetHttpRequestActionsResponse.js +0 -2
  63. package/lib/gen/GetHttpRequestByIdRequest.d.ts +0 -3
  64. package/lib/gen/GetHttpRequestByIdRequest.js +0 -3
  65. package/lib/gen/GetHttpRequestByIdResponse.d.ts +0 -4
  66. package/lib/gen/GetHttpRequestByIdResponse.js +0 -2
  67. package/lib/gen/GetTemplateFunctionsResponse.d.ts +0 -5
  68. package/lib/gen/GetTemplateFunctionsResponse.js +0 -2
  69. package/lib/gen/GrpcConnection.d.ts +0 -17
  70. package/lib/gen/GrpcConnection.js +0 -3
  71. package/lib/gen/GrpcEvent.d.ts +0 -17
  72. package/lib/gen/GrpcEvent.js +0 -2
  73. package/lib/gen/GrpcEventType.d.ts +0 -1
  74. package/lib/gen/GrpcEventType.js +0 -3
  75. package/lib/gen/GrpcMetadataEntry.d.ts +0 -5
  76. package/lib/gen/GrpcMetadataEntry.js +0 -3
  77. package/lib/gen/GrpcRequest.d.ts +0 -18
  78. package/lib/gen/GrpcRequest.js +0 -2
  79. package/lib/gen/HttpRequest.d.ts +0 -20
  80. package/lib/gen/HttpRequest.js +0 -2
  81. package/lib/gen/HttpRequestAction.d.ts +0 -5
  82. package/lib/gen/HttpRequestAction.js +0 -3
  83. package/lib/gen/HttpRequestHeader.d.ts +0 -5
  84. package/lib/gen/HttpRequestHeader.js +0 -3
  85. package/lib/gen/HttpResponse.d.ts +0 -20
  86. package/lib/gen/HttpResponse.js +0 -2
  87. package/lib/gen/HttpResponseHeader.d.ts +0 -4
  88. package/lib/gen/HttpResponseHeader.js +0 -3
  89. package/lib/gen/HttpUrlParameter.d.ts +0 -5
  90. package/lib/gen/HttpUrlParameter.js +0 -3
  91. package/lib/gen/ImportRequest.d.ts +0 -3
  92. package/lib/gen/ImportRequest.js +0 -3
  93. package/lib/gen/ImportResources.d.ts +0 -12
  94. package/lib/gen/ImportResources.js +0 -2
  95. package/lib/gen/ImportResponse.d.ts +0 -4
  96. package/lib/gen/ImportResponse.js +0 -2
  97. package/lib/gen/InternalEvent.d.ts +0 -7
  98. package/lib/gen/InternalEvent.js +0 -2
  99. package/lib/gen/InternalEventPayload.d.ts +0 -85
  100. package/lib/gen/InternalEventPayload.js +0 -2
  101. package/lib/gen/KeyValue.d.ts +0 -8
  102. package/lib/gen/KeyValue.js +0 -3
  103. package/lib/gen/Model.d.ts +0 -13
  104. package/lib/gen/Model.js +0 -2
  105. package/lib/gen/Plugin.d.ts +0 -10
  106. package/lib/gen/Plugin.js +0 -3
  107. package/lib/gen/PluginBootRequest.d.ts +0 -3
  108. package/lib/gen/PluginBootRequest.js +0 -3
  109. package/lib/gen/PluginBootResponse.d.ts +0 -5
  110. package/lib/gen/PluginBootResponse.js +0 -3
  111. package/lib/gen/PluginReloadRequest.d.ts +0 -1
  112. package/lib/gen/PluginReloadRequest.js +0 -3
  113. package/lib/gen/PluginReloadResponse.d.ts +0 -1
  114. package/lib/gen/PluginReloadResponse.js +0 -3
  115. package/lib/gen/ReloadRequest.d.ts +0 -1
  116. package/lib/gen/ReloadRequest.js +0 -3
  117. package/lib/gen/ReloadResponse.d.ts +0 -1
  118. package/lib/gen/ReloadResponse.js +0 -3
  119. package/lib/gen/RenderHttpRequestRequest.d.ts +0 -6
  120. package/lib/gen/RenderHttpRequestRequest.js +0 -2
  121. package/lib/gen/RenderHttpRequestResponse.d.ts +0 -4
  122. package/lib/gen/RenderHttpRequestResponse.js +0 -2
  123. package/lib/gen/RenderPurpose.d.ts +0 -1
  124. package/lib/gen/RenderPurpose.js +0 -3
  125. package/lib/gen/SendHttpRequestRequest.d.ts +0 -4
  126. package/lib/gen/SendHttpRequestRequest.js +0 -2
  127. package/lib/gen/SendHttpRequestResponse.d.ts +0 -4
  128. package/lib/gen/SendHttpRequestResponse.js +0 -2
  129. package/lib/gen/Settings.d.ts +0 -17
  130. package/lib/gen/Settings.js +0 -3
  131. package/lib/gen/ShowToastRequest.d.ts +0 -5
  132. package/lib/gen/ShowToastRequest.js +0 -2
  133. package/lib/gen/TemplateFunction.d.ts +0 -5
  134. package/lib/gen/TemplateFunction.js +0 -2
  135. package/lib/gen/TemplateFunctionArg.d.ts +0 -13
  136. package/lib/gen/TemplateFunctionArg.js +0 -2
  137. package/lib/gen/TemplateFunctionBaseArg.d.ts +0 -6
  138. package/lib/gen/TemplateFunctionBaseArg.js +0 -3
  139. package/lib/gen/TemplateFunctionCheckboxArg.d.ts +0 -6
  140. package/lib/gen/TemplateFunctionCheckboxArg.js +0 -3
  141. package/lib/gen/TemplateFunctionHttpRequestArg.d.ts +0 -6
  142. package/lib/gen/TemplateFunctionHttpRequestArg.js +0 -3
  143. package/lib/gen/TemplateFunctionSelectArg.d.ts +0 -8
  144. package/lib/gen/TemplateFunctionSelectArg.js +0 -2
  145. package/lib/gen/TemplateFunctionSelectOption.d.ts +0 -4
  146. package/lib/gen/TemplateFunctionSelectOption.js +0 -3
  147. package/lib/gen/TemplateFunctionTextArg.d.ts +0 -7
  148. package/lib/gen/TemplateFunctionTextArg.js +0 -3
  149. package/lib/gen/ToastVariant.d.ts +0 -1
  150. package/lib/gen/ToastVariant.js +0 -3
  151. package/lib/gen/Workspace.d.ts +0 -13
  152. package/lib/gen/Workspace.js +0 -2
  153. package/lib/gen/events.js +0 -2
  154. /package/lib/{gen/CallHttpRequestActionArgs.js → plugin-runtime-types/src/helpers.js} +0 -0
  155. /package/lib/{gen/CallHttpRequestActionRequest.js → plugin-runtime-types/src/plugins/Context.js} +0 -0
  156. /package/lib/{gen/CallTemplateFunctionArgs.js → plugin-runtime-types/src/plugins/FilterPlugin.js} +0 -0
  157. /package/lib/{gen/CallTemplateFunctionRequest.js → plugin-runtime-types/src/plugins/HttpRequestActionPlugin.js} +0 -0
  158. /package/lib/{gen/Cookie.js → plugin-runtime-types/src/plugins/ImporterPlugin.js} +0 -0
  159. /package/lib/{gen/CookieJar.js → plugin-runtime-types/src/plugins/TemplateFunctionPlugin.js} +0 -0
  160. /package/lib/{gen/Environment.js → plugin-runtime-types/src/plugins/ThemePlugin.js} +0 -0
  161. /package/lib/{gen/ExportHttpRequestRequest.js → plugin-runtime-types/src/plugins/index.js} +0 -0
  162. /package/lib/{gen/FindHttpResponsesResponse.js → plugin-runtime-types/src/themes/index.js} +0 -0
@@ -1,3 +0,0 @@
1
- export type FilterResponse = {
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
- export type FindHttpResponsesRequest = {
2
- requestId: string;
3
- limit: number | null;
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,4 +0,0 @@
1
- import type { HttpResponse } from "./HttpResponse";
2
- export type FindHttpResponsesResponse = {
3
- httpResponses: Array<HttpResponse>;
4
- };
@@ -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
- };
package/lib/gen/Folder.js DELETED
@@ -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 +0,0 @@
1
- export type GetHttpRequestActionsRequest = Record<string, never>;
@@ -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
- import type { HttpRequestAction } from "./HttpRequestAction";
2
- export type GetHttpRequestActionsResponse = {
3
- actions: Array<HttpRequestAction>;
4
- pluginRefId: string;
5
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export type GetHttpRequestByIdRequest = {
2
- id: 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 { HttpRequest } from "./HttpRequest";
2
- export type GetHttpRequestByIdResponse = {
3
- httpRequest: HttpRequest | null;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import type { TemplateFunction } from "./TemplateFunction";
2
- export type GetTemplateFunctionsResponse = {
3
- functions: Array<TemplateFunction>;
4
- pluginRefId: string;
5
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- 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,17 +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
- updatedAt: string;
10
- content: string;
11
- eventType: GrpcEventType;
12
- metadata: {
13
- [key: string]: string;
14
- };
15
- status: number | null;
16
- error: string | null;
17
- };
@@ -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 HttpRequestAction = {
2
- key: string;
3
- label: string;
4
- icon: string | null;
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,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,3 +0,0 @@
1
- export type ImportRequest = {
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,12 +0,0 @@
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
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import type { ImportResources } from "./ImportResources";
2
- export type ImportResponse = {
3
- resources: ImportResources;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import type { InternalEventPayload } from "./InternalEventPayload";
2
- export type InternalEvent = {
3
- id: string;
4
- pluginRefId: string;
5
- replyId: string | null;
6
- payload: InternalEventPayload;
7
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,85 +0,0 @@
1
- import type { BootRequest } from "./BootRequest";
2
- import type { BootResponse } from "./BootResponse";
3
- import type { CallHttpRequestActionRequest } from "./CallHttpRequestActionRequest";
4
- import type { CallTemplateFunctionRequest } from "./CallTemplateFunctionRequest";
5
- import type { CallTemplateFunctionResponse } from "./CallTemplateFunctionResponse";
6
- import type { CopyTextRequest } from "./CopyTextRequest";
7
- import type { ExportHttpRequestRequest } from "./ExportHttpRequestRequest";
8
- import type { ExportHttpRequestResponse } from "./ExportHttpRequestResponse";
9
- import type { FilterRequest } from "./FilterRequest";
10
- import type { FilterResponse } from "./FilterResponse";
11
- import type { FindHttpResponsesRequest } from "./FindHttpResponsesRequest";
12
- import type { FindHttpResponsesResponse } from "./FindHttpResponsesResponse";
13
- import type { GetHttpRequestActionsRequest } from "./GetHttpRequestActionsRequest";
14
- import type { GetHttpRequestActionsResponse } from "./GetHttpRequestActionsResponse";
15
- import type { GetHttpRequestByIdRequest } from "./GetHttpRequestByIdRequest";
16
- import type { GetHttpRequestByIdResponse } from "./GetHttpRequestByIdResponse";
17
- import type { GetTemplateFunctionsResponse } from "./GetTemplateFunctionsResponse";
18
- import type { ImportRequest } from "./ImportRequest";
19
- import type { ImportResponse } from "./ImportResponse";
20
- import type { RenderHttpRequestRequest } from "./RenderHttpRequestRequest";
21
- import type { RenderHttpRequestResponse } from "./RenderHttpRequestResponse";
22
- import type { SendHttpRequestRequest } from "./SendHttpRequestRequest";
23
- import type { SendHttpRequestResponse } from "./SendHttpRequestResponse";
24
- import type { ShowToastRequest } from "./ShowToastRequest";
25
- export type InternalEventPayload = {
26
- "type": "boot_request";
27
- } & BootRequest | {
28
- "type": "boot_response";
29
- } & BootResponse | {
30
- "type": "reload_request";
31
- } | {
32
- "type": "reload_response";
33
- } | {
34
- "type": "terminate_request";
35
- } | {
36
- "type": "terminate_response";
37
- } | {
38
- "type": "import_request";
39
- } & ImportRequest | {
40
- "type": "import_response";
41
- } & ImportResponse | {
42
- "type": "filter_request";
43
- } & FilterRequest | {
44
- "type": "filter_response";
45
- } & FilterResponse | {
46
- "type": "export_http_request_request";
47
- } & ExportHttpRequestRequest | {
48
- "type": "export_http_request_response";
49
- } & ExportHttpRequestResponse | {
50
- "type": "send_http_request_request";
51
- } & SendHttpRequestRequest | {
52
- "type": "send_http_request_response";
53
- } & SendHttpRequestResponse | {
54
- "type": "get_http_request_actions_request";
55
- } & GetHttpRequestActionsRequest | {
56
- "type": "get_http_request_actions_response";
57
- } & GetHttpRequestActionsResponse | {
58
- "type": "call_http_request_action_request";
59
- } & CallHttpRequestActionRequest | {
60
- "type": "get_template_functions_request";
61
- } | {
62
- "type": "get_template_functions_response";
63
- } & GetTemplateFunctionsResponse | {
64
- "type": "call_template_function_request";
65
- } & CallTemplateFunctionRequest | {
66
- "type": "call_template_function_response";
67
- } & CallTemplateFunctionResponse | {
68
- "type": "copy_text_request";
69
- } & CopyTextRequest | {
70
- "type": "render_http_request_request";
71
- } & RenderHttpRequestRequest | {
72
- "type": "render_http_request_response";
73
- } & RenderHttpRequestResponse | {
74
- "type": "show_toast_request";
75
- } & ShowToastRequest | {
76
- "type": "get_http_request_by_id_request";
77
- } & GetHttpRequestByIdRequest | {
78
- "type": "get_http_request_by_id_response";
79
- } & GetHttpRequestByIdResponse | {
80
- "type": "find_http_responses_request";
81
- } & FindHttpResponsesRequest | {
82
- "type": "find_http_responses_response";
83
- } & FindHttpResponsesResponse | {
84
- "type": "empty_response";
85
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- 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 { CookieJar } from "./CookieJar";
2
- import type { Environment } from "./Environment";
3
- import type { Folder } from "./Folder";
4
- import type { GrpcConnection } from "./GrpcConnection";
5
- import type { GrpcEvent } from "./GrpcEvent";
6
- import type { GrpcRequest } from "./GrpcRequest";
7
- import type { HttpRequest } from "./HttpRequest";
8
- import type { HttpResponse } from "./HttpResponse";
9
- import type { KeyValue } from "./KeyValue";
10
- import type { Plugin } from "./Plugin";
11
- import type { Settings } from "./Settings";
12
- import type { Workspace } from "./Workspace";
13
- export type Model = Environment | Folder | GrpcConnection | GrpcEvent | GrpcRequest | HttpRequest | HttpResponse | KeyValue | Workspace | CookieJar | Settings | Plugin;
package/lib/gen/Model.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- export type Plugin = {
2
- id: string;
3
- model: "plugin";
4
- createdAt: string;
5
- updatedAt: string;
6
- checkedAt: string | null;
7
- directory: string;
8
- url: string | null;
9
- enabled: boolean;
10
- };
package/lib/gen/Plugin.js DELETED
@@ -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 PluginBootRequest = {
2
- dir: 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,5 +0,0 @@
1
- export type PluginBootResponse = {
2
- name: string;
3
- version: string;
4
- capabilities: Array<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 +0,0 @@
1
- export type PluginReloadRequest = {};
@@ -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 +0,0 @@
1
- export type PluginReloadResponse = {};
@@ -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 +0,0 @@
1
- export type ReloadRequest = {};
@@ -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 +0,0 @@
1
- export type ReloadResponse = {};
@@ -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,6 +0,0 @@
1
- import type { HttpRequest } from "./HttpRequest";
2
- import type { RenderPurpose } from "./RenderPurpose";
3
- export type RenderHttpRequestRequest = {
4
- httpRequest: HttpRequest;
5
- purpose: RenderPurpose;
6
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import type { HttpRequest } from "./HttpRequest";
2
- export type RenderHttpRequestResponse = {
3
- httpRequest: HttpRequest;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export type RenderPurpose = "send" | "preview";
@@ -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 { HttpRequest } from "./HttpRequest";
2
- export type SendHttpRequestRequest = {
3
- httpRequest: HttpRequest;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- import type { HttpResponse } from "./HttpResponse";
2
- export type SendHttpRequestResponse = {
3
- httpResponse: HttpResponse;
4
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- export type Settings = {
2
- id: string;
3
- model: "settings";
4
- createdAt: string;
5
- updatedAt: string;
6
- theme: string;
7
- appearance: string;
8
- themeDark: string;
9
- themeLight: string;
10
- updateChannel: string;
11
- interfaceFontSize: number;
12
- interfaceScale: number;
13
- editorFontSize: number;
14
- editorSoftWrap: boolean;
15
- telemetry: boolean;
16
- openWorkspaceNewWindow: boolean | null;
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,5 +0,0 @@
1
- import type { ToastVariant } from "./ToastVariant";
2
- export type ShowToastRequest = {
3
- message: string;
4
- variant: ToastVariant;
5
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });