@qawolf/api-contracts 0.135.0 → 0.140.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 (78) hide show
  1. package/LICENSE +21 -0
  2. package/dist/v1/build/create.d.ts +1 -4
  3. package/dist/v1/build/create.d.ts.map +1 -1
  4. package/dist/v1/build/delete.d.ts +2 -5
  5. package/dist/v1/build/delete.d.ts.map +1 -1
  6. package/dist/v1/build/delete.js +1 -1
  7. package/dist/v1/build/delete.js.map +1 -1
  8. package/dist/v1/build/get.d.ts +1 -4
  9. package/dist/v1/build/get.d.ts.map +1 -1
  10. package/dist/v1/build/index.d.ts +6 -18
  11. package/dist/v1/build/index.d.ts.map +1 -1
  12. package/dist/v1/build/list.d.ts +1 -4
  13. package/dist/v1/build/list.d.ts.map +1 -1
  14. package/dist/v1/build/requestUpload.d.ts +1 -1
  15. package/dist/v1/build/requestUpload.js +3 -3
  16. package/dist/v1/build/requestUpload.js.map +1 -1
  17. package/dist/v1/build/resource.d.ts +2 -8
  18. package/dist/v1/build/resource.d.ts.map +1 -1
  19. package/dist/v1/build/resource.js +5 -6
  20. package/dist/v1/build/resource.js.map +1 -1
  21. package/dist/v1/codeHostIntegration/findForRepository.d.ts +51 -0
  22. package/dist/v1/codeHostIntegration/findForRepository.d.ts.map +1 -0
  23. package/dist/v1/codeHostIntegration/findForRepository.js +90 -0
  24. package/dist/v1/codeHostIntegration/findForRepository.js.map +1 -0
  25. package/dist/v1/codeHostIntegration/index.d.ts +116 -0
  26. package/dist/v1/codeHostIntegration/index.d.ts.map +1 -1
  27. package/dist/v1/codeHostIntegration/index.js +8 -0
  28. package/dist/v1/codeHostIntegration/index.js.map +1 -1
  29. package/dist/v1/deployment/index.d.ts +21 -6
  30. package/dist/v1/deployment/index.d.ts.map +1 -1
  31. package/dist/v1/deployment/reportStatus.d.ts +21 -6
  32. package/dist/v1/deployment/reportStatus.d.ts.map +1 -1
  33. package/dist/v1/deployment/reportStatus.js +1 -1
  34. package/dist/v1/deployment/reportStatus.js.map +1 -1
  35. package/dist/v1/deployment/reportStatusChanges.d.ts +21 -6
  36. package/dist/v1/deployment/reportStatusChanges.d.ts.map +1 -1
  37. package/dist/v1/deployment/reportStatusChanges.js +50 -5
  38. package/dist/v1/deployment/reportStatusChanges.js.map +1 -1
  39. package/dist/v1/extensibleValue.d.ts +8 -0
  40. package/dist/v1/extensibleValue.d.ts.map +1 -0
  41. package/dist/v1/extensibleValue.js +10 -0
  42. package/dist/v1/extensibleValue.js.map +1 -0
  43. package/dist/v1/index.d.ts +322 -84
  44. package/dist/v1/index.d.ts.map +1 -1
  45. package/dist/v1/index.js +6 -12
  46. package/dist/v1/index.js.map +1 -1
  47. package/dist/v1/investigation/finding.d.ts +1 -0
  48. package/dist/v1/investigation/finding.d.ts.map +1 -1
  49. package/dist/v1/investigation/finding.js +4 -0
  50. package/dist/v1/investigation/finding.js.map +1 -1
  51. package/dist/v1/investigation/get.d.ts +1 -0
  52. package/dist/v1/investigation/get.d.ts.map +1 -1
  53. package/dist/v1/investigation/index.d.ts +1 -0
  54. package/dist/v1/investigation/index.d.ts.map +1 -1
  55. package/dist/v1/run/get.d.ts +2 -8
  56. package/dist/v1/run/get.d.ts.map +1 -1
  57. package/dist/v1/run/versions.d.ts +1 -4
  58. package/dist/v1/run/versions.d.ts.map +1 -1
  59. package/dist/v1/run/versions.js +1 -8
  60. package/dist/v1/run/versions.js.map +1 -1
  61. package/dist/v1/runner/catalog.d.ts +10 -10
  62. package/dist/v1/runner/identity.d.ts +4 -4
  63. package/dist/v1/runner/index.d.ts +4 -4
  64. package/dist/v1/runner/list.d.ts +2 -2
  65. package/dist/v1/runner/runFlow.d.ts +4 -4
  66. package/dist/v1/tag/contracts.d.ts +62 -0
  67. package/dist/v1/tag/contracts.d.ts.map +1 -0
  68. package/dist/v1/tag/contracts.js +7 -0
  69. package/dist/v1/tag/contracts.js.map +1 -0
  70. package/dist/v1/usage/breakdown.d.ts +79 -0
  71. package/dist/v1/usage/breakdown.d.ts.map +1 -0
  72. package/dist/v1/usage/breakdown.js +99 -0
  73. package/dist/v1/usage/breakdown.js.map +1 -0
  74. package/dist/v1/usage/index.d.ts +79 -0
  75. package/dist/v1/usage/index.d.ts.map +1 -0
  76. package/dist/v1/usage/index.js +5 -0
  77. package/dist/v1/usage/index.js.map +1 -0
  78. package/package.json +7 -6
@@ -446,10 +446,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
446
446
  environmentId: z.ZodOptional<EnvironmentId>;
447
447
  fileName: z.ZodString;
448
448
  id: z.ZodString;
449
- platform: z.ZodEnum<{
450
- android: "android";
451
- ios: "ios";
452
- }>;
449
+ platform: z.ZodString;
453
450
  sizeBytes: z.ZodOptional<z.ZodNumber>;
454
451
  version: z.ZodOptional<z.ZodString>;
455
452
  url: z.ZodURL;
@@ -467,7 +464,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
467
464
  readonly openWorldHint: false;
468
465
  readonly readOnlyHint: false;
469
466
  };
470
- readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
467
+ readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept. On QA Wolf's cloud, the latest builds of static environments are always kept. Otherwise the newest 50 builds of each app and platform in an environment, and the newest 100 with no environment, are kept up to 180 days after upload; older ones are deleted 7 days after they fall out. The builds of a terminated preview environment are deleted 7 days after it terminates. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
471
468
  readonly input: z.ZodObject<{
472
469
  buildId: z.ZodString;
473
470
  workspaceId: z.ZodOptional<WorkspaceId>;
@@ -486,10 +483,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
486
483
  environmentId: z.ZodOptional<EnvironmentId>;
487
484
  fileName: z.ZodString;
488
485
  id: z.ZodString;
489
- platform: z.ZodEnum<{
490
- android: "android";
491
- ios: "ios";
492
- }>;
486
+ platform: z.ZodString;
493
487
  sizeBytes: z.ZodOptional<z.ZodNumber>;
494
488
  version: z.ZodOptional<z.ZodString>;
495
489
  url: z.ZodURL;
@@ -526,10 +520,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
526
520
  environmentId: z.ZodOptional<EnvironmentId>;
527
521
  fileName: z.ZodString;
528
522
  id: z.ZodString;
529
- platform: z.ZodEnum<{
530
- android: "android";
531
- ios: "ios";
532
- }>;
523
+ platform: z.ZodString;
533
524
  sizeBytes: z.ZodOptional<z.ZodNumber>;
534
525
  version: z.ZodOptional<z.ZodString>;
535
526
  url: z.ZodURL;
@@ -570,10 +561,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
570
561
  environmentId: z.ZodOptional<EnvironmentId>;
571
562
  fileName: z.ZodString;
572
563
  id: z.ZodString;
573
- platform: z.ZodEnum<{
574
- android: "android";
575
- ios: "ios";
576
- }>;
564
+ platform: z.ZodString;
577
565
  sizeBytes: z.ZodOptional<z.ZodNumber>;
578
566
  version: z.ZodOptional<z.ZodString>;
579
567
  url: z.ZodURL;
@@ -616,7 +604,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
616
604
  readonly openWorldHint: false;
617
605
  readonly readOnlyHint: false;
618
606
  };
619
- readonly description: "Get a URL to upload an app build: an .apk, .aab or .ipa, up to 1 GB by default. PUT the file there with uploadHeaders, then call build.create with the buildId.";
607
+ readonly description: "Get a URL to upload an app build: an .apk, .aab, .ipa, or a Linux Electron app as a .deb or .rpm, up to 1 GB by default. PUT the file there with uploadHeaders, then call build.create with the buildId.";
620
608
  readonly input: z.ZodObject<{
621
609
  buildId: z.ZodOptional<z.ZodString>;
622
610
  fileName: z.ZodString;
@@ -664,6 +652,52 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
664
652
  settingsUrl: z.ZodURL;
665
653
  }, z.core.$strip>;
666
654
  };
655
+ findForRepository: {
656
+ readonly annotationJustifications: {
657
+ readonly destructiveHint: "Does not connect, disconnect or change code host integrations.";
658
+ readonly openWorldHint: "Answers from QA Wolf integration records without contacting the URL, GitHub or GitLab.";
659
+ readonly readOnlyHint: "Looks the repository up in the workspace's integrations and stores nothing.";
660
+ };
661
+ readonly annotations: {
662
+ readonly destructiveHint: false;
663
+ readonly openWorldHint: false;
664
+ readonly readOnlyHint: true;
665
+ };
666
+ readonly description: "Check whether QA Wolf can read a repository through the workspace's code host integrations, and what it can access: the repository's code and its pull requests. A CI job calls this before reporting a deployment to decide which changes to include. Not covered means QA Wolf only knows the changes the report includes; settingsUrl is where a workspace admin connects the code host.";
667
+ readonly input: z.ZodObject<{
668
+ url: z.ZodString;
669
+ workspaceId: z.ZodOptional<WorkspaceId>;
670
+ }, z.core.$strip>;
671
+ readonly kind: "read";
672
+ readonly name: "codeHostIntegration.findForRepository";
673
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
674
+ coverage: z.ZodLiteral<"covered">;
675
+ fullName: z.ZodString;
676
+ permissions: z.ZodObject<{
677
+ code: z.ZodEnum<{
678
+ read: "read";
679
+ write: "write";
680
+ "no-access": "no-access";
681
+ }>;
682
+ pullRequests: z.ZodEnum<{
683
+ read: "read";
684
+ write: "write";
685
+ }>;
686
+ }, z.core.$strip>;
687
+ provider: z.ZodEnum<{
688
+ github: "github";
689
+ gitlab: "gitlab";
690
+ }>;
691
+ settingsUrl: z.ZodURL;
692
+ }, z.core.$strip>, z.ZodObject<{
693
+ coverage: z.ZodLiteral<"not-covered">;
694
+ settingsUrl: z.ZodURL;
695
+ }, z.core.$strip>, z.ZodObject<{
696
+ coverage: z.ZodLiteral<"unsupported-host">;
697
+ }, z.core.$strip>, z.ZodObject<{
698
+ coverage: z.ZodLiteral<"unrecognized-url">;
699
+ }, z.core.$strip>], "coverage">;
700
+ };
667
701
  listRepositories: {
668
702
  readonly annotationJustifications: {
669
703
  readonly destructiveHint: "Does not edit repositories, integration settings, or access permissions.";
@@ -889,17 +923,32 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
889
923
  readonly input: z.ZodObject<{
890
924
  builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
891
925
  changes: z.ZodOptional<z.ZodObject<{
892
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
926
+ ci: z.ZodOptional<z.ZodString>;
927
+ items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
928
+ kind: z.ZodLiteral<"pull-request">;
929
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
930
+ number: z.ZodOptional<z.ZodNumber>;
893
931
  changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
894
932
  description: z.ZodOptional<z.ZodString>;
895
- kind: z.ZodEnum<{
896
- "pull-request": "pull-request";
897
- commit: "commit";
898
- }>;
899
933
  title: z.ZodString;
900
934
  url: z.ZodOptional<z.ZodURL>;
901
- }, z.core.$strict>>>;
935
+ }, z.core.$strict>, z.ZodObject<{
936
+ kind: z.ZodLiteral<"commit">;
937
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
938
+ sha: z.ZodOptional<z.ZodString>;
939
+ changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
940
+ description: z.ZodOptional<z.ZodString>;
941
+ title: z.ZodString;
942
+ url: z.ZodOptional<z.ZodURL>;
943
+ }, z.core.$strict>], "kind">>>;
902
944
  omittedCount: z.ZodOptional<z.ZodNumber>;
945
+ problems: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
946
+ kind: z.ZodLiteral<"filter-failed">;
947
+ }, z.core.$strict>, z.ZodObject<{
948
+ kind: z.ZodLiteral<"history-unavailable">;
949
+ }, z.core.$strict>, z.ZodObject<{
950
+ kind: z.ZodLiteral<"since-not-found">;
951
+ }, z.core.$strict>], "kind">>>;
903
952
  releaseNotes: z.ZodOptional<z.ZodString>;
904
953
  }, z.core.$strict>>;
905
954
  deployTarget: z.ZodOptional<z.ZodURL>;
@@ -1969,6 +2018,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1969
2018
  text: z.ZodOptional<z.ZodString>;
1970
2019
  type: z.ZodString;
1971
2020
  }, z.core.$strip>>;
2021
+ revalidationSkippedAttemptId: z.ZodOptional<z.ZodString>;
1972
2022
  state: z.ZodString;
1973
2023
  steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1974
2024
  subSessionIds: z.ZodArray<ChatSessionId>;
@@ -3947,10 +3997,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3947
3997
  environmentId: z.ZodOptional<EnvironmentId>;
3948
3998
  fileName: z.ZodString;
3949
3999
  id: z.ZodString;
3950
- platform: z.ZodEnum<{
3951
- android: "android";
3952
- ios: "ios";
3953
- }>;
4000
+ platform: z.ZodString;
3954
4001
  sizeBytes: z.ZodOptional<z.ZodNumber>;
3955
4002
  version: z.ZodOptional<z.ZodString>;
3956
4003
  url: z.ZodURL;
@@ -3967,10 +4014,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3967
4014
  buildId: z.ZodOptional<z.ZodString>;
3968
4015
  version: z.ZodOptional<z.ZodString>;
3969
4016
  }, z.core.$strip>>;
3970
- platform: z.ZodEnum<{
3971
- android: "android";
3972
- ios: "ios";
3973
- }>;
4017
+ platform: z.ZodString;
3974
4018
  unreportedAttempts: z.ZodNumber;
3975
4019
  warnings: z.ZodArray<z.ZodString>;
3976
4020
  }, z.core.$strip>>;
@@ -4354,18 +4398,18 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4354
4398
  failureReason: z.ZodLiteral<"runner-target-mismatch">;
4355
4399
  outcome: z.ZodLiteral<"failure">;
4356
4400
  requiredRunnerName: z.ZodEnum<{
4357
- android: "android";
4358
- ios: "ios";
4359
4401
  basic: "basic";
4360
4402
  playwright: "playwright";
4403
+ android: "android";
4404
+ ios: "ios";
4361
4405
  windows: "windows";
4362
4406
  mac: "mac";
4363
4407
  }>;
4364
4408
  runnerName: z.ZodEnum<{
4365
- android: "android";
4366
- ios: "ios";
4367
4409
  basic: "basic";
4368
4410
  playwright: "playwright";
4411
+ android: "android";
4412
+ ios: "ios";
4369
4413
  windows: "windows";
4370
4414
  mac: "mac";
4371
4415
  }>;
@@ -5001,10 +5045,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5001
5045
  id: z.ZodString;
5002
5046
  initialUrl: z.ZodOptional<z.ZodURL>;
5003
5047
  runnerName: z.ZodOptional<z.ZodEnum<{
5004
- android: "android";
5005
- ios: "ios";
5006
5048
  basic: "basic";
5007
5049
  playwright: "playwright";
5050
+ android: "android";
5051
+ ios: "ios";
5008
5052
  windows: "windows";
5009
5053
  mac: "mac";
5010
5054
  }>>;
@@ -5016,10 +5060,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5016
5060
  gpuAccelerated: z.ZodBoolean;
5017
5061
  id: z.ZodString;
5018
5062
  runnerName: z.ZodEnum<{
5019
- android: "android";
5020
- ios: "ios";
5021
5063
  basic: "basic";
5022
5064
  playwright: "playwright";
5065
+ android: "android";
5066
+ ios: "ios";
5023
5067
  windows: "windows";
5024
5068
  mac: "mac";
5025
5069
  }>;
@@ -5051,10 +5095,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5051
5095
  gpuAccelerated: z.ZodBoolean;
5052
5096
  id: z.ZodString;
5053
5097
  runnerName: z.ZodEnum<{
5054
- android: "android";
5055
- ios: "ios";
5056
5098
  basic: "basic";
5057
5099
  playwright: "playwright";
5100
+ android: "android";
5101
+ ios: "ios";
5058
5102
  windows: "windows";
5059
5103
  mac: "mac";
5060
5104
  }>;
@@ -6526,6 +6570,81 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
6526
6570
  }, z.core.$strip>;
6527
6571
  };
6528
6572
  };
6573
+ usage: {
6574
+ breakdown: {
6575
+ readonly annotationJustifications: {
6576
+ readonly destructiveHint: "Only reads usage.";
6577
+ readonly openWorldHint: "Reads QA Wolf usage records only.";
6578
+ readonly readOnlyHint: "Adds up recorded usage without changing anything.";
6579
+ };
6580
+ readonly annotations: {
6581
+ readonly destructiveHint: false;
6582
+ readonly openWorldHint: false;
6583
+ readonly readOnlyHint: true;
6584
+ };
6585
+ readonly description: "Show where credits went over a range of UTC days, grouped by time, workspace, environment, platform, source, trigger or user. Use it to find what uses the most credits, or to build a usage dashboard. Credits only, no dollar amounts.";
6586
+ readonly input: z.ZodObject<{
6587
+ from: z.ZodString;
6588
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodEnum<{
6589
+ user: "user";
6590
+ environment: "environment";
6591
+ trigger: "trigger";
6592
+ workspace: "workspace";
6593
+ platform: "platform";
6594
+ source: "source";
6595
+ day: "day";
6596
+ week: "week";
6597
+ month: "month";
6598
+ }>>>;
6599
+ limit: z.ZodDefault<z.ZodNumber>;
6600
+ scope: z.ZodDefault<z.ZodEnum<{
6601
+ organization: "organization";
6602
+ workspace: "workspace";
6603
+ }>>;
6604
+ to: z.ZodString;
6605
+ workspaceId: z.ZodOptional<WorkspaceId>;
6606
+ }, z.core.$strip>;
6607
+ readonly kind: "read";
6608
+ readonly name: "usage.breakdown";
6609
+ readonly output: z.ZodObject<{
6610
+ labels: z.ZodObject<{
6611
+ environments: z.ZodRecord<z.ZodString, z.ZodString>;
6612
+ triggers: z.ZodRecord<z.ZodString, z.ZodString>;
6613
+ users: z.ZodRecord<z.ZodString, z.ZodString>;
6614
+ workspaces: z.ZodRecord<z.ZodString, z.ZodString>;
6615
+ }, z.core.$strip>;
6616
+ others: z.ZodOptional<z.ZodObject<{
6617
+ flowRuns: z.ZodNumber;
6618
+ runCredits: z.ZodNumber;
6619
+ sessionCredits: z.ZodNumber;
6620
+ sessionSeconds: z.ZodNumber;
6621
+ }, z.core.$strip>>;
6622
+ rows: z.ZodArray<z.ZodObject<{
6623
+ flowRuns: z.ZodNumber;
6624
+ runCredits: z.ZodNumber;
6625
+ sessionCredits: z.ZodNumber;
6626
+ sessionSeconds: z.ZodNumber;
6627
+ group: z.ZodObject<{
6628
+ day: z.ZodOptional<z.ZodString>;
6629
+ environment: z.ZodOptional<z.ZodString>;
6630
+ month: z.ZodOptional<z.ZodString>;
6631
+ platform: z.ZodOptional<z.ZodString>;
6632
+ source: z.ZodOptional<z.ZodString>;
6633
+ trigger: z.ZodOptional<z.ZodString>;
6634
+ user: z.ZodOptional<z.ZodString>;
6635
+ week: z.ZodOptional<z.ZodString>;
6636
+ workspace: z.ZodOptional<z.ZodString>;
6637
+ }, z.core.$strip>;
6638
+ }, z.core.$strip>>;
6639
+ totals: z.ZodObject<{
6640
+ flowRuns: z.ZodNumber;
6641
+ runCredits: z.ZodNumber;
6642
+ sessionCredits: z.ZodNumber;
6643
+ sessionSeconds: z.ZodNumber;
6644
+ }, z.core.$strip>;
6645
+ }, z.core.$strip>;
6646
+ };
6647
+ };
6529
6648
  };
6530
6649
  export declare const publicContractsV1: {
6531
6650
  activity: {
@@ -6961,10 +7080,7 @@ export declare const publicContractsV1: {
6961
7080
  environmentId: z.ZodOptional<PublicIdSchema>;
6962
7081
  fileName: z.ZodString;
6963
7082
  id: z.ZodString;
6964
- platform: z.ZodEnum<{
6965
- android: "android";
6966
- ios: "ios";
6967
- }>;
7083
+ platform: z.ZodString;
6968
7084
  sizeBytes: z.ZodOptional<z.ZodNumber>;
6969
7085
  version: z.ZodOptional<z.ZodString>;
6970
7086
  url: z.ZodURL;
@@ -6982,7 +7098,7 @@ export declare const publicContractsV1: {
6982
7098
  readonly openWorldHint: false;
6983
7099
  readonly readOnlyHint: false;
6984
7100
  };
6985
- readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
7101
+ readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept. On QA Wolf's cloud, the latest builds of static environments are always kept. Otherwise the newest 50 builds of each app and platform in an environment, and the newest 100 with no environment, are kept up to 180 days after upload; older ones are deleted 7 days after they fall out. The builds of a terminated preview environment are deleted 7 days after it terminates. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
6986
7102
  readonly input: z.ZodObject<{
6987
7103
  buildId: z.ZodString;
6988
7104
  workspaceId: z.ZodOptional<PublicIdSchema>;
@@ -7001,10 +7117,7 @@ export declare const publicContractsV1: {
7001
7117
  environmentId: z.ZodOptional<PublicIdSchema>;
7002
7118
  fileName: z.ZodString;
7003
7119
  id: z.ZodString;
7004
- platform: z.ZodEnum<{
7005
- android: "android";
7006
- ios: "ios";
7007
- }>;
7120
+ platform: z.ZodString;
7008
7121
  sizeBytes: z.ZodOptional<z.ZodNumber>;
7009
7122
  version: z.ZodOptional<z.ZodString>;
7010
7123
  url: z.ZodURL;
@@ -7041,10 +7154,7 @@ export declare const publicContractsV1: {
7041
7154
  environmentId: z.ZodOptional<PublicIdSchema>;
7042
7155
  fileName: z.ZodString;
7043
7156
  id: z.ZodString;
7044
- platform: z.ZodEnum<{
7045
- android: "android";
7046
- ios: "ios";
7047
- }>;
7157
+ platform: z.ZodString;
7048
7158
  sizeBytes: z.ZodOptional<z.ZodNumber>;
7049
7159
  version: z.ZodOptional<z.ZodString>;
7050
7160
  url: z.ZodURL;
@@ -7085,10 +7195,7 @@ export declare const publicContractsV1: {
7085
7195
  environmentId: z.ZodOptional<PublicIdSchema>;
7086
7196
  fileName: z.ZodString;
7087
7197
  id: z.ZodString;
7088
- platform: z.ZodEnum<{
7089
- android: "android";
7090
- ios: "ios";
7091
- }>;
7198
+ platform: z.ZodString;
7092
7199
  sizeBytes: z.ZodOptional<z.ZodNumber>;
7093
7200
  version: z.ZodOptional<z.ZodString>;
7094
7201
  url: z.ZodURL;
@@ -7131,7 +7238,7 @@ export declare const publicContractsV1: {
7131
7238
  readonly openWorldHint: false;
7132
7239
  readonly readOnlyHint: false;
7133
7240
  };
7134
- readonly description: "Get a URL to upload an app build: an .apk, .aab or .ipa, up to 1 GB by default. PUT the file there with uploadHeaders, then call build.create with the buildId.";
7241
+ readonly description: "Get a URL to upload an app build: an .apk, .aab, .ipa, or a Linux Electron app as a .deb or .rpm, up to 1 GB by default. PUT the file there with uploadHeaders, then call build.create with the buildId.";
7135
7242
  readonly input: z.ZodObject<{
7136
7243
  buildId: z.ZodOptional<z.ZodString>;
7137
7244
  fileName: z.ZodString;
@@ -7179,6 +7286,52 @@ export declare const publicContractsV1: {
7179
7286
  settingsUrl: z.ZodURL;
7180
7287
  }, z.core.$strip>;
7181
7288
  };
7289
+ findForRepository: {
7290
+ readonly annotationJustifications: {
7291
+ readonly destructiveHint: "Does not connect, disconnect or change code host integrations.";
7292
+ readonly openWorldHint: "Answers from QA Wolf integration records without contacting the URL, GitHub or GitLab.";
7293
+ readonly readOnlyHint: "Looks the repository up in the workspace's integrations and stores nothing.";
7294
+ };
7295
+ readonly annotations: {
7296
+ readonly destructiveHint: false;
7297
+ readonly openWorldHint: false;
7298
+ readonly readOnlyHint: true;
7299
+ };
7300
+ readonly description: "Check whether QA Wolf can read a repository through the workspace's code host integrations, and what it can access: the repository's code and its pull requests. A CI job calls this before reporting a deployment to decide which changes to include. Not covered means QA Wolf only knows the changes the report includes; settingsUrl is where a workspace admin connects the code host.";
7301
+ readonly input: z.ZodObject<{
7302
+ url: z.ZodString;
7303
+ workspaceId: z.ZodOptional<PublicIdSchema>;
7304
+ }, z.core.$strip>;
7305
+ readonly kind: "read";
7306
+ readonly name: "codeHostIntegration.findForRepository";
7307
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
7308
+ coverage: z.ZodLiteral<"covered">;
7309
+ fullName: z.ZodString;
7310
+ permissions: z.ZodObject<{
7311
+ code: z.ZodEnum<{
7312
+ read: "read";
7313
+ write: "write";
7314
+ "no-access": "no-access";
7315
+ }>;
7316
+ pullRequests: z.ZodEnum<{
7317
+ read: "read";
7318
+ write: "write";
7319
+ }>;
7320
+ }, z.core.$strip>;
7321
+ provider: z.ZodEnum<{
7322
+ github: "github";
7323
+ gitlab: "gitlab";
7324
+ }>;
7325
+ settingsUrl: z.ZodURL;
7326
+ }, z.core.$strip>, z.ZodObject<{
7327
+ coverage: z.ZodLiteral<"not-covered">;
7328
+ settingsUrl: z.ZodURL;
7329
+ }, z.core.$strip>, z.ZodObject<{
7330
+ coverage: z.ZodLiteral<"unsupported-host">;
7331
+ }, z.core.$strip>, z.ZodObject<{
7332
+ coverage: z.ZodLiteral<"unrecognized-url">;
7333
+ }, z.core.$strip>], "coverage">;
7334
+ };
7182
7335
  listRepositories: {
7183
7336
  readonly annotationJustifications: {
7184
7337
  readonly destructiveHint: "Does not edit repositories, integration settings, or access permissions.";
@@ -7404,17 +7557,32 @@ export declare const publicContractsV1: {
7404
7557
  readonly input: z.ZodObject<{
7405
7558
  builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
7406
7559
  changes: z.ZodOptional<z.ZodObject<{
7407
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
7560
+ ci: z.ZodOptional<z.ZodString>;
7561
+ items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7562
+ kind: z.ZodLiteral<"pull-request">;
7563
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
7564
+ number: z.ZodOptional<z.ZodNumber>;
7408
7565
  changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
7409
7566
  description: z.ZodOptional<z.ZodString>;
7410
- kind: z.ZodEnum<{
7411
- "pull-request": "pull-request";
7412
- commit: "commit";
7413
- }>;
7414
7567
  title: z.ZodString;
7415
7568
  url: z.ZodOptional<z.ZodURL>;
7416
- }, z.core.$strict>>>;
7569
+ }, z.core.$strict>, z.ZodObject<{
7570
+ kind: z.ZodLiteral<"commit">;
7571
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
7572
+ sha: z.ZodOptional<z.ZodString>;
7573
+ changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
7574
+ description: z.ZodOptional<z.ZodString>;
7575
+ title: z.ZodString;
7576
+ url: z.ZodOptional<z.ZodURL>;
7577
+ }, z.core.$strict>], "kind">>>;
7417
7578
  omittedCount: z.ZodOptional<z.ZodNumber>;
7579
+ problems: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7580
+ kind: z.ZodLiteral<"filter-failed">;
7581
+ }, z.core.$strict>, z.ZodObject<{
7582
+ kind: z.ZodLiteral<"history-unavailable">;
7583
+ }, z.core.$strict>, z.ZodObject<{
7584
+ kind: z.ZodLiteral<"since-not-found">;
7585
+ }, z.core.$strict>], "kind">>>;
7418
7586
  releaseNotes: z.ZodOptional<z.ZodString>;
7419
7587
  }, z.core.$strict>>;
7420
7588
  deployTarget: z.ZodOptional<z.ZodURL>;
@@ -8484,6 +8652,7 @@ export declare const publicContractsV1: {
8484
8652
  text: z.ZodOptional<z.ZodString>;
8485
8653
  type: z.ZodString;
8486
8654
  }, z.core.$strip>>;
8655
+ revalidationSkippedAttemptId: z.ZodOptional<z.ZodString>;
8487
8656
  state: z.ZodString;
8488
8657
  steps: z.ZodOptional<z.ZodArray<z.ZodString>>;
8489
8658
  subSessionIds: z.ZodArray<PublicIdSchema>;
@@ -10462,10 +10631,7 @@ export declare const publicContractsV1: {
10462
10631
  environmentId: z.ZodOptional<PublicIdSchema>;
10463
10632
  fileName: z.ZodString;
10464
10633
  id: z.ZodString;
10465
- platform: z.ZodEnum<{
10466
- android: "android";
10467
- ios: "ios";
10468
- }>;
10634
+ platform: z.ZodString;
10469
10635
  sizeBytes: z.ZodOptional<z.ZodNumber>;
10470
10636
  version: z.ZodOptional<z.ZodString>;
10471
10637
  url: z.ZodURL;
@@ -10482,10 +10648,7 @@ export declare const publicContractsV1: {
10482
10648
  buildId: z.ZodOptional<z.ZodString>;
10483
10649
  version: z.ZodOptional<z.ZodString>;
10484
10650
  }, z.core.$strip>>;
10485
- platform: z.ZodEnum<{
10486
- android: "android";
10487
- ios: "ios";
10488
- }>;
10651
+ platform: z.ZodString;
10489
10652
  unreportedAttempts: z.ZodNumber;
10490
10653
  warnings: z.ZodArray<z.ZodString>;
10491
10654
  }, z.core.$strip>>;
@@ -10869,18 +11032,18 @@ export declare const publicContractsV1: {
10869
11032
  failureReason: z.ZodLiteral<"runner-target-mismatch">;
10870
11033
  outcome: z.ZodLiteral<"failure">;
10871
11034
  requiredRunnerName: z.ZodEnum<{
10872
- android: "android";
10873
- ios: "ios";
10874
11035
  basic: "basic";
10875
11036
  playwright: "playwright";
11037
+ android: "android";
11038
+ ios: "ios";
10876
11039
  windows: "windows";
10877
11040
  mac: "mac";
10878
11041
  }>;
10879
11042
  runnerName: z.ZodEnum<{
10880
- android: "android";
10881
- ios: "ios";
10882
11043
  basic: "basic";
10883
11044
  playwright: "playwright";
11045
+ android: "android";
11046
+ ios: "ios";
10884
11047
  windows: "windows";
10885
11048
  mac: "mac";
10886
11049
  }>;
@@ -11516,10 +11679,10 @@ export declare const publicContractsV1: {
11516
11679
  id: z.ZodString;
11517
11680
  initialUrl: z.ZodOptional<z.ZodURL>;
11518
11681
  runnerName: z.ZodOptional<z.ZodEnum<{
11519
- android: "android";
11520
- ios: "ios";
11521
11682
  basic: "basic";
11522
11683
  playwright: "playwright";
11684
+ android: "android";
11685
+ ios: "ios";
11523
11686
  windows: "windows";
11524
11687
  mac: "mac";
11525
11688
  }>>;
@@ -11531,10 +11694,10 @@ export declare const publicContractsV1: {
11531
11694
  gpuAccelerated: z.ZodBoolean;
11532
11695
  id: z.ZodString;
11533
11696
  runnerName: z.ZodEnum<{
11534
- android: "android";
11535
- ios: "ios";
11536
11697
  basic: "basic";
11537
11698
  playwright: "playwright";
11699
+ android: "android";
11700
+ ios: "ios";
11538
11701
  windows: "windows";
11539
11702
  mac: "mac";
11540
11703
  }>;
@@ -11566,10 +11729,10 @@ export declare const publicContractsV1: {
11566
11729
  gpuAccelerated: z.ZodBoolean;
11567
11730
  id: z.ZodString;
11568
11731
  runnerName: z.ZodEnum<{
11569
- android: "android";
11570
- ios: "ios";
11571
11732
  basic: "basic";
11572
11733
  playwright: "playwright";
11734
+ android: "android";
11735
+ ios: "ios";
11573
11736
  windows: "windows";
11574
11737
  mac: "mac";
11575
11738
  }>;
@@ -13041,5 +13204,80 @@ export declare const publicContractsV1: {
13041
13204
  }, z.core.$strip>;
13042
13205
  };
13043
13206
  };
13207
+ usage: {
13208
+ breakdown: {
13209
+ readonly annotationJustifications: {
13210
+ readonly destructiveHint: "Only reads usage.";
13211
+ readonly openWorldHint: "Reads QA Wolf usage records only.";
13212
+ readonly readOnlyHint: "Adds up recorded usage without changing anything.";
13213
+ };
13214
+ readonly annotations: {
13215
+ readonly destructiveHint: false;
13216
+ readonly openWorldHint: false;
13217
+ readonly readOnlyHint: true;
13218
+ };
13219
+ readonly description: "Show where credits went over a range of UTC days, grouped by time, workspace, environment, platform, source, trigger or user. Use it to find what uses the most credits, or to build a usage dashboard. Credits only, no dollar amounts.";
13220
+ readonly input: z.ZodObject<{
13221
+ from: z.ZodString;
13222
+ groupBy: z.ZodDefault<z.ZodArray<z.ZodEnum<{
13223
+ user: "user";
13224
+ environment: "environment";
13225
+ trigger: "trigger";
13226
+ workspace: "workspace";
13227
+ platform: "platform";
13228
+ source: "source";
13229
+ day: "day";
13230
+ week: "week";
13231
+ month: "month";
13232
+ }>>>;
13233
+ limit: z.ZodDefault<z.ZodNumber>;
13234
+ scope: z.ZodDefault<z.ZodEnum<{
13235
+ organization: "organization";
13236
+ workspace: "workspace";
13237
+ }>>;
13238
+ to: z.ZodString;
13239
+ workspaceId: z.ZodOptional<PublicIdSchema>;
13240
+ }, z.core.$strip>;
13241
+ readonly kind: "read";
13242
+ readonly name: "usage.breakdown";
13243
+ readonly output: z.ZodObject<{
13244
+ labels: z.ZodObject<{
13245
+ environments: z.ZodRecord<z.ZodString, z.ZodString>;
13246
+ triggers: z.ZodRecord<z.ZodString, z.ZodString>;
13247
+ users: z.ZodRecord<z.ZodString, z.ZodString>;
13248
+ workspaces: z.ZodRecord<z.ZodString, z.ZodString>;
13249
+ }, z.core.$strip>;
13250
+ others: z.ZodOptional<z.ZodObject<{
13251
+ flowRuns: z.ZodNumber;
13252
+ runCredits: z.ZodNumber;
13253
+ sessionCredits: z.ZodNumber;
13254
+ sessionSeconds: z.ZodNumber;
13255
+ }, z.core.$strip>>;
13256
+ rows: z.ZodArray<z.ZodObject<{
13257
+ flowRuns: z.ZodNumber;
13258
+ runCredits: z.ZodNumber;
13259
+ sessionCredits: z.ZodNumber;
13260
+ sessionSeconds: z.ZodNumber;
13261
+ group: z.ZodObject<{
13262
+ day: z.ZodOptional<z.ZodString>;
13263
+ environment: z.ZodOptional<z.ZodString>;
13264
+ month: z.ZodOptional<z.ZodString>;
13265
+ platform: z.ZodOptional<z.ZodString>;
13266
+ source: z.ZodOptional<z.ZodString>;
13267
+ trigger: z.ZodOptional<z.ZodString>;
13268
+ user: z.ZodOptional<z.ZodString>;
13269
+ week: z.ZodOptional<z.ZodString>;
13270
+ workspace: z.ZodOptional<z.ZodString>;
13271
+ }, z.core.$strip>;
13272
+ }, z.core.$strip>>;
13273
+ totals: z.ZodObject<{
13274
+ flowRuns: z.ZodNumber;
13275
+ runCredits: z.ZodNumber;
13276
+ sessionCredits: z.ZodNumber;
13277
+ sessionSeconds: z.ZodNumber;
13278
+ }, z.core.$strip>;
13279
+ }, z.core.$strip>;
13280
+ };
13281
+ };
13044
13282
  };
13045
13283
  //# sourceMappingURL=index.d.ts.map