@epilot/sdk 2.20.25 → 2.20.27
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/access-token-runtime.json +1 -0
- package/definitions/access-token.json +1025 -0
- package/definitions/address-runtime.json +1 -0
- package/definitions/address-suggestions-runtime.json +1 -0
- package/definitions/address-suggestions.json +582 -0
- package/definitions/address.json +578 -0
- package/definitions/ai-agents-runtime.json +1 -0
- package/definitions/ai-agents.json +2863 -0
- package/definitions/app-runtime.json +1 -0
- package/definitions/app.json +5994 -0
- package/definitions/audit-logs-runtime.json +1 -0
- package/definitions/audit-logs.json +305 -0
- package/definitions/automation-runtime.json +1 -0
- package/definitions/automation.json +5979 -0
- package/definitions/billing-runtime.json +1 -0
- package/definitions/billing.json +2394 -0
- package/definitions/blueprint-manifest-runtime.json +1 -0
- package/definitions/blueprint-manifest.json +7817 -0
- package/definitions/calendar-runtime.json +1 -0
- package/definitions/calendar.json +2904 -0
- package/definitions/chat-runtime.json +1 -0
- package/definitions/chat.json +2909 -0
- package/definitions/configuration-hub-runtime.json +1 -0
- package/definitions/configuration-hub.json +2250 -0
- package/definitions/consent-runtime.json +1 -0
- package/definitions/consent.json +344 -0
- package/definitions/customer-portal-runtime.json +1 -0
- package/definitions/customer-portal.json +21181 -0
- package/definitions/dashboard-runtime.json +1 -0
- package/definitions/dashboard.json +1355 -0
- package/definitions/data-governance-runtime.json +1 -0
- package/definitions/data-governance.json +1126 -0
- package/definitions/deduplication-runtime.json +1 -0
- package/definitions/deduplication.json +782 -0
- package/definitions/design-runtime.json +1 -0
- package/definitions/design.json +1827 -0
- package/definitions/document-runtime.json +1 -0
- package/definitions/document.json +972 -0
- package/definitions/email-settings-runtime.json +1 -0
- package/definitions/email-settings.json +3736 -0
- package/definitions/email-template-runtime.json +1 -0
- package/definitions/email-template.json +1441 -0
- package/definitions/entity-mapping-runtime.json +1 -0
- package/definitions/entity-mapping.json +1852 -0
- package/definitions/entity-runtime.json +1 -0
- package/definitions/entity.json +11546 -0
- package/definitions/environments-runtime.json +1 -0
- package/definitions/environments.json +988 -0
- package/definitions/erp-integration-runtime.json +1 -0
- package/definitions/erp-integration.json +7936 -0
- package/definitions/event-catalog-runtime.json +1 -0
- package/definitions/event-catalog.json +2014 -0
- package/definitions/file-runtime.json +1 -0
- package/definitions/file.json +4298 -0
- package/definitions/iban-runtime.json +1 -0
- package/definitions/iban.json +132 -0
- package/definitions/integration-toolkit-runtime.json +1 -0
- package/definitions/integration-toolkit.json +13106 -0
- package/definitions/journey-runtime.json +1 -0
- package/definitions/journey.json +3663 -0
- package/definitions/kanban-runtime.json +1 -0
- package/definitions/kanban.json +1506 -0
- package/definitions/message-runtime.json +1 -0
- package/definitions/message.json +3667 -0
- package/definitions/metering-runtime.json +1 -0
- package/definitions/metering.json +3132 -0
- package/definitions/notes-runtime.json +1 -0
- package/definitions/notes.json +1698 -0
- package/definitions/notification-runtime.json +1 -0
- package/definitions/notification.json +1439 -0
- package/definitions/organization-runtime.json +1 -0
- package/definitions/organization.json +1192 -0
- package/definitions/partner-directory-runtime.json +1 -0
- package/definitions/partner-directory.json +2284 -0
- package/definitions/permissions-runtime.json +1 -0
- package/definitions/permissions.json +1598 -0
- package/definitions/pricing-runtime.json +1 -0
- package/definitions/pricing-tier-runtime.json +1 -0
- package/definitions/pricing-tier.json +105 -0
- package/definitions/pricing.json +14369 -0
- package/definitions/purpose-runtime.json +1 -0
- package/definitions/purpose.json +524 -0
- package/definitions/query-runtime.json +1 -0
- package/definitions/query.json +3178 -0
- package/definitions/sandbox-runtime.json +1 -0
- package/definitions/sandbox.json +453 -0
- package/definitions/sharing-runtime.json +1 -0
- package/definitions/sharing.json +956 -0
- package/definitions/snapshot-runtime.json +1 -0
- package/definitions/snapshot.json +1103 -0
- package/definitions/submission-runtime.json +1 -0
- package/definitions/submission.json +313 -0
- package/definitions/targeting-runtime.json +1 -0
- package/definitions/targeting.json +2285 -0
- package/definitions/template-variables-runtime.json +1 -0
- package/definitions/template-variables.json +1416 -0
- package/definitions/user-runtime.json +1 -0
- package/definitions/user.json +3051 -0
- package/definitions/validation-rules-runtime.json +1 -0
- package/definitions/validation-rules.json +2642 -0
- package/definitions/webhooks-runtime.json +1 -0
- package/definitions/webhooks.json +1875 -0
- package/definitions/workflow-definition-runtime.json +1 -0
- package/definitions/workflow-definition.json +3592 -0
- package/definitions/workflow-runtime.json +1 -0
- package/definitions/workflow.json +4669 -0
- 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 +6 -6
- package/dist/apis/ai-agents.js +1 -1
- 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/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.d.cts +2 -2
- package/dist/apis/configuration-hub.d.ts +2 -2
- 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 +6 -6
- package/dist/apis/customer-portal.js +1 -1
- 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 +8 -8
- package/dist/apis/document.d.cts +2 -2
- package/dist/apis/document.d.ts +2 -2
- package/dist/apis/document.js +2 -2
- 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 +6 -6
- package/dist/apis/file.js +1 -1
- 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.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- 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 +6 -6
- package/dist/apis/targeting.js +1 -1
- 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 +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-M56QQHVA.cjs → chunk-E2EHXQRP.cjs} +1 -1
- package/dist/{chunk-75EI2Q64.js → chunk-LR7LGGRU.js} +1 -1
- package/dist/{chunk-PZ4TXAF5.cjs → chunk-UM53DB6T.cjs} +3 -3
- package/dist/{chunk-X742W7MI.js → chunk-W5PMKQO7.js} +3 -3
- package/dist/{configuration-hub.d-Dv41yC3b.d.cts → configuration-hub.d-DhPrjJkE.d.cts} +142 -142
- package/dist/{configuration-hub.d-Dv41yC3b.d.ts → configuration-hub.d-DhPrjJkE.d.ts} +142 -142
- package/dist/document-UGT6DAXC.cjs +7 -0
- package/dist/document-UR5WWZEA.js +7 -0
- package/dist/{document-runtime-GFEBGNMS.js → document-runtime-LFOBMSE4.js} +1 -1
- package/dist/{document-runtime-RG3F4R6O.cjs → document-runtime-QM4H7DLT.cjs} +2 -2
- package/dist/{document.d-DN37pjdx.d.cts → document.d-B0zC-R8x.d.cts} +235 -7
- package/dist/{document.d-DN37pjdx.d.ts → document.d-B0zC-R8x.d.ts} +235 -7
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/journey-IVIBYU5V.js +7 -0
- package/dist/journey-ZN46FFPM.cjs +7 -0
- package/dist/{journey.d-DvwLALwc.d.cts → journey.d-Dj93v-Lw.d.cts} +54 -5
- package/dist/{journey.d-DvwLALwc.d.ts → journey.d-Dj93v-Lw.d.ts} +54 -5
- package/dist/js-yaml-DLCVPJ7G.js +0 -0
- package/docs/document.md +145 -6
- package/docs/journey.md +47 -2
- package/package.json +12 -11
- package/dist/document-CY2A2OE7.js +0 -7
- package/dist/document-RYQ7MF6U.cjs +0 -7
- package/dist/journey-LIJDXSEC.js +0 -7
- package/dist/journey-LNA7JFP3.cjs +0 -7
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
2
|
|
|
3
3
|
/* Auto-copied from document-client */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
declare namespace Components {
|
|
@@ -303,9 +301,10 @@ declare namespace Components {
|
|
|
303
301
|
* - DOC_TO_PDF_CONVERT_ERROR - Error while converting the document to PDF. Normally related with a ConvertAPI failure.
|
|
304
302
|
* - INTERNAL_ERROR - Internal error. Please contact support.
|
|
305
303
|
* - INVALID_TEMPLATE_FORMAT - Invalid template format (only .docx is supported). This can happen due to a bad word file or an unsupported file extension.
|
|
304
|
+
* - TEMPLATE_NOT_FOUND - Template file was not found in S3. This indicates the template was likely deleted.
|
|
306
305
|
*
|
|
307
306
|
*/
|
|
308
|
-
export type ErrorCode = "PARSE_ERROR" | "DOC_TO_PDF_CONVERT_ERROR" | "INTERNAL_ERROR" | "INVALID_TEMPLATE_FORMAT";
|
|
307
|
+
export type ErrorCode = "PARSE_ERROR" | "DOC_TO_PDF_CONVERT_ERROR" | "INTERNAL_ERROR" | "INVALID_TEMPLATE_FORMAT" | "TEMPLATE_NOT_FOUND";
|
|
309
308
|
export interface ErrorOutput {
|
|
310
309
|
/**
|
|
311
310
|
* Error message
|
|
@@ -317,6 +316,7 @@ declare namespace Components {
|
|
|
317
316
|
* - DOC_TO_PDF_CONVERT_ERROR - Error while converting the document to PDF. Normally related with a ConvertAPI failure.
|
|
318
317
|
* - INTERNAL_ERROR - Internal error. Please contact support.
|
|
319
318
|
* - INVALID_TEMPLATE_FORMAT - Invalid template format (only .docx is supported). This can happen due to a bad word file or an unsupported file extension.
|
|
319
|
+
* - TEMPLATE_NOT_FOUND - Template file was not found in S3. This indicates the template was likely deleted.
|
|
320
320
|
*
|
|
321
321
|
*/
|
|
322
322
|
ErrorCode;
|
|
@@ -395,6 +395,75 @@ declare namespace Components {
|
|
|
395
395
|
*/
|
|
396
396
|
key: string;
|
|
397
397
|
}
|
|
398
|
+
/**
|
|
399
|
+
* A single template syntax problem, and the repair proposed for it
|
|
400
|
+
*/
|
|
401
|
+
export interface TemplateIssue {
|
|
402
|
+
/**
|
|
403
|
+
* Problem kind. Reuses docxtemplater's error vocabulary where one exists
|
|
404
|
+
* (`unopened_tag`, `unclosed_tag`, `duplicate_open_tag`, `duplicate_close_tag`), plus
|
|
405
|
+
* `malformed_tag` for single-brace placeholders and `typographic_characters` for
|
|
406
|
+
* editor-substituted characters inside an otherwise valid tag.
|
|
407
|
+
*
|
|
408
|
+
* example:
|
|
409
|
+
* unopened_tag
|
|
410
|
+
*/
|
|
411
|
+
id?: string;
|
|
412
|
+
/**
|
|
413
|
+
* Zip part the problem was found in
|
|
414
|
+
* example:
|
|
415
|
+
* xl/sharedStrings.xml
|
|
416
|
+
*/
|
|
417
|
+
file?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Where the user can find it — a cell reference for spreadsheets, a part label
|
|
420
|
+
* (`Document body`, `Header 1`, `Slide 3`) otherwise.
|
|
421
|
+
*
|
|
422
|
+
* example:
|
|
423
|
+
* Tabelle1!N4
|
|
424
|
+
*/
|
|
425
|
+
location?: string;
|
|
426
|
+
/**
|
|
427
|
+
* The offending text with surrounding context
|
|
428
|
+
* example:
|
|
429
|
+
* …Datum: {system.date}} Unterschrift…
|
|
430
|
+
*/
|
|
431
|
+
context?: string;
|
|
432
|
+
/**
|
|
433
|
+
* Why the template parser rejects it
|
|
434
|
+
* example:
|
|
435
|
+
* The tag is missing an opening brace.
|
|
436
|
+
*/
|
|
437
|
+
explanation?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Whether the proposed repair was applied to the fixed copy
|
|
440
|
+
* example:
|
|
441
|
+
* true
|
|
442
|
+
*/
|
|
443
|
+
fixable?: boolean;
|
|
444
|
+
/**
|
|
445
|
+
* How sure we are that the repair is what the author meant
|
|
446
|
+
*/
|
|
447
|
+
confidence?: "high" | "medium" | "low";
|
|
448
|
+
/**
|
|
449
|
+
* The repair rule that produced `after`
|
|
450
|
+
* example:
|
|
451
|
+
* balance_opening_delimiter
|
|
452
|
+
*/
|
|
453
|
+
rule?: string;
|
|
454
|
+
/**
|
|
455
|
+
* The text as it is in the template
|
|
456
|
+
* example:
|
|
457
|
+
* {system.date}}
|
|
458
|
+
*/
|
|
459
|
+
before?: string;
|
|
460
|
+
/**
|
|
461
|
+
* The text as it would be in the fixed copy
|
|
462
|
+
* example:
|
|
463
|
+
* {{system.date}}
|
|
464
|
+
*/
|
|
465
|
+
after?: string;
|
|
466
|
+
}
|
|
398
467
|
/**
|
|
399
468
|
* Template Settings for document generation
|
|
400
469
|
*/
|
|
@@ -466,10 +535,81 @@ declare namespace Components {
|
|
|
466
535
|
/**
|
|
467
536
|
* The file entity id, used when persisting a new template version with updated settings
|
|
468
537
|
* example:
|
|
469
|
-
*
|
|
538
|
+
* 123e4567-e89b-12d3-a456-426614174000
|
|
470
539
|
*/
|
|
471
540
|
file_entity_id?: string; // uuid
|
|
472
541
|
}
|
|
542
|
+
export interface TemplateValidationRequest {
|
|
543
|
+
/**
|
|
544
|
+
* Input template document
|
|
545
|
+
*/
|
|
546
|
+
template_document: {
|
|
547
|
+
/**
|
|
548
|
+
* Document original filename, used to name the fixed copy
|
|
549
|
+
* example:
|
|
550
|
+
* Umzugsmeldung.xlsx
|
|
551
|
+
*/
|
|
552
|
+
filename?: string;
|
|
553
|
+
s3ref: S3Reference;
|
|
554
|
+
};
|
|
555
|
+
/**
|
|
556
|
+
* Attempt to produce a hotfixed copy of the template. When false, the template is only
|
|
557
|
+
* inspected and no file is written.
|
|
558
|
+
*
|
|
559
|
+
*/
|
|
560
|
+
fix?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* How far the hotfix may go:
|
|
563
|
+
* - safe - only repairs where the author's intent is unambiguous from the syntax
|
|
564
|
+
* (unbalanced or duplicated braces, editor-substituted characters inside a tag).
|
|
565
|
+
* - aggressive - additionally promotes single-brace placeholders such as `{contact.name}`
|
|
566
|
+
* to `{{contact.name}}`. These are common in customer templates but indistinguishable
|
|
567
|
+
* from prose that uses braces, so they are reported with `confidence: low`.
|
|
568
|
+
*
|
|
569
|
+
*/
|
|
570
|
+
fix_level?: "safe" | "aggressive";
|
|
571
|
+
}
|
|
572
|
+
export interface TemplateValidationResponse {
|
|
573
|
+
/**
|
|
574
|
+
* Whether the template compiled cleanly before any repair was attempted
|
|
575
|
+
* example:
|
|
576
|
+
* false
|
|
577
|
+
*/
|
|
578
|
+
valid?: boolean;
|
|
579
|
+
/**
|
|
580
|
+
* Whether a corrected copy of the template could be produced
|
|
581
|
+
* example:
|
|
582
|
+
* true
|
|
583
|
+
*/
|
|
584
|
+
fixed?: boolean;
|
|
585
|
+
/**
|
|
586
|
+
* Everything found in the template, whether or not it could be repaired
|
|
587
|
+
*/
|
|
588
|
+
issues?: /* A single template syntax problem, and the repair proposed for it */ TemplateIssue[];
|
|
589
|
+
/**
|
|
590
|
+
* Parser errors that remain after the hotfix (or the original errors when nothing was
|
|
591
|
+
* fixed). Empty when the template is valid.
|
|
592
|
+
*
|
|
593
|
+
*/
|
|
594
|
+
unresolved_errors?: /* DocxTemplater error detail */ DocxTemplaterErrorDetail[];
|
|
595
|
+
/**
|
|
596
|
+
* The corrected copy, for the user to review and accept. Absent when no repair was
|
|
597
|
+
* applied. The original template is left untouched.
|
|
598
|
+
*
|
|
599
|
+
*/
|
|
600
|
+
fixed_document?: {
|
|
601
|
+
s3ref?: S3Reference;
|
|
602
|
+
/**
|
|
603
|
+
* example:
|
|
604
|
+
* Umzugsmeldung (fixed).xlsx
|
|
605
|
+
*/
|
|
606
|
+
filename?: string;
|
|
607
|
+
/**
|
|
608
|
+
* Short-lived download link for the corrected copy
|
|
609
|
+
*/
|
|
610
|
+
preview_url?: string; // uri
|
|
611
|
+
};
|
|
612
|
+
}
|
|
473
613
|
}
|
|
474
614
|
}
|
|
475
615
|
declare namespace Paths {
|
|
@@ -482,13 +622,33 @@ declare namespace Paths {
|
|
|
482
622
|
namespace GenerateDocumentV2 {
|
|
483
623
|
namespace Parameters {
|
|
484
624
|
export type JobId = string;
|
|
625
|
+
/**
|
|
626
|
+
* - partial_generation: Generates a partial document for user validation before final generation
|
|
627
|
+
* - full_generation: Completes the entire document generation process in one step
|
|
628
|
+
*
|
|
629
|
+
*/
|
|
485
630
|
export type Mode = "partial_generation" | "full_generation";
|
|
631
|
+
/**
|
|
632
|
+
* - open: Preview URL opens the file directly in browser
|
|
633
|
+
* - download: Preview URL triggers a download of the file
|
|
634
|
+
*
|
|
635
|
+
*/
|
|
486
636
|
export type PreviewMode = "open" | "download";
|
|
487
637
|
}
|
|
488
638
|
export interface QueryParameters {
|
|
489
639
|
job_id?: Parameters.JobId;
|
|
490
|
-
mode?:
|
|
491
|
-
|
|
640
|
+
mode?: /**
|
|
641
|
+
* - partial_generation: Generates a partial document for user validation before final generation
|
|
642
|
+
* - full_generation: Completes the entire document generation process in one step
|
|
643
|
+
*
|
|
644
|
+
*/
|
|
645
|
+
Parameters.Mode;
|
|
646
|
+
preview_mode?: /**
|
|
647
|
+
* - open: Preview URL opens the file directly in browser
|
|
648
|
+
* - download: Preview URL triggers a download of the file
|
|
649
|
+
*
|
|
650
|
+
*/
|
|
651
|
+
Parameters.PreviewMode;
|
|
492
652
|
}
|
|
493
653
|
export type RequestBody = Components.Schemas.DocumentGenerationV2Request;
|
|
494
654
|
namespace Responses {
|
|
@@ -504,6 +664,15 @@ declare namespace Paths {
|
|
|
504
664
|
export type $415 = Components.Schemas.ErrorOutput;
|
|
505
665
|
}
|
|
506
666
|
}
|
|
667
|
+
namespace ValidateTemplate {
|
|
668
|
+
export type RequestBody = Components.Schemas.TemplateValidationRequest;
|
|
669
|
+
namespace Responses {
|
|
670
|
+
export type $200 = Components.Schemas.TemplateValidationResponse;
|
|
671
|
+
export type $403 = Components.Schemas.ErrorOutput;
|
|
672
|
+
export type $413 = Components.Schemas.ErrorOutput;
|
|
673
|
+
export type $415 = Components.Schemas.ErrorOutput;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
507
676
|
}
|
|
508
677
|
|
|
509
678
|
|
|
@@ -561,6 +730,33 @@ interface OperationMethods {
|
|
|
561
730
|
data?: Paths.ConvertDocument.RequestBody,
|
|
562
731
|
config?: AxiosRequestConfig
|
|
563
732
|
): OperationResponse<Paths.ConvertDocument.Responses.$200>
|
|
733
|
+
/**
|
|
734
|
+
* validateTemplate - validateTemplate
|
|
735
|
+
*
|
|
736
|
+
* Validates a document template's variable syntax and, optionally, proposes a hotfixed copy of it.
|
|
737
|
+
*
|
|
738
|
+
* The endpoint compiles the template with docxtemplater's core parser (the xlsx module for
|
|
739
|
+
* spreadsheets), so a delimiter or tag error reported here is one generation would fail on.
|
|
740
|
+
* Failures specific to the image or HTML modules are not covered. Every problem it can repair
|
|
741
|
+
* unambiguously — a missing brace, an extra brace, a smart quote or a non-breaking space that
|
|
742
|
+
* Word substituted inside a tag — is applied to a **copy** of the template, which is uploaded
|
|
743
|
+
* and returned as `fixed_document`.
|
|
744
|
+
*
|
|
745
|
+
* The original template is never modified. Accepting the fix is an explicit, separate step:
|
|
746
|
+
* the caller shows the user `issues` (each with its `before`/`after`), lets them download
|
|
747
|
+
* `fixed_document.preview_url`, and only then replaces the template.
|
|
748
|
+
*
|
|
749
|
+
* Supported input document types:
|
|
750
|
+
* - .docx, .docm, .dotx
|
|
751
|
+
* - .xlsx, .xlsm
|
|
752
|
+
* - .pptx
|
|
753
|
+
*
|
|
754
|
+
*/
|
|
755
|
+
'validateTemplate'(
|
|
756
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
757
|
+
data?: Paths.ValidateTemplate.RequestBody,
|
|
758
|
+
config?: AxiosRequestConfig
|
|
759
|
+
): OperationResponse<Paths.ValidateTemplate.Responses.$200>
|
|
564
760
|
}
|
|
565
761
|
|
|
566
762
|
interface PathsDictionary {
|
|
@@ -623,6 +819,35 @@ interface PathsDictionary {
|
|
|
623
819
|
config?: AxiosRequestConfig
|
|
624
820
|
): OperationResponse<Paths.ConvertDocument.Responses.$200>
|
|
625
821
|
}
|
|
822
|
+
['/v2/templates:validate']: {
|
|
823
|
+
/**
|
|
824
|
+
* validateTemplate - validateTemplate
|
|
825
|
+
*
|
|
826
|
+
* Validates a document template's variable syntax and, optionally, proposes a hotfixed copy of it.
|
|
827
|
+
*
|
|
828
|
+
* The endpoint compiles the template with docxtemplater's core parser (the xlsx module for
|
|
829
|
+
* spreadsheets), so a delimiter or tag error reported here is one generation would fail on.
|
|
830
|
+
* Failures specific to the image or HTML modules are not covered. Every problem it can repair
|
|
831
|
+
* unambiguously — a missing brace, an extra brace, a smart quote or a non-breaking space that
|
|
832
|
+
* Word substituted inside a tag — is applied to a **copy** of the template, which is uploaded
|
|
833
|
+
* and returned as `fixed_document`.
|
|
834
|
+
*
|
|
835
|
+
* The original template is never modified. Accepting the fix is an explicit, separate step:
|
|
836
|
+
* the caller shows the user `issues` (each with its `before`/`after`), lets them download
|
|
837
|
+
* `fixed_document.preview_url`, and only then replaces the template.
|
|
838
|
+
*
|
|
839
|
+
* Supported input document types:
|
|
840
|
+
* - .docx, .docm, .dotx
|
|
841
|
+
* - .xlsx, .xlsm
|
|
842
|
+
* - .pptx
|
|
843
|
+
*
|
|
844
|
+
*/
|
|
845
|
+
'post'(
|
|
846
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
847
|
+
data?: Paths.ValidateTemplate.RequestBody,
|
|
848
|
+
config?: AxiosRequestConfig
|
|
849
|
+
): OperationResponse<Paths.ValidateTemplate.Responses.$200>
|
|
850
|
+
}
|
|
626
851
|
}
|
|
627
852
|
|
|
628
853
|
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
@@ -643,6 +868,9 @@ type InternalErrorDetails = Components.Schemas.InternalErrorDetails;
|
|
|
643
868
|
type InvalidCustomVariableErrorDetail = Components.Schemas.InvalidCustomVariableErrorDetail;
|
|
644
869
|
type InvalidCustomVariableErrorDetails = Components.Schemas.InvalidCustomVariableErrorDetails;
|
|
645
870
|
type S3Reference = Components.Schemas.S3Reference;
|
|
871
|
+
type TemplateIssue = Components.Schemas.TemplateIssue;
|
|
646
872
|
type TemplateSettings = Components.Schemas.TemplateSettings;
|
|
873
|
+
type TemplateValidationRequest = Components.Schemas.TemplateValidationRequest;
|
|
874
|
+
type TemplateValidationResponse = Components.Schemas.TemplateValidationResponse;
|
|
647
875
|
|
|
648
|
-
export { type Client as C, type DocumentGenerationV2Request as D, type ErrorCode as E, type InternalErrorDetail as I, type OperationMethods as O, Paths as P, type S3Reference as S, type
|
|
876
|
+
export { type Client as C, type DocumentGenerationV2Request as D, type ErrorCode as E, type InternalErrorDetail as I, type OperationMethods as O, Paths as P, type S3Reference as S, type TemplateIssue as T, Components as a, type PathsDictionary as b, type ConvertDocumentRequest as c, type ConvertDocumentResponse as d, type DocumentGenerationV2Response as e, type DocumentMetaRequest as f, type DocumentMetaResponse as g, type DocxTemplaterErrorDetail as h, type DocxTemplaterErrorDetails as i, type ErrorOutput as j, type InternalErrorDetails as k, type InvalidCustomVariableErrorDetail as l, type InvalidCustomVariableErrorDetails as m, type TemplateSettings as n, type TemplateValidationRequest as o, type TemplateValidationResponse as p };
|
package/dist/index.cjs
CHANGED
|
@@ -96,7 +96,7 @@ var _chunkBEJ5NIRCcjs = require('./chunk-BEJ5NIRC.cjs');
|
|
|
96
96
|
var _chunk7P7O46NWcjs = require('./chunk-7P7O46NW.cjs');
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
99
|
+
var _chunkE2EHXQRPcjs = require('./chunk-E2EHXQRP.cjs');
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
var _chunkAWJHA3GGcjs = require('./chunk-AWJHA3GG.cjs');
|
|
@@ -161,7 +161,7 @@ var _chunkWOUASZJWcjs = require('./chunk-WOUASZJW.cjs');
|
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
164
|
-
var
|
|
164
|
+
var _chunkUM53DB6Tcjs = require('./chunk-UM53DB6T.cjs');
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
@@ -228,7 +228,7 @@ var resolveClient = (params) => {
|
|
|
228
228
|
}
|
|
229
229
|
if (!entry.instance) {
|
|
230
230
|
const definition = entry.loader();
|
|
231
|
-
entry.instance =
|
|
231
|
+
entry.instance = _chunkUM53DB6Tcjs.createApiClient.call(void 0, {
|
|
232
232
|
definition,
|
|
233
233
|
token: state.token,
|
|
234
234
|
headers: state.globalHeaders,
|
|
@@ -261,7 +261,7 @@ var resetAllClients = (registry) => {
|
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
// src/apis/_registry.ts
|
|
264
|
-
var expandDef = (mod) =>
|
|
264
|
+
var expandDef = (mod) => _chunkUM53DB6Tcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
265
265
|
var registerBuiltinApis = (registry) => {
|
|
266
266
|
registerApi({
|
|
267
267
|
registry,
|
|
@@ -356,7 +356,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
356
356
|
registerApi({
|
|
357
357
|
registry,
|
|
358
358
|
name: "document",
|
|
359
|
-
loader: () => expandDef(
|
|
359
|
+
loader: () => expandDef(_chunkE2EHXQRPcjs.require_document_runtime.call(void 0, ))
|
|
360
360
|
});
|
|
361
361
|
registerApi({
|
|
362
362
|
registry,
|
|
@@ -609,9 +609,9 @@ var createSDK = () => {
|
|
|
609
609
|
const available = [...registry.keys()].join(", ");
|
|
610
610
|
throw new Error(`Unknown API: "${name}". Available: ${available}`);
|
|
611
611
|
}
|
|
612
|
-
return
|
|
612
|
+
return _chunkUM53DB6Tcjs.createApiHandle.call(void 0, {
|
|
613
613
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
614
|
-
createClient: () =>
|
|
614
|
+
createClient: () => _chunkUM53DB6Tcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
|
|
615
615
|
apiName: name
|
|
616
616
|
});
|
|
617
617
|
};
|
|
@@ -659,9 +659,9 @@ var createSDK = () => {
|
|
|
659
659
|
return interceptorUse;
|
|
660
660
|
}
|
|
661
661
|
case "help":
|
|
662
|
-
return (apiName) =>
|
|
662
|
+
return (apiName) => _chunkUM53DB6Tcjs.help.call(void 0, apiName);
|
|
663
663
|
case "openapi":
|
|
664
|
-
return (apiName) =>
|
|
664
|
+
return (apiName) => _chunkUM53DB6Tcjs.openapi.call(void 0, apiName);
|
|
665
665
|
case "then":
|
|
666
666
|
case "catch":
|
|
667
667
|
case "finally":
|
|
@@ -691,4 +691,4 @@ var epilot = createSDK();
|
|
|
691
691
|
|
|
692
692
|
|
|
693
693
|
|
|
694
|
-
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize =
|
|
694
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkUM53DB6Tcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkUM53DB6Tcjs.help; exports.openapi = _chunkUM53DB6Tcjs.openapi;
|
package/dist/index.d.cts
CHANGED
|
@@ -14,14 +14,14 @@ import { C as Client$7 } from './billing.d-DA3sViEF.cjs';
|
|
|
14
14
|
import { C as Client$8 } from './blueprint-manifest.d-B8YKYzSJ.cjs';
|
|
15
15
|
import { C as Client$9 } from './calendar.d-mk-ltGpk.cjs';
|
|
16
16
|
import { C as Client$a } from './chat.d-CQ5eRtNU.cjs';
|
|
17
|
-
import { C as Client$b } from './configuration-hub.d-
|
|
17
|
+
import { C as Client$b } from './configuration-hub.d-DhPrjJkE.cjs';
|
|
18
18
|
import { C as Client$c } from './consent.d-C2PROHhX.cjs';
|
|
19
19
|
import { C as Client$d } from './customer-portal.d-DF4g7c3i.cjs';
|
|
20
20
|
import { C as Client$e } from './dashboard.d-BSevFHjf.cjs';
|
|
21
21
|
import { C as Client$f } from './data-governance.d-BbZ466j5.cjs';
|
|
22
22
|
import { C as Client$g } from './deduplication.d-Cueh8bDD.cjs';
|
|
23
23
|
import { C as Client$h } from './design.d-CYHbiaq_.cjs';
|
|
24
|
-
import { C as Client$i } from './document.d-
|
|
24
|
+
import { C as Client$i } from './document.d-B0zC-R8x.cjs';
|
|
25
25
|
import { C as Client$j } from './email-settings.d-DViLYaOl.cjs';
|
|
26
26
|
import { C as Client$k } from './email-template.d-gtQkdaXM.cjs';
|
|
27
27
|
import { C as Client$l } from './entity.d-GfKqzFGA.cjs';
|
|
@@ -31,7 +31,7 @@ import { C as Client$o } from './event-catalog.d-CCE1qmBN.cjs';
|
|
|
31
31
|
import { C as Client$p } from './file.d-DELNV63w.cjs';
|
|
32
32
|
import { C as Client$q } from './iban.d-BwdiGbxi.cjs';
|
|
33
33
|
import { C as Client$r } from './integration-toolkit.d--hon4GPp.cjs';
|
|
34
|
-
import { C as Client$s } from './journey.d-
|
|
34
|
+
import { C as Client$s } from './journey.d-Dj93v-Lw.cjs';
|
|
35
35
|
import { C as Client$t } from './kanban.d-BHnSRCYW.cjs';
|
|
36
36
|
import { C as Client$u } from './message.d-DwnqO-Us.cjs';
|
|
37
37
|
import { C as Client$v } from './metering.d-DomHYl06.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -14,14 +14,14 @@ import { C as Client$7 } from './billing.d-DA3sViEF.js';
|
|
|
14
14
|
import { C as Client$8 } from './blueprint-manifest.d-B8YKYzSJ.js';
|
|
15
15
|
import { C as Client$9 } from './calendar.d-mk-ltGpk.js';
|
|
16
16
|
import { C as Client$a } from './chat.d-CQ5eRtNU.js';
|
|
17
|
-
import { C as Client$b } from './configuration-hub.d-
|
|
17
|
+
import { C as Client$b } from './configuration-hub.d-DhPrjJkE.js';
|
|
18
18
|
import { C as Client$c } from './consent.d-C2PROHhX.js';
|
|
19
19
|
import { C as Client$d } from './customer-portal.d-DF4g7c3i.js';
|
|
20
20
|
import { C as Client$e } from './dashboard.d-BSevFHjf.js';
|
|
21
21
|
import { C as Client$f } from './data-governance.d-BbZ466j5.js';
|
|
22
22
|
import { C as Client$g } from './deduplication.d-Cueh8bDD.js';
|
|
23
23
|
import { C as Client$h } from './design.d-CYHbiaq_.js';
|
|
24
|
-
import { C as Client$i } from './document.d-
|
|
24
|
+
import { C as Client$i } from './document.d-B0zC-R8x.js';
|
|
25
25
|
import { C as Client$j } from './email-settings.d-DViLYaOl.js';
|
|
26
26
|
import { C as Client$k } from './email-template.d-gtQkdaXM.js';
|
|
27
27
|
import { C as Client$l } from './entity.d-GfKqzFGA.js';
|
|
@@ -31,7 +31,7 @@ import { C as Client$o } from './event-catalog.d-CCE1qmBN.js';
|
|
|
31
31
|
import { C as Client$p } from './file.d-DELNV63w.js';
|
|
32
32
|
import { C as Client$q } from './iban.d-BwdiGbxi.js';
|
|
33
33
|
import { C as Client$r } from './integration-toolkit.d--hon4GPp.js';
|
|
34
|
-
import { C as Client$s } from './journey.d-
|
|
34
|
+
import { C as Client$s } from './journey.d-Dj93v-Lw.js';
|
|
35
35
|
import { C as Client$t } from './kanban.d-BHnSRCYW.js';
|
|
36
36
|
import { C as Client$u } from './message.d-DwnqO-Us.js';
|
|
37
37
|
import { C as Client$v } from './metering.d-DomHYl06.js';
|
package/dist/index.js
CHANGED
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
} from "./chunk-GAINSJUJ.js";
|
|
97
97
|
import {
|
|
98
98
|
require_document_runtime
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-LR7LGGRU.js";
|
|
100
100
|
import {
|
|
101
101
|
require_email_settings_runtime
|
|
102
102
|
} from "./chunk-7HQ3GMYQ.js";
|
|
@@ -161,7 +161,7 @@ import {
|
|
|
161
161
|
expand,
|
|
162
162
|
help,
|
|
163
163
|
openapi
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-W5PMKQO7.js";
|
|
165
165
|
import {
|
|
166
166
|
__require
|
|
167
167
|
} from "./chunk-YPSWSI3M.js";
|