@qawolf/api-contracts 0.17.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.
@@ -34,7 +34,7 @@ export declare const makeGetEnvironmentContract: <EnvironmentId extends PublicId
34
34
  }, z.core.$strip>;
35
35
  };
36
36
  export declare const makeListEnvironmentVariableNamesContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: PublicIdSchemasOf<EnvironmentId, FlowId, RunId>) => {
37
- readonly description: "List the names of an environment's variables, sorted. Names only — values never leave the server.";
37
+ readonly description: "Use this to answer which QA Wolf environment variables are available to test code. Returns names only; values never leave the server.";
38
38
  readonly input: z.ZodObject<{
39
39
  environmentId: PublicIdSchema;
40
40
  }, z.core.$strip>;
@@ -45,7 +45,7 @@ export declare const makeListEnvironmentVariableNamesContract: <EnvironmentId ex
45
45
  }, z.core.$strip>;
46
46
  };
47
47
  export declare const makeSetEnvironmentVariableContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: PublicIdSchemasOf<EnvironmentId, FlowId, RunId>) => {
48
- readonly description: "Create or replace one environment variable by name and return its stored name. The value is never returned.";
48
+ readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use DEFAULT_ENVIRONMENT_EMAIL. The value is never returned.";
49
49
  readonly input: z.ZodObject<{
50
50
  environmentId: PublicIdSchema;
51
51
  name: z.ZodString;
@@ -27,7 +27,7 @@ export const makeListEnvironmentVariableNamesContract = (ids) => {
27
27
  .describe("Names of the environment's variables, sorted alphabetically. Values are never returned."),
28
28
  });
29
29
  return {
30
- description: "List the names of an environment's variables, sorted. Names only — values never leave the server.",
30
+ description: "Use this to answer which QA Wolf environment variables are available to test code. Returns names only; values never leave the server.",
31
31
  input,
32
32
  kind: "read",
33
33
  name: "environment.listVariableNames",
@@ -53,7 +53,7 @@ export const makeSetEnvironmentVariableContract = (ids) => {
53
53
  .describe("The stored variable name after whitespace is replaced with underscores and letters are uppercased."),
54
54
  });
55
55
  return {
56
- description: "Create or replace one environment variable by name and return its stored name. The value is never returned.",
56
+ description: 'Create or replace an environment variable. If the user asks to create one for "my email" without naming it, use DEFAULT_ENVIRONMENT_EMAIL. The value is never returned.',
57
57
  input,
58
58
  kind: "write",
59
59
  name: "environment.setVariable",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAKxC,GAAoD,EACpD,EAAE;IACF,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,aAAa,EAAE,GAAG,CAAC,cAAc;KAClC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,6BAA6B,CAAC,GAAG,CAAC,CAAC;IAElD,OAAO;QACL,WAAW,EACT,+EAA+E;QACjF,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAiB;QACvB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAKtD,GAAoD,EACpD,EAAE;IACF,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,aAAa,EAAE,GAAG,CAAC,cAAc;KAClC,CAAC,CAAC;IACH,wEAAwE;IACxE,0EAA0E;IAC1E,sEAAsE;IACtE,uEAAuE;IACvE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,aAAa,EAAE,CAAC;aACb,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;aACjB,QAAQ,CACP,yFAAyF,CAC1F;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,mGAAmG;QACrG,KAAK;QACL,IAA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7 +152,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
152
152
  }, z.core.$strip>;
153
153
  };
154
154
  listVariableNames: {
155
- readonly description: "List the names of an environment's variables, sorted. Names only — values never leave the server.";
155
+ readonly description: "Use this to answer which QA Wolf environment variables are available to test code. Returns names only; values never leave the server.";
156
156
  readonly input: z.ZodObject<{
157
157
  environmentId: PublicIdSchema;
158
158
  }, z.core.$strip>;
@@ -163,7 +163,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
163
163
  }, z.core.$strip>;
164
164
  };
165
165
  setVariable: {
166
- readonly description: "Create or replace one environment variable by name and return its stored name. The value is never returned.";
166
+ readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use DEFAULT_ENVIRONMENT_EMAIL. The value is never returned.";
167
167
  readonly input: z.ZodObject<{
168
168
  environmentId: PublicIdSchema;
169
169
  name: z.ZodString;
@@ -388,29 +388,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
388
388
  };
389
389
  update: {
390
390
  readonly description: "Update an issue owned by the caller's team. Omitted fields remain unchanged.";
391
- readonly input: z.ZodUnion<readonly [z.ZodObject<{
392
- description: z.ZodString;
393
- issueId: IssueId;
394
- name: z.ZodOptional<z.ZodString>;
395
- priority: z.ZodOptional<z.ZodEnum<{
396
- unprioritized: "unprioritized";
397
- low: "low";
398
- medium: "medium";
399
- high: "high";
400
- urgent: "urgent";
401
- }>>;
402
- status: z.ZodOptional<z.ZodEnum<{
403
- pending: "pending";
404
- inProgress: "inProgress";
405
- paused: "paused";
406
- resolved: "resolved";
407
- canceled: "canceled";
408
- archived: "archived";
409
- }>>;
410
- }, z.core.$strip>, z.ZodObject<{
411
- name: z.ZodString;
391
+ readonly input: z.ZodObject<{
412
392
  description: z.ZodOptional<z.ZodString>;
413
393
  issueId: IssueId;
394
+ name: z.ZodOptional<z.ZodString>;
414
395
  priority: z.ZodOptional<z.ZodEnum<{
415
396
  unprioritized: "unprioritized";
416
397
  low: "low";
@@ -426,45 +407,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
426
407
  canceled: "canceled";
427
408
  archived: "archived";
428
409
  }>>;
429
- }, z.core.$strip>, z.ZodObject<{
430
- priority: z.ZodEnum<{
431
- unprioritized: "unprioritized";
432
- low: "low";
433
- medium: "medium";
434
- high: "high";
435
- urgent: "urgent";
436
- }>;
437
- description: z.ZodOptional<z.ZodString>;
438
- issueId: IssueId;
439
- name: z.ZodOptional<z.ZodString>;
440
- status: z.ZodOptional<z.ZodEnum<{
441
- pending: "pending";
442
- inProgress: "inProgress";
443
- paused: "paused";
444
- resolved: "resolved";
445
- canceled: "canceled";
446
- archived: "archived";
447
- }>>;
448
- }, z.core.$strip>, z.ZodObject<{
449
- status: z.ZodEnum<{
450
- pending: "pending";
451
- inProgress: "inProgress";
452
- paused: "paused";
453
- resolved: "resolved";
454
- canceled: "canceled";
455
- archived: "archived";
456
- }>;
457
- description: z.ZodOptional<z.ZodString>;
458
- issueId: IssueId;
459
- name: z.ZodOptional<z.ZodString>;
460
- priority: z.ZodOptional<z.ZodEnum<{
461
- unprioritized: "unprioritized";
462
- low: "low";
463
- medium: "medium";
464
- high: "high";
465
- urgent: "urgent";
466
- }>>;
467
- }, z.core.$strip>]>;
410
+ }, z.core.$strip>;
468
411
  readonly kind: "write";
469
412
  readonly name: "issue.update";
470
413
  readonly output: z.ZodObject<{
@@ -618,6 +561,26 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
618
561
  url: z.ZodURL;
619
562
  }, z.core.$strip>;
620
563
  };
564
+ list: {
565
+ readonly description: "List the team's tags, alphabetical by name. Tag names select flows in run.create.";
566
+ readonly input: z.ZodObject<{
567
+ cursor: z.ZodOptional<z.ZodString>;
568
+ limit: z.ZodDefault<z.ZodNumber>;
569
+ includeFlowIds: z.ZodDefault<z.ZodBoolean>;
570
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
571
+ }, z.core.$strip>;
572
+ readonly kind: "read";
573
+ readonly name: "tag.list";
574
+ readonly output: z.ZodObject<{
575
+ nextCursor: z.ZodOptional<z.ZodString>;
576
+ tags: z.ZodArray<z.ZodObject<{
577
+ color: z.ZodString;
578
+ name: z.ZodString;
579
+ url: z.ZodURL;
580
+ flowIds: z.ZodOptional<z.ZodArray<FlowId>>;
581
+ }, z.core.$strip>>;
582
+ }, z.core.$strip>;
583
+ };
621
584
  };
622
585
  };
623
586
  export declare const publicContractsV1: {
@@ -758,7 +721,7 @@ export declare const publicContractsV1: {
758
721
  }, z.core.$strip>;
759
722
  };
760
723
  listVariableNames: {
761
- readonly description: "List the names of an environment's variables, sorted. Names only — values never leave the server.";
724
+ readonly description: "Use this to answer which QA Wolf environment variables are available to test code. Returns names only; values never leave the server.";
762
725
  readonly input: z.ZodObject<{
763
726
  environmentId: PublicIdSchema;
764
727
  }, z.core.$strip>;
@@ -769,7 +732,7 @@ export declare const publicContractsV1: {
769
732
  }, z.core.$strip>;
770
733
  };
771
734
  setVariable: {
772
- readonly description: "Create or replace one environment variable by name and return its stored name. The value is never returned.";
735
+ readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use DEFAULT_ENVIRONMENT_EMAIL. The value is never returned.";
773
736
  readonly input: z.ZodObject<{
774
737
  environmentId: PublicIdSchema;
775
738
  name: z.ZodString;
@@ -994,29 +957,10 @@ export declare const publicContractsV1: {
994
957
  };
995
958
  update: {
996
959
  readonly description: "Update an issue owned by the caller's team. Omitted fields remain unchanged.";
997
- readonly input: z.ZodUnion<readonly [z.ZodObject<{
998
- description: z.ZodString;
999
- issueId: PublicIdSchema;
1000
- name: z.ZodOptional<z.ZodString>;
1001
- priority: z.ZodOptional<z.ZodEnum<{
1002
- unprioritized: "unprioritized";
1003
- low: "low";
1004
- medium: "medium";
1005
- high: "high";
1006
- urgent: "urgent";
1007
- }>>;
1008
- status: z.ZodOptional<z.ZodEnum<{
1009
- pending: "pending";
1010
- inProgress: "inProgress";
1011
- paused: "paused";
1012
- resolved: "resolved";
1013
- canceled: "canceled";
1014
- archived: "archived";
1015
- }>>;
1016
- }, z.core.$strip>, z.ZodObject<{
1017
- name: z.ZodString;
960
+ readonly input: z.ZodObject<{
1018
961
  description: z.ZodOptional<z.ZodString>;
1019
962
  issueId: PublicIdSchema;
963
+ name: z.ZodOptional<z.ZodString>;
1020
964
  priority: z.ZodOptional<z.ZodEnum<{
1021
965
  unprioritized: "unprioritized";
1022
966
  low: "low";
@@ -1032,45 +976,7 @@ export declare const publicContractsV1: {
1032
976
  canceled: "canceled";
1033
977
  archived: "archived";
1034
978
  }>>;
1035
- }, z.core.$strip>, z.ZodObject<{
1036
- priority: z.ZodEnum<{
1037
- unprioritized: "unprioritized";
1038
- low: "low";
1039
- medium: "medium";
1040
- high: "high";
1041
- urgent: "urgent";
1042
- }>;
1043
- description: z.ZodOptional<z.ZodString>;
1044
- issueId: PublicIdSchema;
1045
- name: z.ZodOptional<z.ZodString>;
1046
- status: z.ZodOptional<z.ZodEnum<{
1047
- pending: "pending";
1048
- inProgress: "inProgress";
1049
- paused: "paused";
1050
- resolved: "resolved";
1051
- canceled: "canceled";
1052
- archived: "archived";
1053
- }>>;
1054
- }, z.core.$strip>, z.ZodObject<{
1055
- status: z.ZodEnum<{
1056
- pending: "pending";
1057
- inProgress: "inProgress";
1058
- paused: "paused";
1059
- resolved: "resolved";
1060
- canceled: "canceled";
1061
- archived: "archived";
1062
- }>;
1063
- description: z.ZodOptional<z.ZodString>;
1064
- issueId: PublicIdSchema;
1065
- name: z.ZodOptional<z.ZodString>;
1066
- priority: z.ZodOptional<z.ZodEnum<{
1067
- unprioritized: "unprioritized";
1068
- low: "low";
1069
- medium: "medium";
1070
- high: "high";
1071
- urgent: "urgent";
1072
- }>>;
1073
- }, z.core.$strip>]>;
979
+ }, z.core.$strip>;
1074
980
  readonly kind: "write";
1075
981
  readonly name: "issue.update";
1076
982
  readonly output: z.ZodObject<{
@@ -1224,6 +1130,26 @@ export declare const publicContractsV1: {
1224
1130
  url: z.ZodURL;
1225
1131
  }, z.core.$strip>;
1226
1132
  };
1133
+ list: {
1134
+ readonly description: "List the team's tags, alphabetical by name. Tag names select flows in run.create.";
1135
+ readonly input: z.ZodObject<{
1136
+ cursor: z.ZodOptional<z.ZodString>;
1137
+ limit: z.ZodDefault<z.ZodNumber>;
1138
+ includeFlowIds: z.ZodDefault<z.ZodBoolean>;
1139
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
1140
+ }, z.core.$strip>;
1141
+ readonly kind: "read";
1142
+ readonly name: "tag.list";
1143
+ readonly output: z.ZodObject<{
1144
+ nextCursor: z.ZodOptional<z.ZodString>;
1145
+ tags: z.ZodArray<z.ZodObject<{
1146
+ color: z.ZodString;
1147
+ name: z.ZodString;
1148
+ url: z.ZodURL;
1149
+ flowIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
1150
+ }, z.core.$strip>>;
1151
+ }, z.core.$strip>;
1152
+ };
1227
1153
  };
1228
1154
  };
1229
1155
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,YAAY,EACV,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAGzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAW5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EAEvB,MAAM,UAAU,CAAC;AASlB,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCF,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,CAAC"}
package/dist/v1/index.js CHANGED
@@ -15,6 +15,7 @@ import { makeFindRunsContract } from "./run/find.js";
15
15
  import { makeGetRunContract } from "./run/get.js";
16
16
  import { makeCreateRunContract } from "./run/index.js";
17
17
  import { makeCreateTagContract } from "./tag/index.js";
18
+ import { makeListTagsContract } from "./tag/list.js";
18
19
  /**
19
20
  * Builds the v1 contract catalog from a set of id schemas.
20
21
  *
@@ -53,6 +54,7 @@ export const makeContractsV1 = (ids) => {
53
54
  },
54
55
  tag: {
55
56
  create: makeCreateTagContract(),
57
+ list: makeListTag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AAW,CAAC;YAC/C,GAAG,EAAE,0BAA0B,CAAC,WAAW,CAAC;YAC5C,iBAAiB,EAAE,wCAAwC,CAAC,WAAW,CAAC;YACxE,WAAW,EAAE,kCAAkC,CAAC,WAAW,CAAC;SAC7D;QACD,IAAI,EAAE;YACJ,MAAM,EAAE,yBAAyB,CAAC,WAAW,CAAC;YAC9C,IAAI,EAAE,qBAAqB,CAAC,WAAW,CAAC;SACzC;QACD,KAAK,EAAE;YACL,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC;YAC5C,IAAI,EAAE,sBAAsB,CAAC,WAAW,CAAC;YACzC,GAAG,EAAE,oBAAoB,CAAC,WAAW,CAAC;YACtC,MAAM,EAAE,uBAAuB,CAAC,WAAW,CAAC;SAC7C;QACD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,CAAC,WAAW,CAAC;YAC1C,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;YACvC,GAAG,EAAE,kBAAkB,CAAC,WAAW,CAAC;SACrC;QACD,GAAG,EAAE;YACH,MAAM,EAAE,qBAAqB,EAAE;YAC/B,IAAI,EAAE,oBAAoB,CAAC,WAAW,CAAC;SACxC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC"}
@@ -7,29 +7,10 @@ export declare const makeUpdateIssueContract: <EnvironmentId extends PublicIdSch
7
7
  run: RunId;
8
8
  }) => {
9
9
  readonly description: "Update an issue owned by the caller's team. Omitted fields remain unchanged.";
10
- readonly input: z.ZodUnion<readonly [z.ZodObject<{
11
- description: z.ZodString;
12
- issueId: IssueId;
13
- name: z.ZodOptional<z.ZodString>;
14
- priority: z.ZodOptional<z.ZodEnum<{
15
- unprioritized: "unprioritized";
16
- low: "low";
17
- medium: "medium";
18
- high: "high";
19
- urgent: "urgent";
20
- }>>;
21
- status: z.ZodOptional<z.ZodEnum<{
22
- pending: "pending";
23
- inProgress: "inProgress";
24
- paused: "paused";
25
- resolved: "resolved";
26
- canceled: "canceled";
27
- archived: "archived";
28
- }>>;
29
- }, z.core.$strip>, z.ZodObject<{
30
- name: z.ZodString;
10
+ readonly input: z.ZodObject<{
31
11
  description: z.ZodOptional<z.ZodString>;
32
12
  issueId: IssueId;
13
+ name: z.ZodOptional<z.ZodString>;
33
14
  priority: z.ZodOptional<z.ZodEnum<{
34
15
  unprioritized: "unprioritized";
35
16
  low: "low";
@@ -45,45 +26,7 @@ export declare const makeUpdateIssueContract: <EnvironmentId extends PublicIdSch
45
26
  canceled: "canceled";
46
27
  archived: "archived";
47
28
  }>>;
48
- }, z.core.$strip>, z.ZodObject<{
49
- priority: z.ZodEnum<{
50
- unprioritized: "unprioritized";
51
- low: "low";
52
- medium: "medium";
53
- high: "high";
54
- urgent: "urgent";
55
- }>;
56
- description: z.ZodOptional<z.ZodString>;
57
- issueId: IssueId;
58
- name: z.ZodOptional<z.ZodString>;
59
- status: z.ZodOptional<z.ZodEnum<{
60
- pending: "pending";
61
- inProgress: "inProgress";
62
- paused: "paused";
63
- resolved: "resolved";
64
- canceled: "canceled";
65
- archived: "archived";
66
- }>>;
67
- }, z.core.$strip>, z.ZodObject<{
68
- status: z.ZodEnum<{
69
- pending: "pending";
70
- inProgress: "inProgress";
71
- paused: "paused";
72
- resolved: "resolved";
73
- canceled: "canceled";
74
- archived: "archived";
75
- }>;
76
- description: z.ZodOptional<z.ZodString>;
77
- issueId: IssueId;
78
- name: z.ZodOptional<z.ZodString>;
79
- priority: z.ZodOptional<z.ZodEnum<{
80
- unprioritized: "unprioritized";
81
- low: "low";
82
- medium: "medium";
83
- high: "high";
84
- urgent: "urgent";
85
- }>>;
86
- }, z.core.$strip>]>;
29
+ }, z.core.$strip>;
87
30
  readonly kind: "write";
88
31
  readonly name: "issue.update";
89
32
  readonly output: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CA,CAAC"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/v1/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,cAAc,EAC9B,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDA,CAAC"}
@@ -5,20 +5,26 @@ export const makeUpdateIssueContract = (ids) => {
5
5
  .string()
6
6
  .describe("The issue description as plain text; each line becomes a paragraph. Markdown is not parsed.");
7
7
  const nameSchema = z.string().trim().min(1).max(255);
8
- const inputShape = {
8
+ // A refined object rather than a union of "one field is required" branches:
9
+ // a union converts to `anyOf`, which has no flat property set for the CLI to
10
+ // derive flags from. Compare makeFlowSelectionSchema, which expresses the
11
+ // same "at least one of" rule this way.
12
+ const input = z
13
+ .object({
9
14
  description: descriptionSchema.optional(),
10
15
  issueId: ids.issue,
11
16
  name: nameSchema.optional(),
12
17
  priority: issuePrioritySchema.optional(),
13
18
  status: issueStatusSchema.optional(),
14
- };
15
- const input = z.union([
16
- z.object({ ...inputShape, description: descriptionSchema }),
17
- z.object({ ...inputShape, name: nameSchema }),
18
- z.object({ ...inputShape, priority: issuePrioritySchema }),
19
- z.object({ ...inputShape, status: issueStatusSchema }),
20
- ], {
21
- error: "At least one of description, name, priority, or status is required.",
19
+ })
20
+ .refine((update) =>
21
+ // An empty description clears the description, so compare against
22
+ // undefined rather than testing truthiness.
23
+ update.description !== undefined ||
24
+ update.name !== undefined ||
25
+ update.priority !== undefined ||
26
+ update.status !== undefined, {
27
+ message: "At least one of description, name, priority, or status is required.",
22
28
  });
23
29
  const output = z.object({
24
30
  issue: makeIssueResourceSchema(ids),
@@ -1 +1 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/v1/issue/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAKrC,GAKD,EAAE,EAAE;IACH,MAAM,iBAAiB,GAAG,CAAC;SACxB,MAAM,EAAE;SACR,QAAQ,CACP,6FAA6F,CAC9F,CAAC;IACJ,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG;QACjB,WAAW,EAAE,iBAAiB,CAAC,QAAQ,EAAE;QACzC,O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AM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrD,4EAA4E;IAC5E,6EAA6E;IAC7E,0EAA0E;IAC1E,wCAAwC;IACxC,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,WAAW,EAAE,iBAAiB,CAAC,QAAQ,EAAE;QACzC,OAAO,EAAE,GAAG,CAAC,KAAK;QAClB,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE;QAC3B,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,EAAE;QACxC,MAAM,EAAE,iBAAiB,CAAC,QAAQ,EAAE;KACrC,CAAC;SACD,MAAM,CACL,CAAC,MAAM,EAAE,EAAE;IACT,kEAAkE;IAClE,4CAA4C;IAC5C,MAAM,CAAC,WAAW,KAAK,SAAS;QAChC,MAAM,CAAC,IAAI,KAAK,SAAS;QACzB,MAAM,CAAC,QAAQ,KAAK,SAAS;QAC7B,MAAM,CAAC,MAAM,KAAK,SAAS,EAC7B;QACE,OAAO,EACL,qEAAqE;KACxE,CACF,CAAC;IACJ,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC;KACpC,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,8EAA8E;QAChF,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,cAAc;QACpB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeListTagsContract: <FlowId extends PublicIdSchema>(ids: {
4
+ flow: FlowId;
5
+ }) => {
6
+ readonly description: "List the team's tags, alphabetical by name. Tag names select flows in run.create.";
7
+ readonly input: z.ZodObject<{
8
+ cursor: z.ZodOptional<z.ZodString>;
9
+ limit: z.ZodDefault<z.ZodNumber>;
10
+ includeFlowIds: z.ZodDefault<z.ZodBoolean>;
11
+ names: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ }, z.core.$strip>;
13
+ readonly kind: "read";
14
+ readonly name: "tag.list";
15
+ readonly output: z.ZodObject<{
16
+ nextCursor: z.ZodOptional<z.ZodString>;
17
+ tags: z.ZodArray<z.ZodObject<{
18
+ color: z.ZodString;
19
+ name: z.ZodString;
20
+ url: z.ZodURL;
21
+ flowIds: z.ZodOptional<z.ZodArray<FlowId>>;
22
+ }, z.core.$strip>>;
23
+ }, z.core.$strip>;
24
+ };
25
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/v1/tag/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,oBAAoB,GAAI,MAAM,SAAS,cAAc,EAAE,KAAK;IACvE,IAAI,EAAE,MAAM,CAAC;CACd;;;;;;;;;;;;;;;;;;;CA6CA,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+ import { makePaginationInputFields, nextCursorSchema } from "../pagination.js";
3
+ import { makeTagResourceSchema } from "./index.js";
4
+ export const makeListTagsContract = (ids) => {
5
+ const input = z.object({
6
+ includeFlowIds: z
7
+ .boolean()
8
+ .default(false)
9
+ .describe("Also return the ids of the flows that carry each tag."),
10
+ names: z
11
+ .array(z.string().trim().min(1))
12
+ .min(1)
13
+ .max(100)
14
+ .optional()
15
+ .describe("Only list tags with these names. Matching is case sensitive. Omit to list all tags."),
16
+ ...makePaginationInputFields({ defaultLimit: 20, maxLimit: 100 }),
17
+ });
18
+ const output = z.object({
19
+ nextCursor: nextCursorSchema,
20
+ tags: z
21
+ .array(makeTagResourceSchema().extend({
22
+ flowIds: z
23
+ .array(ids.flow)
24
+ .optional()
25
+ .describe("Ids of the flows that carry the tag. Present only when includeFlowIds is set."),
26
+ }))
27
+ .describe("The team's tags, alphabetical by name."),
28
+ });
29
+ return {
30
+ description: "List the team's tags, alphabetical by name. Tag names select flows in run.create.",
31
+ input,
32
+ kind: "read",
33
+ name: "tag.list",
34
+ output,
35
+ };
36
+ };
37
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/v1/tag/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAgC,GAEnE,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,cAAc,EAAE,CAAC;aACd,OAAO,EAAE;aACT,OAAO,CAAC,KAAK,CAAC;aACd,QAAQ,CAAC,uDAAuD,CAAC;QACpE,KAAK,EAAE,CAAC;aACL,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;aAC/B,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,qFAAqF,CACtF;QACH,GAAG,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;KAClE,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,UAAU,EAAE,gBAAgB;QAC5B,IAAI,EAAE,CAAC;aACJ,KAAK,CACJ,qBAAqB,EAAE,CAAC,MAAM,CAAC;YAC7B,OAAO,EAAE,CAAC;iBACP,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;iBACf,QAAQ,EAAE;iBACV,QAAQ,CACP,+EAA+E,CAChF;SACJ,CAAC,CACH;aACA,QAAQ,CAAC,wCAAwC,CAAC;KACtD,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,mFAAmF;QACrF,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,UAAU;QAChB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qawolf/api-contracts",
3
- "version": "0.17.0",
3
+ "version": "0.20.0",
4
4
  "private": false,
5
5
  "description": "Versioned contracts for the QA Wolf public API",
6
6
  "repository": {