@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
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ import { C as Client$8 } from './blueprint-manifest.d-D2I9nhZa.js';
15
15
  import { C as Client$9 } from './calendar.d-BEjLDagH.js';
16
16
  import { C as Client$a } from './configuration-hub.d-CbSJDa7k.js';
17
17
  import { C as Client$b } from './consent.d-C2PROHhX.js';
18
- import { C as Client$c } from './customer-portal.d-SlKyKhCa.js';
18
+ import { C as Client$c } from './customer-portal.d-CJgDRoOo.js';
19
19
  import { C as Client$d } from './dashboard.d-CsGcA74I.js';
20
20
  import { C as Client$e } from './data-governance.d-BbZ466j5.js';
21
21
  import { C as Client$f } from './deduplication.d-D5GYddVu.js';
@@ -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";
@@ -123,7 +123,7 @@ import {
123
123
  } from "./chunk-2BPBDRRO.js";
124
124
  import {
125
125
  require_customer_portal_runtime
126
- } from "./chunk-Y5YIU6PG.js";
126
+ } from "./chunk-L4XLUNUO.js";
127
127
  import {
128
128
  require_dashboard_runtime
129
129
  } from "./chunk-SZMCMLOQ.js";
@@ -158,7 +158,7 @@ import {
158
158
  expand,
159
159
  help,
160
160
  openapi
161
- } from "./chunk-RSW3OGJC.js";
161
+ } from "./chunk-62BXSTL6.js";
162
162
  import {
163
163
  __require
164
164
  } from "./chunk-YPSWSI3M.js";
@@ -5188,9 +5188,9 @@ const { data } = await client.postOrderAcceptance(
5188
5188
 
5189
5189
  ### `getContractWithTemplates`
5190
5190
 
5191
- Get a contract by id, resolving the provided Handlebars templates against each related meter into templates_output. POST variant of getContract that accepts a request body; the GET remains as a fallba
5191
+ Resolve Handlebars templates against a contract's related meters and return the contract with templates_output populated per meter. This is a read-only operation it does not modify the contract. It
5192
5192
 
5193
- `POST /v2/portal/contract/{id}`
5193
+ `POST /v2/portal/contract/{id}/resolve-templates`
5194
5194
 
5195
5195
  ```ts
5196
5196
  const { data } = await client.getContractWithTemplates(
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/sdk",
3
- "version": "2.14.3",
3
+ "version": "2.14.5",
4
4
  "description": "JavaScript/TypeScript SDK for epilot APIs",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -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"]]], ["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]]], ["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]]], ["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
- };
@@ -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"]]], ["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]]], ["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]]], ["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;