@oore/client 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/generated/types.gen.d.ts +26 -0
  2. package/dist/generated/valibot/v-create-pipeline-body.d.ts +1 -0
  3. package/dist/generated/valibot/v-create-pipeline-request.d.ts +1 -0
  4. package/dist/generated/valibot/v-create-pipeline-request.js +2 -1
  5. package/dist/generated/valibot/v-create-pipeline-response.d.ts +1 -0
  6. package/dist/generated/valibot/v-create-pipeline-response2.d.ts +1 -0
  7. package/dist/generated/valibot/v-discover-repository-workflows-response.d.ts +1 -0
  8. package/dist/generated/valibot/v-discover-repository-workflows-response2.d.ts +1 -0
  9. package/dist/generated/valibot/v-get-pipeline-response.d.ts +1 -0
  10. package/dist/generated/valibot/v-list-pipelines-response.d.ts +1 -0
  11. package/dist/generated/valibot/v-list-pipelines-response2.d.ts +1 -0
  12. package/dist/generated/valibot/v-pipeline-detail-response.d.ts +1 -0
  13. package/dist/generated/valibot/v-pipeline.d.ts +1 -0
  14. package/dist/generated/valibot/v-pipeline.js +2 -1
  15. package/dist/generated/valibot/v-repository-workflow-preview.d.ts +1 -0
  16. package/dist/generated/valibot/v-repository-workflow-preview.js +2 -1
  17. package/dist/generated/valibot/v-update-pipeline-body.d.ts +1 -0
  18. package/dist/generated/valibot/v-update-pipeline-request.d.ts +1 -0
  19. package/dist/generated/valibot/v-update-pipeline-request.js +2 -1
  20. package/dist/generated/valibot/v-update-pipeline-response.d.ts +1 -0
  21. package/dist/generated/valibot/v-validate-pipeline-body.d.ts +1 -0
  22. package/dist/generated/valibot/v-validate-pipeline-request.d.ts +1 -0
  23. package/dist/generated/valibot/v-validate-pipeline-request.js +2 -1
  24. package/openapi/openapi.json +37 -1
  25. package/package.json +1 -1
@@ -692,6 +692,10 @@ export type CreatePipelineRequest = {
692
692
  name: string;
693
693
  timeout_minutes?: number | null;
694
694
  trigger_config?: null | TriggerConfig;
695
+ /**
696
+ * A workflow the repository's `version: 2` file defines.
697
+ */
698
+ workflow?: string | null;
695
699
  };
696
700
  export type CreatePipelineResponse = {
697
701
  pipeline: Pipeline;
@@ -1417,6 +1421,13 @@ export type Pipeline = {
1417
1421
  timeout_minutes: number;
1418
1422
  trigger_config: TriggerConfig;
1419
1423
  updated_at: number;
1424
+ /**
1425
+ * The `.oore.yaml` version 2 workflow this pipeline builds. `null`
1426
+ * builds the file's only workflow, or its top level when it defines
1427
+ * none. That workflow's `on`, or the file's top-level `on`, replaces
1428
+ * `trigger_config` for webhook events.
1429
+ */
1430
+ workflow?: string | null;
1420
1431
  };
1421
1432
  export type PipelineAndroidSigningResponse = {
1422
1433
  debug: AndroidSigningProfile;
@@ -1920,6 +1931,12 @@ export type RepositoryWorkflowPreview = {
1920
1931
  execution?: null | RepositoryWorkflowExecutionPreview;
1921
1932
  path: string;
1922
1933
  valid: boolean;
1934
+ /**
1935
+ * Workflows a valid `version: 2` file defines, in file order, which a
1936
+ * pipeline can pick. Empty for version 1 files and files without
1937
+ * workflows.
1938
+ */
1939
+ workflows: Array<string>;
1923
1940
  };
1924
1941
  export type RerunBuildResponse = {
1925
1942
  build: Build;
@@ -2635,6 +2652,11 @@ export type UpdatePipelineRequest = {
2635
2652
  name?: string | null;
2636
2653
  timeout_minutes?: number | null;
2637
2654
  trigger_config?: null | TriggerConfig;
2655
+ /**
2656
+ * A workflow the repository's `version: 2` file defines. `null` clears
2657
+ * it; leaving it out keeps the current one.
2658
+ */
2659
+ workflow?: string | null;
2638
2660
  };
2639
2661
  /**
2640
2662
  * Changes to an environment. The key and store are fixed once created.
@@ -2736,6 +2758,10 @@ export type ValidatePipelineRequest = {
2736
2758
  repository_yaml?: string | null;
2737
2759
  timeout_minutes?: number | null;
2738
2760
  trigger_config?: null | TriggerConfig;
2761
+ /**
2762
+ * Checked against the workflows `repository_yaml` defines.
2763
+ */
2764
+ workflow?: string | null;
2739
2765
  };
2740
2766
  export type ValidatePipelineResponse = {
2741
2767
  errors: Array<string>;
@@ -51,4 +51,5 @@ export declare const vCreatePipelineBody: v.ObjectSchema<{
51
51
  }, undefined>, undefined>, undefined>;
52
52
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
53
53
  }, undefined>, undefined>;
54
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
54
55
  }, undefined>;
@@ -51,4 +51,5 @@ export declare const vCreatePipelineRequest: v.ObjectSchema<{
51
51
  }, undefined>, undefined>, undefined>;
52
52
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
53
53
  }, undefined>, undefined>;
54
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
54
55
  }, undefined>;
@@ -12,5 +12,6 @@ export const vCreatePipelineRequest = v.object({
12
12
  execution_config: v.nullish(vPipelineExecutionConfig),
13
13
  name: v.string(),
14
14
  timeout_minutes: v.nullish(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(2147483647, 'Invalid value: Expected int32 to be <= 2147483647'))),
15
- trigger_config: v.nullish(vTriggerConfig)
15
+ trigger_config: v.nullish(vTriggerConfig),
16
+ workflow: v.nullish(v.string())
16
17
  });
@@ -57,5 +57,6 @@ export declare const vCreatePipelineResponse: v.ObjectSchema<{
57
57
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
58
58
  }, undefined>;
59
59
  readonly updated_at: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
60
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
60
61
  }, undefined>;
61
62
  }, undefined>;
@@ -57,5 +57,6 @@ export declare const vCreatePipelineResponse2: v.ObjectSchema<{
57
57
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
58
58
  }, undefined>;
59
59
  readonly updated_at: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
60
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
60
61
  }, undefined>;
61
62
  }, undefined>;
@@ -32,5 +32,6 @@ export declare const vDiscoverRepositoryWorkflowsResponse: v.ObjectSchema<{
32
32
  }, undefined>, undefined>;
33
33
  readonly path: v.StringSchema<undefined>;
34
34
  readonly valid: v.BooleanSchema<undefined>;
35
+ readonly workflows: v.ArraySchema<v.StringSchema<undefined>, undefined>;
35
36
  }, undefined>, undefined>;
36
37
  }, undefined>;
@@ -32,5 +32,6 @@ export declare const vDiscoverRepositoryWorkflowsResponse2: v.ObjectSchema<{
32
32
  }, undefined>, undefined>;
33
33
  readonly path: v.StringSchema<undefined>;
34
34
  readonly valid: v.BooleanSchema<undefined>;
35
+ readonly workflows: v.ArraySchema<v.StringSchema<undefined>, undefined>;
35
36
  }, undefined>, undefined>;
36
37
  }, undefined>;
@@ -58,5 +58,6 @@ export declare const vGetPipelineResponse: v.ObjectSchema<{
58
58
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
59
59
  }, undefined>;
60
60
  readonly updated_at: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
61
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
61
62
  }, undefined>;
62
63
  }, undefined>;
@@ -57,6 +57,7 @@ export declare const vListPipelinesResponse: v.ObjectSchema<{
57
57
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
58
58
  }, undefined>;
59
59
  readonly updated_at: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
60
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
60
61
  }, undefined>, undefined>;
61
62
  readonly total: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
62
63
  }, undefined>;
@@ -57,6 +57,7 @@ export declare const vListPipelinesResponse2: v.ObjectSchema<{
57
57
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
58
58
  }, undefined>;
59
59
  readonly updated_at: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
60
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
60
61
  }, undefined>, undefined>;
61
62
  readonly total: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
62
63
  }, undefined>;
@@ -58,5 +58,6 @@ export declare const vPipelineDetailResponse: v.ObjectSchema<{
58
58
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
59
59
  }, undefined>;
60
60
  readonly updated_at: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
61
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
61
62
  }, undefined>;
62
63
  }, undefined>;
@@ -56,4 +56,5 @@ export declare const vPipeline: v.ObjectSchema<{
56
56
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
57
57
  }, undefined>;
58
58
  readonly updated_at: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
59
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
59
60
  }, undefined>;
@@ -25,5 +25,6 @@ export const vPipeline = v.object({
25
25
  v.number(),
26
26
  v.string(),
27
27
  v.bigint()
28
- ]), v.transform(x => BigInt(x)), v.minValue(BigInt('-9223372036854775808'), 'Invalid value: Expected int64 to be >= -9223372036854775808'), v.maxValue(BigInt('9223372036854775807'), 'Invalid value: Expected int64 to be <= 9223372036854775807'))
28
+ ]), v.transform(x => BigInt(x)), v.minValue(BigInt('-9223372036854775808'), 'Invalid value: Expected int64 to be >= -9223372036854775808'), v.maxValue(BigInt('9223372036854775807'), 'Invalid value: Expected int64 to be <= 9223372036854775807')),
29
+ workflow: v.nullish(v.string())
29
30
  });
@@ -27,4 +27,5 @@ export declare const vRepositoryWorkflowPreview: v.ObjectSchema<{
27
27
  }, undefined>, undefined>;
28
28
  readonly path: v.StringSchema<undefined>;
29
29
  readonly valid: v.BooleanSchema<undefined>;
30
+ readonly workflows: v.ArraySchema<v.StringSchema<undefined>, undefined>;
30
31
  }, undefined>;
@@ -5,5 +5,6 @@ export const vRepositoryWorkflowPreview = v.object({
5
5
  errors: v.array(v.string()),
6
6
  execution: v.nullish(vRepositoryWorkflowExecutionPreview),
7
7
  path: v.string(),
8
- valid: v.boolean()
8
+ valid: v.boolean(),
9
+ workflows: v.array(v.string())
9
10
  });
@@ -52,4 +52,5 @@ export declare const vUpdatePipelineBody: v.ObjectSchema<{
52
52
  }, undefined>, undefined>, undefined>;
53
53
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
54
54
  }, undefined>, undefined>;
55
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
55
56
  }, undefined>;
@@ -52,4 +52,5 @@ export declare const vUpdatePipelineRequest: v.ObjectSchema<{
52
52
  }, undefined>, undefined>, undefined>;
53
53
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
54
54
  }, undefined>, undefined>;
55
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
55
56
  }, undefined>;
@@ -13,5 +13,6 @@ export const vUpdatePipelineRequest = v.object({
13
13
  execution_config: v.nullish(vPipelineExecutionConfig),
14
14
  name: v.nullish(v.string()),
15
15
  timeout_minutes: v.nullish(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(2147483647, 'Invalid value: Expected int32 to be <= 2147483647'))),
16
- trigger_config: v.nullish(vTriggerConfig)
16
+ trigger_config: v.nullish(vTriggerConfig),
17
+ workflow: v.nullish(v.string())
17
18
  });
@@ -57,5 +57,6 @@ export declare const vUpdatePipelineResponse: v.ObjectSchema<{
57
57
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
58
58
  }, undefined>;
59
59
  readonly updated_at: v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>;
60
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
60
61
  }, undefined>;
61
62
  }, undefined>;
@@ -51,4 +51,5 @@ export declare const vValidatePipelineBody: v.ObjectSchema<{
51
51
  }, undefined>, undefined>, undefined>;
52
52
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
53
53
  }, undefined>, undefined>;
54
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
54
55
  }, undefined>;
@@ -51,4 +51,5 @@ export declare const vValidatePipelineRequest: v.ObjectSchema<{
51
51
  }, undefined>, undefined>, undefined>;
52
52
  readonly tags: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
53
53
  }, undefined>, undefined>;
54
+ readonly workflow: v.NullishSchema<v.StringSchema<undefined>, undefined>;
54
55
  }, undefined>;
@@ -12,5 +12,6 @@ export const vValidatePipelineRequest = v.object({
12
12
  execution_config: v.nullish(vPipelineExecutionConfig),
13
13
  repository_yaml: v.nullish(v.string()),
14
14
  timeout_minutes: v.nullish(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(2147483647, 'Invalid value: Expected int32 to be <= 2147483647'))),
15
- trigger_config: v.nullish(vTriggerConfig)
15
+ trigger_config: v.nullish(vTriggerConfig),
16
+ workflow: v.nullish(v.string())
16
17
  });
@@ -15376,6 +15376,13 @@
15376
15376
  "$ref": "#/components/schemas/TriggerConfig"
15377
15377
  }
15378
15378
  ]
15379
+ },
15380
+ "workflow": {
15381
+ "type": [
15382
+ "string",
15383
+ "null"
15384
+ ],
15385
+ "description": "A workflow the repository's `version: 2` file defines."
15379
15386
  }
15380
15387
  }
15381
15388
  },
@@ -17882,6 +17889,13 @@
17882
17889
  "updated_at": {
17883
17890
  "type": "integer",
17884
17891
  "format": "int64"
17892
+ },
17893
+ "workflow": {
17894
+ "type": [
17895
+ "string",
17896
+ "null"
17897
+ ],
17898
+ "description": "The `.oore.yaml` version 2 workflow this pipeline builds. `null`\nbuilds the file's only workflow, or its top level when it defines\nnone. That workflow's `on`, or the file's top-level `on`, replaces\n`trigger_config` for webhook events."
17885
17899
  }
17886
17900
  }
17887
17901
  },
@@ -19578,7 +19592,8 @@
19578
19592
  "required": [
19579
19593
  "path",
19580
19594
  "valid",
19581
- "errors"
19595
+ "errors",
19596
+ "workflows"
19582
19597
  ],
19583
19598
  "properties": {
19584
19599
  "errors": {
@@ -19602,6 +19617,13 @@
19602
19617
  },
19603
19618
  "valid": {
19604
19619
  "type": "boolean"
19620
+ },
19621
+ "workflows": {
19622
+ "type": "array",
19623
+ "items": {
19624
+ "type": "string"
19625
+ },
19626
+ "description": "Workflows a valid `version: 2` file defines, in file order, which a\npipeline can pick. Empty for version 1 files and files without\nworkflows."
19605
19627
  }
19606
19628
  }
19607
19629
  },
@@ -22005,6 +22027,13 @@
22005
22027
  "$ref": "#/components/schemas/TriggerConfig"
22006
22028
  }
22007
22029
  ]
22030
+ },
22031
+ "workflow": {
22032
+ "type": [
22033
+ "string",
22034
+ "null"
22035
+ ],
22036
+ "description": "A workflow the repository's `version: 2` file defines. `null` clears\nit; leaving it out keeps the current one."
22008
22037
  }
22009
22038
  }
22010
22039
  },
@@ -22500,6 +22529,13 @@
22500
22529
  "$ref": "#/components/schemas/TriggerConfig"
22501
22530
  }
22502
22531
  ]
22532
+ },
22533
+ "workflow": {
22534
+ "type": [
22535
+ "string",
22536
+ "null"
22537
+ ],
22538
+ "description": "Checked against the workflows `repository_yaml` defines."
22503
22539
  }
22504
22540
  }
22505
22541
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oore/client",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Typed, tree-shakeable client for the Oore API",
5
5
  "type": "module",
6
6
  "sideEffects": false,