@oore/client 0.23.0 → 0.25.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.
- package/dist/generated/@tanstack/react-query.gen.d.ts +27 -1
- package/dist/generated/@tanstack/react-query.gen.js +34 -1
- package/dist/generated/msw.gen.d.ts +13 -1
- package/dist/generated/msw.gen.js +23 -0
- package/dist/generated/sdk.gen.d.ts +12 -1
- package/dist/generated/sdk.gen.js +20 -0
- package/dist/generated/types.gen.d.ts +122 -0
- package/dist/generated/valibot/v-create-pipeline-body.d.ts +9 -0
- package/dist/generated/valibot/v-create-pipeline-request.d.ts +9 -0
- package/dist/generated/valibot/v-create-pipeline-request.js +2 -0
- package/dist/generated/valibot/v-create-pipeline-response.d.ts +9 -0
- package/dist/generated/valibot/v-create-pipeline-response2.d.ts +9 -0
- package/dist/generated/valibot/v-get-pipeline-response.d.ts +9 -0
- package/dist/generated/valibot/v-import-pipeline-yaml-body.d.ts +73 -0
- package/dist/generated/valibot/v-import-pipeline-yaml-body.js +3 -0
- package/dist/generated/valibot/v-import-pipeline-yaml-request.d.ts +73 -0
- package/dist/generated/valibot/v-import-pipeline-yaml-request.js +13 -0
- package/dist/generated/valibot/v-import-pipeline-yaml-response.d.ts +52 -0
- package/dist/generated/valibot/v-import-pipeline-yaml-response.js +16 -0
- package/dist/generated/valibot/v-import-pipeline-yaml-response2.d.ts +52 -0
- package/dist/generated/valibot/v-import-pipeline-yaml-response2.js +3 -0
- package/dist/generated/valibot/v-imported-play-publish.d.ts +6 -0
- package/dist/generated/valibot/v-imported-play-publish.js +7 -0
- package/dist/generated/valibot/v-list-pipelines-response.d.ts +9 -0
- package/dist/generated/valibot/v-list-pipelines-response2.d.ts +9 -0
- package/dist/generated/valibot/v-pipeline-detail-response.d.ts +9 -0
- package/dist/generated/valibot/v-pipeline.d.ts +9 -0
- package/dist/generated/valibot/v-pipeline.js +2 -0
- package/dist/generated/valibot/v-size-budget-mode.d.ts +2 -0
- package/dist/generated/valibot/v-size-budget-mode.js +3 -0
- package/dist/generated/valibot/v-size-budget-rule.d.ts +7 -0
- package/dist/generated/valibot/v-size-budget-rule.js +16 -0
- package/dist/generated/valibot/v-size-budget.d.ts +10 -0
- package/dist/generated/valibot/v-size-budget.js +8 -0
- package/dist/generated/valibot/v-update-pipeline-body.d.ts +9 -0
- package/dist/generated/valibot/v-update-pipeline-request.d.ts +9 -0
- package/dist/generated/valibot/v-update-pipeline-request.js +2 -0
- package/dist/generated/valibot/v-update-pipeline-response.d.ts +9 -0
- package/dist/generated/valibot/v-validate-pipeline-body.d.ts +9 -0
- package/dist/generated/valibot/v-validate-pipeline-request.d.ts +9 -0
- package/dist/generated/valibot/v-validate-pipeline-request.js +2 -0
- package/dist/msw.d.ts +2 -2
- package/dist/msw.js +1 -1
- package/dist/react-query.d.ts +1 -1
- package/dist/react-query.js +1 -1
- package/dist/valibot.d.ts +8 -0
- package/dist/valibot.js +8 -0
- package/openapi/openapi.json +313 -0
- package/package.json +1 -1
package/openapi/openapi.json
CHANGED
|
@@ -4604,6 +4604,53 @@
|
|
|
4604
4604
|
]
|
|
4605
4605
|
}
|
|
4606
4606
|
},
|
|
4607
|
+
"/v1/pipelines/import-yaml": {
|
|
4608
|
+
"post": {
|
|
4609
|
+
"tags": [
|
|
4610
|
+
"Pipelines"
|
|
4611
|
+
],
|
|
4612
|
+
"summary": "Import `.oore.yaml` into pipeline settings",
|
|
4613
|
+
"description": "Reads a `version: 2` `.oore.yaml` back into the pipeline's form\nsettings: the inverse of the export. The file is validated as\n`oore pipeline validate` does. Settings are returned only when the\nform can hold the whole file; exported again, they plan the same as\nthe file. Everything else is listed in `unsupported`. Nothing is\nsaved, and secret references stay as written.",
|
|
4614
|
+
"operationId": "import_pipeline_yaml",
|
|
4615
|
+
"requestBody": {
|
|
4616
|
+
"content": {
|
|
4617
|
+
"application/json": {
|
|
4618
|
+
"schema": {
|
|
4619
|
+
"$ref": "#/components/schemas/ImportPipelineYamlRequest"
|
|
4620
|
+
}
|
|
4621
|
+
}
|
|
4622
|
+
},
|
|
4623
|
+
"required": true
|
|
4624
|
+
},
|
|
4625
|
+
"responses": {
|
|
4626
|
+
"200": {
|
|
4627
|
+
"description": "The form settings, or why the file cannot become them",
|
|
4628
|
+
"content": {
|
|
4629
|
+
"application/json": {
|
|
4630
|
+
"schema": {
|
|
4631
|
+
"$ref": "#/components/schemas/ImportPipelineYamlResponse"
|
|
4632
|
+
}
|
|
4633
|
+
}
|
|
4634
|
+
}
|
|
4635
|
+
},
|
|
4636
|
+
"400": {
|
|
4637
|
+
"description": "The file is too large",
|
|
4638
|
+
"content": {
|
|
4639
|
+
"application/json": {
|
|
4640
|
+
"schema": {
|
|
4641
|
+
"$ref": "#/components/schemas/ApiError"
|
|
4642
|
+
}
|
|
4643
|
+
}
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
},
|
|
4647
|
+
"security": [
|
|
4648
|
+
{
|
|
4649
|
+
"bearer_auth": []
|
|
4650
|
+
}
|
|
4651
|
+
]
|
|
4652
|
+
}
|
|
4653
|
+
},
|
|
4607
4654
|
"/v1/pipelines/plan": {
|
|
4608
4655
|
"post": {
|
|
4609
4656
|
"tags": [
|
|
@@ -15396,6 +15443,16 @@
|
|
|
15396
15443
|
"name": {
|
|
15397
15444
|
"type": "string"
|
|
15398
15445
|
},
|
|
15446
|
+
"size_budget": {
|
|
15447
|
+
"oneOf": [
|
|
15448
|
+
{
|
|
15449
|
+
"type": "null"
|
|
15450
|
+
},
|
|
15451
|
+
{
|
|
15452
|
+
"$ref": "#/components/schemas/SizeBudget"
|
|
15453
|
+
}
|
|
15454
|
+
]
|
|
15455
|
+
},
|
|
15399
15456
|
"timeout_minutes": {
|
|
15400
15457
|
"type": [
|
|
15401
15458
|
"integer",
|
|
@@ -16609,6 +16666,171 @@
|
|
|
16609
16666
|
}
|
|
16610
16667
|
}
|
|
16611
16668
|
},
|
|
16669
|
+
"ImportPipelineYamlRequest": {
|
|
16670
|
+
"type": "object",
|
|
16671
|
+
"description": "A `version: 2` `.oore.yaml` to read back into the pipeline editor's form,\nwith the settings the editor holds now.",
|
|
16672
|
+
"required": [
|
|
16673
|
+
"yaml"
|
|
16674
|
+
],
|
|
16675
|
+
"properties": {
|
|
16676
|
+
"app_store": {
|
|
16677
|
+
"oneOf": [
|
|
16678
|
+
{
|
|
16679
|
+
"type": "null"
|
|
16680
|
+
},
|
|
16681
|
+
{
|
|
16682
|
+
"$ref": "#/components/schemas/AppStorePublishConfig",
|
|
16683
|
+
"description": "The pipeline's App Store Connect settings. The file's\n`publish.testflight` must match them."
|
|
16684
|
+
}
|
|
16685
|
+
]
|
|
16686
|
+
},
|
|
16687
|
+
"execution_config": {
|
|
16688
|
+
"oneOf": [
|
|
16689
|
+
{
|
|
16690
|
+
"type": "null"
|
|
16691
|
+
},
|
|
16692
|
+
{
|
|
16693
|
+
"$ref": "#/components/schemas/PipelineExecutionConfig",
|
|
16694
|
+
"description": "The form settings the editor holds now. They decide between\nequivalent ways of holding the file: the pipeline's Build commands\n(which the file runs as steps after the targets), build arguments or\na build command override."
|
|
16695
|
+
}
|
|
16696
|
+
]
|
|
16697
|
+
},
|
|
16698
|
+
"google_play": {
|
|
16699
|
+
"oneOf": [
|
|
16700
|
+
{
|
|
16701
|
+
"type": "null"
|
|
16702
|
+
},
|
|
16703
|
+
{
|
|
16704
|
+
"$ref": "#/components/schemas/GooglePlayPublishConfig",
|
|
16705
|
+
"description": "The pipeline's Google Play settings. The form does not edit them, so\nthe file's `publish.play` must match them."
|
|
16706
|
+
}
|
|
16707
|
+
]
|
|
16708
|
+
},
|
|
16709
|
+
"trigger_config": {
|
|
16710
|
+
"oneOf": [
|
|
16711
|
+
{
|
|
16712
|
+
"type": "null"
|
|
16713
|
+
},
|
|
16714
|
+
{
|
|
16715
|
+
"$ref": "#/components/schemas/TriggerConfig",
|
|
16716
|
+
"description": "The pipeline's trigger settings, whose schedules are kept. Left out\nfor repositories that only build manually, where the file's `on`\ncannot be held."
|
|
16717
|
+
}
|
|
16718
|
+
]
|
|
16719
|
+
},
|
|
16720
|
+
"yaml": {
|
|
16721
|
+
"type": "string",
|
|
16722
|
+
"description": "The file's text."
|
|
16723
|
+
}
|
|
16724
|
+
}
|
|
16725
|
+
},
|
|
16726
|
+
"ImportPipelineYamlResponse": {
|
|
16727
|
+
"type": "object",
|
|
16728
|
+
"required": [
|
|
16729
|
+
"valid",
|
|
16730
|
+
"representable",
|
|
16731
|
+
"errors",
|
|
16732
|
+
"unsupported",
|
|
16733
|
+
"notes"
|
|
16734
|
+
],
|
|
16735
|
+
"properties": {
|
|
16736
|
+
"errors": {
|
|
16737
|
+
"type": "array",
|
|
16738
|
+
"items": {
|
|
16739
|
+
"type": "string"
|
|
16740
|
+
},
|
|
16741
|
+
"description": "The file's validation errors, one per entry."
|
|
16742
|
+
},
|
|
16743
|
+
"execution_config": {
|
|
16744
|
+
"oneOf": [
|
|
16745
|
+
{
|
|
16746
|
+
"type": "null"
|
|
16747
|
+
},
|
|
16748
|
+
{
|
|
16749
|
+
"$ref": "#/components/schemas/PipelineExecutionConfig",
|
|
16750
|
+
"description": "The form settings. Exported again, they plan the same as the file."
|
|
16751
|
+
}
|
|
16752
|
+
]
|
|
16753
|
+
},
|
|
16754
|
+
"google_play": {
|
|
16755
|
+
"oneOf": [
|
|
16756
|
+
{
|
|
16757
|
+
"type": "null"
|
|
16758
|
+
},
|
|
16759
|
+
{
|
|
16760
|
+
"$ref": "#/components/schemas/ImportedPlayPublish",
|
|
16761
|
+
"description": "The file's `publish.play`."
|
|
16762
|
+
}
|
|
16763
|
+
]
|
|
16764
|
+
},
|
|
16765
|
+
"notes": {
|
|
16766
|
+
"type": "array",
|
|
16767
|
+
"items": {
|
|
16768
|
+
"type": "string"
|
|
16769
|
+
},
|
|
16770
|
+
"description": "What the form drops without changing what runs, such as step names."
|
|
16771
|
+
},
|
|
16772
|
+
"representable": {
|
|
16773
|
+
"type": "boolean",
|
|
16774
|
+
"description": "Valid, and the form can hold all of it: `execution_config` is set."
|
|
16775
|
+
},
|
|
16776
|
+
"testflight_group": {
|
|
16777
|
+
"type": [
|
|
16778
|
+
"string",
|
|
16779
|
+
"null"
|
|
16780
|
+
],
|
|
16781
|
+
"description": "The file's `publish.testflight.group`."
|
|
16782
|
+
},
|
|
16783
|
+
"trigger_config": {
|
|
16784
|
+
"oneOf": [
|
|
16785
|
+
{
|
|
16786
|
+
"type": "null"
|
|
16787
|
+
},
|
|
16788
|
+
{
|
|
16789
|
+
"$ref": "#/components/schemas/TriggerConfig",
|
|
16790
|
+
"description": "The trigger settings the file's `on` maps to, with the pipeline's\nschedules kept. Left out when the file has no `on`, so the pipeline's\ntrigger settings stay as they are."
|
|
16791
|
+
}
|
|
16792
|
+
]
|
|
16793
|
+
},
|
|
16794
|
+
"unsupported": {
|
|
16795
|
+
"type": "array",
|
|
16796
|
+
"items": {
|
|
16797
|
+
"type": "string"
|
|
16798
|
+
},
|
|
16799
|
+
"description": "What the form cannot hold, one per entry, such as workflows, vars,\nflavors or an `on` the trigger settings cannot express."
|
|
16800
|
+
},
|
|
16801
|
+
"valid": {
|
|
16802
|
+
"type": "boolean",
|
|
16803
|
+
"description": "The file parses and validates as `oore pipeline validate` checks it."
|
|
16804
|
+
}
|
|
16805
|
+
}
|
|
16806
|
+
},
|
|
16807
|
+
"ImportedPlayPublish": {
|
|
16808
|
+
"type": "object",
|
|
16809
|
+
"description": "A file's `publish.play`, as written.",
|
|
16810
|
+
"required": [
|
|
16811
|
+
"track"
|
|
16812
|
+
],
|
|
16813
|
+
"properties": {
|
|
16814
|
+
"draft": {
|
|
16815
|
+
"type": [
|
|
16816
|
+
"boolean",
|
|
16817
|
+
"null"
|
|
16818
|
+
],
|
|
16819
|
+
"description": "Left out, the Publish settings decide."
|
|
16820
|
+
},
|
|
16821
|
+
"rollout_percent": {
|
|
16822
|
+
"type": [
|
|
16823
|
+
"number",
|
|
16824
|
+
"null"
|
|
16825
|
+
],
|
|
16826
|
+
"format": "double",
|
|
16827
|
+
"description": "The staged rollout as a percentage. Left out, the Publish settings\ndecide."
|
|
16828
|
+
},
|
|
16829
|
+
"track": {
|
|
16830
|
+
"type": "string"
|
|
16831
|
+
}
|
|
16832
|
+
}
|
|
16833
|
+
},
|
|
16612
16834
|
"InstancePreferences": {
|
|
16613
16835
|
"type": "object",
|
|
16614
16836
|
"required": [
|
|
@@ -17971,6 +18193,7 @@
|
|
|
17971
18193
|
"concurrency",
|
|
17972
18194
|
"timeout_minutes",
|
|
17973
18195
|
"approval",
|
|
18196
|
+
"size_budget",
|
|
17974
18197
|
"enabled",
|
|
17975
18198
|
"created_at",
|
|
17976
18199
|
"updated_at"
|
|
@@ -18007,6 +18230,10 @@
|
|
|
18007
18230
|
"project_id": {
|
|
18008
18231
|
"type": "string"
|
|
18009
18232
|
},
|
|
18233
|
+
"size_budget": {
|
|
18234
|
+
"$ref": "#/components/schemas/SizeBudget",
|
|
18235
|
+
"description": "Artifact size limits the commit checks enforce."
|
|
18236
|
+
},
|
|
18010
18237
|
"timeout_minutes": {
|
|
18011
18238
|
"type": "integer",
|
|
18012
18239
|
"format": "int32",
|
|
@@ -21126,6 +21353,72 @@
|
|
|
21126
21353
|
}
|
|
21127
21354
|
}
|
|
21128
21355
|
},
|
|
21356
|
+
"SizeBudget": {
|
|
21357
|
+
"type": "object",
|
|
21358
|
+
"description": "Artifact size limits a pipeline's commit checks enforce. Increase limits\ncompare with the same baseline as the build's size report; without a\nbaseline only `max_bytes` applies. Empty `rules` turns the budget off.",
|
|
21359
|
+
"required": [
|
|
21360
|
+
"mode",
|
|
21361
|
+
"rules"
|
|
21362
|
+
],
|
|
21363
|
+
"properties": {
|
|
21364
|
+
"mode": {
|
|
21365
|
+
"$ref": "#/components/schemas/SizeBudgetMode"
|
|
21366
|
+
},
|
|
21367
|
+
"rules": {
|
|
21368
|
+
"type": "array",
|
|
21369
|
+
"items": {
|
|
21370
|
+
"$ref": "#/components/schemas/SizeBudgetRule"
|
|
21371
|
+
}
|
|
21372
|
+
}
|
|
21373
|
+
},
|
|
21374
|
+
"additionalProperties": false
|
|
21375
|
+
},
|
|
21376
|
+
"SizeBudgetMode": {
|
|
21377
|
+
"type": "string",
|
|
21378
|
+
"description": "What a pipeline's commit check does when an artifact is over its size\nbudget. The build itself never fails.",
|
|
21379
|
+
"enum": [
|
|
21380
|
+
"warn",
|
|
21381
|
+
"fail"
|
|
21382
|
+
]
|
|
21383
|
+
},
|
|
21384
|
+
"SizeBudgetRule": {
|
|
21385
|
+
"type": "object",
|
|
21386
|
+
"description": "Size limits for one kind of artifact. A rule needs at least one limit.",
|
|
21387
|
+
"required": [
|
|
21388
|
+
"kind"
|
|
21389
|
+
],
|
|
21390
|
+
"properties": {
|
|
21391
|
+
"kind": {
|
|
21392
|
+
"type": "string",
|
|
21393
|
+
"description": "The artifact kind: its lowercase file extension, such as `aab`,\n`apk` or `ipa`."
|
|
21394
|
+
},
|
|
21395
|
+
"max_bytes": {
|
|
21396
|
+
"type": [
|
|
21397
|
+
"integer",
|
|
21398
|
+
"null"
|
|
21399
|
+
],
|
|
21400
|
+
"format": "int64",
|
|
21401
|
+
"description": "Largest size allowed, in bytes."
|
|
21402
|
+
},
|
|
21403
|
+
"max_increase_bytes": {
|
|
21404
|
+
"type": [
|
|
21405
|
+
"integer",
|
|
21406
|
+
"null"
|
|
21407
|
+
],
|
|
21408
|
+
"format": "int64",
|
|
21409
|
+
"description": "Largest growth allowed compared with the baseline build, in bytes."
|
|
21410
|
+
},
|
|
21411
|
+
"max_increase_percent": {
|
|
21412
|
+
"type": [
|
|
21413
|
+
"number",
|
|
21414
|
+
"null"
|
|
21415
|
+
],
|
|
21416
|
+
"format": "double",
|
|
21417
|
+
"description": "Largest growth allowed compared with the baseline build, in percent."
|
|
21418
|
+
}
|
|
21419
|
+
},
|
|
21420
|
+
"additionalProperties": false
|
|
21421
|
+
},
|
|
21129
21422
|
"SlackMention": {
|
|
21130
21423
|
"type": "object",
|
|
21131
21424
|
"description": "Maps a person to the Slack member mentioned in their notifications.",
|
|
@@ -22158,6 +22451,16 @@
|
|
|
22158
22451
|
"null"
|
|
22159
22452
|
]
|
|
22160
22453
|
},
|
|
22454
|
+
"size_budget": {
|
|
22455
|
+
"oneOf": [
|
|
22456
|
+
{
|
|
22457
|
+
"type": "null"
|
|
22458
|
+
},
|
|
22459
|
+
{
|
|
22460
|
+
"$ref": "#/components/schemas/SizeBudget"
|
|
22461
|
+
}
|
|
22462
|
+
]
|
|
22463
|
+
},
|
|
22161
22464
|
"timeout_minutes": {
|
|
22162
22465
|
"type": [
|
|
22163
22466
|
"integer",
|
|
@@ -22666,6 +22969,16 @@
|
|
|
22666
22969
|
"null"
|
|
22667
22970
|
]
|
|
22668
22971
|
},
|
|
22972
|
+
"size_budget": {
|
|
22973
|
+
"oneOf": [
|
|
22974
|
+
{
|
|
22975
|
+
"type": "null"
|
|
22976
|
+
},
|
|
22977
|
+
{
|
|
22978
|
+
"$ref": "#/components/schemas/SizeBudget"
|
|
22979
|
+
}
|
|
22980
|
+
]
|
|
22981
|
+
},
|
|
22669
22982
|
"timeout_minutes": {
|
|
22670
22983
|
"type": [
|
|
22671
22984
|
"integer",
|