@epilot/sdk 2.10.0 → 2.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/definitions/ai-agents-runtime.json +1 -1
- package/definitions/ai-agents.json +971 -98
- package/definitions/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +1238 -124
- package/definitions/file-runtime.json +1 -1
- package/definitions/file.json +291 -15
- package/definitions/targeting-runtime.json +1 -1
- package/definitions/targeting.json +7 -2
- package/definitions/workflow-runtime.json +1 -1
- package/definitions/workflow.json +445 -60
- package/dist/ai-agents-D6C5TXLD.cjs +7 -0
- package/dist/ai-agents-Y6PH53PH.js +7 -0
- package/dist/{ai-agents-runtime-25YRUJHI.js → ai-agents-runtime-EA23HCCP.js} +1 -1
- package/dist/{ai-agents-runtime-TILIO3UM.cjs → ai-agents-runtime-WZ3EI3NH.cjs} +2 -2
- package/dist/{ai-agents.d-CC5IjXrs.d.cts → ai-agents.d-D-7bTH-9.d.cts} +506 -5
- package/dist/{ai-agents.d-CC5IjXrs.d.ts → ai-agents.d-D-7bTH-9.d.ts} +506 -5
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +8 -8
- package/dist/apis/ai-agents.d.cts +2 -2
- package/dist/apis/ai-agents.d.ts +2 -2
- package/dist/apis/ai-agents.js +2 -2
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +8 -8
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +2 -2
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +8 -8
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +2 -2
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +8 -8
- package/dist/apis/targeting.d.cts +2 -2
- package/dist/apis/targeting.d.ts +2 -2
- package/dist/apis/targeting.js +2 -2
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +8 -8
- package/dist/apis/workflow.d.cts +2 -2
- package/dist/apis/workflow.d.ts +2 -2
- package/dist/apis/workflow.js +2 -2
- package/dist/{chunk-KQKBSWGI.js → chunk-522LYPPW.js} +1 -1
- package/dist/{chunk-MCK2QUSD.cjs → chunk-7ILTRJDQ.cjs} +1 -1
- package/dist/chunk-BRWY3QHG.js +14 -0
- package/dist/chunk-G5KVG3RU.js +14 -0
- package/dist/{chunk-LSPXLT3A.js → chunk-H3NMCCSA.js} +1 -1
- package/dist/chunk-JBPITLKN.cjs +14 -0
- package/dist/chunk-LNLUCLPL.cjs +14 -0
- package/dist/chunk-LSMVZMBY.js +14 -0
- package/dist/{chunk-XH5F3S6Y.js → chunk-O6DUKVXV.js} +10 -10
- package/dist/{chunk-QNZPOA54.cjs → chunk-PM25LLET.cjs} +1 -1
- package/dist/{chunk-OJGUX5TG.cjs → chunk-WK3YGGRO.cjs} +10 -10
- package/dist/chunk-YEBEA6XU.cjs +14 -0
- package/dist/customer-portal-MY3GZVUL.cjs +7 -0
- package/dist/customer-portal-YSODD3RC.js +7 -0
- package/dist/{customer-portal-runtime-TDHV2YVY.js → customer-portal-runtime-C6ZIKX2V.js} +1 -1
- package/dist/{customer-portal-runtime-HA6CPWB4.cjs → customer-portal-runtime-M7O3RDJ5.cjs} +2 -2
- package/dist/{customer-portal.d-BRwiQehb.d.cts → customer-portal.d-Bx5_n5UL.d.cts} +827 -8
- package/dist/{customer-portal.d-BRwiQehb.d.ts → customer-portal.d-Bx5_n5UL.d.ts} +827 -8
- package/dist/file-7CQXDQ3I.cjs +7 -0
- package/dist/file-O6ZD3HOU.js +7 -0
- package/dist/file-runtime-HYLQTQBX.cjs +5 -0
- package/dist/{file-runtime-DKGFS44O.js → file-runtime-VY6DJAQ3.js} +1 -1
- package/dist/{file.d-BjlMgTwj.d.cts → file.d-BN417xok.d.cts} +416 -23
- package/dist/{file.d-BjlMgTwj.d.ts → file.d-BN417xok.d.ts} +416 -23
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/dist/{targeting-WC62BBZN.cjs → targeting-4YMBBPDW.cjs} +1 -1
- package/dist/{targeting-X4Y2ODBT.js → targeting-VCENULF6.js} +1 -1
- package/dist/{targeting-runtime-D5YUPZQM.js → targeting-runtime-QI7322HB.js} +1 -1
- package/dist/{targeting-runtime-MLMOM7CK.cjs → targeting-runtime-X3DQ527N.cjs} +2 -2
- package/dist/{targeting.d-0rNF7ErD.d.cts → targeting.d-Bq3onSes.d.cts} +1 -1
- package/dist/{targeting.d-0rNF7ErD.d.ts → targeting.d-Bq3onSes.d.ts} +1 -1
- package/dist/workflow-7OU2YEEI.cjs +7 -0
- package/dist/workflow-IVKCWS44.js +7 -0
- package/dist/{workflow-runtime-DNTQDYPQ.js → workflow-runtime-L5HMFISV.js} +1 -1
- package/dist/{workflow-runtime-VKFESVFX.cjs → workflow-runtime-LMGACZP4.cjs} +2 -2
- package/dist/{workflow.d-CMSKt8oN.d.cts → workflow.d-eFv0ecBi.d.cts} +745 -81
- package/dist/{workflow.d-CMSKt8oN.d.ts → workflow.d-eFv0ecBi.d.ts} +745 -81
- package/docs/ai-agents.md +641 -23
- package/docs/customer-portal.md +700 -31
- package/docs/file.md +165 -25
- package/docs/targeting.md +1 -1
- package/docs/workflow.md +247 -47
- package/package.json +11 -12
- package/definitions/focus-pocus-runtime.json +0 -1
- package/definitions/focus-pocus.json +0 -757
- package/dist/ai-agents-IZWFEUSH.js +0 -7
- package/dist/ai-agents-PWHKNRCX.cjs +0 -7
- package/dist/chunk-4M5V6BIT.cjs +0 -14
- package/dist/chunk-5ZXGKLB6.cjs +0 -14
- package/dist/chunk-774ASAAH.js +0 -14
- package/dist/chunk-FARDEGPH.cjs +0 -14
- package/dist/chunk-JENQHXFI.js +0 -14
- package/dist/chunk-RDVFQOCQ.js +0 -14
- package/dist/customer-portal-4DXHY42V.js +0 -7
- package/dist/customer-portal-5OSGSYGF.cjs +0 -7
- package/dist/file-2MSILSPP.cjs +0 -7
- package/dist/file-JVFTT5RZ.js +0 -7
- package/dist/file-runtime-7AWKNQU6.cjs +0 -5
- package/dist/workflow-3WBD74WR.js +0 -7
- package/dist/workflow-WIUZ5TOX.cjs +0 -7
package/docs/file.md
CHANGED
|
@@ -34,6 +34,10 @@ const { data } = await fileClient.uploadFileV2(...)
|
|
|
34
34
|
- [`downloadFiles`](#downloadfiles)
|
|
35
35
|
- [`createZipJob`](#createzipjob)
|
|
36
36
|
- [`getZipJob`](#getzipjob)
|
|
37
|
+
- [`getFileSummary`](#getfilesummary)
|
|
38
|
+
- [`createFileSummaryJob`](#createfilesummaryjob)
|
|
39
|
+
- [`getCurrentFileSummaryJob`](#getcurrentfilesummaryjob)
|
|
40
|
+
- [`getFileSummaryJob`](#getfilesummaryjob)
|
|
37
41
|
- [`generateFileSummary`](#generatefilesummary)
|
|
38
42
|
- [`verifyCustomDownloadUrl`](#verifycustomdownloadurl)
|
|
39
43
|
- [`uploadFilePublic`](#uploadfilepublic)
|
|
@@ -69,9 +73,11 @@ const { data } = await fileClient.uploadFileV2(...)
|
|
|
69
73
|
- [`FileEntityId`](#fileentityid)
|
|
70
74
|
- [`FileAttributes`](#fileattributes)
|
|
71
75
|
- [`FileType`](#filetype)
|
|
72
|
-
- [`
|
|
73
|
-
- [`
|
|
76
|
+
- [`FileSummaryJobStatus`](#filesummaryjobstatus)
|
|
77
|
+
- [`FileSummaryJob`](#filesummaryjob)
|
|
78
|
+
- [`FileSummary`](#filesummary)
|
|
74
79
|
- [`CustomDownloadUrl`](#customdownloadurl)
|
|
80
|
+
- [`CustomDownloadUrlAuth`](#customdownloadurlauth)
|
|
75
81
|
- [`FileEntity`](#fileentity)
|
|
76
82
|
- [`CommonSaveFilePayload`](#commonsavefilepayload)
|
|
77
83
|
- [`SaveS3FilePayload`](#saves3filepayload)
|
|
@@ -176,11 +182,11 @@ const { data } = await client.saveFileV2(
|
|
|
176
182
|
access_control: 'private',
|
|
177
183
|
public_url: 'https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf',
|
|
178
184
|
custom_download_url: 'https://some-api-url.com/download?file_id=123',
|
|
185
|
+
custom_download_url_auth: 'token',
|
|
179
186
|
preview_summary_de: 'string',
|
|
180
187
|
short_summary_de: 'string',
|
|
181
188
|
preview_summary_en: 'string',
|
|
182
189
|
short_summary_en: 'string',
|
|
183
|
-
summary_status: 'processing',
|
|
184
190
|
s3ref: {}
|
|
185
191
|
},
|
|
186
192
|
)
|
|
@@ -206,11 +212,11 @@ const { data } = await client.saveFileV2(
|
|
|
206
212
|
"access_control": "private",
|
|
207
213
|
"public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
|
|
208
214
|
"custom_download_url": "https://some-api-url.com/download?file_id=123",
|
|
215
|
+
"custom_download_url_auth": "token",
|
|
209
216
|
"preview_summary_de": "string",
|
|
210
217
|
"short_summary_de": "string",
|
|
211
218
|
"preview_summary_en": "string",
|
|
212
219
|
"short_summary_en": "string",
|
|
213
|
-
"summary_status": "processing",
|
|
214
220
|
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
|
|
215
221
|
"s3ref": {},
|
|
216
222
|
"versions": [
|
|
@@ -278,11 +284,11 @@ const { data } = await client.getFile({
|
|
|
278
284
|
"access_control": "private",
|
|
279
285
|
"public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
|
|
280
286
|
"custom_download_url": "https://some-api-url.com/download?file_id=123",
|
|
287
|
+
"custom_download_url_auth": "token",
|
|
281
288
|
"preview_summary_de": "string",
|
|
282
289
|
"short_summary_de": "string",
|
|
283
290
|
"preview_summary_en": "string",
|
|
284
291
|
"short_summary_en": "string",
|
|
285
|
-
"summary_status": "processing",
|
|
286
292
|
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
|
|
287
293
|
"s3ref": {},
|
|
288
294
|
"versions": [
|
|
@@ -350,11 +356,11 @@ const { data } = await client.deleteFile({
|
|
|
350
356
|
"access_control": "private",
|
|
351
357
|
"public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
|
|
352
358
|
"custom_download_url": "https://some-api-url.com/download?file_id=123",
|
|
359
|
+
"custom_download_url_auth": "token",
|
|
353
360
|
"preview_summary_de": "string",
|
|
354
361
|
"short_summary_de": "string",
|
|
355
362
|
"preview_summary_en": "string",
|
|
356
363
|
"short_summary_en": "string",
|
|
357
|
-
"summary_status": "processing",
|
|
358
364
|
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
|
|
359
365
|
"s3ref": {},
|
|
360
366
|
"versions": [
|
|
@@ -532,9 +538,116 @@ const { data } = await client.getZipJob({
|
|
|
532
538
|
|
|
533
539
|
---
|
|
534
540
|
|
|
541
|
+
### `getFileSummary`
|
|
542
|
+
|
|
543
|
+
Get summary text for a file entity together with the current summary job status when available.
|
|
544
|
+
|
|
545
|
+
`GET /v1/files/{id}/summary`
|
|
546
|
+
|
|
547
|
+
```ts
|
|
548
|
+
const { data } = await client.getFileSummary({
|
|
549
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
550
|
+
})
|
|
551
|
+
```
|
|
552
|
+
|
|
553
|
+
<details>
|
|
554
|
+
<summary>Response</summary>
|
|
555
|
+
|
|
556
|
+
```json
|
|
557
|
+
{
|
|
558
|
+
"status": "queued",
|
|
559
|
+
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
560
|
+
"preview_summary_de": "string",
|
|
561
|
+
"short_summary_de": "string",
|
|
562
|
+
"preview_summary_en": "string",
|
|
563
|
+
"short_summary_en": "string"
|
|
564
|
+
}
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
</details>
|
|
568
|
+
|
|
569
|
+
---
|
|
570
|
+
|
|
571
|
+
### `createFileSummaryJob`
|
|
572
|
+
|
|
573
|
+
Create or return the current AI summary job for a file entity.
|
|
574
|
+
|
|
575
|
+
`POST /v1/files/{id}/summary-jobs`
|
|
576
|
+
|
|
577
|
+
```ts
|
|
578
|
+
const { data } = await client.createFileSummaryJob({
|
|
579
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
580
|
+
})
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
---
|
|
584
|
+
|
|
585
|
+
### `getCurrentFileSummaryJob`
|
|
586
|
+
|
|
587
|
+
Get the latest AI summary job for the file entity's current source.
|
|
588
|
+
|
|
589
|
+
`GET /v1/files/{id}/summary-jobs/current`
|
|
590
|
+
|
|
591
|
+
```ts
|
|
592
|
+
const { data } = await client.getCurrentFileSummaryJob({
|
|
593
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
594
|
+
})
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
<details>
|
|
598
|
+
<summary>Response</summary>
|
|
599
|
+
|
|
600
|
+
```json
|
|
601
|
+
{
|
|
602
|
+
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
603
|
+
"file_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
|
|
604
|
+
"status": "queued",
|
|
605
|
+
"error": "string",
|
|
606
|
+
"created_at": "1970-01-01T00:00:00.000Z",
|
|
607
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
608
|
+
"completed_at": "1970-01-01T00:00:00.000Z"
|
|
609
|
+
}
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
</details>
|
|
613
|
+
|
|
614
|
+
---
|
|
615
|
+
|
|
616
|
+
### `getFileSummaryJob`
|
|
617
|
+
|
|
618
|
+
Get an AI summary job by id.
|
|
619
|
+
|
|
620
|
+
`GET /v1/files/{id}/summary-jobs/{job_id}`
|
|
621
|
+
|
|
622
|
+
```ts
|
|
623
|
+
const { data } = await client.getFileSummaryJob({
|
|
624
|
+
id: '123e4567-e89b-12d3-a456-426614174000',
|
|
625
|
+
job_id: 'example',
|
|
626
|
+
})
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
<details>
|
|
630
|
+
<summary>Response</summary>
|
|
631
|
+
|
|
632
|
+
```json
|
|
633
|
+
{
|
|
634
|
+
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
635
|
+
"file_id": "ef7d985c-2385-44f4-9c71-ae06a52264f8",
|
|
636
|
+
"status": "queued",
|
|
637
|
+
"error": "string",
|
|
638
|
+
"created_at": "1970-01-01T00:00:00.000Z",
|
|
639
|
+
"updated_at": "1970-01-01T00:00:00.000Z",
|
|
640
|
+
"completed_at": "1970-01-01T00:00:00.000Z"
|
|
641
|
+
}
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
</details>
|
|
645
|
+
|
|
646
|
+
---
|
|
647
|
+
|
|
535
648
|
### `generateFileSummary`
|
|
536
649
|
|
|
537
|
-
|
|
650
|
+
Compatibility alias for creating or returning the current AI summary job for a file entity.
|
|
538
651
|
|
|
539
652
|
`POST /v1/files/{id}/summary:generate`
|
|
540
653
|
|
|
@@ -962,11 +1075,11 @@ const { data } = await client.getFilesInCollection({
|
|
|
962
1075
|
"access_control": "private",
|
|
963
1076
|
"public_url": "https://epilot-prod-user-content.s3.eu-central-1.amazonaws.com/123/4d689aeb-1497-4410-a9fe-b36ca9ac4389/document.pdf",
|
|
964
1077
|
"custom_download_url": "https://some-api-url.com/download?file_id=123",
|
|
1078
|
+
"custom_download_url_auth": "token",
|
|
965
1079
|
"preview_summary_de": "string",
|
|
966
1080
|
"short_summary_de": "string",
|
|
967
1081
|
"preview_summary_en": "string",
|
|
968
1082
|
"short_summary_en": "string",
|
|
969
|
-
"summary_status": "processing",
|
|
970
1083
|
"source_url": "https://productengineer-content.s3.eu-west-1.amazonaws.com/product-engineer-checklist.pdf",
|
|
971
1084
|
"s3ref": {},
|
|
972
1085
|
"versions": [
|
|
@@ -1081,11 +1194,11 @@ type FileAttributes = {
|
|
|
1081
1194
|
access_control?: "private" | "public-read"
|
|
1082
1195
|
public_url?: string // url
|
|
1083
1196
|
custom_download_url?: string // uri
|
|
1197
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1084
1198
|
preview_summary_de?: string
|
|
1085
1199
|
short_summary_de?: string
|
|
1086
1200
|
preview_summary_en?: string
|
|
1087
1201
|
short_summary_en?: string
|
|
1088
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1089
1202
|
}
|
|
1090
1203
|
```
|
|
1091
1204
|
|
|
@@ -1095,19 +1208,38 @@ type FileAttributes = {
|
|
|
1095
1208
|
type FileType = "document" | "document_template" | "text" | "image" | "video" | "audio" | "spreadsheet" | "presentation" | "font" | "archive" | "application" | "unknown"
|
|
1096
1209
|
```
|
|
1097
1210
|
|
|
1098
|
-
### `
|
|
1211
|
+
### `FileSummaryJobStatus`
|
|
1099
1212
|
|
|
1100
|
-
Current
|
|
1213
|
+
Current state of a file summary job.
|
|
1101
1214
|
|
|
1102
1215
|
```ts
|
|
1103
|
-
type
|
|
1216
|
+
type FileSummaryJobStatus = "queued" | "waiting_for_extraction" | "processing" | "completed" | "failed" | "unsupported" | "stale"
|
|
1104
1217
|
```
|
|
1105
1218
|
|
|
1106
|
-
### `
|
|
1219
|
+
### `FileSummaryJob`
|
|
1107
1220
|
|
|
1108
1221
|
```ts
|
|
1109
|
-
type
|
|
1110
|
-
|
|
1222
|
+
type FileSummaryJob = {
|
|
1223
|
+
job_id: string // uuid
|
|
1224
|
+
file_id: string | string // uuid
|
|
1225
|
+
status: "queued" | "waiting_for_extraction" | "processing" | "completed" | "failed" | "unsupported" | "stale"
|
|
1226
|
+
error?: string
|
|
1227
|
+
created_at: string // date-time
|
|
1228
|
+
updated_at: string // date-time
|
|
1229
|
+
completed_at?: string // date-time
|
|
1230
|
+
}
|
|
1231
|
+
```
|
|
1232
|
+
|
|
1233
|
+
### `FileSummary`
|
|
1234
|
+
|
|
1235
|
+
```ts
|
|
1236
|
+
type FileSummary = {
|
|
1237
|
+
status?: "queued" | "waiting_for_extraction" | "processing" | "completed" | "failed" | "unsupported" | "stale"
|
|
1238
|
+
job_id?: string // uuid
|
|
1239
|
+
preview_summary_de?: string
|
|
1240
|
+
short_summary_de?: string
|
|
1241
|
+
preview_summary_en?: string
|
|
1242
|
+
short_summary_en?: string
|
|
1111
1243
|
}
|
|
1112
1244
|
```
|
|
1113
1245
|
|
|
@@ -1119,6 +1251,14 @@ Custom external download url used for the file
|
|
|
1119
1251
|
type CustomDownloadUrl = string // uri
|
|
1120
1252
|
```
|
|
1121
1253
|
|
|
1254
|
+
### `CustomDownloadUrlAuth`
|
|
1255
|
+
|
|
1256
|
+
Authorization mode for the custom_download_url. `presigned` (the default) uses an HMAC-signed URL; `token` authorizes the download via the caller's bearer token, matched against the exact stored custom_download_url. In token mode the File API returns the unsigned custom_download_url (no expires_at/s
|
|
1257
|
+
|
|
1258
|
+
```ts
|
|
1259
|
+
type CustomDownloadUrlAuth = "presigned" | "token"
|
|
1260
|
+
```
|
|
1261
|
+
|
|
1122
1262
|
### `FileEntity`
|
|
1123
1263
|
|
|
1124
1264
|
```ts
|
|
@@ -1138,11 +1278,11 @@ type FileEntity = {
|
|
|
1138
1278
|
access_control: "private" | "public-read"
|
|
1139
1279
|
public_url?: string // url
|
|
1140
1280
|
custom_download_url?: string // uri
|
|
1281
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1141
1282
|
preview_summary_de?: string
|
|
1142
1283
|
short_summary_de?: string
|
|
1143
1284
|
preview_summary_en?: string
|
|
1144
1285
|
short_summary_en?: string
|
|
1145
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1146
1286
|
source_url?: string
|
|
1147
1287
|
s3ref?: object
|
|
1148
1288
|
versions: Array<{
|
|
@@ -1203,11 +1343,11 @@ type SaveS3FilePayload = {
|
|
|
1203
1343
|
access_control?: "private" | "public-read"
|
|
1204
1344
|
public_url?: string // url
|
|
1205
1345
|
custom_download_url?: string // uri
|
|
1346
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1206
1347
|
preview_summary_de?: string
|
|
1207
1348
|
short_summary_de?: string
|
|
1208
1349
|
preview_summary_en?: string
|
|
1209
1350
|
short_summary_en?: string
|
|
1210
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1211
1351
|
s3ref?: unknown
|
|
1212
1352
|
}
|
|
1213
1353
|
```
|
|
@@ -1234,11 +1374,11 @@ type SaveFileFromSourceURLPayload = {
|
|
|
1234
1374
|
access_control?: "private" | "public-read"
|
|
1235
1375
|
public_url?: string // url
|
|
1236
1376
|
custom_download_url?: string // uri
|
|
1377
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1237
1378
|
preview_summary_de?: string
|
|
1238
1379
|
short_summary_de?: string
|
|
1239
1380
|
preview_summary_en?: string
|
|
1240
1381
|
short_summary_en?: string
|
|
1241
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1242
1382
|
source_url?: string // uri
|
|
1243
1383
|
}
|
|
1244
1384
|
```
|
|
@@ -1265,11 +1405,11 @@ type SaveCustomFilePayload = {
|
|
|
1265
1405
|
access_control?: "private" | "public-read"
|
|
1266
1406
|
public_url?: string // url
|
|
1267
1407
|
custom_download_url?: string // uri
|
|
1408
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1268
1409
|
preview_summary_de?: string
|
|
1269
1410
|
short_summary_de?: string
|
|
1270
1411
|
preview_summary_en?: string
|
|
1271
1412
|
short_summary_en?: string
|
|
1272
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1273
1413
|
}
|
|
1274
1414
|
```
|
|
1275
1415
|
|
|
@@ -1295,11 +1435,11 @@ type SaveFilePayload = {
|
|
|
1295
1435
|
access_control?: "private" | "public-read"
|
|
1296
1436
|
public_url?: string // url
|
|
1297
1437
|
custom_download_url?: string // uri
|
|
1438
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1298
1439
|
preview_summary_de?: string
|
|
1299
1440
|
short_summary_de?: string
|
|
1300
1441
|
preview_summary_en?: string
|
|
1301
1442
|
short_summary_en?: string
|
|
1302
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1303
1443
|
s3ref?: unknown
|
|
1304
1444
|
} | {
|
|
1305
1445
|
_id?: object
|
|
@@ -1320,11 +1460,11 @@ type SaveFilePayload = {
|
|
|
1320
1460
|
access_control?: "private" | "public-read"
|
|
1321
1461
|
public_url?: string // url
|
|
1322
1462
|
custom_download_url?: string // uri
|
|
1463
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1323
1464
|
preview_summary_de?: string
|
|
1324
1465
|
short_summary_de?: string
|
|
1325
1466
|
preview_summary_en?: string
|
|
1326
1467
|
short_summary_en?: string
|
|
1327
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1328
1468
|
source_url?: string // uri
|
|
1329
1469
|
} | {
|
|
1330
1470
|
_id?: object
|
|
@@ -1345,11 +1485,11 @@ type SaveFilePayload = {
|
|
|
1345
1485
|
access_control?: "private" | "public-read"
|
|
1346
1486
|
public_url?: string // url
|
|
1347
1487
|
custom_download_url?: string // uri
|
|
1488
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1348
1489
|
preview_summary_de?: string
|
|
1349
1490
|
short_summary_de?: string
|
|
1350
1491
|
preview_summary_en?: string
|
|
1351
1492
|
short_summary_en?: string
|
|
1352
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1353
1493
|
}
|
|
1354
1494
|
```
|
|
1355
1495
|
|
|
@@ -1375,11 +1515,11 @@ type SaveFilePayloadV2 = {
|
|
|
1375
1515
|
access_control?: "private" | "public-read"
|
|
1376
1516
|
public_url?: string // url
|
|
1377
1517
|
custom_download_url?: string // uri
|
|
1518
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1378
1519
|
preview_summary_de?: string
|
|
1379
1520
|
short_summary_de?: string
|
|
1380
1521
|
preview_summary_en?: string
|
|
1381
1522
|
short_summary_en?: string
|
|
1382
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1383
1523
|
s3ref?: unknown
|
|
1384
1524
|
} | {
|
|
1385
1525
|
_id?: object
|
|
@@ -1400,11 +1540,11 @@ type SaveFilePayloadV2 = {
|
|
|
1400
1540
|
access_control?: "private" | "public-read"
|
|
1401
1541
|
public_url?: string // url
|
|
1402
1542
|
custom_download_url?: string // uri
|
|
1543
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1403
1544
|
preview_summary_de?: string
|
|
1404
1545
|
short_summary_de?: string
|
|
1405
1546
|
preview_summary_en?: string
|
|
1406
1547
|
short_summary_en?: string
|
|
1407
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1408
1548
|
source_url?: string // uri
|
|
1409
1549
|
} | {
|
|
1410
1550
|
_id?: object
|
|
@@ -1425,11 +1565,11 @@ type SaveFilePayloadV2 = {
|
|
|
1425
1565
|
access_control?: "private" | "public-read"
|
|
1426
1566
|
public_url?: string // url
|
|
1427
1567
|
custom_download_url?: string // uri
|
|
1568
|
+
custom_download_url_auth?: "presigned" | "token"
|
|
1428
1569
|
preview_summary_de?: string
|
|
1429
1570
|
short_summary_de?: string
|
|
1430
1571
|
preview_summary_en?: string
|
|
1431
1572
|
short_summary_en?: string
|
|
1432
|
-
summary_status?: "processing" | "completed" | "failed" | "unsupported"
|
|
1433
1573
|
}
|
|
1434
1574
|
```
|
|
1435
1575
|
|