@xemahq/document-render-internal-api-client 0.1.1
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/LICENSE +174 -0
- package/README.md +62 -0
- package/dist/custom-fetch.d.ts +52 -0
- package/dist/custom-fetch.js +152 -0
- package/dist/endpoints/capabilities/capabilities.d.ts +13 -0
- package/dist/endpoints/capabilities/capabilities.js +20 -0
- package/dist/endpoints/measure/measure.d.ts +13 -0
- package/dist/endpoints/measure/measure.js +20 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +26 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +24 -0
- package/dist/models/inlineHtmlRenderSourceDto.d.ts +15 -0
- package/dist/models/inlineHtmlRenderSourceDto.js +2 -0
- package/dist/models/inlineHtmlRenderSourceDtoKind.d.ts +11 -0
- package/dist/models/inlineHtmlRenderSourceDtoKind.js +13 -0
- package/dist/models/measureInsertDto.d.ts +13 -0
- package/dist/models/measureInsertDto.js +9 -0
- package/dist/models/measureLayoutRequestDtoClass.d.ts +14 -0
- package/dist/models/measureLayoutRequestDtoClass.js +2 -0
- package/dist/models/pageRenderSourceDto.d.ts +17 -0
- package/dist/models/pageRenderSourceDto.js +2 -0
- package/dist/models/pageRenderSourceDtoKind.d.ts +11 -0
- package/dist/models/pageRenderSourceDtoKind.js +13 -0
- package/dist/models/renderPdfCapabilityRequestDto.d.ts +16 -0
- package/dist/models/renderPdfCapabilityRequestDto.js +9 -0
- package/package.json +28 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
Xema Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
|
|
4
|
+
"Business Source License" is a trademark of MariaDB Corporation Ab.
|
|
5
|
+
|
|
6
|
+
-----------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
Parameters
|
|
9
|
+
|
|
10
|
+
Licensor: Neuralchowder Inc.
|
|
11
|
+
|
|
12
|
+
Licensed Work: Xema. The Licensed Work is (c) 2026 Neuralchowder Inc..
|
|
13
|
+
|
|
14
|
+
The Licensed Work includes, without limitation, Xema Core, Xema Runtime,
|
|
15
|
+
Xema Kernel, Xema control plane, Xema application runtime, Xema biome
|
|
16
|
+
runtime, Xema biome registry, Xema store services, Xema orchestration
|
|
17
|
+
services, Xema agents, Xema skills, Xema memory services, Xema APIs, Xema
|
|
18
|
+
user interfaces, Xema command-line tools, Xema deployment artifacts, Xema
|
|
19
|
+
templates, Xema specifications, Xema schemas, Xema manifests, Xema
|
|
20
|
+
documentation, Xema examples, and all source code, object code, binaries,
|
|
21
|
+
packages, modules, configuration files, manifests, schemas, examples,
|
|
22
|
+
templates, documentation, and derivative works included in or distributed
|
|
23
|
+
as part of the Xema software project.
|
|
24
|
+
|
|
25
|
+
The Licensed Work does not include any third-party software, libraries,
|
|
26
|
+
dependencies, packages, assets, or components that are distributed with the
|
|
27
|
+
Licensed Work but are governed by their own separate license terms. Such
|
|
28
|
+
third-party materials remain subject to their respective licenses.
|
|
29
|
+
|
|
30
|
+
A specific file, package, component, or directory may state that it is
|
|
31
|
+
governed by a different license. In that case, that specific file, package,
|
|
32
|
+
component, or directory is governed by the license expressly stated therein.
|
|
33
|
+
|
|
34
|
+
Additional Use Grant:
|
|
35
|
+
|
|
36
|
+
You may make production use of the Licensed Work, provided that your use
|
|
37
|
+
does not include offering, providing, making available, distributing,
|
|
38
|
+
hosting, managing, embedding, reselling, white-labeling, sublicensing,
|
|
39
|
+
commercializing, or otherwise making the Licensed Work, or any modified
|
|
40
|
+
version or derivative work of the Licensed Work, available to Third Parties
|
|
41
|
+
as part of a Competitive Offering.
|
|
42
|
+
|
|
43
|
+
The following definitions and clarifications form part of, and govern
|
|
44
|
+
the interpretation of, the Additional Use Grant set out above.
|
|
45
|
+
|
|
46
|
+
1. "Production Use" means any use of the Licensed Work other than for
|
|
47
|
+
development, testing, evaluation, demonstration, experimentation,
|
|
48
|
+
benchmarking, or other non-production purposes.
|
|
49
|
+
|
|
50
|
+
2. "Affiliate" means any entity that, directly or indirectly,
|
|
51
|
+
controls, is controlled by, or is under common control with you,
|
|
52
|
+
where "control" means ownership of more than fifty percent (50%) of
|
|
53
|
+
the voting interests of the entity, or the power to direct its
|
|
54
|
+
management.
|
|
55
|
+
|
|
56
|
+
3. "Third Party" means any natural person or legal entity other than
|
|
57
|
+
you and your Affiliates.
|
|
58
|
+
|
|
59
|
+
4. "Competitive Offering" means any product or service, made available
|
|
60
|
+
to one or more Third Parties for a fee or other consideration
|
|
61
|
+
(including without limitation on a paid, subscription,
|
|
62
|
+
advertising-supported, hosted, or managed-service basis), that is
|
|
63
|
+
offered or marketed as, or that competes with, a software platform,
|
|
64
|
+
runtime, orchestration system, agent or automation system,
|
|
65
|
+
extension or distribution marketplace, or other software system
|
|
66
|
+
that provides, in substantial part, the same or substantially
|
|
67
|
+
similar capabilities as those provided by the Licensed Work. A
|
|
68
|
+
product or service is a Competitive Offering whether the Licensed
|
|
69
|
+
Work is provided in whole or in part, alone or bundled with other
|
|
70
|
+
software, and whether modified or unmodified.
|
|
71
|
+
|
|
72
|
+
5. Providing, hosting, or managing the Licensed Work for a Third Party,
|
|
73
|
+
or otherwise making the Licensed Work available to a Third Party as
|
|
74
|
+
a hosted or managed service such that the Third Party obtains the
|
|
75
|
+
principal value or functionality of the Licensed Work, is a
|
|
76
|
+
Competitive Offering and is not permitted by the Additional Use
|
|
77
|
+
Grant.
|
|
78
|
+
|
|
79
|
+
6. Subject to the foregoing, the Additional Use Grant permits you to
|
|
80
|
+
make Production Use of the Licensed Work for your own internal
|
|
81
|
+
business purposes and to build, operate, and provide your own
|
|
82
|
+
products and services to Third Parties, provided that the Licensed
|
|
83
|
+
Work itself (whether modified or unmodified) is not the product or
|
|
84
|
+
service, and is not a Competitive Offering, made available to those
|
|
85
|
+
Third Parties.
|
|
86
|
+
|
|
87
|
+
7. You may modify the Licensed Work and create derivative works for
|
|
88
|
+
any purpose permitted by this License. Any Production Use of such
|
|
89
|
+
modified or derivative works remains subject to the same
|
|
90
|
+
restrictions as the Licensed Work, including the prohibition on
|
|
91
|
+
Competitive Offerings.
|
|
92
|
+
|
|
93
|
+
8. Use of the Licensed Work by your own employees, contractors, and
|
|
94
|
+
agents, acting on your behalf and for your benefit, is not by
|
|
95
|
+
itself making the Licensed Work available to a Third Party.
|
|
96
|
+
|
|
97
|
+
9. Embedding or distributing the Licensed Work as a component of your
|
|
98
|
+
own product or service is permitted only where the Licensed Work
|
|
99
|
+
does not constitute the principal value of that product or service
|
|
100
|
+
and the product or service is not a Competitive Offering.
|
|
101
|
+
|
|
102
|
+
10. Nothing in this Additional Use Grant grants any right to use any
|
|
103
|
+
name, trademark, service mark, or logo of the Licensor or its
|
|
104
|
+
Affiliates, except as reasonably required for customary
|
|
105
|
+
attribution.
|
|
106
|
+
|
|
107
|
+
11. The rights stated in this Additional Use Grant are the maximum
|
|
108
|
+
rights granted for Production Use prior to the Change Date. Any
|
|
109
|
+
Production Use not expressly permitted requires a separate
|
|
110
|
+
commercial license from the Licensor.
|
|
111
|
+
|
|
112
|
+
12. If any provision of this Additional Use Grant is held invalid or
|
|
113
|
+
unenforceable, that provision shall be limited or eliminated to
|
|
114
|
+
the minimum extent necessary so that the remainder of this
|
|
115
|
+
Additional Use Grant, and of this License, remains in full force
|
|
116
|
+
and effect. The Licensor reserves all rights not expressly granted
|
|
117
|
+
by this License.
|
|
118
|
+
|
|
119
|
+
Change Date: Four years from the date the specific version of the Licensed
|
|
120
|
+
Work is first publicly released by Licensor.
|
|
121
|
+
|
|
122
|
+
Change License: Mozilla Public License, Version 2.0
|
|
123
|
+
|
|
124
|
+
For information about alternative licensing arrangements, commercial
|
|
125
|
+
licensing, enterprise licensing, OEM licensing, appliance licensing, managed
|
|
126
|
+
service licensing, cloud provider licensing, or other commercial use of the
|
|
127
|
+
Licensed Work, please contact: licensing@neuralchowder.com
|
|
128
|
+
|
|
129
|
+
-----------------------------------------------------------------------------
|
|
130
|
+
|
|
131
|
+
Notice
|
|
132
|
+
|
|
133
|
+
Business Source License 1.1
|
|
134
|
+
|
|
135
|
+
Terms
|
|
136
|
+
|
|
137
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
138
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
139
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
140
|
+
production use.
|
|
141
|
+
|
|
142
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
143
|
+
available distribution of a specific version of the Licensed Work under this
|
|
144
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
145
|
+
the terms of the Change License, and the rights granted in the paragraph above
|
|
146
|
+
terminate.
|
|
147
|
+
|
|
148
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
149
|
+
currently in effect as described in this License, you must purchase a
|
|
150
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
151
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
152
|
+
|
|
153
|
+
All copies of the original and modified Licensed Work, and derivative works of
|
|
154
|
+
the Licensed Work, are subject to this License. This License applies separately
|
|
155
|
+
for each version of the Licensed Work and the Change Date may vary for each
|
|
156
|
+
version of the Licensed Work released by Licensor.
|
|
157
|
+
|
|
158
|
+
You must conspicuously display this License on each original or modified copy
|
|
159
|
+
of the Licensed Work. If you receive the Licensed Work in original or modified
|
|
160
|
+
form from a third party, the terms and conditions set forth in this License
|
|
161
|
+
apply to your use of that work.
|
|
162
|
+
|
|
163
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
164
|
+
terminate your rights under this License for the current and all other
|
|
165
|
+
versions of the Licensed Work.
|
|
166
|
+
|
|
167
|
+
This License does not grant you any right in any trademark or logo of Licensor
|
|
168
|
+
or its affiliates, provided that you may use a trademark or logo of Licensor
|
|
169
|
+
as expressly required by this License.
|
|
170
|
+
|
|
171
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN
|
|
172
|
+
"AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS
|
|
173
|
+
OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
174
|
+
FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!-- Generated by @xemahq/api-client-generator. Do not edit by hand. -->
|
|
2
|
+
<p align="center">
|
|
3
|
+
<svg width="680" height="120" viewBox="0 0 680 120" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="@xemahq/document-render-internal-api-client">
|
|
4
|
+
<rect width="680" height="120" rx="14" fill="#0B1020"/>
|
|
5
|
+
<g transform="translate(28,34)">
|
|
6
|
+
<path d="M26 0 L52 15 L52 45 L26 60 L0 45 L0 15 Z" fill="#14B8A6" opacity="0.18"/>
|
|
7
|
+
<path d="M26 12 L41 21 L41 39 L26 48 L11 39 L11 21 Z" fill="#14B8A6"/>
|
|
8
|
+
</g>
|
|
9
|
+
<text x="92" y="52" font-family="ui-monospace,SFMono-Regular,Menlo,monospace" font-size="22" fill="#F8FAFC" font-weight="700">@xemahq/document-render-internal-api-client</text>
|
|
10
|
+
<text x="92" y="80" font-family="ui-sans-serif,system-ui,sans-serif" font-size="15" fill="#94A3B8">Typed, generated internal HTTP client for the Document Render API.</text>
|
|
11
|
+
<text x="652" y="105" text-anchor="end" font-family="ui-sans-serif,system-ui,sans-serif" font-size="12" fill="#475569">xema.dev</text>
|
|
12
|
+
</svg>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://xema.dev">Website</a> ·
|
|
17
|
+
<a href="https://www.npmjs.com/package/@xemahq/document-render-internal-api-client">npm</a>
|
|
18
|
+
</p>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
<img alt="npm" src="https://img.shields.io/npm/v/%40xemahq%2Fdocument-render-internal-api-client?color=2563eb&label=npm">
|
|
22
|
+
<img alt="license" src="https://img.shields.io/npm/l/%40xemahq%2Fdocument-render-internal-api-client?color=10b981">
|
|
23
|
+
<img alt="types" src="https://img.shields.io/npm/types/%40xemahq%2Fdocument-render-internal-api-client?color=3178c6">
|
|
24
|
+
</p>
|
|
25
|
+
|
|
26
|
+
# @xemahq/document-render-internal-api-client
|
|
27
|
+
|
|
28
|
+
> Typed, generated internal HTTP client for the Document Render API.
|
|
29
|
+
|
|
30
|
+
## Overview
|
|
31
|
+
|
|
32
|
+
Auto-generated TypeScript client for the **Document Render API**. It exports typed
|
|
33
|
+
request functions and response models that mirror the service's OpenAPI surface,
|
|
34
|
+
so callers get end-to-end type safety without hand-writing HTTP calls. This
|
|
35
|
+
package is produced by `@xemahq/api-client-generator` and regenerated whenever
|
|
36
|
+
the service's API changes — do not edit it by hand.
|
|
37
|
+
|
|
38
|
+
## When to use it
|
|
39
|
+
|
|
40
|
+
- Use it from any TypeScript service or app that calls the Document Render API over HTTP.
|
|
41
|
+
- You get compile-time types for every endpoint and payload; regenerate to pick
|
|
42
|
+
up API changes rather than editing the client.
|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
pnpm add @xemahq/document-render-internal-api-client
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
// Every endpoint function and response model is exported from the package root.
|
|
54
|
+
import * as client from '@xemahq/document-render-internal-api-client';
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Call the typed endpoint functions; request and response shapes are fully typed
|
|
58
|
+
from the service's OpenAPI spec.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
Proprietary — © Xema. All rights reserved. — [xema.dev](https://xema.dev)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configurable fetch wrapper for Orval-generated clients.
|
|
3
|
+
*
|
|
4
|
+
* Consumers must call `configureClient()` before using any endpoint function.
|
|
5
|
+
* The baseUrl is prepended to the relative paths generated by Orval.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Automatic bearer-token injection via `getAuthToken` callback
|
|
9
|
+
* - Per-request header injection via `getHeaders` callback
|
|
10
|
+
* - Automatic 401 handling via `onUnauthorized` callback (single retry)
|
|
11
|
+
* - Exponential-backoff retry for transient failures (429, 502, 503, 504)
|
|
12
|
+
* - Typed `ClientError` for non-2xx responses
|
|
13
|
+
* - Per-call header overrides (take precedence over global headers)
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* configureClient({
|
|
17
|
+
* baseUrl: 'http://governance-api:3400',
|
|
18
|
+
* getAuthToken: () => identityBootstrapService.getAccessToken(),
|
|
19
|
+
* getHeaders: () => ({ 'X-Xema-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
|
|
20
|
+
* });
|
|
21
|
+
*/
|
|
22
|
+
export interface ClientConfig {
|
|
23
|
+
/**
|
|
24
|
+
* Static base URL (e.g. 'http://localhost:3140') — no trailing slash.
|
|
25
|
+
* Mutually exclusive with `baseUrlResolver`; exactly one MUST be set.
|
|
26
|
+
*/
|
|
27
|
+
baseUrl?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Per-request base-URL resolver. When set, the peer URL is resolved from
|
|
30
|
+
* the service registry on EVERY request (boot-order-safe). Wired by
|
|
31
|
+
* `configureOrvalClientResolved` from `@xemahq/platform-common`.
|
|
32
|
+
*/
|
|
33
|
+
baseUrlResolver?: () => string | Promise<string>;
|
|
34
|
+
/** Optional async callback to get an auth token. Auto-sets Authorization header on every request. */
|
|
35
|
+
getAuthToken?: () => Promise<string>;
|
|
36
|
+
/** Optional callback returning headers to inject on every request. Per-call headers take precedence. */
|
|
37
|
+
getHeaders?: () => Record<string, string> | Promise<Record<string, string>>;
|
|
38
|
+
/** Optional callback invoked on 401 before a single retry (e.g. force-refresh auth token). */
|
|
39
|
+
onUnauthorized?: () => Promise<void>;
|
|
40
|
+
/** Maximum retry attempts for transient failures (default: 3). Set to 0 to disable retries. */
|
|
41
|
+
maxRetries?: number;
|
|
42
|
+
}
|
|
43
|
+
export declare class ClientError extends Error {
|
|
44
|
+
readonly status: number;
|
|
45
|
+
readonly url: string;
|
|
46
|
+
readonly body: unknown;
|
|
47
|
+
constructor(status: number, url: string, body: unknown);
|
|
48
|
+
}
|
|
49
|
+
export declare function configureClient(config: ClientConfig): void;
|
|
50
|
+
export declare function getClientConfig(): ClientConfig;
|
|
51
|
+
export declare const customFetch: <T>(url: string, options: RequestInit) => Promise<T>;
|
|
52
|
+
export default customFetch;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Configurable fetch wrapper for Orval-generated clients.
|
|
4
|
+
*
|
|
5
|
+
* Consumers must call `configureClient()` before using any endpoint function.
|
|
6
|
+
* The baseUrl is prepended to the relative paths generated by Orval.
|
|
7
|
+
*
|
|
8
|
+
* Features:
|
|
9
|
+
* - Automatic bearer-token injection via `getAuthToken` callback
|
|
10
|
+
* - Per-request header injection via `getHeaders` callback
|
|
11
|
+
* - Automatic 401 handling via `onUnauthorized` callback (single retry)
|
|
12
|
+
* - Exponential-backoff retry for transient failures (429, 502, 503, 504)
|
|
13
|
+
* - Typed `ClientError` for non-2xx responses
|
|
14
|
+
* - Per-call header overrides (take precedence over global headers)
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* configureClient({
|
|
18
|
+
* baseUrl: 'http://governance-api:3400',
|
|
19
|
+
* getAuthToken: () => identityBootstrapService.getAccessToken(),
|
|
20
|
+
* getHeaders: () => ({ 'X-Xema-Org-Id': orgId, 'X-Correlation-Id': crypto.randomUUID() }),
|
|
21
|
+
* });
|
|
22
|
+
*/
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.customFetch = exports.ClientError = void 0;
|
|
25
|
+
exports.configureClient = configureClient;
|
|
26
|
+
exports.getClientConfig = getClientConfig;
|
|
27
|
+
class ClientError extends Error {
|
|
28
|
+
status;
|
|
29
|
+
url;
|
|
30
|
+
body;
|
|
31
|
+
constructor(status, url, body) {
|
|
32
|
+
super(`HTTP ${status} from ${url}`);
|
|
33
|
+
this.status = status;
|
|
34
|
+
this.url = url;
|
|
35
|
+
this.body = body;
|
|
36
|
+
this.name = 'ClientError';
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ClientError = ClientError;
|
|
40
|
+
let clientConfig = null;
|
|
41
|
+
function configureClient(config) {
|
|
42
|
+
clientConfig = config;
|
|
43
|
+
}
|
|
44
|
+
function getClientConfig() {
|
|
45
|
+
if (!clientConfig) {
|
|
46
|
+
throw new Error('Client not configured. Call configureClient({ baseUrl }) before using endpoint functions.');
|
|
47
|
+
}
|
|
48
|
+
return clientConfig;
|
|
49
|
+
}
|
|
50
|
+
const RETRYABLE_STATUSES = [429, 502, 503, 504];
|
|
51
|
+
async function buildHeaders(config, callerHeaders) {
|
|
52
|
+
const headers = new Headers(callerHeaders);
|
|
53
|
+
// Global headers from config (caller-provided headers take precedence)
|
|
54
|
+
if (config.getHeaders) {
|
|
55
|
+
const globalHeaders = await Promise.resolve(config.getHeaders());
|
|
56
|
+
for (const [key, value] of Object.entries(globalHeaders)) {
|
|
57
|
+
if (!headers.has(key)) {
|
|
58
|
+
headers.set(key, value);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// Auth token (caller or global headers take precedence)
|
|
63
|
+
if (config.getAuthToken && !headers.has('Authorization')) {
|
|
64
|
+
const token = await config.getAuthToken();
|
|
65
|
+
headers.set('Authorization', `Bearer ${token}`);
|
|
66
|
+
}
|
|
67
|
+
return headers;
|
|
68
|
+
}
|
|
69
|
+
const customFetch = async (url, options) => {
|
|
70
|
+
const config = getClientConfig();
|
|
71
|
+
const base = config.baseUrlResolver
|
|
72
|
+
? await config.baseUrlResolver()
|
|
73
|
+
: config.baseUrl;
|
|
74
|
+
if (base === undefined) {
|
|
75
|
+
throw new Error('Client not configured: set baseUrl or baseUrlResolver via configureClient().');
|
|
76
|
+
}
|
|
77
|
+
const fullUrl = `${base}${url}`;
|
|
78
|
+
const maxRetries = config.maxRetries ?? 3;
|
|
79
|
+
const headers = await buildHeaders(config, options.headers);
|
|
80
|
+
const requestInit = { ...options, headers };
|
|
81
|
+
let delay = 1000;
|
|
82
|
+
let lastError;
|
|
83
|
+
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
84
|
+
try {
|
|
85
|
+
const response = await fetch(fullUrl, requestInit);
|
|
86
|
+
// 401 — invoke onUnauthorized and retry once (outside the transient retry loop)
|
|
87
|
+
if (response.status === 401 && config.onUnauthorized && attempt === 0) {
|
|
88
|
+
await config.onUnauthorized();
|
|
89
|
+
const refreshedHeaders = await buildHeaders(config, options.headers);
|
|
90
|
+
const retryResponse = await fetch(fullUrl, { ...options, headers: refreshedHeaders });
|
|
91
|
+
const retryBody = await parseBody(retryResponse);
|
|
92
|
+
if (retryResponse.status >= 400) {
|
|
93
|
+
throw new ClientError(retryResponse.status, fullUrl, retryBody);
|
|
94
|
+
}
|
|
95
|
+
return retryBody;
|
|
96
|
+
}
|
|
97
|
+
// Non-retryable status — return or throw
|
|
98
|
+
if (!RETRYABLE_STATUSES.includes(response.status) || attempt >= maxRetries) {
|
|
99
|
+
const body = await parseBody(response);
|
|
100
|
+
if (response.status >= 400) {
|
|
101
|
+
throw new ClientError(response.status, fullUrl, body);
|
|
102
|
+
}
|
|
103
|
+
return body;
|
|
104
|
+
}
|
|
105
|
+
// Retryable — wait and retry
|
|
106
|
+
const retryAfter = parseRetryAfter(response.headers.get('Retry-After'));
|
|
107
|
+
const waitMs = retryAfter ?? addJitter(delay);
|
|
108
|
+
await sleep(waitMs);
|
|
109
|
+
delay = Math.min(delay * 2, 30_000);
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
if (error instanceof ClientError)
|
|
113
|
+
throw error; // Don't retry client errors
|
|
114
|
+
lastError = error instanceof Error ? error : new Error(String(error));
|
|
115
|
+
if (attempt >= maxRetries)
|
|
116
|
+
throw lastError;
|
|
117
|
+
const waitMs = addJitter(delay);
|
|
118
|
+
await sleep(waitMs);
|
|
119
|
+
delay = Math.min(delay * 2, 30_000);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
throw lastError ?? new Error(`All retries exhausted for ${fullUrl}`);
|
|
123
|
+
};
|
|
124
|
+
exports.customFetch = customFetch;
|
|
125
|
+
async function parseBody(response) {
|
|
126
|
+
const contentType = response.headers.get('content-type');
|
|
127
|
+
if (contentType?.includes('application/json')) {
|
|
128
|
+
return response.json();
|
|
129
|
+
}
|
|
130
|
+
if (response.status === 204) {
|
|
131
|
+
return undefined;
|
|
132
|
+
}
|
|
133
|
+
return response.text();
|
|
134
|
+
}
|
|
135
|
+
function parseRetryAfter(value) {
|
|
136
|
+
if (!value)
|
|
137
|
+
return undefined;
|
|
138
|
+
const seconds = Number(value);
|
|
139
|
+
if (!isNaN(seconds) && seconds >= 0)
|
|
140
|
+
return seconds * 1000;
|
|
141
|
+
const date = new Date(value);
|
|
142
|
+
if (!isNaN(date.getTime()))
|
|
143
|
+
return Math.max(0, date.getTime() - Date.now());
|
|
144
|
+
return undefined;
|
|
145
|
+
}
|
|
146
|
+
function addJitter(delay) {
|
|
147
|
+
return delay + (Math.random() * 2 - 1) * delay * 0.25;
|
|
148
|
+
}
|
|
149
|
+
function sleep(ms) {
|
|
150
|
+
return new Promise(resolve => setTimeout(resolve, ms));
|
|
151
|
+
}
|
|
152
|
+
exports.default = exports.customFetch;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { RenderPdfCapabilityRequestDto } from '../../models';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Invoke the document:render.pdf@1 capability (inline HTML → PDF)
|
|
11
|
+
*/
|
|
12
|
+
export declare const getRenderCapabilityControllerRenderPdfUrl: () => string;
|
|
13
|
+
export declare const renderCapabilityControllerRenderPdf: (renderPdfCapabilityRequestDto: RenderPdfCapabilityRequestDto, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderCapabilityControllerRenderPdf = exports.getRenderCapabilityControllerRenderPdfUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
/**
|
|
6
|
+
* @summary Invoke the document:render.pdf@1 capability (inline HTML → PDF)
|
|
7
|
+
*/
|
|
8
|
+
const getRenderCapabilityControllerRenderPdfUrl = () => {
|
|
9
|
+
return `/internal/capabilities/render-pdf`;
|
|
10
|
+
};
|
|
11
|
+
exports.getRenderCapabilityControllerRenderPdfUrl = getRenderCapabilityControllerRenderPdfUrl;
|
|
12
|
+
const renderCapabilityControllerRenderPdf = async (renderPdfCapabilityRequestDto, options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getRenderCapabilityControllerRenderPdfUrl)(), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
+
body: JSON.stringify(renderPdfCapabilityRequestDto)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.renderCapabilityControllerRenderPdf = renderCapabilityControllerRenderPdf;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { MeasureLayoutRequestDtoClass } from '../../models';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Measure document layout (page count, outline) without rendering a PDF
|
|
11
|
+
*/
|
|
12
|
+
export declare const getInternalMeasureControllerMeasureUrl: () => string;
|
|
13
|
+
export declare const internalMeasureControllerMeasure: (measureLayoutRequestDtoClass: MeasureLayoutRequestDtoClass, options?: RequestInit) => Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.internalMeasureControllerMeasure = exports.getInternalMeasureControllerMeasureUrl = void 0;
|
|
4
|
+
const custom_fetch_1 = require("../../custom-fetch");
|
|
5
|
+
/**
|
|
6
|
+
* @summary Measure document layout (page count, outline) without rendering a PDF
|
|
7
|
+
*/
|
|
8
|
+
const getInternalMeasureControllerMeasureUrl = () => {
|
|
9
|
+
return `/internal/measure`;
|
|
10
|
+
};
|
|
11
|
+
exports.getInternalMeasureControllerMeasureUrl = getInternalMeasureControllerMeasureUrl;
|
|
12
|
+
const internalMeasureControllerMeasure = async (measureLayoutRequestDtoClass, options) => {
|
|
13
|
+
return (0, custom_fetch_1.customFetch)((0, exports.getInternalMeasureControllerMeasureUrl)(), {
|
|
14
|
+
...options,
|
|
15
|
+
method: 'POST',
|
|
16
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
17
|
+
body: JSON.stringify(measureLayoutRequestDtoClass)
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.internalMeasureControllerMeasure = internalMeasureControllerMeasure;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.customFetch = exports.ClientError = exports.getClientConfig = exports.configureClient = void 0;
|
|
18
|
+
// Auto-generated by @xemahq/api-client-generator — do not edit manually.
|
|
19
|
+
var custom_fetch_1 = require("./custom-fetch");
|
|
20
|
+
Object.defineProperty(exports, "configureClient", { enumerable: true, get: function () { return custom_fetch_1.configureClient; } });
|
|
21
|
+
Object.defineProperty(exports, "getClientConfig", { enumerable: true, get: function () { return custom_fetch_1.getClientConfig; } });
|
|
22
|
+
Object.defineProperty(exports, "ClientError", { enumerable: true, get: function () { return custom_fetch_1.ClientError; } });
|
|
23
|
+
Object.defineProperty(exports, "customFetch", { enumerable: true, get: function () { return custom_fetch_1.customFetch; } });
|
|
24
|
+
__exportStar(require("./models"), exports);
|
|
25
|
+
__exportStar(require("./endpoints/capabilities/capabilities"), exports);
|
|
26
|
+
__exportStar(require("./endpoints/measure/measure"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './inlineHtmlRenderSourceDto';
|
|
2
|
+
export * from './inlineHtmlRenderSourceDtoKind';
|
|
3
|
+
export * from './measureInsertDto';
|
|
4
|
+
export * from './measureLayoutRequestDtoClass';
|
|
5
|
+
export * from './pageRenderSourceDto';
|
|
6
|
+
export * from './pageRenderSourceDtoKind';
|
|
7
|
+
export * from './renderPdfCapabilityRequestDto';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Auto-generated by tooling/codegen/regenerate-models-barrel.js — do not edit manually.
|
|
18
|
+
__exportStar(require("./inlineHtmlRenderSourceDto"), exports);
|
|
19
|
+
__exportStar(require("./inlineHtmlRenderSourceDtoKind"), exports);
|
|
20
|
+
__exportStar(require("./measureInsertDto"), exports);
|
|
21
|
+
__exportStar(require("./measureLayoutRequestDtoClass"), exports);
|
|
22
|
+
__exportStar(require("./pageRenderSourceDto"), exports);
|
|
23
|
+
__exportStar(require("./pageRenderSourceDtoKind"), exports);
|
|
24
|
+
__exportStar(require("./renderPdfCapabilityRequestDto"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { InlineHtmlRenderSourceDtoKind } from './inlineHtmlRenderSourceDtoKind';
|
|
9
|
+
export interface InlineHtmlRenderSourceDto {
|
|
10
|
+
kind: InlineHtmlRenderSourceDtoKind;
|
|
11
|
+
/** Self-contained HTML document body fragment. */
|
|
12
|
+
html: string;
|
|
13
|
+
/** Optional title shown in the PDF metadata. */
|
|
14
|
+
title?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type InlineHtmlRenderSourceDtoKind = typeof InlineHtmlRenderSourceDtoKind[keyof typeof InlineHtmlRenderSourceDtoKind];
|
|
9
|
+
export declare const InlineHtmlRenderSourceDtoKind: {
|
|
10
|
+
readonly INLINE_HTML: "INLINE_HTML";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Document Render API
|
|
6
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.InlineHtmlRenderSourceDtoKind = void 0;
|
|
11
|
+
exports.InlineHtmlRenderSourceDtoKind = {
|
|
12
|
+
INLINE_HTML: 'INLINE_HTML',
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface MeasureInsertDto {
|
|
9
|
+
/** Section path from a prior outline call. */
|
|
10
|
+
atSectionPath: string;
|
|
11
|
+
/** HTML or markdown fragment to simulate. */
|
|
12
|
+
fragment: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Document Render API
|
|
6
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { InlineHtmlRenderSourceDto } from './inlineHtmlRenderSourceDto';
|
|
9
|
+
import type { MeasureInsertDto } from './measureInsertDto';
|
|
10
|
+
import type { PageRenderSourceDto } from './pageRenderSourceDto';
|
|
11
|
+
export interface MeasureLayoutRequestDtoClass {
|
|
12
|
+
source: PageRenderSourceDto | InlineHtmlRenderSourceDto;
|
|
13
|
+
inserts?: MeasureInsertDto[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { PageRenderSourceDtoKind } from './pageRenderSourceDtoKind';
|
|
9
|
+
export interface PageRenderSourceDto {
|
|
10
|
+
kind: PageRenderSourceDtoKind;
|
|
11
|
+
/** KB space slug. */
|
|
12
|
+
spaceSlug: string;
|
|
13
|
+
/** KB page slug (within the space). */
|
|
14
|
+
pageSlug: string;
|
|
15
|
+
/** Pin a specific version. Omit for the latest published. */
|
|
16
|
+
version?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export type PageRenderSourceDtoKind = typeof PageRenderSourceDtoKind[keyof typeof PageRenderSourceDtoKind];
|
|
9
|
+
export declare const PageRenderSourceDtoKind: {
|
|
10
|
+
readonly PAGE: "PAGE";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Document Render API
|
|
6
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.PageRenderSourceDtoKind = void 0;
|
|
11
|
+
exports.PageRenderSourceDtoKind = {
|
|
12
|
+
PAGE: 'PAGE',
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.6.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Document Render API
|
|
5
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
export interface RenderPdfCapabilityRequestDto {
|
|
9
|
+
/**
|
|
10
|
+
* Document title — used for PDF metadata and filename.
|
|
11
|
+
* @maxLength 200
|
|
12
|
+
*/
|
|
13
|
+
title: string;
|
|
14
|
+
/** Self-contained HTML document body fragment to render. Wrapped in the service A4 document shell before rendering. */
|
|
15
|
+
html: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated by orval v8.6.2 🍺
|
|
4
|
+
* Do not edit manually.
|
|
5
|
+
* Document Render API
|
|
6
|
+
* Generic Xema-wide async PDF/DOCX rendering service for documents, brainstorming summaries, workflow deliverables, etc.
|
|
7
|
+
* OpenAPI spec version: 0.1.0
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xemahq/document-render-internal-api-client",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org/",
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"typescript": "5.9.3"
|
|
15
|
+
},
|
|
16
|
+
"xema": {
|
|
17
|
+
"kind": "api-client",
|
|
18
|
+
"surface": "internal",
|
|
19
|
+
"service": "document-render-api",
|
|
20
|
+
"biome": "document-rendering",
|
|
21
|
+
"target": "server",
|
|
22
|
+
"generator": "@xemahq/api-client-generator@0.1.2",
|
|
23
|
+
"source": "openapi.internal.json"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc -p tsconfig.json"
|
|
27
|
+
}
|
|
28
|
+
}
|