typizer 0.3.0 → 0.4.0
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/CHANGELOG.md +17 -0
- package/README.md +29 -0
- package/dist/client.d.ts +41 -0
- package/dist/client.js +123 -0
- package/dist/gen/index.d.ts +2 -2
- package/dist/gen/index.js +1 -1
- package/dist/gen/sdk.gen.d.ts +86 -8
- package/dist/gen/sdk.gen.js +185 -7
- package/dist/gen/types.gen.d.ts +2736 -1632
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/run.d.ts +39 -3
- package/dist/run.js +17 -0
- package/dist/validators.d.ts +100 -0
- package/dist/validators.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
Формат — [Keep a Changelog](https://keepachangelog.com/ru/1.1.0/), версии — [SemVer](https://semver.org/lang/ru/).
|
|
4
4
|
|
|
5
|
+
## [0.4.0] — 2026-11-18
|
|
6
|
+
|
|
7
|
+
Совместимо с 0.3.0: прежние вызовы работают без изменений.
|
|
8
|
+
|
|
9
|
+
### Добавлено
|
|
10
|
+
|
|
11
|
+
- Проверки полей: ресурс `client.validators` — `list` (автопагинация), `get` (`val_…` или
|
|
12
|
+
`my/slug`), `create`, `update` (ответ `ValidatorUpdateResult` с `bump`), `archive`, `versions`,
|
|
13
|
+
`test` (ровно один из `ref` и `spec`, иначе `TypeError` до сети) и `suggest`; у каждого вызова —
|
|
14
|
+
`RequestOptions` и `.withResponse()`. `spec` передаётся и возвращается как есть (свободный объект).
|
|
15
|
+
- `run.warnings()` — поля со статусом `warn` в виде `FieldWarning { path, message, reason }`;
|
|
16
|
+
`run.checks_used` (тип `RunCheckUsed`); `FieldResult.message` и `FieldResult.checks`
|
|
17
|
+
(`FieldCheck`); у типизатора — `checks` (`TypizerCheck`).
|
|
18
|
+
- Типы `Validator`, `ValidatorDetail`, `ValidatorVersion`, `ValidatorTest`, `ValidatorUsedBy`,
|
|
19
|
+
`ValidatorUpdateResult`, `ValidatorTestResult`, `ValidatorSuggestion`, `DeletedValidator` —
|
|
20
|
+
перечисления в них открытые.
|
|
21
|
+
|
|
5
22
|
## [0.3.0] — 2026-11-16
|
|
6
23
|
|
|
7
24
|
Совместимо с 0.2: прежние вызовы работают без изменений.
|
package/README.md
CHANGED
|
@@ -90,6 +90,35 @@ const run = await client.extract<Invoice>({
|
|
|
90
90
|
console.log(run.output?.total);
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
+
### Проверки полей
|
|
94
|
+
|
|
95
|
+
Поле схемы можно проверить: `"x-typizer-check"` — официальная проверка (`"inn"`), своя
|
|
96
|
+
(`"my/contract-no@1"`) или правило прямо в схеме (`{ kind: 'rules', … }`). Значение, не прошедшее
|
|
97
|
+
проверку, приходит со статусом `warn`; `run.warnings()` — такие поля с готовой фразой по-русски
|
|
98
|
+
(`message`) и кодом причины (`reason`). Свои проверки — `client.validators` (`list`, `get`,
|
|
99
|
+
`create`, `update`, `archive`, `versions`, `test`, `suggest`); `validators.test` проверяет значения
|
|
100
|
+
без документа.
|
|
101
|
+
|
|
102
|
+
```ts
|
|
103
|
+
import { Typizer } from 'typizer';
|
|
104
|
+
|
|
105
|
+
const client = new Typizer();
|
|
106
|
+
const check = await client.validators.test({
|
|
107
|
+
values: ['1234567894', '1234567890'], // контрольное число сходится, не сходится
|
|
108
|
+
spec: { kind: 'native', id: 'inn' },
|
|
109
|
+
});
|
|
110
|
+
for (const r of check.results) console.log(r.value, r.pass, r.message);
|
|
111
|
+
|
|
112
|
+
const run = await client.extract({
|
|
113
|
+
url: 'https://typizer.ru/samples/invoice.pdf',
|
|
114
|
+
schema: {
|
|
115
|
+
type: 'object',
|
|
116
|
+
properties: { seller_inn: { type: 'string', 'x-typizer-check': 'inn' } },
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
for (const w of run.warnings()) console.log(w.path, w.message); // что показать человеку
|
|
120
|
+
```
|
|
121
|
+
|
|
93
122
|
## Схема из каталога
|
|
94
123
|
|
|
95
124
|
Готовые схемы для типовых документов — [каталог](https://docs.typizer.ru/how-to/catalog/):
|
package/dist/client.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { type FileInput, type Uploadable } from './files.js';
|
|
|
7
7
|
import type { Balance, Batch, CatalogEntry, CatalogEntryBrief, CatalogFavorite, CatalogPublisher, CatalogReport, CatalogUpdate, CatalogVersionBrief, DeletedFile, DeletedTypizer, DeletedWebhookEndpoint, File as FileObject, Me, Organization, Status, TypizerDraft, Typizer as TypizerObject, TypizerVersion, Usage, WebhookDelivery, WebhookEndpoint, WebhookEventType } from './gen/types.gen.js';
|
|
8
8
|
import { PagePromise } from './pagination.js';
|
|
9
9
|
import { type TypizerRun } from './run.js';
|
|
10
|
+
import type { DeletedValidator, Validator, ValidatorCreateParams, ValidatorDetail, ValidatorSuggestion, ValidatorSuggestParams, ValidatorTestParams, ValidatorTestResult, ValidatorUpdateParams, ValidatorUpdateResult, ValidatorVersion } from './validators.js';
|
|
10
11
|
export declare const DEFAULT_BASE_URL = "https://api.typizer.ru";
|
|
11
12
|
/** Settings of a `Typizer` client (SPEC §2.1). */
|
|
12
13
|
export interface TypizerOptions {
|
|
@@ -135,6 +136,8 @@ export declare class TypizerClient {
|
|
|
135
136
|
readonly catalog: Catalog;
|
|
136
137
|
readonly batches: Batches;
|
|
137
138
|
readonly webhookEndpoints: WebhookEndpoints;
|
|
139
|
+
/** Your field checks (`my/…`) for `x-typizer-check`. */
|
|
140
|
+
readonly validators: Validators;
|
|
138
141
|
/** Same as the static `Typizer.webhooks`. */
|
|
139
142
|
readonly webhooks: {
|
|
140
143
|
readonly verify: typeof import("./webhooks.js").verifyWebhook;
|
|
@@ -287,6 +290,44 @@ export declare class Catalog extends Resource {
|
|
|
287
290
|
version?: string;
|
|
288
291
|
}, options?: RequestOptions): APIPromise<CatalogReport>;
|
|
289
292
|
}
|
|
293
|
+
/**
|
|
294
|
+
* `client.validators`: your field checks («проверки»). A check is referenced from a schema field as
|
|
295
|
+
* `"x-typizer-check": "my/contract-no@1"`; a field that fails it comes back as `warn` with the
|
|
296
|
+
* check's `message` (`run.warnings()`).
|
|
297
|
+
*/
|
|
298
|
+
export declare class Validators extends Resource {
|
|
299
|
+
/** Your checks, newest first; `for await` walks all pages (`GET /v1/validators`). */
|
|
300
|
+
list(params?: ListParams, options?: RequestOptions): PagePromise<Validator>;
|
|
301
|
+
/** A check with all versions and the typizers that use it: `val_…` or `my/contract-no[@1]`. */
|
|
302
|
+
get(ref: string, options?: RequestOptions): APIPromise<ValidatorDetail>;
|
|
303
|
+
/** Every version of a check, newest first (`val_…` or `my/contract-no`). */
|
|
304
|
+
versions(ref: string, options?: RequestOptions): APIPromise<ValidatorVersion[]>;
|
|
305
|
+
/**
|
|
306
|
+
* Creates a check (`POST /v1/validators`) at version `1.0.0`. Every test must hold, else
|
|
307
|
+
* `BadRequestError` with `param: 'tests/<i>'`; a taken `slug` is a `ConflictError`.
|
|
308
|
+
*/
|
|
309
|
+
create(params: ValidatorCreateParams, options?: RequestOptions): APIPromise<Validator>;
|
|
310
|
+
/**
|
|
311
|
+
* Changes a check (`PATCH /v1/validators/{id}`). The API picks the version: `bump` is `minor`
|
|
312
|
+
* when the old tests still pass, `major` when one breaks, `patch` for texts only.
|
|
313
|
+
*/
|
|
314
|
+
update(id: string, params: ValidatorUpdateParams, options?: RequestOptions): APIPromise<ValidatorUpdateResult>;
|
|
315
|
+
/**
|
|
316
|
+
* Archives a check (`DELETE /v1/validators/{id}`); its versions stay with past runs. While a
|
|
317
|
+
* typizer references it, this is a `ConflictError` with `param: 'used_by'`.
|
|
318
|
+
*/
|
|
319
|
+
archive(id: string, options?: RequestOptions): APIPromise<DeletedValidator>;
|
|
320
|
+
/**
|
|
321
|
+
* Runs a check on values without a document (`POST /v1/validators/test`): pass exactly one of
|
|
322
|
+
* `ref` (`my/contract-no@1`, `inn@1`) and `spec` (an object, as is).
|
|
323
|
+
*/
|
|
324
|
+
test(params: ValidatorTestParams, options?: RequestOptions): APIPromise<ValidatorTestResult>;
|
|
325
|
+
/**
|
|
326
|
+
* Drafts a check from a description and/or examples (`POST /v1/validators/suggest`); uses the
|
|
327
|
+
* organization's agent limit, like `typizers.generate`.
|
|
328
|
+
*/
|
|
329
|
+
suggest(params?: ValidatorSuggestParams, options?: RequestOptions): APIPromise<ValidatorSuggestion>;
|
|
330
|
+
}
|
|
290
331
|
/** `client.batches`: one typizer over many files. */
|
|
291
332
|
export declare class Batches extends Resource {
|
|
292
333
|
create(params: BatchCreateParams, options?: RequestOptions): APIPromise<Batch>;
|
package/dist/client.js
CHANGED
|
@@ -49,6 +49,8 @@ export class TypizerClient {
|
|
|
49
49
|
catalog;
|
|
50
50
|
batches;
|
|
51
51
|
webhookEndpoints;
|
|
52
|
+
/** Your field checks (`my/…`) for `x-typizer-check`. */
|
|
53
|
+
validators;
|
|
52
54
|
/** Same as the static `Typizer.webhooks`. */
|
|
53
55
|
webhooks = webhooks;
|
|
54
56
|
#options;
|
|
@@ -94,6 +96,7 @@ export class TypizerClient {
|
|
|
94
96
|
this.catalog = new Catalog(this);
|
|
95
97
|
this.batches = new Batches(this);
|
|
96
98
|
this.webhookEndpoints = new WebhookEndpoints(this);
|
|
99
|
+
this.validators = new Validators(this);
|
|
97
100
|
Object.defineProperty(this, '_transport', { enumerable: false });
|
|
98
101
|
}
|
|
99
102
|
/** A copy with other settings that shares the connections and state. */
|
|
@@ -523,6 +526,126 @@ export class Catalog extends Resource {
|
|
|
523
526
|
}, options);
|
|
524
527
|
}
|
|
525
528
|
}
|
|
529
|
+
/** `my/slug[@version]` → `GET /v1/validators/my/{slug}` (the version is dropped: the answer has
|
|
530
|
+
* every version); anything else is an id → `GET /v1/validators/{id}` (SPEC §3). */
|
|
531
|
+
function validatorGetReq(ref) {
|
|
532
|
+
const value = String(ref ?? '');
|
|
533
|
+
if (value.startsWith('my/')) {
|
|
534
|
+
const [name] = splitRef(value);
|
|
535
|
+
return { method: 'GET', path: `/v1/validators/my/${seg('slug', name.slice(3))}` };
|
|
536
|
+
}
|
|
537
|
+
return { method: 'GET', path: `/v1/validators/${seg('id', value)}` };
|
|
538
|
+
}
|
|
539
|
+
function validatorBody(p) {
|
|
540
|
+
return compact({
|
|
541
|
+
name: p.name,
|
|
542
|
+
slug: p.slug,
|
|
543
|
+
description: p.description,
|
|
544
|
+
spec: p.spec,
|
|
545
|
+
tests: p.tests,
|
|
546
|
+
changelog: p.changelog,
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
function checkSpec(method, spec) {
|
|
550
|
+
if (spec === undefined)
|
|
551
|
+
return;
|
|
552
|
+
if (!spec || typeof spec !== 'object' || Array.isArray(spec)) {
|
|
553
|
+
throw new TypeError(`typizer: ${method}: spec must be an object`);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* `client.validators`: your field checks («проверки»). A check is referenced from a schema field as
|
|
558
|
+
* `"x-typizer-check": "my/contract-no@1"`; a field that fails it comes back as `warn` with the
|
|
559
|
+
* check's `message` (`run.warnings()`).
|
|
560
|
+
*/
|
|
561
|
+
export class Validators extends Resource {
|
|
562
|
+
/** Your checks, newest first; `for await` walks all pages (`GET /v1/validators`). */
|
|
563
|
+
list(params = {}, options) {
|
|
564
|
+
return this.c._list('/v1/validators', { limit: params.limit }, 'starting_after', options);
|
|
565
|
+
}
|
|
566
|
+
/** A check with all versions and the typizers that use it: `val_…` or `my/contract-no[@1]`. */
|
|
567
|
+
get(ref, options) {
|
|
568
|
+
return this.c._call(() => Promise.resolve(validatorGetReq(ref)), options);
|
|
569
|
+
}
|
|
570
|
+
/** Every version of a check, newest first (`val_…` or `my/contract-no`). */
|
|
571
|
+
versions(ref, options) {
|
|
572
|
+
return this.c._call(() => Promise.resolve(validatorGetReq(ref)), options, (raw) => raw?.versions ?? []);
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Creates a check (`POST /v1/validators`) at version `1.0.0`. Every test must hold, else
|
|
576
|
+
* `BadRequestError` with `param: 'tests/<i>'`; a taken `slug` is a `ConflictError`.
|
|
577
|
+
*/
|
|
578
|
+
create(params, options) {
|
|
579
|
+
return this.c._call(() => {
|
|
580
|
+
if (!params?.name)
|
|
581
|
+
throw new TypeError('typizer: validators.create: name is required');
|
|
582
|
+
if (params.spec === undefined)
|
|
583
|
+
throw new TypeError('typizer: validators.create: spec is required');
|
|
584
|
+
checkSpec('validators.create', params.spec);
|
|
585
|
+
return Promise.resolve({
|
|
586
|
+
method: 'POST',
|
|
587
|
+
path: '/v1/validators',
|
|
588
|
+
json: validatorBody(params),
|
|
589
|
+
});
|
|
590
|
+
}, options);
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Changes a check (`PATCH /v1/validators/{id}`). The API picks the version: `bump` is `minor`
|
|
594
|
+
* when the old tests still pass, `major` when one breaks, `patch` for texts only.
|
|
595
|
+
*/
|
|
596
|
+
update(id, params, options) {
|
|
597
|
+
return this.c._call(() => {
|
|
598
|
+
checkSpec('validators.update', params?.spec);
|
|
599
|
+
return Promise.resolve({
|
|
600
|
+
method: 'PATCH',
|
|
601
|
+
path: `/v1/validators/${seg('id', id)}`,
|
|
602
|
+
json: validatorBody({ ...params, slug: undefined }),
|
|
603
|
+
});
|
|
604
|
+
}, options);
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Archives a check (`DELETE /v1/validators/{id}`); its versions stay with past runs. While a
|
|
608
|
+
* typizer references it, this is a `ConflictError` with `param: 'used_by'`.
|
|
609
|
+
*/
|
|
610
|
+
archive(id, options) {
|
|
611
|
+
return this.c._call(() => Promise.resolve({ method: 'DELETE', path: `/v1/validators/${seg('id', id)}` }), options);
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Runs a check on values without a document (`POST /v1/validators/test`): pass exactly one of
|
|
615
|
+
* `ref` (`my/contract-no@1`, `inn@1`) and `spec` (an object, as is).
|
|
616
|
+
*/
|
|
617
|
+
test(params, options) {
|
|
618
|
+
return this.c._call(() => {
|
|
619
|
+
if ((params?.ref === undefined) === (params?.spec === undefined)) {
|
|
620
|
+
throw new TypeError('typizer: validators.test: pass exactly one of ref and spec');
|
|
621
|
+
}
|
|
622
|
+
if (!Array.isArray(params.values)) {
|
|
623
|
+
throw new TypeError('typizer: validators.test: values must be an array');
|
|
624
|
+
}
|
|
625
|
+
checkSpec('validators.test', params.spec);
|
|
626
|
+
return Promise.resolve({
|
|
627
|
+
method: 'POST',
|
|
628
|
+
path: '/v1/validators/test',
|
|
629
|
+
json: compact({ ref: params.ref, spec: params.spec, values: params.values }),
|
|
630
|
+
});
|
|
631
|
+
}, options);
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Drafts a check from a description and/or examples (`POST /v1/validators/suggest`); uses the
|
|
635
|
+
* organization's agent limit, like `typizers.generate`.
|
|
636
|
+
*/
|
|
637
|
+
suggest(params = {}, options) {
|
|
638
|
+
return this.c._call(() => Promise.resolve({
|
|
639
|
+
method: 'POST',
|
|
640
|
+
path: '/v1/validators/suggest',
|
|
641
|
+
json: compact({
|
|
642
|
+
description: params.description,
|
|
643
|
+
examples: params.examples,
|
|
644
|
+
field: params.field,
|
|
645
|
+
}),
|
|
646
|
+
}), options);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
526
649
|
/** `client.batches`: one typizer over many files. */
|
|
527
650
|
export class Batches extends Resource {
|
|
528
651
|
create(params, options) {
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { applyTypizerCatalogUpdate, approveConnectorLinkRequest, closeSupportConversation, createAgentMessage, createAgentSampleRun, createAgentThread, createApiKey, createBatch, createCheckout, createConnectorLink, createConsent, createContractRequest, createDemoRun, createFile, createInboundMailbox, createInvoice, createRun, createSupportAttachment, createSupportConversation, createSupportEmailCode, createSupportMessage, createSupportWidgetChallenge, createSupportWidgetMessage, createSupportWidgetToken, createSupportWidgetVisitor, createToolOcr, createTypizer, createWebhookEndpoint, deleteApiKey, deleteFile, deleteInboundMailbox, deleteMe, deleteOrganization, deleteTypizer, deleteWebhookEndpoint, exportBatch, extract, favoriteCatalogEntry, forkCatalogEntry, generateTypizer, getActPdf, getAgentThread, getBalance, getBatch, getBillingProfile, getCatalogEntry, getCatalogPublisher, getCommunityCatalogEntry, getCompany, getConnectorLinkRequest, getContractRequestPdf, getDemoQuota, getDemoRun, getFile, getFileContent, getMe, getMyConsents, getOpenApiDocument, getOrganization, getOwnCatalogPublisher, getPayment, getRun, getRunOutput, getStatus, getSupportConfig, getSupportConversation, getSupportWidgetConfig, getSupportWidgetState, getToolOcrQuota, getTypizer, getTypizerCatalogUpdate, getTypizerVersion, getTypizerXsd, getUsage, getWebhookEndpoint, installCatalogEntry, listAgentThreads, listApiKeys, listBatches, listCatalog, listCatalogVersions, listContractRequests, listDemoSamples, listInboundMailboxes, listInboundMessages, listOwnCatalogEntries, listPayments, listRuns, listSignIns, listSupportConversations, listTypizers, listTypizerVersions, listWebhookDeliveries, listWebhookEndpoints, type Options, publishTypizer, rateSupportConversation, rejectConnectorLinkRequest, reopenSupportConversation, reportCatalogEntry, retryRun, retryWebhookDelivery, rotateInboundMailbox, saveAgentThread, startLogin, streamSupportWidget, suggestCompanies, testWebhookEndpoint, unfavoriteCatalogEntry, unpublishCatalogEntry, updateAgentThread, updateAutotopup, updateBillingProfile, updateInboundMailbox, updateOrganization, updateTypizer, updateWebhookEndpoint, upsertOwnCatalogPublisher, verifySupportEmail } from './sdk.gen.js';
|
|
2
|
-
export type { AgentMessage, AgentThread, ApiKey, ApplyTypizerCatalogUpdateData, ApplyTypizerCatalogUpdateError, ApplyTypizerCatalogUpdateErrors, ApplyTypizerCatalogUpdateResponse, ApplyTypizerCatalogUpdateResponses, ApproveConnectorLinkRequestData, ApproveConnectorLinkRequestError, ApproveConnectorLinkRequestErrors, ApproveConnectorLinkRequestResponse, ApproveConnectorLinkRequestResponses, Balance, BalanceLot, Batch, BillingProfile, CatalogEntry, CatalogEntryBrief, CatalogFavorite, CatalogInstallRequest, CatalogList, CatalogOwnEntry, CatalogPublisher, CatalogPublisherBrief, CatalogPublisherRequest, CatalogReport, CatalogReportRequest, CatalogUpdate, CatalogUpdateRequest, CatalogVersion, CatalogVersionBrief, Checkout, CheckoutRequest, ClientOptions, CloseSupportConversationData, CloseSupportConversationError, CloseSupportConversationErrors, CloseSupportConversationResponse, CloseSupportConversationResponses, Company, CompanyList, ConnectorLink, ConnectorLinkAuthorization, ConnectorLinkRequest, ConnectorLinkRequestRejected, ConsentRequest, ContractRequest, ContractRequestList, CreateAgentMessageData, CreateAgentMessageError, CreateAgentMessageErrors, CreateAgentMessageRequest, CreateAgentMessageResponse, CreateAgentMessageResponses, CreateAgentSampleRunData, CreateAgentSampleRunError, CreateAgentSampleRunErrors, CreateAgentSampleRunResponse, CreateAgentSampleRunResponses, CreateAgentThreadData, CreateAgentThreadError, CreateAgentThreadErrors, CreateAgentThreadRequest, CreateAgentThreadResponse, CreateAgentThreadResponses, CreateApiKeyData, CreateApiKeyError, CreateApiKeyErrors, CreateApiKeyRequest, CreateApiKeyResponse, CreateApiKeyResponses, CreateBatchData, CreateBatchError, CreateBatchErrors, CreateBatchRequest, CreateBatchResponse, CreateBatchResponses, CreateCheckoutData, CreateCheckoutError, CreateCheckoutErrors, CreateCheckoutResponse, CreateCheckoutResponses, CreateConnectorLinkData, CreateConnectorLinkError, CreateConnectorLinkErrors, CreateConnectorLinkRequest, CreateConnectorLinkResponse, CreateConnectorLinkResponses, CreateConsentData, CreateConsentError, CreateConsentErrors, CreateConsentResponse, CreateConsentResponses, CreateContractRequestData, CreateContractRequestError, CreateContractRequestErrors, CreateContractRequestResponse, CreateContractRequestResponses, CreatedApiKey, CreateDemoRunData, CreateDemoRunError, CreateDemoRunErrors, CreateDemoRunResponse, CreateDemoRunResponses, CreateFileData, CreateFileError, CreateFileErrors, CreateFileResponse, CreateFileResponses, CreateInboundMailboxData, CreateInboundMailboxError, CreateInboundMailboxErrors, CreateInboundMailboxRequest, CreateInboundMailboxResponse, CreateInboundMailboxResponses, CreateInvoiceData, CreateInvoiceError, CreateInvoiceErrors, CreateInvoiceRequest, CreateInvoiceResponse, CreateInvoiceResponses, CreateRunData, CreateRunError, CreateRunErrors, CreateRunRequest, CreateRunResponse, CreateRunResponses, CreateSupportAttachmentData, CreateSupportAttachmentError, CreateSupportAttachmentErrors, CreateSupportAttachmentResponse, CreateSupportAttachmentResponses, CreateSupportConversationData, CreateSupportConversationError, CreateSupportConversationErrors, CreateSupportConversationRequest, CreateSupportConversationResponse, CreateSupportConversationResponses, CreateSupportEmailCodeData, CreateSupportEmailCodeError, CreateSupportEmailCodeErrors, CreateSupportEmailCodeRequest, CreateSupportEmailCodeResponse, CreateSupportEmailCodeResponses, CreateSupportMessageData, CreateSupportMessageError, CreateSupportMessageErrors, CreateSupportMessageRequest, CreateSupportMessageResponse, CreateSupportMessageResponses, CreateSupportWidgetChallengeData, CreateSupportWidgetChallengeError, CreateSupportWidgetChallengeErrors, CreateSupportWidgetChallengeResponse, CreateSupportWidgetChallengeResponses, CreateSupportWidgetMessageData, CreateSupportWidgetMessageError, CreateSupportWidgetMessageErrors, CreateSupportWidgetMessageRequest, CreateSupportWidgetMessageResponse, CreateSupportWidgetMessageResponses, CreateSupportWidgetTokenData, CreateSupportWidgetTokenError, CreateSupportWidgetTokenErrors, CreateSupportWidgetTokenResponse, CreateSupportWidgetTokenResponses, CreateSupportWidgetVisitorData, CreateSupportWidgetVisitorError, CreateSupportWidgetVisitorErrors, CreateSupportWidgetVisitorRequest, CreateSupportWidgetVisitorResponse, CreateSupportWidgetVisitorResponses, CreateToolOcrData, CreateToolOcrError, CreateToolOcrErrors, CreateToolOcrResponse, CreateToolOcrResponses, CreateTypizerData, CreateTypizerError, CreateTypizerErrors, CreateTypizerRequest, CreateTypizerResponse, CreateTypizerResponses, CreateWebhookEndpointData, CreateWebhookEndpointError, CreateWebhookEndpointErrors, CreateWebhookEndpointRequest, CreateWebhookEndpointResponse, CreateWebhookEndpointResponses, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyErrors, DeleteApiKeyResponse, DeleteApiKeyResponses, DeletedApiKey, DeletedFile, DeletedInboundMailbox, DeletedTypizer, DeletedWebhookEndpoint, DeleteFileData, DeleteFileError, DeleteFileErrors, DeleteFileResponse, DeleteFileResponses, DeleteInboundMailboxData, DeleteInboundMailboxError, DeleteInboundMailboxErrors, DeleteInboundMailboxResponse, DeleteInboundMailboxResponses, DeleteMeData, DeleteMeError, DeleteMeErrors, DeleteMeResponse, DeleteMeResponses, DeleteOrganizationData, DeleteOrganizationError, DeleteOrganizationErrors, DeleteOrganizationResponse, DeleteOrganizationResponses, DeleteTypizerData, DeleteTypizerError, DeleteTypizerErrors, DeleteTypizerResponse, DeleteTypizerResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointError, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponse, DeleteWebhookEndpointResponses, DemoQuota, DemoRun, DemoRunRequest, DemoSample, DemoSampleList, ExportBatchData, ExportBatchError, ExportBatchErrors, ExportBatchResponse, ExportBatchResponses, ExtractData, ExtractError, ExtractErrors, ExtractRequest, ExtractResponse, ExtractResponses, FavoriteCatalogEntryData, FavoriteCatalogEntryError, FavoriteCatalogEntryErrors, FavoriteCatalogEntryResponse, FavoriteCatalogEntryResponses, File, ForkCatalogEntryData, ForkCatalogEntryError, ForkCatalogEntryErrors, ForkCatalogEntryResponse, ForkCatalogEntryResponses, GenerateTypizerData, GenerateTypizerError, GenerateTypizerErrors, GenerateTypizerRequest, GenerateTypizerResponse, GenerateTypizerResponses, GetActPdfData, GetActPdfError, GetActPdfErrors, GetActPdfResponse, GetActPdfResponses, GetAgentThreadData, GetAgentThreadError, GetAgentThreadErrors, GetAgentThreadResponse, GetAgentThreadResponses, GetBalanceData, GetBalanceError, GetBalanceErrors, GetBalanceResponse, GetBalanceResponses, GetBatchData, GetBatchError, GetBatchErrors, GetBatchResponse, GetBatchResponses, GetBillingProfileData, GetBillingProfileError, GetBillingProfileErrors, GetBillingProfileResponse, GetBillingProfileResponses, GetCatalogEntryData, GetCatalogEntryError, GetCatalogEntryErrors, GetCatalogEntryResponse, GetCatalogEntryResponses, GetCatalogPublisherData, GetCatalogPublisherError, GetCatalogPublisherErrors, GetCatalogPublisherResponse, GetCatalogPublisherResponses, GetCommunityCatalogEntryData, GetCommunityCatalogEntryError, GetCommunityCatalogEntryErrors, GetCommunityCatalogEntryResponse, GetCommunityCatalogEntryResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetConnectorLinkRequestData, GetConnectorLinkRequestError, GetConnectorLinkRequestErrors, GetConnectorLinkRequestResponse, GetConnectorLinkRequestResponses, GetContractRequestPdfData, GetContractRequestPdfError, GetContractRequestPdfErrors, GetContractRequestPdfResponse, GetContractRequestPdfResponses, GetDemoQuotaData, GetDemoQuotaError, GetDemoQuotaErrors, GetDemoQuotaResponse, GetDemoQuotaResponses, GetDemoRunData, GetDemoRunError, GetDemoRunErrors, GetDemoRunResponse, GetDemoRunResponses, GetFileContentData, GetFileContentError, GetFileContentErrors, GetFileContentResponse, GetFileContentResponses, GetFileData, GetFileError, GetFileErrors, GetFileResponse, GetFileResponses, GetMeData, GetMeError, GetMeErrors, GetMeResponse, GetMeResponses, GetMyConsentsData, GetMyConsentsError, GetMyConsentsErrors, GetMyConsentsResponse, GetMyConsentsResponses, GetOpenApiDocumentData, GetOpenApiDocumentError, GetOpenApiDocumentErrors, GetOpenApiDocumentResponse, GetOpenApiDocumentResponses, GetOrganizationData, GetOrganizationError, GetOrganizationErrors, GetOrganizationResponse, GetOrganizationResponses, GetOwnCatalogPublisherData, GetOwnCatalogPublisherError, GetOwnCatalogPublisherErrors, GetOwnCatalogPublisherResponse, GetOwnCatalogPublisherResponses, GetPaymentData, GetPaymentError, GetPaymentErrors, GetPaymentResponse, GetPaymentResponses, GetRunData, GetRunError, GetRunErrors, GetRunOutputData, GetRunOutputError, GetRunOutputErrors, GetRunOutputResponses, GetRunResponse, GetRunResponses, GetStatusData, GetStatusError, GetStatusErrors, GetStatusResponse, GetStatusResponses, GetSupportConfigData, GetSupportConfigError, GetSupportConfigErrors, GetSupportConfigResponse, GetSupportConfigResponses, GetSupportConversationData, GetSupportConversationError, GetSupportConversationErrors, GetSupportConversationResponse, GetSupportConversationResponses, GetSupportWidgetConfigData, GetSupportWidgetConfigError, GetSupportWidgetConfigErrors, GetSupportWidgetConfigResponse, GetSupportWidgetConfigResponses, GetSupportWidgetStateData, GetSupportWidgetStateError, GetSupportWidgetStateErrors, GetSupportWidgetStateResponse, GetSupportWidgetStateResponses, GetToolOcrQuotaData, GetToolOcrQuotaError, GetToolOcrQuotaErrors, GetToolOcrQuotaResponse, GetToolOcrQuotaResponses, GetTypizerCatalogUpdateData, GetTypizerCatalogUpdateError, GetTypizerCatalogUpdateErrors, GetTypizerCatalogUpdateResponse, GetTypizerCatalogUpdateResponses, GetTypizerData, GetTypizerError, GetTypizerErrors, GetTypizerResponse, GetTypizerResponses, GetTypizerVersionData, GetTypizerVersionError, GetTypizerVersionErrors, GetTypizerVersionResponse, GetTypizerVersionResponses, GetTypizerXsdData, GetTypizerXsdError, GetTypizerXsdErrors, GetTypizerXsdResponse, GetTypizerXsdResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetWebhookEndpointData, GetWebhookEndpointError, GetWebhookEndpointErrors, GetWebhookEndpointResponse, GetWebhookEndpointResponses, IdempotencyKey, IdempotencyKeyIgnored, InboundMailbox, InboundMailboxList, InboundMessage, InstallCatalogEntryData, InstallCatalogEntryError, InstallCatalogEntryErrors, InstallCatalogEntryResponse, InstallCatalogEntryResponses, ListAgentThreadsData, ListAgentThreadsError, ListAgentThreadsErrors, ListAgentThreadsResponse, ListAgentThreadsResponses, ListApiKeysData, ListApiKeysError, ListApiKeysErrors, ListApiKeysResponse, ListApiKeysResponses, ListBatchesData, ListBatchesError, ListBatchesErrors, ListBatchesResponse, ListBatchesResponses, ListCatalogData, ListCatalogError, ListCatalogErrors, ListCatalogResponse, ListCatalogResponses, ListCatalogVersionsData, ListCatalogVersionsError, ListCatalogVersionsErrors, ListCatalogVersionsResponse, ListCatalogVersionsResponses, ListContractRequestsData, ListContractRequestsError, ListContractRequestsErrors, ListContractRequestsResponse, ListContractRequestsResponses, ListDemoSamplesData, ListDemoSamplesError, ListDemoSamplesErrors, ListDemoSamplesResponse, ListDemoSamplesResponses, ListInboundMailboxesData, ListInboundMailboxesError, ListInboundMailboxesErrors, ListInboundMailboxesResponse, ListInboundMailboxesResponses, ListInboundMessagesData, ListInboundMessagesError, ListInboundMessagesErrors, ListInboundMessagesResponse, ListInboundMessagesResponses, ListOwnCatalogEntriesData, ListOwnCatalogEntriesError, ListOwnCatalogEntriesErrors, ListOwnCatalogEntriesResponse, ListOwnCatalogEntriesResponses, ListPaymentsData, ListPaymentsError, ListPaymentsErrors, ListPaymentsResponse, ListPaymentsResponses, ListRunsData, ListRunsError, ListRunsErrors, ListRunsResponse, ListRunsResponses, ListSignInsData, ListSignInsError, ListSignInsErrors, ListSignInsResponse, ListSignInsResponses, ListSupportConversationsData, ListSupportConversationsError, ListSupportConversationsErrors, ListSupportConversationsResponse, ListSupportConversationsResponses, ListTypizersData, ListTypizersError, ListTypizersErrors, ListTypizersResponse, ListTypizersResponses, ListTypizerVersionsData, ListTypizerVersionsError, ListTypizerVersionsErrors, ListTypizerVersionsResponse, ListTypizerVersionsResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesError, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponse, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsError, ListWebhookEndpointsErrors, ListWebhookEndpointsResponse, ListWebhookEndpointsResponses, LoginChallenge, LoginStartRequest, MaintenanceEvent, MarketingConsentState, Me, MyConsents, OcrPage, OcrQuota, OcrResult, OcrTable, Organization, Payment, PaymentList, Problem, PublishTypizerData, PublishTypizerError, PublishTypizerErrors, PublishTypizerRequest, PublishTypizerResponse, PublishTypizerResponses, RateSupportConversationData, RateSupportConversationError, RateSupportConversationErrors, RateSupportConversationRequest, RateSupportConversationResponse, RateSupportConversationResponses, RejectConnectorLinkRequestData, RejectConnectorLinkRequestError, RejectConnectorLinkRequestErrors, RejectConnectorLinkRequestResponse, RejectConnectorLinkRequestResponses, ReopenSupportConversationData, ReopenSupportConversationError, ReopenSupportConversationErrors, ReopenSupportConversationResponse, ReopenSupportConversationResponses, ReportCatalogEntryData, ReportCatalogEntryError, ReportCatalogEntryErrors, ReportCatalogEntryResponse, ReportCatalogEntryResponses, RetryRunData, RetryRunError, RetryRunErrors, RetryRunResponse, RetryRunResponses, RetryWebhookDeliveryData, RetryWebhookDeliveryError, RetryWebhookDeliveryErrors, RetryWebhookDeliveryResponse, RetryWebhookDeliveryResponses, RotateInboundMailboxData, RotateInboundMailboxError, RotateInboundMailboxErrors, RotateInboundMailboxResponse, RotateInboundMailboxResponses, Run, SaveAgentThreadData, SaveAgentThreadError, SaveAgentThreadErrors, SaveAgentThreadRequest, SaveAgentThreadResponse, SaveAgentThreadResponses, SchemaChange, Scope, SignIn, SignInList, StartLoginData, StartLoginError, StartLoginErrors, StartLoginResponse, StartLoginResponses, Status, StreamSupportWidgetData, StreamSupportWidgetError, StreamSupportWidgetErrors, StreamSupportWidgetResponse, StreamSupportWidgetResponses, SuggestCompaniesData, SuggestCompaniesError, SuggestCompaniesErrors, SuggestCompaniesResponse, SuggestCompaniesResponses, SupportAttachment, SupportAttachmentInfo, SupportConfig, SupportConversation, SupportEmailCode, SupportEmailVerified, SupportMessage, SupportWidgetChallenge, SupportWidgetConfig, SupportWidgetReply, SupportWidgetState, SupportWidgetToken, SupportWidgetVisitor, TestWebhookEndpointData, TestWebhookEndpointError, TestWebhookEndpointErrors, TestWebhookEndpointResponse, TestWebhookEndpointResponses, Typizer, TypizerDraft, TypizerOrganization, TypizerVersion, UnfavoriteCatalogEntryData, UnfavoriteCatalogEntryError, UnfavoriteCatalogEntryErrors, UnfavoriteCatalogEntryResponse, UnfavoriteCatalogEntryResponses, UnpublishCatalogEntryData, UnpublishCatalogEntryError, UnpublishCatalogEntryErrors, UnpublishCatalogEntryResponse, UnpublishCatalogEntryResponses, UpdateAgentThreadData, UpdateAgentThreadError, UpdateAgentThreadErrors, UpdateAgentThreadRequest, UpdateAgentThreadResponse, UpdateAgentThreadResponses, UpdateAutotopupData, UpdateAutotopupError, UpdateAutotopupErrors, UpdateAutotopupRequest, UpdateAutotopupResponse, UpdateAutotopupResponses, UpdateBillingProfileData, UpdateBillingProfileError, UpdateBillingProfileErrors, UpdateBillingProfileRequest, UpdateBillingProfileResponse, UpdateBillingProfileResponses, UpdateInboundMailboxData, UpdateInboundMailboxError, UpdateInboundMailboxErrors, UpdateInboundMailboxRequest, UpdateInboundMailboxResponse, UpdateInboundMailboxResponses, UpdateOrganizationData, UpdateOrganizationError, UpdateOrganizationErrors, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateOrganizationResponses, UpdateTypizerData, UpdateTypizerError, UpdateTypizerErrors, UpdateTypizerRequest, UpdateTypizerResponse, UpdateTypizerResponses, UpdateWebhookEndpointData, UpdateWebhookEndpointError, UpdateWebhookEndpointErrors, UpdateWebhookEndpointRequest, UpdateWebhookEndpointResponse, UpdateWebhookEndpointResponses, UpsertOwnCatalogPublisherData, UpsertOwnCatalogPublisherError, UpsertOwnCatalogPublisherErrors, UpsertOwnCatalogPublisherResponse, UpsertOwnCatalogPublisherResponses, Usage, UsageRow, VerifySupportEmailData, VerifySupportEmailError, VerifySupportEmailErrors, VerifySupportEmailRequest, VerifySupportEmailResponse, VerifySupportEmailResponses, WebhookDelivery, WebhookEndpoint, WebhookEventType } from './types.gen.js';
|
|
1
|
+
export { applyTypizerCatalogUpdate, approveConnectorLinkRequest, closeSupportConversation, createAgentMessage, createAgentSampleRun, createAgentThread, createApiKey, createBatch, createCheckout, createConnectorLink, createConsent, createContractRequest, createDemoRun, createFile, createInboundMailbox, createInvoice, createRun, createSupportAttachment, createSupportConversation, createSupportEmailCode, createSupportMessage, createSupportWidgetChallenge, createSupportWidgetMessage, createSupportWidgetToken, createSupportWidgetVisitor, createToolOcr, createTypizer, createValidator, createWebhookEndpoint, deleteApiKey, deleteFile, deleteInboundMailbox, deleteMe, deleteOrganization, deleteTypizer, deleteValidator, deleteWebhookEndpoint, exportBatch, extract, favoriteCatalogEntry, forkCatalogEntry, generateTypizer, getActPdf, getAgentThread, getBalance, getBatch, getBillingProfile, getCatalogEntry, getCatalogPublisher, getCommunityCatalogEntry, getCompany, getConnectorLinkRequest, getContractRequestPdf, getDemoQuota, getDemoRun, getFile, getFileContent, getMe, getMyConsents, getOpenApiDocument, getOrganization, getOwnCatalogPublisher, getPayment, getRun, getRunOutput, getStatus, getSupportConfig, getSupportConversation, getSupportWidgetConfig, getSupportWidgetState, getToolOcrQuota, getTypizer, getTypizerCatalogUpdate, getTypizerVersion, getTypizerXsd, getUsage, getValidator, getValidatorBySlug, getWebhookEndpoint, installCatalogEntry, listAgentThreads, listApiKeys, listBatches, listCatalog, listCatalogVersions, listContractRequests, listDemoSamples, listInboundMailboxes, listInboundMessages, listOwnCatalogEntries, listPayments, listRuns, listSignIns, listSupportConversations, listTypizers, listTypizerVersions, listValidatorFieldValues, listValidators, listWebhookDeliveries, listWebhookEndpoints, type Options, publishTypizer, publishValidator, rateSupportConversation, rejectConnectorLinkRequest, reopenSupportConversation, reportCatalogEntry, retryRun, retryWebhookDelivery, rotateInboundMailbox, saveAgentThread, startLogin, streamSupportWidget, suggestCompanies, suggestValidator, testValidator, testWebhookEndpoint, unfavoriteCatalogEntry, unpublishCatalogEntry, updateAgentThread, updateAutotopup, updateBillingProfile, updateInboundMailbox, updateOrganization, updateTypizer, updateValidator, updateWebhookEndpoint, upsertOwnCatalogPublisher, verifySupportEmail } from './sdk.gen.js';
|
|
2
|
+
export type { AgentMessage, AgentThread, ApiKey, ApplyTypizerCatalogUpdateData, ApplyTypizerCatalogUpdateError, ApplyTypizerCatalogUpdateErrors, ApplyTypizerCatalogUpdateResponse, ApplyTypizerCatalogUpdateResponses, ApproveConnectorLinkRequestData, ApproveConnectorLinkRequestError, ApproveConnectorLinkRequestErrors, ApproveConnectorLinkRequestResponse, ApproveConnectorLinkRequestResponses, Balance, BalanceLot, Batch, BillingProfile, CatalogEntry, CatalogEntryBrief, CatalogFavorite, CatalogForkValidatorRequest, CatalogInstallRequest, CatalogList, CatalogOwnEntry, CatalogPublisher, CatalogPublisherBrief, CatalogPublisherRequest, CatalogReport, CatalogReportRequest, CatalogUpdate, CatalogUpdateRequest, CatalogValidatorBrief, CatalogValidatorVersion, CatalogVersion, CatalogVersionBrief, Checkout, CheckoutRequest, ClientOptions, CloseSupportConversationData, CloseSupportConversationError, CloseSupportConversationErrors, CloseSupportConversationResponse, CloseSupportConversationResponses, Company, CompanyList, ConnectorLink, ConnectorLinkAuthorization, ConnectorLinkRequest, ConnectorLinkRequestRejected, ConsentRequest, ContractRequest, ContractRequestList, CreateAgentMessageData, CreateAgentMessageError, CreateAgentMessageErrors, CreateAgentMessageRequest, CreateAgentMessageResponse, CreateAgentMessageResponses, CreateAgentSampleRunData, CreateAgentSampleRunError, CreateAgentSampleRunErrors, CreateAgentSampleRunResponse, CreateAgentSampleRunResponses, CreateAgentThreadData, CreateAgentThreadError, CreateAgentThreadErrors, CreateAgentThreadRequest, CreateAgentThreadResponse, CreateAgentThreadResponses, CreateApiKeyData, CreateApiKeyError, CreateApiKeyErrors, CreateApiKeyRequest, CreateApiKeyResponse, CreateApiKeyResponses, CreateBatchData, CreateBatchError, CreateBatchErrors, CreateBatchRequest, CreateBatchResponse, CreateBatchResponses, CreateCheckoutData, CreateCheckoutError, CreateCheckoutErrors, CreateCheckoutResponse, CreateCheckoutResponses, CreateConnectorLinkData, CreateConnectorLinkError, CreateConnectorLinkErrors, CreateConnectorLinkRequest, CreateConnectorLinkResponse, CreateConnectorLinkResponses, CreateConsentData, CreateConsentError, CreateConsentErrors, CreateConsentResponse, CreateConsentResponses, CreateContractRequestData, CreateContractRequestError, CreateContractRequestErrors, CreateContractRequestResponse, CreateContractRequestResponses, CreatedApiKey, CreateDemoRunData, CreateDemoRunError, CreateDemoRunErrors, CreateDemoRunResponse, CreateDemoRunResponses, CreateFileData, CreateFileError, CreateFileErrors, CreateFileResponse, CreateFileResponses, CreateInboundMailboxData, CreateInboundMailboxError, CreateInboundMailboxErrors, CreateInboundMailboxRequest, CreateInboundMailboxResponse, CreateInboundMailboxResponses, CreateInvoiceData, CreateInvoiceError, CreateInvoiceErrors, CreateInvoiceRequest, CreateInvoiceResponse, CreateInvoiceResponses, CreateRunData, CreateRunError, CreateRunErrors, CreateRunRequest, CreateRunResponse, CreateRunResponses, CreateSupportAttachmentData, CreateSupportAttachmentError, CreateSupportAttachmentErrors, CreateSupportAttachmentResponse, CreateSupportAttachmentResponses, CreateSupportConversationData, CreateSupportConversationError, CreateSupportConversationErrors, CreateSupportConversationRequest, CreateSupportConversationResponse, CreateSupportConversationResponses, CreateSupportEmailCodeData, CreateSupportEmailCodeError, CreateSupportEmailCodeErrors, CreateSupportEmailCodeRequest, CreateSupportEmailCodeResponse, CreateSupportEmailCodeResponses, CreateSupportMessageData, CreateSupportMessageError, CreateSupportMessageErrors, CreateSupportMessageRequest, CreateSupportMessageResponse, CreateSupportMessageResponses, CreateSupportWidgetChallengeData, CreateSupportWidgetChallengeError, CreateSupportWidgetChallengeErrors, CreateSupportWidgetChallengeResponse, CreateSupportWidgetChallengeResponses, CreateSupportWidgetMessageData, CreateSupportWidgetMessageError, CreateSupportWidgetMessageErrors, CreateSupportWidgetMessageRequest, CreateSupportWidgetMessageResponse, CreateSupportWidgetMessageResponses, CreateSupportWidgetTokenData, CreateSupportWidgetTokenError, CreateSupportWidgetTokenErrors, CreateSupportWidgetTokenResponse, CreateSupportWidgetTokenResponses, CreateSupportWidgetVisitorData, CreateSupportWidgetVisitorError, CreateSupportWidgetVisitorErrors, CreateSupportWidgetVisitorRequest, CreateSupportWidgetVisitorResponse, CreateSupportWidgetVisitorResponses, CreateToolOcrData, CreateToolOcrError, CreateToolOcrErrors, CreateToolOcrResponse, CreateToolOcrResponses, CreateTypizerData, CreateTypizerError, CreateTypizerErrors, CreateTypizerRequest, CreateTypizerResponse, CreateTypizerResponses, CreateValidatorData, CreateValidatorError, CreateValidatorErrors, CreateValidatorRequest, CreateValidatorResponse, CreateValidatorResponses, CreateWebhookEndpointData, CreateWebhookEndpointError, CreateWebhookEndpointErrors, CreateWebhookEndpointRequest, CreateWebhookEndpointResponse, CreateWebhookEndpointResponses, DeleteApiKeyData, DeleteApiKeyError, DeleteApiKeyErrors, DeleteApiKeyResponse, DeleteApiKeyResponses, DeletedApiKey, DeletedFile, DeletedInboundMailbox, DeletedTypizer, DeletedValidator, DeletedWebhookEndpoint, DeleteFileData, DeleteFileError, DeleteFileErrors, DeleteFileResponse, DeleteFileResponses, DeleteInboundMailboxData, DeleteInboundMailboxError, DeleteInboundMailboxErrors, DeleteInboundMailboxResponse, DeleteInboundMailboxResponses, DeleteMeData, DeleteMeError, DeleteMeErrors, DeleteMeResponse, DeleteMeResponses, DeleteOrganizationData, DeleteOrganizationError, DeleteOrganizationErrors, DeleteOrganizationResponse, DeleteOrganizationResponses, DeleteTypizerData, DeleteTypizerError, DeleteTypizerErrors, DeleteTypizerResponse, DeleteTypizerResponses, DeleteValidatorData, DeleteValidatorError, DeleteValidatorErrors, DeleteValidatorResponse, DeleteValidatorResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointError, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponse, DeleteWebhookEndpointResponses, DemoQuota, DemoRun, DemoRunRequest, DemoSample, DemoSampleList, ExportBatchData, ExportBatchError, ExportBatchErrors, ExportBatchResponse, ExportBatchResponses, ExtractData, ExtractError, ExtractErrors, ExtractRequest, ExtractResponse, ExtractResponses, FavoriteCatalogEntryData, FavoriteCatalogEntryError, FavoriteCatalogEntryErrors, FavoriteCatalogEntryResponse, FavoriteCatalogEntryResponses, FieldCheck, FieldResult, FieldSource, FieldValues, File, ForkCatalogEntryData, ForkCatalogEntryError, ForkCatalogEntryErrors, ForkCatalogEntryResponse, ForkCatalogEntryResponses, GenerateTypizerData, GenerateTypizerError, GenerateTypizerErrors, GenerateTypizerRequest, GenerateTypizerResponse, GenerateTypizerResponses, GetActPdfData, GetActPdfError, GetActPdfErrors, GetActPdfResponse, GetActPdfResponses, GetAgentThreadData, GetAgentThreadError, GetAgentThreadErrors, GetAgentThreadResponse, GetAgentThreadResponses, GetBalanceData, GetBalanceError, GetBalanceErrors, GetBalanceResponse, GetBalanceResponses, GetBatchData, GetBatchError, GetBatchErrors, GetBatchResponse, GetBatchResponses, GetBillingProfileData, GetBillingProfileError, GetBillingProfileErrors, GetBillingProfileResponse, GetBillingProfileResponses, GetCatalogEntryData, GetCatalogEntryError, GetCatalogEntryErrors, GetCatalogEntryResponse, GetCatalogEntryResponses, GetCatalogPublisherData, GetCatalogPublisherError, GetCatalogPublisherErrors, GetCatalogPublisherResponse, GetCatalogPublisherResponses, GetCommunityCatalogEntryData, GetCommunityCatalogEntryError, GetCommunityCatalogEntryErrors, GetCommunityCatalogEntryResponse, GetCommunityCatalogEntryResponses, GetCompanyData, GetCompanyError, GetCompanyErrors, GetCompanyResponse, GetCompanyResponses, GetConnectorLinkRequestData, GetConnectorLinkRequestError, GetConnectorLinkRequestErrors, GetConnectorLinkRequestResponse, GetConnectorLinkRequestResponses, GetContractRequestPdfData, GetContractRequestPdfError, GetContractRequestPdfErrors, GetContractRequestPdfResponse, GetContractRequestPdfResponses, GetDemoQuotaData, GetDemoQuotaError, GetDemoQuotaErrors, GetDemoQuotaResponse, GetDemoQuotaResponses, GetDemoRunData, GetDemoRunError, GetDemoRunErrors, GetDemoRunResponse, GetDemoRunResponses, GetFileContentData, GetFileContentError, GetFileContentErrors, GetFileContentResponse, GetFileContentResponses, GetFileData, GetFileError, GetFileErrors, GetFileResponse, GetFileResponses, GetMeData, GetMeError, GetMeErrors, GetMeResponse, GetMeResponses, GetMyConsentsData, GetMyConsentsError, GetMyConsentsErrors, GetMyConsentsResponse, GetMyConsentsResponses, GetOpenApiDocumentData, GetOpenApiDocumentError, GetOpenApiDocumentErrors, GetOpenApiDocumentResponse, GetOpenApiDocumentResponses, GetOrganizationData, GetOrganizationError, GetOrganizationErrors, GetOrganizationResponse, GetOrganizationResponses, GetOwnCatalogPublisherData, GetOwnCatalogPublisherError, GetOwnCatalogPublisherErrors, GetOwnCatalogPublisherResponse, GetOwnCatalogPublisherResponses, GetPaymentData, GetPaymentError, GetPaymentErrors, GetPaymentResponse, GetPaymentResponses, GetRunData, GetRunError, GetRunErrors, GetRunOutputData, GetRunOutputError, GetRunOutputErrors, GetRunOutputResponses, GetRunResponse, GetRunResponses, GetStatusData, GetStatusError, GetStatusErrors, GetStatusResponse, GetStatusResponses, GetSupportConfigData, GetSupportConfigError, GetSupportConfigErrors, GetSupportConfigResponse, GetSupportConfigResponses, GetSupportConversationData, GetSupportConversationError, GetSupportConversationErrors, GetSupportConversationResponse, GetSupportConversationResponses, GetSupportWidgetConfigData, GetSupportWidgetConfigError, GetSupportWidgetConfigErrors, GetSupportWidgetConfigResponse, GetSupportWidgetConfigResponses, GetSupportWidgetStateData, GetSupportWidgetStateError, GetSupportWidgetStateErrors, GetSupportWidgetStateResponse, GetSupportWidgetStateResponses, GetToolOcrQuotaData, GetToolOcrQuotaError, GetToolOcrQuotaErrors, GetToolOcrQuotaResponse, GetToolOcrQuotaResponses, GetTypizerCatalogUpdateData, GetTypizerCatalogUpdateError, GetTypizerCatalogUpdateErrors, GetTypizerCatalogUpdateResponse, GetTypizerCatalogUpdateResponses, GetTypizerData, GetTypizerError, GetTypizerErrors, GetTypizerResponse, GetTypizerResponses, GetTypizerVersionData, GetTypizerVersionError, GetTypizerVersionErrors, GetTypizerVersionResponse, GetTypizerVersionResponses, GetTypizerXsdData, GetTypizerXsdError, GetTypizerXsdErrors, GetTypizerXsdResponse, GetTypizerXsdResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetValidatorBySlugData, GetValidatorBySlugError, GetValidatorBySlugErrors, GetValidatorBySlugResponse, GetValidatorBySlugResponses, GetValidatorData, GetValidatorError, GetValidatorErrors, GetValidatorResponse, GetValidatorResponses, GetWebhookEndpointData, GetWebhookEndpointError, GetWebhookEndpointErrors, GetWebhookEndpointResponse, GetWebhookEndpointResponses, IdempotencyKey, IdempotencyKeyIgnored, InboundMailbox, InboundMailboxList, InboundMessage, InstallCatalogEntryData, InstallCatalogEntryError, InstallCatalogEntryErrors, InstallCatalogEntryResponse, InstallCatalogEntryResponses, ListAgentThreadsData, ListAgentThreadsError, ListAgentThreadsErrors, ListAgentThreadsResponse, ListAgentThreadsResponses, ListApiKeysData, ListApiKeysError, ListApiKeysErrors, ListApiKeysResponse, ListApiKeysResponses, ListBatchesData, ListBatchesError, ListBatchesErrors, ListBatchesResponse, ListBatchesResponses, ListCatalogData, ListCatalogError, ListCatalogErrors, ListCatalogResponse, ListCatalogResponses, ListCatalogVersionsData, ListCatalogVersionsError, ListCatalogVersionsErrors, ListCatalogVersionsResponse, ListCatalogVersionsResponses, ListContractRequestsData, ListContractRequestsError, ListContractRequestsErrors, ListContractRequestsResponse, ListContractRequestsResponses, ListDemoSamplesData, ListDemoSamplesError, ListDemoSamplesErrors, ListDemoSamplesResponse, ListDemoSamplesResponses, ListInboundMailboxesData, ListInboundMailboxesError, ListInboundMailboxesErrors, ListInboundMailboxesResponse, ListInboundMailboxesResponses, ListInboundMessagesData, ListInboundMessagesError, ListInboundMessagesErrors, ListInboundMessagesResponse, ListInboundMessagesResponses, ListOwnCatalogEntriesData, ListOwnCatalogEntriesError, ListOwnCatalogEntriesErrors, ListOwnCatalogEntriesResponse, ListOwnCatalogEntriesResponses, ListPaymentsData, ListPaymentsError, ListPaymentsErrors, ListPaymentsResponse, ListPaymentsResponses, ListRunsData, ListRunsError, ListRunsErrors, ListRunsResponse, ListRunsResponses, ListSignInsData, ListSignInsError, ListSignInsErrors, ListSignInsResponse, ListSignInsResponses, ListSupportConversationsData, ListSupportConversationsError, ListSupportConversationsErrors, ListSupportConversationsResponse, ListSupportConversationsResponses, ListTypizersData, ListTypizersError, ListTypizersErrors, ListTypizersResponse, ListTypizersResponses, ListTypizerVersionsData, ListTypizerVersionsError, ListTypizerVersionsErrors, ListTypizerVersionsResponse, ListTypizerVersionsResponses, ListValidatorFieldValuesData, ListValidatorFieldValuesError, ListValidatorFieldValuesErrors, ListValidatorFieldValuesResponse, ListValidatorFieldValuesResponses, ListValidatorsData, ListValidatorsError, ListValidatorsErrors, ListValidatorsResponse, ListValidatorsResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesError, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponse, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsError, ListWebhookEndpointsErrors, ListWebhookEndpointsResponse, ListWebhookEndpointsResponses, LoginChallenge, LoginStartRequest, MaintenanceEvent, MarketingConsentState, Me, MyConsents, OcrPage, OcrQuota, OcrResult, OcrTable, Organization, Payment, PaymentList, Problem, PublishTypizerData, PublishTypizerError, PublishTypizerErrors, PublishTypizerRequest, PublishTypizerResponse, PublishTypizerResponses, PublishValidatorData, PublishValidatorError, PublishValidatorErrors, PublishValidatorRequest, PublishValidatorResponse, PublishValidatorResponses, RateSupportConversationData, RateSupportConversationError, RateSupportConversationErrors, RateSupportConversationRequest, RateSupportConversationResponse, RateSupportConversationResponses, RejectConnectorLinkRequestData, RejectConnectorLinkRequestError, RejectConnectorLinkRequestErrors, RejectConnectorLinkRequestResponse, RejectConnectorLinkRequestResponses, ReopenSupportConversationData, ReopenSupportConversationError, ReopenSupportConversationErrors, ReopenSupportConversationResponse, ReopenSupportConversationResponses, ReportCatalogEntryData, ReportCatalogEntryError, ReportCatalogEntryErrors, ReportCatalogEntryResponse, ReportCatalogEntryResponses, RetryRunData, RetryRunError, RetryRunErrors, RetryRunResponse, RetryRunResponses, RetryWebhookDeliveryData, RetryWebhookDeliveryError, RetryWebhookDeliveryErrors, RetryWebhookDeliveryResponse, RetryWebhookDeliveryResponses, RotateInboundMailboxData, RotateInboundMailboxError, RotateInboundMailboxErrors, RotateInboundMailboxResponse, RotateInboundMailboxResponses, Run, RunCheckUsed, SaveAgentThreadData, SaveAgentThreadError, SaveAgentThreadErrors, SaveAgentThreadRequest, SaveAgentThreadResponse, SaveAgentThreadResponses, SchemaChange, Scope, SignIn, SignInList, StartLoginData, StartLoginError, StartLoginErrors, StartLoginResponse, StartLoginResponses, Status, StreamSupportWidgetData, StreamSupportWidgetError, StreamSupportWidgetErrors, StreamSupportWidgetResponse, StreamSupportWidgetResponses, SuggestCompaniesData, SuggestCompaniesError, SuggestCompaniesErrors, SuggestCompaniesResponse, SuggestCompaniesResponses, SuggestValidatorData, SuggestValidatorError, SuggestValidatorErrors, SuggestValidatorRequest, SuggestValidatorResponse, SuggestValidatorResponses, SupportAttachment, SupportAttachmentInfo, SupportConfig, SupportConversation, SupportEmailCode, SupportEmailVerified, SupportMessage, SupportWidgetChallenge, SupportWidgetConfig, SupportWidgetReply, SupportWidgetState, SupportWidgetToken, SupportWidgetVisitor, TestValidatorData, TestValidatorError, TestValidatorErrors, TestValidatorRequest, TestValidatorResponse, TestValidatorResponses, TestWebhookEndpointData, TestWebhookEndpointError, TestWebhookEndpointErrors, TestWebhookEndpointResponse, TestWebhookEndpointResponses, Typizer, TypizerCheck, TypizerDraft, TypizerOrganization, TypizerVersion, UnfavoriteCatalogEntryData, UnfavoriteCatalogEntryError, UnfavoriteCatalogEntryErrors, UnfavoriteCatalogEntryResponse, UnfavoriteCatalogEntryResponses, UnpublishCatalogEntryData, UnpublishCatalogEntryError, UnpublishCatalogEntryErrors, UnpublishCatalogEntryResponse, UnpublishCatalogEntryResponses, UpdateAgentThreadData, UpdateAgentThreadError, UpdateAgentThreadErrors, UpdateAgentThreadRequest, UpdateAgentThreadResponse, UpdateAgentThreadResponses, UpdateAutotopupData, UpdateAutotopupError, UpdateAutotopupErrors, UpdateAutotopupRequest, UpdateAutotopupResponse, UpdateAutotopupResponses, UpdateBillingProfileData, UpdateBillingProfileError, UpdateBillingProfileErrors, UpdateBillingProfileRequest, UpdateBillingProfileResponse, UpdateBillingProfileResponses, UpdateInboundMailboxData, UpdateInboundMailboxError, UpdateInboundMailboxErrors, UpdateInboundMailboxRequest, UpdateInboundMailboxResponse, UpdateInboundMailboxResponses, UpdateOrganizationData, UpdateOrganizationError, UpdateOrganizationErrors, UpdateOrganizationRequest, UpdateOrganizationResponse, UpdateOrganizationResponses, UpdateTypizerData, UpdateTypizerError, UpdateTypizerErrors, UpdateTypizerRequest, UpdateTypizerResponse, UpdateTypizerResponses, UpdateValidatorData, UpdateValidatorError, UpdateValidatorErrors, UpdateValidatorRequest, UpdateValidatorResponse, UpdateValidatorResponses, UpdateWebhookEndpointData, UpdateWebhookEndpointError, UpdateWebhookEndpointErrors, UpdateWebhookEndpointRequest, UpdateWebhookEndpointResponse, UpdateWebhookEndpointResponses, UpsertOwnCatalogPublisherData, UpsertOwnCatalogPublisherError, UpsertOwnCatalogPublisherErrors, UpsertOwnCatalogPublisherResponse, UpsertOwnCatalogPublisherResponses, Usage, UsageRow, Validator, ValidatorDetail, ValidatorSuggestion, ValidatorTest, ValidatorTestResult, ValidatorUpdateResult, ValidatorUsedBy, ValidatorVersion, VerifySupportEmailData, VerifySupportEmailError, VerifySupportEmailErrors, VerifySupportEmailRequest, VerifySupportEmailResponse, VerifySupportEmailResponses, WebhookDelivery, WebhookEndpoint, WebhookEventType } from './types.gen.js';
|
package/dist/gen/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export { applyTypizerCatalogUpdate, approveConnectorLinkRequest, closeSupportConversation, createAgentMessage, createAgentSampleRun, createAgentThread, createApiKey, createBatch, createCheckout, createConnectorLink, createConsent, createContractRequest, createDemoRun, createFile, createInboundMailbox, createInvoice, createRun, createSupportAttachment, createSupportConversation, createSupportEmailCode, createSupportMessage, createSupportWidgetChallenge, createSupportWidgetMessage, createSupportWidgetToken, createSupportWidgetVisitor, createToolOcr, createTypizer, createWebhookEndpoint, deleteApiKey, deleteFile, deleteInboundMailbox, deleteMe, deleteOrganization, deleteTypizer, deleteWebhookEndpoint, exportBatch, extract, favoriteCatalogEntry, forkCatalogEntry, generateTypizer, getActPdf, getAgentThread, getBalance, getBatch, getBillingProfile, getCatalogEntry, getCatalogPublisher, getCommunityCatalogEntry, getCompany, getConnectorLinkRequest, getContractRequestPdf, getDemoQuota, getDemoRun, getFile, getFileContent, getMe, getMyConsents, getOpenApiDocument, getOrganization, getOwnCatalogPublisher, getPayment, getRun, getRunOutput, getStatus, getSupportConfig, getSupportConversation, getSupportWidgetConfig, getSupportWidgetState, getToolOcrQuota, getTypizer, getTypizerCatalogUpdate, getTypizerVersion, getTypizerXsd, getUsage, getWebhookEndpoint, installCatalogEntry, listAgentThreads, listApiKeys, listBatches, listCatalog, listCatalogVersions, listContractRequests, listDemoSamples, listInboundMailboxes, listInboundMessages, listOwnCatalogEntries, listPayments, listRuns, listSignIns, listSupportConversations, listTypizers, listTypizerVersions, listWebhookDeliveries, listWebhookEndpoints, publishTypizer, rateSupportConversation, rejectConnectorLinkRequest, reopenSupportConversation, reportCatalogEntry, retryRun, retryWebhookDelivery, rotateInboundMailbox, saveAgentThread, startLogin, streamSupportWidget, suggestCompanies, testWebhookEndpoint, unfavoriteCatalogEntry, unpublishCatalogEntry, updateAgentThread, updateAutotopup, updateBillingProfile, updateInboundMailbox, updateOrganization, updateTypizer, updateWebhookEndpoint, upsertOwnCatalogPublisher, verifySupportEmail } from './sdk.gen.js';
|
|
2
|
+
export { applyTypizerCatalogUpdate, approveConnectorLinkRequest, closeSupportConversation, createAgentMessage, createAgentSampleRun, createAgentThread, createApiKey, createBatch, createCheckout, createConnectorLink, createConsent, createContractRequest, createDemoRun, createFile, createInboundMailbox, createInvoice, createRun, createSupportAttachment, createSupportConversation, createSupportEmailCode, createSupportMessage, createSupportWidgetChallenge, createSupportWidgetMessage, createSupportWidgetToken, createSupportWidgetVisitor, createToolOcr, createTypizer, createValidator, createWebhookEndpoint, deleteApiKey, deleteFile, deleteInboundMailbox, deleteMe, deleteOrganization, deleteTypizer, deleteValidator, deleteWebhookEndpoint, exportBatch, extract, favoriteCatalogEntry, forkCatalogEntry, generateTypizer, getActPdf, getAgentThread, getBalance, getBatch, getBillingProfile, getCatalogEntry, getCatalogPublisher, getCommunityCatalogEntry, getCompany, getConnectorLinkRequest, getContractRequestPdf, getDemoQuota, getDemoRun, getFile, getFileContent, getMe, getMyConsents, getOpenApiDocument, getOrganization, getOwnCatalogPublisher, getPayment, getRun, getRunOutput, getStatus, getSupportConfig, getSupportConversation, getSupportWidgetConfig, getSupportWidgetState, getToolOcrQuota, getTypizer, getTypizerCatalogUpdate, getTypizerVersion, getTypizerXsd, getUsage, getValidator, getValidatorBySlug, getWebhookEndpoint, installCatalogEntry, listAgentThreads, listApiKeys, listBatches, listCatalog, listCatalogVersions, listContractRequests, listDemoSamples, listInboundMailboxes, listInboundMessages, listOwnCatalogEntries, listPayments, listRuns, listSignIns, listSupportConversations, listTypizers, listTypizerVersions, listValidatorFieldValues, listValidators, listWebhookDeliveries, listWebhookEndpoints, publishTypizer, publishValidator, rateSupportConversation, rejectConnectorLinkRequest, reopenSupportConversation, reportCatalogEntry, retryRun, retryWebhookDelivery, rotateInboundMailbox, saveAgentThread, startLogin, streamSupportWidget, suggestCompanies, suggestValidator, testValidator, testWebhookEndpoint, unfavoriteCatalogEntry, unpublishCatalogEntry, updateAgentThread, updateAutotopup, updateBillingProfile, updateInboundMailbox, updateOrganization, updateTypizer, updateValidator, updateWebhookEndpoint, upsertOwnCatalogPublisher, verifySupportEmail } from './sdk.gen.js';
|
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type ClientMeta, type Options as Options2, type RequestResult, type ServerSentEventsResult, type TDataShape } from './client/index.js';
|
|
2
|
-
import type { ApplyTypizerCatalogUpdateData, ApplyTypizerCatalogUpdateErrors, ApplyTypizerCatalogUpdateResponses, ApproveConnectorLinkRequestData, ApproveConnectorLinkRequestErrors, ApproveConnectorLinkRequestResponses, CloseSupportConversationData, CloseSupportConversationErrors, CloseSupportConversationResponses, CreateAgentMessageData, CreateAgentMessageResponse, CreateAgentMessageResponses, CreateAgentSampleRunData, CreateAgentSampleRunErrors, CreateAgentSampleRunResponses, CreateAgentThreadData, CreateAgentThreadErrors, CreateAgentThreadResponses, CreateApiKeyData, CreateApiKeyErrors, CreateApiKeyResponses, CreateBatchData, CreateBatchErrors, CreateBatchResponses, CreateCheckoutData, CreateCheckoutErrors, CreateCheckoutResponses, CreateConnectorLinkData, CreateConnectorLinkErrors, CreateConnectorLinkResponses, CreateConsentData, CreateConsentErrors, CreateConsentResponses, CreateContractRequestData, CreateContractRequestErrors, CreateContractRequestResponses, CreateDemoRunData, CreateDemoRunErrors, CreateDemoRunResponses, CreateFileData, CreateFileErrors, CreateFileResponses, CreateInboundMailboxData, CreateInboundMailboxErrors, CreateInboundMailboxResponses, CreateInvoiceData, CreateInvoiceErrors, CreateInvoiceResponses, CreateRunData, CreateRunErrors, CreateRunResponses, CreateSupportAttachmentData, CreateSupportAttachmentErrors, CreateSupportAttachmentResponses, CreateSupportConversationData, CreateSupportConversationErrors, CreateSupportConversationResponses, CreateSupportEmailCodeData, CreateSupportEmailCodeErrors, CreateSupportEmailCodeResponses, CreateSupportMessageData, CreateSupportMessageErrors, CreateSupportMessageResponses, CreateSupportWidgetChallengeData, CreateSupportWidgetChallengeErrors, CreateSupportWidgetChallengeResponses, CreateSupportWidgetMessageData, CreateSupportWidgetMessageErrors, CreateSupportWidgetMessageResponses, CreateSupportWidgetTokenData, CreateSupportWidgetTokenErrors, CreateSupportWidgetTokenResponses, CreateSupportWidgetVisitorData, CreateSupportWidgetVisitorErrors, CreateSupportWidgetVisitorResponses, CreateToolOcrData, CreateToolOcrErrors, CreateToolOcrResponses, CreateTypizerData, CreateTypizerErrors, CreateTypizerResponses, CreateWebhookEndpointData, CreateWebhookEndpointErrors, CreateWebhookEndpointResponses, DeleteApiKeyData, DeleteApiKeyErrors, DeleteApiKeyResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, DeleteInboundMailboxData, DeleteInboundMailboxErrors, DeleteInboundMailboxResponses, DeleteMeData, DeleteMeErrors, DeleteMeResponses, DeleteOrganizationData, DeleteOrganizationErrors, DeleteOrganizationResponses, DeleteTypizerData, DeleteTypizerErrors, DeleteTypizerResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponses, ExportBatchData, ExportBatchErrors, ExportBatchResponses, ExtractData, ExtractErrors, ExtractResponses, FavoriteCatalogEntryData, FavoriteCatalogEntryErrors, FavoriteCatalogEntryResponses, ForkCatalogEntryData, ForkCatalogEntryErrors, ForkCatalogEntryResponses, GenerateTypizerData, GenerateTypizerErrors, GenerateTypizerResponses, GetActPdfData, GetActPdfErrors, GetActPdfResponses, GetAgentThreadData, GetAgentThreadErrors, GetAgentThreadResponses, GetBalanceData, GetBalanceErrors, GetBalanceResponses, GetBatchData, GetBatchErrors, GetBatchResponses, GetBillingProfileData, GetBillingProfileErrors, GetBillingProfileResponses, GetCatalogEntryData, GetCatalogEntryErrors, GetCatalogEntryResponses, GetCatalogPublisherData, GetCatalogPublisherErrors, GetCatalogPublisherResponses, GetCommunityCatalogEntryData, GetCommunityCatalogEntryErrors, GetCommunityCatalogEntryResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetConnectorLinkRequestData, GetConnectorLinkRequestErrors, GetConnectorLinkRequestResponses, GetContractRequestPdfData, GetContractRequestPdfErrors, GetContractRequestPdfResponses, GetDemoQuotaData, GetDemoQuotaErrors, GetDemoQuotaResponses, GetDemoRunData, GetDemoRunErrors, GetDemoRunResponses, GetFileContentData, GetFileContentErrors, GetFileContentResponses, GetFileData, GetFileErrors, GetFileResponses, GetMeData, GetMeErrors, GetMeResponses, GetMyConsentsData, GetMyConsentsErrors, GetMyConsentsResponses, GetOpenApiDocumentData, GetOpenApiDocumentErrors, GetOpenApiDocumentResponses, GetOrganizationData, GetOrganizationErrors, GetOrganizationResponses, GetOwnCatalogPublisherData, GetOwnCatalogPublisherErrors, GetOwnCatalogPublisherResponses, GetPaymentData, GetPaymentErrors, GetPaymentResponses, GetRunData, GetRunErrors, GetRunOutputData, GetRunOutputErrors, GetRunOutputResponses, GetRunResponses, GetStatusData, GetStatusErrors, GetStatusResponses, GetSupportConfigData, GetSupportConfigErrors, GetSupportConfigResponses, GetSupportConversationData, GetSupportConversationErrors, GetSupportConversationResponses, GetSupportWidgetConfigData, GetSupportWidgetConfigErrors, GetSupportWidgetConfigResponses, GetSupportWidgetStateData, GetSupportWidgetStateErrors, GetSupportWidgetStateResponses, GetToolOcrQuotaData, GetToolOcrQuotaErrors, GetToolOcrQuotaResponses, GetTypizerCatalogUpdateData, GetTypizerCatalogUpdateErrors, GetTypizerCatalogUpdateResponses, GetTypizerData, GetTypizerErrors, GetTypizerResponses, GetTypizerVersionData, GetTypizerVersionErrors, GetTypizerVersionResponses, GetTypizerXsdData, GetTypizerXsdErrors, GetTypizerXsdResponses, GetUsageData, GetUsageErrors, GetUsageResponses, GetWebhookEndpointData, GetWebhookEndpointErrors, GetWebhookEndpointResponses, InstallCatalogEntryData, InstallCatalogEntryErrors, InstallCatalogEntryResponses, ListAgentThreadsData, ListAgentThreadsErrors, ListAgentThreadsResponses, ListApiKeysData, ListApiKeysErrors, ListApiKeysResponses, ListBatchesData, ListBatchesErrors, ListBatchesResponses, ListCatalogData, ListCatalogErrors, ListCatalogResponses, ListCatalogVersionsData, ListCatalogVersionsErrors, ListCatalogVersionsResponses, ListContractRequestsData, ListContractRequestsErrors, ListContractRequestsResponses, ListDemoSamplesData, ListDemoSamplesErrors, ListDemoSamplesResponses, ListInboundMailboxesData, ListInboundMailboxesErrors, ListInboundMailboxesResponses, ListInboundMessagesData, ListInboundMessagesErrors, ListInboundMessagesResponses, ListOwnCatalogEntriesData, ListOwnCatalogEntriesErrors, ListOwnCatalogEntriesResponses, ListPaymentsData, ListPaymentsErrors, ListPaymentsResponses, ListRunsData, ListRunsErrors, ListRunsResponses, ListSignInsData, ListSignInsErrors, ListSignInsResponses, ListSupportConversationsData, ListSupportConversationsErrors, ListSupportConversationsResponses, ListTypizersData, ListTypizersErrors, ListTypizersResponses, ListTypizerVersionsData, ListTypizerVersionsErrors, ListTypizerVersionsResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsErrors, ListWebhookEndpointsResponses, PublishTypizerData, PublishTypizerErrors, PublishTypizerResponses, RateSupportConversationData, RateSupportConversationErrors, RateSupportConversationResponses, RejectConnectorLinkRequestData, RejectConnectorLinkRequestErrors, RejectConnectorLinkRequestResponses, ReopenSupportConversationData, ReopenSupportConversationErrors, ReopenSupportConversationResponses, ReportCatalogEntryData, ReportCatalogEntryErrors, ReportCatalogEntryResponses, RetryRunData, RetryRunErrors, RetryRunResponses, RetryWebhookDeliveryData, RetryWebhookDeliveryErrors, RetryWebhookDeliveryResponses, RotateInboundMailboxData, RotateInboundMailboxErrors, RotateInboundMailboxResponses, SaveAgentThreadData, SaveAgentThreadErrors, SaveAgentThreadResponses, StartLoginData, StartLoginErrors, StartLoginResponses, StreamSupportWidgetData, StreamSupportWidgetResponse, StreamSupportWidgetResponses, SuggestCompaniesData, SuggestCompaniesErrors, SuggestCompaniesResponses, TestWebhookEndpointData, TestWebhookEndpointErrors, TestWebhookEndpointResponses, UnfavoriteCatalogEntryData, UnfavoriteCatalogEntryErrors, UnfavoriteCatalogEntryResponses, UnpublishCatalogEntryData, UnpublishCatalogEntryErrors, UnpublishCatalogEntryResponses, UpdateAgentThreadData, UpdateAgentThreadErrors, UpdateAgentThreadResponses, UpdateAutotopupData, UpdateAutotopupErrors, UpdateAutotopupResponses, UpdateBillingProfileData, UpdateBillingProfileErrors, UpdateBillingProfileResponses, UpdateInboundMailboxData, UpdateInboundMailboxErrors, UpdateInboundMailboxResponses, UpdateOrganizationData, UpdateOrganizationErrors, UpdateOrganizationResponses, UpdateTypizerData, UpdateTypizerErrors, UpdateTypizerResponses, UpdateWebhookEndpointData, UpdateWebhookEndpointErrors, UpdateWebhookEndpointResponses, UpsertOwnCatalogPublisherData, UpsertOwnCatalogPublisherErrors, UpsertOwnCatalogPublisherResponses, VerifySupportEmailData, VerifySupportEmailErrors, VerifySupportEmailResponses } from './types.gen.js';
|
|
2
|
+
import type { ApplyTypizerCatalogUpdateData, ApplyTypizerCatalogUpdateErrors, ApplyTypizerCatalogUpdateResponses, ApproveConnectorLinkRequestData, ApproveConnectorLinkRequestErrors, ApproveConnectorLinkRequestResponses, CloseSupportConversationData, CloseSupportConversationErrors, CloseSupportConversationResponses, CreateAgentMessageData, CreateAgentMessageResponse, CreateAgentMessageResponses, CreateAgentSampleRunData, CreateAgentSampleRunErrors, CreateAgentSampleRunResponses, CreateAgentThreadData, CreateAgentThreadErrors, CreateAgentThreadResponses, CreateApiKeyData, CreateApiKeyErrors, CreateApiKeyResponses, CreateBatchData, CreateBatchErrors, CreateBatchResponses, CreateCheckoutData, CreateCheckoutErrors, CreateCheckoutResponses, CreateConnectorLinkData, CreateConnectorLinkErrors, CreateConnectorLinkResponses, CreateConsentData, CreateConsentErrors, CreateConsentResponses, CreateContractRequestData, CreateContractRequestErrors, CreateContractRequestResponses, CreateDemoRunData, CreateDemoRunErrors, CreateDemoRunResponses, CreateFileData, CreateFileErrors, CreateFileResponses, CreateInboundMailboxData, CreateInboundMailboxErrors, CreateInboundMailboxResponses, CreateInvoiceData, CreateInvoiceErrors, CreateInvoiceResponses, CreateRunData, CreateRunErrors, CreateRunResponses, CreateSupportAttachmentData, CreateSupportAttachmentErrors, CreateSupportAttachmentResponses, CreateSupportConversationData, CreateSupportConversationErrors, CreateSupportConversationResponses, CreateSupportEmailCodeData, CreateSupportEmailCodeErrors, CreateSupportEmailCodeResponses, CreateSupportMessageData, CreateSupportMessageErrors, CreateSupportMessageResponses, CreateSupportWidgetChallengeData, CreateSupportWidgetChallengeErrors, CreateSupportWidgetChallengeResponses, CreateSupportWidgetMessageData, CreateSupportWidgetMessageErrors, CreateSupportWidgetMessageResponses, CreateSupportWidgetTokenData, CreateSupportWidgetTokenErrors, CreateSupportWidgetTokenResponses, CreateSupportWidgetVisitorData, CreateSupportWidgetVisitorErrors, CreateSupportWidgetVisitorResponses, CreateToolOcrData, CreateToolOcrErrors, CreateToolOcrResponses, CreateTypizerData, CreateTypizerErrors, CreateTypizerResponses, CreateValidatorData, CreateValidatorErrors, CreateValidatorResponses, CreateWebhookEndpointData, CreateWebhookEndpointErrors, CreateWebhookEndpointResponses, DeleteApiKeyData, DeleteApiKeyErrors, DeleteApiKeyResponses, DeleteFileData, DeleteFileErrors, DeleteFileResponses, DeleteInboundMailboxData, DeleteInboundMailboxErrors, DeleteInboundMailboxResponses, DeleteMeData, DeleteMeErrors, DeleteMeResponses, DeleteOrganizationData, DeleteOrganizationErrors, DeleteOrganizationResponses, DeleteTypizerData, DeleteTypizerErrors, DeleteTypizerResponses, DeleteValidatorData, DeleteValidatorErrors, DeleteValidatorResponses, DeleteWebhookEndpointData, DeleteWebhookEndpointErrors, DeleteWebhookEndpointResponses, ExportBatchData, ExportBatchErrors, ExportBatchResponses, ExtractData, ExtractErrors, ExtractResponses, FavoriteCatalogEntryData, FavoriteCatalogEntryErrors, FavoriteCatalogEntryResponses, ForkCatalogEntryData, ForkCatalogEntryErrors, ForkCatalogEntryResponses, GenerateTypizerData, GenerateTypizerErrors, GenerateTypizerResponses, GetActPdfData, GetActPdfErrors, GetActPdfResponses, GetAgentThreadData, GetAgentThreadErrors, GetAgentThreadResponses, GetBalanceData, GetBalanceErrors, GetBalanceResponses, GetBatchData, GetBatchErrors, GetBatchResponses, GetBillingProfileData, GetBillingProfileErrors, GetBillingProfileResponses, GetCatalogEntryData, GetCatalogEntryErrors, GetCatalogEntryResponses, GetCatalogPublisherData, GetCatalogPublisherErrors, GetCatalogPublisherResponses, GetCommunityCatalogEntryData, GetCommunityCatalogEntryErrors, GetCommunityCatalogEntryResponses, GetCompanyData, GetCompanyErrors, GetCompanyResponses, GetConnectorLinkRequestData, GetConnectorLinkRequestErrors, GetConnectorLinkRequestResponses, GetContractRequestPdfData, GetContractRequestPdfErrors, GetContractRequestPdfResponses, GetDemoQuotaData, GetDemoQuotaErrors, GetDemoQuotaResponses, GetDemoRunData, GetDemoRunErrors, GetDemoRunResponses, GetFileContentData, GetFileContentErrors, GetFileContentResponses, GetFileData, GetFileErrors, GetFileResponses, GetMeData, GetMeErrors, GetMeResponses, GetMyConsentsData, GetMyConsentsErrors, GetMyConsentsResponses, GetOpenApiDocumentData, GetOpenApiDocumentErrors, GetOpenApiDocumentResponses, GetOrganizationData, GetOrganizationErrors, GetOrganizationResponses, GetOwnCatalogPublisherData, GetOwnCatalogPublisherErrors, GetOwnCatalogPublisherResponses, GetPaymentData, GetPaymentErrors, GetPaymentResponses, GetRunData, GetRunErrors, GetRunOutputData, GetRunOutputErrors, GetRunOutputResponses, GetRunResponses, GetStatusData, GetStatusErrors, GetStatusResponses, GetSupportConfigData, GetSupportConfigErrors, GetSupportConfigResponses, GetSupportConversationData, GetSupportConversationErrors, GetSupportConversationResponses, GetSupportWidgetConfigData, GetSupportWidgetConfigErrors, GetSupportWidgetConfigResponses, GetSupportWidgetStateData, GetSupportWidgetStateErrors, GetSupportWidgetStateResponses, GetToolOcrQuotaData, GetToolOcrQuotaErrors, GetToolOcrQuotaResponses, GetTypizerCatalogUpdateData, GetTypizerCatalogUpdateErrors, GetTypizerCatalogUpdateResponses, GetTypizerData, GetTypizerErrors, GetTypizerResponses, GetTypizerVersionData, GetTypizerVersionErrors, GetTypizerVersionResponses, GetTypizerXsdData, GetTypizerXsdErrors, GetTypizerXsdResponses, GetUsageData, GetUsageErrors, GetUsageResponses, GetValidatorBySlugData, GetValidatorBySlugErrors, GetValidatorBySlugResponses, GetValidatorData, GetValidatorErrors, GetValidatorResponses, GetWebhookEndpointData, GetWebhookEndpointErrors, GetWebhookEndpointResponses, InstallCatalogEntryData, InstallCatalogEntryErrors, InstallCatalogEntryResponses, ListAgentThreadsData, ListAgentThreadsErrors, ListAgentThreadsResponses, ListApiKeysData, ListApiKeysErrors, ListApiKeysResponses, ListBatchesData, ListBatchesErrors, ListBatchesResponses, ListCatalogData, ListCatalogErrors, ListCatalogResponses, ListCatalogVersionsData, ListCatalogVersionsErrors, ListCatalogVersionsResponses, ListContractRequestsData, ListContractRequestsErrors, ListContractRequestsResponses, ListDemoSamplesData, ListDemoSamplesErrors, ListDemoSamplesResponses, ListInboundMailboxesData, ListInboundMailboxesErrors, ListInboundMailboxesResponses, ListInboundMessagesData, ListInboundMessagesErrors, ListInboundMessagesResponses, ListOwnCatalogEntriesData, ListOwnCatalogEntriesErrors, ListOwnCatalogEntriesResponses, ListPaymentsData, ListPaymentsErrors, ListPaymentsResponses, ListRunsData, ListRunsErrors, ListRunsResponses, ListSignInsData, ListSignInsErrors, ListSignInsResponses, ListSupportConversationsData, ListSupportConversationsErrors, ListSupportConversationsResponses, ListTypizersData, ListTypizersErrors, ListTypizersResponses, ListTypizerVersionsData, ListTypizerVersionsErrors, ListTypizerVersionsResponses, ListValidatorFieldValuesData, ListValidatorFieldValuesErrors, ListValidatorFieldValuesResponses, ListValidatorsData, ListValidatorsErrors, ListValidatorsResponses, ListWebhookDeliveriesData, ListWebhookDeliveriesErrors, ListWebhookDeliveriesResponses, ListWebhookEndpointsData, ListWebhookEndpointsErrors, ListWebhookEndpointsResponses, PublishTypizerData, PublishTypizerErrors, PublishTypizerResponses, PublishValidatorData, PublishValidatorErrors, PublishValidatorResponses, RateSupportConversationData, RateSupportConversationErrors, RateSupportConversationResponses, RejectConnectorLinkRequestData, RejectConnectorLinkRequestErrors, RejectConnectorLinkRequestResponses, ReopenSupportConversationData, ReopenSupportConversationErrors, ReopenSupportConversationResponses, ReportCatalogEntryData, ReportCatalogEntryErrors, ReportCatalogEntryResponses, RetryRunData, RetryRunErrors, RetryRunResponses, RetryWebhookDeliveryData, RetryWebhookDeliveryErrors, RetryWebhookDeliveryResponses, RotateInboundMailboxData, RotateInboundMailboxErrors, RotateInboundMailboxResponses, SaveAgentThreadData, SaveAgentThreadErrors, SaveAgentThreadResponses, StartLoginData, StartLoginErrors, StartLoginResponses, StreamSupportWidgetData, StreamSupportWidgetResponse, StreamSupportWidgetResponses, SuggestCompaniesData, SuggestCompaniesErrors, SuggestCompaniesResponses, SuggestValidatorData, SuggestValidatorErrors, SuggestValidatorResponses, TestValidatorData, TestValidatorErrors, TestValidatorResponses, TestWebhookEndpointData, TestWebhookEndpointErrors, TestWebhookEndpointResponses, UnfavoriteCatalogEntryData, UnfavoriteCatalogEntryErrors, UnfavoriteCatalogEntryResponses, UnpublishCatalogEntryData, UnpublishCatalogEntryErrors, UnpublishCatalogEntryResponses, UpdateAgentThreadData, UpdateAgentThreadErrors, UpdateAgentThreadResponses, UpdateAutotopupData, UpdateAutotopupErrors, UpdateAutotopupResponses, UpdateBillingProfileData, UpdateBillingProfileErrors, UpdateBillingProfileResponses, UpdateInboundMailboxData, UpdateInboundMailboxErrors, UpdateInboundMailboxResponses, UpdateOrganizationData, UpdateOrganizationErrors, UpdateOrganizationResponses, UpdateTypizerData, UpdateTypizerErrors, UpdateTypizerResponses, UpdateValidatorData, UpdateValidatorErrors, UpdateValidatorResponses, UpdateWebhookEndpointData, UpdateWebhookEndpointErrors, UpdateWebhookEndpointResponses, UpsertOwnCatalogPublisherData, UpsertOwnCatalogPublisherErrors, UpsertOwnCatalogPublisherResponses, VerifySupportEmailData, VerifySupportEmailErrors, VerifySupportEmailResponses } from './types.gen.js';
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -619,9 +619,9 @@ export declare const listOwnCatalogEntries: <ThrowOnError extends boolean = fals
|
|
|
619
619
|
*/
|
|
620
620
|
export declare const getCatalogPublisher: <ThrowOnError extends boolean = false>(options: Options<GetCatalogPublisherData, ThrowOnError>) => RequestResult<GetCatalogPublisherResponses, GetCatalogPublisherErrors, ThrowOnError>;
|
|
621
621
|
/**
|
|
622
|
-
* Каталог готовых схем
|
|
622
|
+
* Каталог готовых схем и проверок
|
|
623
623
|
*
|
|
624
|
-
* Официальные схемы Typizer и опубликованные организациями (когда они доступны вашей организации).
|
|
624
|
+
* Официальные схемы Typizer и опубликованные организациями (когда они доступны вашей организации). С type=validator — каталог проверок полей (ИНН, СНИЛС, IBAN, VIN…): у каждой есть validator.ref для x-typizer-check. Записи «по ссылке» в список не попадают. Порядок может немного сдвинуться между страницами при пересчёте популярности (раз в час).
|
|
625
625
|
*
|
|
626
626
|
* Доступ: ключ API со скоупом typizers:read или сессия.
|
|
627
627
|
*/
|
|
@@ -635,9 +635,9 @@ export declare const listCatalog: <ThrowOnError extends boolean = false>(options
|
|
|
635
635
|
*/
|
|
636
636
|
export declare const installCatalogEntry: <ThrowOnError extends boolean = false>(options: Options<InstallCatalogEntryData, ThrowOnError>) => RequestResult<InstallCatalogEntryResponses, InstallCatalogEntryErrors, ThrowOnError>;
|
|
637
637
|
/**
|
|
638
|
-
* Создать типизатор на основе
|
|
638
|
+
* Создать типизатор или проверку на основе записи каталога
|
|
639
639
|
*
|
|
640
|
-
*
|
|
640
|
+
* Схема: всегда создаёт новый типизатор — вашу копию схемы, которую можно менять. Новые версии источника предлагаются в catalog_source.update. С type=validator создаёт вашу проверку my/<slug> с правилом и опубликованными примерами (тело — CatalogForkValidatorRequest; занятый slug — 409 с param: slug), ответ — Validator. Поддерживает Idempotency-Key.
|
|
641
641
|
*
|
|
642
642
|
* Доступ: ключ API со скоупом typizers:write или сессия.
|
|
643
643
|
*/
|
|
@@ -659,7 +659,7 @@ export declare const unfavoriteCatalogEntry: <ThrowOnError extends boolean = fal
|
|
|
659
659
|
*/
|
|
660
660
|
export declare const favoriteCatalogEntry: <ThrowOnError extends boolean = false>(options: Options<FavoriteCatalogEntryData, ThrowOnError>) => RequestResult<FavoriteCatalogEntryResponses, FavoriteCatalogEntryErrors, ThrowOnError>;
|
|
661
661
|
/**
|
|
662
|
-
* Версии
|
|
662
|
+
* Версии схемы или проверки, новые первыми
|
|
663
663
|
*
|
|
664
664
|
* Доступ: ключ API со скоупом typizers:read или сессия.
|
|
665
665
|
*/
|
|
@@ -683,7 +683,7 @@ export declare const reportCatalogEntry: <ThrowOnError extends boolean = false>(
|
|
|
683
683
|
*/
|
|
684
684
|
export declare const unpublishCatalogEntry: <ThrowOnError extends boolean = false>(options: Options<UnpublishCatalogEntryData, ThrowOnError>) => RequestResult<UnpublishCatalogEntryResponses, UnpublishCatalogEntryErrors, ThrowOnError>;
|
|
685
685
|
/**
|
|
686
|
-
* Схема каталога
|
|
686
|
+
* Схема или проверка каталога
|
|
687
687
|
*
|
|
688
688
|
* Доступ: ключ API со скоупом typizers:read или сессия.
|
|
689
689
|
*/
|
|
@@ -722,6 +722,84 @@ export declare const getTypizerCatalogUpdate: <ThrowOnError extends boolean = fa
|
|
|
722
722
|
* Доступ: ключ API со скоупом typizers:write или сессия.
|
|
723
723
|
*/
|
|
724
724
|
export declare const applyTypizerCatalogUpdate: <ThrowOnError extends boolean = false>(options: Options<ApplyTypizerCatalogUpdateData, ThrowOnError>) => RequestResult<ApplyTypizerCatalogUpdateResponses, ApplyTypizerCatalogUpdateErrors, ThrowOnError>;
|
|
725
|
+
/**
|
|
726
|
+
* Свои проверки организации, новые первыми
|
|
727
|
+
*
|
|
728
|
+
* Доступ: ключ API со скоупом typizers:read или сессия.
|
|
729
|
+
*/
|
|
730
|
+
export declare const listValidators: <ThrowOnError extends boolean = false>(options?: Options<ListValidatorsData, ThrowOnError>) => RequestResult<ListValidatorsResponses, ListValidatorsErrors, ThrowOnError>;
|
|
731
|
+
/**
|
|
732
|
+
* Создать проверку (версия 1.0.0)
|
|
733
|
+
*
|
|
734
|
+
* Подключается к полю схемы ссылкой в x-typizer-check: my/<slug>@1. До 500 проверок в организации. Занятый slug (в том числе у архивной проверки) — 409 conflict с param: slug. Поддерживает Idempotency-Key.
|
|
735
|
+
*
|
|
736
|
+
* Доступ: ключ API со скоупом typizers:write или сессия.
|
|
737
|
+
*/
|
|
738
|
+
export declare const createValidator: <ThrowOnError extends boolean = false>(options: Options<CreateValidatorData, ThrowOnError>) => RequestResult<CreateValidatorResponses, CreateValidatorErrors, ThrowOnError>;
|
|
739
|
+
/**
|
|
740
|
+
* Проверить значения проверкой (без сохранения)
|
|
741
|
+
*
|
|
742
|
+
* Передайте ref (сохранённая или официальная проверка) или spec (черновик) и до 100 значений. Ничего не сохраняется, страницы не списываются.
|
|
743
|
+
*
|
|
744
|
+
* Доступ: ключ API со скоупом typizers:read или сессия.
|
|
745
|
+
*/
|
|
746
|
+
export declare const testValidator: <ThrowOnError extends boolean = false>(options: Options<TestValidatorData, ThrowOnError>) => RequestResult<TestValidatorResponses, TestValidatorErrors, ThrowOnError>;
|
|
747
|
+
/**
|
|
748
|
+
* Предложить проверку по описанию и примерам (без сохранения)
|
|
749
|
+
*
|
|
750
|
+
* Сначала ищутся готовые проверки (candidates_from_catalog); без описания подходящая под все примеры официальная проверка сразу становится ответом (source: catalog). Без описания правило по возможности выводится из примеров сразу (source: shape) — без модели и без расхода лимита. Иначе проверку составляет модель и прогоняет на ваших примерах до 3 раз; если все примеры так и не сошлись, возвращается лучший вариант с converged: false. Вызов модели расходует одну единицу дневной квоты ассистента, как генерация схемы (сверх неё — 429 с Retry-After). Ничего не сохраняется: сохраните проверку через POST /v1/validators.
|
|
751
|
+
*
|
|
752
|
+
* Доступ: ключ API со скоупом typizers:write или сессия.
|
|
753
|
+
*/
|
|
754
|
+
export declare const suggestValidator: <ThrowOnError extends boolean = false>(options: Options<SuggestValidatorData, ThrowOnError>) => RequestResult<SuggestValidatorResponses, SuggestValidatorErrors, ThrowOnError>;
|
|
755
|
+
/**
|
|
756
|
+
* Значения поля из последних прогонов
|
|
757
|
+
*
|
|
758
|
+
* Только сессия Кабинета. Уникальные значения поля (path вида seller.inn или items[].amount) из успешных прогонов типизатора за days дней (до 30), самые частые первыми, не больше limit (до 500). Читаются только результаты, которые ещё хранятся (по настройке хранения результатов организации). Ответ не кешируется.
|
|
759
|
+
*
|
|
760
|
+
* Доступ: только сессия.
|
|
761
|
+
*
|
|
762
|
+
* @deprecated
|
|
763
|
+
*/
|
|
764
|
+
export declare const listValidatorFieldValues: <ThrowOnError extends boolean = false>(options: Options<ListValidatorFieldValuesData, ThrowOnError>) => RequestResult<ListValidatorFieldValuesResponses, ListValidatorFieldValuesErrors, ThrowOnError>;
|
|
765
|
+
/**
|
|
766
|
+
* Получить свою проверку по ссылке my/<slug>
|
|
767
|
+
*
|
|
768
|
+
* Доступ: ключ API со скоупом typizers:read или сессия.
|
|
769
|
+
*/
|
|
770
|
+
export declare const getValidatorBySlug: <ThrowOnError extends boolean = false>(options: Options<GetValidatorBySlugData, ThrowOnError>) => RequestResult<GetValidatorBySlugResponses, GetValidatorBySlugErrors, ThrowOnError>;
|
|
771
|
+
/**
|
|
772
|
+
* Архивировать проверку
|
|
773
|
+
*
|
|
774
|
+
* Пока проверку использует хотя бы один типизатор — 409 conflict с param: used_by. Версии сохраняются для прогонов, которые их использовали.
|
|
775
|
+
*
|
|
776
|
+
* Доступ: ключ API со скоупом typizers:write или сессия.
|
|
777
|
+
*/
|
|
778
|
+
export declare const deleteValidator: <ThrowOnError extends boolean = false>(options: Options<DeleteValidatorData, ThrowOnError>) => RequestResult<DeleteValidatorResponses, DeleteValidatorErrors, ThrowOnError>;
|
|
779
|
+
/**
|
|
780
|
+
* Получить проверку с версиями и типизаторами, которые её используют
|
|
781
|
+
*
|
|
782
|
+
* Доступ: ключ API со скоупом typizers:read или сессия.
|
|
783
|
+
*/
|
|
784
|
+
export declare const getValidator: <ThrowOnError extends boolean = false>(options: Options<GetValidatorData, ThrowOnError>) => RequestResult<GetValidatorResponses, GetValidatorErrors, ThrowOnError>;
|
|
785
|
+
/**
|
|
786
|
+
* Изменить проверку (новая версия)
|
|
787
|
+
*
|
|
788
|
+
* Версии неизменяемы: изменение создаёт новую версию, semver решает машина (bump). Новая minor/patch сразу получают типизаторы, которые ссылаются на проверку без точной версии (my/x или my/x@1): у них появляется новая версия (propagated_to). Точная ссылка my/x@1.2.0 остаётся на своей версии. Новую major типизаторы не получают сами (suggested_to).
|
|
789
|
+
*
|
|
790
|
+
* Доступ: ключ API со скоупом typizers:write или сессия.
|
|
791
|
+
*/
|
|
792
|
+
export declare const updateValidator: <ThrowOnError extends boolean = false>(options: Options<UpdateValidatorData, ThrowOnError>) => RequestResult<UpdateValidatorResponses, UpdateValidatorErrors, ThrowOnError>;
|
|
793
|
+
/**
|
|
794
|
+
* Опубликовать проверку в каталоге
|
|
795
|
+
*
|
|
796
|
+
* Только сессия владельца или администратора; каталог сообщества должен быть включён для организации (иначе 404). Ворота без модели: правило корректно, среди всех примеров текущей версии не меньше 3 проходящих и 2 непроходящих, все сходятся (иначе 400 с param: tests); в публикуемых примерах, значениях списков, сообщениях и описании нет персональных данных (иначе 400 invalid_request с findings: путь и вид, без значений — публикация блокируется). Версия в каталоге — версия проверки. Первая публикация — 201, следующие — 200. Публичная публикация автора без доверия ждёт модератора. Без профиля автора — 409 с param: publisher. Поддерживает Idempotency-Key.
|
|
797
|
+
*
|
|
798
|
+
* Доступ: только сессия с ролью owner или admin.
|
|
799
|
+
*
|
|
800
|
+
* @deprecated
|
|
801
|
+
*/
|
|
802
|
+
export declare const publishValidator: <ThrowOnError extends boolean = false>(options: Options<PublishValidatorData, ThrowOnError>) => RequestResult<PublishValidatorResponses, PublishValidatorErrors, ThrowOnError>;
|
|
725
803
|
/**
|
|
726
804
|
* Запустить типизатор на документе
|
|
727
805
|
*
|
|
@@ -935,7 +1013,7 @@ export declare const saveAgentThread: <ThrowOnError extends boolean = false>(opt
|
|
|
935
1013
|
/**
|
|
936
1014
|
* Отправить сообщение; ассистент отвечает потоком server-sent events
|
|
937
1015
|
*
|
|
938
|
-
* Только сессия (любая роль); диалог виден пользователю, который его начал. Расходует одну единицу дневной квоты ассистента (100 на организацию и 100 на пользователя, сутки по Москве; сверх квоты 429 с Retry-After до открытия потока). Стоимость модели ассистента также ограничена на пользователя и на организацию за сутки по Москве: когда лимит исчерпан, 429 до открытия потока или событие error с 429, завершающее текущий ход. Одно сообщение за раз в диалоге: 409 conflict, пока ассистент отвечает на предыдущее. Ответ — text/event-stream с событиями message_start, text_delta, tool_call, tool_result, schema_updated, sample_run, ask_user, error (ошибка в формате problem) и последним message_end (stop_reason: end_turn, ask_user, max_steps или aborted); комментарий : ping каждые 15 с. Ход длится не больше 300 с. Idempotency-Key принимается и игнорируется.
|
|
1016
|
+
* Только сессия (любая роль); диалог виден пользователю, который его начал. Расходует одну единицу дневной квоты ассистента (100 на организацию и 100 на пользователя, сутки по Москве; сверх квоты 429 с Retry-After до открытия потока). Стоимость модели ассистента также ограничена на пользователя и на организацию за сутки по Москве: когда лимит исчерпан, 429 до открытия потока или событие error с 429, завершающее текущий ход. Одно сообщение за раз в диалоге: 409 conflict, пока ассистент отвечает на предыдущее. Ответ — text/event-stream с событиями message_start, text_delta, tool_call, tool_result, schema_updated, sample_run, ask_user, validator_draft (карточка проверки), rules_draft (карточка сверок), error (ошибка в формате problem) и последним message_end (stop_reason: end_turn, ask_user, max_steps или aborted); комментарий : ping каждые 15 с. Ход длится не больше 300 с. Idempotency-Key принимается и игнорируется.
|
|
939
1017
|
*
|
|
940
1018
|
* Доступ: только сессия.
|
|
941
1019
|
*
|