@gemina/sdk 0.2.1 → 0.3.1
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.
- package/README.md +34 -2
- package/dist/index.cjs +596 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +730 -169
- package/dist/index.d.ts +730 -169
- package/dist/index.js +550 -85
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -173,6 +173,27 @@ __export(index_exports, {
|
|
|
173
173
|
EnterpriseTransactionOutDTOFromJSONTyped: () => EnterpriseTransactionOutDTOFromJSONTyped,
|
|
174
174
|
EnterpriseTransactionOutDTOToJSON: () => EnterpriseTransactionOutDTOToJSON,
|
|
175
175
|
EnterpriseTransactionOutDTOToJSONTyped: () => EnterpriseTransactionOutDTOToJSONTyped,
|
|
176
|
+
ExtractionCostOutDTOFromJSON: () => ExtractionCostOutDTOFromJSON,
|
|
177
|
+
ExtractionCostOutDTOFromJSONTyped: () => ExtractionCostOutDTOFromJSONTyped,
|
|
178
|
+
ExtractionCostOutDTOToJSON: () => ExtractionCostOutDTOToJSON,
|
|
179
|
+
ExtractionCostOutDTOToJSONTyped: () => ExtractionCostOutDTOToJSONTyped,
|
|
180
|
+
ExtractionCostOutResultDTOFromJSON: () => ExtractionCostOutResultDTOFromJSON,
|
|
181
|
+
ExtractionCostOutResultDTOFromJSONTyped: () => ExtractionCostOutResultDTOFromJSONTyped,
|
|
182
|
+
ExtractionCostOutResultDTOToJSON: () => ExtractionCostOutResultDTOToJSON,
|
|
183
|
+
ExtractionCostOutResultDTOToJSONTyped: () => ExtractionCostOutResultDTOToJSONTyped,
|
|
184
|
+
ExtractionCostStateModel: () => ExtractionCostStateModel,
|
|
185
|
+
ExtractionCostStateModelFromJSON: () => ExtractionCostStateModelFromJSON,
|
|
186
|
+
ExtractionCostStateModelFromJSONTyped: () => ExtractionCostStateModelFromJSONTyped,
|
|
187
|
+
ExtractionCostStateModelToJSON: () => ExtractionCostStateModelToJSON,
|
|
188
|
+
ExtractionCostStateModelToJSONTyped: () => ExtractionCostStateModelToJSONTyped,
|
|
189
|
+
ExtractionCostsDataOutDTOFromJSON: () => ExtractionCostsDataOutDTOFromJSON,
|
|
190
|
+
ExtractionCostsDataOutDTOFromJSONTyped: () => ExtractionCostsDataOutDTOFromJSONTyped,
|
|
191
|
+
ExtractionCostsDataOutDTOToJSON: () => ExtractionCostsDataOutDTOToJSON,
|
|
192
|
+
ExtractionCostsDataOutDTOToJSONTyped: () => ExtractionCostsDataOutDTOToJSONTyped,
|
|
193
|
+
ExtractionCostsOutDTOFromJSON: () => ExtractionCostsOutDTOFromJSON,
|
|
194
|
+
ExtractionCostsOutDTOFromJSONTyped: () => ExtractionCostsOutDTOFromJSONTyped,
|
|
195
|
+
ExtractionCostsOutDTOToJSON: () => ExtractionCostsOutDTOToJSON,
|
|
196
|
+
ExtractionCostsOutDTOToJSONTyped: () => ExtractionCostsOutDTOToJSONTyped,
|
|
176
197
|
ExtractionDocumentViewMetaOutDTOFromJSON: () => ExtractionDocumentViewMetaOutDTOFromJSON,
|
|
177
198
|
ExtractionDocumentViewMetaOutDTOFromJSONTyped: () => ExtractionDocumentViewMetaOutDTOFromJSONTyped,
|
|
178
199
|
ExtractionDocumentViewMetaOutDTOToJSON: () => ExtractionDocumentViewMetaOutDTOToJSON,
|
|
@@ -277,6 +298,14 @@ __export(index_exports, {
|
|
|
277
298
|
FilesUploadInstructionsOutDTOFromJSONTyped: () => FilesUploadInstructionsOutDTOFromJSONTyped,
|
|
278
299
|
FilesUploadInstructionsOutDTOToJSON: () => FilesUploadInstructionsOutDTOToJSON,
|
|
279
300
|
FilesUploadInstructionsOutDTOToJSONTyped: () => FilesUploadInstructionsOutDTOToJSONTyped,
|
|
301
|
+
FoundationDTOFromJSON: () => FoundationDTOFromJSON,
|
|
302
|
+
FoundationDTOFromJSONTyped: () => FoundationDTOFromJSONTyped,
|
|
303
|
+
FoundationDTOToJSON: () => FoundationDTOToJSON,
|
|
304
|
+
FoundationDTOToJSONTyped: () => FoundationDTOToJSONTyped,
|
|
305
|
+
FoundationMetaDTOFromJSON: () => FoundationMetaDTOFromJSON,
|
|
306
|
+
FoundationMetaDTOFromJSONTyped: () => FoundationMetaDTOFromJSONTyped,
|
|
307
|
+
FoundationMetaDTOToJSON: () => FoundationMetaDTOToJSON,
|
|
308
|
+
FoundationMetaDTOToJSONTyped: () => FoundationMetaDTOToJSONTyped,
|
|
280
309
|
FreeTierApi: () => FreeTierApi,
|
|
281
310
|
FreeTierConfigOutDTOFromJSON: () => FreeTierConfigOutDTOFromJSON,
|
|
282
311
|
FreeTierConfigOutDTOFromJSONTyped: () => FreeTierConfigOutDTOFromJSONTyped,
|
|
@@ -368,6 +397,10 @@ __export(index_exports, {
|
|
|
368
397
|
PlanOutDTOFromJSONTyped: () => PlanOutDTOFromJSONTyped,
|
|
369
398
|
PlanOutDTOToJSON: () => PlanOutDTOToJSON,
|
|
370
399
|
PlanOutDTOToJSONTyped: () => PlanOutDTOToJSONTyped,
|
|
400
|
+
PurgeDocumentsWithEndUserId422ResponseFromJSON: () => PurgeDocumentsWithEndUserId422ResponseFromJSON,
|
|
401
|
+
PurgeDocumentsWithEndUserId422ResponseFromJSONTyped: () => PurgeDocumentsWithEndUserId422ResponseFromJSONTyped,
|
|
402
|
+
PurgeDocumentsWithEndUserId422ResponseToJSON: () => PurgeDocumentsWithEndUserId422ResponseToJSON,
|
|
403
|
+
PurgeDocumentsWithEndUserId422ResponseToJSONTyped: () => PurgeDocumentsWithEndUserId422ResponseToJSONTyped,
|
|
371
404
|
PurgeReasonModel: () => PurgeReasonModel,
|
|
372
405
|
PurgeReasonModelFromJSON: () => PurgeReasonModelFromJSON,
|
|
373
406
|
PurgeReasonModelFromJSONTyped: () => PurgeReasonModelFromJSONTyped,
|
|
@@ -538,6 +571,11 @@ __export(index_exports, {
|
|
|
538
571
|
UpdateTemplateInDTOFromJSONTyped: () => UpdateTemplateInDTOFromJSONTyped,
|
|
539
572
|
UpdateTemplateInDTOToJSON: () => UpdateTemplateInDTOToJSON,
|
|
540
573
|
UpdateTemplateInDTOToJSONTyped: () => UpdateTemplateInDTOToJSONTyped,
|
|
574
|
+
UploadExtractionTypeEnum: () => UploadExtractionTypeEnum,
|
|
575
|
+
UploadExtractionTypeEnumFromJSON: () => UploadExtractionTypeEnumFromJSON,
|
|
576
|
+
UploadExtractionTypeEnumFromJSONTyped: () => UploadExtractionTypeEnumFromJSONTyped,
|
|
577
|
+
UploadExtractionTypeEnumToJSON: () => UploadExtractionTypeEnumToJSON,
|
|
578
|
+
UploadExtractionTypeEnumToJSONTyped: () => UploadExtractionTypeEnumToJSONTyped,
|
|
541
579
|
UsageBreakdownListOutDTOFromJSON: () => UsageBreakdownListOutDTOFromJSON,
|
|
542
580
|
UsageBreakdownListOutDTOFromJSONTyped: () => UsageBreakdownListOutDTOFromJSONTyped,
|
|
543
581
|
UsageBreakdownListOutDTOToJSON: () => UsageBreakdownListOutDTOToJSON,
|
|
@@ -623,6 +661,11 @@ __export(index_exports, {
|
|
|
623
661
|
instanceOfDocumentsViewOutDTO: () => instanceOfDocumentsViewOutDTO,
|
|
624
662
|
instanceOfEnterpriseTransactionListOutDTO: () => instanceOfEnterpriseTransactionListOutDTO,
|
|
625
663
|
instanceOfEnterpriseTransactionOutDTO: () => instanceOfEnterpriseTransactionOutDTO,
|
|
664
|
+
instanceOfExtractionCostOutDTO: () => instanceOfExtractionCostOutDTO,
|
|
665
|
+
instanceOfExtractionCostOutResultDTO: () => instanceOfExtractionCostOutResultDTO,
|
|
666
|
+
instanceOfExtractionCostStateModel: () => instanceOfExtractionCostStateModel,
|
|
667
|
+
instanceOfExtractionCostsDataOutDTO: () => instanceOfExtractionCostsDataOutDTO,
|
|
668
|
+
instanceOfExtractionCostsOutDTO: () => instanceOfExtractionCostsOutDTO,
|
|
626
669
|
instanceOfExtractionDocumentViewMetaOutDTO: () => instanceOfExtractionDocumentViewMetaOutDTO,
|
|
627
670
|
instanceOfExtractionMetaOutDTO: () => instanceOfExtractionMetaOutDTO,
|
|
628
671
|
instanceOfExtractionPrimaryViewOutDTO: () => instanceOfExtractionPrimaryViewOutDTO,
|
|
@@ -647,6 +690,8 @@ __export(index_exports, {
|
|
|
647
690
|
instanceOfFilesNextToolCallOutDTO: () => instanceOfFilesNextToolCallOutDTO,
|
|
648
691
|
instanceOfFilesUploadDetailsOutDTO: () => instanceOfFilesUploadDetailsOutDTO,
|
|
649
692
|
instanceOfFilesUploadInstructionsOutDTO: () => instanceOfFilesUploadInstructionsOutDTO,
|
|
693
|
+
instanceOfFoundationDTO: () => instanceOfFoundationDTO,
|
|
694
|
+
instanceOfFoundationMetaDTO: () => instanceOfFoundationMetaDTO,
|
|
650
695
|
instanceOfFreeTierConfigOutDTO: () => instanceOfFreeTierConfigOutDTO,
|
|
651
696
|
instanceOfGenerateTemplateFromUrlInDTO: () => instanceOfGenerateTemplateFromUrlInDTO,
|
|
652
697
|
instanceOfHTTPValidationError: () => instanceOfHTTPValidationError,
|
|
@@ -704,6 +749,7 @@ __export(index_exports, {
|
|
|
704
749
|
instanceOfTopUpPurchaseInDTO: () => instanceOfTopUpPurchaseInDTO,
|
|
705
750
|
instanceOfTopUpPurchaseOutDTO: () => instanceOfTopUpPurchaseOutDTO,
|
|
706
751
|
instanceOfUpdateTemplateInDTO: () => instanceOfUpdateTemplateInDTO,
|
|
752
|
+
instanceOfUploadExtractionTypeEnum: () => instanceOfUploadExtractionTypeEnum,
|
|
707
753
|
instanceOfUsageBreakdownListOutDTO: () => instanceOfUsageBreakdownListOutDTO,
|
|
708
754
|
instanceOfUsageBreakdownOutDTO: () => instanceOfUsageBreakdownOutDTO,
|
|
709
755
|
instanceOfUsageLineItemOutDTO: () => instanceOfUsageLineItemOutDTO,
|
|
@@ -2521,6 +2567,223 @@ function CreditMeterToJSONTyped(value, ignoreDiscriminator) {
|
|
|
2521
2567
|
return value;
|
|
2522
2568
|
}
|
|
2523
2569
|
|
|
2570
|
+
// src/generated/models/ExtractionCostStateModel.ts
|
|
2571
|
+
var ExtractionCostStateModel = {
|
|
2572
|
+
Pending: "pending",
|
|
2573
|
+
Settled: "settled",
|
|
2574
|
+
NotCharged: "not_charged"
|
|
2575
|
+
};
|
|
2576
|
+
function instanceOfExtractionCostStateModel(value) {
|
|
2577
|
+
for (const key in ExtractionCostStateModel) {
|
|
2578
|
+
if (Object.prototype.hasOwnProperty.call(ExtractionCostStateModel, key)) {
|
|
2579
|
+
if (ExtractionCostStateModel[key] === value) {
|
|
2580
|
+
return true;
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
return false;
|
|
2585
|
+
}
|
|
2586
|
+
function ExtractionCostStateModelFromJSON(json) {
|
|
2587
|
+
return ExtractionCostStateModelFromJSONTyped(json, false);
|
|
2588
|
+
}
|
|
2589
|
+
function ExtractionCostStateModelFromJSONTyped(json, ignoreDiscriminator) {
|
|
2590
|
+
return json;
|
|
2591
|
+
}
|
|
2592
|
+
function ExtractionCostStateModelToJSON(value) {
|
|
2593
|
+
return value;
|
|
2594
|
+
}
|
|
2595
|
+
function ExtractionCostStateModelToJSONTyped(value, ignoreDiscriminator) {
|
|
2596
|
+
return value;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
// src/generated/models/ExtractionCostOutDTO.ts
|
|
2600
|
+
function instanceOfExtractionCostOutDTO(value) {
|
|
2601
|
+
if (!("extractionId" in value) || value["extractionId"] === void 0) return false;
|
|
2602
|
+
if (!("state" in value) || value["state"] === void 0) return false;
|
|
2603
|
+
return true;
|
|
2604
|
+
}
|
|
2605
|
+
function ExtractionCostOutDTOFromJSON(json) {
|
|
2606
|
+
return ExtractionCostOutDTOFromJSONTyped(json, false);
|
|
2607
|
+
}
|
|
2608
|
+
function ExtractionCostOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2609
|
+
if (json == null) {
|
|
2610
|
+
return json;
|
|
2611
|
+
}
|
|
2612
|
+
return {
|
|
2613
|
+
"costCents": json["costCents"] == null ? void 0 : json["costCents"],
|
|
2614
|
+
"costExplanation": json["costExplanation"] == null ? void 0 : json["costExplanation"],
|
|
2615
|
+
"createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
|
|
2616
|
+
"createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
|
|
2617
|
+
"creditsConsumed": json["creditsConsumed"] == null ? void 0 : json["creditsConsumed"],
|
|
2618
|
+
"extractionId": json["extractionId"],
|
|
2619
|
+
"meter": json["meter"] == null ? void 0 : CreditMeterFromJSON(json["meter"]),
|
|
2620
|
+
"state": ExtractionCostStateModelFromJSON(json["state"])
|
|
2621
|
+
};
|
|
2622
|
+
}
|
|
2623
|
+
function ExtractionCostOutDTOToJSON(json) {
|
|
2624
|
+
return ExtractionCostOutDTOToJSONTyped(json, false);
|
|
2625
|
+
}
|
|
2626
|
+
function ExtractionCostOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2627
|
+
if (value == null) {
|
|
2628
|
+
return value;
|
|
2629
|
+
}
|
|
2630
|
+
return {
|
|
2631
|
+
"costCents": value["costCents"],
|
|
2632
|
+
"costExplanation": value["costExplanation"],
|
|
2633
|
+
"createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
|
|
2634
|
+
"createdAtTimestamp": value["createdAtTimestamp"],
|
|
2635
|
+
"creditsConsumed": value["creditsConsumed"],
|
|
2636
|
+
"extractionId": value["extractionId"],
|
|
2637
|
+
"meter": CreditMeterToJSON(value["meter"]),
|
|
2638
|
+
"state": ExtractionCostStateModelToJSON(value["state"])
|
|
2639
|
+
};
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
// src/generated/models/FoundationMetaDTO.ts
|
|
2643
|
+
function instanceOfFoundationMetaDTO(value) {
|
|
2644
|
+
return true;
|
|
2645
|
+
}
|
|
2646
|
+
function FoundationMetaDTOFromJSON(json) {
|
|
2647
|
+
return FoundationMetaDTOFromJSONTyped(json, false);
|
|
2648
|
+
}
|
|
2649
|
+
function FoundationMetaDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2650
|
+
if (json == null) {
|
|
2651
|
+
return json;
|
|
2652
|
+
}
|
|
2653
|
+
return {
|
|
2654
|
+
"correlationId": json["correlationId"] == null ? void 0 : json["correlationId"],
|
|
2655
|
+
"externalId": json["externalId"] == null ? void 0 : json["externalId"],
|
|
2656
|
+
"userId": json["userId"] == null ? void 0 : json["userId"]
|
|
2657
|
+
};
|
|
2658
|
+
}
|
|
2659
|
+
function FoundationMetaDTOToJSON(json) {
|
|
2660
|
+
return FoundationMetaDTOToJSONTyped(json, false);
|
|
2661
|
+
}
|
|
2662
|
+
function FoundationMetaDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2663
|
+
if (value == null) {
|
|
2664
|
+
return value;
|
|
2665
|
+
}
|
|
2666
|
+
return {
|
|
2667
|
+
"correlationId": value["correlationId"],
|
|
2668
|
+
"externalId": value["externalId"],
|
|
2669
|
+
"userId": value["userId"]
|
|
2670
|
+
};
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
// src/generated/models/ExtractionCostOutResultDTO.ts
|
|
2674
|
+
function instanceOfExtractionCostOutResultDTO(value) {
|
|
2675
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
2676
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
2677
|
+
return true;
|
|
2678
|
+
}
|
|
2679
|
+
function ExtractionCostOutResultDTOFromJSON(json) {
|
|
2680
|
+
return ExtractionCostOutResultDTOFromJSONTyped(json, false);
|
|
2681
|
+
}
|
|
2682
|
+
function ExtractionCostOutResultDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2683
|
+
if (json == null) {
|
|
2684
|
+
return json;
|
|
2685
|
+
}
|
|
2686
|
+
return {
|
|
2687
|
+
"createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
|
|
2688
|
+
"createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
|
|
2689
|
+
"data": ExtractionCostOutDTOFromJSON(json["data"]),
|
|
2690
|
+
"errors": json["errors"] == null ? void 0 : json["errors"],
|
|
2691
|
+
"meta": json["meta"] == null ? void 0 : FoundationMetaDTOFromJSON(json["meta"]),
|
|
2692
|
+
"servedAt": json["servedAt"] == null ? void 0 : new Date(json["servedAt"]),
|
|
2693
|
+
"servedAtTimestamp": json["servedAtTimestamp"] == null ? void 0 : json["servedAtTimestamp"],
|
|
2694
|
+
"status": ResponseStatusFromJSON(json["status"])
|
|
2695
|
+
};
|
|
2696
|
+
}
|
|
2697
|
+
function ExtractionCostOutResultDTOToJSON(json) {
|
|
2698
|
+
return ExtractionCostOutResultDTOToJSONTyped(json, false);
|
|
2699
|
+
}
|
|
2700
|
+
function ExtractionCostOutResultDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2701
|
+
if (value == null) {
|
|
2702
|
+
return value;
|
|
2703
|
+
}
|
|
2704
|
+
return {
|
|
2705
|
+
"createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
|
|
2706
|
+
"createdAtTimestamp": value["createdAtTimestamp"],
|
|
2707
|
+
"data": ExtractionCostOutDTOToJSON(value["data"]),
|
|
2708
|
+
"errors": value["errors"],
|
|
2709
|
+
"meta": FoundationMetaDTOToJSON(value["meta"]),
|
|
2710
|
+
"servedAt": value["servedAt"] == null ? value["servedAt"] : value["servedAt"].toISOString(),
|
|
2711
|
+
"servedAtTimestamp": value["servedAtTimestamp"],
|
|
2712
|
+
"status": ResponseStatusToJSON(value["status"])
|
|
2713
|
+
};
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
// src/generated/models/ExtractionCostsDataOutDTO.ts
|
|
2717
|
+
function instanceOfExtractionCostsDataOutDTO(value) {
|
|
2718
|
+
if (!("costs" in value) || value["costs"] === void 0) return false;
|
|
2719
|
+
return true;
|
|
2720
|
+
}
|
|
2721
|
+
function ExtractionCostsDataOutDTOFromJSON(json) {
|
|
2722
|
+
return ExtractionCostsDataOutDTOFromJSONTyped(json, false);
|
|
2723
|
+
}
|
|
2724
|
+
function ExtractionCostsDataOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2725
|
+
if (json == null) {
|
|
2726
|
+
return json;
|
|
2727
|
+
}
|
|
2728
|
+
return {
|
|
2729
|
+
"costs": json["costs"].map(ExtractionCostOutDTOFromJSON)
|
|
2730
|
+
};
|
|
2731
|
+
}
|
|
2732
|
+
function ExtractionCostsDataOutDTOToJSON(json) {
|
|
2733
|
+
return ExtractionCostsDataOutDTOToJSONTyped(json, false);
|
|
2734
|
+
}
|
|
2735
|
+
function ExtractionCostsDataOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2736
|
+
if (value == null) {
|
|
2737
|
+
return value;
|
|
2738
|
+
}
|
|
2739
|
+
return {
|
|
2740
|
+
"costs": value["costs"].map(ExtractionCostOutDTOToJSON)
|
|
2741
|
+
};
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2744
|
+
// src/generated/models/ExtractionCostsOutDTO.ts
|
|
2745
|
+
function instanceOfExtractionCostsOutDTO(value) {
|
|
2746
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
2747
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
2748
|
+
return true;
|
|
2749
|
+
}
|
|
2750
|
+
function ExtractionCostsOutDTOFromJSON(json) {
|
|
2751
|
+
return ExtractionCostsOutDTOFromJSONTyped(json, false);
|
|
2752
|
+
}
|
|
2753
|
+
function ExtractionCostsOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
2754
|
+
if (json == null) {
|
|
2755
|
+
return json;
|
|
2756
|
+
}
|
|
2757
|
+
return {
|
|
2758
|
+
"createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
|
|
2759
|
+
"createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
|
|
2760
|
+
"data": ExtractionCostsDataOutDTOFromJSON(json["data"]),
|
|
2761
|
+
"errors": json["errors"] == null ? void 0 : json["errors"],
|
|
2762
|
+
"meta": json["meta"] == null ? void 0 : FoundationMetaDTOFromJSON(json["meta"]),
|
|
2763
|
+
"servedAt": json["servedAt"] == null ? void 0 : new Date(json["servedAt"]),
|
|
2764
|
+
"servedAtTimestamp": json["servedAtTimestamp"] == null ? void 0 : json["servedAtTimestamp"],
|
|
2765
|
+
"status": ResponseStatusFromJSON(json["status"])
|
|
2766
|
+
};
|
|
2767
|
+
}
|
|
2768
|
+
function ExtractionCostsOutDTOToJSON(json) {
|
|
2769
|
+
return ExtractionCostsOutDTOToJSONTyped(json, false);
|
|
2770
|
+
}
|
|
2771
|
+
function ExtractionCostsOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2772
|
+
if (value == null) {
|
|
2773
|
+
return value;
|
|
2774
|
+
}
|
|
2775
|
+
return {
|
|
2776
|
+
"createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
|
|
2777
|
+
"createdAtTimestamp": value["createdAtTimestamp"],
|
|
2778
|
+
"data": ExtractionCostsDataOutDTOToJSON(value["data"]),
|
|
2779
|
+
"errors": value["errors"],
|
|
2780
|
+
"meta": FoundationMetaDTOToJSON(value["meta"]),
|
|
2781
|
+
"servedAt": value["servedAt"] == null ? value["servedAt"] : value["servedAt"].toISOString(),
|
|
2782
|
+
"servedAtTimestamp": value["servedAtTimestamp"],
|
|
2783
|
+
"status": ResponseStatusToJSON(value["status"])
|
|
2784
|
+
};
|
|
2785
|
+
}
|
|
2786
|
+
|
|
2524
2787
|
// src/generated/models/ExtractionViewMetaOutDTO.ts
|
|
2525
2788
|
function instanceOfExtractionViewMetaOutDTO(value) {
|
|
2526
2789
|
if (!("correction" in value) || value["correction"] === void 0) return false;
|
|
@@ -3125,6 +3388,38 @@ function NumberOfStoredDocumentsOutDTOToJSONTyped(value, ignoreDiscriminator = f
|
|
|
3125
3388
|
};
|
|
3126
3389
|
}
|
|
3127
3390
|
|
|
3391
|
+
// src/generated/models/UploadExtractionTypeEnum.ts
|
|
3392
|
+
var UploadExtractionTypeEnum = {
|
|
3393
|
+
Ocr: "ocr",
|
|
3394
|
+
DocumentDetailsHebrew: "document_details_hebrew",
|
|
3395
|
+
DocumentLineItemsHebrew: "document_line_items_hebrew",
|
|
3396
|
+
InvoiceHeaders: "invoice_headers",
|
|
3397
|
+
InvoiceLineItems: "invoice_line_items",
|
|
3398
|
+
CustomTemplate: "custom_template"
|
|
3399
|
+
};
|
|
3400
|
+
function instanceOfUploadExtractionTypeEnum(value) {
|
|
3401
|
+
for (const key in UploadExtractionTypeEnum) {
|
|
3402
|
+
if (Object.prototype.hasOwnProperty.call(UploadExtractionTypeEnum, key)) {
|
|
3403
|
+
if (UploadExtractionTypeEnum[key] === value) {
|
|
3404
|
+
return true;
|
|
3405
|
+
}
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
return false;
|
|
3409
|
+
}
|
|
3410
|
+
function UploadExtractionTypeEnumFromJSON(json) {
|
|
3411
|
+
return UploadExtractionTypeEnumFromJSONTyped(json, false);
|
|
3412
|
+
}
|
|
3413
|
+
function UploadExtractionTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
3414
|
+
return json;
|
|
3415
|
+
}
|
|
3416
|
+
function UploadExtractionTypeEnumToJSON(value) {
|
|
3417
|
+
return value;
|
|
3418
|
+
}
|
|
3419
|
+
function UploadExtractionTypeEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
3420
|
+
return value;
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3128
3423
|
// src/generated/models/WebDocumentUploadInDTO.ts
|
|
3129
3424
|
function instanceOfWebDocumentUploadInDTO(value) {
|
|
3130
3425
|
if (!("externalId" in value) || value["externalId"] === void 0) return false;
|
|
@@ -3146,7 +3441,7 @@ function WebDocumentUploadInDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
3146
3441
|
"endUserId": json["endUserId"] == null ? void 0 : json["endUserId"],
|
|
3147
3442
|
"evaluation": json["evaluation"] == null ? void 0 : json["evaluation"],
|
|
3148
3443
|
"externalId": json["externalId"],
|
|
3149
|
-
"extractionTypes": json["extractionTypes"].map(
|
|
3444
|
+
"extractionTypes": json["extractionTypes"].map(UploadExtractionTypeEnumFromJSON),
|
|
3150
3445
|
"includeCoordinates": json["includeCoordinates"] == null ? void 0 : json["includeCoordinates"],
|
|
3151
3446
|
"modelType": json["modelType"] == null ? void 0 : ModelTypeFromJSON(json["modelType"]),
|
|
3152
3447
|
"templateId": json["templateId"] == null ? void 0 : json["templateId"],
|
|
@@ -3168,7 +3463,7 @@ function WebDocumentUploadInDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
3168
3463
|
"endUserId": value["endUserId"],
|
|
3169
3464
|
"evaluation": value["evaluation"],
|
|
3170
3465
|
"externalId": value["externalId"],
|
|
3171
|
-
"extractionTypes": value["extractionTypes"].map(
|
|
3466
|
+
"extractionTypes": value["extractionTypes"].map(UploadExtractionTypeEnumToJSON),
|
|
3172
3467
|
"includeCoordinates": value["includeCoordinates"],
|
|
3173
3468
|
"modelType": ModelTypeToJSON(value["modelType"]),
|
|
3174
3469
|
"templateId": value["templateId"],
|
|
@@ -3258,7 +3553,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3258
3553
|
};
|
|
3259
3554
|
}
|
|
3260
3555
|
/**
|
|
3261
|
-
* Posts an async request for a document file (image or PDF) processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
3556
|
+
* Posts an async request for a document file (image or PDF) processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
3262
3557
|
* Create Document Processing Request
|
|
3263
3558
|
*/
|
|
3264
3559
|
async createDocumentProcessingRequestRaw(requestParameters, initOverrides) {
|
|
@@ -3267,7 +3562,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3267
3562
|
return new JSONApiResponse(response, (jsonValue) => DocumentProcessingResultOutDTOFromJSON(jsonValue));
|
|
3268
3563
|
}
|
|
3269
3564
|
/**
|
|
3270
|
-
* Posts an async request for a document file (image or PDF) processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
3565
|
+
* Posts an async request for a document file (image or PDF) processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
3271
3566
|
* Create Document Processing Request
|
|
3272
3567
|
*/
|
|
3273
3568
|
async createDocumentProcessingRequest(requestParameters, initOverrides) {
|
|
@@ -3356,7 +3651,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3356
3651
|
};
|
|
3357
3652
|
}
|
|
3358
3653
|
/**
|
|
3359
|
-
* Posts an async request for a document file (image or PDF) processing with user authentication Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
3654
|
+
* Posts an async request for a document file (image or PDF) processing with user authentication Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
3360
3655
|
* Create Document Processing Request By User
|
|
3361
3656
|
*/
|
|
3362
3657
|
async createDocumentProcessingRequestByUserRaw(requestParameters, initOverrides) {
|
|
@@ -3365,7 +3660,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3365
3660
|
return new JSONApiResponse(response, (jsonValue) => DocumentProcessingResultOutDTOFromJSON(jsonValue));
|
|
3366
3661
|
}
|
|
3367
3662
|
/**
|
|
3368
|
-
* Posts an async request for a document file (image or PDF) processing with user authentication Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
3663
|
+
* Posts an async request for a document file (image or PDF) processing with user authentication Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
3369
3664
|
* Create Document Processing Request By User
|
|
3370
3665
|
*/
|
|
3371
3666
|
async createDocumentProcessingRequestByUser(requestParameters, initOverrides) {
|
|
@@ -3398,7 +3693,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3398
3693
|
};
|
|
3399
3694
|
}
|
|
3400
3695
|
/**
|
|
3401
|
-
* Upload a document file from a URL (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
3696
|
+
* Upload a document file from a URL (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
3402
3697
|
* Create Web Document Processing Request
|
|
3403
3698
|
*/
|
|
3404
3699
|
async createWebDocumentProcessingRequestRaw(requestParameters, initOverrides) {
|
|
@@ -3407,7 +3702,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3407
3702
|
return new JSONApiResponse(response, (jsonValue) => DocumentProcessingResultOutDTOFromJSON(jsonValue));
|
|
3408
3703
|
}
|
|
3409
3704
|
/**
|
|
3410
|
-
* Upload a document file from a URL (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
3705
|
+
* Upload a document file from a URL (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
3411
3706
|
* Create Web Document Processing Request
|
|
3412
3707
|
*/
|
|
3413
3708
|
async createWebDocumentProcessingRequest(requestParameters, initOverrides) {
|
|
@@ -3443,7 +3738,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3443
3738
|
};
|
|
3444
3739
|
}
|
|
3445
3740
|
/**
|
|
3446
|
-
* Posts an async request for a document file from a URL (image or PDF) processing with user authentication Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
3741
|
+
* Posts an async request for a document file from a URL (image or PDF) processing with user authentication Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
3447
3742
|
* Create Web Document Processing Request By User
|
|
3448
3743
|
*/
|
|
3449
3744
|
async createWebDocumentProcessingRequestByUserRaw(requestParameters, initOverrides) {
|
|
@@ -3452,7 +3747,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3452
3747
|
return new JSONApiResponse(response, (jsonValue) => DocumentProcessingResultOutDTOFromJSON(jsonValue));
|
|
3453
3748
|
}
|
|
3454
3749
|
/**
|
|
3455
|
-
* Posts an async request for a document file from a URL (image or PDF) processing with user authentication Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
3750
|
+
* Posts an async request for a document file from a URL (image or PDF) processing with user authentication Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
3456
3751
|
* Create Web Document Processing Request By User
|
|
3457
3752
|
*/
|
|
3458
3753
|
async createWebDocumentProcessingRequestByUser(requestParameters, initOverrides) {
|
|
@@ -3941,6 +4236,90 @@ var DocumentApi = class extends BaseAPI {
|
|
|
3941
4236
|
const response = await this.getDocumentProcessingResultByCorrelationIdByUserRaw(requestParameters, initOverrides);
|
|
3942
4237
|
return await response.value();
|
|
3943
4238
|
}
|
|
4239
|
+
/**
|
|
4240
|
+
* Creates request options for getExtractionCost without sending the request
|
|
4241
|
+
*/
|
|
4242
|
+
async getExtractionCostRequestOpts(requestParameters) {
|
|
4243
|
+
if (requestParameters["documentExtractionId"] == null) {
|
|
4244
|
+
throw new RequiredError(
|
|
4245
|
+
"documentExtractionId",
|
|
4246
|
+
'Required parameter "documentExtractionId" was null or undefined when calling getExtractionCost().'
|
|
4247
|
+
);
|
|
4248
|
+
}
|
|
4249
|
+
const queryParameters = {};
|
|
4250
|
+
const headerParameters = {};
|
|
4251
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4252
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
4253
|
+
}
|
|
4254
|
+
let urlPath = `/api/v1/documents/extractions/{document_extraction_id}/cost`;
|
|
4255
|
+
urlPath = urlPath.replace("{document_extraction_id}", encodeURIComponent(String(requestParameters["documentExtractionId"])));
|
|
4256
|
+
return {
|
|
4257
|
+
path: urlPath,
|
|
4258
|
+
method: "GET",
|
|
4259
|
+
headers: headerParameters,
|
|
4260
|
+
query: queryParameters
|
|
4261
|
+
};
|
|
4262
|
+
}
|
|
4263
|
+
/**
|
|
4264
|
+
* Look up what a single extraction cost. See the bulk variant (`/extractions/costs`) for the `state` semantics. An extraction the calling API key does not own is reported as not found.
|
|
4265
|
+
* Get Extraction Cost
|
|
4266
|
+
*/
|
|
4267
|
+
async getExtractionCostRaw(requestParameters, initOverrides) {
|
|
4268
|
+
const requestOptions = await this.getExtractionCostRequestOpts(requestParameters);
|
|
4269
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4270
|
+
return new JSONApiResponse(response, (jsonValue) => ExtractionCostOutResultDTOFromJSON(jsonValue));
|
|
4271
|
+
}
|
|
4272
|
+
/**
|
|
4273
|
+
* Look up what a single extraction cost. See the bulk variant (`/extractions/costs`) for the `state` semantics. An extraction the calling API key does not own is reported as not found.
|
|
4274
|
+
* Get Extraction Cost
|
|
4275
|
+
*/
|
|
4276
|
+
async getExtractionCost(requestParameters, initOverrides) {
|
|
4277
|
+
const response = await this.getExtractionCostRaw(requestParameters, initOverrides);
|
|
4278
|
+
return await response.value();
|
|
4279
|
+
}
|
|
4280
|
+
/**
|
|
4281
|
+
* Creates request options for getExtractionCosts without sending the request
|
|
4282
|
+
*/
|
|
4283
|
+
async getExtractionCostsRequestOpts(requestParameters) {
|
|
4284
|
+
if (requestParameters["ids"] == null) {
|
|
4285
|
+
throw new RequiredError(
|
|
4286
|
+
"ids",
|
|
4287
|
+
'Required parameter "ids" was null or undefined when calling getExtractionCosts().'
|
|
4288
|
+
);
|
|
4289
|
+
}
|
|
4290
|
+
const queryParameters = {};
|
|
4291
|
+
if (requestParameters["ids"] != null) {
|
|
4292
|
+
queryParameters["ids"] = requestParameters["ids"];
|
|
4293
|
+
}
|
|
4294
|
+
const headerParameters = {};
|
|
4295
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
4296
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
4297
|
+
}
|
|
4298
|
+
let urlPath = `/api/v1/documents/extractions/costs`;
|
|
4299
|
+
return {
|
|
4300
|
+
path: urlPath,
|
|
4301
|
+
method: "GET",
|
|
4302
|
+
headers: headerParameters,
|
|
4303
|
+
query: queryParameters
|
|
4304
|
+
};
|
|
4305
|
+
}
|
|
4306
|
+
/**
|
|
4307
|
+
* Look up what a batch of extractions cost. Lean by design: costs only — no signed document URLs, no extracted values. Use this instead of the full extraction view when all you need is spend. Pass one `ids` parameter per extraction, e.g. `?ids=<uuid>&ids=<uuid>`. Ids belonging to another API key, and ids that do not exist, are omitted from the response rather than reported — the endpoint cannot be used to discover whether an extraction id is real. Key the response by `extractionId`; order is not guaranteed. Each entry carries a `state`: - `settled` — the charge is on record; the number is final - `pending` — billing has not run yet; retry - `not_charged` — billing finished with no charge; this never resolves
|
|
4308
|
+
* Get Extraction Costs
|
|
4309
|
+
*/
|
|
4310
|
+
async getExtractionCostsRaw(requestParameters, initOverrides) {
|
|
4311
|
+
const requestOptions = await this.getExtractionCostsRequestOpts(requestParameters);
|
|
4312
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
4313
|
+
return new JSONApiResponse(response, (jsonValue) => ExtractionCostsOutDTOFromJSON(jsonValue));
|
|
4314
|
+
}
|
|
4315
|
+
/**
|
|
4316
|
+
* Look up what a batch of extractions cost. Lean by design: costs only — no signed document URLs, no extracted values. Use this instead of the full extraction view when all you need is spend. Pass one `ids` parameter per extraction, e.g. `?ids=<uuid>&ids=<uuid>`. Ids belonging to another API key, and ids that do not exist, are omitted from the response rather than reported — the endpoint cannot be used to discover whether an extraction id is real. Key the response by `extractionId`; order is not guaranteed. Each entry carries a `state`: - `settled` — the charge is on record; the number is final - `pending` — billing has not run yet; retry - `not_charged` — billing finished with no charge; this never resolves
|
|
4317
|
+
* Get Extraction Costs
|
|
4318
|
+
*/
|
|
4319
|
+
async getExtractionCosts(requestParameters, initOverrides) {
|
|
4320
|
+
const response = await this.getExtractionCostsRaw(requestParameters, initOverrides);
|
|
4321
|
+
return await response.value();
|
|
4322
|
+
}
|
|
3944
4323
|
/**
|
|
3945
4324
|
* Creates request options for getTotalNumberOfStoredDocumentsByUser without sending the request
|
|
3946
4325
|
*/
|
|
@@ -4364,7 +4743,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
4364
4743
|
};
|
|
4365
4744
|
}
|
|
4366
4745
|
/**
|
|
4367
|
-
* Upload a document file (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
4746
|
+
* Upload a document file (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
4368
4747
|
* Upload Document
|
|
4369
4748
|
*/
|
|
4370
4749
|
async uploadDocumentRaw(requestParameters, initOverrides) {
|
|
@@ -4373,7 +4752,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
4373
4752
|
return new JSONApiResponse(response, (jsonValue) => DocumentProcessingResultOutDTOFromJSON(jsonValue));
|
|
4374
4753
|
}
|
|
4375
4754
|
/**
|
|
4376
|
-
* Upload a document file (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
4755
|
+
* Upload a document file (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
4377
4756
|
* Upload Document
|
|
4378
4757
|
*/
|
|
4379
4758
|
async uploadDocument(requestParameters, initOverrides) {
|
|
@@ -4462,7 +4841,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
4462
4841
|
};
|
|
4463
4842
|
}
|
|
4464
4843
|
/**
|
|
4465
|
-
* Upload a document file (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
4844
|
+
* Upload a document file (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
4466
4845
|
* Upload Document By User
|
|
4467
4846
|
*/
|
|
4468
4847
|
async uploadDocumentByUserRaw(requestParameters, initOverrides) {
|
|
@@ -4471,7 +4850,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
4471
4850
|
return new JSONApiResponse(response, (jsonValue) => DocumentProcessingResultOutDTOFromJSON(jsonValue));
|
|
4472
4851
|
}
|
|
4473
4852
|
/**
|
|
4474
|
-
* Upload a document file (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
4853
|
+
* Upload a document file (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
4475
4854
|
* Upload Document By User
|
|
4476
4855
|
*/
|
|
4477
4856
|
async uploadDocumentByUser(requestParameters, initOverrides) {
|
|
@@ -4504,7 +4883,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
4504
4883
|
};
|
|
4505
4884
|
}
|
|
4506
4885
|
/**
|
|
4507
|
-
* Upload a document file from a URL (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
4886
|
+
* Upload a document file from a URL (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
4508
4887
|
* Upload Web Document
|
|
4509
4888
|
*/
|
|
4510
4889
|
async uploadWebDocumentRaw(requestParameters, initOverrides) {
|
|
@@ -4513,7 +4892,7 @@ var DocumentApi = class extends BaseAPI {
|
|
|
4513
4892
|
return new JSONApiResponse(response, (jsonValue) => DocumentProcessingResultOutDTOFromJSON(jsonValue));
|
|
4514
4893
|
}
|
|
4515
4894
|
/**
|
|
4516
|
-
* Upload a document file from a URL (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP - PDF files: PDF Returns document ID and storage location for further processing
|
|
4895
|
+
* Upload a document file from a URL (image or PDF) for processing Accepts: - Image files: PNG, JPEG, JPG, GIF, WEBP, HEIC/HEIF, AVIF - PDF files: PDF Returns document ID and storage location for further processing
|
|
4517
4896
|
* Upload Web Document
|
|
4518
4897
|
*/
|
|
4519
4898
|
async uploadWebDocument(requestParameters, initOverrides) {
|
|
@@ -5284,12 +5663,12 @@ function FileTagBalanceOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
5284
5663
|
|
|
5285
5664
|
// src/generated/models/FileTagFilenamePatternsOutDTO.ts
|
|
5286
5665
|
function instanceOfFileTagFilenamePatternsOutDTO(value) {
|
|
5287
|
-
if (!("dateFirst" in value)
|
|
5288
|
-
if (!("dateFirstFull" in value)
|
|
5289
|
-
if (!("typeFirst" in value)
|
|
5290
|
-
if (!("typeFirstFull" in value)
|
|
5291
|
-
if (!("vendorFirst" in value)
|
|
5292
|
-
if (!("vendorFirstFull" in value)
|
|
5666
|
+
if (!("dateFirst" in value) || value["dateFirst"] === void 0) return false;
|
|
5667
|
+
if (!("dateFirstFull" in value) || value["dateFirstFull"] === void 0) return false;
|
|
5668
|
+
if (!("typeFirst" in value) || value["typeFirst"] === void 0) return false;
|
|
5669
|
+
if (!("typeFirstFull" in value) || value["typeFirstFull"] === void 0) return false;
|
|
5670
|
+
if (!("vendorFirst" in value) || value["vendorFirst"] === void 0) return false;
|
|
5671
|
+
if (!("vendorFirstFull" in value) || value["vendorFirstFull"] === void 0) return false;
|
|
5293
5672
|
return true;
|
|
5294
5673
|
}
|
|
5295
5674
|
function FileTagFilenamePatternsOutDTOFromJSON(json) {
|
|
@@ -5300,12 +5679,12 @@ function FileTagFilenamePatternsOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5300
5679
|
return json;
|
|
5301
5680
|
}
|
|
5302
5681
|
return {
|
|
5303
|
-
"dateFirst": json["
|
|
5304
|
-
"dateFirstFull": json["
|
|
5305
|
-
"typeFirst": json["
|
|
5306
|
-
"typeFirstFull": json["
|
|
5307
|
-
"vendorFirst": json["
|
|
5308
|
-
"vendorFirstFull": json["
|
|
5682
|
+
"dateFirst": json["dateFirst"],
|
|
5683
|
+
"dateFirstFull": json["dateFirstFull"],
|
|
5684
|
+
"typeFirst": json["typeFirst"],
|
|
5685
|
+
"typeFirstFull": json["typeFirstFull"],
|
|
5686
|
+
"vendorFirst": json["vendorFirst"],
|
|
5687
|
+
"vendorFirstFull": json["vendorFirstFull"]
|
|
5309
5688
|
};
|
|
5310
5689
|
}
|
|
5311
5690
|
function FileTagFilenamePatternsOutDTOToJSON(json) {
|
|
@@ -5316,12 +5695,12 @@ function FileTagFilenamePatternsOutDTOToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5316
5695
|
return value;
|
|
5317
5696
|
}
|
|
5318
5697
|
return {
|
|
5319
|
-
"
|
|
5320
|
-
"
|
|
5321
|
-
"
|
|
5322
|
-
"
|
|
5323
|
-
"
|
|
5324
|
-
"
|
|
5698
|
+
"dateFirst": value["dateFirst"],
|
|
5699
|
+
"dateFirstFull": value["dateFirstFull"],
|
|
5700
|
+
"typeFirst": value["typeFirst"],
|
|
5701
|
+
"typeFirstFull": value["typeFirstFull"],
|
|
5702
|
+
"vendorFirst": value["vendorFirst"],
|
|
5703
|
+
"vendorFirstFull": value["vendorFirstFull"]
|
|
5325
5704
|
};
|
|
5326
5705
|
}
|
|
5327
5706
|
|
|
@@ -5330,8 +5709,8 @@ var NextActionOutDTOActionEnum = {
|
|
|
5330
5709
|
HttpGetAndSave: "http_get_and_save"
|
|
5331
5710
|
};
|
|
5332
5711
|
function instanceOfNextActionOutDTO(value) {
|
|
5333
|
-
if (!("expiresInSeconds" in value)
|
|
5334
|
-
if (!("saveAs" in value)
|
|
5712
|
+
if (!("expiresInSeconds" in value) || value["expiresInSeconds"] === void 0) return false;
|
|
5713
|
+
if (!("saveAs" in value) || value["saveAs"] === void 0) return false;
|
|
5335
5714
|
if (!("url" in value) || value["url"] === void 0) return false;
|
|
5336
5715
|
return true;
|
|
5337
5716
|
}
|
|
@@ -5344,9 +5723,9 @@ function NextActionOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5344
5723
|
}
|
|
5345
5724
|
return {
|
|
5346
5725
|
"action": json["action"] == null ? void 0 : json["action"],
|
|
5347
|
-
"expiresInSeconds": json["
|
|
5726
|
+
"expiresInSeconds": json["expiresInSeconds"],
|
|
5348
5727
|
"instruction": json["instruction"] == null ? void 0 : json["instruction"],
|
|
5349
|
-
"saveAs": json["
|
|
5728
|
+
"saveAs": json["saveAs"],
|
|
5350
5729
|
"url": json["url"]
|
|
5351
5730
|
};
|
|
5352
5731
|
}
|
|
@@ -5359,9 +5738,9 @@ function NextActionOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
5359
5738
|
}
|
|
5360
5739
|
return {
|
|
5361
5740
|
"action": value["action"],
|
|
5362
|
-
"
|
|
5741
|
+
"expiresInSeconds": value["expiresInSeconds"],
|
|
5363
5742
|
"instruction": value["instruction"],
|
|
5364
|
-
"
|
|
5743
|
+
"saveAs": value["saveAs"],
|
|
5365
5744
|
"url": value["url"]
|
|
5366
5745
|
};
|
|
5367
5746
|
}
|
|
@@ -5383,8 +5762,8 @@ function FileTagMetadataOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5383
5762
|
"copyright": json["copyright"] == null ? void 0 : json["copyright"],
|
|
5384
5763
|
"date": json["date"] == null ? void 0 : json["date"],
|
|
5385
5764
|
"description": json["description"] == null ? void 0 : json["description"],
|
|
5386
|
-
"documentNumber": json["
|
|
5387
|
-
"documentType": json["
|
|
5765
|
+
"documentNumber": json["documentNumber"] == null ? void 0 : json["documentNumber"],
|
|
5766
|
+
"documentType": json["documentType"] == null ? void 0 : json["documentType"],
|
|
5388
5767
|
"tags": json["tags"] == null ? void 0 : json["tags"],
|
|
5389
5768
|
"title": json["title"] == null ? void 0 : json["title"]
|
|
5390
5769
|
};
|
|
@@ -5402,8 +5781,8 @@ function FileTagMetadataOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
5402
5781
|
"copyright": value["copyright"],
|
|
5403
5782
|
"date": value["date"],
|
|
5404
5783
|
"description": value["description"],
|
|
5405
|
-
"
|
|
5406
|
-
"
|
|
5784
|
+
"documentNumber": value["documentNumber"],
|
|
5785
|
+
"documentType": value["documentType"],
|
|
5407
5786
|
"tags": value["tags"],
|
|
5408
5787
|
"title": value["title"]
|
|
5409
5788
|
};
|
|
@@ -5411,15 +5790,15 @@ function FileTagMetadataOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
5411
5790
|
|
|
5412
5791
|
// src/generated/models/FileTagResultOutDTO.ts
|
|
5413
5792
|
function instanceOfFileTagResultOutDTO(value) {
|
|
5414
|
-
if (!("documentExtractionId" in value)
|
|
5415
|
-
if (!("documentId" in value)
|
|
5416
|
-
if (!("enrichedFileExpiresAt" in value)
|
|
5417
|
-
if (!("enrichedFileExpiresInSeconds" in value)
|
|
5418
|
-
if (!("enrichedFileUrl" in value)
|
|
5419
|
-
if (!("filenamePatterns" in value)
|
|
5793
|
+
if (!("documentExtractionId" in value) || value["documentExtractionId"] === void 0) return false;
|
|
5794
|
+
if (!("documentId" in value) || value["documentId"] === void 0) return false;
|
|
5795
|
+
if (!("enrichedFileExpiresAt" in value) || value["enrichedFileExpiresAt"] === void 0) return false;
|
|
5796
|
+
if (!("enrichedFileExpiresInSeconds" in value) || value["enrichedFileExpiresInSeconds"] === void 0) return false;
|
|
5797
|
+
if (!("enrichedFileUrl" in value) || value["enrichedFileUrl"] === void 0) return false;
|
|
5798
|
+
if (!("filenamePatterns" in value) || value["filenamePatterns"] === void 0) return false;
|
|
5420
5799
|
if (!("metadata" in value) || value["metadata"] === void 0) return false;
|
|
5421
|
-
if (!("nextAction" in value)
|
|
5422
|
-
if (!("suggestedFilename" in value)
|
|
5800
|
+
if (!("nextAction" in value) || value["nextAction"] === void 0) return false;
|
|
5801
|
+
if (!("suggestedFilename" in value) || value["suggestedFilename"] === void 0) return false;
|
|
5423
5802
|
return true;
|
|
5424
5803
|
}
|
|
5425
5804
|
function FileTagResultOutDTOFromJSON(json) {
|
|
@@ -5430,15 +5809,15 @@ function FileTagResultOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5430
5809
|
return json;
|
|
5431
5810
|
}
|
|
5432
5811
|
return {
|
|
5433
|
-
"documentExtractionId": json["
|
|
5434
|
-
"documentId": json["
|
|
5435
|
-
"enrichedFileExpiresAt": new Date(json["
|
|
5436
|
-
"enrichedFileExpiresInSeconds": json["
|
|
5437
|
-
"enrichedFileUrl": json["
|
|
5438
|
-
"filenamePatterns": FileTagFilenamePatternsOutDTOFromJSON(json["
|
|
5812
|
+
"documentExtractionId": json["documentExtractionId"],
|
|
5813
|
+
"documentId": json["documentId"],
|
|
5814
|
+
"enrichedFileExpiresAt": new Date(json["enrichedFileExpiresAt"]),
|
|
5815
|
+
"enrichedFileExpiresInSeconds": json["enrichedFileExpiresInSeconds"],
|
|
5816
|
+
"enrichedFileUrl": json["enrichedFileUrl"],
|
|
5817
|
+
"filenamePatterns": FileTagFilenamePatternsOutDTOFromJSON(json["filenamePatterns"]),
|
|
5439
5818
|
"metadata": FileTagMetadataOutDTOFromJSON(json["metadata"]),
|
|
5440
|
-
"nextAction": NextActionOutDTOFromJSON(json["
|
|
5441
|
-
"suggestedFilename": json["
|
|
5819
|
+
"nextAction": NextActionOutDTOFromJSON(json["nextAction"]),
|
|
5820
|
+
"suggestedFilename": json["suggestedFilename"]
|
|
5442
5821
|
};
|
|
5443
5822
|
}
|
|
5444
5823
|
function FileTagResultOutDTOToJSON(json) {
|
|
@@ -5449,15 +5828,15 @@ function FileTagResultOutDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
5449
5828
|
return value;
|
|
5450
5829
|
}
|
|
5451
5830
|
return {
|
|
5452
|
-
"
|
|
5453
|
-
"
|
|
5454
|
-
"
|
|
5455
|
-
"
|
|
5456
|
-
"
|
|
5457
|
-
"
|
|
5831
|
+
"documentExtractionId": value["documentExtractionId"],
|
|
5832
|
+
"documentId": value["documentId"],
|
|
5833
|
+
"enrichedFileExpiresAt": value["enrichedFileExpiresAt"].toISOString(),
|
|
5834
|
+
"enrichedFileExpiresInSeconds": value["enrichedFileExpiresInSeconds"],
|
|
5835
|
+
"enrichedFileUrl": value["enrichedFileUrl"],
|
|
5836
|
+
"filenamePatterns": FileTagFilenamePatternsOutDTOToJSON(value["filenamePatterns"]),
|
|
5458
5837
|
"metadata": FileTagMetadataOutDTOToJSON(value["metadata"]),
|
|
5459
|
-
"
|
|
5460
|
-
"
|
|
5838
|
+
"nextAction": NextActionOutDTOToJSON(value["nextAction"]),
|
|
5839
|
+
"suggestedFilename": value["suggestedFilename"]
|
|
5461
5840
|
};
|
|
5462
5841
|
}
|
|
5463
5842
|
|
|
@@ -5695,9 +6074,9 @@ var FilesUploadDetailsOutDTOMethodEnum = {
|
|
|
5695
6074
|
Put: "PUT"
|
|
5696
6075
|
};
|
|
5697
6076
|
function instanceOfFilesUploadDetailsOutDTO(value) {
|
|
5698
|
-
if (!("expiresAt" in value)
|
|
6077
|
+
if (!("expiresAt" in value) || value["expiresAt"] === void 0) return false;
|
|
5699
6078
|
if (!("headers" in value) || value["headers"] === void 0) return false;
|
|
5700
|
-
if (!("maxSizeBytes" in value)
|
|
6079
|
+
if (!("maxSizeBytes" in value) || value["maxSizeBytes"] === void 0) return false;
|
|
5701
6080
|
if (!("url" in value) || value["url"] === void 0) return false;
|
|
5702
6081
|
return true;
|
|
5703
6082
|
}
|
|
@@ -5709,9 +6088,9 @@ function FilesUploadDetailsOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5709
6088
|
return json;
|
|
5710
6089
|
}
|
|
5711
6090
|
return {
|
|
5712
|
-
"expiresAt": new Date(json["
|
|
6091
|
+
"expiresAt": new Date(json["expiresAt"]),
|
|
5713
6092
|
"headers": json["headers"],
|
|
5714
|
-
"maxSizeBytes": json["
|
|
6093
|
+
"maxSizeBytes": json["maxSizeBytes"],
|
|
5715
6094
|
"method": json["method"] == null ? void 0 : json["method"],
|
|
5716
6095
|
"url": json["url"]
|
|
5717
6096
|
};
|
|
@@ -5724,9 +6103,9 @@ function FilesUploadDetailsOutDTOToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
5724
6103
|
return value;
|
|
5725
6104
|
}
|
|
5726
6105
|
return {
|
|
5727
|
-
"
|
|
6106
|
+
"expiresAt": value["expiresAt"].toISOString(),
|
|
5728
6107
|
"headers": value["headers"],
|
|
5729
|
-
"
|
|
6108
|
+
"maxSizeBytes": value["maxSizeBytes"],
|
|
5730
6109
|
"method": value["method"],
|
|
5731
6110
|
"url": value["url"]
|
|
5732
6111
|
};
|
|
@@ -5734,7 +6113,8 @@ function FilesUploadDetailsOutDTOToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
5734
6113
|
|
|
5735
6114
|
// src/generated/models/FilesNextToolCallOutDTO.ts
|
|
5736
6115
|
var FilesNextToolCallOutDTOToolEnum = {
|
|
5737
|
-
TagFile: "tag_file"
|
|
6116
|
+
TagFile: "tag_file",
|
|
6117
|
+
ExtractDocument: "extract_document"
|
|
5738
6118
|
};
|
|
5739
6119
|
function instanceOfFilesNextToolCallOutDTO(value) {
|
|
5740
6120
|
if (!("arguments" in value) || value["arguments"] === void 0) return false;
|
|
@@ -5769,8 +6149,8 @@ function FilesNextToolCallOutDTOToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
5769
6149
|
|
|
5770
6150
|
// src/generated/models/FilesUploadInstructionsOutDTO.ts
|
|
5771
6151
|
function instanceOfFilesUploadInstructionsOutDTO(value) {
|
|
5772
|
-
if (!("fileId" in value)
|
|
5773
|
-
if (!("nextToolCall" in value)
|
|
6152
|
+
if (!("fileId" in value) || value["fileId"] === void 0) return false;
|
|
6153
|
+
if (!("nextToolCall" in value) || value["nextToolCall"] === void 0) return false;
|
|
5774
6154
|
if (!("upload" in value) || value["upload"] === void 0) return false;
|
|
5775
6155
|
return true;
|
|
5776
6156
|
}
|
|
@@ -5782,8 +6162,8 @@ function FilesUploadInstructionsOutDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
5782
6162
|
return json;
|
|
5783
6163
|
}
|
|
5784
6164
|
return {
|
|
5785
|
-
"fileId": json["
|
|
5786
|
-
"nextToolCall": FilesNextToolCallOutDTOFromJSON(json["
|
|
6165
|
+
"fileId": json["fileId"],
|
|
6166
|
+
"nextToolCall": FilesNextToolCallOutDTOFromJSON(json["nextToolCall"]),
|
|
5787
6167
|
"upload": FilesUploadDetailsOutDTOFromJSON(json["upload"])
|
|
5788
6168
|
};
|
|
5789
6169
|
}
|
|
@@ -5795,8 +6175,8 @@ function FilesUploadInstructionsOutDTOToJSONTyped(value, ignoreDiscriminator = f
|
|
|
5795
6175
|
return value;
|
|
5796
6176
|
}
|
|
5797
6177
|
return {
|
|
5798
|
-
"
|
|
5799
|
-
"
|
|
6178
|
+
"fileId": value["fileId"],
|
|
6179
|
+
"nextToolCall": FilesNextToolCallOutDTOToJSON(value["nextToolCall"]),
|
|
5800
6180
|
"upload": FilesUploadDetailsOutDTOToJSON(value["upload"])
|
|
5801
6181
|
};
|
|
5802
6182
|
}
|
|
@@ -6391,7 +6771,8 @@ function AggregateMetaDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6391
6771
|
}
|
|
6392
6772
|
return {
|
|
6393
6773
|
"count": json["count"],
|
|
6394
|
-
"currencyGroupingAdded": json["currencyGroupingAdded"] == null ? void 0 : json["currencyGroupingAdded"]
|
|
6774
|
+
"currencyGroupingAdded": json["currencyGroupingAdded"] == null ? void 0 : json["currencyGroupingAdded"],
|
|
6775
|
+
"duplicatesIgnored": json["duplicatesIgnored"] == null ? void 0 : json["duplicatesIgnored"]
|
|
6395
6776
|
};
|
|
6396
6777
|
}
|
|
6397
6778
|
function AggregateMetaDTOToJSON(json) {
|
|
@@ -6403,7 +6784,8 @@ function AggregateMetaDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6403
6784
|
}
|
|
6404
6785
|
return {
|
|
6405
6786
|
"count": value["count"],
|
|
6406
|
-
"currencyGroupingAdded": value["currencyGroupingAdded"]
|
|
6787
|
+
"currencyGroupingAdded": value["currencyGroupingAdded"],
|
|
6788
|
+
"duplicatesIgnored": value["duplicatesIgnored"]
|
|
6407
6789
|
};
|
|
6408
6790
|
}
|
|
6409
6791
|
|
|
@@ -9454,6 +9836,48 @@ function CreditMeterFilterToJSONTyped(value, ignoreDiscriminator) {
|
|
|
9454
9836
|
return value;
|
|
9455
9837
|
}
|
|
9456
9838
|
|
|
9839
|
+
// src/generated/models/FoundationDTO.ts
|
|
9840
|
+
function instanceOfFoundationDTO(value) {
|
|
9841
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
9842
|
+
return true;
|
|
9843
|
+
}
|
|
9844
|
+
function FoundationDTOFromJSON(json) {
|
|
9845
|
+
return FoundationDTOFromJSONTyped(json, false);
|
|
9846
|
+
}
|
|
9847
|
+
function FoundationDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
9848
|
+
if (json == null) {
|
|
9849
|
+
return json;
|
|
9850
|
+
}
|
|
9851
|
+
return {
|
|
9852
|
+
"createdAt": json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
|
|
9853
|
+
"createdAtTimestamp": json["createdAtTimestamp"] == null ? void 0 : json["createdAtTimestamp"],
|
|
9854
|
+
"data": json["data"] == null ? void 0 : json["data"],
|
|
9855
|
+
"errors": json["errors"] == null ? void 0 : json["errors"],
|
|
9856
|
+
"meta": json["meta"] == null ? void 0 : FoundationMetaDTOFromJSON(json["meta"]),
|
|
9857
|
+
"servedAt": json["servedAt"] == null ? void 0 : new Date(json["servedAt"]),
|
|
9858
|
+
"servedAtTimestamp": json["servedAtTimestamp"] == null ? void 0 : json["servedAtTimestamp"],
|
|
9859
|
+
"status": ResponseStatusFromJSON(json["status"])
|
|
9860
|
+
};
|
|
9861
|
+
}
|
|
9862
|
+
function FoundationDTOToJSON(json) {
|
|
9863
|
+
return FoundationDTOToJSONTyped(json, false);
|
|
9864
|
+
}
|
|
9865
|
+
function FoundationDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
9866
|
+
if (value == null) {
|
|
9867
|
+
return value;
|
|
9868
|
+
}
|
|
9869
|
+
return {
|
|
9870
|
+
"createdAt": value["createdAt"] == null ? value["createdAt"] : value["createdAt"].toISOString(),
|
|
9871
|
+
"createdAtTimestamp": value["createdAtTimestamp"],
|
|
9872
|
+
"data": value["data"],
|
|
9873
|
+
"errors": value["errors"],
|
|
9874
|
+
"meta": FoundationMetaDTOToJSON(value["meta"]),
|
|
9875
|
+
"servedAt": value["servedAt"] == null ? value["servedAt"] : value["servedAt"].toISOString(),
|
|
9876
|
+
"servedAtTimestamp": value["servedAtTimestamp"],
|
|
9877
|
+
"status": ResponseStatusToJSON(value["status"])
|
|
9878
|
+
};
|
|
9879
|
+
}
|
|
9880
|
+
|
|
9457
9881
|
// src/generated/models/LocationInner.ts
|
|
9458
9882
|
function instanceOfLocationInner(value) {
|
|
9459
9883
|
return true;
|
|
@@ -9564,6 +9988,44 @@ function PeriodPresetModelToJSONTyped(value, ignoreDiscriminator) {
|
|
|
9564
9988
|
return value;
|
|
9565
9989
|
}
|
|
9566
9990
|
|
|
9991
|
+
// src/generated/models/PurgeDocumentsWithEndUserId422Response.ts
|
|
9992
|
+
function PurgeDocumentsWithEndUserId422ResponseFromJSON(json) {
|
|
9993
|
+
return PurgeDocumentsWithEndUserId422ResponseFromJSONTyped(json, false);
|
|
9994
|
+
}
|
|
9995
|
+
function PurgeDocumentsWithEndUserId422ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
9996
|
+
if (json == null) {
|
|
9997
|
+
return json;
|
|
9998
|
+
}
|
|
9999
|
+
if (typeof json !== "object") {
|
|
10000
|
+
return json;
|
|
10001
|
+
}
|
|
10002
|
+
if (instanceOfFoundationDTO(json)) {
|
|
10003
|
+
return FoundationDTOFromJSONTyped(json, true);
|
|
10004
|
+
}
|
|
10005
|
+
if (instanceOfHTTPValidationError(json)) {
|
|
10006
|
+
return HTTPValidationErrorFromJSONTyped(json, true);
|
|
10007
|
+
}
|
|
10008
|
+
return {};
|
|
10009
|
+
}
|
|
10010
|
+
function PurgeDocumentsWithEndUserId422ResponseToJSON(json) {
|
|
10011
|
+
return PurgeDocumentsWithEndUserId422ResponseToJSONTyped(json, false);
|
|
10012
|
+
}
|
|
10013
|
+
function PurgeDocumentsWithEndUserId422ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
10014
|
+
if (value == null) {
|
|
10015
|
+
return value;
|
|
10016
|
+
}
|
|
10017
|
+
if (typeof value !== "object") {
|
|
10018
|
+
return value;
|
|
10019
|
+
}
|
|
10020
|
+
if (instanceOfFoundationDTO(value)) {
|
|
10021
|
+
return FoundationDTOToJSON(value);
|
|
10022
|
+
}
|
|
10023
|
+
if (instanceOfHTTPValidationError(value)) {
|
|
10024
|
+
return HTTPValidationErrorToJSON(value);
|
|
10025
|
+
}
|
|
10026
|
+
return {};
|
|
10027
|
+
}
|
|
10028
|
+
|
|
9567
10029
|
// src/errors.ts
|
|
9568
10030
|
var GeminaError = class extends Error {
|
|
9569
10031
|
constructor(message) {
|
|
@@ -9754,7 +10216,10 @@ var GeminaClient = class _GeminaClient {
|
|
|
9754
10216
|
* never retried.
|
|
9755
10217
|
*
|
|
9756
10218
|
* @param source A `Blob`/`File`, or `{ url }` for a web document.
|
|
9757
|
-
* @param extractionTypes Non-empty list of extraction types to run.
|
|
10219
|
+
* @param extractionTypes Non-empty list of extraction types to run. Typed as
|
|
10220
|
+
* `UploadExtractionTypeEnum`, which is the upload
|
|
10221
|
+
* endpoints' own enum -- it omits `filetag`, which the
|
|
10222
|
+
* API rejects here (FileTag has its own endpoints).
|
|
9758
10223
|
* @param options Endpoint form fields + polling knobs.
|
|
9759
10224
|
*/
|
|
9760
10225
|
async processDocument(source, extractionTypes, options = {}) {
|
|
@@ -9887,7 +10352,7 @@ async function asProcessingErrorIfFailedResult(error) {
|
|
|
9887
10352
|
}
|
|
9888
10353
|
|
|
9889
10354
|
// src/version.ts
|
|
9890
|
-
var VERSION = "0.
|
|
10355
|
+
var VERSION = "0.3.1";
|
|
9891
10356
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9892
10357
|
0 && (module.exports = {
|
|
9893
10358
|
AggregateMetaDTOFromJSON,
|
|
@@ -10043,6 +10508,27 @@ var VERSION = "0.2.1";
|
|
|
10043
10508
|
EnterpriseTransactionOutDTOFromJSONTyped,
|
|
10044
10509
|
EnterpriseTransactionOutDTOToJSON,
|
|
10045
10510
|
EnterpriseTransactionOutDTOToJSONTyped,
|
|
10511
|
+
ExtractionCostOutDTOFromJSON,
|
|
10512
|
+
ExtractionCostOutDTOFromJSONTyped,
|
|
10513
|
+
ExtractionCostOutDTOToJSON,
|
|
10514
|
+
ExtractionCostOutDTOToJSONTyped,
|
|
10515
|
+
ExtractionCostOutResultDTOFromJSON,
|
|
10516
|
+
ExtractionCostOutResultDTOFromJSONTyped,
|
|
10517
|
+
ExtractionCostOutResultDTOToJSON,
|
|
10518
|
+
ExtractionCostOutResultDTOToJSONTyped,
|
|
10519
|
+
ExtractionCostStateModel,
|
|
10520
|
+
ExtractionCostStateModelFromJSON,
|
|
10521
|
+
ExtractionCostStateModelFromJSONTyped,
|
|
10522
|
+
ExtractionCostStateModelToJSON,
|
|
10523
|
+
ExtractionCostStateModelToJSONTyped,
|
|
10524
|
+
ExtractionCostsDataOutDTOFromJSON,
|
|
10525
|
+
ExtractionCostsDataOutDTOFromJSONTyped,
|
|
10526
|
+
ExtractionCostsDataOutDTOToJSON,
|
|
10527
|
+
ExtractionCostsDataOutDTOToJSONTyped,
|
|
10528
|
+
ExtractionCostsOutDTOFromJSON,
|
|
10529
|
+
ExtractionCostsOutDTOFromJSONTyped,
|
|
10530
|
+
ExtractionCostsOutDTOToJSON,
|
|
10531
|
+
ExtractionCostsOutDTOToJSONTyped,
|
|
10046
10532
|
ExtractionDocumentViewMetaOutDTOFromJSON,
|
|
10047
10533
|
ExtractionDocumentViewMetaOutDTOFromJSONTyped,
|
|
10048
10534
|
ExtractionDocumentViewMetaOutDTOToJSON,
|
|
@@ -10147,6 +10633,14 @@ var VERSION = "0.2.1";
|
|
|
10147
10633
|
FilesUploadInstructionsOutDTOFromJSONTyped,
|
|
10148
10634
|
FilesUploadInstructionsOutDTOToJSON,
|
|
10149
10635
|
FilesUploadInstructionsOutDTOToJSONTyped,
|
|
10636
|
+
FoundationDTOFromJSON,
|
|
10637
|
+
FoundationDTOFromJSONTyped,
|
|
10638
|
+
FoundationDTOToJSON,
|
|
10639
|
+
FoundationDTOToJSONTyped,
|
|
10640
|
+
FoundationMetaDTOFromJSON,
|
|
10641
|
+
FoundationMetaDTOFromJSONTyped,
|
|
10642
|
+
FoundationMetaDTOToJSON,
|
|
10643
|
+
FoundationMetaDTOToJSONTyped,
|
|
10150
10644
|
FreeTierApi,
|
|
10151
10645
|
FreeTierConfigOutDTOFromJSON,
|
|
10152
10646
|
FreeTierConfigOutDTOFromJSONTyped,
|
|
@@ -10238,6 +10732,10 @@ var VERSION = "0.2.1";
|
|
|
10238
10732
|
PlanOutDTOFromJSONTyped,
|
|
10239
10733
|
PlanOutDTOToJSON,
|
|
10240
10734
|
PlanOutDTOToJSONTyped,
|
|
10735
|
+
PurgeDocumentsWithEndUserId422ResponseFromJSON,
|
|
10736
|
+
PurgeDocumentsWithEndUserId422ResponseFromJSONTyped,
|
|
10737
|
+
PurgeDocumentsWithEndUserId422ResponseToJSON,
|
|
10738
|
+
PurgeDocumentsWithEndUserId422ResponseToJSONTyped,
|
|
10241
10739
|
PurgeReasonModel,
|
|
10242
10740
|
PurgeReasonModelFromJSON,
|
|
10243
10741
|
PurgeReasonModelFromJSONTyped,
|
|
@@ -10408,6 +10906,11 @@ var VERSION = "0.2.1";
|
|
|
10408
10906
|
UpdateTemplateInDTOFromJSONTyped,
|
|
10409
10907
|
UpdateTemplateInDTOToJSON,
|
|
10410
10908
|
UpdateTemplateInDTOToJSONTyped,
|
|
10909
|
+
UploadExtractionTypeEnum,
|
|
10910
|
+
UploadExtractionTypeEnumFromJSON,
|
|
10911
|
+
UploadExtractionTypeEnumFromJSONTyped,
|
|
10912
|
+
UploadExtractionTypeEnumToJSON,
|
|
10913
|
+
UploadExtractionTypeEnumToJSONTyped,
|
|
10411
10914
|
UsageBreakdownListOutDTOFromJSON,
|
|
10412
10915
|
UsageBreakdownListOutDTOFromJSONTyped,
|
|
10413
10916
|
UsageBreakdownListOutDTOToJSON,
|
|
@@ -10493,6 +10996,11 @@ var VERSION = "0.2.1";
|
|
|
10493
10996
|
instanceOfDocumentsViewOutDTO,
|
|
10494
10997
|
instanceOfEnterpriseTransactionListOutDTO,
|
|
10495
10998
|
instanceOfEnterpriseTransactionOutDTO,
|
|
10999
|
+
instanceOfExtractionCostOutDTO,
|
|
11000
|
+
instanceOfExtractionCostOutResultDTO,
|
|
11001
|
+
instanceOfExtractionCostStateModel,
|
|
11002
|
+
instanceOfExtractionCostsDataOutDTO,
|
|
11003
|
+
instanceOfExtractionCostsOutDTO,
|
|
10496
11004
|
instanceOfExtractionDocumentViewMetaOutDTO,
|
|
10497
11005
|
instanceOfExtractionMetaOutDTO,
|
|
10498
11006
|
instanceOfExtractionPrimaryViewOutDTO,
|
|
@@ -10517,6 +11025,8 @@ var VERSION = "0.2.1";
|
|
|
10517
11025
|
instanceOfFilesNextToolCallOutDTO,
|
|
10518
11026
|
instanceOfFilesUploadDetailsOutDTO,
|
|
10519
11027
|
instanceOfFilesUploadInstructionsOutDTO,
|
|
11028
|
+
instanceOfFoundationDTO,
|
|
11029
|
+
instanceOfFoundationMetaDTO,
|
|
10520
11030
|
instanceOfFreeTierConfigOutDTO,
|
|
10521
11031
|
instanceOfGenerateTemplateFromUrlInDTO,
|
|
10522
11032
|
instanceOfHTTPValidationError,
|
|
@@ -10574,6 +11084,7 @@ var VERSION = "0.2.1";
|
|
|
10574
11084
|
instanceOfTopUpPurchaseInDTO,
|
|
10575
11085
|
instanceOfTopUpPurchaseOutDTO,
|
|
10576
11086
|
instanceOfUpdateTemplateInDTO,
|
|
11087
|
+
instanceOfUploadExtractionTypeEnum,
|
|
10577
11088
|
instanceOfUsageBreakdownListOutDTO,
|
|
10578
11089
|
instanceOfUsageBreakdownOutDTO,
|
|
10579
11090
|
instanceOfUsageLineItemOutDTO,
|