@octonodes/sdk 0.2.5 → 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 (33) 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 +48 -3
  26. package/dist/plugins/schema/plugin-publishing.d.ts.map +1 -1
  27. package/dist/plugins/schema/plugin-publishing.js +18 -3
  28. package/dist/plugins/schema/plugin-publishing.js.map +1 -1
  29. package/dist/plugins/schema/plugin-sdk/index.d.ts +3 -3
  30. package/dist/plugins/schema/plugin-sdk/index.d.ts.map +1 -1
  31. package/dist/plugins/schema/plugin-sdk/index.js +3 -3
  32. package/dist/plugins/schema/plugin-sdk/index.js.map +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,1019 @@
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 PluginPublisherRepository: z.ZodObject<Pick<{
62
+ repositoryId: z.ZodNumber;
63
+ configPath: z.ZodEffects<z.ZodString, string, string>;
64
+ }, "repositoryId">, "strict", z.ZodTypeAny, {
65
+ repositoryId: number;
66
+ }, {
67
+ repositoryId: number;
68
+ }>;
69
+ export declare const PluginPublisherAutomatic: z.ZodObject<{
70
+ ok: z.ZodBoolean;
71
+ connected: z.ZodNumber;
72
+ workflow: z.ZodString;
73
+ }, "strip", z.ZodTypeAny, {
74
+ ok: boolean;
75
+ workflow: string;
76
+ connected: number;
77
+ }, {
78
+ ok: boolean;
79
+ workflow: string;
80
+ connected: number;
81
+ }>;
82
+ export declare const PluginPublisherConsent: z.ZodObject<{
83
+ repositoryId: z.ZodNumber;
84
+ configPath: z.ZodEffects<z.ZodString, string, string>;
85
+ } & {
86
+ sha256: z.ZodString;
87
+ }, "strict", z.ZodTypeAny, {
88
+ sha256: string;
89
+ repositoryId: number;
90
+ configPath: string;
91
+ }, {
92
+ sha256: string;
93
+ repositoryId: number;
94
+ configPath: string;
95
+ }>;
96
+ export declare const PluginPublisherPreview: z.ZodObject<{
97
+ config: z.ZodEffects<z.ZodObject<{
98
+ apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
99
+ id: z.ZodString;
100
+ version: z.ZodString;
101
+ scope: z.ZodEnum<["user", "team", "organization", "public"]>;
102
+ teamId: z.ZodOptional<z.ZodString>;
103
+ orgId: z.ZodOptional<z.ZodString>;
104
+ contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
105
+ workflow: z.ZodDefault<z.ZodString>;
106
+ }, "strict", z.ZodTypeAny, {
107
+ workflow: string;
108
+ id: string;
109
+ scope: "user" | "public" | "team" | "organization";
110
+ apiVersion: "octonode.plugin/v1";
111
+ version: string;
112
+ contributors?: string[] | undefined;
113
+ teamId?: string | undefined;
114
+ orgId?: string | undefined;
115
+ }, {
116
+ id: string;
117
+ scope: "user" | "public" | "team" | "organization";
118
+ apiVersion: "octonode.plugin/v1";
119
+ version: string;
120
+ workflow?: string | undefined;
121
+ contributors?: string[] | undefined;
122
+ teamId?: string | undefined;
123
+ orgId?: string | undefined;
124
+ }>, {
125
+ workflow: string;
126
+ id: string;
127
+ scope: "user" | "public" | "team" | "organization";
128
+ apiVersion: "octonode.plugin/v1";
129
+ version: string;
130
+ contributors?: string[] | undefined;
131
+ teamId?: string | undefined;
132
+ orgId?: string | undefined;
133
+ }, {
134
+ id: string;
135
+ scope: "user" | "public" | "team" | "organization";
136
+ apiVersion: "octonode.plugin/v1";
137
+ version: string;
138
+ workflow?: string | undefined;
139
+ contributors?: string[] | undefined;
140
+ teamId?: string | undefined;
141
+ orgId?: string | undefined;
142
+ }>;
143
+ sha256: z.ZodString;
144
+ repository: z.ZodString;
145
+ branch: z.ZodString;
146
+ }, "strip", z.ZodTypeAny, {
147
+ repository: string;
148
+ config: {
149
+ workflow: string;
150
+ id: string;
151
+ scope: "user" | "public" | "team" | "organization";
152
+ apiVersion: "octonode.plugin/v1";
153
+ version: string;
154
+ contributors?: string[] | undefined;
155
+ teamId?: string | undefined;
156
+ orgId?: string | undefined;
157
+ };
158
+ sha256: string;
159
+ branch: string;
160
+ }, {
161
+ repository: string;
162
+ config: {
163
+ id: string;
164
+ scope: "user" | "public" | "team" | "organization";
165
+ apiVersion: "octonode.plugin/v1";
166
+ version: string;
167
+ workflow?: string | undefined;
168
+ contributors?: string[] | undefined;
169
+ teamId?: string | undefined;
170
+ orgId?: string | undefined;
171
+ };
172
+ sha256: string;
173
+ branch: string;
174
+ }>;
175
+ export declare const PluginPublisherConnection: z.ZodObject<{
176
+ config: z.ZodEffects<z.ZodObject<{
177
+ apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
178
+ id: z.ZodString;
179
+ version: z.ZodString;
180
+ scope: z.ZodEnum<["user", "team", "organization", "public"]>;
181
+ teamId: z.ZodOptional<z.ZodString>;
182
+ orgId: z.ZodOptional<z.ZodString>;
183
+ contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
184
+ workflow: z.ZodDefault<z.ZodString>;
185
+ }, "strict", z.ZodTypeAny, {
186
+ workflow: string;
187
+ id: string;
188
+ scope: "user" | "public" | "team" | "organization";
189
+ apiVersion: "octonode.plugin/v1";
190
+ version: string;
191
+ contributors?: string[] | undefined;
192
+ teamId?: string | undefined;
193
+ orgId?: string | undefined;
194
+ }, {
195
+ id: string;
196
+ scope: "user" | "public" | "team" | "organization";
197
+ apiVersion: "octonode.plugin/v1";
198
+ version: string;
199
+ workflow?: string | undefined;
200
+ contributors?: string[] | undefined;
201
+ teamId?: string | undefined;
202
+ orgId?: string | undefined;
203
+ }>, {
204
+ workflow: string;
205
+ id: string;
206
+ scope: "user" | "public" | "team" | "organization";
207
+ apiVersion: "octonode.plugin/v1";
208
+ version: string;
209
+ contributors?: string[] | undefined;
210
+ teamId?: string | undefined;
211
+ orgId?: string | undefined;
212
+ }, {
213
+ id: string;
214
+ scope: "user" | "public" | "team" | "organization";
215
+ apiVersion: "octonode.plugin/v1";
216
+ version: string;
217
+ workflow?: string | undefined;
218
+ contributors?: string[] | undefined;
219
+ teamId?: string | undefined;
220
+ orgId?: string | undefined;
221
+ }>;
222
+ sha256: z.ZodString;
223
+ repository: z.ZodString;
224
+ branch: z.ZodString;
225
+ } & {
226
+ id: z.ZodString;
227
+ repositoryId: z.ZodNumber;
228
+ configPath: z.ZodEffects<z.ZodString, string, string>;
229
+ lastVersion: z.ZodNullable<z.ZodString>;
230
+ lastSha: z.ZodNullable<z.ZodString>;
231
+ lastPublishedAt: z.ZodNullable<z.ZodNumber>;
232
+ }, "strip", z.ZodTypeAny, {
233
+ repository: string;
234
+ config: {
235
+ workflow: string;
236
+ id: string;
237
+ scope: "user" | "public" | "team" | "organization";
238
+ apiVersion: "octonode.plugin/v1";
239
+ version: string;
240
+ contributors?: string[] | undefined;
241
+ teamId?: string | undefined;
242
+ orgId?: string | undefined;
243
+ };
244
+ id: string;
245
+ sha256: string;
246
+ repositoryId: number;
247
+ configPath: string;
248
+ branch: string;
249
+ lastVersion: string | null;
250
+ lastSha: string | null;
251
+ lastPublishedAt: number | null;
252
+ }, {
253
+ repository: string;
254
+ config: {
255
+ id: string;
256
+ scope: "user" | "public" | "team" | "organization";
257
+ apiVersion: "octonode.plugin/v1";
258
+ version: string;
259
+ workflow?: string | undefined;
260
+ contributors?: string[] | undefined;
261
+ teamId?: string | undefined;
262
+ orgId?: string | undefined;
263
+ };
264
+ id: string;
265
+ sha256: string;
266
+ repositoryId: number;
267
+ configPath: string;
268
+ branch: string;
269
+ lastVersion: string | null;
270
+ lastSha: string | null;
271
+ lastPublishedAt: number | null;
272
+ }>;
273
+ export declare const PluginPublisherConnections: z.ZodObject<{
274
+ items: z.ZodArray<z.ZodObject<{
275
+ config: z.ZodEffects<z.ZodObject<{
276
+ apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
277
+ id: z.ZodString;
278
+ version: z.ZodString;
279
+ scope: z.ZodEnum<["user", "team", "organization", "public"]>;
280
+ teamId: z.ZodOptional<z.ZodString>;
281
+ orgId: z.ZodOptional<z.ZodString>;
282
+ contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
283
+ workflow: z.ZodDefault<z.ZodString>;
284
+ }, "strict", z.ZodTypeAny, {
285
+ workflow: string;
286
+ id: string;
287
+ scope: "user" | "public" | "team" | "organization";
288
+ apiVersion: "octonode.plugin/v1";
289
+ version: string;
290
+ contributors?: string[] | undefined;
291
+ teamId?: string | undefined;
292
+ orgId?: string | undefined;
293
+ }, {
294
+ id: string;
295
+ scope: "user" | "public" | "team" | "organization";
296
+ apiVersion: "octonode.plugin/v1";
297
+ version: string;
298
+ workflow?: string | undefined;
299
+ contributors?: string[] | undefined;
300
+ teamId?: string | undefined;
301
+ orgId?: string | undefined;
302
+ }>, {
303
+ workflow: string;
304
+ id: string;
305
+ scope: "user" | "public" | "team" | "organization";
306
+ apiVersion: "octonode.plugin/v1";
307
+ version: string;
308
+ contributors?: string[] | undefined;
309
+ teamId?: string | undefined;
310
+ orgId?: string | undefined;
311
+ }, {
312
+ id: string;
313
+ scope: "user" | "public" | "team" | "organization";
314
+ apiVersion: "octonode.plugin/v1";
315
+ version: string;
316
+ workflow?: string | undefined;
317
+ contributors?: string[] | undefined;
318
+ teamId?: string | undefined;
319
+ orgId?: string | undefined;
320
+ }>;
321
+ sha256: z.ZodString;
322
+ repository: z.ZodString;
323
+ branch: z.ZodString;
324
+ } & {
325
+ id: z.ZodString;
326
+ repositoryId: z.ZodNumber;
327
+ configPath: z.ZodEffects<z.ZodString, string, string>;
328
+ lastVersion: z.ZodNullable<z.ZodString>;
329
+ lastSha: z.ZodNullable<z.ZodString>;
330
+ lastPublishedAt: z.ZodNullable<z.ZodNumber>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ repository: string;
333
+ config: {
334
+ workflow: string;
335
+ id: string;
336
+ scope: "user" | "public" | "team" | "organization";
337
+ apiVersion: "octonode.plugin/v1";
338
+ version: string;
339
+ contributors?: string[] | undefined;
340
+ teamId?: string | undefined;
341
+ orgId?: string | undefined;
342
+ };
343
+ id: string;
344
+ sha256: string;
345
+ repositoryId: number;
346
+ configPath: string;
347
+ branch: string;
348
+ lastVersion: string | null;
349
+ lastSha: string | null;
350
+ lastPublishedAt: number | null;
351
+ }, {
352
+ repository: string;
353
+ config: {
354
+ id: string;
355
+ scope: "user" | "public" | "team" | "organization";
356
+ apiVersion: "octonode.plugin/v1";
357
+ version: string;
358
+ workflow?: string | undefined;
359
+ contributors?: string[] | undefined;
360
+ teamId?: string | undefined;
361
+ orgId?: string | undefined;
362
+ };
363
+ id: string;
364
+ sha256: string;
365
+ repositoryId: number;
366
+ configPath: string;
367
+ branch: string;
368
+ lastVersion: string | null;
369
+ lastSha: string | null;
370
+ lastPublishedAt: number | null;
371
+ }>, "many">;
372
+ }, "strip", z.ZodTypeAny, {
373
+ items: {
374
+ repository: string;
375
+ config: {
376
+ workflow: string;
377
+ id: string;
378
+ scope: "user" | "public" | "team" | "organization";
379
+ apiVersion: "octonode.plugin/v1";
380
+ version: string;
381
+ contributors?: string[] | undefined;
382
+ teamId?: string | undefined;
383
+ orgId?: string | undefined;
384
+ };
385
+ id: string;
386
+ sha256: string;
387
+ repositoryId: number;
388
+ configPath: string;
389
+ branch: string;
390
+ lastVersion: string | null;
391
+ lastSha: string | null;
392
+ lastPublishedAt: number | null;
393
+ }[];
394
+ }, {
395
+ items: {
396
+ repository: string;
397
+ config: {
398
+ id: string;
399
+ scope: "user" | "public" | "team" | "organization";
400
+ apiVersion: "octonode.plugin/v1";
401
+ version: string;
402
+ workflow?: string | undefined;
403
+ contributors?: string[] | undefined;
404
+ teamId?: string | undefined;
405
+ orgId?: string | undefined;
406
+ };
407
+ id: string;
408
+ sha256: string;
409
+ repositoryId: number;
410
+ configPath: string;
411
+ branch: string;
412
+ lastVersion: string | null;
413
+ lastSha: string | null;
414
+ lastPublishedAt: number | null;
415
+ }[];
416
+ }>;
417
+ export declare const PluginPublisherOperation: z.ZodEnum<["create", "update", "delete"]>;
418
+ export declare const PluginPublisherReviewItem: z.ZodObject<{
419
+ configPath: z.ZodEffects<z.ZodString, string, string>;
420
+ config: z.ZodEffects<z.ZodObject<{
421
+ apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
422
+ id: z.ZodString;
423
+ version: z.ZodString;
424
+ scope: z.ZodEnum<["user", "team", "organization", "public"]>;
425
+ teamId: z.ZodOptional<z.ZodString>;
426
+ orgId: z.ZodOptional<z.ZodString>;
427
+ contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
428
+ workflow: z.ZodDefault<z.ZodString>;
429
+ }, "strict", z.ZodTypeAny, {
430
+ workflow: string;
431
+ id: string;
432
+ scope: "user" | "public" | "team" | "organization";
433
+ apiVersion: "octonode.plugin/v1";
434
+ version: string;
435
+ contributors?: string[] | undefined;
436
+ teamId?: string | undefined;
437
+ orgId?: string | undefined;
438
+ }, {
439
+ id: string;
440
+ scope: "user" | "public" | "team" | "organization";
441
+ apiVersion: "octonode.plugin/v1";
442
+ version: string;
443
+ workflow?: string | undefined;
444
+ contributors?: string[] | undefined;
445
+ teamId?: string | undefined;
446
+ orgId?: string | undefined;
447
+ }>, {
448
+ workflow: string;
449
+ id: string;
450
+ scope: "user" | "public" | "team" | "organization";
451
+ apiVersion: "octonode.plugin/v1";
452
+ version: string;
453
+ contributors?: string[] | undefined;
454
+ teamId?: string | undefined;
455
+ orgId?: string | undefined;
456
+ }, {
457
+ id: string;
458
+ scope: "user" | "public" | "team" | "organization";
459
+ apiVersion: "octonode.plugin/v1";
460
+ version: string;
461
+ workflow?: string | undefined;
462
+ contributors?: string[] | undefined;
463
+ teamId?: string | undefined;
464
+ orgId?: string | undefined;
465
+ }>;
466
+ sha256: z.ZodString;
467
+ connectionId: z.ZodNullable<z.ZodString>;
468
+ missing: z.ZodBoolean;
469
+ }, "strip", z.ZodTypeAny, {
470
+ missing: boolean;
471
+ config: {
472
+ workflow: string;
473
+ id: string;
474
+ scope: "user" | "public" | "team" | "organization";
475
+ apiVersion: "octonode.plugin/v1";
476
+ version: string;
477
+ contributors?: string[] | undefined;
478
+ teamId?: string | undefined;
479
+ orgId?: string | undefined;
480
+ };
481
+ sha256: string;
482
+ configPath: string;
483
+ connectionId: string | null;
484
+ }, {
485
+ missing: boolean;
486
+ config: {
487
+ id: string;
488
+ scope: "user" | "public" | "team" | "organization";
489
+ apiVersion: "octonode.plugin/v1";
490
+ version: string;
491
+ workflow?: string | undefined;
492
+ contributors?: string[] | undefined;
493
+ teamId?: string | undefined;
494
+ orgId?: string | undefined;
495
+ };
496
+ sha256: string;
497
+ configPath: string;
498
+ connectionId: string | null;
499
+ }>;
500
+ export declare const PluginPublisherReview: z.ZodObject<{
501
+ repositoryId: z.ZodNumber;
502
+ repository: z.ZodString;
503
+ branch: z.ZodString;
504
+ headSha: z.ZodString;
505
+ revision: z.ZodString;
506
+ items: z.ZodArray<z.ZodObject<{
507
+ configPath: z.ZodEffects<z.ZodString, string, string>;
508
+ config: z.ZodEffects<z.ZodObject<{
509
+ apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
510
+ id: z.ZodString;
511
+ version: z.ZodString;
512
+ scope: z.ZodEnum<["user", "team", "organization", "public"]>;
513
+ teamId: z.ZodOptional<z.ZodString>;
514
+ orgId: z.ZodOptional<z.ZodString>;
515
+ contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
516
+ workflow: z.ZodDefault<z.ZodString>;
517
+ }, "strict", z.ZodTypeAny, {
518
+ workflow: string;
519
+ id: string;
520
+ scope: "user" | "public" | "team" | "organization";
521
+ apiVersion: "octonode.plugin/v1";
522
+ version: string;
523
+ contributors?: string[] | undefined;
524
+ teamId?: string | undefined;
525
+ orgId?: string | undefined;
526
+ }, {
527
+ id: string;
528
+ scope: "user" | "public" | "team" | "organization";
529
+ apiVersion: "octonode.plugin/v1";
530
+ version: string;
531
+ workflow?: string | undefined;
532
+ contributors?: string[] | undefined;
533
+ teamId?: string | undefined;
534
+ orgId?: string | undefined;
535
+ }>, {
536
+ workflow: string;
537
+ id: string;
538
+ scope: "user" | "public" | "team" | "organization";
539
+ apiVersion: "octonode.plugin/v1";
540
+ version: string;
541
+ contributors?: string[] | undefined;
542
+ teamId?: string | undefined;
543
+ orgId?: string | undefined;
544
+ }, {
545
+ id: string;
546
+ scope: "user" | "public" | "team" | "organization";
547
+ apiVersion: "octonode.plugin/v1";
548
+ version: string;
549
+ workflow?: string | undefined;
550
+ contributors?: string[] | undefined;
551
+ teamId?: string | undefined;
552
+ orgId?: string | undefined;
553
+ }>;
554
+ sha256: z.ZodString;
555
+ connectionId: z.ZodNullable<z.ZodString>;
556
+ missing: z.ZodBoolean;
557
+ }, "strip", z.ZodTypeAny, {
558
+ missing: boolean;
559
+ config: {
560
+ workflow: string;
561
+ id: string;
562
+ scope: "user" | "public" | "team" | "organization";
563
+ apiVersion: "octonode.plugin/v1";
564
+ version: string;
565
+ contributors?: string[] | undefined;
566
+ teamId?: string | undefined;
567
+ orgId?: string | undefined;
568
+ };
569
+ sha256: string;
570
+ configPath: string;
571
+ connectionId: string | null;
572
+ }, {
573
+ missing: boolean;
574
+ config: {
575
+ id: string;
576
+ scope: "user" | "public" | "team" | "organization";
577
+ apiVersion: "octonode.plugin/v1";
578
+ version: string;
579
+ workflow?: string | undefined;
580
+ contributors?: string[] | undefined;
581
+ teamId?: string | undefined;
582
+ orgId?: string | undefined;
583
+ };
584
+ sha256: string;
585
+ configPath: string;
586
+ connectionId: string | null;
587
+ }>, "many">;
588
+ }, "strip", z.ZodTypeAny, {
589
+ repository: string;
590
+ repositoryId: number;
591
+ branch: string;
592
+ items: {
593
+ missing: boolean;
594
+ config: {
595
+ workflow: string;
596
+ id: string;
597
+ scope: "user" | "public" | "team" | "organization";
598
+ apiVersion: "octonode.plugin/v1";
599
+ version: string;
600
+ contributors?: string[] | undefined;
601
+ teamId?: string | undefined;
602
+ orgId?: string | undefined;
603
+ };
604
+ sha256: string;
605
+ configPath: string;
606
+ connectionId: string | null;
607
+ }[];
608
+ headSha: string;
609
+ revision: string;
610
+ }, {
611
+ repository: string;
612
+ repositoryId: number;
613
+ branch: string;
614
+ items: {
615
+ missing: boolean;
616
+ config: {
617
+ id: string;
618
+ scope: "user" | "public" | "team" | "organization";
619
+ apiVersion: "octonode.plugin/v1";
620
+ version: string;
621
+ workflow?: string | undefined;
622
+ contributors?: string[] | undefined;
623
+ teamId?: string | undefined;
624
+ orgId?: string | undefined;
625
+ };
626
+ sha256: string;
627
+ configPath: string;
628
+ connectionId: string | null;
629
+ }[];
630
+ headSha: string;
631
+ revision: string;
632
+ }>;
633
+ export declare const PluginPublisherApply: z.ZodObject<{
634
+ repositoryId: z.ZodNumber;
635
+ revision: z.ZodString;
636
+ operations: z.ZodArray<z.ZodObject<{
637
+ configPath: z.ZodEffects<z.ZodString, string, string>;
638
+ operation: z.ZodEnum<["create", "update", "delete"]>;
639
+ }, "strict", z.ZodTypeAny, {
640
+ configPath: string;
641
+ operation: "update" | "delete" | "create";
642
+ }, {
643
+ configPath: string;
644
+ operation: "update" | "delete" | "create";
645
+ }>, "many">;
646
+ }, "strict", z.ZodTypeAny, {
647
+ repositoryId: number;
648
+ revision: string;
649
+ operations: {
650
+ configPath: string;
651
+ operation: "update" | "delete" | "create";
652
+ }[];
653
+ }, {
654
+ repositoryId: number;
655
+ revision: string;
656
+ operations: {
657
+ configPath: string;
658
+ operation: "update" | "delete" | "create";
659
+ }[];
660
+ }>;
661
+ export declare const PluginPublisherApplied: z.ZodObject<{
662
+ ok: z.ZodBoolean;
663
+ sha: z.ZodString;
664
+ repositoryId: z.ZodNumber;
665
+ buildId: z.ZodNumber;
666
+ }, "strip", z.ZodTypeAny, {
667
+ ok: boolean;
668
+ repositoryId: number;
669
+ sha: string;
670
+ buildId: number;
671
+ }, {
672
+ ok: boolean;
673
+ repositoryId: number;
674
+ sha: string;
675
+ buildId: number;
676
+ }>;
677
+ export declare const PluginPublisherListQuery: z.ZodObject<{
678
+ q: z.ZodDefault<z.ZodString>;
679
+ offset: z.ZodDefault<z.ZodNumber>;
680
+ limit: z.ZodDefault<z.ZodNumber>;
681
+ days: z.ZodDefault<z.ZodEnum<["7", "30", "90"]>>;
682
+ scope: z.ZodDefault<z.ZodEnum<["", "user", "group", "org", "public"]>>;
683
+ source: z.ZodDefault<z.ZodEnum<["", "sdk", "npm"]>>;
684
+ sort: z.ZodDefault<z.ZodEnum<["updated", "name", "version", "scope", "source", "installs", "score", "versions"]>>;
685
+ direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ source: "" | "sdk" | "npm";
688
+ sort: "updated" | "name" | "source" | "scope" | "version" | "installs" | "score" | "versions";
689
+ offset: number;
690
+ limit: number;
691
+ q: string;
692
+ scope: "" | "user" | "group" | "org" | "public";
693
+ direction: "asc" | "desc";
694
+ days: "7" | "30" | "90";
695
+ }, {
696
+ source?: "" | "sdk" | "npm" | undefined;
697
+ sort?: "updated" | "name" | "source" | "scope" | "version" | "installs" | "score" | "versions" | undefined;
698
+ offset?: number | undefined;
699
+ limit?: number | undefined;
700
+ q?: string | undefined;
701
+ scope?: "" | "user" | "group" | "org" | "public" | undefined;
702
+ direction?: "asc" | "desc" | undefined;
703
+ days?: "7" | "30" | "90" | undefined;
704
+ }>;
705
+ export type PluginPublisherListQuery = z.infer<typeof PluginPublisherListQuery>;
706
+ export declare const PluginPublisherBuildQuery: z.ZodObject<{
707
+ repositoryId: z.ZodOptional<z.ZodNumber>;
708
+ page: z.ZodDefault<z.ZodNumber>;
709
+ search: z.ZodDefault<z.ZodString>;
710
+ status: z.ZodDefault<z.ZodEnum<["", "queued", "in_progress", "success", "failure"]>>;
711
+ sort: z.ZodDefault<z.ZodEnum<["newest", "oldest", "name", "status", "branch", "sha"]>>;
712
+ direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
713
+ limit: z.ZodDefault<z.ZodNumber>;
714
+ branch: z.ZodDefault<z.ZodString>;
715
+ sha: z.ZodDefault<z.ZodString>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ sort: "name" | "status" | "branch" | "sha" | "newest" | "oldest";
718
+ search: string;
719
+ status: "" | "queued" | "in_progress" | "success" | "failure";
720
+ limit: number;
721
+ direction: "asc" | "desc";
722
+ branch: string;
723
+ sha: string;
724
+ page: number;
725
+ repositoryId?: number | undefined;
726
+ }, {
727
+ sort?: "name" | "status" | "branch" | "sha" | "newest" | "oldest" | undefined;
728
+ search?: string | undefined;
729
+ status?: "" | "queued" | "in_progress" | "success" | "failure" | undefined;
730
+ limit?: number | undefined;
731
+ direction?: "asc" | "desc" | undefined;
732
+ repositoryId?: number | undefined;
733
+ branch?: string | undefined;
734
+ sha?: string | undefined;
735
+ page?: number | undefined;
736
+ }>;
737
+ export type PluginPublisherBuildQuery = z.infer<typeof PluginPublisherBuildQuery>;
738
+ export declare const PluginPublisherBuilds: z.ZodObject<{
739
+ total: z.ZodNumber;
740
+ page: z.ZodNumber;
741
+ hasMore: z.ZodBoolean;
742
+ limit: z.ZodNumber;
743
+ items: z.ZodArray<z.ZodObject<{
744
+ id: z.ZodNumber;
745
+ repositoryId: z.ZodNumber;
746
+ number: z.ZodNumber;
747
+ attempt: z.ZodNumber;
748
+ title: z.ZodString;
749
+ sha: z.ZodString;
750
+ branch: z.ZodString;
751
+ status: z.ZodString;
752
+ conclusion: z.ZodNullable<z.ZodString>;
753
+ url: z.ZodString;
754
+ createdAt: z.ZodString;
755
+ updatedAt: z.ZodString;
756
+ }, "strip", z.ZodTypeAny, {
757
+ number: number;
758
+ url: string;
759
+ status: string;
760
+ id: number;
761
+ attempt: number;
762
+ repositoryId: number;
763
+ branch: string;
764
+ sha: string;
765
+ title: string;
766
+ conclusion: string | null;
767
+ createdAt: string;
768
+ updatedAt: string;
769
+ }, {
770
+ number: number;
771
+ url: string;
772
+ status: string;
773
+ id: number;
774
+ attempt: number;
775
+ repositoryId: number;
776
+ branch: string;
777
+ sha: string;
778
+ title: string;
779
+ conclusion: string | null;
780
+ createdAt: string;
781
+ updatedAt: string;
782
+ }>, "many">;
783
+ }, "strip", z.ZodTypeAny, {
784
+ limit: number;
785
+ items: {
786
+ number: number;
787
+ url: string;
788
+ status: string;
789
+ id: number;
790
+ attempt: number;
791
+ repositoryId: number;
792
+ branch: string;
793
+ sha: string;
794
+ title: string;
795
+ conclusion: string | null;
796
+ createdAt: string;
797
+ updatedAt: string;
798
+ }[];
799
+ page: number;
800
+ total: number;
801
+ hasMore: boolean;
802
+ }, {
803
+ limit: number;
804
+ items: {
805
+ number: number;
806
+ url: string;
807
+ status: string;
808
+ id: number;
809
+ attempt: number;
810
+ repositoryId: number;
811
+ branch: string;
812
+ sha: string;
813
+ title: string;
814
+ conclusion: string | null;
815
+ createdAt: string;
816
+ updatedAt: string;
817
+ }[];
818
+ page: number;
819
+ total: number;
820
+ hasMore: boolean;
821
+ }>;
822
+ export declare const PluginPublisherBuildDetail: z.ZodObject<{
823
+ repository: z.ZodString;
824
+ sha: z.ZodString;
825
+ branch: z.ZodString;
826
+ status: z.ZodString;
827
+ createdAt: z.ZodString;
828
+ items: z.ZodArray<z.ZodObject<{
829
+ configPath: z.ZodEffects<z.ZodString, string, string>;
830
+ name: z.ZodString;
831
+ version: z.ZodString;
832
+ scope: z.ZodEnum<["user", "team", "organization", "public"]>;
833
+ operation: z.ZodEnum<["create", "update", "delete"]>;
834
+ status: z.ZodString;
835
+ url: z.ZodNullable<z.ZodString>;
836
+ error: z.ZodNullable<z.ZodString>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ error: string | null;
839
+ name: string;
840
+ url: string | null;
841
+ status: string;
842
+ scope: "user" | "public" | "team" | "organization";
843
+ version: string;
844
+ configPath: string;
845
+ operation: "update" | "delete" | "create";
846
+ }, {
847
+ error: string | null;
848
+ name: string;
849
+ url: string | null;
850
+ status: string;
851
+ scope: "user" | "public" | "team" | "organization";
852
+ version: string;
853
+ configPath: string;
854
+ operation: "update" | "delete" | "create";
855
+ }>, "many">;
856
+ log: z.ZodString;
857
+ }, "strip", z.ZodTypeAny, {
858
+ repository: string;
859
+ status: string;
860
+ branch: string;
861
+ items: {
862
+ error: string | null;
863
+ name: string;
864
+ url: string | null;
865
+ status: string;
866
+ scope: "user" | "public" | "team" | "organization";
867
+ version: string;
868
+ configPath: string;
869
+ operation: "update" | "delete" | "create";
870
+ }[];
871
+ sha: string;
872
+ createdAt: string;
873
+ log: string;
874
+ }, {
875
+ repository: string;
876
+ status: string;
877
+ branch: string;
878
+ items: {
879
+ error: string | null;
880
+ name: string;
881
+ url: string | null;
882
+ status: string;
883
+ scope: "user" | "public" | "team" | "organization";
884
+ version: string;
885
+ configPath: string;
886
+ operation: "update" | "delete" | "create";
887
+ }[];
888
+ sha: string;
889
+ createdAt: string;
890
+ log: string;
891
+ }>;
892
+ export type PluginPublisherReview = z.infer<typeof PluginPublisherReview>;
893
+ export type PluginPublisherApply = z.infer<typeof PluginPublisherApply>;
894
+ export type PluginPublisherReviewItem = z.infer<typeof PluginPublisherReviewItem>;
895
+ export type PluginPublisherBuilds = z.infer<typeof PluginPublisherBuilds>;
896
+ export type PluginPublisherBuildDetail = z.infer<typeof PluginPublisherBuildDetail>;
897
+ export declare const PluginCloudBuild: z.ZodObject<{
898
+ id: z.ZodNumber;
899
+ sha: z.ZodString;
900
+ active: z.ZodBoolean;
901
+ items: z.ZodArray<z.ZodObject<{
902
+ configPath: z.ZodEffects<z.ZodString, string, string>;
903
+ config: z.ZodEffects<z.ZodObject<{
904
+ apiVersion: z.ZodLiteral<"octonode.plugin/v1">;
905
+ id: z.ZodString;
906
+ version: z.ZodString;
907
+ scope: z.ZodEnum<["user", "team", "organization", "public"]>;
908
+ teamId: z.ZodOptional<z.ZodString>;
909
+ orgId: z.ZodOptional<z.ZodString>;
910
+ contributors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
911
+ workflow: z.ZodDefault<z.ZodString>;
912
+ }, "strict", z.ZodTypeAny, {
913
+ workflow: string;
914
+ id: string;
915
+ scope: "user" | "public" | "team" | "organization";
916
+ apiVersion: "octonode.plugin/v1";
917
+ version: string;
918
+ contributors?: string[] | undefined;
919
+ teamId?: string | undefined;
920
+ orgId?: string | undefined;
921
+ }, {
922
+ id: string;
923
+ scope: "user" | "public" | "team" | "organization";
924
+ apiVersion: "octonode.plugin/v1";
925
+ version: string;
926
+ workflow?: string | undefined;
927
+ contributors?: string[] | undefined;
928
+ teamId?: string | undefined;
929
+ orgId?: string | undefined;
930
+ }>, {
931
+ workflow: string;
932
+ id: string;
933
+ scope: "user" | "public" | "team" | "organization";
934
+ apiVersion: "octonode.plugin/v1";
935
+ version: string;
936
+ contributors?: string[] | undefined;
937
+ teamId?: string | undefined;
938
+ orgId?: string | undefined;
939
+ }, {
940
+ id: string;
941
+ scope: "user" | "public" | "team" | "organization";
942
+ apiVersion: "octonode.plugin/v1";
943
+ version: string;
944
+ workflow?: string | undefined;
945
+ contributors?: string[] | undefined;
946
+ teamId?: string | undefined;
947
+ orgId?: string | undefined;
948
+ }>;
949
+ operation: z.ZodEnum<["create", "update", "delete"]>;
950
+ status: z.ZodString;
951
+ }, "strip", z.ZodTypeAny, {
952
+ config: {
953
+ workflow: string;
954
+ id: string;
955
+ scope: "user" | "public" | "team" | "organization";
956
+ apiVersion: "octonode.plugin/v1";
957
+ version: string;
958
+ contributors?: string[] | undefined;
959
+ teamId?: string | undefined;
960
+ orgId?: string | undefined;
961
+ };
962
+ status: string;
963
+ configPath: string;
964
+ operation: "update" | "delete" | "create";
965
+ }, {
966
+ config: {
967
+ id: string;
968
+ scope: "user" | "public" | "team" | "organization";
969
+ apiVersion: "octonode.plugin/v1";
970
+ version: string;
971
+ workflow?: string | undefined;
972
+ contributors?: string[] | undefined;
973
+ teamId?: string | undefined;
974
+ orgId?: string | undefined;
975
+ };
976
+ status: string;
977
+ configPath: string;
978
+ operation: "update" | "delete" | "create";
979
+ }>, "many">;
980
+ }, "strip", z.ZodTypeAny, {
981
+ id: number;
982
+ active: boolean;
983
+ items: {
984
+ config: {
985
+ workflow: string;
986
+ id: string;
987
+ scope: "user" | "public" | "team" | "organization";
988
+ apiVersion: "octonode.plugin/v1";
989
+ version: string;
990
+ contributors?: string[] | undefined;
991
+ teamId?: string | undefined;
992
+ orgId?: string | undefined;
993
+ };
994
+ status: string;
995
+ configPath: string;
996
+ operation: "update" | "delete" | "create";
997
+ }[];
998
+ sha: string;
999
+ }, {
1000
+ id: number;
1001
+ active: boolean;
1002
+ items: {
1003
+ config: {
1004
+ id: string;
1005
+ scope: "user" | "public" | "team" | "organization";
1006
+ apiVersion: "octonode.plugin/v1";
1007
+ version: string;
1008
+ workflow?: string | undefined;
1009
+ contributors?: string[] | undefined;
1010
+ teamId?: string | undefined;
1011
+ orgId?: string | undefined;
1012
+ };
1013
+ status: string;
1014
+ configPath: string;
1015
+ operation: "update" | "delete" | "create";
1016
+ }[];
1017
+ sha: string;
1018
+ }>;
1019
+ //# sourceMappingURL=publishing.d.ts.map