@epilot/sdk 2.14.4 → 2.14.5

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 (129) hide show
  1. package/definitions/file-runtime.json +1 -1
  2. package/definitions/file.json +189 -3
  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/configuration-hub.cjs +6 -6
  24. package/dist/apis/configuration-hub.js +1 -1
  25. package/dist/apis/consent.cjs +6 -6
  26. package/dist/apis/consent.js +1 -1
  27. package/dist/apis/customer-portal.cjs +6 -6
  28. package/dist/apis/customer-portal.js +1 -1
  29. package/dist/apis/dashboard.cjs +6 -6
  30. package/dist/apis/dashboard.js +1 -1
  31. package/dist/apis/data-governance.cjs +6 -6
  32. package/dist/apis/data-governance.js +1 -1
  33. package/dist/apis/deduplication.cjs +6 -6
  34. package/dist/apis/deduplication.js +1 -1
  35. package/dist/apis/design.cjs +6 -6
  36. package/dist/apis/design.js +1 -1
  37. package/dist/apis/document.cjs +6 -6
  38. package/dist/apis/document.js +1 -1
  39. package/dist/apis/email-settings.cjs +6 -6
  40. package/dist/apis/email-settings.js +1 -1
  41. package/dist/apis/email-template.cjs +6 -6
  42. package/dist/apis/email-template.js +1 -1
  43. package/dist/apis/entity-mapping.cjs +6 -6
  44. package/dist/apis/entity-mapping.js +1 -1
  45. package/dist/apis/entity.cjs +6 -6
  46. package/dist/apis/entity.js +1 -1
  47. package/dist/apis/environments.cjs +6 -6
  48. package/dist/apis/environments.js +1 -1
  49. package/dist/apis/event-catalog.cjs +6 -6
  50. package/dist/apis/event-catalog.js +1 -1
  51. package/dist/apis/file.cjs +8 -8
  52. package/dist/apis/file.d.cts +2 -2
  53. package/dist/apis/file.d.ts +2 -2
  54. package/dist/apis/file.js +2 -2
  55. package/dist/apis/iban.cjs +6 -6
  56. package/dist/apis/iban.js +1 -1
  57. package/dist/apis/integration-toolkit.cjs +6 -6
  58. package/dist/apis/integration-toolkit.js +1 -1
  59. package/dist/apis/journey.cjs +6 -6
  60. package/dist/apis/journey.js +1 -1
  61. package/dist/apis/kanban.cjs +6 -6
  62. package/dist/apis/kanban.js +1 -1
  63. package/dist/apis/message.cjs +6 -6
  64. package/dist/apis/message.js +1 -1
  65. package/dist/apis/metering.cjs +6 -6
  66. package/dist/apis/metering.js +1 -1
  67. package/dist/apis/notes.cjs +6 -6
  68. package/dist/apis/notes.js +1 -1
  69. package/dist/apis/notification.cjs +6 -6
  70. package/dist/apis/notification.js +1 -1
  71. package/dist/apis/organization.cjs +6 -6
  72. package/dist/apis/organization.js +1 -1
  73. package/dist/apis/partner-directory.cjs +6 -6
  74. package/dist/apis/partner-directory.js +1 -1
  75. package/dist/apis/permissions.cjs +6 -6
  76. package/dist/apis/permissions.js +1 -1
  77. package/dist/apis/pricing-tier.cjs +6 -6
  78. package/dist/apis/pricing-tier.js +1 -1
  79. package/dist/apis/pricing.cjs +6 -6
  80. package/dist/apis/pricing.js +1 -1
  81. package/dist/apis/purpose.cjs +6 -6
  82. package/dist/apis/purpose.js +1 -1
  83. package/dist/apis/query.cjs +6 -6
  84. package/dist/apis/query.js +1 -1
  85. package/dist/apis/sandbox.cjs +6 -6
  86. package/dist/apis/sandbox.js +1 -1
  87. package/dist/apis/sharing.cjs +6 -6
  88. package/dist/apis/sharing.js +1 -1
  89. package/dist/apis/snapshot.cjs +6 -6
  90. package/dist/apis/snapshot.js +1 -1
  91. package/dist/apis/submission.cjs +6 -6
  92. package/dist/apis/submission.js +1 -1
  93. package/dist/apis/target.cjs +6 -6
  94. package/dist/apis/target.js +1 -1
  95. package/dist/apis/targeting.cjs +6 -6
  96. package/dist/apis/targeting.js +1 -1
  97. package/dist/apis/template-variables.cjs +6 -6
  98. package/dist/apis/template-variables.js +1 -1
  99. package/dist/apis/user.cjs +6 -6
  100. package/dist/apis/user.js +1 -1
  101. package/dist/apis/validation-rules.cjs +6 -6
  102. package/dist/apis/validation-rules.js +1 -1
  103. package/dist/apis/webhooks.cjs +6 -6
  104. package/dist/apis/webhooks.js +1 -1
  105. package/dist/apis/workflow-definition.cjs +6 -6
  106. package/dist/apis/workflow-definition.js +1 -1
  107. package/dist/apis/workflow.cjs +6 -6
  108. package/dist/apis/workflow.js +1 -1
  109. package/dist/chunk-3SZOSNO2.cjs +14 -0
  110. package/dist/{chunk-YUA47URH.js → chunk-62BXSTL6.js} +2 -2
  111. package/dist/{chunk-OIHW7ECM.cjs → chunk-CD4J6HXV.cjs} +2 -2
  112. package/dist/chunk-G7IFFKKJ.js +14 -0
  113. package/dist/file-M7VPFJWG.js +7 -0
  114. package/dist/file-RNYEYEOK.cjs +7 -0
  115. package/dist/{file-runtime-VY6DJAQ3.js → file-runtime-M4X5OHAJ.js} +1 -1
  116. package/dist/file-runtime-NW5B7T4M.cjs +5 -0
  117. package/dist/{file.d-BN417xok.d.cts → file.d-zFneCEyY.d.cts} +170 -3
  118. package/dist/{file.d-BN417xok.d.ts → file.d-zFneCEyY.d.ts} +170 -3
  119. package/dist/index.cjs +10 -10
  120. package/dist/index.d.cts +1 -1
  121. package/dist/index.d.ts +1 -1
  122. package/dist/index.js +2 -2
  123. package/docs/file.md +110 -4
  124. package/package.json +1 -1
  125. package/dist/chunk-G5KVG3RU.js +0 -14
  126. package/dist/chunk-LNLUCLPL.cjs +0 -14
  127. package/dist/file-7CQXDQ3I.cjs +0 -7
  128. package/dist/file-O6ZD3HOU.js +0 -7
  129. package/dist/file-runtime-HYLQTQBX.cjs +0 -5
@@ -2445,6 +2445,12 @@ declare namespace Components {
2445
2445
  * 1.2 MB
2446
2446
  */
2447
2447
  readable_size?: string;
2448
+ /**
2449
+ * Content hash (S3 ETag) of the latest file version. For single-part uploads this is the hex MD5 of the content and is stable across orgs, so identical content yields an identical etag. Used to detect real content changes without re-downloading the bytes.
2450
+ * example:
2451
+ * 9bb58f26192e4ba00f01e2e7b136bbd8
2452
+ */
2453
+ etag?: string;
2448
2454
  access_control?: "private" | "public-read";
2449
2455
  /**
2450
2456
  * Direct URL for file (public only if file access control is public-read)
@@ -2666,6 +2672,12 @@ declare namespace Components {
2666
2672
  * 1.2 MB
2667
2673
  */
2668
2674
  readable_size?: string;
2675
+ /**
2676
+ * Content hash (S3 ETag) of the latest file version. For single-part uploads this is the hex MD5 of the content and is stable across orgs, so identical content yields an identical etag. Used to detect real content changes without re-downloading the bytes.
2677
+ * example:
2678
+ * 9bb58f26192e4ba00f01e2e7b136bbd8
2679
+ */
2680
+ etag?: string;
2669
2681
  access_control: "private" | "public-read";
2670
2682
  /**
2671
2683
  * Direct URL for file (public only if file access control is public-read)
@@ -2757,6 +2769,12 @@ declare namespace Components {
2757
2769
  * image/jpeg
2758
2770
  */
2759
2771
  mime_type?: string;
2772
+ /**
2773
+ * Content hash (S3 ETag) of this file version
2774
+ * example:
2775
+ * 9bb58f26192e4ba00f01e2e7b136bbd8
2776
+ */
2777
+ etag?: string;
2760
2778
  }
2761
2779
  export interface FileRelationItem {
2762
2780
  entity_id: /**
@@ -2818,6 +2836,37 @@ declare namespace Components {
2818
2836
  * Current state of a file summary job.
2819
2837
  */
2820
2838
  export type FileSummaryJobStatus = "queued" | "waiting_for_extraction" | "processing" | "completed" | "failed" | "unsupported" | "stale";
2839
+ export type FileText = {
2840
+ status: /* Availability of the plain-text representation for a file entity. */ FileTextStatus;
2841
+ text?: string;
2842
+ truncated?: boolean;
2843
+ total_chars?: number;
2844
+ } & (FileTextReady | FileTextNotReady | FileTextUnsupported);
2845
+ export interface FileTextNotReady {
2846
+ status: "not_ready";
2847
+ }
2848
+ export interface FileTextReady {
2849
+ status: "ready";
2850
+ /**
2851
+ * Plain-text representation, trimmed and truncated to a server-side limit of 50000 characters.
2852
+ */
2853
+ text: string;
2854
+ /**
2855
+ * True when the returned text was cut off by the character limit.
2856
+ */
2857
+ truncated: boolean;
2858
+ /**
2859
+ * Length of the full text before truncation.
2860
+ */
2861
+ total_chars: number;
2862
+ }
2863
+ /**
2864
+ * Availability of the plain-text representation for a file entity.
2865
+ */
2866
+ export type FileTextStatus = "ready" | "not_ready" | "unsupported";
2867
+ export interface FileTextUnsupported {
2868
+ status: "unsupported";
2869
+ }
2821
2870
  export type FileType = "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown";
2822
2871
  export interface FileUpload {
2823
2872
  s3ref?: S3Reference;
@@ -2929,6 +2978,12 @@ declare namespace Components {
2929
2978
  * 1.2 MB
2930
2979
  */
2931
2980
  readable_size?: string;
2981
+ /**
2982
+ * Content hash (S3 ETag) of the latest file version. For single-part uploads this is the hex MD5 of the content and is stable across orgs, so identical content yields an identical etag. Used to detect real content changes without re-downloading the bytes.
2983
+ * example:
2984
+ * 9bb58f26192e4ba00f01e2e7b136bbd8
2985
+ */
2986
+ etag?: string;
2932
2987
  access_control?: "private" | "public-read";
2933
2988
  /**
2934
2989
  * Direct URL for file (public only if file access control is public-read)
@@ -3030,6 +3085,12 @@ declare namespace Components {
3030
3085
  * 1.2 MB
3031
3086
  */
3032
3087
  readable_size?: string;
3088
+ /**
3089
+ * Content hash (S3 ETag) of the latest file version. For single-part uploads this is the hex MD5 of the content and is stable across orgs, so identical content yields an identical etag. Used to detect real content changes without re-downloading the bytes.
3090
+ * example:
3091
+ * 9bb58f26192e4ba00f01e2e7b136bbd8
3092
+ */
3093
+ etag?: string;
3033
3094
  access_control?: "private" | "public-read";
3034
3095
  /**
3035
3096
  * Direct URL for file (public only if file access control is public-read)
@@ -3139,6 +3200,12 @@ declare namespace Components {
3139
3200
  * 1.2 MB
3140
3201
  */
3141
3202
  readable_size?: string;
3203
+ /**
3204
+ * Content hash (S3 ETag) of the latest file version. For single-part uploads this is the hex MD5 of the content and is stable across orgs, so identical content yields an identical etag. Used to detect real content changes without re-downloading the bytes.
3205
+ * example:
3206
+ * 9bb58f26192e4ba00f01e2e7b136bbd8
3207
+ */
3208
+ etag?: string;
3142
3209
  access_control?: "private" | "public-read";
3143
3210
  /**
3144
3211
  * Direct URL for file (public only if file access control is public-read)
@@ -3741,6 +3808,15 @@ declare namespace Paths {
3741
3808
  * }
3742
3809
  */
3743
3810
  Components.Responses.UnauthorizedError;
3811
+ export type $403 = /**
3812
+ * A generic error returned by the API
3813
+ * example:
3814
+ * {
3815
+ * "status": 403,
3816
+ * "error": "Forbidden: You do not have permission to access this file"
3817
+ * }
3818
+ */
3819
+ Components.Responses.ForbiddenError;
3744
3820
  export type $404 = /**
3745
3821
  * A generic error returned by the API
3746
3822
  * example:
@@ -4119,6 +4195,66 @@ declare namespace Paths {
4119
4195
  Components.Responses.InternalServerError;
4120
4196
  }
4121
4197
  }
4198
+ namespace GetFileText {
4199
+ namespace Parameters {
4200
+ export type Id = /**
4201
+ * example:
4202
+ * ef7d985c-2385-44f4-9c71-ae06a52264f8
4203
+ */
4204
+ Components.Schemas.FileEntityId;
4205
+ }
4206
+ export interface PathParameters {
4207
+ id: Parameters.Id;
4208
+ }
4209
+ namespace Responses {
4210
+ export type $200 = Components.Schemas.FileText;
4211
+ export type $400 = /**
4212
+ * A generic error returned by the API
4213
+ * example:
4214
+ * {
4215
+ * "status": 400,
4216
+ * "error": "Bad Request: filename is required"
4217
+ * }
4218
+ */
4219
+ Components.Responses.BadRequestError;
4220
+ export type $401 = /**
4221
+ * A generic error returned by the API
4222
+ * example:
4223
+ * {
4224
+ * "status": 401,
4225
+ * "error": "Unauthorized: Invalid or expired token"
4226
+ * }
4227
+ */
4228
+ Components.Responses.UnauthorizedError;
4229
+ export type $403 = /**
4230
+ * A generic error returned by the API
4231
+ * example:
4232
+ * {
4233
+ * "status": 403,
4234
+ * "error": "Forbidden: You do not have permission to access this file"
4235
+ * }
4236
+ */
4237
+ Components.Responses.ForbiddenError;
4238
+ export type $404 = /**
4239
+ * A generic error returned by the API
4240
+ * example:
4241
+ * {
4242
+ * "status": 404,
4243
+ * "error": "Not Found: File entity not found"
4244
+ * }
4245
+ */
4246
+ Components.Responses.NotFoundError;
4247
+ export type $500 = /**
4248
+ * A generic error returned by the API
4249
+ * example:
4250
+ * {
4251
+ * "status": 500,
4252
+ * "error": "Internal Server Error"
4253
+ * }
4254
+ */
4255
+ Components.Responses.InternalServerError;
4256
+ }
4257
+ }
4122
4258
  namespace GetFilesInCollection {
4123
4259
  namespace Parameters {
4124
4260
  export type CollectionSlug = string;
@@ -4354,6 +4490,10 @@ declare namespace Paths {
4354
4490
  }
4355
4491
  namespace Responses {
4356
4492
  export type $200 = string; // binary
4493
+ export interface $204 {
4494
+ }
4495
+ export interface $302 {
4496
+ }
4357
4497
  export interface $304 {
4358
4498
  }
4359
4499
  export type $403 = /* A generic error returned by the API */ Components.Schemas.ErrorObject;
@@ -5075,6 +5215,16 @@ interface OperationMethods {
5075
5215
  data?: any,
5076
5216
  config?: AxiosRequestConfig
5077
5217
  ): OperationResponse<Paths.GenerateFileSummary.Responses.$202>
5218
+ /**
5219
+ * getFileText - getFileText
5220
+ *
5221
+ * 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.
5222
+ */
5223
+ 'getFileText'(
5224
+ parameters?: Parameters<Paths.GetFileText.PathParameters> | null,
5225
+ data?: any,
5226
+ config?: AxiosRequestConfig
5227
+ ): OperationResponse<Paths.GetFileText.Responses.$200>
5078
5228
  /**
5079
5229
  * previewFile - previewFile
5080
5230
  *
@@ -5129,7 +5279,7 @@ interface OperationMethods {
5129
5279
  parameters?: Parameters<Paths.PreviewPublicFile.QueryParameters & Paths.PreviewPublicFile.PathParameters> | null,
5130
5280
  data?: any,
5131
5281
  config?: AxiosRequestConfig
5132
- ): OperationResponse<Paths.PreviewPublicFile.Responses.$200>
5282
+ ): OperationResponse<Paths.PreviewPublicFile.Responses.$200 | Paths.PreviewPublicFile.Responses.$204>
5133
5283
  /**
5134
5284
  * getSession - getSession
5135
5285
  *
@@ -5586,6 +5736,18 @@ interface PathsDictionary {
5586
5736
  config?: AxiosRequestConfig
5587
5737
  ): OperationResponse<Paths.GenerateFileSummary.Responses.$202>
5588
5738
  }
5739
+ ['/v1/files/{id}/text']: {
5740
+ /**
5741
+ * getFileText - getFileText
5742
+ *
5743
+ * 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.
5744
+ */
5745
+ 'get'(
5746
+ parameters?: Parameters<Paths.GetFileText.PathParameters> | null,
5747
+ data?: any,
5748
+ config?: AxiosRequestConfig
5749
+ ): OperationResponse<Paths.GetFileText.Responses.$200>
5750
+ }
5589
5751
  ['/v1/files/{id}/preview']: {
5590
5752
  /**
5591
5753
  * previewFile - previewFile
@@ -5645,7 +5807,7 @@ interface PathsDictionary {
5645
5807
  parameters?: Parameters<Paths.PreviewPublicFile.QueryParameters & Paths.PreviewPublicFile.PathParameters> | null,
5646
5808
  data?: any,
5647
5809
  config?: AxiosRequestConfig
5648
- ): OperationResponse<Paths.PreviewPublicFile.Responses.$200>
5810
+ ): OperationResponse<Paths.PreviewPublicFile.Responses.$200 | Paths.PreviewPublicFile.Responses.$204>
5649
5811
  }
5650
5812
  ['/v1/files/session']: {
5651
5813
  /**
@@ -5898,6 +6060,11 @@ type FileRelationItem = Components.Schemas.FileRelationItem;
5898
6060
  type FileSummary = Components.Schemas.FileSummary;
5899
6061
  type FileSummaryJob = Components.Schemas.FileSummaryJob;
5900
6062
  type FileSummaryJobStatus = Components.Schemas.FileSummaryJobStatus;
6063
+ type FileText = Components.Schemas.FileText;
6064
+ type FileTextNotReady = Components.Schemas.FileTextNotReady;
6065
+ type FileTextReady = Components.Schemas.FileTextReady;
6066
+ type FileTextStatus = Components.Schemas.FileTextStatus;
6067
+ type FileTextUnsupported = Components.Schemas.FileTextUnsupported;
5901
6068
  type FileType = Components.Schemas.FileType;
5902
6069
  type FileUpload = Components.Schemas.FileUpload;
5903
6070
  type PublicLink = Components.Schemas.PublicLink;
@@ -5912,4 +6079,4 @@ type UploadFilePayload = Components.Schemas.UploadFilePayload;
5912
6079
  type VerifyCustomDownloadUrlPayload = Components.Schemas.VerifyCustomDownloadUrlPayload;
5913
6080
  type ZipJob = Components.Schemas.ZipJob;
5914
6081
 
5915
- export { type ActivityId as A, type BaseEntityAcl as B, type Client as C, type DownloadFilesPayload as D, type EntityId as E, type FileAttributes as F, type SaveFileFromSourceURLPayload as G, type SaveFilePayload as H, type SaveFilePayloadV2 as I, type SaveS3FilePayload as J, type OperationMethods as O, Paths as P, type S3Ref as S, type UploadFilePayload as U, type VerifyCustomDownloadUrlPayload as V, type ZipJob as Z, Components as a, type PathsDictionary as b, type BaseEntityOwner as c, type BatchSaveFileVersionPayload as d, type CommonSaveFilePayload as e, type CreateZipJobPayload as f, type CustomDownloadUrl as g, type CustomDownloadUrlAuth as h, type EntitySlug as i, type ErrorObject as j, type FileCollectionAttributes as k, type FileCollectionCreateRequest as l, type FileCollectionId as m, type FileCollectionItem as n, type FileEntity as o, type FileEntityId as p, type FileItem as q, type FileRelationItem as r, type FileSummary as s, type FileSummaryJob as t, type FileSummaryJobStatus as u, type FileType as v, type FileUpload as w, type PublicLink as x, type S3Reference as y, type SaveCustomFilePayload as z };
6082
+ export { type ActivityId as A, type BaseEntityAcl as B, type Client as C, type DownloadFilesPayload as D, type EntityId as E, type FileAttributes as F, type FileType as G, type FileUpload as H, type PublicLink as I, type S3Reference as J, type SaveCustomFilePayload as K, type SaveFileFromSourceURLPayload as L, type SaveFilePayload as M, type SaveFilePayloadV2 as N, type OperationMethods as O, Paths as P, type SaveS3FilePayload as Q, type S3Ref as S, type UploadFilePayload as U, type VerifyCustomDownloadUrlPayload as V, type ZipJob as Z, Components as a, type PathsDictionary as b, type BaseEntityOwner as c, type BatchSaveFileVersionPayload as d, type CommonSaveFilePayload as e, type CreateZipJobPayload as f, type CustomDownloadUrl as g, type CustomDownloadUrlAuth as h, type EntitySlug as i, type ErrorObject as j, type FileCollectionAttributes as k, type FileCollectionCreateRequest as l, type FileCollectionId as m, type FileCollectionItem as n, type FileEntity as o, type FileEntityId as p, type FileItem as q, type FileRelationItem as r, type FileSummary as s, type FileSummaryJob as t, type FileSummaryJobStatus as u, type FileText as v, type FileTextNotReady as w, type FileTextReady as x, type FileTextStatus as y, type FileTextUnsupported as z };
package/dist/index.cjs CHANGED
@@ -63,7 +63,7 @@ var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
63
63
  var _chunkFDS727SLcjs = require('./chunk-FDS727SL.cjs');
64
64
 
65
65
 
66
- var _chunkLNLUCLPLcjs = require('./chunk-LNLUCLPL.cjs');
66
+ var _chunk3SZOSNO2cjs = require('./chunk-3SZOSNO2.cjs');
67
67
 
68
68
 
69
69
  var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
@@ -158,7 +158,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkOIHW7ECMcjs = require('./chunk-OIHW7ECM.cjs');
161
+ var _chunkCD4J6HXVcjs = require('./chunk-CD4J6HXV.cjs');
162
162
 
163
163
 
164
164
  var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
@@ -225,7 +225,7 @@ var resolveClient = (params) => {
225
225
  }
226
226
  if (!entry.instance) {
227
227
  const definition = entry.loader();
228
- entry.instance = _chunkOIHW7ECMcjs.createApiClient.call(void 0, {
228
+ entry.instance = _chunkCD4J6HXVcjs.createApiClient.call(void 0, {
229
229
  definition,
230
230
  token: state.token,
231
231
  headers: state.globalHeaders,
@@ -258,7 +258,7 @@ var resetAllClients = (registry) => {
258
258
  };
259
259
 
260
260
  // src/apis/_registry.ts
261
- var expandDef = (mod) => _chunkOIHW7ECMcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
261
+ var expandDef = (mod) => _chunkCD4J6HXVcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
262
262
  var registerBuiltinApis = (registry) => {
263
263
  registerApi({
264
264
  registry,
@@ -383,7 +383,7 @@ var registerBuiltinApis = (registry) => {
383
383
  registerApi({
384
384
  registry,
385
385
  name: "file",
386
- loader: () => expandDef(_chunkLNLUCLPLcjs.require_file_runtime.call(void 0, ))
386
+ loader: () => expandDef(_chunk3SZOSNO2cjs.require_file_runtime.call(void 0, ))
387
387
  });
388
388
  registerApi({
389
389
  registry,
@@ -601,9 +601,9 @@ var createSDK = () => {
601
601
  const available = [...registry.keys()].join(", ");
602
602
  throw new Error(`Unknown API: "${name}". Available: ${available}`);
603
603
  }
604
- return _chunkOIHW7ECMcjs.createApiHandle.call(void 0, {
604
+ return _chunkCD4J6HXVcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkOIHW7ECMcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
606
+ createClient: () => _chunkCD4J6HXVcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
607
607
  apiName: name
608
608
  });
609
609
  };
@@ -651,9 +651,9 @@ var createSDK = () => {
651
651
  return interceptorUse;
652
652
  }
653
653
  case "help":
654
- return (apiName) => _chunkOIHW7ECMcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkCD4J6HXVcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkOIHW7ECMcjs.openapi.call(void 0, apiName);
656
+ return (apiName) => _chunkCD4J6HXVcjs.openapi.call(void 0, apiName);
657
657
  case "then":
658
658
  case "catch":
659
659
  case "finally":
@@ -683,4 +683,4 @@ var epilot = createSDK();
683
683
 
684
684
 
685
685
 
686
- exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkOIHW7ECMcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkOIHW7ECMcjs.help; exports.openapi = _chunkOIHW7ECMcjs.openapi;
686
+ exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkCD4J6HXVcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkCD4J6HXVcjs.help; exports.openapi = _chunkCD4J6HXVcjs.openapi;
package/dist/index.d.cts CHANGED
@@ -27,7 +27,7 @@ import { C as Client$k } from './entity.d-fospShiN.cjs';
27
27
  import { C as Client$l } from './entity-mapping.d-DKSW3sfy.cjs';
28
28
  import { C as Client$m } from './environments.d-BvqvN-PD.cjs';
29
29
  import { C as Client$n } from './event-catalog.d-QIhhewVH.cjs';
30
- import { C as Client$o } from './file.d-BN417xok.cjs';
30
+ import { C as Client$o } from './file.d-zFneCEyY.cjs';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.cjs';
32
32
  import { C as Client$q } from './integration-toolkit.d-7q19qDTD.cjs';
33
33
  import { C as Client$r } from './journey.d-B1sOeMHw.cjs';
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@ import { C as Client$k } from './entity.d-fospShiN.js';
27
27
  import { C as Client$l } from './entity-mapping.d-DKSW3sfy.js';
28
28
  import { C as Client$m } from './environments.d-BvqvN-PD.js';
29
29
  import { C as Client$n } from './event-catalog.d-QIhhewVH.js';
30
- import { C as Client$o } from './file.d-BN417xok.js';
30
+ import { C as Client$o } from './file.d-zFneCEyY.js';
31
31
  import { C as Client$p } from './iban.d-BwdiGbxi.js';
32
32
  import { C as Client$q } from './integration-toolkit.d-7q19qDTD.js';
33
33
  import { C as Client$r } from './journey.d-B1sOeMHw.js';
package/dist/index.js CHANGED
@@ -63,7 +63,7 @@ import {
63
63
  } from "./chunk-M4FO2MI4.js";
64
64
  import {
65
65
  require_file_runtime
66
- } from "./chunk-G5KVG3RU.js";
66
+ } from "./chunk-G7IFFKKJ.js";
67
67
  import {
68
68
  require_iban_runtime
69
69
  } from "./chunk-5MFHAXBT.js";
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-YUA47URH.js";
161
+ } from "./chunk-62BXSTL6.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
package/docs/file.md CHANGED
@@ -39,6 +39,7 @@ const { data } = await fileClient.uploadFileV2(...)
39
39
  - [`getCurrentFileSummaryJob`](#getcurrentfilesummaryjob)
40
40
  - [`getFileSummaryJob`](#getfilesummaryjob)
41
41
  - [`generateFileSummary`](#generatefilesummary)
42
+ - [`getFileText`](#getfiletext)
42
43
  - [`verifyCustomDownloadUrl`](#verifycustomdownloadurl)
43
44
  - [`uploadFilePublic`](#uploadfilepublic)
44
45
 
@@ -76,6 +77,11 @@ const { data } = await fileClient.uploadFileV2(...)
76
77
  - [`FileSummaryJobStatus`](#filesummaryjobstatus)
77
78
  - [`FileSummaryJob`](#filesummaryjob)
78
79
  - [`FileSummary`](#filesummary)
80
+ - [`FileTextStatus`](#filetextstatus)
81
+ - [`FileText`](#filetext)
82
+ - [`FileTextReady`](#filetextready)
83
+ - [`FileTextNotReady`](#filetextnotready)
84
+ - [`FileTextUnsupported`](#filetextunsupported)
79
85
  - [`CustomDownloadUrl`](#customdownloadurl)
80
86
  - [`CustomDownloadUrlAuth`](#customdownloadurlauth)
81
87
  - [`FileEntity`](#fileentity)
@@ -179,6 +185,7 @@ const { data } = await client.saveFileV2(
179
185
  mime_type: 'application/pdf',
180
186
  size_bytes: 1234,
181
187
  readable_size: '1.2 MB',
188
+ etag: '9bb58f26192e4ba00f01e2e7b136bbd8',
182
189
  access_control: 'private',
183
190
  public_url: 'https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf',
184
191
  custom_download_url: 'https://some-api-url.com/download?file_id=123',
@@ -209,6 +216,7 @@ const { data } = await client.saveFileV2(
209
216
  "mime_type": "application/pdf",
210
217
  "size_bytes": 1234,
211
218
  "readable_size": "1.2 MB",
219
+ "etag": "9bb58f26192e4ba00f01e2e7b136bbd8",
212
220
  "access_control": "private",
213
221
  "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
214
222
  "custom_download_url": "https://some-api-url.com/download?file_id=123",
@@ -225,7 +233,8 @@ const { data } = await client.saveFileV2(
225
233
  "filename": "document.pdf",
226
234
  "size_bytes": 1234,
227
235
  "readable_size": "1.2 MB",
228
- "mime_type": "image/jpeg"
236
+ "mime_type": "image/jpeg",
237
+ "etag": "9bb58f26192e4ba00f01e2e7b136bbd8"
229
238
  }
230
239
  ],
231
240
  "_updated_at": "1970-01-01T00:00:00.000Z",
@@ -281,6 +290,7 @@ const { data } = await client.getFile({
281
290
  "mime_type": "application/pdf",
282
291
  "size_bytes": 1234,
283
292
  "readable_size": "1.2 MB",
293
+ "etag": "9bb58f26192e4ba00f01e2e7b136bbd8",
284
294
  "access_control": "private",
285
295
  "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
286
296
  "custom_download_url": "https://some-api-url.com/download?file_id=123",
@@ -297,7 +307,8 @@ const { data } = await client.getFile({
297
307
  "filename": "document.pdf",
298
308
  "size_bytes": 1234,
299
309
  "readable_size": "1.2 MB",
300
- "mime_type": "image/jpeg"
310
+ "mime_type": "image/jpeg",
311
+ "etag": "9bb58f26192e4ba00f01e2e7b136bbd8"
301
312
  }
302
313
  ],
303
314
  "_updated_at": "1970-01-01T00:00:00.000Z",
@@ -353,6 +364,7 @@ const { data } = await client.deleteFile({
353
364
  "mime_type": "application/pdf",
354
365
  "size_bytes": 1234,
355
366
  "readable_size": "1.2 MB",
367
+ "etag": "9bb58f26192e4ba00f01e2e7b136bbd8",
356
368
  "access_control": "private",
357
369
  "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
358
370
  "custom_download_url": "https://some-api-url.com/download?file_id=123",
@@ -369,7 +381,8 @@ const { data } = await client.deleteFile({
369
381
  "filename": "document.pdf",
370
382
  "size_bytes": 1234,
371
383
  "readable_size": "1.2 MB",
372
- "mime_type": "image/jpeg"
384
+ "mime_type": "image/jpeg",
385
+ "etag": "9bb58f26192e4ba00f01e2e7b136bbd8"
373
386
  }
374
387
  ],
375
388
  "_updated_at": "1970-01-01T00:00:00.000Z",
@@ -659,6 +672,34 @@ const { data } = await client.generateFileSummary({
659
672
 
660
673
  ---
661
674
 
675
+ ### `getFileText`
676
+
677
+ 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.
678
+
679
+ `GET /v1/files/{id}/text`
680
+
681
+ ```ts
682
+ const { data } = await client.getFileText({
683
+ id: '123e4567-e89b-12d3-a456-426614174000',
684
+ })
685
+ ```
686
+
687
+ <details>
688
+ <summary>Response</summary>
689
+
690
+ ```json
691
+ {
692
+ "status": "ready",
693
+ "text": "string",
694
+ "truncated": true,
695
+ "total_chars": 0
696
+ }
697
+ ```
698
+
699
+ </details>
700
+
701
+ ---
702
+
662
703
  ### `previewFile`
663
704
 
664
705
  Generate a thumbnail preview for a file entity.
@@ -1072,6 +1113,7 @@ const { data } = await client.getFilesInCollection({
1072
1113
  "mime_type": "application/pdf",
1073
1114
  "size_bytes": 1234,
1074
1115
  "readable_size": "1.2 MB",
1116
+ "etag": "9bb58f26192e4ba00f01e2e7b136bbd8",
1075
1117
  "access_control": "private",
1076
1118
  "public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
1077
1119
  "custom_download_url": "https://some-api-url.com/download?file_id=123",
@@ -1088,7 +1130,8 @@ const { data } = await client.getFilesInCollection({
1088
1130
  "filename": "document.pdf",
1089
1131
  "size_bytes": 1234,
1090
1132
  "readable_size": "1.2 MB",
1091
- "mime_type": "image/jpeg"
1133
+ "mime_type": "image/jpeg",
1134
+ "etag": "9bb58f26192e4ba00f01e2e7b136bbd8"
1092
1135
  }
1093
1136
  ],
1094
1137
  "_updated_at": "1970-01-01T00:00:00.000Z",
@@ -1191,6 +1234,7 @@ type FileAttributes = {
1191
1234
  mime_type?: string
1192
1235
  size_bytes?: number
1193
1236
  readable_size?: string
1237
+ etag?: string
1194
1238
  access_control?: "private" | "public-read"
1195
1239
  public_url?: string // url
1196
1240
  custom_download_url?: string // uri
@@ -1243,6 +1287,56 @@ type FileSummary = {
1243
1287
  }
1244
1288
  ```
1245
1289
 
1290
+ ### `FileTextStatus`
1291
+
1292
+ Availability of the plain-text representation for a file entity.
1293
+
1294
+ ```ts
1295
+ type FileTextStatus = "ready" | "not_ready" | "unsupported"
1296
+ ```
1297
+
1298
+ ### `FileText`
1299
+
1300
+ ```ts
1301
+ type FileText = {
1302
+ status: "ready"
1303
+ text: string
1304
+ truncated: boolean
1305
+ total_chars: number
1306
+ } | {
1307
+ status: "not_ready"
1308
+ } | {
1309
+ status: "unsupported"
1310
+ }
1311
+ ```
1312
+
1313
+ ### `FileTextReady`
1314
+
1315
+ ```ts
1316
+ type FileTextReady = {
1317
+ status: "ready"
1318
+ text: string
1319
+ truncated: boolean
1320
+ total_chars: number
1321
+ }
1322
+ ```
1323
+
1324
+ ### `FileTextNotReady`
1325
+
1326
+ ```ts
1327
+ type FileTextNotReady = {
1328
+ status: "not_ready"
1329
+ }
1330
+ ```
1331
+
1332
+ ### `FileTextUnsupported`
1333
+
1334
+ ```ts
1335
+ type FileTextUnsupported = {
1336
+ status: "unsupported"
1337
+ }
1338
+ ```
1339
+
1246
1340
  ### `CustomDownloadUrl`
1247
1341
 
1248
1342
  Custom external download url used for the file
@@ -1275,6 +1369,7 @@ type FileEntity = {
1275
1369
  mime_type?: string
1276
1370
  size_bytes?: number
1277
1371
  readable_size?: string
1372
+ etag?: string
1278
1373
  access_control: "private" | "public-read"
1279
1374
  public_url?: string // url
1280
1375
  custom_download_url?: string // uri
@@ -1291,6 +1386,7 @@ type FileEntity = {
1291
1386
  size_bytes?: number
1292
1387
  readable_size?: string
1293
1388
  mime_type?: string
1389
+ etag?: string
1294
1390
  }>
1295
1391
  _updated_at?: string // date-time
1296
1392
  _created_at?: string // date-time
@@ -1340,6 +1436,7 @@ type SaveS3FilePayload = {
1340
1436
  mime_type?: string
1341
1437
  size_bytes?: number
1342
1438
  readable_size?: string
1439
+ etag?: string
1343
1440
  access_control?: "private" | "public-read"
1344
1441
  public_url?: string // url
1345
1442
  custom_download_url?: string // uri
@@ -1371,6 +1468,7 @@ type SaveFileFromSourceURLPayload = {
1371
1468
  mime_type?: string
1372
1469
  size_bytes?: number
1373
1470
  readable_size?: string
1471
+ etag?: string
1374
1472
  access_control?: "private" | "public-read"
1375
1473
  public_url?: string // url
1376
1474
  custom_download_url?: string // uri
@@ -1402,6 +1500,7 @@ type SaveCustomFilePayload = {
1402
1500
  mime_type?: string
1403
1501
  size_bytes?: number
1404
1502
  readable_size?: string
1503
+ etag?: string
1405
1504
  access_control?: "private" | "public-read"
1406
1505
  public_url?: string // url
1407
1506
  custom_download_url?: string // uri
@@ -1432,6 +1531,7 @@ type SaveFilePayload = {
1432
1531
  mime_type?: string
1433
1532
  size_bytes?: number
1434
1533
  readable_size?: string
1534
+ etag?: string
1435
1535
  access_control?: "private" | "public-read"
1436
1536
  public_url?: string // url
1437
1537
  custom_download_url?: string // uri
@@ -1457,6 +1557,7 @@ type SaveFilePayload = {
1457
1557
  mime_type?: string
1458
1558
  size_bytes?: number
1459
1559
  readable_size?: string
1560
+ etag?: string
1460
1561
  access_control?: "private" | "public-read"
1461
1562
  public_url?: string // url
1462
1563
  custom_download_url?: string // uri
@@ -1482,6 +1583,7 @@ type SaveFilePayload = {
1482
1583
  mime_type?: string
1483
1584
  size_bytes?: number
1484
1585
  readable_size?: string
1586
+ etag?: string
1485
1587
  access_control?: "private" | "public-read"
1486
1588
  public_url?: string // url
1487
1589
  custom_download_url?: string // uri
@@ -1512,6 +1614,7 @@ type SaveFilePayloadV2 = {
1512
1614
  mime_type?: string
1513
1615
  size_bytes?: number
1514
1616
  readable_size?: string
1617
+ etag?: string
1515
1618
  access_control?: "private" | "public-read"
1516
1619
  public_url?: string // url
1517
1620
  custom_download_url?: string // uri
@@ -1537,6 +1640,7 @@ type SaveFilePayloadV2 = {
1537
1640
  mime_type?: string
1538
1641
  size_bytes?: number
1539
1642
  readable_size?: string
1643
+ etag?: string
1540
1644
  access_control?: "private" | "public-read"
1541
1645
  public_url?: string // url
1542
1646
  custom_download_url?: string // uri
@@ -1562,6 +1666,7 @@ type SaveFilePayloadV2 = {
1562
1666
  mime_type?: string
1563
1667
  size_bytes?: number
1564
1668
  readable_size?: string
1669
+ etag?: string
1565
1670
  access_control?: "private" | "public-read"
1566
1671
  public_url?: string // url
1567
1672
  custom_download_url?: string // uri
@@ -1691,6 +1796,7 @@ type FileItem = {
1691
1796
  size_bytes?: number
1692
1797
  readable_size?: string
1693
1798
  mime_type?: string
1799
+ etag?: string
1694
1800
  }
1695
1801
  ```
1696
1802