@epilot/sdk 2.20.80 → 2.20.81

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 (137) hide show
  1. package/definitions/file-runtime.json +1 -1
  2. package/definitions/file.json +834 -9
  3. package/dist/apis/access-token.cjs +6 -6
  4. package/dist/apis/access-token.js +1 -1
  5. package/dist/apis/address-suggestions.cjs +6 -6
  6. package/dist/apis/address-suggestions.js +1 -1
  7. package/dist/apis/address.cjs +6 -6
  8. package/dist/apis/address.js +1 -1
  9. package/dist/apis/ai-agents.cjs +6 -6
  10. package/dist/apis/ai-agents.js +1 -1
  11. package/dist/apis/app.cjs +6 -6
  12. package/dist/apis/app.js +1 -1
  13. package/dist/apis/audit-logs.cjs +6 -6
  14. package/dist/apis/audit-logs.js +1 -1
  15. package/dist/apis/automation.cjs +6 -6
  16. package/dist/apis/automation.js +1 -1
  17. package/dist/apis/billing.cjs +6 -6
  18. package/dist/apis/billing.js +1 -1
  19. package/dist/apis/blueprint-manifest.cjs +6 -6
  20. package/dist/apis/blueprint-manifest.js +1 -1
  21. package/dist/apis/calendar.cjs +6 -6
  22. package/dist/apis/calendar.js +1 -1
  23. package/dist/apis/chat.cjs +6 -6
  24. package/dist/apis/chat.js +1 -1
  25. package/dist/apis/configuration-hub.cjs +6 -6
  26. package/dist/apis/configuration-hub.js +1 -1
  27. package/dist/apis/consent.cjs +6 -6
  28. package/dist/apis/consent.js +1 -1
  29. package/dist/apis/customer-portal.cjs +6 -6
  30. package/dist/apis/customer-portal.js +1 -1
  31. package/dist/apis/dashboard.cjs +6 -6
  32. package/dist/apis/dashboard.js +1 -1
  33. package/dist/apis/data-governance.cjs +6 -6
  34. package/dist/apis/data-governance.js +1 -1
  35. package/dist/apis/deduplication.cjs +6 -6
  36. package/dist/apis/deduplication.js +1 -1
  37. package/dist/apis/design.cjs +6 -6
  38. package/dist/apis/design.js +1 -1
  39. package/dist/apis/document.cjs +6 -6
  40. package/dist/apis/document.js +1 -1
  41. package/dist/apis/email-settings.cjs +6 -6
  42. package/dist/apis/email-settings.js +1 -1
  43. package/dist/apis/email-template.cjs +6 -6
  44. package/dist/apis/email-template.js +1 -1
  45. package/dist/apis/entity-mapping.cjs +6 -6
  46. package/dist/apis/entity-mapping.js +1 -1
  47. package/dist/apis/entity.cjs +6 -6
  48. package/dist/apis/entity.js +1 -1
  49. package/dist/apis/environments.cjs +6 -6
  50. package/dist/apis/environments.js +1 -1
  51. package/dist/apis/event-catalog.cjs +6 -6
  52. package/dist/apis/event-catalog.js +1 -1
  53. package/dist/apis/external-values.cjs +6 -6
  54. package/dist/apis/external-values.js +1 -1
  55. package/dist/apis/file.cjs +8 -8
  56. package/dist/apis/file.d.cts +2 -2
  57. package/dist/apis/file.d.ts +2 -2
  58. package/dist/apis/file.js +2 -2
  59. package/dist/apis/iban.cjs +6 -6
  60. package/dist/apis/iban.js +1 -1
  61. package/dist/apis/identity.cjs +6 -6
  62. package/dist/apis/identity.js +1 -1
  63. package/dist/apis/integration-toolkit.cjs +6 -6
  64. package/dist/apis/integration-toolkit.js +1 -1
  65. package/dist/apis/journey.cjs +6 -6
  66. package/dist/apis/journey.js +1 -1
  67. package/dist/apis/kanban.cjs +6 -6
  68. package/dist/apis/kanban.js +1 -1
  69. package/dist/apis/message.cjs +6 -6
  70. package/dist/apis/message.js +1 -1
  71. package/dist/apis/metering.cjs +6 -6
  72. package/dist/apis/metering.js +1 -1
  73. package/dist/apis/notes.cjs +6 -6
  74. package/dist/apis/notes.js +1 -1
  75. package/dist/apis/notification.cjs +6 -6
  76. package/dist/apis/notification.js +1 -1
  77. package/dist/apis/organization.cjs +6 -6
  78. package/dist/apis/organization.js +1 -1
  79. package/dist/apis/partner-directory.cjs +6 -6
  80. package/dist/apis/partner-directory.js +1 -1
  81. package/dist/apis/permissions.cjs +6 -6
  82. package/dist/apis/permissions.js +1 -1
  83. package/dist/apis/phone-integration.cjs +6 -6
  84. package/dist/apis/phone-integration.js +1 -1
  85. package/dist/apis/pricing-tier.cjs +6 -6
  86. package/dist/apis/pricing-tier.js +1 -1
  87. package/dist/apis/pricing.cjs +6 -6
  88. package/dist/apis/pricing.js +1 -1
  89. package/dist/apis/purpose.cjs +6 -6
  90. package/dist/apis/purpose.js +1 -1
  91. package/dist/apis/query.cjs +6 -6
  92. package/dist/apis/query.js +1 -1
  93. package/dist/apis/sandbox.cjs +6 -6
  94. package/dist/apis/sandbox.js +1 -1
  95. package/dist/apis/sharing.cjs +6 -6
  96. package/dist/apis/sharing.js +1 -1
  97. package/dist/apis/snapshot.cjs +6 -6
  98. package/dist/apis/snapshot.js +1 -1
  99. package/dist/apis/submission.cjs +6 -6
  100. package/dist/apis/submission.js +1 -1
  101. package/dist/apis/target.cjs +6 -6
  102. package/dist/apis/target.js +1 -1
  103. package/dist/apis/targeting.cjs +6 -6
  104. package/dist/apis/targeting.js +1 -1
  105. package/dist/apis/template-variables.cjs +6 -6
  106. package/dist/apis/template-variables.js +1 -1
  107. package/dist/apis/user.cjs +6 -6
  108. package/dist/apis/user.js +1 -1
  109. package/dist/apis/validation-rules.cjs +6 -6
  110. package/dist/apis/validation-rules.js +1 -1
  111. package/dist/apis/webhooks.cjs +6 -6
  112. package/dist/apis/webhooks.js +1 -1
  113. package/dist/apis/workflow-definition.cjs +6 -6
  114. package/dist/apis/workflow-definition.js +1 -1
  115. package/dist/apis/workflow.cjs +6 -6
  116. package/dist/apis/workflow.js +1 -1
  117. package/dist/{chunk-KH4BRB6Z.js → chunk-2PFXDXXZ.js} +2 -2
  118. package/dist/{chunk-OLRBYITL.cjs → chunk-3PQISQCY.cjs} +2 -2
  119. package/dist/chunk-4HTTGQEJ.cjs +14 -0
  120. package/dist/chunk-IWKGR2GI.js +14 -0
  121. package/dist/file-3MIGWJIS.cjs +7 -0
  122. package/dist/file-LA7WL5QQ.js +7 -0
  123. package/dist/{file-runtime-RS4DX5LB.js → file-runtime-JOWOEQD2.js} +1 -1
  124. package/dist/file-runtime-LBP7QFAO.cjs +5 -0
  125. package/dist/{file.d-DELNV63w.d.cts → file.d-BIakPRHY.d.cts} +556 -3
  126. package/dist/{file.d-DELNV63w.d.ts → file.d-BIakPRHY.d.ts} +556 -3
  127. package/dist/index.cjs +10 -10
  128. package/dist/index.d.cts +1 -1
  129. package/dist/index.d.ts +1 -1
  130. package/dist/index.js +2 -2
  131. package/docs/file.md +344 -0
  132. package/package.json +1 -1
  133. package/dist/chunk-424JLS5G.cjs +0 -14
  134. package/dist/chunk-FGQBS7TA.js +0 -14
  135. package/dist/file-2KT6MMMG.cjs +0 -7
  136. package/dist/file-N3SGGI6E.js +0 -7
  137. package/dist/file-runtime-JL2IZ2CE.cjs +0 -5
package/dist/index.cjs CHANGED
@@ -81,7 +81,7 @@ var _chunkULV6ZQQRcjs = require('./chunk-ULV6ZQQR.cjs');
81
81
  var _chunkNC33X2WLcjs = require('./chunk-NC33X2WL.cjs');
82
82
 
83
83
 
84
- var _chunk424JLS5Gcjs = require('./chunk-424JLS5G.cjs');
84
+ var _chunk4HTTGQEJcjs = require('./chunk-4HTTGQEJ.cjs');
85
85
 
86
86
 
87
87
  var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
@@ -170,7 +170,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
170
170
 
171
171
 
172
172
 
173
- var _chunkOLRBYITLcjs = require('./chunk-OLRBYITL.cjs');
173
+ var _chunk3PQISQCYcjs = require('./chunk-3PQISQCY.cjs');
174
174
 
175
175
 
176
176
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -244,7 +244,7 @@ var resolveClient = (params) => {
244
244
  }
245
245
  if (!entry.instance) {
246
246
  const definition = entry.loader();
247
- entry.instance = _chunkOLRBYITLcjs.createApiClient.call(void 0, {
247
+ entry.instance = _chunk3PQISQCYcjs.createApiClient.call(void 0, {
248
248
  definition,
249
249
  token: state.token,
250
250
  headers: state.globalHeaders,
@@ -277,7 +277,7 @@ var resetAllClients = (registry) => {
277
277
  };
278
278
 
279
279
  // src/apis/_registry.ts
280
- var expandDef = (mod) => _chunkOLRBYITLcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
280
+ var expandDef = (mod) => _chunk3PQISQCYcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
281
281
  var registerBuiltinApis = (registry) => {
282
282
  registerApi({
283
283
  registry,
@@ -412,7 +412,7 @@ var registerBuiltinApis = (registry) => {
412
412
  registerApi({
413
413
  registry,
414
414
  name: "file",
415
- loader: () => expandDef(_chunk424JLS5Gcjs.require_file_runtime.call(void 0, ))
415
+ loader: () => expandDef(_chunk4HTTGQEJcjs.require_file_runtime.call(void 0, ))
416
416
  });
417
417
  registerApi({
418
418
  registry,
@@ -640,9 +640,9 @@ var createSDK = () => {
640
640
  const available = [...registry.keys()].join(", ");
641
641
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
642
642
  }
643
- return _chunkOLRBYITLcjs.createApiHandle.call(void 0, {
643
+ return _chunk3PQISQCYcjs.createApiHandle.call(void 0, {
644
644
  resolveClient: () => resolveClient({ registry, name, state }),
645
- createClient: () => _chunkOLRBYITLcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
645
+ createClient: () => _chunk3PQISQCYcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
646
646
  apiName: name
647
647
  });
648
648
  };
@@ -690,9 +690,9 @@ var createSDK = () => {
690
690
  return interceptorUse;
691
691
  }
692
692
  case "help":
693
- return (apiName) => _chunkOLRBYITLcjs.help.call(void 0, apiName);
693
+ return (apiName) => _chunk3PQISQCYcjs.help.call(void 0, apiName);
694
694
  case "openapi":
695
- return (apiName) => _chunkOLRBYITLcjs.openapi.call(void 0, apiName);
695
+ return (apiName) => _chunk3PQISQCYcjs.openapi.call(void 0, apiName);
696
696
  case "then":
697
697
  case "catch":
698
698
  case "finally":
@@ -722,4 +722,4 @@ var epilot = createSDK();
722
722
 
723
723
 
724
724
 
725
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkOLRBYITLcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkOLRBYITLcjs.help; exports.openapi = _chunkOLRBYITLcjs.openapi;
725
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunk3PQISQCYcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunk3PQISQCYcjs.help; exports.openapi = _chunk3PQISQCYcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -29,7 +29,7 @@ import { C as Client$m } from './entity-mapping.d-8MtWa2_L.cjs';
29
29
  import { C as Client$n } from './environments.d-BC2zAtBO.cjs';
30
30
  import { C as Client$o } from './event-catalog.d-BrAxYS9D.cjs';
31
31
  import { C as Client$p } from './external-values.d-DeDtCu_V.cjs';
32
- import { C as Client$q } from './file.d-DELNV63w.cjs';
32
+ import { C as Client$q } from './file.d-BIakPRHY.cjs';
33
33
  import { C as Client$r } from './iban.d-BwdiGbxi.cjs';
34
34
  import { C as Client$s } from './identity.d-DUcoy_-W.cjs';
35
35
  import { C as Client$t } from './integration-toolkit.d-BGF0LVB7.cjs';
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ import { C as Client$m } from './entity-mapping.d-8MtWa2_L.js';
29
29
  import { C as Client$n } from './environments.d-BC2zAtBO.js';
30
30
  import { C as Client$o } from './event-catalog.d-BrAxYS9D.js';
31
31
  import { C as Client$p } from './external-values.d-DeDtCu_V.js';
32
- import { C as Client$q } from './file.d-DELNV63w.js';
32
+ import { C as Client$q } from './file.d-BIakPRHY.js';
33
33
  import { C as Client$r } from './iban.d-BwdiGbxi.js';
34
34
  import { C as Client$s } from './identity.d-DUcoy_-W.js';
35
35
  import { C as Client$t } from './integration-toolkit.d-BGF0LVB7.js';
package/dist/index.js CHANGED
@@ -81,7 +81,7 @@ import {
81
81
  } from "./chunk-CMEMMJ3T.js";
82
82
  import {
83
83
  require_file_runtime
84
- } from "./chunk-FGQBS7TA.js";
84
+ } from "./chunk-IWKGR2GI.js";
85
85
  import {
86
86
  require_iban_runtime
87
87
  } from "./chunk-5MFHAXBT.js";
@@ -170,7 +170,7 @@ import {
170
170
  expand,
171
171
  help,
172
172
  openapi
173
- } from "./chunk-KH4BRB6Z.js";
173
+ } from "./chunk-2PFXDXXZ.js";
174
174
  import {
175
175
  __require
176
176
  } from "./chunk-YPSWSI3M.js";
package/docs/file.md CHANGED
@@ -41,6 +41,10 @@ const { data } = await fileClient.uploadFileV2(...)
41
41
  - [`getCurrentFileSummaryJob`](#getcurrentfilesummaryjob)
42
42
  - [`getFileSummaryJob`](#getfilesummaryjob)
43
43
  - [`generateFileSummary`](#generatefilesummary)
44
+ - [`createFileAttributeSuggestionJob`](#createfileattributesuggestionjob)
45
+ - [`getLatestFileAttributeSuggestions`](#getlatestfileattributesuggestions)
46
+ - [`getFileAttributeSuggestionJob`](#getfileattributesuggestionjob)
47
+ - [`updateFileAttributeSuggestionStatus`](#updatefileattributesuggestionstatus)
44
48
  - [`getFileText`](#getfiletext)
45
49
  - [`validateFile`](#validatefile)
46
50
  - [`verifyCustomDownloadUrl`](#verifycustomdownloadurl)
@@ -83,6 +87,13 @@ const { data } = await fileClient.uploadFileV2(...)
83
87
  - [`FileSummaryFeedback`](#filesummaryfeedback)
84
88
  - [`FileSummaryFeedbackResponse`](#filesummaryfeedbackresponse)
85
89
  - [`PutFileSummaryFeedbackRequest`](#putfilesummaryfeedbackrequest)
90
+ - [`FileAttributeSuggestionJobStatus`](#fileattributesuggestionjobstatus)
91
+ - [`FileAttributeSuggestion`](#fileattributesuggestion)
92
+ - [`FileAttributeSuggestionsPayload`](#fileattributesuggestionspayload)
93
+ - [`FileAttributeSuggestionJob`](#fileattributesuggestionjob)
94
+ - [`CreateFileAttributeSuggestionJobRequest`](#createfileattributesuggestionjobrequest)
95
+ - [`UpdateFileAttributeSuggestionStatusRequest`](#updatefileattributesuggestionstatusrequest)
96
+ - [`FileAttributeSuggestionError`](#fileattributesuggestionerror)
86
97
  - [`FileTextStatus`](#filetextstatus)
87
98
  - [`FileValidationRequest`](#filevalidationrequest)
88
99
  - [`FileValidationFileReference`](#filevalidationfilereference)
@@ -759,6 +770,211 @@ const { data } = await client.generateFileSummary({
759
770
 
760
771
  ---
761
772
 
773
+ ### `createFileAttributeSuggestionJob`
774
+
775
+ Start an auto-fill job that reads the file's extracted text and suggests values for the related entity's attributes. Requires `entity:view` on the file and on the related entity. Returns 404 with `err
776
+
777
+ `POST /v1/files/{id}/attribute-suggestion-jobs`
778
+
779
+ ```ts
780
+ const { data } = await client.createFileAttributeSuggestionJob(
781
+ {
782
+ id: '123e4567-e89b-12d3-a456-426614174000',
783
+ },
784
+ {
785
+ entity_slug: 'opportunity',
786
+ entity_id: '3fa85f64-5717-4562-b3fc-2c963f66afa6'
787
+ },
788
+ )
789
+ ```
790
+
791
+ ---
792
+
793
+ ### `getLatestFileAttributeSuggestions`
794
+
795
+ Get the most recent attribute suggestion job of any status for the file and the given entity. Returns 404 with `error_code: no_file_attribute_suggestions_job` when auto-fill has not run yet.
796
+
797
+ `GET /v1/files/{id}/attribute-suggestion-jobs/latest`
798
+
799
+ ```ts
800
+ const { data } = await client.getLatestFileAttributeSuggestions({
801
+ id: '123e4567-e89b-12d3-a456-426614174000',
802
+ entity_id: 'example',
803
+ })
804
+ ```
805
+
806
+ <details>
807
+ <summary>Response</summary>
808
+
809
+ ```json
810
+ {
811
+ "jobId": "string",
812
+ "jobStatus": {
813
+ "status": "INITIATED",
814
+ "progress": 0,
815
+ "error": "string"
816
+ },
817
+ "payload": {
818
+ "file_id": "string",
819
+ "entity_id": "string",
820
+ "entity_slug": "string",
821
+ "generated_by": "string",
822
+ "generated_at": 0,
823
+ "suggestions": [
824
+ {
825
+ "attribute_name": "string",
826
+ "attribute_label": "string",
827
+ "attribute_type": "date",
828
+ "suggested_value": "string",
829
+ "confidence": "high",
830
+ "source_page": 0,
831
+ "evidence": "string",
832
+ "status": "suggested",
833
+ "status_updated_by": "string",
834
+ "status_updated_at": 0,
835
+ "discard_reason": "string",
836
+ "is_copied": true,
837
+ "copied_by": "string",
838
+ "copied_at": 0,
839
+ "suggestion_type": "new_value"
840
+ }
841
+ ]
842
+ },
843
+ "createdAt": 0,
844
+ "updatedAt": 0
845
+ }
846
+ ```
847
+
848
+ </details>
849
+
850
+ ---
851
+
852
+ ### `getFileAttributeSuggestionJob`
853
+
854
+ Get an attribute suggestion job of the file. Poll until `jobStatus.status` is `COMPLETED` or `FAILED`.
855
+
856
+ `GET /v1/files/{id}/attribute-suggestion-jobs/{job_id}`
857
+
858
+ ```ts
859
+ const { data } = await client.getFileAttributeSuggestionJob({
860
+ id: '123e4567-e89b-12d3-a456-426614174000',
861
+ job_id: 'example',
862
+ })
863
+ ```
864
+
865
+ <details>
866
+ <summary>Response</summary>
867
+
868
+ ```json
869
+ {
870
+ "jobId": "string",
871
+ "jobStatus": {
872
+ "status": "INITIATED",
873
+ "progress": 0,
874
+ "error": "string"
875
+ },
876
+ "payload": {
877
+ "file_id": "string",
878
+ "entity_id": "string",
879
+ "entity_slug": "string",
880
+ "generated_by": "string",
881
+ "generated_at": 0,
882
+ "suggestions": [
883
+ {
884
+ "attribute_name": "string",
885
+ "attribute_label": "string",
886
+ "attribute_type": "date",
887
+ "suggested_value": "string",
888
+ "confidence": "high",
889
+ "source_page": 0,
890
+ "evidence": "string",
891
+ "status": "suggested",
892
+ "status_updated_by": "string",
893
+ "status_updated_at": 0,
894
+ "discard_reason": "string",
895
+ "is_copied": true,
896
+ "copied_by": "string",
897
+ "copied_at": 0,
898
+ "suggestion_type": "new_value"
899
+ }
900
+ ]
901
+ },
902
+ "createdAt": 0,
903
+ "updatedAt": 0
904
+ }
905
+ ```
906
+
907
+ </details>
908
+
909
+ ---
910
+
911
+ ### `updateFileAttributeSuggestionStatus`
912
+
913
+ Record that suggestions were accepted, discarded or copied. Only the suggestion entries named in the request change; unknown attribute names are ignored. Applying a value to the entity stays with the
914
+
915
+ `PATCH /v1/files/{id}/attribute-suggestion-jobs/{job_id}`
916
+
917
+ ```ts
918
+ const { data } = await client.updateFileAttributeSuggestionStatus(
919
+ {
920
+ id: '123e4567-e89b-12d3-a456-426614174000',
921
+ job_id: 'example',
922
+ },
923
+ {
924
+ suggestionStatusUpdates: [
925
+ {},
926
+ {}
927
+ ]
928
+ },
929
+ )
930
+ ```
931
+
932
+ <details>
933
+ <summary>Response</summary>
934
+
935
+ ```json
936
+ {
937
+ "jobId": "string",
938
+ "jobStatus": {
939
+ "status": "INITIATED",
940
+ "progress": 0,
941
+ "error": "string"
942
+ },
943
+ "payload": {
944
+ "file_id": "string",
945
+ "entity_id": "string",
946
+ "entity_slug": "string",
947
+ "generated_by": "string",
948
+ "generated_at": 0,
949
+ "suggestions": [
950
+ {
951
+ "attribute_name": "string",
952
+ "attribute_label": "string",
953
+ "attribute_type": "date",
954
+ "suggested_value": "string",
955
+ "confidence": "high",
956
+ "source_page": 0,
957
+ "evidence": "string",
958
+ "status": "suggested",
959
+ "status_updated_by": "string",
960
+ "status_updated_at": 0,
961
+ "discard_reason": "string",
962
+ "is_copied": true,
963
+ "copied_by": "string",
964
+ "copied_at": 0,
965
+ "suggestion_type": "new_value"
966
+ }
967
+ ]
968
+ },
969
+ "createdAt": 0,
970
+ "updatedAt": 0
971
+ }
972
+ ```
973
+
974
+ </details>
975
+
976
+ ---
977
+
762
978
  ### `getFileText`
763
979
 
764
980
  Get the plain-text representation of a file entity. Returns status `not_ready` while text is being prepared and `unsupported` when text is unavailable for the file or organization.
@@ -928,6 +1144,7 @@ const { data } = await client.previewPublicFile({
928
1144
  version: 1,
929
1145
  w: 1,
930
1146
  h: 1,
1147
+ keep_original: true,
931
1148
  org_id: 'example',
932
1149
  })
933
1150
  ```
@@ -1487,6 +1704,133 @@ type PutFileSummaryFeedbackRequest = {
1487
1704
  }
1488
1705
  ```
1489
1706
 
1707
+ ### `FileAttributeSuggestionJobStatus`
1708
+
1709
+ ```ts
1710
+ type FileAttributeSuggestionJobStatus = {
1711
+ status: "INITIATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED"
1712
+ progress: number
1713
+ error?: string
1714
+ }
1715
+ ```
1716
+
1717
+ ### `FileAttributeSuggestion`
1718
+
1719
+ ```ts
1720
+ type FileAttributeSuggestion = {
1721
+ attribute_name?: string
1722
+ attribute_label?: string
1723
+ attribute_type?: "date" | "number" | "boolean" | "select" | "string"
1724
+ suggested_value?: string | number | boolean
1725
+ confidence?: "high" | "medium" | "low"
1726
+ source_page?: number
1727
+ evidence?: string
1728
+ status?: "suggested" | "accepted" | "discarded"
1729
+ status_updated_by?: string
1730
+ status_updated_at?: number
1731
+ discard_reason?: string
1732
+ is_copied?: boolean
1733
+ copied_by?: string
1734
+ copied_at?: number
1735
+ suggestion_type?: "new_value" | "update"
1736
+ }
1737
+ ```
1738
+
1739
+ ### `FileAttributeSuggestionsPayload`
1740
+
1741
+ ```ts
1742
+ type FileAttributeSuggestionsPayload = {
1743
+ file_id: string
1744
+ entity_id: string
1745
+ entity_slug: string
1746
+ generated_by?: string
1747
+ generated_at?: number
1748
+ suggestions: Array<{
1749
+ attribute_name?: string
1750
+ attribute_label?: string
1751
+ attribute_type?: "date" | "number" | "boolean" | "select" | "string"
1752
+ suggested_value?: string | number | boolean
1753
+ confidence?: "high" | "medium" | "low"
1754
+ source_page?: number
1755
+ evidence?: string
1756
+ status?: "suggested" | "accepted" | "discarded"
1757
+ status_updated_by?: string
1758
+ status_updated_at?: number
1759
+ discard_reason?: string
1760
+ is_copied?: boolean
1761
+ copied_by?: string
1762
+ copied_at?: number
1763
+ suggestion_type?: "new_value" | "update"
1764
+ }>
1765
+ }
1766
+ ```
1767
+
1768
+ ### `FileAttributeSuggestionJob`
1769
+
1770
+ ```ts
1771
+ type FileAttributeSuggestionJob = {
1772
+ jobId: string
1773
+ jobStatus: {
1774
+ status: "INITIATED" | "IN_PROGRESS" | "COMPLETED" | "FAILED"
1775
+ progress: number
1776
+ error?: string
1777
+ }
1778
+ payload: {
1779
+ file_id: string
1780
+ entity_id: string
1781
+ entity_slug: string
1782
+ generated_by?: string
1783
+ generated_at?: number
1784
+ suggestions: Array<{
1785
+ attribute_name?: { ... }
1786
+ attribute_label?: { ... }
1787
+ attribute_type?: { ... }
1788
+ suggested_value?: { ... }
1789
+ confidence?: { ... }
1790
+ source_page?: { ... }
1791
+ evidence?: { ... }
1792
+ status?: { ... }
1793
+ status_updated_by?: { ... }
1794
+ status_updated_at?: { ... }
1795
+ discard_reason?: { ... }
1796
+ is_copied?: { ... }
1797
+ copied_by?: { ... }
1798
+ copied_at?: { ... }
1799
+ suggestion_type?: { ... }
1800
+ }>
1801
+ }
1802
+ createdAt: number
1803
+ updatedAt: number
1804
+ }
1805
+ ```
1806
+
1807
+ ### `CreateFileAttributeSuggestionJobRequest`
1808
+
1809
+ ```ts
1810
+ type CreateFileAttributeSuggestionJobRequest = {
1811
+ entity_slug: string
1812
+ entity_id: string // uuid
1813
+ }
1814
+ ```
1815
+
1816
+ ### `UpdateFileAttributeSuggestionStatusRequest`
1817
+
1818
+ ```ts
1819
+ type UpdateFileAttributeSuggestionStatusRequest = {
1820
+ suggestionStatusUpdates: unknown | unknown[]
1821
+ }
1822
+ ```
1823
+
1824
+ ### `FileAttributeSuggestionError`
1825
+
1826
+ ```ts
1827
+ type FileAttributeSuggestionError = {
1828
+ status?: number
1829
+ error?: string
1830
+ error_code?: "entity_or_schema_unavailable" | "file_not_extracted" | "extraction_unsupported" | "extraction_failed" | "extraction_status_unavailable" | "processing_enqueue_failed" | "no_file_attribute_suggestions_job" | "job_not_found"
1831
+ }
1832
+ ```
1833
+
1490
1834
  ### `FileTextStatus`
1491
1835
 
1492
1836
  Availability of the plain-text representation for a file entity.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.20.80",
3
+ "version": "2.20.81",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -1,14 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
4
-
5
- // src/definitions/file-runtime.json
6
- var require_file_runtime = _chunkNJK5F5TFcjs.__commonJS.call(void 0, {
7
- "src/definitions/file-runtime.json"(exports, module) {
8
- module.exports = { s: "https://file.sls.epilot.io", o: [["uploadFileV2", "post", "/v2/files/upload", [["file_entity_id", "q"]], 1], ["saveFileV2", "post", "/v2/files", [["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["StrictQueryParam"], ["AsyncOperationQueryParam"], ["DeleteTempFileQueryParam"], ["VersionOnlyQueryParam"]], 1], ["uploadFile", "post", "/v1/files/upload", [["file_entity_id", "q"]], 1], ["saveFile", "post", "/v1/files", [["ActivityIdQueryParam"], ["AsyncOperationQueryParam"], ["VersionOnlyQueryParam"]], 1], ["getFile", "get", "/v2/files/{id}", [["id", "p", true], ["source_url", "q"], ["StrictQueryParam"], ["AsyncOperationQueryParam"]]], ["deleteFile", "delete", "/v2/files/{id}", [["id", "p", true], ["purge", "q"], ["ActivityIdQueryParam"], ["StrictQueryParam"]]], ["downloadFile", "get", "/v1/files/{id}/download", [["id", "p", true], ["version", "q"], ["attachment", "q"], ["x-track", "q", false, "form", true]]], ["downloadS3File", "post", "/v1/files:downloadS3", [["s3_key", "q", true], ["s3_bucket", "q", true], ["attachment", "q"]]], ["downloadFiles", "post", "/v1/files:downloadFiles", null, 1], ["createZipJob", "post", "/v1/files:zipJob", null, 1], ["getZipJob", "get", "/v1/files:zipJob/{job_id}", [["job_id", "p", true]]], ["getFileSummary", "get", "/v1/files/{id}/summary", [["id", "p", true]]], ["getFileSummaryFeedback", "get", "/v1/files/{id}/summary/feedback", [["id", "p", true]]], ["putFileSummaryFeedback", "put", "/v1/files/{id}/summary/feedback", [["id", "p", true]], 1], ["createFileSummaryJob", "post", "/v1/files/{id}/summary-jobs", [["id", "p", true]]], ["getCurrentFileSummaryJob", "get", "/v1/files/{id}/summary-jobs/current", [["id", "p", true]]], ["getFileSummaryJob", "get", "/v1/files/{id}/summary-jobs/{job_id}", [["id", "p", true], ["job_id", "p", true]]], ["generateFileSummary", "post", "/v1/files/{id}/summary:generate", [["id", "p", true]]], ["getFileText", "get", "/v1/files/{id}/text", [["id", "p", true]]], ["validateFile", "post", "/v1/files/validations", null, 1], ["previewFile", "get", "/v1/files/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"]]], ["previewS3File", "post", "/v1/files:previewS3", [["w", "q"], ["h", "q"]], 1], ["previewS3FileGet", "get", "/v1/files:previewS3", [["key", "q", true], ["bucket", "q", true], ["w", "q"], ["h", "q"]]], ["previewPublicFile", "get", "/v1/files/public/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"], ["org_id", "q"]]], ["getSession", "get", "/v1/files/session"], ["deleteSession", "delete", "/v1/files/session"], ["generatePublicLink", "post", "/v1/files/{id}/public/links", [["id", "p", true]]], ["listPublicLinksForFile", "get", "/v1/files/{id}/public/links", [["id", "p", true]]], ["accessPublicLink", "get", "/v1/files/public/links/{id}/{filename}", [["id", "p", true], ["filename", "p", true], ["hash", "q"]]], ["revokePublicLink", "delete", "/v1/files/public/links/{id}", [["id", "p", true]]], ["verifyCustomDownloadUrl", "post", "/v1/files/download:verify", null, 1], ["uploadFilePublic", "post", "/v1/files/public/upload", null, 1], ["getUserSchemaFileCollections", "get", "/v1/{slug}/collections", [["slug", "p", true]]], ["createUserSchemaFileCollection", "post", "/v1/{slug}/collections", [["slug", "p", true]], 1], ["updateUserSchemaFileCollection", "put", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]], 1], ["deleteUserSchemaFileCollection", "delete", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]]], ["getFilesInCollection", "get", "/v1/entity/{id}/collections/{collectionSlug}/files", [["EntityIdPathParam"], ["collectionSlug", "p", true]]], ["getGlobalFileCollections", "get", "/v1/collections/{schemaSlug}", [["schemaSlug", "p", true]]]], v: "3.0.3", cp: { EntityIdPathParam: ["id", "p", true], StrictQueryParam: ["strict", "q"], ActivityIdQueryParam: ["activity_id", "q"], FillActivityQueryParam: ["fill_activity", "q"], AsyncOperationQueryParam: ["async", "q"], DeleteTempFileQueryParam: ["delete_temp_file", "q"], VersionOnlyQueryParam: ["version_only", "q"] } };
9
- }
10
- });
11
-
12
-
13
-
14
- exports.require_file_runtime = require_file_runtime;
@@ -1,14 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-YPSWSI3M.js";
4
-
5
- // src/definitions/file-runtime.json
6
- var require_file_runtime = __commonJS({
7
- "src/definitions/file-runtime.json"(exports, module) {
8
- module.exports = { s: "https://file.sls.epilot.io", o: [["uploadFileV2", "post", "/v2/files/upload", [["file_entity_id", "q"]], 1], ["saveFileV2", "post", "/v2/files", [["ActivityIdQueryParam"], ["FillActivityQueryParam"], ["StrictQueryParam"], ["AsyncOperationQueryParam"], ["DeleteTempFileQueryParam"], ["VersionOnlyQueryParam"]], 1], ["uploadFile", "post", "/v1/files/upload", [["file_entity_id", "q"]], 1], ["saveFile", "post", "/v1/files", [["ActivityIdQueryParam"], ["AsyncOperationQueryParam"], ["VersionOnlyQueryParam"]], 1], ["getFile", "get", "/v2/files/{id}", [["id", "p", true], ["source_url", "q"], ["StrictQueryParam"], ["AsyncOperationQueryParam"]]], ["deleteFile", "delete", "/v2/files/{id}", [["id", "p", true], ["purge", "q"], ["ActivityIdQueryParam"], ["StrictQueryParam"]]], ["downloadFile", "get", "/v1/files/{id}/download", [["id", "p", true], ["version", "q"], ["attachment", "q"], ["x-track", "q", false, "form", true]]], ["downloadS3File", "post", "/v1/files:downloadS3", [["s3_key", "q", true], ["s3_bucket", "q", true], ["attachment", "q"]]], ["downloadFiles", "post", "/v1/files:downloadFiles", null, 1], ["createZipJob", "post", "/v1/files:zipJob", null, 1], ["getZipJob", "get", "/v1/files:zipJob/{job_id}", [["job_id", "p", true]]], ["getFileSummary", "get", "/v1/files/{id}/summary", [["id", "p", true]]], ["getFileSummaryFeedback", "get", "/v1/files/{id}/summary/feedback", [["id", "p", true]]], ["putFileSummaryFeedback", "put", "/v1/files/{id}/summary/feedback", [["id", "p", true]], 1], ["createFileSummaryJob", "post", "/v1/files/{id}/summary-jobs", [["id", "p", true]]], ["getCurrentFileSummaryJob", "get", "/v1/files/{id}/summary-jobs/current", [["id", "p", true]]], ["getFileSummaryJob", "get", "/v1/files/{id}/summary-jobs/{job_id}", [["id", "p", true], ["job_id", "p", true]]], ["generateFileSummary", "post", "/v1/files/{id}/summary:generate", [["id", "p", true]]], ["getFileText", "get", "/v1/files/{id}/text", [["id", "p", true]]], ["validateFile", "post", "/v1/files/validations", null, 1], ["previewFile", "get", "/v1/files/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"]]], ["previewS3File", "post", "/v1/files:previewS3", [["w", "q"], ["h", "q"]], 1], ["previewS3FileGet", "get", "/v1/files:previewS3", [["key", "q", true], ["bucket", "q", true], ["w", "q"], ["h", "q"]]], ["previewPublicFile", "get", "/v1/files/public/{id}/preview", [["id", "p", true], ["version", "q"], ["w", "q"], ["h", "q"], ["org_id", "q"]]], ["getSession", "get", "/v1/files/session"], ["deleteSession", "delete", "/v1/files/session"], ["generatePublicLink", "post", "/v1/files/{id}/public/links", [["id", "p", true]]], ["listPublicLinksForFile", "get", "/v1/files/{id}/public/links", [["id", "p", true]]], ["accessPublicLink", "get", "/v1/files/public/links/{id}/{filename}", [["id", "p", true], ["filename", "p", true], ["hash", "q"]]], ["revokePublicLink", "delete", "/v1/files/public/links/{id}", [["id", "p", true]]], ["verifyCustomDownloadUrl", "post", "/v1/files/download:verify", null, 1], ["uploadFilePublic", "post", "/v1/files/public/upload", null, 1], ["getUserSchemaFileCollections", "get", "/v1/{slug}/collections", [["slug", "p", true]]], ["createUserSchemaFileCollection", "post", "/v1/{slug}/collections", [["slug", "p", true]], 1], ["updateUserSchemaFileCollection", "put", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]], 1], ["deleteUserSchemaFileCollection", "delete", "/v1/{slug}/collections/{collectionSlug}", [["slug", "p", true], ["collectionSlug", "p", true]]], ["getFilesInCollection", "get", "/v1/entity/{id}/collections/{collectionSlug}/files", [["EntityIdPathParam"], ["collectionSlug", "p", true]]], ["getGlobalFileCollections", "get", "/v1/collections/{schemaSlug}", [["schemaSlug", "p", true]]]], v: "3.0.3", cp: { EntityIdPathParam: ["id", "p", true], StrictQueryParam: ["strict", "q"], ActivityIdQueryParam: ["activity_id", "q"], FillActivityQueryParam: ["fill_activity", "q"], AsyncOperationQueryParam: ["async", "q"], DeleteTempFileQueryParam: ["delete_temp_file", "q"], VersionOnlyQueryParam: ["version_only", "q"] } };
9
- }
10
- });
11
-
12
- export {
13
- require_file_runtime
14
- };