@motiadev/plugin-endpoint 0.13.0-beta.162-850424 → 0.13.0-beta.162-717198

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 (85) hide show
  1. package/LICENSE +93 -21
  2. package/dist/api/endpoints-stream.d.ts +22 -0
  3. package/dist/api/endpoints-stream.d.ts.map +1 -0
  4. package/dist/api/index.d.ts +3 -0
  5. package/dist/api/index.d.ts.map +1 -0
  6. package/dist/components/configuration-list-item.d.ts +12 -0
  7. package/dist/components/configuration-list-item.d.ts.map +1 -0
  8. package/dist/components/endpoint-badge.d.ts +8 -0
  9. package/dist/components/endpoint-badge.d.ts.map +1 -0
  10. package/dist/components/endpoint-item.d.ts +11 -0
  11. package/dist/components/endpoint-item.d.ts.map +1 -0
  12. package/dist/components/endpoint-path-preview.d.ts +8 -0
  13. package/dist/components/endpoint-path-preview.d.ts.map +1 -0
  14. package/dist/components/endpoint-path.d.ts +8 -0
  15. package/dist/components/endpoint-path.d.ts.map +1 -0
  16. package/dist/components/endpoint-tab-label.d.ts +2 -0
  17. package/dist/components/endpoint-tab-label.d.ts.map +1 -0
  18. package/dist/components/endpoints-search.d.ts +8 -0
  19. package/dist/components/endpoints-search.d.ts.map +1 -0
  20. package/dist/components/flow-group.d.ts +15 -0
  21. package/dist/components/flow-group.d.ts.map +1 -0
  22. package/dist/components/json-editor.d.ts +12 -0
  23. package/dist/components/json-editor.d.ts.map +1 -0
  24. package/dist/endpoints-page.d.ts +2 -0
  25. package/dist/endpoints-page.d.ts.map +1 -0
  26. package/dist/hooks/__tests__/utils.test.d.ts +2 -0
  27. package/dist/hooks/__tests__/utils.test.d.ts.map +1 -0
  28. package/dist/hooks/use-endpoint-configuration.d.ts +78 -0
  29. package/dist/hooks/use-endpoint-configuration.d.ts.map +1 -0
  30. package/dist/hooks/use-get-endpoints.d.ts +6 -0
  31. package/dist/hooks/use-get-endpoints.d.ts.map +1 -0
  32. package/dist/hooks/use-json-schema-to-json.d.ts +5 -0
  33. package/dist/hooks/use-json-schema-to-json.d.ts.map +1 -0
  34. package/dist/hooks/use-path-params.d.ts +2 -0
  35. package/dist/hooks/use-path-params.d.ts.map +1 -0
  36. package/dist/hooks/use-path-url.d.ts +2 -0
  37. package/dist/hooks/use-path-url.d.ts.map +1 -0
  38. package/dist/hooks/use-state-stream.d.ts +8 -0
  39. package/dist/hooks/use-state-stream.d.ts.map +1 -0
  40. package/dist/hooks/utils.d.ts +8 -0
  41. package/dist/hooks/utils.d.ts.map +1 -0
  42. package/dist/index.cjs +132 -0
  43. package/dist/index.d.ts +1 -6
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +25688 -1417
  46. package/dist/play/reponse-code/utils.d.ts +2 -0
  47. package/dist/play/reponse-code/utils.d.ts.map +1 -0
  48. package/dist/play/response-code.d.ts +7 -0
  49. package/dist/play/response-code.d.ts.map +1 -0
  50. package/dist/play/response-content.d.ts +9 -0
  51. package/dist/play/response-content.d.ts.map +1 -0
  52. package/dist/play/side-panel-body-tab.d.ts +7 -0
  53. package/dist/play/side-panel-body-tab.d.ts.map +1 -0
  54. package/dist/play/side-panel-headers-tab.d.ts +2 -0
  55. package/dist/play/side-panel-headers-tab.d.ts.map +1 -0
  56. package/dist/play/side-panel-params-tab.d.ts +6 -0
  57. package/dist/play/side-panel-params-tab.d.ts.map +1 -0
  58. package/dist/play/side-panel-response.d.ts +2 -0
  59. package/dist/play/side-panel-response.d.ts.map +1 -0
  60. package/dist/play/side-panel.d.ts +9 -0
  61. package/dist/play/side-panel.d.ts.map +1 -0
  62. package/dist/play/trigger-button.d.ts +7 -0
  63. package/dist/play/trigger-button.d.ts.map +1 -0
  64. package/dist/plugin-endpoint.css +1 -0
  65. package/dist/plugin.cjs +1 -0
  66. package/dist/plugin.d.ts +2 -8
  67. package/dist/plugin.d.ts.map +1 -1
  68. package/dist/plugin.js +66 -84
  69. package/dist/spec/spec-body-panel.d.ts +10 -0
  70. package/dist/spec/spec-body-panel.d.ts.map +1 -0
  71. package/dist/spec/spec-path-params-panel.d.ts +8 -0
  72. package/dist/spec/spec-path-params-panel.d.ts.map +1 -0
  73. package/dist/spec/spec-query-params-panel.d.ts +8 -0
  74. package/dist/spec/spec-query-params-panel.d.ts.map +1 -0
  75. package/dist/spec/spec-response-schema.d.ts +11 -0
  76. package/dist/spec/spec-response-schema.d.ts.map +1 -0
  77. package/dist/spec/spec-side-panel.d.ts +9 -0
  78. package/dist/spec/spec-side-panel.d.ts.map +1 -0
  79. package/dist/types/endpoint.d.ts +16 -0
  80. package/dist/types/endpoint.d.ts.map +1 -0
  81. package/package.json +33 -22
  82. package/dist/index.css +0 -1139
  83. package/dist/index.css.map +0 -1
  84. package/dist/index.js.map +0 -1
  85. package/dist/plugin.js.map +0 -1
package/LICENSE CHANGED
@@ -1,21 +1,93 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Motia
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Elastic License 2.0
2
+
3
+ URL: https://www.elastic.co/licensing/elastic-license
4
+
5
+ ## Acceptance
6
+
7
+ By using the software, you agree to all of the terms and conditions below.
8
+
9
+ ## Copyright License
10
+
11
+ The licensor grants you a non-exclusive, royalty-free, worldwide,
12
+ non-sublicensable, non-transferable license to use, copy, distribute, make
13
+ available, and prepare derivative works of the software, in each case subject
14
+ to the limitations and conditions below.
15
+
16
+ ## Limitations
17
+
18
+ You may not provide the software to third parties as a hosted or managed
19
+ service, where the service provides users with access to any substantial set of
20
+ the features or functionality of the software.
21
+
22
+ You may not move, change, disable, or circumvent the license key functionality
23
+ in the software, and you may not remove or obscure any functionality in the
24
+ software that is protected by the license key.
25
+
26
+ You may not alter, remove, or obscure any licensing, copyright, or other notices
27
+ of the licensor in the software. Any use of the licensor's trademarks is subject
28
+ to applicable law.
29
+
30
+ ## Patents
31
+
32
+ The licensor grants you a license, under any patent claims the licensor can
33
+ license, or becomes able to license, to make, have made, use, sell, offer for
34
+ sale, import and have imported the software, in each case subject to the
35
+ limitations and conditions in this license. This license does not cover any
36
+ patent claims that you cause to be infringed by modifications or additions to
37
+ the software. If you or your company make any written claim that the software
38
+ infringes or contributes to infringement of any patent, your patent license for
39
+ the software granted under these terms ends immediately. If your company makes
40
+ such a claim, your patent license ends immediately for work on behalf of your
41
+ company.
42
+
43
+ ## Notices
44
+
45
+ You must ensure that anyone who gets a copy of any part of the software from you
46
+ also gets a copy of these terms.
47
+
48
+ If you modify the software, you must include in any modified copies of the
49
+ software prominent notices stating that you have modified the software.
50
+
51
+ ## No Other Rights
52
+
53
+ These terms do not imply any licenses other than those expressly granted in
54
+ these terms.
55
+
56
+ ## Termination
57
+
58
+ If you use the software in violation of these terms, such use is not licensed,
59
+ and your licenses will automatically terminate. If the licensor provides you
60
+ with a notice of your violation, and you cease all violation of this license no
61
+ later than 30 days after you receive that notice, your licenses will be
62
+ reinstated retroactively. However, if you violate these terms after such
63
+ reinstatement, any additional violation of these terms will cause your licenses
64
+ to terminate automatically and permanently.
65
+
66
+ ## No Liability
67
+
68
+ *As far as the law allows, the software comes as is, without any warranty or
69
+ condition, and the licensor will not be liable to you for any damages arising
70
+ out of these terms or the use or nature of the software, under any kind of
71
+ legal claim.*
72
+
73
+ ## Definitions
74
+
75
+ The **licensor** is the entity offering these terms, and the **software** is the
76
+ software the licensor makes available under these terms, including any portion
77
+ of it.
78
+
79
+ **you** refers to the individual or entity agreeing to these terms.
80
+
81
+ **your company** is any legal entity, sole proprietorship, or other kind of
82
+ organization that you work for, plus all organizations that have control over,
83
+ are under the control of, or are under common control with that organization.
84
+ **control** means ownership of substantially all the assets of an entity, or the
85
+ power to direct its management and policies by vote, contract, or otherwise.
86
+ Control can be direct or indirect.
87
+
88
+ **your licenses** are all the licenses granted to you for the software under
89
+ these terms.
90
+
91
+ **use** means anything you do with the software requiring one of your licenses.
92
+
93
+ **trademark** means trademarks, service marks, and similar rights.
@@ -0,0 +1,22 @@
1
+ import { ApiRouteConfig, ApiRouteMethod, JsonSchema, LockedData, QueryParam, Step, StreamAdapter } from '@motiadev/core';
2
+ type ApiEndpoint = {
3
+ id: string;
4
+ method: ApiRouteMethod;
5
+ path: string;
6
+ description?: string;
7
+ queryParams?: QueryParam[];
8
+ responseSchema?: JsonSchema;
9
+ bodySchema?: JsonSchema;
10
+ flows?: string[];
11
+ };
12
+ export declare const mapEndpoint: (step: Step<ApiRouteConfig>) => ApiEndpoint;
13
+ export declare class EndpointsStream extends StreamAdapter<ApiEndpoint> {
14
+ private readonly lockedData;
15
+ constructor(lockedData: LockedData);
16
+ get(_groupId: string, id: string): Promise<ApiEndpoint | null>;
17
+ delete(id: string): Promise<ApiEndpoint>;
18
+ set(_: string, __: string, data: ApiEndpoint): Promise<ApiEndpoint>;
19
+ getGroup(): Promise<ApiEndpoint[]>;
20
+ }
21
+ export {};
22
+ //# sourceMappingURL=endpoints-stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints-stream.d.ts","sourceRoot":"","sources":["../../src/api/endpoints-stream.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,IAAI,EACT,aAAa,EACd,MAAM,gBAAgB,CAAA;AAEvB,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,cAAc,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,cAAc,CAAC,EAAE,UAAU,CAAA;IAC3B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,MAAM,IAAI,CAAC,cAAc,CAAC,KAAG,WAWxD,CAAA;AAED,qBAAa,eAAgB,SAAQ,aAAa,CAAC,WAAW,CAAC;IACjD,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAI7C,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAK9D,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAInE,QAAQ,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAGzC"}
@@ -0,0 +1,3 @@
1
+ import { MotiaPlugin, MotiaPluginContext } from '@motiadev/core';
2
+ export declare function plugin({ lockedData }: MotiaPluginContext): MotiaPlugin;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAa,MAAM,gBAAgB,CAAA;AAGhG,wBAAgB,MAAM,CAAC,EAAE,UAAU,EAAE,EAAE,kBAAkB,GAAG,WAAW,CAmDtE"}
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { ConfigurationLitItem } from '../hooks/use-endpoint-configuration';
3
+ interface ConfigurationListItemProps {
4
+ value: ConfigurationLitItem;
5
+ id: string;
6
+ onUpdate: (key: string, field: 'name' | 'value' | 'active', value: string | boolean) => void;
7
+ onRemove?: (key: string) => void;
8
+ required?: boolean;
9
+ }
10
+ export declare const ConfigurationListItem: FC<ConfigurationListItemProps>;
11
+ export {};
12
+ //# sourceMappingURL=configuration-list-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration-list-item.d.ts","sourceRoot":"","sources":["../../src/components/configuration-list-item.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAuC,MAAM,OAAO,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAE/E,UAAU,0BAA0B;IAClC,KAAK,EAAE,oBAAoB,CAAA;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAA;IAC5F,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAmFhE,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { ApiRouteMethod } from '../types/endpoint';
2
+ import type * as React from 'react';
3
+ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ variant: ApiRouteMethod;
5
+ }
6
+ export declare const EndpointBadge: React.MemoExoticComponent<({ className, variant, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element>;
7
+ export {};
8
+ //# sourceMappingURL=endpoint-badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint-badge.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAuBvD,UAAU,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC/D,OAAO,EAAE,cAAc,CAAA;CACxB;AAED,eAAO,MAAM,aAAa,+DAA2C,UAAU,6CAK7E,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ import { ApiEndpoint } from '../types/endpoint';
3
+ type EndpointItemProps = {
4
+ endpoint: ApiEndpoint;
5
+ isSelected: boolean;
6
+ isLast: boolean;
7
+ onSelect: (id: string) => void;
8
+ };
9
+ export declare const EndpointItem: FC<EndpointItemProps>;
10
+ export {};
11
+ //# sourceMappingURL=endpoint-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint-item.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-item.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,WAAW,CAAA;IACrB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAgC9C,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ interface EndpointPathPreviewProps {
3
+ path: string;
4
+ baseUrl?: string;
5
+ }
6
+ export declare const EndpointPathPreview: FC<EndpointPathPreviewProps>;
7
+ export {};
8
+ //# sourceMappingURL=endpoint-path-preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint-path-preview.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-path-preview.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAA;AAGzC,UAAU,wBAAwB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAyC5D,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ interface EndpointPathProps {
3
+ method: string;
4
+ path: string;
5
+ }
6
+ export declare const EndpointPath: FC<EndpointPathProps>;
7
+ export {};
8
+ //# sourceMappingURL=endpoint-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint-path.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-path.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAA;AAIxC,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAMD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAiC9C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const EndpointTabLabel: import('react').MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ //# sourceMappingURL=endpoint-tab-label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint-tab-label.d.ts","sourceRoot":"","sources":["../../src/components/endpoint-tab-label.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,oFAK3B,CAAA"}
@@ -0,0 +1,8 @@
1
+ type EndpointsSearchProps = {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ onClear: () => void;
5
+ };
6
+ export declare const EndpointsSearch: ({ value, onChange, onClear }: EndpointsSearchProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=endpoints-search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints-search.d.ts","sourceRoot":"","sources":["../../src/components/endpoints-search.tsx"],"names":[],"mappings":"AAIA,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,8BAA8B,oBAAoB,4CAyBjF,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ import { ApiEndpoint } from '../types/endpoint';
3
+ type FlowGroupProps = {
4
+ flow: string;
5
+ endpoints: ApiEndpoint[];
6
+ isOpen: boolean;
7
+ isSelected: boolean;
8
+ onToggle: (flow: string) => void;
9
+ onClearSelection: () => void;
10
+ selectedEndpointId?: string;
11
+ onSelectEndpoint: (id: string) => void;
12
+ };
13
+ export declare const FlowGroup: FC<FlowGroupProps>;
14
+ export {};
15
+ //# sourceMappingURL=flow-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-group.d.ts","sourceRoot":"","sources":["../../src/components/flow-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,WAAW,EAAE,CAAA;IACxB,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAyDxC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ type JsonEditorProps = {
3
+ value: string;
4
+ schema?: Record<string, unknown>;
5
+ onChange?: (value: string) => void;
6
+ onValidate?: (isValid: boolean) => void;
7
+ language?: 'json' | string;
8
+ readOnly?: boolean;
9
+ };
10
+ export declare const JsonEditor: FC<JsonEditorProps>;
11
+ export {};
12
+ //# sourceMappingURL=json-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-editor.d.ts","sourceRoot":"","sources":["../../src/components/json-editor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAyD,MAAM,OAAO,CAAA;AAEtF,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAoK1C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const EndpointsPage: () => import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=endpoints-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoints-page.d.ts","sourceRoot":"","sources":["../src/endpoints-page.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,+CAwDzB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../src/hooks/__tests__/utils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,78 @@
1
+ export type ConfigurationLitItem = {
2
+ name: string;
3
+ value: string;
4
+ active: boolean;
5
+ };
6
+ export type Headers = {
7
+ [key: string]: ConfigurationLitItem;
8
+ };
9
+ export type Params = {
10
+ [key: string]: ConfigurationLitItem;
11
+ };
12
+ export type ResponseData = {
13
+ headers: Record<string, string>;
14
+ body: Record<string, any>;
15
+ statusCode: number;
16
+ executionTime: number;
17
+ };
18
+ type Actions = {
19
+ setResponse: (response: Response | undefined, startTime?: number) => void;
20
+ setHeaders: (headers: Headers) => void;
21
+ removeHeaders: (key: string) => void;
22
+ setBody: (body: string) => void;
23
+ setSelectedEndpointId: (selectedEndpointId: string | undefined) => void;
24
+ setQueryParams: (params: Params) => void;
25
+ removeQueryParams: (key: string) => void;
26
+ setPathParams: (pathParams: Params) => void;
27
+ removePathParams: (key: string) => void;
28
+ setBodyIsValid: (bodyIsValid: boolean) => void;
29
+ toggleFlowGroupStatus: (flow: string) => void;
30
+ };
31
+ type State = {
32
+ selectedEndpointId: string;
33
+ headers: Record<string, Headers>;
34
+ body: Record<string, string>;
35
+ bodyIsValid: Record<string, boolean>;
36
+ response: Record<string, ResponseData | undefined>;
37
+ queryParams: Record<string, Params>;
38
+ pathParams: Record<string, Params>;
39
+ flowGroupStatus: Record<string, boolean>;
40
+ };
41
+ export type UseEndpointConfiguration = State & Actions;
42
+ export declare const getHeadersSelector: (state: UseEndpointConfiguration) => Headers;
43
+ export declare const getBodyIsValidSelector: (state: UseEndpointConfiguration) => boolean;
44
+ export declare const getBodySelector: (state: UseEndpointConfiguration) => string;
45
+ export declare const getResponseSelector: (state: UseEndpointConfiguration) => ResponseData | undefined;
46
+ export declare const getQueryParamsSelector: (state: UseEndpointConfiguration) => Params;
47
+ export declare const getPathParamsSelector: (state: UseEndpointConfiguration) => Params;
48
+ export declare const useEndpointConfiguration: import('zustand').UseBoundStore<Omit<Omit<import('zustand').StoreApi<UseEndpointConfiguration>, "setState" | "persist"> & {
49
+ setState(partial: UseEndpointConfiguration | Partial<UseEndpointConfiguration> | ((state: UseEndpointConfiguration) => UseEndpointConfiguration | Partial<UseEndpointConfiguration>), replace?: false | undefined): unknown;
50
+ setState(state: UseEndpointConfiguration | ((state: UseEndpointConfiguration) => UseEndpointConfiguration), replace: true): unknown;
51
+ persist: {
52
+ setOptions: (options: Partial<import('zustand/middleware').PersistOptions<UseEndpointConfiguration, unknown, unknown>>) => void;
53
+ clearStorage: () => void;
54
+ rehydrate: () => Promise<void> | void;
55
+ hasHydrated: () => boolean;
56
+ onHydrate: (fn: (state: UseEndpointConfiguration) => void) => () => void;
57
+ onFinishHydration: (fn: (state: UseEndpointConfiguration) => void) => () => void;
58
+ getOptions: () => Partial<import('zustand/middleware').PersistOptions<UseEndpointConfiguration, unknown, unknown>>;
59
+ };
60
+ }, "setState" | "devtools"> & {
61
+ setState(partial: UseEndpointConfiguration | Partial<UseEndpointConfiguration> | ((state: UseEndpointConfiguration) => UseEndpointConfiguration | Partial<UseEndpointConfiguration>), replace?: false | undefined, action?: (string | {
62
+ [x: string]: unknown;
63
+ [x: number]: unknown;
64
+ [x: symbol]: unknown;
65
+ type: string;
66
+ }) | undefined): unknown;
67
+ setState(state: UseEndpointConfiguration | ((state: UseEndpointConfiguration) => UseEndpointConfiguration), replace: true, action?: (string | {
68
+ [x: string]: unknown;
69
+ [x: number]: unknown;
70
+ [x: symbol]: unknown;
71
+ type: string;
72
+ }) | undefined): unknown;
73
+ devtools: {
74
+ cleanup: () => void;
75
+ };
76
+ }>;
77
+ export {};
78
+ //# sourceMappingURL=use-endpoint-configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-endpoint-configuration.d.ts","sourceRoot":"","sources":["../../src/hooks/use-endpoint-configuration.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;CACpC,CAAA;AAED,MAAM,MAAM,MAAM,GAAG;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;CACpC,CAAA;AAQD,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,KAAK,OAAO,GAAG;IACb,WAAW,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACzE,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACtC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,qBAAqB,EAAE,CAAC,kBAAkB,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAA;IACvE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,cAAc,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,qBAAqB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC9C,CAAA;AAED,KAAK,KAAK,GAAG;IACX,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC,CAAA;IAClD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACnC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,OAAO,CAAA;AAEtD,eAAO,MAAM,kBAAkB,GAAI,OAAO,wBAAwB,YAMjE,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,wBAAwB,YAMrE,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,wBAAwB,WAM9D,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,OAAO,wBAAwB,6BAMlE,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,OAAO,wBAAwB,WAMrE,CAAA;AAED,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB,WAMpE,CAAA;AAED,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsGpC,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { ApiEndpoint } from '../types/endpoint';
2
+ export declare const useGetEndpoints: () => {
3
+ endpoints: ApiEndpoint[];
4
+ groupedEndpoints: Record<string, ApiEndpoint[]>;
5
+ };
6
+ //# sourceMappingURL=use-get-endpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-get-endpoints.d.ts","sourceRoot":"","sources":["../../src/hooks/use-get-endpoints.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,eAAO,MAAM,eAAe;;;CAyB3B,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const useJsonSchemaToJson: (schema: Record<string, any> | undefined) => {
2
+ body: string;
3
+ setBody: import('react').Dispatch<import('react').SetStateAction<string>>;
4
+ };
5
+ //# sourceMappingURL=use-json-schema-to-json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-json-schema-to-json.d.ts","sourceRoot":"","sources":["../../src/hooks/use-json-schema-to-json.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS;;;CAU1E,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const usePathParams: (path: string) => string[];
2
+ //# sourceMappingURL=use-path-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-path-params.d.ts","sourceRoot":"","sources":["../../src/hooks/use-path-params.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,aAGzC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const usePathUrl: (path: string) => string;
2
+ //# sourceMappingURL=use-path-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-path-url.d.ts","sourceRoot":"","sources":["../../src/hooks/use-path-url.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,WAYtC,CAAA"}
@@ -0,0 +1,8 @@
1
+ export declare const useStateStream: (object: Record<string, any> | undefined) => {
2
+ data: string;
3
+ originalData: any[] | {
4
+ [x: string]: any;
5
+ };
6
+ isStreamed: boolean;
7
+ };
8
+ //# sourceMappingURL=use-state-stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-state-stream.d.ts","sourceRoot":"","sources":["../../src/hooks/use-state-stream.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS;;;;;;CAkBrE,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Converts a schema to a JSON object with default values
3
+ * Supports both TypeScript step schemas (inline definitions) and Python step schemas ($defs/$ref)
4
+ * @param schema - The schema to convert
5
+ * @param rootSchema - Optional root schema containing $defs for $ref resolution. Defaults to schema if not provided.
6
+ */
7
+ export declare const convertSchemaToJson: (schema?: Record<string, any>, rootSchema?: Record<string, any>) => any;
8
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/hooks/utils.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,aAAa,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,GAiDpG,CAAA"}