@octonodes/sdk 0.2.6 → 0.2.7

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 (30) hide show
  1. package/dist/gen/index.d.ts +2 -2
  2. package/dist/gen/index.d.ts.map +1 -1
  3. package/dist/gen/index.js +3 -2
  4. package/dist/gen/index.js.map +1 -1
  5. package/dist/gen/sdk.gen.d.ts +9 -1
  6. package/dist/gen/sdk.gen.d.ts.map +1 -1
  7. package/dist/gen/sdk.gen.js +20 -2
  8. package/dist/gen/sdk.gen.js.map +1 -1
  9. package/dist/gen/types.gen.d.ts +67 -0
  10. package/dist/gen/types.gen.d.ts.map +1 -1
  11. package/dist/plugins/schema/plugin/execution.js +1 -1
  12. package/dist/plugins/schema/plugin/execution.js.map +1 -1
  13. package/dist/plugins/schema/plugin/plugin.d.ts +1131 -0
  14. package/dist/plugins/schema/plugin/plugin.d.ts.map +1 -0
  15. package/dist/plugins/schema/plugin/plugin.js +247 -0
  16. package/dist/plugins/schema/plugin/plugin.js.map +1 -0
  17. package/dist/plugins/schema/plugin/publishing.d.ts +1019 -0
  18. package/dist/plugins/schema/plugin/publishing.d.ts.map +1 -0
  19. package/dist/plugins/schema/plugin/publishing.js +167 -0
  20. package/dist/plugins/schema/plugin/publishing.js.map +1 -0
  21. package/dist/plugins/schema/plugin/version.d.ts +8 -0
  22. package/dist/plugins/schema/plugin/version.d.ts.map +1 -0
  23. package/dist/plugins/schema/plugin/version.js +61 -0
  24. package/dist/plugins/schema/plugin/version.js.map +1 -0
  25. package/dist/plugins/schema/plugin-publishing.d.ts +4 -4
  26. package/dist/plugins/schema/plugin-sdk/index.d.ts +3 -3
  27. package/dist/plugins/schema/plugin-sdk/index.d.ts.map +1 -1
  28. package/dist/plugins/schema/plugin-sdk/index.js +3 -3
  29. package/dist/plugins/schema/plugin-sdk/index.js.map +1 -1
  30. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publishing.d.ts","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,qBAAqB,CAAC,CAAC;AAC1E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEpF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc3B,CAAC"}
@@ -0,0 +1,167 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PluginCloudBuild = exports.PluginPublisherBuildDetail = exports.PluginPublisherBuilds = exports.PluginPublisherBuildQuery = exports.PluginPublisherListQuery = exports.PluginPublisherApplied = exports.PluginPublisherApply = exports.PluginPublisherReview = exports.PluginPublisherReviewItem = exports.PluginPublisherOperation = exports.PluginPublisherConnections = exports.PluginPublisherConnection = exports.PluginPublisherPreview = exports.PluginPublisherConsent = exports.PluginPublisherAutomatic = exports.PluginPublisherRepository = 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 version_1 = require("./version");
7
+ exports.PluginConfigPath = zod_1.z
8
+ .string()
9
+ .max(512)
10
+ .refine((path) => /^(?:[a-zA-Z0-9_.-]+\/)*(?:plugin\.octonode\.(?:json|ya?ml)|octonode\.plugin\.json)$/.test(path) &&
11
+ !path.split("/").some((part) => [".", "..", ".git", "node_modules"].includes(part)), "Select a repository-relative octonode.plugin.json file (older plugin.octonode release files also work)");
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: 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.PluginPublisherRepository = exports.PluginPublisherInput.pick({ repositoryId: true });
42
+ exports.PluginPublisherAutomatic = zod_1.z.object({
43
+ ok: zod_1.z.boolean(),
44
+ connected: zod_1.z.number(),
45
+ workflow: zod_1.z.string(),
46
+ });
47
+ exports.PluginPublisherConsent = exports.PluginPublisherInput.extend({ sha256: zod_1.z.string().regex(/^[a-f0-9]{64}$/) });
48
+ exports.PluginPublisherPreview = zod_1.z.object({
49
+ config: exports.PluginReleaseConfig,
50
+ sha256: zod_1.z.string(),
51
+ repository: zod_1.z.string(),
52
+ branch: zod_1.z.string(),
53
+ });
54
+ exports.PluginPublisherConnection = exports.PluginPublisherPreview.extend({
55
+ id: zod_1.z.string().uuid(),
56
+ repositoryId: zod_1.z.number(),
57
+ configPath: exports.PluginConfigPath,
58
+ lastVersion: zod_1.z.string().nullable(),
59
+ lastSha: zod_1.z.string().nullable(),
60
+ lastPublishedAt: zod_1.z.number().nullable(),
61
+ });
62
+ exports.PluginPublisherConnections = zod_1.z.object({ items: zod_1.z.array(exports.PluginPublisherConnection) });
63
+ exports.PluginPublisherOperation = zod_1.z.enum(["create", "update", "delete"]);
64
+ exports.PluginPublisherReviewItem = zod_1.z.object({
65
+ configPath: exports.PluginConfigPath,
66
+ config: exports.PluginReleaseConfig,
67
+ sha256: zod_1.z.string(),
68
+ connectionId: zod_1.z.string().nullable(),
69
+ missing: zod_1.z.boolean(),
70
+ });
71
+ exports.PluginPublisherReview = zod_1.z.object({
72
+ repositoryId: zod_1.z.number(),
73
+ repository: zod_1.z.string(),
74
+ branch: zod_1.z.string(),
75
+ headSha: zod_1.z.string(),
76
+ revision: zod_1.z.string(),
77
+ items: zod_1.z.array(exports.PluginPublisherReviewItem),
78
+ });
79
+ exports.PluginPublisherApply = zod_1.z
80
+ .object({
81
+ repositoryId: zod_1.z.number().int().positive(),
82
+ revision: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
83
+ operations: zod_1.z
84
+ .array(zod_1.z.object({ configPath: exports.PluginConfigPath, operation: exports.PluginPublisherOperation }).strict())
85
+ .min(1)
86
+ .max(100),
87
+ })
88
+ .strict();
89
+ exports.PluginPublisherApplied = zod_1.z.object({
90
+ ok: zod_1.z.boolean(),
91
+ sha: zod_1.z.string(),
92
+ repositoryId: zod_1.z.number(),
93
+ buildId: zod_1.z.number(),
94
+ });
95
+ exports.PluginPublisherListQuery = zod_1.z.object({
96
+ q: zod_1.z.string().trim().max(200).default(""),
97
+ offset: zod_1.z.coerce.number().int().min(0).max(1_000_000).default(0),
98
+ limit: zod_1.z.coerce.number().int().min(1).max(100).default(25),
99
+ days: zod_1.z.enum(["7", "30", "90"]).default("30"),
100
+ scope: zod_1.z.enum(["", "user", "group", "org", "public"]).default(""),
101
+ source: zod_1.z.enum(["", "sdk", "npm"]).default(""),
102
+ sort: zod_1.z.enum(["updated", "name", "version", "scope", "source", "installs", "score", "versions"]).default("updated"),
103
+ direction: zod_1.z.enum(["asc", "desc"]).default("desc"),
104
+ });
105
+ exports.PluginPublisherBuildQuery = zod_1.z.object({
106
+ repositoryId: zod_1.z.coerce.number().int().positive().optional(),
107
+ page: zod_1.z.coerce.number().int().min(1).max(1_000_000).default(1),
108
+ search: zod_1.z.string().max(200).default(""),
109
+ status: zod_1.z.enum(["", "queued", "in_progress", "success", "failure"]).default(""),
110
+ sort: zod_1.z.enum(["newest", "oldest", "name", "status", "branch", "sha"]).default("newest"),
111
+ direction: zod_1.z.enum(["asc", "desc"]).default("asc"),
112
+ limit: zod_1.z.coerce.number().int().min(1).max(100).default(30),
113
+ branch: zod_1.z.string().trim().max(200).default(""),
114
+ sha: zod_1.z.string().trim().max(200).default(""),
115
+ });
116
+ exports.PluginPublisherBuilds = zod_1.z.object({
117
+ total: zod_1.z.number(),
118
+ page: zod_1.z.number(),
119
+ hasMore: zod_1.z.boolean(),
120
+ limit: zod_1.z.number(),
121
+ items: zod_1.z.array(zod_1.z.object({
122
+ id: zod_1.z.number(),
123
+ repositoryId: zod_1.z.number(),
124
+ number: zod_1.z.number(),
125
+ attempt: zod_1.z.number(),
126
+ title: zod_1.z.string(),
127
+ sha: zod_1.z.string(),
128
+ branch: zod_1.z.string(),
129
+ status: zod_1.z.string(),
130
+ conclusion: zod_1.z.string().nullable(),
131
+ url: zod_1.z.string(),
132
+ createdAt: zod_1.z.string(),
133
+ updatedAt: zod_1.z.string(),
134
+ })),
135
+ });
136
+ exports.PluginPublisherBuildDetail = zod_1.z.object({
137
+ repository: zod_1.z.string(),
138
+ sha: zod_1.z.string(),
139
+ branch: zod_1.z.string(),
140
+ status: zod_1.z.string(),
141
+ createdAt: zod_1.z.string(),
142
+ items: zod_1.z.array(zod_1.z.object({
143
+ configPath: exports.PluginConfigPath,
144
+ name: zod_1.z.string(),
145
+ version: zod_1.z.string(),
146
+ scope: zod_1.z.enum(["user", "team", "organization", "public"]),
147
+ operation: exports.PluginPublisherOperation,
148
+ status: zod_1.z.string(),
149
+ url: zod_1.z.string().nullable(),
150
+ error: zod_1.z.string().nullable(),
151
+ })),
152
+ log: zod_1.z.string(),
153
+ });
154
+ exports.PluginCloudBuild = zod_1.z.object({
155
+ id: zod_1.z.number().int().positive(),
156
+ sha: zod_1.z.string().regex(/^[a-f0-9]{40}$/),
157
+ active: zod_1.z.boolean(),
158
+ items: zod_1.z
159
+ .array(zod_1.z.object({
160
+ configPath: exports.PluginConfigPath,
161
+ config: exports.PluginReleaseConfig,
162
+ operation: exports.PluginPublisherOperation,
163
+ status: zod_1.z.string(),
164
+ }))
165
+ .max(100),
166
+ });
167
+ //# sourceMappingURL=publishing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publishing.js","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin/publishing.ts"],"names":[],"mappings":";;;AAAA,mGAAmG;AACnG,6BAAwB;AACxB,uCAA0C;AAE7B,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,EAAE;KACR,GAAG,CAAC,GAAG,CAAC;KACR,MAAM,CACL,CAAC,IAAI,EAAE,EAAE,CACP,qFAAqF,CAAC,IAAI,CAAC,IAAI,CAAC;IAChG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EACrF,wGAAwG,CACzG,CAAC;AACS,QAAA,mBAAmB,GAAG,OAAC;KACjC,MAAM,CAAC;IACN,UAAU,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IAC3C,EAAE,EAAE,OAAC;SACF,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,KAAK,CAAC,sBAAsB,CAAC;IAChC,OAAO,EAAE,uBAAa;IACtB,KAAK,EAAE,OAAC,CAAC,IAAI,CAAC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,MAAM,CAAC;QACP,UAAU,EAAE,wBAAgB;QAC5B,MAAM,EAAE,2BAAmB;QAC3B,SAAS,EAAE,gCAAwB;QACnC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;KACnB,CAAC,CACH;SACA,GAAG,CAAC,GAAG,CAAC;CACZ,CAAC,CAAC"}
@@ -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=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"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"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PluginVersion = void 0;
4
+ exports.comparePluginVersions = comparePluginVersions;
5
+ exports.bumpPluginVersion = bumpPluginVersion;
6
+ // Generated from packages/schema/src/plugin/version.ts. Do not edit; run the Octonode SDK sync.
7
+ const zod_1 = require("zod");
8
+ /** SemVer 2.0.0: no leading zeroes in numeric identifiers. */
9
+ exports.PluginVersion = zod_1.z
10
+ .string()
11
+ .max(200)
12
+ .regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/, "Use a semantic version such as 1.2.3 or 2.0.0-beta.1");
13
+ /** Legacy invalid versions sort below SemVer; build metadata never affects precedence. */
14
+ function comparePluginVersions(left, right) {
15
+ const validLeft = exports.PluginVersion.safeParse(left).success;
16
+ const validRight = exports.PluginVersion.safeParse(right).success;
17
+ if (!validLeft || !validRight)
18
+ return Number(validLeft) - Number(validRight) || left.localeCompare(right);
19
+ const [leftCore, ...leftPre] = left.split("+")[0].split("-");
20
+ const [rightCore, ...rightPre] = right.split("+")[0].split("-");
21
+ const numeric = (a, b) => a.length - b.length || (a > b ? 1 : a < b ? -1 : 0);
22
+ const a = leftCore.split(".");
23
+ const b = rightCore.split(".");
24
+ for (let i = 0; i < 3; i++) {
25
+ const difference = numeric(a[i], b[i]);
26
+ if (difference)
27
+ return difference;
28
+ }
29
+ if (!leftPre.length || !rightPre.length)
30
+ return Number(!leftPre.length) - Number(!rightPre.length);
31
+ const ap = leftPre.join("-").split(".");
32
+ const bp = rightPre.join("-").split(".");
33
+ for (let i = 0; i < Math.min(ap.length, bp.length); i++) {
34
+ if (ap[i] === bp[i])
35
+ continue;
36
+ const an = /^\d+$/.test(ap[i]);
37
+ const bn = /^\d+$/.test(bp[i]);
38
+ return an && bn ? numeric(ap[i], bp[i]) : an !== bn ? Number(bn) - Number(an) : ap[i] > bp[i] ? 1 : -1;
39
+ }
40
+ return ap.length - bp.length;
41
+ }
42
+ /** Match npm's stable patch/minor/major bumps, including promotion from prereleases. */
43
+ function bumpPluginVersion(version, release) {
44
+ exports.PluginVersion.parse(version);
45
+ const core = version.split("+")[0];
46
+ const prerelease = core.includes("-");
47
+ let [major, minor, patch] = core.split("-")[0].split(".").map(BigInt);
48
+ if (release === "major") {
49
+ major += !prerelease || minor !== 0n || patch !== 0n ? 1n : 0n;
50
+ minor = 0n;
51
+ patch = 0n;
52
+ }
53
+ else if (release === "minor") {
54
+ minor += !prerelease || patch !== 0n ? 1n : 0n;
55
+ patch = 0n;
56
+ }
57
+ else
58
+ patch += prerelease ? 0n : 1n;
59
+ return exports.PluginVersion.parse(`${major}.${minor}.${patch}`);
60
+ }
61
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin/version.ts"],"names":[],"mappings":";;;AAaA,sDAuBC;AAGD,8CAcC;AArDD,gGAAgG;AAChG,6BAAwB;AAExB,8DAA8D;AACjD,QAAA,aAAa,GAAG,OAAC;KAC3B,MAAM,EAAE;KACR,GAAG,CAAC,GAAG,CAAC;KACR,KAAK,CACJ,mLAAmL,EACnL,sDAAsD,CACvD,CAAC;AAEJ,0FAA0F;AAC1F,SAAgB,qBAAqB,CAAC,IAAY,EAAE,KAAa;IAC/D,MAAM,SAAS,GAAG,qBAAa,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;IACxD,MAAM,UAAU,GAAG,qBAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;IAC1D,IAAI,CAAC,SAAS,IAAI,CAAC,UAAU;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1G,MAAM,CAAC,QAAQ,EAAE,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7D,MAAM,CAAC,SAAS,EAAE,GAAG,QAAQ,CAAC,GAAG,KAAK,CA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AU,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/D,KAAK,GAAG,EAAE,CAAC;QACX,KAAK,GAAG,EAAE,CAAC;IACb,CAAC;SAAM,IAAI,OAAO,KAAK,OAAO,EAAE,CAAC;QAC/B,KAAK,IAAI,CAAC,UAAU,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/C,KAAK,GAAG,EAAE,CAAC;IACb,CAAC;;QAAM,KAAK,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACrC,OAAO,qBAAa,CAAC,KAAK,CAAC,GAAG,KAAK,IAAI,KAAK,IAAI,KAAK,EAAE,CAAC,CAAC;AAC3D,CAAC"}
@@ -690,8 +690,8 @@ export declare const PluginPublisherListQuery: z.ZodObject<{
690
690
  limit: number;
691
691
  q: string;
692
692
  scope: "" | "user" | "group" | "org" | "public";
693
- days: "7" | "30" | "90";
694
693
  direction: "asc" | "desc";
694
+ days: "7" | "30" | "90";
695
695
  }, {
696
696
  source?: "" | "sdk" | "npm" | undefined;
697
697
  sort?: "updated" | "name" | "source" | "scope" | "version" | "installs" | "score" | "versions" | undefined;
@@ -699,8 +699,8 @@ export declare const PluginPublisherListQuery: z.ZodObject<{
699
699
  limit?: number | undefined;
700
700
  q?: string | undefined;
701
701
  scope?: "" | "user" | "group" | "org" | "public" | undefined;
702
- days?: "7" | "30" | "90" | undefined;
703
702
  direction?: "asc" | "desc" | undefined;
703
+ days?: "7" | "30" | "90" | undefined;
704
704
  }>;
705
705
  export type PluginPublisherListQuery = z.infer<typeof PluginPublisherListQuery>;
706
706
  export declare const PluginPublisherBuildQuery: z.ZodObject<{
@@ -718,9 +718,9 @@ export declare const PluginPublisherBuildQuery: z.ZodObject<{
718
718
  search: string;
719
719
  status: "" | "queued" | "in_progress" | "success" | "failure";
720
720
  limit: number;
721
+ direction: "asc" | "desc";
721
722
  branch: string;
722
723
  sha: string;
723
- direction: "asc" | "desc";
724
724
  page: number;
725
725
  repositoryId?: number | undefined;
726
726
  }, {
@@ -728,10 +728,10 @@ export declare const PluginPublisherBuildQuery: z.ZodObject<{
728
728
  search?: string | undefined;
729
729
  status?: "" | "queued" | "in_progress" | "success" | "failure" | undefined;
730
730
  limit?: number | undefined;
731
+ direction?: "asc" | "desc" | undefined;
731
732
  repositoryId?: number | undefined;
732
733
  branch?: string | undefined;
733
734
  sha?: string | undefined;
734
- direction?: "asc" | "desc" | undefined;
735
735
  page?: number | undefined;
736
736
  }>;
737
737
  export type PluginPublisherBuildQuery = z.infer<typeof PluginPublisherBuildQuery>;
@@ -1,8 +1,8 @@
1
- export * from "../plugin";
1
+ export * from "../plugin/plugin";
2
2
  export * from "../ipc-envelope";
3
3
  export * from "../icons";
4
4
  export { PreparedPluginRuntime } from "../plugin/execution";
5
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
+ export * from "../plugin/publishing";
7
+ export * from "../plugin/version";
8
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,EACL,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAEtB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,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"}
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
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
- __exportStar(require("../plugin"), exports);
19
+ __exportStar(require("../plugin/plugin"), exports);
20
20
  __exportStar(require("../ipc-envelope"), exports);
21
21
  __exportStar(require("../icons"), exports);
22
22
  var execution_1 = require("../plugin/execution");
@@ -28,6 +28,6 @@ Object.defineProperty(exports, "PLUGIN_RELEASE_FILES", { enumerable: true, get:
28
28
  Object.defineProperty(exports, "PLUGIN_PUBLISH_AUDIENCE", { enumerable: true, get: function () { return constants_1.PLUGIN_PUBLISH_AUDIENCE; } });
29
29
  Object.defineProperty(exports, "PLUGIN_CONFIG_MAX_BYTES", { enumerable: true, get: function () { return constants_1.PLUGIN_CONFIG_MAX_BYTES; } });
30
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);
31
+ __exportStar(require("../plugin/publishing"), exports);
32
+ __exportStar(require("../plugin/version"), exports);
33
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,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/schema/plugin-sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kGAAkG;AAClG,mDAAiC;AACjC,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octonodes/sdk",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Octonode API client and code-first plugin SDK.",
5
5
  "license": "MIT",
6
6
  "repository": {