Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/document-client-templates-validate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@epilot/document-client": minor
"@epilot/sdk": minor
---

Regenerate the document client from the Document API spec as deployed to production. New operation `validateTemplate` (`POST /v2/templates:validate`): checks a docx/xlsx/pptx template for tag and delimiter errors and, when asked, returns a corrected copy as a presigned download together with the list of issues (`TemplateIssue`: id, location such as `Tabelle1!N4`, before/after text, confidence, fixable). New types `TemplateValidationRequest` (`template_document`, `fix`, `fix_level: safe | aggressive`) and `TemplateValidationResponse` (`valid`, `fixed`, `issues`, `unresolved_errors`, `fixed_document`).
5 changes: 5 additions & 0 deletions .changeset/slick-bobcats-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@epilot/document-client": patch
---

document-api adds new template validation endpoint
2 changes: 1 addition & 1 deletion clients/chat-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@epilot/chat-client",
"version": "0.1.0",
"version": "0.1.1",
"description": "Client for the epilot Chat API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
40 changes: 20 additions & 20 deletions clients/chat-client/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1365,76 +1365,76 @@ export interface OperationMethods {
'listChatWidgets'(
parameters?: Parameters<Paths.ListChatWidgets.QueryParameters> | null,
data?: any,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.ListChatWidgets.Responses.$200>
/**
* createChatWidget
*/
'createChatWidget'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: Paths.CreateChatWidget.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.CreateChatWidget.Responses.$201>
/**
* getChatWidget
*/
'getChatWidget'(
parameters?: Parameters<Paths.V1Widgets$WidgetId.PathParameters> | null,
data?: any,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.GetChatWidget.Responses.$200>
/**
* updateChatWidget
*/
'updateChatWidget'(
parameters?: Parameters<Paths.V1Widgets$WidgetId.PathParameters> | null,
data?: Paths.UpdateChatWidget.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.UpdateChatWidget.Responses.$200>
/**
* deleteChatWidget
*/
'deleteChatWidget'(
parameters?: Parameters<Paths.DeleteChatWidget.QueryParameters & Paths.V1Widgets$WidgetId.PathParameters> | null,
data?: any,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.DeleteChatWidget.Responses.$204>
/**
* getPublicChatWidget - Resolve visitor-facing configuration for an independent widget and its current agent assignment. The widget ID is not an organisation ID or a destination such as website or portal.
*/
'getPublicChatWidget'(
parameters?: Parameters<Paths.GetPublicChatWidget.PathParameters> | null,
data?: any,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.GetPublicChatWidget.Responses.$200 | Paths.GetPublicChatWidget.Responses.Default>
/**
* createPublicChatGrant - Called by the host website with its widget_key. Checks the saved website origin allowlist and issues a single-use grant for the iframe to exchange at POST /v1/sessions within 60 seconds. This deadline does not limit the resulting session.
*/
'createPublicChatGrant'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: Paths.CreatePublicChatGrant.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.CreatePublicChatGrant.Responses.$201 | Paths.CreatePublicChatGrant.Responses.Default>
/**
* createAnonymousChatSession - Exchanges an unexpired grant once for an independent 30-minute session. Expired or previously used grants return 401 INVALID_GRANT; the host must bootstrap again.
*/
'createAnonymousChatSession'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: Paths.CreateAnonymousChatSession.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.CreateAnonymousChatSession.Responses.$201 | Paths.CreateAnonymousChatSession.Responses.Default>
/**
* sendAnonymousChatMessage - Creates a turn or replays its persisted result. Reuse request_id and the exact
* payload for a retry. History, org, agent, tools and account identity cannot be supplied.
* TEMPORARILY_UNAVAILABLE means the request outcome could not be checked; retry the same request ID and payload.
* A running request returns 409 IN_PROGRESS; a changed payload returns 409 REQUEST_CONFLICT.
* A failed admitted request never starts another model execution when retried.
*
*
*/
'sendAnonymousChatMessage'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: Paths.SendAnonymousChatMessage.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.SendAnonymousChatMessage.Responses.$200 | Paths.SendAnonymousChatMessage.Responses.Default>
}

Expand All @@ -1446,15 +1446,15 @@ export interface PathsDictionary {
'get'(
parameters?: Parameters<Paths.ListChatWidgets.QueryParameters> | null,
data?: any,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.ListChatWidgets.Responses.$200>
/**
* createChatWidget
*/
'post'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: Paths.CreateChatWidget.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.CreateChatWidget.Responses.$201>
}
['/v1/widgets/{widget_id}']: {
Expand All @@ -1464,23 +1464,23 @@ export interface PathsDictionary {
'get'(
parameters?: Parameters<Paths.V1Widgets$WidgetId.PathParameters> | null,
data?: any,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.GetChatWidget.Responses.$200>
/**
* updateChatWidget
*/
'put'(
parameters?: Parameters<Paths.V1Widgets$WidgetId.PathParameters> | null,
data?: Paths.UpdateChatWidget.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.UpdateChatWidget.Responses.$200>
/**
* deleteChatWidget
*/
'delete'(
parameters?: Parameters<Paths.DeleteChatWidget.QueryParameters & Paths.V1Widgets$WidgetId.PathParameters> | null,
data?: any,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.DeleteChatWidget.Responses.$204>
}
['/v1/widgets/{widget_id}/configuration']: {
Expand All @@ -1490,7 +1490,7 @@ export interface PathsDictionary {
'get'(
parameters?: Parameters<Paths.GetPublicChatWidget.PathParameters> | null,
data?: any,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.GetPublicChatWidget.Responses.$200 | Paths.GetPublicChatWidget.Responses.Default>
}
['/v1/bootstrap']: {
Expand All @@ -1500,7 +1500,7 @@ export interface PathsDictionary {
'post'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: Paths.CreatePublicChatGrant.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.CreatePublicChatGrant.Responses.$201 | Paths.CreatePublicChatGrant.Responses.Default>
}
['/v1/sessions']: {
Expand All @@ -1510,7 +1510,7 @@ export interface PathsDictionary {
'post'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: Paths.CreateAnonymousChatSession.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.CreateAnonymousChatSession.Responses.$201 | Paths.CreateAnonymousChatSession.Responses.Default>
}
['/v1/messages']: {
Expand All @@ -1520,12 +1520,12 @@ export interface PathsDictionary {
* TEMPORARILY_UNAVAILABLE means the request outcome could not be checked; retry the same request ID and payload.
* A running request returns 409 IN_PROGRESS; a changed payload returns 409 REQUEST_CONFLICT.
* A failed admitted request never starts another model execution when retried.
*
*
*/
'post'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: Paths.SendAnonymousChatMessage.RequestBody,
config?: AxiosRequestConfig
config?: AxiosRequestConfig
): OperationResponse<Paths.SendAnonymousChatMessage.Responses.$200 | Paths.SendAnonymousChatMessage.Responses.Default>
}
}
Expand Down
Loading
Loading