@qawolf/api-contracts 0.18.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<{
@@ -778,7 +721,7 @@ export declare const publicContractsV1: {
778
721
  }, z.core.$strip>;
779
722
  };
780
723
  listVariableNames: {
781
- 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.";
782
725
  readonly input: z.ZodObject<{
783
726
  environmentId: PublicIdSchema;
784
727
  }, z.core.$strip>;
@@ -789,7 +732,7 @@ export declare const publicContractsV1: {
789
732
  }, z.core.$strip>;
790
733
  };
791
734
  setVariable: {
792
- 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.";
793
736
  readonly input: z.ZodObject<{
794
737
  environmentId: PublicIdSchema;
795
738
  name: z.ZodString;
@@ -1014,29 +957,10 @@ export declare const publicContractsV1: {
1014
957
  };
1015
958
  update: {
1016
959
  readonly description: "Update an issue owned by the caller's team. Omitted fields remain unchanged.";
1017
- readonly input: z.ZodUnion<readonly [z.ZodObject<{
1018
- description: z.ZodString;
1019
- issueId: PublicIdSchema;
1020
- name: z.ZodOptional<z.ZodString>;
1021
- priority: z.ZodOptional<z.ZodEnum<{
1022
- unprioritized: "unprioritized";
1023
- low: "low";
1024
- medium: "medium";
1025
- high: "high";
1026
- urgent: "urgent";
1027
- }>>;
1028
- status: z.ZodOptional<z.ZodEnum<{
1029
- pending: "pending";
1030
- inProgress: "inProgress";
1031
- paused: "paused";
1032
- resolved: "resolved";
1033
- canceled: "canceled";
1034
- archived: "archived";
1035
- }>>;
1036
- }, z.core.$strip>, z.ZodObject<{
1037
- name: z.ZodString;
960
+ readonly input: z.ZodObject<{
1038
961
  description: z.ZodOptional<z.ZodString>;
1039
962
  issueId: PublicIdSchema;
963
+ name: z.ZodOptional<z.ZodString>;
1040
964
  priority: z.ZodOptional<z.ZodEnum<{
1041
965
  unprioritized: "unprioritized";
1042
966
  low: "low";
@@ -1052,45 +976,7 @@ export declare const publicContractsV1: {
1052
976
  canceled: "canceled";
1053
977
  archived: "archived";
1054
978
  }>>;
1055
- }, z.core.$strip>, z.ZodObject<{
1056
- priority: z.ZodEnum<{
1057
- unprioritized: "unprioritized";
1058
- low: "low";
1059
- medium: "medium";
1060
- high: "high";
1061
- urgent: "urgent";
1062
- }>;
1063
- description: z.ZodOptional<z.ZodString>;
1064
- issueId: PublicIdSchema;
1065
- name: z.ZodOptional<z.ZodString>;
1066
- status: z.ZodOptional<z.ZodEnum<{
1067
- pending: "pending";
1068
- inProgress: "inProgress";
1069
- paused: "paused";
1070
- resolved: "resolved";
1071
- canceled: "canceled";
1072
- archived: "archived";
1073
- }>>;
1074
- }, z.core.$strip>, z.ZodObject<{
1075
- status: z.ZodEnum<{
1076
- pending: "pending";
1077
- inProgress: "inProgress";
1078
- paused: "paused";
1079
- resolved: "resolved";
1080
- canceled: "canceled";
1081
- archived: "archived";
1082
- }>;
1083
- description: z.ZodOptional<z.ZodString>;
1084
- issueId: PublicIdSchema;
1085
- name: z.ZodOptional<z.ZodString>;
1086
- priority: z.ZodOptional<z.ZodEnum<{
1087
- unprioritized: "unprioritized";
1088
- low: "low";
1089
- medium: "medium";
1090
- high: "high";
1091
- urgent: "urgent";
1092
- }>>;
1093
- }, z.core.$strip>]>;
979
+ }, z.core.$strip>;
1094
980
  readonly kind: "write";
1095
981
  readonly name: "issue.update";
1096
982
  readonly output: z.ZodObject<{
@@ -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;AAUlB,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,oBAAoB,IAAI,CAAC,CAAC,KAAK,CACpE,GAAG,CAAC,OAAO,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCF,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoC,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,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AAC;IACJ,MAAM,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qawolf/api-contracts",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "private": false,
5
5
  "description": "Versioned contracts for the QA Wolf public API",
6
6
  "repository": {