@xemahq/kernel-contracts 0.29.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 (221) 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/document-patch/index.d.ts +4 -0
  14. package/dist/document-patch/index.d.ts.map +1 -0
  15. package/dist/document-patch/index.js +20 -0
  16. package/dist/document-patch/index.js.map +1 -0
  17. package/dist/document-patch/lib/patch-anchor.d.ts +7 -0
  18. package/dist/document-patch/lib/patch-anchor.d.ts.map +1 -0
  19. package/dist/document-patch/lib/patch-anchor.js +14 -0
  20. package/dist/document-patch/lib/patch-anchor.js.map +1 -0
  21. package/dist/document-patch/lib/patch-enums.d.ts +11 -0
  22. package/dist/document-patch/lib/patch-enums.d.ts.map +1 -0
  23. package/dist/document-patch/lib/patch-enums.js +16 -0
  24. package/dist/document-patch/lib/patch-enums.js.map +1 -0
  25. package/dist/document-patch/lib/pending-patch.d.ts +22 -0
  26. package/dist/document-patch/lib/pending-patch.d.ts.map +1 -0
  27. package/dist/document-patch/lib/pending-patch.js +3 -0
  28. package/dist/document-patch/lib/pending-patch.js.map +1 -0
  29. package/dist/output/index.d.ts +7 -0
  30. package/dist/output/index.d.ts.map +1 -0
  31. package/dist/output/index.js +23 -0
  32. package/dist/output/index.js.map +1 -0
  33. package/dist/output/lib/output-deliverable-expectation.d.ts +9 -0
  34. package/dist/output/lib/output-deliverable-expectation.d.ts.map +1 -0
  35. package/dist/output/lib/output-deliverable-expectation.js +3 -0
  36. package/dist/output/lib/output-deliverable-expectation.js.map +1 -0
  37. package/dist/output/lib/output-item-dto.d.ts +25 -0
  38. package/dist/output/lib/output-item-dto.d.ts.map +1 -0
  39. package/dist/output/lib/output-item-dto.js +3 -0
  40. package/dist/output/lib/output-item-dto.js.map +1 -0
  41. package/dist/output/lib/output-kind.d.ts +14 -0
  42. package/dist/output/lib/output-kind.d.ts.map +1 -0
  43. package/dist/output/lib/output-kind.js +18 -0
  44. package/dist/output/lib/output-kind.js.map +1 -0
  45. package/dist/output/lib/output-render-hint.d.ts +11 -0
  46. package/dist/output/lib/output-render-hint.d.ts.map +1 -0
  47. package/dist/output/lib/output-render-hint.js +10 -0
  48. package/dist/output/lib/output-render-hint.js.map +1 -0
  49. package/dist/output/lib/output-version-dto.d.ts +10 -0
  50. package/dist/output/lib/output-version-dto.d.ts.map +1 -0
  51. package/dist/output/lib/output-version-dto.js +3 -0
  52. package/dist/output/lib/output-version-dto.js.map +1 -0
  53. package/dist/output/lib/payload-schemas/code-diff.d.ts +7 -0
  54. package/dist/output/lib/payload-schemas/code-diff.d.ts.map +1 -0
  55. package/dist/output/lib/payload-schemas/code-diff.js +11 -0
  56. package/dist/output/lib/payload-schemas/code-diff.js.map +1 -0
  57. package/dist/output/lib/payload-schemas/decision-record.d.ts +19 -0
  58. package/dist/output/lib/payload-schemas/decision-record.d.ts.map +1 -0
  59. package/dist/output/lib/payload-schemas/decision-record.js +39 -0
  60. package/dist/output/lib/payload-schemas/decision-record.js.map +1 -0
  61. package/dist/output/lib/payload-schemas/diagram.d.ts +12 -0
  62. package/dist/output/lib/payload-schemas/diagram.d.ts.map +1 -0
  63. package/dist/output/lib/payload-schemas/diagram.js +34 -0
  64. package/dist/output/lib/payload-schemas/diagram.js.map +1 -0
  65. package/dist/output/lib/payload-schemas/external-blob.d.ts +9 -0
  66. package/dist/output/lib/payload-schemas/external-blob.d.ts.map +1 -0
  67. package/dist/output/lib/payload-schemas/external-blob.js +15 -0
  68. package/dist/output/lib/payload-schemas/external-blob.js.map +1 -0
  69. package/dist/output/lib/payload-schemas/index.d.ts +17 -0
  70. package/dist/output/lib/payload-schemas/index.d.ts.map +1 -0
  71. package/dist/output/lib/payload-schemas/index.js +94 -0
  72. package/dist/output/lib/payload-schemas/index.js.map +1 -0
  73. package/dist/output/lib/payload-schemas/json-payload.d.ts +4 -0
  74. package/dist/output/lib/payload-schemas/json-payload.d.ts.map +1 -0
  75. package/dist/output/lib/payload-schemas/json-payload.js +9 -0
  76. package/dist/output/lib/payload-schemas/json-payload.js.map +1 -0
  77. package/dist/output/lib/payload-schemas/manifest.d.ts +37 -0
  78. package/dist/output/lib/payload-schemas/manifest.d.ts.map +1 -0
  79. package/dist/output/lib/payload-schemas/manifest.js +43 -0
  80. package/dist/output/lib/payload-schemas/manifest.js.map +1 -0
  81. package/dist/output/lib/payload-schemas/markdown-doc.d.ts +8 -0
  82. package/dist/output/lib/payload-schemas/markdown-doc.d.ts.map +1 -0
  83. package/dist/output/lib/payload-schemas/markdown-doc.js +12 -0
  84. package/dist/output/lib/payload-schemas/markdown-doc.js.map +1 -0
  85. package/dist/output/lib/payload-schemas/review-findings.d.ts +30 -0
  86. package/dist/output/lib/payload-schemas/review-findings.d.ts.map +1 -0
  87. package/dist/output/lib/payload-schemas/review-findings.js +39 -0
  88. package/dist/output/lib/payload-schemas/review-findings.js.map +1 -0
  89. package/dist/output/lib/payload-schemas/schema.d.ts +4 -0
  90. package/dist/output/lib/payload-schemas/schema.d.ts.map +1 -0
  91. package/dist/output/lib/payload-schemas/schema.js +10 -0
  92. package/dist/output/lib/payload-schemas/schema.js.map +1 -0
  93. package/dist/output/lib/payload-schemas/test-report.d.ts +33 -0
  94. package/dist/output/lib/payload-schemas/test-report.d.ts.map +1 -0
  95. package/dist/output/lib/payload-schemas/test-report.js +46 -0
  96. package/dist/output/lib/payload-schemas/test-report.js.map +1 -0
  97. package/dist/question/index.d.ts +5 -0
  98. package/dist/question/index.d.ts.map +1 -0
  99. package/dist/question/index.js +21 -0
  100. package/dist/question/index.js.map +1 -0
  101. package/dist/question/lib/question-action-context.d.ts +7 -0
  102. package/dist/question/lib/question-action-context.d.ts.map +1 -0
  103. package/dist/question/lib/question-action-context.js +3 -0
  104. package/dist/question/lib/question-action-context.js.map +1 -0
  105. package/dist/question/lib/question-dto.d.ts +54 -0
  106. package/dist/question/lib/question-dto.d.ts.map +1 -0
  107. package/dist/question/lib/question-dto.js +3 -0
  108. package/dist/question/lib/question-dto.js.map +1 -0
  109. package/dist/question/lib/question-enums.d.ts +20 -0
  110. package/dist/question/lib/question-enums.d.ts.map +1 -0
  111. package/dist/question/lib/question-enums.js +32 -0
  112. package/dist/question/lib/question-enums.js.map +1 -0
  113. package/dist/question/lib/question-escalation.d.ts +8 -0
  114. package/dist/question/lib/question-escalation.d.ts.map +1 -0
  115. package/dist/question/lib/question-escalation.js +3 -0
  116. package/dist/question/lib/question-escalation.js.map +1 -0
  117. package/dist/review-inquiry/index.d.ts +3 -0
  118. package/dist/review-inquiry/index.d.ts.map +1 -0
  119. package/dist/review-inquiry/index.js +19 -0
  120. package/dist/review-inquiry/index.js.map +1 -0
  121. package/dist/review-inquiry/lib/review-inquiry.d.ts +138 -0
  122. package/dist/review-inquiry/lib/review-inquiry.d.ts.map +1 -0
  123. package/dist/review-inquiry/lib/review-inquiry.js +20 -0
  124. package/dist/review-inquiry/lib/review-inquiry.js.map +1 -0
  125. package/dist/review-inquiry/lib/web-annotation.d.ts +195 -0
  126. package/dist/review-inquiry/lib/web-annotation.d.ts.map +1 -0
  127. package/dist/review-inquiry/lib/web-annotation.js +59 -0
  128. package/dist/review-inquiry/lib/web-annotation.js.map +1 -0
  129. package/dist/run-detail/index.d.ts +7 -0
  130. package/dist/run-detail/index.d.ts.map +1 -0
  131. package/dist/run-detail/index.js +23 -0
  132. package/dist/run-detail/index.js.map +1 -0
  133. package/dist/run-detail/lib/run-detail-dto.d.ts +34 -0
  134. package/dist/run-detail/lib/run-detail-dto.d.ts.map +1 -0
  135. package/dist/run-detail/lib/run-detail-dto.js +3 -0
  136. package/dist/run-detail/lib/run-detail-dto.js.map +1 -0
  137. package/dist/run-detail/lib/run-mode.d.ts +14 -0
  138. package/dist/run-detail/lib/run-mode.d.ts.map +1 -0
  139. package/dist/run-detail/lib/run-mode.js +25 -0
  140. package/dist/run-detail/lib/run-mode.js.map +1 -0
  141. package/dist/run-detail/lib/run-outcome.d.ts +28 -0
  142. package/dist/run-detail/lib/run-outcome.d.ts.map +1 -0
  143. package/dist/run-detail/lib/run-outcome.js +27 -0
  144. package/dist/run-detail/lib/run-outcome.js.map +1 -0
  145. package/dist/run-detail/lib/run-phase-rail.d.ts +21 -0
  146. package/dist/run-detail/lib/run-phase-rail.d.ts.map +1 -0
  147. package/dist/run-detail/lib/run-phase-rail.js +14 -0
  148. package/dist/run-detail/lib/run-phase-rail.js.map +1 -0
  149. package/dist/run-detail/lib/run-revision-state.d.ts +47 -0
  150. package/dist/run-detail/lib/run-revision-state.d.ts.map +1 -0
  151. package/dist/run-detail/lib/run-revision-state.js +11 -0
  152. package/dist/run-detail/lib/run-revision-state.js.map +1 -0
  153. package/dist/run-detail/lib/wait-windows.d.ts +15 -0
  154. package/dist/run-detail/lib/wait-windows.d.ts.map +1 -0
  155. package/dist/run-detail/lib/wait-windows.js +39 -0
  156. package/dist/run-detail/lib/wait-windows.js.map +1 -0
  157. package/dist/workspace-image/index.d.ts +5 -0
  158. package/dist/workspace-image/index.d.ts.map +1 -0
  159. package/dist/workspace-image/index.js +21 -0
  160. package/dist/workspace-image/index.js.map +1 -0
  161. package/dist/workspace-image/lib/enums.d.ts +17 -0
  162. package/dist/workspace-image/lib/enums.d.ts.map +1 -0
  163. package/dist/workspace-image/lib/enums.js +22 -0
  164. package/dist/workspace-image/lib/enums.js.map +1 -0
  165. package/dist/workspace-image/lib/hash.d.ts +3 -0
  166. package/dist/workspace-image/lib/hash.d.ts.map +1 -0
  167. package/dist/workspace-image/lib/hash.js +50 -0
  168. package/dist/workspace-image/lib/hash.js.map +1 -0
  169. package/dist/workspace-image/lib/schemas.d.ts +103 -0
  170. package/dist/workspace-image/lib/schemas.d.ts.map +1 -0
  171. package/dist/workspace-image/lib/schemas.js +53 -0
  172. package/dist/workspace-image/lib/schemas.js.map +1 -0
  173. package/dist/workspace-image/lib/types.d.ts +50 -0
  174. package/dist/workspace-image/lib/types.d.ts.map +1 -0
  175. package/dist/workspace-image/lib/types.js +3 -0
  176. package/dist/workspace-image/lib/types.js.map +1 -0
  177. package/package.json +1 -1
  178. package/src/decision-gate/index.ts +13 -0
  179. package/src/decision-gate/lib/decision-gate.ts +113 -0
  180. package/src/decision-gate/lib/pinned-subject-artifact.ts +29 -0
  181. package/src/document-patch/index.ts +25 -0
  182. package/src/document-patch/lib/patch-anchor.ts +22 -0
  183. package/src/document-patch/lib/patch-enums.ts +36 -0
  184. package/src/document-patch/lib/pending-patch.ts +31 -0
  185. package/src/output/index.ts +20 -0
  186. package/src/output/lib/output-deliverable-expectation.ts +25 -0
  187. package/src/output/lib/output-item-dto.ts +54 -0
  188. package/src/output/lib/output-kind.ts +44 -0
  189. package/src/output/lib/output-render-hint.ts +28 -0
  190. package/src/output/lib/output-version-dto.ts +21 -0
  191. package/src/output/lib/payload-schemas/code-diff.ts +20 -0
  192. package/src/output/lib/payload-schemas/decision-record.ts +71 -0
  193. package/src/output/lib/payload-schemas/diagram.ts +54 -0
  194. package/src/output/lib/payload-schemas/external-blob.ts +36 -0
  195. package/src/output/lib/payload-schemas/index.ts +133 -0
  196. package/src/output/lib/payload-schemas/json-payload.ts +19 -0
  197. package/src/output/lib/payload-schemas/manifest.ts +81 -0
  198. package/src/output/lib/payload-schemas/markdown-doc.ts +33 -0
  199. package/src/output/lib/payload-schemas/review-findings.ts +75 -0
  200. package/src/output/lib/payload-schemas/schema.ts +22 -0
  201. package/src/output/lib/payload-schemas/test-report.ts +69 -0
  202. package/src/question/index.ts +24 -0
  203. package/src/question/lib/question-action-context.ts +26 -0
  204. package/src/question/lib/question-dto.ts +143 -0
  205. package/src/question/lib/question-enums.ts +67 -0
  206. package/src/question/lib/question-escalation.ts +22 -0
  207. package/src/review-inquiry/index.ts +19 -0
  208. package/src/review-inquiry/lib/review-inquiry.ts +76 -0
  209. package/src/review-inquiry/lib/web-annotation.ts +136 -0
  210. package/src/run-detail/index.ts +22 -0
  211. package/src/run-detail/lib/run-detail-dto.ts +84 -0
  212. package/src/run-detail/lib/run-mode.ts +65 -0
  213. package/src/run-detail/lib/run-outcome.ts +66 -0
  214. package/src/run-detail/lib/run-phase-rail.ts +43 -0
  215. package/src/run-detail/lib/run-revision-state.ts +83 -0
  216. package/src/run-detail/lib/wait-windows.ts +70 -0
  217. package/src/workspace-image/index.ts +13 -0
  218. package/src/workspace-image/lib/enums.ts +38 -0
  219. package/src/workspace-image/lib/hash.ts +95 -0
  220. package/src/workspace-image/lib/schemas.ts +63 -0
  221. package/src/workspace-image/lib/types.ts +79 -0
@@ -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"}
@@ -0,0 +1,195 @@
1
+ import { z } from 'zod';
2
+ export declare const TextQuoteSelectorSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"TextQuoteSelector">;
4
+ exact: z.ZodString;
5
+ prefix: z.ZodOptional<z.ZodString>;
6
+ suffix: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type TextQuoteSelector = z.infer<typeof TextQuoteSelectorSchema>;
9
+ export declare const TextPositionSelectorSchema: z.ZodObject<{
10
+ type: z.ZodLiteral<"TextPositionSelector">;
11
+ start: z.ZodNumber;
12
+ end: z.ZodNumber;
13
+ }, z.core.$strip>;
14
+ export type TextPositionSelector = z.infer<typeof TextPositionSelectorSchema>;
15
+ export declare const FragmentSelectorSchema: z.ZodObject<{
16
+ type: z.ZodLiteral<"FragmentSelector">;
17
+ value: z.ZodString;
18
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
19
+ }, z.core.$strip>;
20
+ export type FragmentSelector = z.infer<typeof FragmentSelectorSchema>;
21
+ export declare const JsonPointerSelectorSchema: z.ZodObject<{
22
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
23
+ pointer: z.ZodString;
24
+ }, z.core.$strip>;
25
+ export type JsonPointerSelector = z.infer<typeof JsonPointerSelectorSchema>;
26
+ export declare const NonRangeSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ type: z.ZodLiteral<"TextQuoteSelector">;
28
+ exact: z.ZodString;
29
+ prefix: z.ZodOptional<z.ZodString>;
30
+ suffix: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ type: z.ZodLiteral<"TextPositionSelector">;
33
+ start: z.ZodNumber;
34
+ end: z.ZodNumber;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ type: z.ZodLiteral<"FragmentSelector">;
37
+ value: z.ZodString;
38
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
41
+ pointer: z.ZodString;
42
+ }, z.core.$strip>], "type">;
43
+ export type NonRangeSelector = z.infer<typeof NonRangeSelectorSchema>;
44
+ export declare const RangeSelectorSchema: z.ZodObject<{
45
+ type: z.ZodLiteral<"RangeSelector">;
46
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
47
+ type: z.ZodLiteral<"TextQuoteSelector">;
48
+ exact: z.ZodString;
49
+ prefix: z.ZodOptional<z.ZodString>;
50
+ suffix: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ type: z.ZodLiteral<"TextPositionSelector">;
53
+ start: z.ZodNumber;
54
+ end: z.ZodNumber;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ type: z.ZodLiteral<"FragmentSelector">;
57
+ value: z.ZodString;
58
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
61
+ pointer: z.ZodString;
62
+ }, z.core.$strip>], "type">;
63
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
64
+ type: z.ZodLiteral<"TextQuoteSelector">;
65
+ exact: z.ZodString;
66
+ prefix: z.ZodOptional<z.ZodString>;
67
+ suffix: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodLiteral<"TextPositionSelector">;
70
+ start: z.ZodNumber;
71
+ end: z.ZodNumber;
72
+ }, z.core.$strip>, z.ZodObject<{
73
+ type: z.ZodLiteral<"FragmentSelector">;
74
+ value: z.ZodString;
75
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
76
+ }, z.core.$strip>, z.ZodObject<{
77
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
78
+ pointer: z.ZodString;
79
+ }, z.core.$strip>], "type">;
80
+ }, z.core.$strip>;
81
+ export type RangeSelector = z.infer<typeof RangeSelectorSchema>;
82
+ export declare const WebAnnotationSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
83
+ type: z.ZodLiteral<"TextQuoteSelector">;
84
+ exact: z.ZodString;
85
+ prefix: z.ZodOptional<z.ZodString>;
86
+ suffix: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ type: z.ZodLiteral<"TextPositionSelector">;
89
+ start: z.ZodNumber;
90
+ end: z.ZodNumber;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ type: z.ZodLiteral<"FragmentSelector">;
93
+ value: z.ZodString;
94
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
95
+ }, z.core.$strip>, z.ZodObject<{
96
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
97
+ pointer: z.ZodString;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ type: z.ZodLiteral<"RangeSelector">;
100
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
+ type: z.ZodLiteral<"TextQuoteSelector">;
102
+ exact: z.ZodString;
103
+ prefix: z.ZodOptional<z.ZodString>;
104
+ suffix: z.ZodOptional<z.ZodString>;
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ type: z.ZodLiteral<"TextPositionSelector">;
107
+ start: z.ZodNumber;
108
+ end: z.ZodNumber;
109
+ }, z.core.$strip>, z.ZodObject<{
110
+ type: z.ZodLiteral<"FragmentSelector">;
111
+ value: z.ZodString;
112
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
115
+ pointer: z.ZodString;
116
+ }, z.core.$strip>], "type">;
117
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
118
+ type: z.ZodLiteral<"TextQuoteSelector">;
119
+ exact: z.ZodString;
120
+ prefix: z.ZodOptional<z.ZodString>;
121
+ suffix: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ type: z.ZodLiteral<"TextPositionSelector">;
124
+ start: z.ZodNumber;
125
+ end: z.ZodNumber;
126
+ }, z.core.$strip>, z.ZodObject<{
127
+ type: z.ZodLiteral<"FragmentSelector">;
128
+ value: z.ZodString;
129
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
130
+ }, z.core.$strip>, z.ZodObject<{
131
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
132
+ pointer: z.ZodString;
133
+ }, z.core.$strip>], "type">;
134
+ }, z.core.$strip>], "type">;
135
+ export type WebAnnotationSelector = z.infer<typeof WebAnnotationSelectorSchema>;
136
+ export declare const WebAnnotationTargetSchema: z.ZodObject<{
137
+ artifactId: z.ZodString;
138
+ versionId: z.ZodString;
139
+ version: z.ZodNumber;
140
+ selector: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
141
+ type: z.ZodLiteral<"TextQuoteSelector">;
142
+ exact: z.ZodString;
143
+ prefix: z.ZodOptional<z.ZodString>;
144
+ suffix: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strip>, z.ZodObject<{
146
+ type: z.ZodLiteral<"TextPositionSelector">;
147
+ start: z.ZodNumber;
148
+ end: z.ZodNumber;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ type: z.ZodLiteral<"FragmentSelector">;
151
+ value: z.ZodString;
152
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
153
+ }, z.core.$strip>, z.ZodObject<{
154
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
155
+ pointer: z.ZodString;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ type: z.ZodLiteral<"RangeSelector">;
158
+ startSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
159
+ type: z.ZodLiteral<"TextQuoteSelector">;
160
+ exact: z.ZodString;
161
+ prefix: z.ZodOptional<z.ZodString>;
162
+ suffix: z.ZodOptional<z.ZodString>;
163
+ }, z.core.$strip>, z.ZodObject<{
164
+ type: z.ZodLiteral<"TextPositionSelector">;
165
+ start: z.ZodNumber;
166
+ end: z.ZodNumber;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ type: z.ZodLiteral<"FragmentSelector">;
169
+ value: z.ZodString;
170
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
171
+ }, z.core.$strip>, z.ZodObject<{
172
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
173
+ pointer: z.ZodString;
174
+ }, z.core.$strip>], "type">;
175
+ endSelector: z.ZodDiscriminatedUnion<[z.ZodObject<{
176
+ type: z.ZodLiteral<"TextQuoteSelector">;
177
+ exact: z.ZodString;
178
+ prefix: z.ZodOptional<z.ZodString>;
179
+ suffix: z.ZodOptional<z.ZodString>;
180
+ }, z.core.$strip>, z.ZodObject<{
181
+ type: z.ZodLiteral<"TextPositionSelector">;
182
+ start: z.ZodNumber;
183
+ end: z.ZodNumber;
184
+ }, z.core.$strip>, z.ZodObject<{
185
+ type: z.ZodLiteral<"FragmentSelector">;
186
+ value: z.ZodString;
187
+ conformsTo: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"https://tools.ietf.org/html/rfc3986">, z.ZodLiteral<"gfm-heading-slug">]>>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ type: z.ZodLiteral<"xema:JsonPointerSelector">;
190
+ pointer: z.ZodString;
191
+ }, z.core.$strip>], "type">;
192
+ }, z.core.$strip>], "type">>;
193
+ }, z.core.$strip>;
194
+ export type WebAnnotationTarget = z.infer<typeof WebAnnotationTargetSchema>;
195
+ //# sourceMappingURL=web-annotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-annotation.d.ts","sourceRoot":"","sources":["../../../src/review-inquiry/lib/web-annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkCxB,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;iBASnC,CAAC;AACL,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;;;iBAejC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,yBAAyB;;;iBAUpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAQ5E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;2BAKjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAI9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAMtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAgBhF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}