@xemahq/kernel-contracts 0.30.0 → 0.31.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 (91) hide show
  1. package/dist/decision-gate/index.d.ts +3 -0
  2. package/dist/decision-gate/index.d.ts.map +1 -0
  3. package/dist/decision-gate/index.js +19 -0
  4. package/dist/decision-gate/index.js.map +1 -0
  5. package/dist/decision-gate/lib/decision-gate.d.ts +55 -0
  6. package/dist/decision-gate/lib/decision-gate.d.ts.map +1 -0
  7. package/dist/decision-gate/lib/decision-gate.js +56 -0
  8. package/dist/decision-gate/lib/decision-gate.js.map +1 -0
  9. package/dist/decision-gate/lib/pinned-subject-artifact.d.ts +9 -0
  10. package/dist/decision-gate/lib/pinned-subject-artifact.d.ts.map +1 -0
  11. package/dist/decision-gate/lib/pinned-subject-artifact.js +11 -0
  12. package/dist/decision-gate/lib/pinned-subject-artifact.js.map +1 -0
  13. package/dist/question/index.d.ts +5 -0
  14. package/dist/question/index.d.ts.map +1 -0
  15. package/dist/question/index.js +21 -0
  16. package/dist/question/index.js.map +1 -0
  17. package/dist/question/lib/question-action-context.d.ts +7 -0
  18. package/dist/question/lib/question-action-context.d.ts.map +1 -0
  19. package/dist/question/lib/question-action-context.js +3 -0
  20. package/dist/question/lib/question-action-context.js.map +1 -0
  21. package/dist/question/lib/question-dto.d.ts +54 -0
  22. package/dist/question/lib/question-dto.d.ts.map +1 -0
  23. package/dist/question/lib/question-dto.js +3 -0
  24. package/dist/question/lib/question-dto.js.map +1 -0
  25. package/dist/question/lib/question-enums.d.ts +20 -0
  26. package/dist/question/lib/question-enums.d.ts.map +1 -0
  27. package/dist/question/lib/question-enums.js +32 -0
  28. package/dist/question/lib/question-enums.js.map +1 -0
  29. package/dist/question/lib/question-escalation.d.ts +8 -0
  30. package/dist/question/lib/question-escalation.d.ts.map +1 -0
  31. package/dist/question/lib/question-escalation.js +3 -0
  32. package/dist/question/lib/question-escalation.js.map +1 -0
  33. package/dist/review-inquiry/index.d.ts +3 -0
  34. package/dist/review-inquiry/index.d.ts.map +1 -0
  35. package/dist/review-inquiry/index.js +19 -0
  36. package/dist/review-inquiry/index.js.map +1 -0
  37. package/dist/review-inquiry/lib/review-inquiry.d.ts +138 -0
  38. package/dist/review-inquiry/lib/review-inquiry.d.ts.map +1 -0
  39. package/dist/review-inquiry/lib/review-inquiry.js +20 -0
  40. package/dist/review-inquiry/lib/review-inquiry.js.map +1 -0
  41. package/dist/review-inquiry/lib/web-annotation.d.ts +195 -0
  42. package/dist/review-inquiry/lib/web-annotation.d.ts.map +1 -0
  43. package/dist/review-inquiry/lib/web-annotation.js +59 -0
  44. package/dist/review-inquiry/lib/web-annotation.js.map +1 -0
  45. package/dist/run-detail/index.d.ts +7 -0
  46. package/dist/run-detail/index.d.ts.map +1 -0
  47. package/dist/run-detail/index.js +23 -0
  48. package/dist/run-detail/index.js.map +1 -0
  49. package/dist/run-detail/lib/run-detail-dto.d.ts +34 -0
  50. package/dist/run-detail/lib/run-detail-dto.d.ts.map +1 -0
  51. package/dist/run-detail/lib/run-detail-dto.js +3 -0
  52. package/dist/run-detail/lib/run-detail-dto.js.map +1 -0
  53. package/dist/run-detail/lib/run-mode.d.ts +14 -0
  54. package/dist/run-detail/lib/run-mode.d.ts.map +1 -0
  55. package/dist/run-detail/lib/run-mode.js +25 -0
  56. package/dist/run-detail/lib/run-mode.js.map +1 -0
  57. package/dist/run-detail/lib/run-outcome.d.ts +28 -0
  58. package/dist/run-detail/lib/run-outcome.d.ts.map +1 -0
  59. package/dist/run-detail/lib/run-outcome.js +27 -0
  60. package/dist/run-detail/lib/run-outcome.js.map +1 -0
  61. package/dist/run-detail/lib/run-phase-rail.d.ts +21 -0
  62. package/dist/run-detail/lib/run-phase-rail.d.ts.map +1 -0
  63. package/dist/run-detail/lib/run-phase-rail.js +14 -0
  64. package/dist/run-detail/lib/run-phase-rail.js.map +1 -0
  65. package/dist/run-detail/lib/run-revision-state.d.ts +47 -0
  66. package/dist/run-detail/lib/run-revision-state.d.ts.map +1 -0
  67. package/dist/run-detail/lib/run-revision-state.js +11 -0
  68. package/dist/run-detail/lib/run-revision-state.js.map +1 -0
  69. package/dist/run-detail/lib/wait-windows.d.ts +15 -0
  70. package/dist/run-detail/lib/wait-windows.d.ts.map +1 -0
  71. package/dist/run-detail/lib/wait-windows.js +39 -0
  72. package/dist/run-detail/lib/wait-windows.js.map +1 -0
  73. package/package.json +1 -1
  74. package/src/decision-gate/index.ts +13 -0
  75. package/src/decision-gate/lib/decision-gate.ts +113 -0
  76. package/src/decision-gate/lib/pinned-subject-artifact.ts +29 -0
  77. package/src/question/index.ts +24 -0
  78. package/src/question/lib/question-action-context.ts +26 -0
  79. package/src/question/lib/question-dto.ts +143 -0
  80. package/src/question/lib/question-enums.ts +67 -0
  81. package/src/question/lib/question-escalation.ts +22 -0
  82. package/src/review-inquiry/index.ts +19 -0
  83. package/src/review-inquiry/lib/review-inquiry.ts +76 -0
  84. package/src/review-inquiry/lib/web-annotation.ts +136 -0
  85. package/src/run-detail/index.ts +22 -0
  86. package/src/run-detail/lib/run-detail-dto.ts +84 -0
  87. package/src/run-detail/lib/run-mode.ts +65 -0
  88. package/src/run-detail/lib/run-outcome.ts +66 -0
  89. package/src/run-detail/lib/run-phase-rail.ts +43 -0
  90. package/src/run-detail/lib/run-revision-state.ts +83 -0
  91. package/src/run-detail/lib/wait-windows.ts +70 -0
@@ -0,0 +1,3 @@
1
+ export * from './lib/pinned-subject-artifact';
2
+ export * from './lib/decision-gate';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decision-gate/index.ts"],"names":[],"mappings":"AAWA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./lib/pinned-subject-artifact"), exports);
18
+ __exportStar(require("./lib/decision-gate"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decision-gate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAWA,gEAA8C;AAC9C,sDAAoC"}
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ export declare enum DecisionVerdict {
3
+ APPROVE = "approve",
4
+ REJECT = "reject",
5
+ ABSTAIN = "abstain"
6
+ }
7
+ export declare enum DecisionGateOutcome {
8
+ APPROVED = "approved",
9
+ REJECTED = "rejected",
10
+ EXPIRED_APPROVED = "expired_approved",
11
+ EXPIRED_REJECTED = "expired_rejected",
12
+ CANCELLED = "cancelled"
13
+ }
14
+ export declare const DecisionGatePromptSchema: z.ZodObject<{
15
+ subjectArtifacts: z.ZodArray<z.ZodObject<{
16
+ artifactId: z.ZodString;
17
+ versionId: z.ZodString;
18
+ version: z.ZodNumber;
19
+ hash: z.ZodString;
20
+ }, z.core.$strip>>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$loose>;
23
+ export type DecisionGatePrompt = z.infer<typeof DecisionGatePromptSchema>;
24
+ export declare const DecisionGateReplySchema: z.ZodObject<{
25
+ verdict: z.ZodEnum<typeof DecisionVerdict>;
26
+ reason: z.ZodOptional<z.ZodString>;
27
+ attachment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
28
+ }, z.core.$strip>;
29
+ export type DecisionGateReply = z.infer<typeof DecisionGateReplySchema>;
30
+ export declare const DecisionRecordSchema: z.ZodObject<{
31
+ recipientId: z.ZodString;
32
+ verdict: z.ZodEnum<typeof DecisionVerdict>;
33
+ reason: z.ZodNullable<z.ZodString>;
34
+ submittedBy: z.ZodString;
35
+ submittedAtIso: z.ZodString;
36
+ }, z.core.$strip>;
37
+ export type DecisionRecord = z.infer<typeof DecisionRecordSchema>;
38
+ export declare const DecisionGateVerdictSchema: z.ZodObject<{
39
+ outcome: z.ZodEnum<typeof DecisionGateOutcome>;
40
+ approvedArtifacts: z.ZodArray<z.ZodObject<{
41
+ artifactId: z.ZodString;
42
+ versionId: z.ZodString;
43
+ version: z.ZodNumber;
44
+ hash: z.ZodString;
45
+ }, z.core.$strip>>;
46
+ decisionTrail: z.ZodArray<z.ZodObject<{
47
+ recipientId: z.ZodString;
48
+ verdict: z.ZodEnum<typeof DecisionVerdict>;
49
+ reason: z.ZodNullable<z.ZodString>;
50
+ submittedBy: z.ZodString;
51
+ submittedAtIso: z.ZodString;
52
+ }, z.core.$strip>>;
53
+ }, z.core.$strip>;
54
+ export type DecisionGateVerdict = z.infer<typeof DecisionGateVerdictSchema>;
55
+ //# sourceMappingURL=decision-gate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decision-gate.d.ts","sourceRoot":"","sources":["../../../src/decision-gate/lib/decision-gate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB;AAMD,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,gBAAgB,qBAAqB;IACrC,gBAAgB,qBAAqB;IACrC,SAAS,cAAc;CACxB;AAaD,eAAO,MAAM,wBAAwB;;;;;;;;iBAKrB,CAAC;AACjB,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAgB1E,eAAO,MAAM,uBAAuB;;;;iBAgBhC,CAAC;AACL,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAOxE,eAAO,MAAM,oBAAoB;;;;;;iBAM/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAWlE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;iBAIpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DecisionGateVerdictSchema = exports.DecisionRecordSchema = exports.DecisionGateReplySchema = exports.DecisionGatePromptSchema = exports.DecisionGateOutcome = exports.DecisionVerdict = void 0;
4
+ const zod_1 = require("zod");
5
+ const pinned_subject_artifact_1 = require("./pinned-subject-artifact");
6
+ var DecisionVerdict;
7
+ (function (DecisionVerdict) {
8
+ DecisionVerdict["APPROVE"] = "approve";
9
+ DecisionVerdict["REJECT"] = "reject";
10
+ DecisionVerdict["ABSTAIN"] = "abstain";
11
+ })(DecisionVerdict || (exports.DecisionVerdict = DecisionVerdict = {}));
12
+ var DecisionGateOutcome;
13
+ (function (DecisionGateOutcome) {
14
+ DecisionGateOutcome["APPROVED"] = "approved";
15
+ DecisionGateOutcome["REJECTED"] = "rejected";
16
+ DecisionGateOutcome["EXPIRED_APPROVED"] = "expired_approved";
17
+ DecisionGateOutcome["EXPIRED_REJECTED"] = "expired_rejected";
18
+ DecisionGateOutcome["CANCELLED"] = "cancelled";
19
+ })(DecisionGateOutcome || (exports.DecisionGateOutcome = DecisionGateOutcome = {}));
20
+ exports.DecisionGatePromptSchema = zod_1.z
21
+ .object({
22
+ subjectArtifacts: zod_1.z.array(pinned_subject_artifact_1.PinnedSubjectArtifactSchema),
23
+ description: zod_1.z.string().optional(),
24
+ })
25
+ .passthrough();
26
+ exports.DecisionGateReplySchema = zod_1.z
27
+ .object({
28
+ verdict: zod_1.z.nativeEnum(DecisionVerdict),
29
+ reason: zod_1.z.string().optional(),
30
+ attachment: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
31
+ })
32
+ .superRefine((value, ctx) => {
33
+ if (value.verdict !== DecisionVerdict.REJECT)
34
+ return;
35
+ const trimmed = value.reason?.trim() ?? '';
36
+ if (trimmed.length === 0) {
37
+ ctx.addIssue({
38
+ code: 'custom',
39
+ path: ['reason'],
40
+ message: 'reason is required and must be non-empty when verdict is reject',
41
+ });
42
+ }
43
+ });
44
+ exports.DecisionRecordSchema = zod_1.z.object({
45
+ recipientId: zod_1.z.string().min(1),
46
+ verdict: zod_1.z.nativeEnum(DecisionVerdict),
47
+ reason: zod_1.z.string().nullable(),
48
+ submittedBy: zod_1.z.string().min(1),
49
+ submittedAtIso: zod_1.z.string(),
50
+ });
51
+ exports.DecisionGateVerdictSchema = zod_1.z.object({
52
+ outcome: zod_1.z.nativeEnum(DecisionGateOutcome),
53
+ approvedArtifacts: zod_1.z.array(pinned_subject_artifact_1.PinnedSubjectArtifactSchema),
54
+ decisionTrail: zod_1.z.array(exports.DecisionRecordSchema),
55
+ });
56
+ //# sourceMappingURL=decision-gate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decision-gate.js","sourceRoot":"","sources":["../../../src/decision-gate/lib/decision-gate.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uEAAwE;AAYxE,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B;AAMD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,4CAAqB,CAAA;IACrB,4DAAqC,CAAA;IACrC,4DAAqC,CAAA;IACrC,8CAAuB,CAAA;AACzB,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B;AAaY,QAAA,wBAAwB,GAAG,OAAC;KACtC,MAAM,CAAC;IACN,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,qDAA2B,CAAC;IACtD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,WAAW,EAAE,CAAC;AAiBJ,QAAA,uBAAuB,GAAG,OAAC;KACrC,MAAM,CAAC;IACN,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,eAAe,CAAC;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC;KACD,WAAW,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC1B,IAAI,KAAK,CAAC,OAAO,KAAK,eAAe,CAAC,MAAM;QAAE,OAAO;IACrD,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,GAAG,CAAC,QAAQ,CAAC;YACX,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,CAAC,QAAQ,CAAC;YAChB,OAAO,EAAE,iEAAiE;SAC3E,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC;AAQQ,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,eAAe,CAAC;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAYU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAC1C,iBAAiB,EAAE,OAAC,CAAC,KAAK,CAAC,qDAA2B,CAAC;IACvD,aAAa,EAAE,OAAC,CAAC,KAAK,CAAC,4BAAoB,CAAC;CAC7C,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const PinnedSubjectArtifactSchema: z.ZodObject<{
3
+ artifactId: z.ZodString;
4
+ versionId: z.ZodString;
5
+ version: z.ZodNumber;
6
+ hash: z.ZodString;
7
+ }, z.core.$strip>;
8
+ export type PinnedSubjectArtifact = z.infer<typeof PinnedSubjectArtifactSchema>;
9
+ //# sourceMappingURL=pinned-subject-artifact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pinned-subject-artifact.d.ts","sourceRoot":"","sources":["../../../src/decision-gate/lib/pinned-subject-artifact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAoBxB,eAAO,MAAM,2BAA2B;;;;;iBAKtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,2BAA2B,CACnC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PinnedSubjectArtifactSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.PinnedSubjectArtifactSchema = zod_1.z.object({
6
+ artifactId: zod_1.z.string().min(1),
7
+ versionId: zod_1.z.string().min(1),
8
+ version: zod_1.z.number().int().positive(),
9
+ hash: zod_1.z.string().min(1),
10
+ });
11
+ //# sourceMappingURL=pinned-subject-artifact.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pinned-subject-artifact.js","sourceRoot":"","sources":["../../../src/decision-gate/lib/pinned-subject-artifact.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAoBX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './lib/question-enums';
2
+ export * from './lib/question-dto';
3
+ export * from './lib/question-action-context';
4
+ export * from './lib/question-escalation';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/question/index.ts"],"names":[],"mappings":"AAoBA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./lib/question-enums"), exports);
18
+ __exportStar(require("./lib/question-dto"), exports);
19
+ __exportStar(require("./lib/question-action-context"), exports);
20
+ __exportStar(require("./lib/question-escalation"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/question/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,uDAAqC;AACrC,qDAAmC;AACnC,gEAA8C;AAC9C,4DAA0C"}
@@ -0,0 +1,7 @@
1
+ export interface QuestionActionContext {
2
+ readonly runId: string;
3
+ readonly workflowSlug: string;
4
+ readonly taskAnchor: string;
5
+ readonly stageKey: string | null;
6
+ }
7
+ //# sourceMappingURL=question-action-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-action-context.d.ts","sourceRoot":"","sources":["../../../src/question/lib/question-action-context.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,qBAAqB;IAEpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAO9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=question-action-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-action-context.js","sourceRoot":"","sources":["../../../src/question/lib/question-action-context.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ import { QuestionActionContext } from './question-action-context';
2
+ import { QuestionEscalationLevel } from './question-escalation';
3
+ import { QuestionKind, QuestionSeverity, QuestionStatus } from './question-enums';
4
+ export interface QuestionDto {
5
+ readonly id: string;
6
+ readonly kind: QuestionKind;
7
+ readonly status: QuestionStatus;
8
+ readonly severity: QuestionSeverity;
9
+ readonly title: string;
10
+ readonly detail: string | null;
11
+ readonly description: string | null;
12
+ readonly recipientId: string;
13
+ readonly subjects: readonly QuestionSubjectRef[];
14
+ readonly extras: Readonly<Record<string, unknown>>;
15
+ readonly action: QuestionActionContext;
16
+ readonly escalationHistory: readonly QuestionEscalationLevel[];
17
+ readonly occurredAt: string;
18
+ readonly expiresAt: string | null;
19
+ readonly kindPayload: QuestionKindPayload;
20
+ }
21
+ export interface QuestionSubjectRef {
22
+ readonly artifactId: string;
23
+ readonly version: number;
24
+ readonly kind?: string;
25
+ readonly title?: string;
26
+ }
27
+ export type QuestionKindPayload = {
28
+ readonly kind: QuestionKind.APPROVAL;
29
+ readonly approval: ApprovalKindPayload;
30
+ } | {
31
+ readonly kind: QuestionKind.CHOICE;
32
+ readonly choice: ChoiceKindPayload;
33
+ } | {
34
+ readonly kind: QuestionKind.FREEFORM;
35
+ readonly freeform: FreeformKindPayload;
36
+ };
37
+ export interface ApprovalKindPayload {
38
+ readonly allowRevise: boolean;
39
+ readonly suggestedRejectReasons: readonly string[];
40
+ }
41
+ export interface ChoiceKindPayload {
42
+ readonly options: readonly QuestionChoiceOptionDto[];
43
+ readonly multiSelect: boolean;
44
+ }
45
+ export interface QuestionChoiceOptionDto {
46
+ readonly value: string;
47
+ readonly label: string;
48
+ readonly description: string | null;
49
+ }
50
+ export interface FreeformKindPayload {
51
+ readonly placeholder: string | null;
52
+ readonly maxLength: number | null;
53
+ }
54
+ //# sourceMappingURL=question-dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-dto.d.ts","sourceRoot":"","sources":["../../../src/question/lib/question-dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAoBlF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAGpC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAO/B,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAS7B,QAAQ,CAAC,QAAQ,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAmBjD,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IAEnD,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IAGvC,QAAQ,CAAC,iBAAiB,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAG/D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAMlC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;CAC3C;AAOD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAIzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,MAAM,mBAAmB,GAC3B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAA;CAAE,GAChF;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAA;CAAE,GAC1E;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAErF,MAAM,WAAW,mBAAmB;IAElC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAK9B,QAAQ,CAAC,sBAAsB,EAAE,SAAS,MAAM,EAAE,CAAC;CACpD;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,uBAAuB,EAAE,CAAC;IAErD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED,MAAM,WAAW,mBAAmB;IAElC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=question-dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-dto.js","sourceRoot":"","sources":["../../../src/question/lib/question-dto.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ export declare enum QuestionKind {
2
+ APPROVAL = "approval",
3
+ CHOICE = "choice",
4
+ FREEFORM = "freeform"
5
+ }
6
+ export declare enum QuestionStatus {
7
+ PENDING = "pending",
8
+ RESPONDED = "responded",
9
+ RESOLVED = "resolved",
10
+ EXPIRED = "expired",
11
+ CANCELLED = "cancelled"
12
+ }
13
+ export declare const TERMINAL_QUESTION_STATUSES: readonly QuestionStatus[];
14
+ export declare const BADGE_COUNTING_QUESTION_STATUSES: readonly QuestionStatus[];
15
+ export declare enum QuestionSeverity {
16
+ URGENT = "urgent",
17
+ NORMAL = "normal",
18
+ INFO = "info"
19
+ }
20
+ //# sourceMappingURL=question-enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-enums.d.ts","sourceRoot":"","sources":["../../../src/question/lib/question-enums.ts"],"names":[],"mappings":"AAcA,oBAAY,YAAY;IACtB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAiBD,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;CACxB;AAGD,eAAO,MAAM,0BAA0B,EAAE,SAAS,cAAc,EAItD,CAAC;AAGX,eAAO,MAAM,gCAAgC,EAAE,SAAS,cAAc,EAE5D,CAAC;AASX,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuestionSeverity = exports.BADGE_COUNTING_QUESTION_STATUSES = exports.TERMINAL_QUESTION_STATUSES = exports.QuestionStatus = exports.QuestionKind = void 0;
4
+ var QuestionKind;
5
+ (function (QuestionKind) {
6
+ QuestionKind["APPROVAL"] = "approval";
7
+ QuestionKind["CHOICE"] = "choice";
8
+ QuestionKind["FREEFORM"] = "freeform";
9
+ })(QuestionKind || (exports.QuestionKind = QuestionKind = {}));
10
+ var QuestionStatus;
11
+ (function (QuestionStatus) {
12
+ QuestionStatus["PENDING"] = "pending";
13
+ QuestionStatus["RESPONDED"] = "responded";
14
+ QuestionStatus["RESOLVED"] = "resolved";
15
+ QuestionStatus["EXPIRED"] = "expired";
16
+ QuestionStatus["CANCELLED"] = "cancelled";
17
+ })(QuestionStatus || (exports.QuestionStatus = QuestionStatus = {}));
18
+ exports.TERMINAL_QUESTION_STATUSES = [
19
+ QuestionStatus.RESOLVED,
20
+ QuestionStatus.EXPIRED,
21
+ QuestionStatus.CANCELLED,
22
+ ];
23
+ exports.BADGE_COUNTING_QUESTION_STATUSES = [
24
+ QuestionStatus.PENDING,
25
+ ];
26
+ var QuestionSeverity;
27
+ (function (QuestionSeverity) {
28
+ QuestionSeverity["URGENT"] = "urgent";
29
+ QuestionSeverity["NORMAL"] = "normal";
30
+ QuestionSeverity["INFO"] = "info";
31
+ })(QuestionSeverity || (exports.QuestionSeverity = QuestionSeverity = {}));
32
+ //# sourceMappingURL=question-enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-enums.js","sourceRoot":"","sources":["../../../src/question/lib/question-enums.ts"],"names":[],"mappings":";;;AAcA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;AACvB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAiBD,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;AACzB,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAGY,QAAA,0BAA0B,GAA8B;IACnE,cAAc,CAAC,QAAQ;IACvB,cAAc,CAAC,OAAO;IACtB,cAAc,CAAC,SAAS;CAChB,CAAC;AAGE,QAAA,gCAAgC,GAA8B;IACzE,cAAc,CAAC,OAAO;CACd,CAAC;AASX,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
@@ -0,0 +1,8 @@
1
+ export interface QuestionEscalationLevel {
2
+ readonly level: number;
3
+ readonly recipientDisplayName: string;
4
+ readonly expired: boolean;
5
+ readonly enteredAt: string;
6
+ readonly expiredAt: string | null;
7
+ }
8
+ //# sourceMappingURL=question-escalation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-escalation.d.ts","sourceRoot":"","sources":["../../../src/question/lib/question-escalation.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IAEtC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=question-escalation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question-escalation.js","sourceRoot":"","sources":["../../../src/question/lib/question-escalation.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './lib/review-inquiry';
2
+ export * from './lib/web-annotation';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/review-inquiry/index.ts"],"names":[],"mappings":"AAiBA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./lib/review-inquiry"), exports);
18
+ __exportStar(require("./lib/web-annotation"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/review-inquiry/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA,uDAAqC;AACrC,uDAAqC"}
@@ -0,0 +1,138 @@
1
+ import { z } from 'zod';
2
+ export declare const ReviewInquiryPromptSchema: z.ZodObject<{
3
+ subjectArtifacts: z.ZodArray<z.ZodObject<{
4
+ artifactId: z.ZodString;
5
+ versionId: z.ZodString;
6
+ version: z.ZodNumber;
7
+ hash: z.ZodString;
8
+ }, z.core.$strip>>;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$loose>;
11
+ export type ReviewInquiryPrompt = z.infer<typeof ReviewInquiryPromptSchema>;
12
+ export declare const ReviewInquiryCommentSchema: z.ZodObject<{
13
+ body: z.ZodString;
14
+ anchor: z.ZodOptional<z.ZodObject<{
15
+ artifactId: z.ZodString;
16
+ versionId: z.ZodString;
17
+ version: z.ZodNumber;
18
+ selector: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
19
+ type: z.ZodLiteral<"TextQuoteSelector">;
20
+ exact: z.ZodString;
21
+ prefix: z.ZodOptional<z.ZodString>;
22
+ suffix: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ type: z.ZodLiteral<"TextPositionSelector">;
25
+ start: z.ZodNumber;
26
+ end: z.ZodNumber;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ type: z.ZodLiteral<"FragmentSelector">;
29
+ value: z.ZodString;
30
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
33
+ pointer: z.ZodString;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ type: z.ZodLiteral<"RangeSelector">;
36
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
37
+ type: z.ZodLiteral<"TextQuoteSelector">;
38
+ exact: z.ZodString;
39
+ prefix: z.ZodOptional<z.ZodString>;
40
+ suffix: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ type: z.ZodLiteral<"TextPositionSelector">;
43
+ start: z.ZodNumber;
44
+ end: z.ZodNumber;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ type: z.ZodLiteral<"FragmentSelector">;
47
+ value: z.ZodString;
48
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
51
+ pointer: z.ZodString;
52
+ }, z.core.$strip>], "type">;
53
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ type: z.ZodLiteral<"TextQuoteSelector">;
55
+ exact: z.ZodString;
56
+ prefix: z.ZodOptional<z.ZodString>;
57
+ suffix: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ type: z.ZodLiteral<"TextPositionSelector">;
60
+ start: z.ZodNumber;
61
+ end: z.ZodNumber;
62
+ }, z.core.$strip>, z.ZodObject<{
63
+ type: z.ZodLiteral<"FragmentSelector">;
64
+ value: z.ZodString;
65
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
68
+ pointer: z.ZodString;
69
+ }, z.core.$strip>], "type">;
70
+ }, z.core.$strip>], "type">>;
71
+ }, z.core.$strip>>;
72
+ }, z.core.$strip>;
73
+ export type ReviewInquiryComment = z.infer<typeof ReviewInquiryCommentSchema>;
74
+ export declare const ReviewInquiryReplySchema: z.ZodObject<{
75
+ comments: z.ZodArray<z.ZodObject<{
76
+ body: z.ZodString;
77
+ anchor: z.ZodOptional<z.ZodObject<{
78
+ artifactId: z.ZodString;
79
+ versionId: z.ZodString;
80
+ version: z.ZodNumber;
81
+ selector: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
82
+ type: z.ZodLiteral<"TextQuoteSelector">;
83
+ exact: z.ZodString;
84
+ prefix: z.ZodOptional<z.ZodString>;
85
+ suffix: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<"TextPositionSelector">;
88
+ start: z.ZodNumber;
89
+ end: z.ZodNumber;
90
+ }, z.core.$strip>, z.ZodObject<{
91
+ type: z.ZodLiteral<"FragmentSelector">;
92
+ value: z.ZodString;
93
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
94
+ }, z.core.$strip>, z.ZodObject<{
95
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
96
+ pointer: z.ZodString;
97
+ }, z.core.$strip>, z.ZodObject<{
98
+ type: z.ZodLiteral<"RangeSelector">;
99
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
100
+ type: z.ZodLiteral<"TextQuoteSelector">;
101
+ exact: z.ZodString;
102
+ prefix: z.ZodOptional<z.ZodString>;
103
+ suffix: z.ZodOptional<z.ZodString>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ type: z.ZodLiteral<"TextPositionSelector">;
106
+ start: z.ZodNumber;
107
+ end: z.ZodNumber;
108
+ }, z.core.$strip>, z.ZodObject<{
109
+ type: z.ZodLiteral<"FragmentSelector">;
110
+ value: z.ZodString;
111
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
114
+ pointer: z.ZodString;
115
+ }, z.core.$strip>], "type">;
116
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
117
+ type: z.ZodLiteral<"TextQuoteSelector">;
118
+ exact: z.ZodString;
119
+ prefix: z.ZodOptional<z.ZodString>;
120
+ suffix: z.ZodOptional<z.ZodString>;
121
+ }, z.core.$strip>, z.ZodObject<{
122
+ type: z.ZodLiteral<"TextPositionSelector">;
123
+ start: z.ZodNumber;
124
+ end: z.ZodNumber;
125
+ }, z.core.$strip>, z.ZodObject<{
126
+ type: z.ZodLiteral<"FragmentSelector">;
127
+ value: z.ZodString;
128
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
129
+ }, z.core.$strip>, z.ZodObject<{
130
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
131
+ pointer: z.ZodString;
132
+ }, z.core.$strip>], "type">;
133
+ }, z.core.$strip>], "type">>;
134
+ }, z.core.$strip>>;
135
+ }, z.core.$strip>>;
136
+ }, z.core.$strip>;
137
+ export type ReviewInquiryReply = z.infer<typeof ReviewInquiryReplySchema>;
138
+ //# sourceMappingURL=review-inquiry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review-inquiry.d.ts","sourceRoot":"","sources":["../../../src/review-inquiry/lib/review-inquiry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB,eAAO,MAAM,yBAAyB;;;;;;;;iBAKtB,CAAC;AACjB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAuB5E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAa9E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReviewInquiryReplySchema = exports.ReviewInquiryCommentSchema = exports.ReviewInquiryPromptSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const decision_gate_1 = require("../../decision-gate");
6
+ const web_annotation_1 = require("./web-annotation");
7
+ exports.ReviewInquiryPromptSchema = zod_1.z
8
+ .object({
9
+ subjectArtifacts: zod_1.z.array(decision_gate_1.PinnedSubjectArtifactSchema),
10
+ description: zod_1.z.string().optional(),
11
+ })
12
+ .passthrough();
13
+ exports.ReviewInquiryCommentSchema = zod_1.z.object({
14
+ body: zod_1.z.string().trim().min(1),
15
+ anchor: web_annotation_1.WebAnnotationTargetSchema.optional(),
16
+ });
17
+ exports.ReviewInquiryReplySchema = zod_1.z.object({
18
+ comments: zod_1.z.array(exports.ReviewInquiryCommentSchema).min(1),
19
+ });
20
+ //# sourceMappingURL=review-inquiry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review-inquiry.js","sourceRoot":"","sources":["../../../src/review-inquiry/lib/review-inquiry.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uDAAkE;AAElE,qDAA6D;AAsBhD,QAAA,yBAAyB,GAAG,OAAC;KACvC,MAAM,CAAC;IACN,gBAAgB,EAAE,OAAC,CAAC,KAAK,CAAC,2CAA2B,CAAC;IACtD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC;KACD,WAAW,EAAE,CAAC;AAwBJ,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,0CAAyB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAcU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,kCAA0B,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACrD,CAAC,CAAC"}