@epilot/sdk 2.14.3 → 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 (144) hide show
  1. package/definitions/customer-portal-runtime.json +1 -1
  2. package/definitions/customer-portal.json +68 -66
  3. package/definitions/file-runtime.json +1 -1
  4. package/definitions/file.json +189 -3
  5. package/dist/apis/access-token.cjs +6 -6
  6. package/dist/apis/access-token.js +1 -1
  7. package/dist/apis/address-suggestions.cjs +6 -6
  8. package/dist/apis/address-suggestions.js +1 -1
  9. package/dist/apis/address.cjs +6 -6
  10. package/dist/apis/address.js +1 -1
  11. package/dist/apis/ai-agents.cjs +6 -6
  12. package/dist/apis/ai-agents.js +1 -1
  13. package/dist/apis/app.cjs +6 -6
  14. package/dist/apis/app.js +1 -1
  15. package/dist/apis/audit-logs.cjs +6 -6
  16. package/dist/apis/audit-logs.js +1 -1
  17. package/dist/apis/automation.cjs +6 -6
  18. package/dist/apis/automation.js +1 -1
  19. package/dist/apis/billing.cjs +6 -6
  20. package/dist/apis/billing.js +1 -1
  21. package/dist/apis/blueprint-manifest.cjs +6 -6
  22. package/dist/apis/blueprint-manifest.js +1 -1
  23. package/dist/apis/calendar.cjs +6 -6
  24. package/dist/apis/calendar.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 +8 -8
  30. package/dist/apis/customer-portal.d.cts +2 -2
  31. package/dist/apis/customer-portal.d.ts +2 -2
  32. package/dist/apis/customer-portal.js +2 -2
  33. package/dist/apis/dashboard.cjs +6 -6
  34. package/dist/apis/dashboard.js +1 -1
  35. package/dist/apis/data-governance.cjs +6 -6
  36. package/dist/apis/data-governance.js +1 -1
  37. package/dist/apis/deduplication.cjs +6 -6
  38. package/dist/apis/deduplication.js +1 -1
  39. package/dist/apis/design.cjs +6 -6
  40. package/dist/apis/design.js +1 -1
  41. package/dist/apis/document.cjs +6 -6
  42. package/dist/apis/document.js +1 -1
  43. package/dist/apis/email-settings.cjs +6 -6
  44. package/dist/apis/email-settings.js +1 -1
  45. package/dist/apis/email-template.cjs +6 -6
  46. package/dist/apis/email-template.js +1 -1
  47. package/dist/apis/entity-mapping.cjs +6 -6
  48. package/dist/apis/entity-mapping.js +1 -1
  49. package/dist/apis/entity.cjs +6 -6
  50. package/dist/apis/entity.js +1 -1
  51. package/dist/apis/environments.cjs +6 -6
  52. package/dist/apis/environments.js +1 -1
  53. package/dist/apis/event-catalog.cjs +6 -6
  54. package/dist/apis/event-catalog.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/integration-toolkit.cjs +6 -6
  62. package/dist/apis/integration-toolkit.js +1 -1
  63. package/dist/apis/journey.cjs +6 -6
  64. package/dist/apis/journey.js +1 -1
  65. package/dist/apis/kanban.cjs +6 -6
  66. package/dist/apis/kanban.js +1 -1
  67. package/dist/apis/message.cjs +6 -6
  68. package/dist/apis/message.js +1 -1
  69. package/dist/apis/metering.cjs +6 -6
  70. package/dist/apis/metering.js +1 -1
  71. package/dist/apis/notes.cjs +6 -6
  72. package/dist/apis/notes.js +1 -1
  73. package/dist/apis/notification.cjs +6 -6
  74. package/dist/apis/notification.js +1 -1
  75. package/dist/apis/organization.cjs +6 -6
  76. package/dist/apis/organization.js +1 -1
  77. package/dist/apis/partner-directory.cjs +6 -6
  78. package/dist/apis/partner-directory.js +1 -1
  79. package/dist/apis/permissions.cjs +6 -6
  80. package/dist/apis/permissions.js +1 -1
  81. package/dist/apis/pricing-tier.cjs +6 -6
  82. package/dist/apis/pricing-tier.js +1 -1
  83. package/dist/apis/pricing.cjs +6 -6
  84. package/dist/apis/pricing.js +1 -1
  85. package/dist/apis/purpose.cjs +6 -6
  86. package/dist/apis/purpose.js +1 -1
  87. package/dist/apis/query.cjs +6 -6
  88. package/dist/apis/query.js +1 -1
  89. package/dist/apis/sandbox.cjs +6 -6
  90. package/dist/apis/sandbox.js +1 -1
  91. package/dist/apis/sharing.cjs +6 -6
  92. package/dist/apis/sharing.js +1 -1
  93. package/dist/apis/snapshot.cjs +6 -6
  94. package/dist/apis/snapshot.js +1 -1
  95. package/dist/apis/submission.cjs +6 -6
  96. package/dist/apis/submission.js +1 -1
  97. package/dist/apis/target.cjs +6 -6
  98. package/dist/apis/target.js +1 -1
  99. package/dist/apis/targeting.cjs +6 -6
  100. package/dist/apis/targeting.js +1 -1
  101. package/dist/apis/template-variables.cjs +6 -6
  102. package/dist/apis/template-variables.js +1 -1
  103. package/dist/apis/user.cjs +6 -6
  104. package/dist/apis/user.js +1 -1
  105. package/dist/apis/validation-rules.cjs +6 -6
  106. package/dist/apis/validation-rules.js +1 -1
  107. package/dist/apis/webhooks.cjs +6 -6
  108. package/dist/apis/webhooks.js +1 -1
  109. package/dist/apis/workflow-definition.cjs +6 -6
  110. package/dist/apis/workflow-definition.js +1 -1
  111. package/dist/apis/workflow.cjs +6 -6
  112. package/dist/apis/workflow.js +1 -1
  113. package/dist/chunk-3SZOSNO2.cjs +14 -0
  114. package/dist/{chunk-RSW3OGJC.js → chunk-62BXSTL6.js} +4 -4
  115. package/dist/{chunk-K5HFQSHG.cjs → chunk-CD4J6HXV.cjs} +4 -4
  116. package/dist/chunk-G7IFFKKJ.js +14 -0
  117. package/dist/{chunk-DGLXRPNZ.cjs → chunk-IZ52TBS7.cjs} +1 -1
  118. package/dist/{chunk-Y5YIU6PG.js → chunk-L4XLUNUO.js} +1 -1
  119. package/dist/customer-portal-2KYG4NWA.js +7 -0
  120. package/dist/customer-portal-WAHU36H2.cjs +7 -0
  121. package/dist/{customer-portal-runtime-JDDF3NWW.js → customer-portal-runtime-QM3MLBPV.js} +1 -1
  122. package/dist/{customer-portal-runtime-H7XSAQ6G.cjs → customer-portal-runtime-SOZ4QOVZ.cjs} +2 -2
  123. package/dist/{customer-portal.d-SlKyKhCa.d.cts → customer-portal.d-CJgDRoOo.d.cts} +22 -20
  124. package/dist/{customer-portal.d-SlKyKhCa.d.ts → customer-portal.d-CJgDRoOo.d.ts} +22 -20
  125. package/dist/file-M7VPFJWG.js +7 -0
  126. package/dist/file-RNYEYEOK.cjs +7 -0
  127. package/dist/{file-runtime-VY6DJAQ3.js → file-runtime-M4X5OHAJ.js} +1 -1
  128. package/dist/file-runtime-NW5B7T4M.cjs +5 -0
  129. package/dist/{file.d-BN417xok.d.cts → file.d-zFneCEyY.d.cts} +170 -3
  130. package/dist/{file.d-BN417xok.d.ts → file.d-zFneCEyY.d.ts} +170 -3
  131. package/dist/index.cjs +12 -12
  132. package/dist/index.d.cts +2 -2
  133. package/dist/index.d.ts +2 -2
  134. package/dist/index.js +3 -3
  135. package/docs/customer-portal.md +2 -2
  136. package/docs/file.md +110 -4
  137. package/package.json +1 -1
  138. package/dist/chunk-G5KVG3RU.js +0 -14
  139. package/dist/chunk-LNLUCLPL.cjs +0 -14
  140. package/dist/customer-portal-6WYH4LMT.js +0 -7
  141. package/dist/customer-portal-JZMXGNRO.cjs +0 -7
  142. package/dist/file-7CQXDQ3I.cjs +0 -7
  143. package/dist/file-O6ZD3HOU.js +0 -7
  144. 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 };
@@ -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');
@@ -123,7 +123,7 @@ var _chunkMOLFG5L4cjs = require('./chunk-MOLFG5L4.cjs');
123
123
  var _chunkBM6NCHPLcjs = require('./chunk-BM6NCHPL.cjs');
124
124
 
125
125
 
126
- var _chunkDGLXRPNZcjs = require('./chunk-DGLXRPNZ.cjs');
126
+ var _chunkIZ52TBS7cjs = require('./chunk-IZ52TBS7.cjs');
127
127
 
128
128
 
129
129
  var _chunkM2UDF7PYcjs = require('./chunk-M2UDF7PY.cjs');
@@ -158,7 +158,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
158
158
 
159
159
 
160
160
 
161
- var _chunkK5HFQSHGcjs = require('./chunk-K5HFQSHG.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 = _chunkK5HFQSHGcjs.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) => _chunkK5HFQSHGcjs.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,
@@ -323,7 +323,7 @@ var registerBuiltinApis = (registry) => {
323
323
  registerApi({
324
324
  registry,
325
325
  name: "customerPortal",
326
- loader: () => expandDef(_chunkDGLXRPNZcjs.require_customer_portal_runtime.call(void 0, ))
326
+ loader: () => expandDef(_chunkIZ52TBS7cjs.require_customer_portal_runtime.call(void 0, ))
327
327
  });
328
328
  registerApi({
329
329
  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 _chunkK5HFQSHGcjs.createApiHandle.call(void 0, {
604
+ return _chunkCD4J6HXVcjs.createApiHandle.call(void 0, {
605
605
  resolveClient: () => resolveClient({ registry, name, state }),
606
- createClient: () => _chunkK5HFQSHGcjs.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) => _chunkK5HFQSHGcjs.help.call(void 0, apiName);
654
+ return (apiName) => _chunkCD4J6HXVcjs.help.call(void 0, apiName);
655
655
  case "openapi":
656
- return (apiName) => _chunkK5HFQSHGcjs.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 = _chunkK5HFQSHGcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkK5HFQSHGcjs.help; exports.openapi = _chunkK5HFQSHGcjs.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
@@ -15,7 +15,7 @@ import { C as Client$8 } from './blueprint-manifest.d-D2I9nhZa.cjs';
15
15
  import { C as Client$9 } from './calendar.d-BEjLDagH.cjs';
16
16
  import { C as Client$a } from './configuration-hub.d-CbSJDa7k.cjs';
17
17
  import { C as Client$b } from './consent.d-C2PROHhX.cjs';
18
- import { C as Client$c } from './customer-portal.d-SlKyKhCa.cjs';
18
+ import { C as Client$c } from './customer-portal.d-CJgDRoOo.cjs';
19
19
  import { C as Client$d } from './dashboard.d-CsGcA74I.cjs';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.cjs';
21
21
  import { C as Client$f } from './deduplication.d-D5GYddVu.cjs';
@@ -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';