@abyss-project/tools 1.2.0 → 1.3.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 (34) hide show
  1. package/.eslintrc.js +33 -33
  2. package/.prettierrc +5 -5
  3. package/README.md +32 -32
  4. package/dist/api/beam.api.d.ts +2 -1
  5. package/dist/api/beam.api.js +10 -4
  6. package/dist/api/beam.api.js.map +1 -1
  7. package/dist/api/extraction.api.d.ts +5 -5
  8. package/dist/api/extraction.api.js +21 -4
  9. package/dist/api/extraction.api.js.map +1 -1
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.js +3 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/types/enum/beam.enum.d.ts +4 -0
  14. package/dist/types/enum/beam.enum.js +6 -1
  15. package/dist/types/enum/beam.enum.js.map +1 -1
  16. package/dist/types/interface/api/requests/beam.request.d.ts +16 -0
  17. package/dist/types/interface/api/requests/extraction.request.d.ts +8 -0
  18. package/dist/types/interface/api/responses/beam.response.d.ts +23 -1
  19. package/dist/types/interface/api/responses/extraction.response.d.ts +6 -0
  20. package/dist/types/interface/models/beam.dto.d.ts +13 -1
  21. package/dist/types/interface/models/extraction.dto.d.ts +8 -1
  22. package/dist/types/interface/models/extraction.dto.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/api/beam.api.ts +29 -4
  25. package/src/api/extraction.api.ts +57 -17
  26. package/src/api/tests/beam.api.spec.ts +64 -0
  27. package/src/index.ts +9 -0
  28. package/src/types/enum/beam.enum.ts +8 -0
  29. package/src/types/interface/api/requests/beam.request.ts +27 -2
  30. package/src/types/interface/api/requests/extraction.request.ts +22 -0
  31. package/src/types/interface/api/responses/beam.response.ts +30 -1
  32. package/src/types/interface/api/responses/extraction.response.ts +19 -2
  33. package/src/types/interface/models/beam.dto.ts +20 -1
  34. package/src/types/interface/models/extraction.dto.ts +24 -6
@@ -5,11 +5,7 @@
5
5
 
6
6
  import { ExtractionWarningCode } from '../../../types/enum/extraction-warning.enum';
7
7
  import { ExtractionFeedbackIssueType } from '../../../types/enum/extraction-feedback-issue-type.enum';
8
- import type {
9
- IFieldValue,
10
- IExecutionManifest,
11
- IGlobalConfidence,
12
- } from './extraction-plan.dto';
8
+ import type { IFieldValue, IExecutionManifest, IGlobalConfidence } from './extraction-plan.dto';
13
9
 
14
10
  // Re-export so consumers can import ExtractionFeedbackIssueType from the DTO barrel.
15
11
  export { ExtractionFeedbackIssueType };
@@ -159,10 +155,22 @@ export interface IExtraction {
159
155
 
160
156
  export interface IExtractionTemplate {
161
157
  id: string;
162
- userId: string;
158
+ /** Personal scope owner — null when the template is org/project-scoped. */
159
+ userId: string | null;
160
+ /** Owning organization — null for personal templates. */
161
+ organizationId: string | null;
162
+ /** Owning project — null for personal and org-wide templates. */
163
+ projectId: string | null;
164
+ /** Author inside an org/project scope — null for personal templates. */
165
+ createdByUserId: string | null;
163
166
  name: string;
164
167
  description: string | null;
165
168
  isActive: boolean;
169
+ /**
170
+ * Stamped (fire-and-forget) whenever an extraction run resolves the
171
+ * template. Null until first use.
172
+ */
173
+ lastUsedAt: string | null;
166
174
  createdAt: string;
167
175
  updatedAt: string;
168
176
  }
@@ -206,6 +214,16 @@ export interface IExtractionTemplateVersion {
206
214
  version: number;
207
215
  templateJson: Record<string, unknown>;
208
216
  comment: string | null;
217
+ /**
218
+ * Witness (sample) PDF reference in the dedicated /rcb-witness bucket.
219
+ * Null when the version carries no witness. Retrieve a download URL via
220
+ * `sdk.extract.templates.getWitnessUrl`.
221
+ */
222
+ witnessFileId: string | null;
223
+ /** Witness byte size (billed to the owner's storage pool). */
224
+ witnessSizeBytes: number | null;
225
+ /** Original witness filename. */
226
+ witnessFilename: string | null;
209
227
  createdAt: string;
210
228
  }
211
229