@n8n/extension-sdk 0.6.0 → 0.8.0

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 (81) hide show
  1. package/dist/backend/define-BzkimlqR.d.ts +7 -0
  2. package/dist/backend/define-CF1KLowA.cjs +14 -0
  3. package/dist/backend/define-CF1KLowA.cjs.map +1 -0
  4. package/dist/backend/define-CIn4Njli.js +8 -0
  5. package/dist/backend/define-CIn4Njli.js.map +1 -0
  6. package/dist/backend/define-Ct6bwMfq.d.cts +7 -0
  7. package/dist/backend/define.cjs +2 -32
  8. package/dist/backend/define.d.cts +3 -5
  9. package/dist/backend/define.d.ts +3 -5
  10. package/dist/backend/define.js +3 -7
  11. package/dist/backend/index.cjs +2 -34
  12. package/dist/backend/index.d.cts +3 -2
  13. package/dist/backend/index.d.ts +3 -2
  14. package/dist/backend/index.js +3 -8
  15. package/dist/backend/types-BfwxaaeH.d.cts +11 -0
  16. package/dist/backend/types-DYTQLeZP.d.ts +11 -0
  17. package/dist/backend/types.cjs +0 -19
  18. package/dist/backend/types.d.cts +2 -9
  19. package/dist/backend/types.d.ts +2 -9
  20. package/dist/backend/types.js +1 -2
  21. package/dist/frontend/define-BtGzoAY8.d.ts +7 -0
  22. package/dist/frontend/define-CpvnL3-j.js +8 -0
  23. package/dist/frontend/define-CpvnL3-j.js.map +1 -0
  24. package/dist/frontend/define-DIbMcH8i.cjs +14 -0
  25. package/dist/frontend/define-DIbMcH8i.cjs.map +1 -0
  26. package/dist/frontend/define-ZL_u7zV_.d.cts +7 -0
  27. package/dist/frontend/define.cjs +2 -32
  28. package/dist/frontend/define.d.cts +3 -7
  29. package/dist/frontend/define.d.ts +3 -7
  30. package/dist/frontend/define.js +3 -7
  31. package/dist/frontend/index.cjs +2 -34
  32. package/dist/frontend/index.d.cts +3 -4
  33. package/dist/frontend/index.d.ts +3 -4
  34. package/dist/frontend/index.js +3 -8
  35. package/dist/frontend/types-BkLz6u8x.d.ts +16 -0
  36. package/dist/frontend/types-Cfug_5tl.d.cts +16 -0
  37. package/dist/frontend/types.cjs +0 -19
  38. package/dist/frontend/types.d.cts +2 -14
  39. package/dist/frontend/types.d.ts +2 -14
  40. package/dist/frontend/types.js +1 -2
  41. package/dist/index.cjs +2 -111
  42. package/dist/index.d.cts +2 -2
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +3 -7
  45. package/dist/schema-CW-nDERU.cjs +58 -0
  46. package/dist/schema-CW-nDERU.cjs.map +1 -0
  47. package/dist/schema-DthLbnxJ.d.cts +116 -0
  48. package/dist/schema-DzHGdlMR.js +29 -0
  49. package/dist/schema-DzHGdlMR.js.map +1 -0
  50. package/dist/schema-R-AfJNdo.d.ts +116 -0
  51. package/dist/schema.cjs +2 -109
  52. package/dist/schema.d.cts +2 -114
  53. package/dist/schema.d.ts +2 -114
  54. package/dist/schema.js +3 -7
  55. package/package.json +9 -8
  56. package/dist/backend/chunk-B7CLIGBD.js +0 -9
  57. package/dist/backend/chunk-B7CLIGBD.js.map +0 -1
  58. package/dist/backend/chunk-EHKZI4ZY.js +0 -1
  59. package/dist/backend/chunk-EHKZI4ZY.js.map +0 -1
  60. package/dist/backend/define.cjs.map +0 -1
  61. package/dist/backend/define.js.map +0 -1
  62. package/dist/backend/index.cjs.map +0 -1
  63. package/dist/backend/index.js.map +0 -1
  64. package/dist/backend/types.cjs.map +0 -1
  65. package/dist/backend/types.js.map +0 -1
  66. package/dist/chunk-4ERGEAXV.js +0 -86
  67. package/dist/chunk-4ERGEAXV.js.map +0 -1
  68. package/dist/frontend/chunk-HR6XC6O7.js +0 -1
  69. package/dist/frontend/chunk-HR6XC6O7.js.map +0 -1
  70. package/dist/frontend/chunk-LTKOPDVC.js +0 -9
  71. package/dist/frontend/chunk-LTKOPDVC.js.map +0 -1
  72. package/dist/frontend/define.cjs.map +0 -1
  73. package/dist/frontend/define.js.map +0 -1
  74. package/dist/frontend/index.cjs.map +0 -1
  75. package/dist/frontend/index.js.map +0 -1
  76. package/dist/frontend/types.cjs.map +0 -1
  77. package/dist/frontend/types.js.map +0 -1
  78. package/dist/index.cjs.map +0 -1
  79. package/dist/index.js.map +0 -1
  80. package/dist/schema.cjs.map +0 -1
  81. package/dist/schema.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,112 +1,3 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ const require_schema = require('./schema-CW-nDERU.cjs');
19
2
 
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- extensionManifestSchema: () => extensionManifestSchema
24
- });
25
- module.exports = __toCommonJS(index_exports);
26
-
27
- // src/schema.ts
28
- var import_zod = require("zod");
29
- var extensionManifestSchema = import_zod.z.object({
30
- /**
31
- * Name of the extension package.
32
- */
33
- name: import_zod.z.string(),
34
- /**
35
- * The display name of the extension.
36
- */
37
- displayName: import_zod.z.string(),
38
- /**
39
- * Description of the extension package.
40
- */
41
- description: import_zod.z.string(),
42
- /**
43
- * Publisher of the extension.
44
- */
45
- publisher: import_zod.z.string(),
46
- /**
47
- * Version of the extension package.
48
- */
49
- version: import_zod.z.string(),
50
- /**
51
- * Category the extension belongs to.
52
- */
53
- categories: import_zod.z.array(import_zod.z.string()),
54
- /**
55
- * Setup paths for backend and frontend code entry points.
56
- */
57
- entry: import_zod.z.object({
58
- /**
59
- * Path to the backend entry file.
60
- */
61
- backend: import_zod.z.string(),
62
- /**
63
- * Path to the frontend entry file.
64
- */
65
- frontend: import_zod.z.string()
66
- }),
67
- /**
68
- * Minimum SDK version required to run the extension.
69
- */
70
- minSDKVersion: import_zod.z.string(),
71
- /**
72
- * Permissions object specifying allowed access for frontend and backend.
73
- */
74
- permissions: import_zod.z.object({
75
- /**
76
- * List of frontend permissions (array of strings).
77
- */
78
- frontend: import_zod.z.array(import_zod.z.string()),
79
- /**
80
- * List of backend permissions (array of strings).
81
- */
82
- backend: import_zod.z.array(import_zod.z.string())
83
- }),
84
- /**
85
- * List of events that the extension listens to.
86
- */
87
- events: import_zod.z.array(import_zod.z.string()),
88
- /**
89
- * Define extension points for existing functionalities.
90
- */
91
- extends: import_zod.z.object({
92
- /**
93
- * Extends the views configuration.
94
- */
95
- views: import_zod.z.object({
96
- /**
97
- * Extends the workflows view configuration.
98
- */
99
- workflows: import_zod.z.object({
100
- /**
101
- * Header component for the workflows view.
102
- */
103
- header: import_zod.z.string()
104
- })
105
- })
106
- })
107
- });
108
- // Annotate the CommonJS export names for ESM import in node:
109
- 0 && (module.exports = {
110
- extensionManifestSchema
111
- });
112
- //# sourceMappingURL=index.cjs.map
3
+ exports.extensionManifestSchema = require_schema.extensionManifestSchema;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- export { ExtensionManifest, extensionManifestSchema } from './schema.cjs';
2
- import 'zod';
1
+ import { ExtensionManifest, extensionManifestSchema } from "./schema-DthLbnxJ.cjs";
2
+ export { ExtensionManifest, extensionManifestSchema };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { ExtensionManifest, extensionManifestSchema } from './schema.js';
2
- import 'zod';
1
+ import { ExtensionManifest, extensionManifestSchema } from "./schema-R-AfJNdo.js";
2
+ export { ExtensionManifest, extensionManifestSchema };
package/dist/index.js CHANGED
@@ -1,7 +1,3 @@
1
- import {
2
- extensionManifestSchema
3
- } from "./chunk-4ERGEAXV.js";
4
- export {
5
- extensionManifestSchema
6
- };
7
- //# sourceMappingURL=index.js.map
1
+ import { extensionManifestSchema } from "./schema-DzHGdlMR.js";
2
+
3
+ export { extensionManifestSchema };
@@ -0,0 +1,58 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+
23
+ //#endregion
24
+ let zod = require("zod");
25
+ zod = __toESM(zod);
26
+
27
+ //#region src/schema.ts
28
+ /**
29
+ * Schema for the extension configuration.
30
+ */
31
+ const extensionManifestSchema = zod.z.object({
32
+ name: zod.z.string(),
33
+ displayName: zod.z.string(),
34
+ description: zod.z.string(),
35
+ publisher: zod.z.string(),
36
+ version: zod.z.string(),
37
+ categories: zod.z.array(zod.z.string()),
38
+ entry: zod.z.object({
39
+ backend: zod.z.string(),
40
+ frontend: zod.z.string()
41
+ }),
42
+ minSDKVersion: zod.z.string(),
43
+ permissions: zod.z.object({
44
+ frontend: zod.z.array(zod.z.string()),
45
+ backend: zod.z.array(zod.z.string())
46
+ }),
47
+ events: zod.z.array(zod.z.string()),
48
+ extends: zod.z.object({ views: zod.z.object({ workflows: zod.z.object({ header: zod.z.string() }) }) })
49
+ });
50
+
51
+ //#endregion
52
+ Object.defineProperty(exports, 'extensionManifestSchema', {
53
+ enumerable: true,
54
+ get: function () {
55
+ return extensionManifestSchema;
56
+ }
57
+ });
58
+ //# sourceMappingURL=schema-CW-nDERU.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-CW-nDERU.cjs","names":["z"],"sources":["../src/schema.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Schema for the extension configuration.\n */\nexport const extensionManifestSchema = z.object({\n\t/**\n\t * Name of the extension package.\n\t */\n\tname: z.string(),\n\n\t/**\n\t * The display name of the extension.\n\t */\n\tdisplayName: z.string(),\n\n\t/**\n\t * Description of the extension package.\n\t */\n\tdescription: z.string(),\n\n\t/**\n\t * Publisher of the extension.\n\t */\n\tpublisher: z.string(),\n\n\t/**\n\t * Version of the extension package.\n\t */\n\tversion: z.string(),\n\n\t/**\n\t * Category the extension belongs to.\n\t */\n\tcategories: z.array(z.string()),\n\n\t/**\n\t * Setup paths for backend and frontend code entry points.\n\t */\n\tentry: z.object({\n\t\t/**\n\t\t * Path to the backend entry file.\n\t\t */\n\t\tbackend: z.string(),\n\t\t/**\n\t\t * Path to the frontend entry file.\n\t\t */\n\t\tfrontend: z.string(),\n\t}),\n\n\t/**\n\t * Minimum SDK version required to run the extension.\n\t */\n\tminSDKVersion: z.string(),\n\n\t/**\n\t * Permissions object specifying allowed access for frontend and backend.\n\t */\n\tpermissions: z.object({\n\t\t/**\n\t\t * List of frontend permissions (array of strings).\n\t\t */\n\t\tfrontend: z.array(z.string()),\n\t\t/**\n\t\t * List of backend permissions (array of strings).\n\t\t */\n\t\tbackend: z.array(z.string()),\n\t}),\n\n\t/**\n\t * List of events that the extension listens to.\n\t */\n\tevents: z.array(z.string()),\n\n\t/**\n\t * Define extension points for existing functionalities.\n\t */\n\textends: z.object({\n\t\t/**\n\t\t * Extends the views configuration.\n\t\t */\n\t\tviews: z.object({\n\t\t\t/**\n\t\t\t * Extends the workflows view configuration.\n\t\t\t */\n\t\t\tworkflows: z.object({\n\t\t\t\t/**\n\t\t\t\t * Header component for the workflows view.\n\t\t\t\t */\n\t\t\t\theader: z.string(),\n\t\t\t}),\n\t\t}),\n\t}),\n});\n\nexport type ExtensionManifest = z.infer<typeof extensionManifestSchema>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAa,0BAA0BA,MAAE,OAAO;CAI/C,MAAMA,MAAE,QAAQ;CAKhB,aAAaA,MAAE,QAAQ;CAKvB,aAAaA,MAAE,QAAQ;CAKvB,WAAWA,MAAE,QAAQ;CAKrB,SAASA,MAAE,QAAQ;CAKnB,YAAYA,MAAE,MAAMA,MAAE,QAAQ,CAAC;CAK/B,OAAOA,MAAE,OAAO;EAIf,SAASA,MAAE,QAAQ;EAInB,UAAUA,MAAE,QAAQ;EACpB,CAAC;CAKF,eAAeA,MAAE,QAAQ;CAKzB,aAAaA,MAAE,OAAO;EAIrB,UAAUA,MAAE,MAAMA,MAAE,QAAQ,CAAC;EAI7B,SAASA,MAAE,MAAMA,MAAE,QAAQ,CAAC;EAC5B,CAAC;CAKF,QAAQA,MAAE,MAAMA,MAAE,QAAQ,CAAC;CAK3B,SAASA,MAAE,OAAO,EAIjB,OAAOA,MAAE,OAAO,EAIf,WAAWA,MAAE,OAAO,EAInB,QAAQA,MAAE,QAAQ,EAClB,CAAC,EACF,CAAC,EACF,CAAC;CACF,CAAC"}
@@ -0,0 +1,116 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/schema.d.ts
4
+ declare const extensionManifestSchema: z.ZodObject<{
5
+ name: z.ZodString;
6
+ displayName: z.ZodString;
7
+ description: z.ZodString;
8
+ publisher: z.ZodString;
9
+ version: z.ZodString;
10
+ categories: z.ZodArray<z.ZodString, "many">;
11
+ entry: z.ZodObject<{
12
+ backend: z.ZodString;
13
+ frontend: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ backend: string;
16
+ frontend: string;
17
+ }, {
18
+ backend: string;
19
+ frontend: string;
20
+ }>;
21
+ minSDKVersion: z.ZodString;
22
+ permissions: z.ZodObject<{
23
+ frontend: z.ZodArray<z.ZodString, "many">;
24
+ backend: z.ZodArray<z.ZodString, "many">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ backend: string[];
27
+ frontend: string[];
28
+ }, {
29
+ backend: string[];
30
+ frontend: string[];
31
+ }>;
32
+ events: z.ZodArray<z.ZodString, "many">;
33
+ extends: z.ZodObject<{
34
+ views: z.ZodObject<{
35
+ workflows: z.ZodObject<{
36
+ header: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ header: string;
39
+ }, {
40
+ header: string;
41
+ }>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ workflows: {
44
+ header: string;
45
+ };
46
+ }, {
47
+ workflows: {
48
+ header: string;
49
+ };
50
+ }>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ views: {
53
+ workflows: {
54
+ header: string;
55
+ };
56
+ };
57
+ }, {
58
+ views: {
59
+ workflows: {
60
+ header: string;
61
+ };
62
+ };
63
+ }>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ name: string;
66
+ displayName: string;
67
+ description: string;
68
+ publisher: string;
69
+ version: string;
70
+ categories: string[];
71
+ entry: {
72
+ backend: string;
73
+ frontend: string;
74
+ };
75
+ minSDKVersion: string;
76
+ permissions: {
77
+ backend: string[];
78
+ frontend: string[];
79
+ };
80
+ events: string[];
81
+ extends: {
82
+ views: {
83
+ workflows: {
84
+ header: string;
85
+ };
86
+ };
87
+ };
88
+ }, {
89
+ name: string;
90
+ displayName: string;
91
+ description: string;
92
+ publisher: string;
93
+ version: string;
94
+ categories: string[];
95
+ entry: {
96
+ backend: string;
97
+ frontend: string;
98
+ };
99
+ minSDKVersion: string;
100
+ permissions: {
101
+ backend: string[];
102
+ frontend: string[];
103
+ };
104
+ events: string[];
105
+ extends: {
106
+ views: {
107
+ workflows: {
108
+ header: string;
109
+ };
110
+ };
111
+ };
112
+ }>;
113
+ type ExtensionManifest = z.infer<typeof extensionManifestSchema>;
114
+ //#endregion
115
+ export { ExtensionManifest, extensionManifestSchema };
116
+ //# sourceMappingURL=schema-DthLbnxJ.d.cts.map
@@ -0,0 +1,29 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/schema.ts
4
+ /**
5
+ * Schema for the extension configuration.
6
+ */
7
+ const extensionManifestSchema = z.object({
8
+ name: z.string(),
9
+ displayName: z.string(),
10
+ description: z.string(),
11
+ publisher: z.string(),
12
+ version: z.string(),
13
+ categories: z.array(z.string()),
14
+ entry: z.object({
15
+ backend: z.string(),
16
+ frontend: z.string()
17
+ }),
18
+ minSDKVersion: z.string(),
19
+ permissions: z.object({
20
+ frontend: z.array(z.string()),
21
+ backend: z.array(z.string())
22
+ }),
23
+ events: z.array(z.string()),
24
+ extends: z.object({ views: z.object({ workflows: z.object({ header: z.string() }) }) })
25
+ });
26
+
27
+ //#endregion
28
+ export { extensionManifestSchema };
29
+ //# sourceMappingURL=schema-DzHGdlMR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-DzHGdlMR.js","names":[],"sources":["../src/schema.ts"],"sourcesContent":["import { z } from 'zod';\n\n/**\n * Schema for the extension configuration.\n */\nexport const extensionManifestSchema = z.object({\n\t/**\n\t * Name of the extension package.\n\t */\n\tname: z.string(),\n\n\t/**\n\t * The display name of the extension.\n\t */\n\tdisplayName: z.string(),\n\n\t/**\n\t * Description of the extension package.\n\t */\n\tdescription: z.string(),\n\n\t/**\n\t * Publisher of the extension.\n\t */\n\tpublisher: z.string(),\n\n\t/**\n\t * Version of the extension package.\n\t */\n\tversion: z.string(),\n\n\t/**\n\t * Category the extension belongs to.\n\t */\n\tcategories: z.array(z.string()),\n\n\t/**\n\t * Setup paths for backend and frontend code entry points.\n\t */\n\tentry: z.object({\n\t\t/**\n\t\t * Path to the backend entry file.\n\t\t */\n\t\tbackend: z.string(),\n\t\t/**\n\t\t * Path to the frontend entry file.\n\t\t */\n\t\tfrontend: z.string(),\n\t}),\n\n\t/**\n\t * Minimum SDK version required to run the extension.\n\t */\n\tminSDKVersion: z.string(),\n\n\t/**\n\t * Permissions object specifying allowed access for frontend and backend.\n\t */\n\tpermissions: z.object({\n\t\t/**\n\t\t * List of frontend permissions (array of strings).\n\t\t */\n\t\tfrontend: z.array(z.string()),\n\t\t/**\n\t\t * List of backend permissions (array of strings).\n\t\t */\n\t\tbackend: z.array(z.string()),\n\t}),\n\n\t/**\n\t * List of events that the extension listens to.\n\t */\n\tevents: z.array(z.string()),\n\n\t/**\n\t * Define extension points for existing functionalities.\n\t */\n\textends: z.object({\n\t\t/**\n\t\t * Extends the views configuration.\n\t\t */\n\t\tviews: z.object({\n\t\t\t/**\n\t\t\t * Extends the workflows view configuration.\n\t\t\t */\n\t\t\tworkflows: z.object({\n\t\t\t\t/**\n\t\t\t\t * Header component for the workflows view.\n\t\t\t\t */\n\t\t\t\theader: z.string(),\n\t\t\t}),\n\t\t}),\n\t}),\n});\n\nexport type ExtensionManifest = z.infer<typeof extensionManifestSchema>;\n"],"mappings":";;;;;;AAKA,MAAa,0BAA0B,EAAE,OAAO;CAI/C,MAAM,EAAE,QAAQ;CAKhB,aAAa,EAAE,QAAQ;CAKvB,aAAa,EAAE,QAAQ;CAKvB,WAAW,EAAE,QAAQ;CAKrB,SAAS,EAAE,QAAQ;CAKnB,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC;CAK/B,OAAO,EAAE,OAAO;EAIf,SAAS,EAAE,QAAQ;EAInB,UAAU,EAAE,QAAQ;EACpB,CAAC;CAKF,eAAe,EAAE,QAAQ;CAKzB,aAAa,EAAE,OAAO;EAIrB,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC;EAI7B,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;EAC5B,CAAC;CAKF,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;CAK3B,SAAS,EAAE,OAAO,EAIjB,OAAO,EAAE,OAAO,EAIf,WAAW,EAAE,OAAO,EAInB,QAAQ,EAAE,QAAQ,EAClB,CAAC,EACF,CAAC,EACF,CAAC;CACF,CAAC"}
@@ -0,0 +1,116 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/schema.d.ts
4
+ declare const extensionManifestSchema: z.ZodObject<{
5
+ name: z.ZodString;
6
+ displayName: z.ZodString;
7
+ description: z.ZodString;
8
+ publisher: z.ZodString;
9
+ version: z.ZodString;
10
+ categories: z.ZodArray<z.ZodString, "many">;
11
+ entry: z.ZodObject<{
12
+ backend: z.ZodString;
13
+ frontend: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ backend: string;
16
+ frontend: string;
17
+ }, {
18
+ backend: string;
19
+ frontend: string;
20
+ }>;
21
+ minSDKVersion: z.ZodString;
22
+ permissions: z.ZodObject<{
23
+ frontend: z.ZodArray<z.ZodString, "many">;
24
+ backend: z.ZodArray<z.ZodString, "many">;
25
+ }, "strip", z.ZodTypeAny, {
26
+ backend: string[];
27
+ frontend: string[];
28
+ }, {
29
+ backend: string[];
30
+ frontend: string[];
31
+ }>;
32
+ events: z.ZodArray<z.ZodString, "many">;
33
+ extends: z.ZodObject<{
34
+ views: z.ZodObject<{
35
+ workflows: z.ZodObject<{
36
+ header: z.ZodString;
37
+ }, "strip", z.ZodTypeAny, {
38
+ header: string;
39
+ }, {
40
+ header: string;
41
+ }>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ workflows: {
44
+ header: string;
45
+ };
46
+ }, {
47
+ workflows: {
48
+ header: string;
49
+ };
50
+ }>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ views: {
53
+ workflows: {
54
+ header: string;
55
+ };
56
+ };
57
+ }, {
58
+ views: {
59
+ workflows: {
60
+ header: string;
61
+ };
62
+ };
63
+ }>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ name: string;
66
+ displayName: string;
67
+ description: string;
68
+ publisher: string;
69
+ version: string;
70
+ categories: string[];
71
+ entry: {
72
+ backend: string;
73
+ frontend: string;
74
+ };
75
+ minSDKVersion: string;
76
+ permissions: {
77
+ backend: string[];
78
+ frontend: string[];
79
+ };
80
+ events: string[];
81
+ extends: {
82
+ views: {
83
+ workflows: {
84
+ header: string;
85
+ };
86
+ };
87
+ };
88
+ }, {
89
+ name: string;
90
+ displayName: string;
91
+ description: string;
92
+ publisher: string;
93
+ version: string;
94
+ categories: string[];
95
+ entry: {
96
+ backend: string;
97
+ frontend: string;
98
+ };
99
+ minSDKVersion: string;
100
+ permissions: {
101
+ backend: string[];
102
+ frontend: string[];
103
+ };
104
+ events: string[];
105
+ extends: {
106
+ views: {
107
+ workflows: {
108
+ header: string;
109
+ };
110
+ };
111
+ };
112
+ }>;
113
+ type ExtensionManifest = z.infer<typeof extensionManifestSchema>;
114
+ //#endregion
115
+ export { ExtensionManifest, extensionManifestSchema };
116
+ //# sourceMappingURL=schema-R-AfJNdo.d.ts.map
package/dist/schema.cjs CHANGED
@@ -1,110 +1,3 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ const require_schema = require('./schema-CW-nDERU.cjs');
19
2
 
20
- // src/schema.ts
21
- var schema_exports = {};
22
- __export(schema_exports, {
23
- extensionManifestSchema: () => extensionManifestSchema
24
- });
25
- module.exports = __toCommonJS(schema_exports);
26
- var import_zod = require("zod");
27
- var extensionManifestSchema = import_zod.z.object({
28
- /**
29
- * Name of the extension package.
30
- */
31
- name: import_zod.z.string(),
32
- /**
33
- * The display name of the extension.
34
- */
35
- displayName: import_zod.z.string(),
36
- /**
37
- * Description of the extension package.
38
- */
39
- description: import_zod.z.string(),
40
- /**
41
- * Publisher of the extension.
42
- */
43
- publisher: import_zod.z.string(),
44
- /**
45
- * Version of the extension package.
46
- */
47
- version: import_zod.z.string(),
48
- /**
49
- * Category the extension belongs to.
50
- */
51
- categories: import_zod.z.array(import_zod.z.string()),
52
- /**
53
- * Setup paths for backend and frontend code entry points.
54
- */
55
- entry: import_zod.z.object({
56
- /**
57
- * Path to the backend entry file.
58
- */
59
- backend: import_zod.z.string(),
60
- /**
61
- * Path to the frontend entry file.
62
- */
63
- frontend: import_zod.z.string()
64
- }),
65
- /**
66
- * Minimum SDK version required to run the extension.
67
- */
68
- minSDKVersion: import_zod.z.string(),
69
- /**
70
- * Permissions object specifying allowed access for frontend and backend.
71
- */
72
- permissions: import_zod.z.object({
73
- /**
74
- * List of frontend permissions (array of strings).
75
- */
76
- frontend: import_zod.z.array(import_zod.z.string()),
77
- /**
78
- * List of backend permissions (array of strings).
79
- */
80
- backend: import_zod.z.array(import_zod.z.string())
81
- }),
82
- /**
83
- * List of events that the extension listens to.
84
- */
85
- events: import_zod.z.array(import_zod.z.string()),
86
- /**
87
- * Define extension points for existing functionalities.
88
- */
89
- extends: import_zod.z.object({
90
- /**
91
- * Extends the views configuration.
92
- */
93
- views: import_zod.z.object({
94
- /**
95
- * Extends the workflows view configuration.
96
- */
97
- workflows: import_zod.z.object({
98
- /**
99
- * Header component for the workflows view.
100
- */
101
- header: import_zod.z.string()
102
- })
103
- })
104
- })
105
- });
106
- // Annotate the CommonJS export names for ESM import in node:
107
- 0 && (module.exports = {
108
- extensionManifestSchema
109
- });
110
- //# sourceMappingURL=schema.cjs.map
3
+ exports.extensionManifestSchema = require_schema.extensionManifestSchema;
package/dist/schema.d.cts CHANGED
@@ -1,114 +1,2 @@
1
- import { z } from 'zod';
2
-
3
- declare const extensionManifestSchema: z.ZodObject<{
4
- name: z.ZodString;
5
- displayName: z.ZodString;
6
- description: z.ZodString;
7
- publisher: z.ZodString;
8
- version: z.ZodString;
9
- categories: z.ZodArray<z.ZodString, "many">;
10
- entry: z.ZodObject<{
11
- backend: z.ZodString;
12
- frontend: z.ZodString;
13
- }, "strip", z.ZodTypeAny, {
14
- backend: string;
15
- frontend: string;
16
- }, {
17
- backend: string;
18
- frontend: string;
19
- }>;
20
- minSDKVersion: z.ZodString;
21
- permissions: z.ZodObject<{
22
- frontend: z.ZodArray<z.ZodString, "many">;
23
- backend: z.ZodArray<z.ZodString, "many">;
24
- }, "strip", z.ZodTypeAny, {
25
- backend: string[];
26
- frontend: string[];
27
- }, {
28
- backend: string[];
29
- frontend: string[];
30
- }>;
31
- events: z.ZodArray<z.ZodString, "many">;
32
- extends: z.ZodObject<{
33
- views: z.ZodObject<{
34
- workflows: z.ZodObject<{
35
- header: z.ZodString;
36
- }, "strip", z.ZodTypeAny, {
37
- header: string;
38
- }, {
39
- header: string;
40
- }>;
41
- }, "strip", z.ZodTypeAny, {
42
- workflows: {
43
- header: string;
44
- };
45
- }, {
46
- workflows: {
47
- header: string;
48
- };
49
- }>;
50
- }, "strip", z.ZodTypeAny, {
51
- views: {
52
- workflows: {
53
- header: string;
54
- };
55
- };
56
- }, {
57
- views: {
58
- workflows: {
59
- header: string;
60
- };
61
- };
62
- }>;
63
- }, "strip", z.ZodTypeAny, {
64
- name: string;
65
- displayName: string;
66
- description: string;
67
- publisher: string;
68
- version: string;
69
- categories: string[];
70
- entry: {
71
- backend: string;
72
- frontend: string;
73
- };
74
- minSDKVersion: string;
75
- permissions: {
76
- backend: string[];
77
- frontend: string[];
78
- };
79
- events: string[];
80
- extends: {
81
- views: {
82
- workflows: {
83
- header: string;
84
- };
85
- };
86
- };
87
- }, {
88
- name: string;
89
- displayName: string;
90
- description: string;
91
- publisher: string;
92
- version: string;
93
- categories: string[];
94
- entry: {
95
- backend: string;
96
- frontend: string;
97
- };
98
- minSDKVersion: string;
99
- permissions: {
100
- backend: string[];
101
- frontend: string[];
102
- };
103
- events: string[];
104
- extends: {
105
- views: {
106
- workflows: {
107
- header: string;
108
- };
109
- };
110
- };
111
- }>;
112
- type ExtensionManifest = z.infer<typeof extensionManifestSchema>;
113
-
114
- export { type ExtensionManifest, extensionManifestSchema };
1
+ import { ExtensionManifest, extensionManifestSchema } from "./schema-DthLbnxJ.cjs";
2
+ export { ExtensionManifest, extensionManifestSchema };