@oore/client 0.17.0 → 0.19.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 (39) hide show
  1. package/dist/generated/@tanstack/react-query.gen.d.ts +60 -1
  2. package/dist/generated/@tanstack/react-query.gen.js +57 -1
  3. package/dist/generated/msw.gen.d.ts +27 -1
  4. package/dist/generated/msw.gen.js +46 -0
  5. package/dist/generated/sdk.gen.d.ts +19 -1
  6. package/dist/generated/sdk.gen.js +32 -0
  7. package/dist/generated/types.gen.d.ts +167 -0
  8. package/dist/generated/valibot/v-artifact-size-comparison.d.ts +10 -0
  9. package/dist/generated/valibot/v-artifact-size-comparison.js +24 -0
  10. package/dist/generated/valibot/v-build-size-baseline.d.ts +6 -0
  11. package/dist/generated/valibot/v-build-size-baseline.js +11 -0
  12. package/dist/generated/valibot/v-build-size-report.d.ts +18 -0
  13. package/dist/generated/valibot/v-build-size-report.js +9 -0
  14. package/dist/generated/valibot/v-get-build-size-report-path.d.ts +4 -0
  15. package/dist/generated/valibot/v-get-build-size-report-path.js +5 -0
  16. package/dist/generated/valibot/v-get-build-size-report-response.d.ts +18 -0
  17. package/dist/generated/valibot/v-get-build-size-report-response.js +3 -0
  18. package/dist/generated/valibot/v-pipeline-plan-preview.d.ts +20 -0
  19. package/dist/generated/valibot/v-pipeline-plan-preview.js +20 -0
  20. package/dist/generated/valibot/v-pipeline-plan-step.d.ts +10 -0
  21. package/dist/generated/valibot/v-pipeline-plan-step.js +13 -0
  22. package/dist/generated/valibot/v-plan-pipeline-body.d.ts +34 -0
  23. package/dist/generated/valibot/v-plan-pipeline-body.js +3 -0
  24. package/dist/generated/valibot/v-plan-pipeline-request.d.ts +34 -0
  25. package/dist/generated/valibot/v-plan-pipeline-request.js +11 -0
  26. package/dist/generated/valibot/v-plan-pipeline-response.d.ts +28 -0
  27. package/dist/generated/valibot/v-plan-pipeline-response.js +13 -0
  28. package/dist/generated/valibot/v-plan-pipeline-response2.d.ts +28 -0
  29. package/dist/generated/valibot/v-plan-pipeline-response2.js +3 -0
  30. package/dist/generated/valibot/v-step-phase.d.ts +2 -0
  31. package/dist/generated/valibot/v-step-phase.js +7 -0
  32. package/dist/msw.d.ts +2 -2
  33. package/dist/msw.js +1 -1
  34. package/dist/react-query.d.ts +1 -1
  35. package/dist/react-query.js +1 -1
  36. package/dist/valibot.d.ts +12 -0
  37. package/dist/valibot.js +12 -0
  38. package/openapi/openapi.json +427 -0
  39. package/package.json +1 -1
@@ -2926,6 +2926,54 @@
2926
2926
  ]
2927
2927
  }
2928
2928
  },
2929
+ "/v1/builds/{build_id}/sizes": {
2930
+ "get": {
2931
+ "tags": [
2932
+ "Artifacts"
2933
+ ],
2934
+ "summary": "Get build artifact sizes",
2935
+ "description": "Returns the size of each artifact the build published and its change\nfrom the latest earlier successful build of the same pipeline on the\nbase branch: a pull request's target branch, otherwise the project's\ndefault branch.",
2936
+ "operationId": "get_build_size_report",
2937
+ "parameters": [
2938
+ {
2939
+ "name": "build_id",
2940
+ "in": "path",
2941
+ "description": "Build ID",
2942
+ "required": true,
2943
+ "schema": {
2944
+ "type": "string"
2945
+ }
2946
+ }
2947
+ ],
2948
+ "responses": {
2949
+ "200": {
2950
+ "description": "Artifact sizes and changes",
2951
+ "content": {
2952
+ "application/json": {
2953
+ "schema": {
2954
+ "$ref": "#/components/schemas/BuildSizeReport"
2955
+ }
2956
+ }
2957
+ }
2958
+ },
2959
+ "404": {
2960
+ "description": "Build not found",
2961
+ "content": {
2962
+ "application/json": {
2963
+ "schema": {
2964
+ "$ref": "#/components/schemas/ApiError"
2965
+ }
2966
+ }
2967
+ }
2968
+ }
2969
+ },
2970
+ "security": [
2971
+ {
2972
+ "bearer_auth": []
2973
+ }
2974
+ ]
2975
+ }
2976
+ },
2929
2977
  "/v1/builds/{build_id}/stream-token": {
2930
2978
  "post": {
2931
2979
  "tags": [
@@ -4519,6 +4567,53 @@
4519
4567
  ]
4520
4568
  }
4521
4569
  },
4570
+ "/v1/pipelines/plan": {
4571
+ "post": {
4572
+ "tags": [
4573
+ "Pipelines"
4574
+ ],
4575
+ "summary": "Plan pipeline config",
4576
+ "description": "Resolves the steps a build would run for a `.oore.yaml` or the\npipeline's form settings, with the same validation as\n`oore pipeline validate`. Environment values are never returned and\nsecret references stay as written.",
4577
+ "operationId": "plan_pipeline",
4578
+ "requestBody": {
4579
+ "content": {
4580
+ "application/json": {
4581
+ "schema": {
4582
+ "$ref": "#/components/schemas/PlanPipelineRequest"
4583
+ }
4584
+ }
4585
+ },
4586
+ "required": true
4587
+ },
4588
+ "responses": {
4589
+ "200": {
4590
+ "description": "Plan or validation errors",
4591
+ "content": {
4592
+ "application/json": {
4593
+ "schema": {
4594
+ "$ref": "#/components/schemas/PlanPipelineResponse"
4595
+ }
4596
+ }
4597
+ }
4598
+ },
4599
+ "400": {
4600
+ "description": "Neither or both sources given, or the file is too large",
4601
+ "content": {
4602
+ "application/json": {
4603
+ "schema": {
4604
+ "$ref": "#/components/schemas/ApiError"
4605
+ }
4606
+ }
4607
+ }
4608
+ }
4609
+ },
4610
+ "security": [
4611
+ {
4612
+ "bearer_auth": []
4613
+ }
4614
+ ]
4615
+ }
4616
+ },
4522
4617
  "/v1/pipelines/validate": {
4523
4618
  "post": {
4524
4619
  "tags": [
@@ -13500,6 +13595,53 @@
13500
13595
  "ios"
13501
13596
  ]
13502
13597
  },
13598
+ "ArtifactSizeComparison": {
13599
+ "type": "object",
13600
+ "description": "One artifact's size, and its change from the matching baseline artifact.",
13601
+ "required": [
13602
+ "artifact_id",
13603
+ "name",
13604
+ "artifact_type",
13605
+ "size_bytes"
13606
+ ],
13607
+ "properties": {
13608
+ "artifact_id": {
13609
+ "type": "string"
13610
+ },
13611
+ "artifact_type": {
13612
+ "$ref": "#/components/schemas/ArtifactType"
13613
+ },
13614
+ "baseline_name": {
13615
+ "type": [
13616
+ "string",
13617
+ "null"
13618
+ ],
13619
+ "description": "Name of the baseline artifact this one was matched with."
13620
+ },
13621
+ "baseline_size_bytes": {
13622
+ "type": [
13623
+ "integer",
13624
+ "null"
13625
+ ],
13626
+ "format": "int64"
13627
+ },
13628
+ "delta_bytes": {
13629
+ "type": [
13630
+ "integer",
13631
+ "null"
13632
+ ],
13633
+ "format": "int64",
13634
+ "description": "`size_bytes - baseline_size_bytes`; absent when nothing matched."
13635
+ },
13636
+ "name": {
13637
+ "type": "string"
13638
+ },
13639
+ "size_bytes": {
13640
+ "type": "integer",
13641
+ "format": "int64"
13642
+ }
13643
+ }
13644
+ },
13503
13645
  "ArtifactStorageProvider": {
13504
13646
  "type": "string",
13505
13647
  "enum": [
@@ -14471,6 +14613,59 @@
14471
14613
  }
14472
14614
  }
14473
14615
  },
14616
+ "BuildSizeBaseline": {
14617
+ "type": "object",
14618
+ "description": "The earlier build a size report compares against.",
14619
+ "required": [
14620
+ "build_id",
14621
+ "build_number",
14622
+ "branch"
14623
+ ],
14624
+ "properties": {
14625
+ "branch": {
14626
+ "type": "string"
14627
+ },
14628
+ "build_id": {
14629
+ "type": "string"
14630
+ },
14631
+ "build_number": {
14632
+ "type": "integer",
14633
+ "format": "int64"
14634
+ }
14635
+ }
14636
+ },
14637
+ "BuildSizeReport": {
14638
+ "type": "object",
14639
+ "required": [
14640
+ "artifacts"
14641
+ ],
14642
+ "properties": {
14643
+ "artifacts": {
14644
+ "type": "array",
14645
+ "items": {
14646
+ "$ref": "#/components/schemas/ArtifactSizeComparison"
14647
+ }
14648
+ },
14649
+ "base_branch": {
14650
+ "type": [
14651
+ "string",
14652
+ "null"
14653
+ ],
14654
+ "description": "Branch the build is compared with: a pull request's target branch,\notherwise the project's default branch. Absent when neither is known."
14655
+ },
14656
+ "baseline": {
14657
+ "oneOf": [
14658
+ {
14659
+ "type": "null"
14660
+ },
14661
+ {
14662
+ "$ref": "#/components/schemas/BuildSizeBaseline",
14663
+ "description": "The latest earlier successful build of the same pipeline on\n`base_branch` that recorded artifact sizes."
14664
+ }
14665
+ ]
14666
+ }
14667
+ }
14668
+ },
14474
14669
  "BuildStatus": {
14475
14670
  "type": "string",
14476
14671
  "enum": [
@@ -18010,6 +18205,229 @@
18010
18205
  }
18011
18206
  }
18012
18207
  },
18208
+ "PipelinePlanPreview": {
18209
+ "type": "object",
18210
+ "description": "A resolved plan. Environment values are left out; only their keys are listed.",
18211
+ "required": [
18212
+ "platforms",
18213
+ "steps",
18214
+ "env_keys",
18215
+ "artifact_patterns",
18216
+ "build_number_offset",
18217
+ "runs_on",
18218
+ "isolation"
18219
+ ],
18220
+ "properties": {
18221
+ "artifact_patterns": {
18222
+ "type": "array",
18223
+ "items": {
18224
+ "type": "string"
18225
+ }
18226
+ },
18227
+ "build_number_offset": {
18228
+ "type": "integer",
18229
+ "format": "int64"
18230
+ },
18231
+ "env_keys": {
18232
+ "type": "array",
18233
+ "items": {
18234
+ "type": "string"
18235
+ }
18236
+ },
18237
+ "flutter_version": {
18238
+ "type": [
18239
+ "string",
18240
+ "null"
18241
+ ]
18242
+ },
18243
+ "isolation": {
18244
+ "$ref": "#/components/schemas/BuildIsolation"
18245
+ },
18246
+ "platforms": {
18247
+ "type": "array",
18248
+ "items": {
18249
+ "$ref": "#/components/schemas/BuildPlatform"
18250
+ }
18251
+ },
18252
+ "runs_on": {
18253
+ "type": "array",
18254
+ "items": {
18255
+ "type": "string"
18256
+ }
18257
+ },
18258
+ "steps": {
18259
+ "type": "array",
18260
+ "items": {
18261
+ "$ref": "#/components/schemas/PipelinePlanStep"
18262
+ }
18263
+ },
18264
+ "workflow": {
18265
+ "type": [
18266
+ "string",
18267
+ "null"
18268
+ ]
18269
+ }
18270
+ }
18271
+ },
18272
+ "PipelinePlanStep": {
18273
+ "type": "object",
18274
+ "description": "One command a build runs. Secret references stay as written.",
18275
+ "required": [
18276
+ "name",
18277
+ "phase",
18278
+ "run",
18279
+ "source"
18280
+ ],
18281
+ "properties": {
18282
+ "flavor": {
18283
+ "type": [
18284
+ "string",
18285
+ "null"
18286
+ ]
18287
+ },
18288
+ "name": {
18289
+ "type": "string"
18290
+ },
18291
+ "phase": {
18292
+ "$ref": "#/components/schemas/StepPhase"
18293
+ },
18294
+ "platform": {
18295
+ "oneOf": [
18296
+ {
18297
+ "type": "null"
18298
+ },
18299
+ {
18300
+ "$ref": "#/components/schemas/BuildPlatform"
18301
+ }
18302
+ ]
18303
+ },
18304
+ "run": {
18305
+ "type": "string"
18306
+ },
18307
+ "source": {
18308
+ "type": "string",
18309
+ "description": "Where the command comes from in the configuration."
18310
+ },
18311
+ "test_report": {
18312
+ "type": [
18313
+ "string",
18314
+ "null"
18315
+ ],
18316
+ "description": "Test report the step writes, when it declares one."
18317
+ }
18318
+ }
18319
+ },
18320
+ "PlanPipelineRequest": {
18321
+ "type": "object",
18322
+ "description": "What to plan: a repository file or the pipeline's form settings, never both.",
18323
+ "properties": {
18324
+ "build_play_bundle": {
18325
+ "type": [
18326
+ "boolean",
18327
+ "null"
18328
+ ],
18329
+ "description": "Google Play upload is on, so the default Android build also produces an\nApp Bundle. Applies to form settings and version 1 files."
18330
+ },
18331
+ "execution_config": {
18332
+ "oneOf": [
18333
+ {
18334
+ "type": "null"
18335
+ },
18336
+ {
18337
+ "$ref": "#/components/schemas/PipelineExecutionConfig",
18338
+ "description": "The pipeline's form settings, as `POST /v1/pipelines/validate` takes them."
18339
+ }
18340
+ ]
18341
+ },
18342
+ "platforms": {
18343
+ "type": [
18344
+ "array",
18345
+ "null"
18346
+ ],
18347
+ "items": {
18348
+ "$ref": "#/components/schemas/BuildPlatform"
18349
+ },
18350
+ "description": "Plan only these platforms, as a run that selects them would."
18351
+ },
18352
+ "repository_yaml": {
18353
+ "type": [
18354
+ "string",
18355
+ "null"
18356
+ ],
18357
+ "description": "A `.oore.yaml` of either version."
18358
+ },
18359
+ "workflow": {
18360
+ "type": [
18361
+ "string",
18362
+ "null"
18363
+ ],
18364
+ "description": "The version 2 workflow to plan. Defaults to the file's first workflow."
18365
+ }
18366
+ }
18367
+ },
18368
+ "PlanPipelineResponse": {
18369
+ "type": "object",
18370
+ "required": [
18371
+ "valid",
18372
+ "errors",
18373
+ "notices",
18374
+ "workflows",
18375
+ "available_platforms"
18376
+ ],
18377
+ "properties": {
18378
+ "available_platforms": {
18379
+ "type": "array",
18380
+ "items": {
18381
+ "$ref": "#/components/schemas/BuildPlatform"
18382
+ },
18383
+ "description": "Platforms the planned workflow builds before any platform selection."
18384
+ },
18385
+ "errors": {
18386
+ "type": "array",
18387
+ "items": {
18388
+ "type": "string"
18389
+ },
18390
+ "description": "The errors `oore pipeline validate` reports, one per entry."
18391
+ },
18392
+ "notices": {
18393
+ "type": "array",
18394
+ "items": {
18395
+ "type": "string"
18396
+ },
18397
+ "description": "Settings the file declares that this release does not act on yet."
18398
+ },
18399
+ "plan": {
18400
+ "oneOf": [
18401
+ {
18402
+ "type": "null"
18403
+ },
18404
+ {
18405
+ "$ref": "#/components/schemas/PipelinePlanPreview"
18406
+ }
18407
+ ]
18408
+ },
18409
+ "valid": {
18410
+ "type": "boolean",
18411
+ "description": "No errors: `plan` is set."
18412
+ },
18413
+ "version": {
18414
+ "type": [
18415
+ "integer",
18416
+ "null"
18417
+ ],
18418
+ "format": "int32",
18419
+ "description": "`.oore.yaml` version, or none for form settings and unparseable files.",
18420
+ "minimum": 0
18421
+ },
18422
+ "workflows": {
18423
+ "type": "array",
18424
+ "items": {
18425
+ "type": "string"
18426
+ },
18427
+ "description": "Workflows the file defines, in file order. Empty without workflows."
18428
+ }
18429
+ }
18430
+ },
18013
18431
  "PlatformBuildArgs": {
18014
18432
  "type": "object",
18015
18433
  "required": [
@@ -20671,6 +21089,15 @@
20671
21089
  }
20672
21090
  ]
20673
21091
  },
21092
+ "StepPhase": {
21093
+ "type": "string",
21094
+ "description": "Where a step sits relative to the platform builds. Android signing and the\niOS export seam apply to `build` steps only.",
21095
+ "enum": [
21096
+ "pre_build",
21097
+ "build",
21098
+ "post_build"
21099
+ ]
21100
+ },
20674
21101
  "StepResult": {
20675
21102
  "type": "object",
20676
21103
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oore/client",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Typed, tree-shakeable client for the Oore API",
5
5
  "type": "module",
6
6
  "sideEffects": false,