@octonodes/sdk 0.1.14 → 0.2.1
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.
- package/PLUGINS.md +40 -0
- package/dist/gen/types.gen.d.ts +10 -0
- package/dist/gen/types.gen.d.ts.map +1 -1
- package/dist/plugins/schema/constants.d.ts +4 -0
- package/dist/plugins/schema/constants.d.ts.map +1 -1
- package/dist/plugins/schema/constants.js +5 -1
- package/dist/plugins/schema/constants.js.map +1 -1
- package/dist/plugins/schema/plugin/execution.d.ts +14 -0
- package/dist/plugins/schema/plugin/execution.d.ts.map +1 -1
- package/dist/plugins/schema/plugin-publishing.d.ts +396 -0
- package/dist/plugins/schema/plugin-publishing.d.ts.map +1 -0
- package/dist/plugins/schema/plugin-publishing.js +57 -0
- package/dist/plugins/schema/plugin-publishing.js.map +1 -0
- package/dist/plugins/schema/plugin-sdk/index.d.ts +3 -1
- package/dist/plugins/schema/plugin-sdk/index.d.ts.map +1 -1
- package/dist/plugins/schema/plugin-sdk/index.js +7 -1
- package/dist/plugins/schema/plugin-sdk/index.js.map +1 -1
- package/dist/plugins/schema/plugin-version.d.ts +8 -0
- package/dist/plugins/schema/plugin-version.d.ts.map +1 -0
- package/dist/plugins/schema/plugin-version.js +61 -0
- package/dist/plugins/schema/plugin-version.js.map +1 -0
- package/dist/plugins/schema/plugin.d.ts +10 -0
- package/dist/plugins/schema/plugin.d.ts.map +1 -1
- package/dist/plugins/schema/plugin.js +6 -0
- package/dist/plugins/schema/plugin.js.map +1 -1
- package/dist/plugins/sdk/plugins/index.d.ts +2 -0
- package/dist/plugins/sdk/plugins/index.d.ts.map +1 -1
- package/dist/plugins/sdk/plugins/index.js +10 -1
- package/dist/plugins/sdk/plugins/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/plugins/schema/constants.ts"],"names":[],"mappings":";;;AAAA,2FAA2F;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AAU;IACV,OAAO;IACP,KAAK;IACL,OAAO;IACP,SAAS;CACD,CAAC;AAEE,QAAA,qBAAqB,GAAG;IACnC,oBAAoB;IACpB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,oBAAoB;IACpB,SAAS;IACT,eAAe;IACf,gBAAgB;IAChB,cAAc;IACd,qBAAqB;IACrB,sBAAsB;IACtB,qBAAqB;IACrB,sBAAsB;IACtB,2BAA2B;IAC3B,mCAAmC;IACnC,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,iBAAiB;IACjB,gBAAgB;IAChB,aAAa;IACb,YAAY;IACZ,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,gBAAgB;IAChB,qBAAqB;IACrB,sBAAsB;IACtB,oBAAoB;CACZ,CAAC;AAEE,QAAA,gBAAgB,GAAG,CAAC,eAAe,EAAE,wBAAwB,EAAE,QAAQ,CAAU,CAAC;AAElF,QAAA,8BAA8B,GAAG;IAC5C,iBAAiB;IACjB,8BAA8B;IAC9B,yBAAyB;IACzB,yBAAyB;IACzB,oBAAoB;IACpB,qBAAqB;IACrB,oBAAoB;CACZ,CAAC;AAEE,QAAA,oBAAoB,GAAG,CAAC,sBAAsB,EAAE,qBAAqB,EAAE,sBAAsB,CAAU,CAAC;AACxG,QAAA,uBAAuB,GAAG,+BAA+B,CAAC;AAC1D,QAAA,uBAAuB,GAAG,MAAM,CAAC;AACjC,QAAA,wBAAwB,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -194,6 +194,8 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
194
194
|
}>>;
|
|
195
195
|
icon: z.ZodOptional<z.ZodEnum<["arrow-up-down", "binary", "bomb", "boxes", "braces", "calculator", "calendar", "camera", "clock", "code", "copy-x", "database", "dices", "filter", "flag", "flask", "function", "git-branch", "git-merge", "group", "hook", "list-filter", "merge", "octagon-x", "package", "package-x", "pencil", "play", "regex", "repeat", "replace", "ruler", "scan-eye", "scissors", "search", "server-cog", "settings", "sigma", "split", "terminal", "test-tube", "text-cursor-input", "ticket", "truck", "type", "typescript", "ungroup", "variable", "wand", "wave", "webhook", "workflow", "x"]>>;
|
|
196
196
|
author: z.ZodOptional<z.ZodString>;
|
|
197
|
+
contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
198
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
197
199
|
homepage: z.ZodOptional<z.ZodString>;
|
|
198
200
|
license: z.ZodOptional<z.ZodString>;
|
|
199
201
|
scope: z.ZodDefault<z.ZodArray<z.ZodEnum<["user", "group", "org", "public"]>, "many">>;
|
|
@@ -530,6 +532,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
530
532
|
resource: "project_data" | "secrets" | "network";
|
|
531
533
|
access: "read" | "write" | "outbound";
|
|
532
534
|
}[];
|
|
535
|
+
repository?: string | undefined;
|
|
533
536
|
source?: {
|
|
534
537
|
kind: "plugin";
|
|
535
538
|
} | {
|
|
@@ -571,6 +574,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
571
574
|
exports: string[];
|
|
572
575
|
} | undefined;
|
|
573
576
|
author?: string | undefined;
|
|
577
|
+
contributors?: string[] | undefined;
|
|
574
578
|
homepage?: string | undefined;
|
|
575
579
|
license?: string | undefined;
|
|
576
580
|
}, {
|
|
@@ -618,6 +622,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
618
622
|
export: string;
|
|
619
623
|
} | undefined;
|
|
620
624
|
}[] | undefined;
|
|
625
|
+
repository?: string | undefined;
|
|
621
626
|
source?: {
|
|
622
627
|
kind: "plugin";
|
|
623
628
|
} | {
|
|
@@ -661,6 +666,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
661
666
|
exports: string[];
|
|
662
667
|
} | undefined;
|
|
663
668
|
author?: string | undefined;
|
|
669
|
+
contributors?: string[] | undefined;
|
|
664
670
|
homepage?: string | undefined;
|
|
665
671
|
license?: string | undefined;
|
|
666
672
|
permissions?: {
|
|
@@ -718,6 +724,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
718
724
|
resource: "project_data" | "secrets" | "network";
|
|
719
725
|
access: "read" | "write" | "outbound";
|
|
720
726
|
}[];
|
|
727
|
+
repository?: string | undefined;
|
|
721
728
|
source?: {
|
|
722
729
|
kind: "plugin";
|
|
723
730
|
} | {
|
|
@@ -759,6 +766,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
759
766
|
exports: string[];
|
|
760
767
|
} | undefined;
|
|
761
768
|
author?: string | undefined;
|
|
769
|
+
contributors?: string[] | undefined;
|
|
762
770
|
homepage?: string | undefined;
|
|
763
771
|
license?: string | undefined;
|
|
764
772
|
}, {
|
|
@@ -806,6 +814,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
806
814
|
export: string;
|
|
807
815
|
} | undefined;
|
|
808
816
|
}[] | undefined;
|
|
817
|
+
repository?: string | undefined;
|
|
809
818
|
source?: {
|
|
810
819
|
kind: "plugin";
|
|
811
820
|
} | {
|
|
@@ -849,6 +858,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
849
858
|
exports: string[];
|
|
850
859
|
} | undefined;
|
|
851
860
|
author?: string | undefined;
|
|
861
|
+
contributors?: string[] | undefined;
|
|
852
862
|
homepage?: string | undefined;
|
|
853
863
|
license?: string | undefined;
|
|
854
864
|
permissions?: {
|
|
@@ -909,6 +919,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
909
919
|
resource: "project_data" | "secrets" | "network";
|
|
910
920
|
access: "read" | "write" | "outbound";
|
|
911
921
|
}[];
|
|
922
|
+
repository?: string | undefined;
|
|
912
923
|
source?: {
|
|
913
924
|
kind: "plugin";
|
|
914
925
|
} | {
|
|
@@ -950,6 +961,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
950
961
|
exports: string[];
|
|
951
962
|
} | undefined;
|
|
952
963
|
author?: string | undefined;
|
|
964
|
+
contributors?: string[] | undefined;
|
|
953
965
|
homepage?: string | undefined;
|
|
954
966
|
license?: string | undefined;
|
|
955
967
|
};
|
|
@@ -1000,6 +1012,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
1000
1012
|
export: string;
|
|
1001
1013
|
} | undefined;
|
|
1002
1014
|
}[] | undefined;
|
|
1015
|
+
repository?: string | undefined;
|
|
1003
1016
|
source?: {
|
|
1004
1017
|
kind: "plugin";
|
|
1005
1018
|
} | {
|
|
@@ -1043,6 +1056,7 @@ export declare const AuthorizedPluginRelease: z.ZodObject<{
|
|
|
1043
1056
|
exports: string[];
|
|
1044
1057
|
} | undefined;
|
|
1045
1058
|
author?: string | undefined;
|
|
1059
|
+
contributors?: string[] | undefined;
|
|
1046
1060
|
homepage?: string | undefined;
|
|
1047
1061
|
license?: string | undefined;
|
|
1048
1062
|
permissions?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin/execution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EASvB,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAM1B,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEhF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAexB,CAAC;AACZ,MA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGlC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PluginConfigPath: z.ZodEffects<z.ZodString, string, string>;
|
|
3
|
+
export declare const PluginReleaseConfig: z.ZodEffects<z.ZodObject<{
|
|
4
|
+
apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
version: z.ZodString;
|
|
7
|
+
scope: z.ZodEnum<["user", "team", "organization", "public"]>;
|
|
8
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11
|
+
workflow: z.ZodDefault<z.ZodString>;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
workflow: string;
|
|
14
|
+
id: string;
|
|
15
|
+
scope: "user" | "public" | "team" | "organization";
|
|
16
|
+
apiVersion: "octonode.plugin/v1";
|
|
17
|
+
version: string;
|
|
18
|
+
contributors?: string[] | undefined;
|
|
19
|
+
teamId?: string | undefined;
|
|
20
|
+
orgId?: string | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
id: string;
|
|
23
|
+
scope: "user" | "public" | "team" | "organization";
|
|
24
|
+
apiVersion: "octonode.plugin/v1";
|
|
25
|
+
version: string;
|
|
26
|
+
workflow?: string | undefined;
|
|
27
|
+
contributors?: string[] | undefined;
|
|
28
|
+
teamId?: string | undefined;
|
|
29
|
+
orgId?: string | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
workflow: string;
|
|
32
|
+
id: string;
|
|
33
|
+
scope: "user" | "public" | "team" | "organization";
|
|
34
|
+
apiVersion: "octonode.plugin/v1";
|
|
35
|
+
version: string;
|
|
36
|
+
contributors?: string[] | undefined;
|
|
37
|
+
teamId?: string | undefined;
|
|
38
|
+
orgId?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
id: string;
|
|
41
|
+
scope: "user" | "public" | "team" | "organization";
|
|
42
|
+
apiVersion: "octonode.plugin/v1";
|
|
43
|
+
version: string;
|
|
44
|
+
workflow?: string | undefined;
|
|
45
|
+
contributors?: string[] | undefined;
|
|
46
|
+
teamId?: string | undefined;
|
|
47
|
+
orgId?: string | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export type PluginReleaseConfig = z.infer<typeof PluginReleaseConfig>;
|
|
50
|
+
export declare const pluginReleaseScope: (config: PluginReleaseConfig) => "user" | "group" | "org" | "public";
|
|
51
|
+
export declare const PluginPublisherInput: z.ZodObject<{
|
|
52
|
+
repositoryId: z.ZodNumber;
|
|
53
|
+
configPath: z.ZodEffects<z.ZodString, string, string>;
|
|
54
|
+
}, "strict", z.ZodTypeAny, {
|
|
55
|
+
repositoryId: number;
|
|
56
|
+
configPath: string;
|
|
57
|
+
}, {
|
|
58
|
+
repositoryId: number;
|
|
59
|
+
configPath: string;
|
|
60
|
+
}>;
|
|
61
|
+
export declare const PluginPublisherConsent: z.ZodObject<{
|
|
62
|
+
repositoryId: z.ZodNumber;
|
|
63
|
+
configPath: z.ZodEffects<z.ZodString, string, string>;
|
|
64
|
+
} & {
|
|
65
|
+
sha256: z.ZodString;
|
|
66
|
+
}, "strict", z.ZodTypeAny, {
|
|
67
|
+
sha256: string;
|
|
68
|
+
repositoryId: number;
|
|
69
|
+
configPath: string;
|
|
70
|
+
}, {
|
|
71
|
+
sha256: string;
|
|
72
|
+
repositoryId: number;
|
|
73
|
+
configPath: string;
|
|
74
|
+
}>;
|
|
75
|
+
export declare const PluginPublisherPreview: z.ZodObject<{
|
|
76
|
+
config: z.ZodEffects<z.ZodObject<{
|
|
77
|
+
apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
version: z.ZodString;
|
|
80
|
+
scope: z.ZodEnum<["user", "team", "organization", "public"]>;
|
|
81
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
82
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
+
workflow: z.ZodDefault<z.ZodString>;
|
|
85
|
+
}, "strict", z.ZodTypeAny, {
|
|
86
|
+
workflow: string;
|
|
87
|
+
id: string;
|
|
88
|
+
scope: "user" | "public" | "team" | "organization";
|
|
89
|
+
apiVersion: "octonode.plugin/v1";
|
|
90
|
+
version: string;
|
|
91
|
+
contributors?: string[] | undefined;
|
|
92
|
+
teamId?: string | undefined;
|
|
93
|
+
orgId?: string | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
id: string;
|
|
96
|
+
scope: "user" | "public" | "team" | "organization";
|
|
97
|
+
apiVersion: "octonode.plugin/v1";
|
|
98
|
+
version: string;
|
|
99
|
+
workflow?: string | undefined;
|
|
100
|
+
contributors?: string[] | undefined;
|
|
101
|
+
teamId?: string | undefined;
|
|
102
|
+
orgId?: string | undefined;
|
|
103
|
+
}>, {
|
|
104
|
+
workflow: string;
|
|
105
|
+
id: string;
|
|
106
|
+
scope: "user" | "public" | "team" | "organization";
|
|
107
|
+
apiVersion: "octonode.plugin/v1";
|
|
108
|
+
version: string;
|
|
109
|
+
contributors?: string[] | undefined;
|
|
110
|
+
teamId?: string | undefined;
|
|
111
|
+
orgId?: string | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
id: string;
|
|
114
|
+
scope: "user" | "public" | "team" | "organization";
|
|
115
|
+
apiVersion: "octonode.plugin/v1";
|
|
116
|
+
version: string;
|
|
117
|
+
workflow?: string | undefined;
|
|
118
|
+
contributors?: string[] | undefined;
|
|
119
|
+
teamId?: string | undefined;
|
|
120
|
+
orgId?: string | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
sha256: z.ZodString;
|
|
123
|
+
repository: z.ZodString;
|
|
124
|
+
branch: z.ZodString;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
repository: string;
|
|
127
|
+
config: {
|
|
128
|
+
workflow: string;
|
|
129
|
+
id: string;
|
|
130
|
+
scope: "user" | "public" | "team" | "organization";
|
|
131
|
+
apiVersion: "octonode.plugin/v1";
|
|
132
|
+
version: string;
|
|
133
|
+
contributors?: string[] | undefined;
|
|
134
|
+
teamId?: string | undefined;
|
|
135
|
+
orgId?: string | undefined;
|
|
136
|
+
};
|
|
137
|
+
sha256: string;
|
|
138
|
+
branch: string;
|
|
139
|
+
}, {
|
|
140
|
+
repository: string;
|
|
141
|
+
config: {
|
|
142
|
+
id: string;
|
|
143
|
+
scope: "user" | "public" | "team" | "organization";
|
|
144
|
+
apiVersion: "octonode.plugin/v1";
|
|
145
|
+
version: string;
|
|
146
|
+
workflow?: string | undefined;
|
|
147
|
+
contributors?: string[] | undefined;
|
|
148
|
+
teamId?: string | undefined;
|
|
149
|
+
orgId?: string | undefined;
|
|
150
|
+
};
|
|
151
|
+
sha256: string;
|
|
152
|
+
branch: string;
|
|
153
|
+
}>;
|
|
154
|
+
export declare const PluginPublisherConnection: z.ZodObject<{
|
|
155
|
+
config: z.ZodEffects<z.ZodObject<{
|
|
156
|
+
apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
|
|
157
|
+
id: z.ZodString;
|
|
158
|
+
version: z.ZodString;
|
|
159
|
+
scope: z.ZodEnum<["user", "team", "organization", "public"]>;
|
|
160
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
161
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
162
|
+
contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
163
|
+
workflow: z.ZodDefault<z.ZodString>;
|
|
164
|
+
}, "strict", z.ZodTypeAny, {
|
|
165
|
+
workflow: string;
|
|
166
|
+
id: string;
|
|
167
|
+
scope: "user" | "public" | "team" | "organization";
|
|
168
|
+
apiVersion: "octonode.plugin/v1";
|
|
169
|
+
version: string;
|
|
170
|
+
contributors?: string[] | undefined;
|
|
171
|
+
teamId?: string | undefined;
|
|
172
|
+
orgId?: string | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
id: string;
|
|
175
|
+
scope: "user" | "public" | "team" | "organization";
|
|
176
|
+
apiVersion: "octonode.plugin/v1";
|
|
177
|
+
version: string;
|
|
178
|
+
workflow?: string | undefined;
|
|
179
|
+
contributors?: string[] | undefined;
|
|
180
|
+
teamId?: string | undefined;
|
|
181
|
+
orgId?: string | undefined;
|
|
182
|
+
}>, {
|
|
183
|
+
workflow: string;
|
|
184
|
+
id: string;
|
|
185
|
+
scope: "user" | "public" | "team" | "organization";
|
|
186
|
+
apiVersion: "octonode.plugin/v1";
|
|
187
|
+
version: string;
|
|
188
|
+
contributors?: string[] | undefined;
|
|
189
|
+
teamId?: string | undefined;
|
|
190
|
+
orgId?: string | undefined;
|
|
191
|
+
}, {
|
|
192
|
+
id: string;
|
|
193
|
+
scope: "user" | "public" | "team" | "organization";
|
|
194
|
+
apiVersion: "octonode.plugin/v1";
|
|
195
|
+
version: string;
|
|
196
|
+
workflow?: string | undefined;
|
|
197
|
+
contributors?: string[] | undefined;
|
|
198
|
+
teamId?: string | undefined;
|
|
199
|
+
orgId?: string | undefined;
|
|
200
|
+
}>;
|
|
201
|
+
sha256: z.ZodString;
|
|
202
|
+
repository: z.ZodString;
|
|
203
|
+
branch: z.ZodString;
|
|
204
|
+
} & {
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
repositoryId: z.ZodNumber;
|
|
207
|
+
configPath: z.ZodEffects<z.ZodString, string, string>;
|
|
208
|
+
lastVersion: z.ZodNullable<z.ZodString>;
|
|
209
|
+
lastSha: z.ZodNullable<z.ZodString>;
|
|
210
|
+
lastPublishedAt: z.ZodNullable<z.ZodNumber>;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
repository: string;
|
|
213
|
+
config: {
|
|
214
|
+
workflow: string;
|
|
215
|
+
id: string;
|
|
216
|
+
scope: "user" | "public" | "team" | "organization";
|
|
217
|
+
apiVersion: "octonode.plugin/v1";
|
|
218
|
+
version: string;
|
|
219
|
+
contributors?: string[] | undefined;
|
|
220
|
+
teamId?: string | undefined;
|
|
221
|
+
orgId?: string | undefined;
|
|
222
|
+
};
|
|
223
|
+
id: string;
|
|
224
|
+
sha256: string;
|
|
225
|
+
repositoryId: number;
|
|
226
|
+
configPath: string;
|
|
227
|
+
branch: string;
|
|
228
|
+
lastVersion: string | null;
|
|
229
|
+
lastSha: string | null;
|
|
230
|
+
lastPublishedAt: number | null;
|
|
231
|
+
}, {
|
|
232
|
+
repository: string;
|
|
233
|
+
config: {
|
|
234
|
+
id: string;
|
|
235
|
+
scope: "user" | "public" | "team" | "organization";
|
|
236
|
+
apiVersion: "octonode.plugin/v1";
|
|
237
|
+
version: string;
|
|
238
|
+
workflow?: string | undefined;
|
|
239
|
+
contributors?: string[] | undefined;
|
|
240
|
+
teamId?: string | undefined;
|
|
241
|
+
orgId?: string | undefined;
|
|
242
|
+
};
|
|
243
|
+
id: string;
|
|
244
|
+
sha256: string;
|
|
245
|
+
repositoryId: number;
|
|
246
|
+
configPath: string;
|
|
247
|
+
branch: string;
|
|
248
|
+
lastVersion: string | null;
|
|
249
|
+
lastSha: string | null;
|
|
250
|
+
lastPublishedAt: number | null;
|
|
251
|
+
}>;
|
|
252
|
+
export declare const PluginPublisherConnections: z.ZodObject<{
|
|
253
|
+
items: z.ZodArray<z.ZodObject<{
|
|
254
|
+
config: z.ZodEffects<z.ZodObject<{
|
|
255
|
+
apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
|
|
256
|
+
id: z.ZodString;
|
|
257
|
+
version: z.ZodString;
|
|
258
|
+
scope: z.ZodEnum<["user", "team", "organization", "public"]>;
|
|
259
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
260
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
261
|
+
contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
262
|
+
workflow: z.ZodDefault<z.ZodString>;
|
|
263
|
+
}, "strict", z.ZodTypeAny, {
|
|
264
|
+
workflow: string;
|
|
265
|
+
id: string;
|
|
266
|
+
scope: "user" | "public" | "team" | "organization";
|
|
267
|
+
apiVersion: "octonode.plugin/v1";
|
|
268
|
+
version: string;
|
|
269
|
+
contributors?: string[] | undefined;
|
|
270
|
+
teamId?: string | undefined;
|
|
271
|
+
orgId?: string | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
id: string;
|
|
274
|
+
scope: "user" | "public" | "team" | "organization";
|
|
275
|
+
apiVersion: "octonode.plugin/v1";
|
|
276
|
+
version: string;
|
|
277
|
+
workflow?: string | undefined;
|
|
278
|
+
contributors?: string[] | undefined;
|
|
279
|
+
teamId?: string | undefined;
|
|
280
|
+
orgId?: string | undefined;
|
|
281
|
+
}>, {
|
|
282
|
+
workflow: string;
|
|
283
|
+
id: string;
|
|
284
|
+
scope: "user" | "public" | "team" | "organization";
|
|
285
|
+
apiVersion: "octonode.plugin/v1";
|
|
286
|
+
version: string;
|
|
287
|
+
contributors?: string[] | undefined;
|
|
288
|
+
teamId?: string | undefined;
|
|
289
|
+
orgId?: string | undefined;
|
|
290
|
+
}, {
|
|
291
|
+
id: string;
|
|
292
|
+
scope: "user" | "public" | "team" | "organization";
|
|
293
|
+
apiVersion: "octonode.plugin/v1";
|
|
294
|
+
version: string;
|
|
295
|
+
workflow?: string | undefined;
|
|
296
|
+
contributors?: string[] | undefined;
|
|
297
|
+
teamId?: string | undefined;
|
|
298
|
+
orgId?: string | undefined;
|
|
299
|
+
}>;
|
|
300
|
+
sha256: z.ZodString;
|
|
301
|
+
repository: z.ZodString;
|
|
302
|
+
branch: z.ZodString;
|
|
303
|
+
} & {
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
repositoryId: z.ZodNumber;
|
|
306
|
+
configPath: z.ZodEffects<z.ZodString, string, string>;
|
|
307
|
+
lastVersion: z.ZodNullable<z.ZodString>;
|
|
308
|
+
lastSha: z.ZodNullable<z.ZodString>;
|
|
309
|
+
lastPublishedAt: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
repository: string;
|
|
312
|
+
config: {
|
|
313
|
+
workflow: string;
|
|
314
|
+
id: string;
|
|
315
|
+
scope: "user" | "public" | "team" | "organization";
|
|
316
|
+
apiVersion: "octonode.plugin/v1";
|
|
317
|
+
version: string;
|
|
318
|
+
contributors?: string[] | undefined;
|
|
319
|
+
teamId?: string | undefined;
|
|
320
|
+
orgId?: string | undefined;
|
|
321
|
+
};
|
|
322
|
+
id: string;
|
|
323
|
+
sha256: string;
|
|
324
|
+
repositoryId: number;
|
|
325
|
+
configPath: string;
|
|
326
|
+
branch: string;
|
|
327
|
+
lastVersion: string | null;
|
|
328
|
+
lastSha: string | null;
|
|
329
|
+
lastPublishedAt: number | null;
|
|
330
|
+
}, {
|
|
331
|
+
repository: string;
|
|
332
|
+
config: {
|
|
333
|
+
id: string;
|
|
334
|
+
scope: "user" | "public" | "team" | "organization";
|
|
335
|
+
apiVersion: "octonode.plugin/v1";
|
|
336
|
+
version: string;
|
|
337
|
+
workflow?: string | undefined;
|
|
338
|
+
contributors?: string[] | undefined;
|
|
339
|
+
teamId?: string | undefined;
|
|
340
|
+
orgId?: string | undefined;
|
|
341
|
+
};
|
|
342
|
+
id: string;
|
|
343
|
+
sha256: string;
|
|
344
|
+
repositoryId: number;
|
|
345
|
+
configPath: string;
|
|
346
|
+
branch: string;
|
|
347
|
+
lastVersion: string | null;
|
|
348
|
+
lastSha: string | null;
|
|
349
|
+
lastPublishedAt: number | null;
|
|
350
|
+
}>, "many">;
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
items: {
|
|
353
|
+
repository: string;
|
|
354
|
+
config: {
|
|
355
|
+
workflow: string;
|
|
356
|
+
id: string;
|
|
357
|
+
scope: "user" | "public" | "team" | "organization";
|
|
358
|
+
apiVersion: "octonode.plugin/v1";
|
|
359
|
+
version: string;
|
|
360
|
+
contributors?: string[] | undefined;
|
|
361
|
+
teamId?: string | undefined;
|
|
362
|
+
orgId?: string | undefined;
|
|
363
|
+
};
|
|
364
|
+
id: string;
|
|
365
|
+
sha256: string;
|
|
366
|
+
repositoryId: number;
|
|
367
|
+
configPath: string;
|
|
368
|
+
branch: string;
|
|
369
|
+
lastVersion: string | null;
|
|
370
|
+
lastSha: string | null;
|
|
371
|
+
lastPublishedAt: number | null;
|
|
372
|
+
}[];
|
|
373
|
+
}, {
|
|
374
|
+
items: {
|
|
375
|
+
repository: string;
|
|
376
|
+
config: {
|
|
377
|
+
id: string;
|
|
378
|
+
scope: "user" | "public" | "team" | "organization";
|
|
379
|
+
apiVersion: "octonode.plugin/v1";
|
|
380
|
+
version: string;
|
|
381
|
+
workflow?: string | undefined;
|
|
382
|
+
contributors?: string[] | undefined;
|
|
383
|
+
teamId?: string | undefined;
|
|
384
|
+
orgId?: string | undefined;
|
|
385
|
+
};
|
|
386
|
+
id: string;
|
|
387
|
+
sha256: string;
|
|
388
|
+
repositoryId: number;
|
|
389
|
+
configPath: string;
|
|
390
|
+
branch: string;
|
|
391
|
+
lastVersion: string | null;
|
|
392
|
+
lastSha: string | null;
|
|
393
|
+
lastPublishedAt: number | null;
|
|
394
|
+
}[];
|
|
395
|
+
}>;
|
|
396
|
+
//# sourceMappingURL=plugin-publishing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-publishing.d.ts","sourceRoot":"","sources":["../../../src/plugins/schema/plugin-publishing.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB,2CAQ1B,CAAC;AACJ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuB5B,CAAC;AACL,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,eAAO,MAAM,kBAAkB,GAAI,QAAQ,mBAAmB,wCACoD,CAAC;AAEnH,eAAO,MAAM,oBAAoB;;;;;;;;;EAEtB,CAAC;AACZ,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;EAA8E,CAAC;AAClH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKjC,CAAC;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOpC,CAAC;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA0D,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PluginPublisherConnections = exports.PluginPublisherConnection = exports.PluginPublisherPreview = exports.PluginPublisherConsent = exports.PluginPublisherInput = exports.pluginReleaseScope = exports.PluginReleaseConfig = exports.PluginConfigPath = void 0;
|
|
4
|
+
// Generated from packages/schema/src/plugin-publishing.ts. Do not edit; run the Octonode SDK sync.
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const plugin_version_1 = require("./plugin-version");
|
|
7
|
+
exports.PluginConfigPath = zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.max(512)
|
|
10
|
+
.refine((path) => /^(?:[a-zA-Z0-9_.-]+\/)*plugin\.octonode\.(json|ya?ml)$/.test(path) &&
|
|
11
|
+
!path.split("/").some((part) => [".", "..", ".git", "node_modules"].includes(part)), "Select a repository-relative plugin.octonode.json or .yml file");
|
|
12
|
+
exports.PluginReleaseConfig = zod_1.z
|
|
13
|
+
.object({
|
|
14
|
+
apiVersion: zod_1.z.literal("octonode.plugin/v1"),
|
|
15
|
+
id: zod_1.z
|
|
16
|
+
.string()
|
|
17
|
+
.max(128)
|
|
18
|
+
.regex(/^[a-z0-9][a-z0-9-]*$/),
|
|
19
|
+
version: plugin_version_1.PluginVersion,
|
|
20
|
+
scope: zod_1.z.enum(["user", "team", "organization", "public"]),
|
|
21
|
+
teamId: zod_1.z.string().min(1).max(128).optional(),
|
|
22
|
+
orgId: zod_1.z.string().min(1).max(128).optional(),
|
|
23
|
+
contributors: zod_1.z.array(zod_1.z.string().trim().min(1).max(240)).max(100).optional(),
|
|
24
|
+
workflow: zod_1.z
|
|
25
|
+
.string()
|
|
26
|
+
.regex(/^\.github\/workflows\/[a-zA-Z0-9_-]+\.ya?ml$/)
|
|
27
|
+
.default(".github/workflows/octonode-publish.yml"),
|
|
28
|
+
})
|
|
29
|
+
.strict()
|
|
30
|
+
.superRefine((config, ctx) => {
|
|
31
|
+
if ((config.scope === "team") !== Boolean(config.teamId))
|
|
32
|
+
ctx.addIssue({ code: "custom", path: ["teamId"], message: "teamId is required only for team scope" });
|
|
33
|
+
if ((config.scope === "organization") !== Boolean(config.orgId))
|
|
34
|
+
ctx.addIssue({ code: "custom", path: ["orgId"], message: "orgId is required only for organization scope" });
|
|
35
|
+
});
|
|
36
|
+
const pluginReleaseScope = (config) => config.scope === "team" ? "group" : config.scope === "organization" ? "org" : config.scope;
|
|
37
|
+
exports.pluginReleaseScope = pluginReleaseScope;
|
|
38
|
+
exports.PluginPublisherInput = zod_1.z
|
|
39
|
+
.object({ repositoryId: zod_1.z.number().int().positive(), configPath: exports.PluginConfigPath })
|
|
40
|
+
.strict();
|
|
41
|
+
exports.PluginPublisherConsent = exports.PluginPublisherInput.extend({ sha256: zod_1.z.string().regex(/^[a-f0-9]{64}$/) });
|
|
42
|
+
exports.PluginPublisherPreview = zod_1.z.object({
|
|
43
|
+
config: exports.PluginReleaseConfig,
|
|
44
|
+
sha256: zod_1.z.string(),
|
|
45
|
+
repository: zod_1.z.string(),
|
|
46
|
+
branch: zod_1.z.string(),
|
|
47
|
+
});
|
|
48
|
+
exports.PluginPublisherConnection = exports.PluginPublisherPreview.extend({
|
|
49
|
+
id: zod_1.z.string().uuid(),
|
|
50
|
+
repositoryId: zod_1.z.number(),
|
|
51
|
+
configPath: exports.PluginConfigPath,
|
|
52
|
+
lastVersion: zod_1.z.string().nullable(),
|
|
53
|
+
lastSha: zod_1.z.string().nullable(),
|
|
54
|
+
lastPublishedAt: zod_1.z.number().nullable(),
|
|
55
|
+
});
|
|
56
|
+
exports.PluginPublisherConnections = zod_1.z.object({ items: zod_1.z.array(exports.PluginPublisherConnection) });
|
|
57
|
+
//# sourceMappingURL=plugin-publishing.js.map
|
|
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AAsB,GAAG,4BAAoB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;AACrG,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,2BAAmB;IAC3B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AACU,QAAA,yBAAyB,GAAG,8BAAsB,CAAC,MAAM,CAAC;IACrE,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,wBAAgB;IAC5B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AACU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -2,5 +2,7 @@ export * from "../plugin";
|
|
|
2
2
|
export * from "../ipc-envelope";
|
|
3
3
|
export * from "../icons";
|
|
4
4
|
export { PreparedPluginRuntime } from "../plugin/execution";
|
|
5
|
-
export { SETTINGS_API_VERSION, PLUGIN_SCHEMA_VERSION } from "../constants";
|
|
5
|
+
export { SETTINGS_API_VERSION, PLUGIN_SCHEMA_VERSION, PLUGIN_RELEASE_FILES, PLUGIN_PUBLISH_AUDIENCE, PLUGIN_CONFIG_MAX_BYTES, PLUGIN_PUBLISH_MAX_BYTES, } from "../constants";
|
|
6
|
+
export * from "../plugin-publishing";
|
|
7
|
+
export * from "../plugin-version";
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.PLUGIN_SCHEMA_VERSION = exports.SETTINGS_API_VERSION = exports.PreparedPluginRuntime = void 0;
|
|
17
|
+
exports.PLUGIN_PUBLISH_MAX_BYTES = exports.PLUGIN_CONFIG_MAX_BYTES = exports.PLUGIN_PUBLISH_AUDIENCE = exports.PLUGIN_RELEASE_FILES = exports.PLUGIN_SCHEMA_VERSION = exports.SETTINGS_API_VERSION = exports.PreparedPluginRuntime = void 0;
|
|
18
18
|
// Generated from packages/schema/src/plugin-sdk/index.ts. Do not edit; run the Octonode SDK sync.
|
|
19
19
|
__exportStar(require("../plugin"), exports);
|
|
20
20
|
__exportStar(require("../ipc-envelope"), exports);
|
|
@@ -24,4 +24,10 @@ Object.defineProperty(exports, "PreparedPluginRuntime", { enumerable: true, get:
|
|
|
24
24
|
var constants_1 = require("../constants");
|
|
25
25
|
Object.defineProperty(exports, "SETTINGS_API_VERSION", { enumerable: true, get: function () { return constants_1.SETTINGS_API_VERSION; } });
|
|
26
26
|
Object.defineProperty(exports, "PLUGIN_SCHEMA_VERSION", { enumerable: true, get: function () { return constants_1.PLUGIN_SCHEMA_VERSION; } });
|
|
27
|
+
Object.defineProperty(exports, "PLUGIN_RELEASE_FILES", { enumerable: true, get: function () { return constants_1.PLUGIN_RELEASE_FILES; } });
|
|
28
|
+
Object.defineProperty(exports, "PLUGIN_PUBLISH_AUDIENCE", { enumerable: true, get: function () { return constants_1.PLUGIN_PUBLISH_AUDIENCE; } });
|
|
29
|
+
Object.defineProperty(exports, "PLUGIN_CONFIG_MAX_BYTES", { enumerable: true, get: function () { return constants_1.PLUGIN_CONFIG_MAX_BYTES; } });
|
|
30
|
+
Object.defineProperty(exports, "PLUGIN_PUBLISH_MAX_BYTES", { enumerable: true, get: function () { return constants_1.PLUGIN_PUBLISH_MAX_BYTES; } });
|
|
31
|
+
__exportStar(require("../plugin-publishing"), exports);
|
|
32
|
+
__exportStar(require("../plugin-version"), exports);
|
|
27
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kGAAkG;AAClG,4CAA0B;AAC1B,kDAAgC;AAChC,2CAAyB;AACzB,iDAA4D;AAAnD,kHAAA,qBAAqB,OAAA;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kGAAkG;AAClG,4CAA0B;AAC1B,kDAAgC;AAChC,2CAAyB;AACzB,iDAA4D;AAAnD,kHAAA,qBAAqB,OAAA;AAC9B,0CAOsB;AANpB,iHAAA,oBAAoB,OAAA;AACpB,kHAAA,qBAAqB,OAAA;AACrB,iHAAA,oBAAoB,OAAA;AACpB,oHAAA,uBAAuB,OAAA;AACvB,oHAAA,uBAAuB,OAAA;AACvB,qHAAA,wBAAwB,OAAA;AAG1B,uDAAqC;AACrC,oDAAkC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** SemVer 2.0.0: no leading zeroes in numeric identifiers. */
|
|
3
|
+
export declare const PluginVersion: z.ZodString;
|
|
4
|
+
/** Legacy invalid versions sort below SemVer; build metadata never affects precedence. */
|
|
5
|
+
export declare function comparePluginVersions(left: string, right: string): number;
|
|
6
|
+
/** Match npm's stable patch/minor/major bumps, including promotion from prereleases. */
|
|
7
|
+
export declare function bumpPluginVersion(version: string, release: "patch" | "minor" | "major"): string;
|
|
8
|
+
//# sourceMappingURL=plugin-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-version.d.ts","sourceRoot":"","sources":["../../../src/plugins/schema/plugin-version.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,8DAA8D;AAC9D,eAAO,MAAM,aAAa,aAMvB,CAAC;AAEJ,0FAA0F;AAC1F,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAuBzE;AAED,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAc/F"}
|