@oore/client 0.18.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 (29) hide show
  1. package/dist/generated/@tanstack/react-query.gen.d.ts +23 -1
  2. package/dist/generated/@tanstack/react-query.gen.js +30 -1
  3. package/dist/generated/msw.gen.d.ts +13 -1
  4. package/dist/generated/msw.gen.js +23 -0
  5. package/dist/generated/sdk.gen.d.ts +10 -1
  6. package/dist/generated/sdk.gen.js +18 -0
  7. package/dist/generated/types.gen.d.ts +107 -0
  8. package/dist/generated/valibot/v-pipeline-plan-preview.d.ts +20 -0
  9. package/dist/generated/valibot/v-pipeline-plan-preview.js +20 -0
  10. package/dist/generated/valibot/v-pipeline-plan-step.d.ts +10 -0
  11. package/dist/generated/valibot/v-pipeline-plan-step.js +13 -0
  12. package/dist/generated/valibot/v-plan-pipeline-body.d.ts +34 -0
  13. package/dist/generated/valibot/v-plan-pipeline-body.js +3 -0
  14. package/dist/generated/valibot/v-plan-pipeline-request.d.ts +34 -0
  15. package/dist/generated/valibot/v-plan-pipeline-request.js +11 -0
  16. package/dist/generated/valibot/v-plan-pipeline-response.d.ts +28 -0
  17. package/dist/generated/valibot/v-plan-pipeline-response.js +13 -0
  18. package/dist/generated/valibot/v-plan-pipeline-response2.d.ts +28 -0
  19. package/dist/generated/valibot/v-plan-pipeline-response2.js +3 -0
  20. package/dist/generated/valibot/v-step-phase.d.ts +2 -0
  21. package/dist/generated/valibot/v-step-phase.js +7 -0
  22. package/dist/msw.d.ts +2 -2
  23. package/dist/msw.js +1 -1
  24. package/dist/react-query.d.ts +1 -1
  25. package/dist/react-query.js +1 -1
  26. package/dist/valibot.d.ts +7 -0
  27. package/dist/valibot.js +7 -0
  28. package/openapi/openapi.json +279 -0
  29. package/package.json +1 -1
@@ -4567,6 +4567,53 @@
4567
4567
  ]
4568
4568
  }
4569
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
+ },
4570
4617
  "/v1/pipelines/validate": {
4571
4618
  "post": {
4572
4619
  "tags": [
@@ -18158,6 +18205,229 @@
18158
18205
  }
18159
18206
  }
18160
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
+ },
18161
18431
  "PlatformBuildArgs": {
18162
18432
  "type": "object",
18163
18433
  "required": [
@@ -20819,6 +21089,15 @@
20819
21089
  }
20820
21090
  ]
20821
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
+ },
20822
21101
  "StepResult": {
20823
21102
  "type": "object",
20824
21103
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oore/client",
3
- "version": "0.18.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,