@slipway-systems/sdk 0.0.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,933 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { PageRequest, PageResponse } from "./common_pb.js";
4
+ import type { JsonObject, Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file slipway/v1/pipeline.proto.
7
+ */
8
+ export declare const file_slipway_v1_pipeline: GenFile;
9
+ /**
10
+ * PipelineSourcePosition is a 1-based range in the YAML source. line == 0 means unknown.
11
+ *
12
+ * @generated from message slipway.v1.PipelineSourcePosition
13
+ */
14
+ export type PipelineSourcePosition = Message<"slipway.v1.PipelineSourcePosition"> & {
15
+ /**
16
+ * @generated from field: int32 line = 1;
17
+ */
18
+ line: number;
19
+ /**
20
+ * @generated from field: int32 column = 2;
21
+ */
22
+ column: number;
23
+ /**
24
+ * @generated from field: int32 end_line = 3;
25
+ */
26
+ endLine: number;
27
+ /**
28
+ * @generated from field: int32 end_column = 4;
29
+ */
30
+ endColumn: number;
31
+ };
32
+ /**
33
+ * Describes the message slipway.v1.PipelineSourcePosition.
34
+ * Use `create(PipelineSourcePositionSchema)` to create a new message.
35
+ */
36
+ export declare const PipelineSourcePositionSchema: GenMessage<PipelineSourcePosition>;
37
+ /**
38
+ * PipelineDiagnostic is one finding of parsing, validation or compilation.
39
+ * Codes (SLP1xx structure, 2xx references, 3xx steps, 4xx expressions, 5xx matrix, 6xx limits,
40
+ * 7xx templates, 8xx triggers, 9xx warnings) are stable.
41
+ *
42
+ * @generated from message slipway.v1.PipelineDiagnostic
43
+ */
44
+ export type PipelineDiagnostic = Message<"slipway.v1.PipelineDiagnostic"> & {
45
+ /**
46
+ * @generated from field: slipway.v1.PipelineDiagnosticSeverity severity = 1;
47
+ */
48
+ severity: PipelineDiagnosticSeverity;
49
+ /**
50
+ * "SLP201"
51
+ *
52
+ * @generated from field: string code = 2;
53
+ */
54
+ code: string;
55
+ /**
56
+ * @generated from field: string message = 3;
57
+ */
58
+ message: string;
59
+ /**
60
+ * set when several files are validated together
61
+ *
62
+ * @generated from field: string file = 4;
63
+ */
64
+ file: string;
65
+ /**
66
+ * logical path, e.g. "stages[1].jobs[0].steps[2].run"
67
+ *
68
+ * @generated from field: string path = 5;
69
+ */
70
+ path: string;
71
+ /**
72
+ * @generated from field: slipway.v1.PipelineSourcePosition position = 6;
73
+ */
74
+ position?: PipelineSourcePosition | undefined;
75
+ /**
76
+ * suggested fix
77
+ *
78
+ * @generated from field: string hint = 7;
79
+ */
80
+ hint: string;
81
+ };
82
+ /**
83
+ * Describes the message slipway.v1.PipelineDiagnostic.
84
+ * Use `create(PipelineDiagnosticSchema)` to create a new message.
85
+ */
86
+ export declare const PipelineDiagnosticSchema: GenMessage<PipelineDiagnostic>;
87
+ /**
88
+ * Pipeline is a stored pipeline definition.
89
+ *
90
+ * @generated from message slipway.v1.Pipeline
91
+ */
92
+ export type Pipeline = Message<"slipway.v1.Pipeline"> & {
93
+ /**
94
+ * pipe_…
95
+ *
96
+ * @generated from field: string id = 1;
97
+ */
98
+ id: string;
99
+ /**
100
+ * @generated from field: string project_id = 2;
101
+ */
102
+ projectId: string;
103
+ /**
104
+ * @generated from field: string name = 3;
105
+ */
106
+ name: string;
107
+ /**
108
+ * @generated from field: string description = 4;
109
+ */
110
+ description: string;
111
+ /**
112
+ * ".slipway/ci.yaml" for repo pipelines
113
+ *
114
+ * @generated from field: string path = 5;
115
+ */
116
+ path: string;
117
+ /**
118
+ * @generated from field: slipway.v1.PipelineSource source = 6;
119
+ */
120
+ source: PipelineSource;
121
+ /**
122
+ * latest source text (omitted by ListPipelines)
123
+ *
124
+ * @generated from field: string yaml = 7;
125
+ */
126
+ yaml: string;
127
+ /**
128
+ * latest parsed definition, same shape as the YAML (omitted by ListPipelines)
129
+ *
130
+ * @generated from field: google.protobuf.Struct spec = 8;
131
+ */
132
+ spec?: JsonObject | undefined;
133
+ /**
134
+ * @generated from field: int32 schema_version = 9;
135
+ */
136
+ schemaVersion: number;
137
+ /**
138
+ * @generated from field: bool enabled = 10;
139
+ */
140
+ enabled: boolean;
141
+ /**
142
+ * summary, e.g. ["push", "pull_request", "schedule"]
143
+ *
144
+ * @generated from field: repeated string triggers = 11;
145
+ */
146
+ triggers: string[];
147
+ /**
148
+ * @generated from field: string repository_id = 12;
149
+ */
150
+ repositoryId: string;
151
+ /**
152
+ * branch or tag the repo definition was read from
153
+ *
154
+ * @generated from field: string ref = 13;
155
+ */
156
+ ref: string;
157
+ /**
158
+ * commit SHA
159
+ *
160
+ * @generated from field: string revision = 14;
161
+ */
162
+ revision: string;
163
+ /**
164
+ * @generated from field: bool valid = 15;
165
+ */
166
+ valid: boolean;
167
+ /**
168
+ * @generated from field: int32 error_count = 16;
169
+ */
170
+ errorCount: number;
171
+ /**
172
+ * @generated from field: int32 warning_count = 17;
173
+ */
174
+ warningCount: number;
175
+ /**
176
+ * omitted by ListPipelines
177
+ *
178
+ * @generated from field: repeated slipway.v1.PipelineDiagnostic diagnostics = 18;
179
+ */
180
+ diagnostics: PipelineDiagnostic[];
181
+ /**
182
+ * "acme/go-test@v1" versions the definition uses
183
+ *
184
+ * @generated from field: repeated string template_refs = 19;
185
+ */
186
+ templateRefs: string[];
187
+ /**
188
+ * @generated from field: google.protobuf.Timestamp created_at = 20;
189
+ */
190
+ createdAt?: Timestamp | undefined;
191
+ /**
192
+ * @generated from field: google.protobuf.Timestamp updated_at = 21;
193
+ */
194
+ updatedAt?: Timestamp | undefined;
195
+ /**
196
+ * branch is set for a repository pipeline whose file exists only on that branch (or tag) so far: it runs for
197
+ * pushes and pull requests that carry the file, never for default-branch, scheduled or release events, until
198
+ * the file reaches the default branch.
199
+ *
200
+ * @generated from field: string branch = 22;
201
+ */
202
+ branch: string;
203
+ };
204
+ /**
205
+ * Describes the message slipway.v1.Pipeline.
206
+ * Use `create(PipelineSchema)` to create a new message.
207
+ */
208
+ export declare const PipelineSchema: GenMessage<Pipeline>;
209
+ /**
210
+ * @generated from message slipway.v1.ValidatePipelineRequest
211
+ */
212
+ export type ValidatePipelineRequest = Message<"slipway.v1.ValidatePipelineRequest"> & {
213
+ /**
214
+ * @generated from field: string yaml = 1;
215
+ */
216
+ yaml: string;
217
+ /**
218
+ * used to stamp diagnostics and to pick the entry point of a repo file
219
+ *
220
+ * @generated from field: string file_name = 2;
221
+ */
222
+ fileName: string;
223
+ /**
224
+ * optional: enables project-aware checks (pipeline triggers, environments, runner labels)
225
+ *
226
+ * @generated from field: string project_id = 3;
227
+ */
228
+ projectId: string;
229
+ /**
230
+ * do not resolve `template:` / `extends:` (faster; template content is not validated)
231
+ *
232
+ * @generated from field: bool skip_templates = 4;
233
+ */
234
+ skipTemplates: boolean;
235
+ };
236
+ /**
237
+ * Describes the message slipway.v1.ValidatePipelineRequest.
238
+ * Use `create(ValidatePipelineRequestSchema)` to create a new message.
239
+ */
240
+ export declare const ValidatePipelineRequestSchema: GenMessage<ValidatePipelineRequest>;
241
+ /**
242
+ * @generated from message slipway.v1.ValidatePipelineResponse
243
+ */
244
+ export type ValidatePipelineResponse = Message<"slipway.v1.ValidatePipelineResponse"> & {
245
+ /**
246
+ * no error-level diagnostics
247
+ *
248
+ * @generated from field: bool valid = 1;
249
+ */
250
+ valid: boolean;
251
+ /**
252
+ * @generated from field: repeated slipway.v1.PipelineDiagnostic diagnostics = 2;
253
+ */
254
+ diagnostics: PipelineDiagnostic[];
255
+ /**
256
+ * parsed definition when the YAML could be parsed
257
+ *
258
+ * @generated from field: google.protobuf.Struct spec = 3;
259
+ */
260
+ spec?: JsonObject | undefined;
261
+ /**
262
+ * trigger summary
263
+ *
264
+ * @generated from field: repeated string triggers = 4;
265
+ */
266
+ triggers: string[];
267
+ /**
268
+ * @generated from field: repeated string template_refs = 5;
269
+ */
270
+ templateRefs: string[];
271
+ /**
272
+ * @generated from field: int32 error_count = 6;
273
+ */
274
+ errorCount: number;
275
+ /**
276
+ * @generated from field: int32 warning_count = 7;
277
+ */
278
+ warningCount: number;
279
+ /**
280
+ * canonical formatting of the document (comments and key order preserved)
281
+ *
282
+ * @generated from field: string formatted_yaml = 8;
283
+ */
284
+ formattedYaml: string;
285
+ };
286
+ /**
287
+ * Describes the message slipway.v1.ValidatePipelineResponse.
288
+ * Use `create(ValidatePipelineResponseSchema)` to create a new message.
289
+ */
290
+ export declare const ValidatePipelineResponseSchema: GenMessage<ValidatePipelineResponse>;
291
+ /**
292
+ * @generated from message slipway.v1.GetSchemaRequest
293
+ */
294
+ export type GetSchemaRequest = Message<"slipway.v1.GetSchemaRequest"> & {};
295
+ /**
296
+ * Describes the message slipway.v1.GetSchemaRequest.
297
+ * Use `create(GetSchemaRequestSchema)` to create a new message.
298
+ */
299
+ export declare const GetSchemaRequestSchema: GenMessage<GetSchemaRequest>;
300
+ /**
301
+ * @generated from message slipway.v1.GetSchemaResponse
302
+ */
303
+ export type GetSchemaResponse = Message<"slipway.v1.GetSchemaResponse"> & {
304
+ /**
305
+ * https://slipway.systems/schema/pipeline-v1.json
306
+ *
307
+ * @generated from field: string id = 1;
308
+ */
309
+ id: string;
310
+ /**
311
+ * @generated from field: int32 version = 2;
312
+ */
313
+ version: number;
314
+ /**
315
+ * JSON Schema (draft 2020-12) text
316
+ *
317
+ * @generated from field: string json_schema = 3;
318
+ */
319
+ jsonSchema: string;
320
+ };
321
+ /**
322
+ * Describes the message slipway.v1.GetSchemaResponse.
323
+ * Use `create(GetSchemaResponseSchema)` to create a new message.
324
+ */
325
+ export declare const GetSchemaResponseSchema: GenMessage<GetSchemaResponse>;
326
+ /**
327
+ * @generated from message slipway.v1.ListPipelinesRequest
328
+ */
329
+ export type ListPipelinesRequest = Message<"slipway.v1.ListPipelinesRequest"> & {
330
+ /**
331
+ * @generated from field: string project_id = 1;
332
+ */
333
+ projectId: string;
334
+ /**
335
+ * filter (CEL subset): name, source, enabled, e.g. `enabled && source == "repo"`
336
+ *
337
+ * @generated from field: slipway.v1.PageRequest page = 2;
338
+ */
339
+ page?: PageRequest | undefined;
340
+ };
341
+ /**
342
+ * Describes the message slipway.v1.ListPipelinesRequest.
343
+ * Use `create(ListPipelinesRequestSchema)` to create a new message.
344
+ */
345
+ export declare const ListPipelinesRequestSchema: GenMessage<ListPipelinesRequest>;
346
+ /**
347
+ * @generated from message slipway.v1.ListPipelinesResponse
348
+ */
349
+ export type ListPipelinesResponse = Message<"slipway.v1.ListPipelinesResponse"> & {
350
+ /**
351
+ * @generated from field: repeated slipway.v1.Pipeline items = 1;
352
+ */
353
+ items: Pipeline[];
354
+ /**
355
+ * @generated from field: slipway.v1.PageResponse page = 2;
356
+ */
357
+ page?: PageResponse | undefined;
358
+ };
359
+ /**
360
+ * Describes the message slipway.v1.ListPipelinesResponse.
361
+ * Use `create(ListPipelinesResponseSchema)` to create a new message.
362
+ */
363
+ export declare const ListPipelinesResponseSchema: GenMessage<ListPipelinesResponse>;
364
+ /**
365
+ * @generated from message slipway.v1.GetPipelineRequest
366
+ */
367
+ export type GetPipelineRequest = Message<"slipway.v1.GetPipelineRequest"> & {
368
+ /**
369
+ * @generated from field: string id = 1;
370
+ */
371
+ id: string;
372
+ };
373
+ /**
374
+ * Describes the message slipway.v1.GetPipelineRequest.
375
+ * Use `create(GetPipelineRequestSchema)` to create a new message.
376
+ */
377
+ export declare const GetPipelineRequestSchema: GenMessage<GetPipelineRequest>;
378
+ /**
379
+ * @generated from message slipway.v1.GetPipelineResponse
380
+ */
381
+ export type GetPipelineResponse = Message<"slipway.v1.GetPipelineResponse"> & {
382
+ /**
383
+ * @generated from field: slipway.v1.Pipeline pipeline = 1;
384
+ */
385
+ pipeline?: Pipeline | undefined;
386
+ };
387
+ /**
388
+ * Describes the message slipway.v1.GetPipelineResponse.
389
+ * Use `create(GetPipelineResponseSchema)` to create a new message.
390
+ */
391
+ export declare const GetPipelineResponseSchema: GenMessage<GetPipelineResponse>;
392
+ /**
393
+ * CreatePipeline stores a new inline pipeline (source `inline`: the definition lives in Slipway, not in a repository).
394
+ * The YAML is validated first; errors reject the request. The pipeline name is the YAML's `name:`; `name`, when set,
395
+ * must match it. A name already used in the project fails with already_exists.
396
+ *
397
+ * @generated from message slipway.v1.CreatePipelineRequest
398
+ */
399
+ export type CreatePipelineRequest = Message<"slipway.v1.CreatePipelineRequest"> & {
400
+ /**
401
+ * @generated from field: string project_id = 1;
402
+ */
403
+ projectId: string;
404
+ /**
405
+ * optional check against the YAML's name
406
+ *
407
+ * @generated from field: string name = 2;
408
+ */
409
+ name: string;
410
+ /**
411
+ * @generated from field: string yaml = 3;
412
+ */
413
+ yaml: string;
414
+ /**
415
+ * pipelines are created enabled; set to create one that does not run until it is enabled
416
+ *
417
+ * @generated from field: bool disabled = 4;
418
+ */
419
+ disabled: boolean;
420
+ };
421
+ /**
422
+ * Describes the message slipway.v1.CreatePipelineRequest.
423
+ * Use `create(CreatePipelineRequestSchema)` to create a new message.
424
+ */
425
+ export declare const CreatePipelineRequestSchema: GenMessage<CreatePipelineRequest>;
426
+ /**
427
+ * @generated from message slipway.v1.CreatePipelineResponse
428
+ */
429
+ export type CreatePipelineResponse = Message<"slipway.v1.CreatePipelineResponse"> & {
430
+ /**
431
+ * @generated from field: slipway.v1.Pipeline pipeline = 1;
432
+ */
433
+ pipeline?: Pipeline | undefined;
434
+ /**
435
+ * warnings of the accepted definition
436
+ *
437
+ * @generated from field: repeated slipway.v1.PipelineDiagnostic diagnostics = 2;
438
+ */
439
+ diagnostics: PipelineDiagnostic[];
440
+ };
441
+ /**
442
+ * Describes the message slipway.v1.CreatePipelineResponse.
443
+ * Use `create(CreatePipelineResponseSchema)` to create a new message.
444
+ */
445
+ export declare const CreatePipelineResponseSchema: GenMessage<CreatePipelineResponse>;
446
+ /**
447
+ * DeletePipeline removes an inline pipeline together with its runs. Repository pipelines cannot be deleted (their
448
+ * definition lives in the repository): disable them with UpdatePipeline instead.
449
+ *
450
+ * @generated from message slipway.v1.DeletePipelineRequest
451
+ */
452
+ export type DeletePipelineRequest = Message<"slipway.v1.DeletePipelineRequest"> & {
453
+ /**
454
+ * @generated from field: string id = 1;
455
+ */
456
+ id: string;
457
+ };
458
+ /**
459
+ * Describes the message slipway.v1.DeletePipelineRequest.
460
+ * Use `create(DeletePipelineRequestSchema)` to create a new message.
461
+ */
462
+ export declare const DeletePipelineRequestSchema: GenMessage<DeletePipelineRequest>;
463
+ /**
464
+ * @generated from message slipway.v1.DeletePipelineResponse
465
+ */
466
+ export type DeletePipelineResponse = Message<"slipway.v1.DeletePipelineResponse"> & {};
467
+ /**
468
+ * Describes the message slipway.v1.DeletePipelineResponse.
469
+ * Use `create(DeletePipelineResponseSchema)` to create a new message.
470
+ */
471
+ export declare const DeletePipelineResponseSchema: GenMessage<DeletePipelineResponse>;
472
+ /**
473
+ * UpdatePipeline edits an inline pipeline (`yaml`, `enabled`) or toggles a repo pipeline (`enabled` only: repo
474
+ * definitions change by committing to the repository). The YAML is validated first; errors reject the update.
475
+ *
476
+ * @generated from message slipway.v1.UpdatePipelineRequest
477
+ */
478
+ export type UpdatePipelineRequest = Message<"slipway.v1.UpdatePipelineRequest"> & {
479
+ /**
480
+ * id plus the fields named by update_mask
481
+ *
482
+ * @generated from field: slipway.v1.Pipeline pipeline = 1;
483
+ */
484
+ pipeline?: Pipeline | undefined;
485
+ /**
486
+ * "yaml", "enabled"
487
+ *
488
+ * @generated from field: google.protobuf.FieldMask update_mask = 2;
489
+ */
490
+ updateMask?: FieldMask | undefined;
491
+ };
492
+ /**
493
+ * Describes the message slipway.v1.UpdatePipelineRequest.
494
+ * Use `create(UpdatePipelineRequestSchema)` to create a new message.
495
+ */
496
+ export declare const UpdatePipelineRequestSchema: GenMessage<UpdatePipelineRequest>;
497
+ /**
498
+ * @generated from message slipway.v1.UpdatePipelineResponse
499
+ */
500
+ export type UpdatePipelineResponse = Message<"slipway.v1.UpdatePipelineResponse"> & {
501
+ /**
502
+ * @generated from field: slipway.v1.Pipeline pipeline = 1;
503
+ */
504
+ pipeline?: Pipeline | undefined;
505
+ /**
506
+ * warnings of the accepted definition
507
+ *
508
+ * @generated from field: repeated slipway.v1.PipelineDiagnostic diagnostics = 2;
509
+ */
510
+ diagnostics: PipelineDiagnostic[];
511
+ };
512
+ /**
513
+ * Describes the message slipway.v1.UpdatePipelineResponse.
514
+ * Use `create(UpdatePipelineResponseSchema)` to create a new message.
515
+ */
516
+ export declare const UpdatePipelineResponseSchema: GenMessage<UpdatePipelineResponse>;
517
+ /**
518
+ * CompilePreview expands templates and matrices for a YAML document against a fake trigger context and returns
519
+ * the compiled plan (the DAG the scheduler would execute) without creating a run.
520
+ *
521
+ * @generated from message slipway.v1.CompilePreviewRequest
522
+ */
523
+ export type CompilePreviewRequest = Message<"slipway.v1.CompilePreviewRequest"> & {
524
+ /**
525
+ * @generated from field: string yaml = 1;
526
+ */
527
+ yaml: string;
528
+ /**
529
+ * @generated from field: string project_id = 2;
530
+ */
531
+ projectId: string;
532
+ /**
533
+ * push | pull_request | tag | schedule | manual | api | pipeline | release | webhook (default push)
534
+ *
535
+ * @generated from field: string event = 3;
536
+ */
537
+ event: string;
538
+ /**
539
+ * values for declared inputs; defaults apply to the rest
540
+ *
541
+ * @generated from field: google.protobuf.Struct inputs = 4;
542
+ */
543
+ inputs?: JsonObject | undefined;
544
+ /**
545
+ * overrides for git.* (branch, tag, sha, changed_files ...)
546
+ *
547
+ * @generated from field: google.protobuf.Struct git = 5;
548
+ */
549
+ git?: JsonObject | undefined;
550
+ /**
551
+ * variables available to compile-time expressions
552
+ *
553
+ * @generated from field: google.protobuf.Struct vars = 6;
554
+ */
555
+ vars?: JsonObject | undefined;
556
+ };
557
+ /**
558
+ * Describes the message slipway.v1.CompilePreviewRequest.
559
+ * Use `create(CompilePreviewRequestSchema)` to create a new message.
560
+ */
561
+ export declare const CompilePreviewRequestSchema: GenMessage<CompilePreviewRequest>;
562
+ /**
563
+ * @generated from message slipway.v1.CompilePreviewResponse
564
+ */
565
+ export type CompilePreviewResponse = Message<"slipway.v1.CompilePreviewResponse"> & {
566
+ /**
567
+ * @generated from field: bool valid = 1;
568
+ */
569
+ valid: boolean;
570
+ /**
571
+ * @generated from field: repeated slipway.v1.PipelineDiagnostic diagnostics = 2;
572
+ */
573
+ diagnostics: PipelineDiagnostic[];
574
+ /**
575
+ * compiled plan, same JSON stored as run.compiled_plan
576
+ *
577
+ * @generated from field: google.protobuf.Struct plan = 3;
578
+ */
579
+ plan?: JsonObject | undefined;
580
+ /**
581
+ * jobs after matrix expansion
582
+ *
583
+ * @generated from field: int32 job_count = 4;
584
+ */
585
+ jobCount: number;
586
+ /**
587
+ * @generated from field: string plan_digest = 5;
588
+ */
589
+ planDigest: string;
590
+ /**
591
+ * @generated from field: repeated string template_refs = 6;
592
+ */
593
+ templateRefs: string[];
594
+ /**
595
+ * would this event start the pipeline
596
+ *
597
+ * @generated from field: bool trigger_matches = 7;
598
+ */
599
+ triggerMatches: boolean;
600
+ /**
601
+ * why not, when trigger_matches is false
602
+ *
603
+ * @generated from field: string trigger_reason = 8;
604
+ */
605
+ triggerReason: string;
606
+ };
607
+ /**
608
+ * Describes the message slipway.v1.CompilePreviewResponse.
609
+ * Use `create(CompilePreviewResponseSchema)` to create a new message.
610
+ */
611
+ export declare const CompilePreviewResponseSchema: GenMessage<CompilePreviewResponse>;
612
+ /**
613
+ * @generated from message slipway.v1.PipelineTemplateParameter
614
+ */
615
+ export type PipelineTemplateParameter = Message<"slipway.v1.PipelineTemplateParameter"> & {
616
+ /**
617
+ * @generated from field: string name = 1;
618
+ */
619
+ name: string;
620
+ /**
621
+ * string | number | boolean | list | map | any
622
+ *
623
+ * @generated from field: string type = 2;
624
+ */
625
+ type: string;
626
+ /**
627
+ * @generated from field: bool required = 3;
628
+ */
629
+ required: boolean;
630
+ /**
631
+ * @generated from field: string description = 4;
632
+ */
633
+ description: string;
634
+ /**
635
+ * JSON-encoded default, empty when none
636
+ *
637
+ * @generated from field: string default_json = 5;
638
+ */
639
+ defaultJson: string;
640
+ /**
641
+ * @generated from field: repeated string options = 6;
642
+ */
643
+ options: string[];
644
+ };
645
+ /**
646
+ * Describes the message slipway.v1.PipelineTemplateParameter.
647
+ * Use `create(PipelineTemplateParameterSchema)` to create a new message.
648
+ */
649
+ export declare const PipelineTemplateParameterSchema: GenMessage<PipelineTemplateParameter>;
650
+ /**
651
+ * PipelineTemplate is one published, immutable version of an org-level template.
652
+ *
653
+ * @generated from message slipway.v1.PipelineTemplate
654
+ */
655
+ export type PipelineTemplate = Message<"slipway.v1.PipelineTemplate"> & {
656
+ /**
657
+ * @generated from field: string id = 1;
658
+ */
659
+ id: string;
660
+ /**
661
+ * "go-test" (the org slug is the owner part of the ref)
662
+ *
663
+ * @generated from field: string name = 2;
664
+ */
665
+ name: string;
666
+ /**
667
+ * "v1"
668
+ *
669
+ * @generated from field: string version = 3;
670
+ */
671
+ version: string;
672
+ /**
673
+ * "acme/go-test@v1"
674
+ *
675
+ * @generated from field: string ref = 4;
676
+ */
677
+ ref: string;
678
+ /**
679
+ * step | job | stage | pipeline
680
+ *
681
+ * @generated from field: string kind = 5;
682
+ */
683
+ kind: string;
684
+ /**
685
+ * @generated from field: string description = 6;
686
+ */
687
+ description: string;
688
+ /**
689
+ * @generated from field: repeated slipway.v1.PipelineTemplateParameter parameters = 7;
690
+ */
691
+ parameters: PipelineTemplateParameter[];
692
+ /**
693
+ * omitted by ListTemplates
694
+ *
695
+ * @generated from field: string yaml = 8;
696
+ */
697
+ yaml: string;
698
+ /**
699
+ * @generated from field: string published_by = 9;
700
+ */
701
+ publishedBy: string;
702
+ /**
703
+ * @generated from field: google.protobuf.Timestamp published_at = 10;
704
+ */
705
+ publishedAt?: Timestamp | undefined;
706
+ };
707
+ /**
708
+ * Describes the message slipway.v1.PipelineTemplate.
709
+ * Use `create(PipelineTemplateSchema)` to create a new message.
710
+ */
711
+ export declare const PipelineTemplateSchema: GenMessage<PipelineTemplate>;
712
+ /**
713
+ * @generated from message slipway.v1.ListTemplatesRequest
714
+ */
715
+ export type ListTemplatesRequest = Message<"slipway.v1.ListTemplatesRequest"> & {
716
+ /**
717
+ * filter (CEL subset): kind, name, e.g. `kind == "job"`
718
+ *
719
+ * @generated from field: slipway.v1.PageRequest page = 1;
720
+ */
721
+ page?: PageRequest | undefined;
722
+ /**
723
+ * one entry per template name (the highest version)
724
+ *
725
+ * @generated from field: bool latest_only = 2;
726
+ */
727
+ latestOnly: boolean;
728
+ };
729
+ /**
730
+ * Describes the message slipway.v1.ListTemplatesRequest.
731
+ * Use `create(ListTemplatesRequestSchema)` to create a new message.
732
+ */
733
+ export declare const ListTemplatesRequestSchema: GenMessage<ListTemplatesRequest>;
734
+ /**
735
+ * @generated from message slipway.v1.ListTemplatesResponse
736
+ */
737
+ export type ListTemplatesResponse = Message<"slipway.v1.ListTemplatesResponse"> & {
738
+ /**
739
+ * @generated from field: repeated slipway.v1.PipelineTemplate items = 1;
740
+ */
741
+ items: PipelineTemplate[];
742
+ /**
743
+ * @generated from field: slipway.v1.PageResponse page = 2;
744
+ */
745
+ page?: PageResponse | undefined;
746
+ };
747
+ /**
748
+ * Describes the message slipway.v1.ListTemplatesResponse.
749
+ * Use `create(ListTemplatesResponseSchema)` to create a new message.
750
+ */
751
+ export declare const ListTemplatesResponseSchema: GenMessage<ListTemplatesResponse>;
752
+ /**
753
+ * PublishTemplate validates and stores a new immutable version. Publishing an existing name+version fails with
754
+ * already_exists.
755
+ *
756
+ * @generated from message slipway.v1.PublishTemplateRequest
757
+ */
758
+ export type PublishTemplateRequest = Message<"slipway.v1.PublishTemplateRequest"> & {
759
+ /**
760
+ * @generated from field: string name = 1;
761
+ */
762
+ name: string;
763
+ /**
764
+ * @generated from field: string version = 2;
765
+ */
766
+ version: string;
767
+ /**
768
+ * @generated from field: string yaml = 3;
769
+ */
770
+ yaml: string;
771
+ };
772
+ /**
773
+ * Describes the message slipway.v1.PublishTemplateRequest.
774
+ * Use `create(PublishTemplateRequestSchema)` to create a new message.
775
+ */
776
+ export declare const PublishTemplateRequestSchema: GenMessage<PublishTemplateRequest>;
777
+ /**
778
+ * @generated from message slipway.v1.PublishTemplateResponse
779
+ */
780
+ export type PublishTemplateResponse = Message<"slipway.v1.PublishTemplateResponse"> & {
781
+ /**
782
+ * @generated from field: slipway.v1.PipelineTemplate template = 1;
783
+ */
784
+ template?: PipelineTemplate | undefined;
785
+ /**
786
+ * warnings of the accepted template
787
+ *
788
+ * @generated from field: repeated slipway.v1.PipelineDiagnostic diagnostics = 2;
789
+ */
790
+ diagnostics: PipelineDiagnostic[];
791
+ };
792
+ /**
793
+ * Describes the message slipway.v1.PublishTemplateResponse.
794
+ * Use `create(PublishTemplateResponseSchema)` to create a new message.
795
+ */
796
+ export declare const PublishTemplateResponseSchema: GenMessage<PublishTemplateResponse>;
797
+ /**
798
+ * PipelineSource says where a definition lives.
799
+ *
800
+ * @generated from enum slipway.v1.PipelineSource
801
+ */
802
+ export declare enum PipelineSource {
803
+ /**
804
+ * @generated from enum value: PIPELINE_SOURCE_UNSPECIFIED = 0;
805
+ */
806
+ UNSPECIFIED = 0,
807
+ /**
808
+ * discovered from `.slipway/*.yaml` or `slipway.yaml` in a linked repository
809
+ *
810
+ * @generated from enum value: PIPELINE_SOURCE_REPO = 1;
811
+ */
812
+ REPO = 1,
813
+ /**
814
+ * stored in Slipway and edited in the UI
815
+ *
816
+ * @generated from enum value: PIPELINE_SOURCE_INLINE = 2;
817
+ */
818
+ INLINE = 2
819
+ }
820
+ /**
821
+ * Describes the enum slipway.v1.PipelineSource.
822
+ */
823
+ export declare const PipelineSourceSchema: GenEnum<PipelineSource>;
824
+ /**
825
+ * @generated from enum slipway.v1.PipelineDiagnosticSeverity
826
+ */
827
+ export declare enum PipelineDiagnosticSeverity {
828
+ /**
829
+ * @generated from enum value: PIPELINE_DIAGNOSTIC_SEVERITY_UNSPECIFIED = 0;
830
+ */
831
+ UNSPECIFIED = 0,
832
+ /**
833
+ * @generated from enum value: PIPELINE_DIAGNOSTIC_SEVERITY_ERROR = 1;
834
+ */
835
+ ERROR = 1,
836
+ /**
837
+ * @generated from enum value: PIPELINE_DIAGNOSTIC_SEVERITY_WARNING = 2;
838
+ */
839
+ WARNING = 2,
840
+ /**
841
+ * @generated from enum value: PIPELINE_DIAGNOSTIC_SEVERITY_INFO = 3;
842
+ */
843
+ INFO = 3
844
+ }
845
+ /**
846
+ * Describes the enum slipway.v1.PipelineDiagnosticSeverity.
847
+ */
848
+ export declare const PipelineDiagnosticSeveritySchema: GenEnum<PipelineDiagnosticSeverity>;
849
+ /**
850
+ * @generated from service slipway.v1.PipelineService
851
+ */
852
+ export declare const PipelineService: GenService<{
853
+ /**
854
+ * @generated from rpc slipway.v1.PipelineService.ValidatePipeline
855
+ */
856
+ validatePipeline: {
857
+ methodKind: "unary";
858
+ input: typeof ValidatePipelineRequestSchema;
859
+ output: typeof ValidatePipelineResponseSchema;
860
+ };
861
+ /**
862
+ * @generated from rpc slipway.v1.PipelineService.GetSchema
863
+ */
864
+ getSchema: {
865
+ methodKind: "unary";
866
+ input: typeof GetSchemaRequestSchema;
867
+ output: typeof GetSchemaResponseSchema;
868
+ };
869
+ /**
870
+ * @generated from rpc slipway.v1.PipelineService.ListPipelines
871
+ */
872
+ listPipelines: {
873
+ methodKind: "unary";
874
+ input: typeof ListPipelinesRequestSchema;
875
+ output: typeof ListPipelinesResponseSchema;
876
+ };
877
+ /**
878
+ * @generated from rpc slipway.v1.PipelineService.GetPipeline
879
+ */
880
+ getPipeline: {
881
+ methodKind: "unary";
882
+ input: typeof GetPipelineRequestSchema;
883
+ output: typeof GetPipelineResponseSchema;
884
+ };
885
+ /**
886
+ * @generated from rpc slipway.v1.PipelineService.CreatePipeline
887
+ */
888
+ createPipeline: {
889
+ methodKind: "unary";
890
+ input: typeof CreatePipelineRequestSchema;
891
+ output: typeof CreatePipelineResponseSchema;
892
+ };
893
+ /**
894
+ * @generated from rpc slipway.v1.PipelineService.UpdatePipeline
895
+ */
896
+ updatePipeline: {
897
+ methodKind: "unary";
898
+ input: typeof UpdatePipelineRequestSchema;
899
+ output: typeof UpdatePipelineResponseSchema;
900
+ };
901
+ /**
902
+ * @generated from rpc slipway.v1.PipelineService.DeletePipeline
903
+ */
904
+ deletePipeline: {
905
+ methodKind: "unary";
906
+ input: typeof DeletePipelineRequestSchema;
907
+ output: typeof DeletePipelineResponseSchema;
908
+ };
909
+ /**
910
+ * @generated from rpc slipway.v1.PipelineService.CompilePreview
911
+ */
912
+ compilePreview: {
913
+ methodKind: "unary";
914
+ input: typeof CompilePreviewRequestSchema;
915
+ output: typeof CompilePreviewResponseSchema;
916
+ };
917
+ /**
918
+ * @generated from rpc slipway.v1.PipelineService.ListTemplates
919
+ */
920
+ listTemplates: {
921
+ methodKind: "unary";
922
+ input: typeof ListTemplatesRequestSchema;
923
+ output: typeof ListTemplatesResponseSchema;
924
+ };
925
+ /**
926
+ * @generated from rpc slipway.v1.PipelineService.PublishTemplate
927
+ */
928
+ publishTemplate: {
929
+ methodKind: "unary";
930
+ input: typeof PublishTemplateRequestSchema;
931
+ output: typeof PublishTemplateResponseSchema;
932
+ };
933
+ }>;