@arbol-ai/sdk 5.43.0 → 5.45.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/dist/account/client.d.ts +0 -16
- package/dist/account/client.js +0 -40
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +0 -93
- package/dist/agenda/appointments/client.d.ts +14 -243
- package/dist/agenda/appointments/client.js +18 -17
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/appointments/models.d.ts +612 -2
- package/dist/agenda/appointments/models.js +14 -2
- package/dist/agenda/availability/client.d.ts +2 -7
- package/dist/agenda/availability/client.js +5 -4
- package/dist/agenda/availability/index.d.ts +1 -0
- package/dist/agenda/availability/models.d.ts +67 -0
- package/dist/agenda/bookingLocations/client.d.ts +2 -7
- package/dist/agenda/bookingLocations/client.js +4 -4
- package/dist/agenda/bookingLocations/index.d.ts +1 -0
- package/dist/agenda/bookingLocations/models.d.ts +67 -0
- package/dist/agenda/bookingOfferings/client.d.ts +2 -8
- package/dist/agenda/bookingOfferings/client.js +1 -1
- package/dist/agenda/bookingOfferings/index.d.ts +1 -1
- package/dist/agenda/bookingOfferings/models.d.ts +79 -1
- package/dist/agenda/bookingRequirements/client.d.ts +2 -75
- package/dist/agenda/bookingRequirements/client.js +1 -1
- package/dist/agenda/bookingRequirements/index.d.ts +1 -0
- package/dist/agenda/bookingRequirements/models.d.ts +182 -0
- package/dist/agenda/bookingSlots/client.d.ts +2 -7
- package/dist/agenda/bookingSlots/client.js +5 -4
- package/dist/agenda/bookingSlots/index.d.ts +1 -0
- package/dist/agenda/bookingSlots/models.d.ts +67 -0
- package/dist/agenda/bookingSlots/models.js +3 -0
- package/dist/agenda/bookings/client.d.ts +13 -188
- package/dist/agenda/bookings/client.js +13 -13
- package/dist/agenda/bookings/index.d.ts +1 -1
- package/dist/agenda/bookings/models.d.ts +526 -1
- package/dist/agenda/bookings/models.js +7 -1
- package/dist/agenda/firstAvailability/client.d.ts +2 -8
- package/dist/agenda/firstAvailability/client.js +4 -4
- package/dist/agenda/firstAvailability/index.d.ts +1 -1
- package/dist/agenda/firstAvailability/models.d.ts +80 -1
- package/dist/agenda/firstAvailability/models.js +4 -1
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -7
- package/dist/agenda/locations/client.js +4 -4
- package/dist/agenda/locations/index.d.ts +1 -0
- package/dist/agenda/locations/models.d.ts +67 -0
- package/dist/agenda/locations/models.js +3 -0
- package/dist/agenda/models.d.ts +2193 -839
- package/dist/agenda/models.js +9 -0
- package/dist/agenda/nearestBookingSlots/client.d.ts +2 -8
- package/dist/agenda/nearestBookingSlots/client.js +4 -4
- package/dist/agenda/nearestBookingSlots/index.d.ts +1 -1
- package/dist/agenda/nearestBookingSlots/models.d.ts +80 -2
- package/dist/agenda/nearestBookingSlots/models.js +4 -1
- package/dist/agenda/offerings/client.d.ts +7 -146
- package/dist/agenda/offerings/client.js +8 -8
- package/dist/agenda/offerings/index.d.ts +1 -1
- package/dist/agenda/offerings/models.d.ts +349 -1
- package/dist/agenda/offerings/models.js +6 -0
- package/dist/agenda/resourceSchedules/client.d.ts +4 -51
- package/dist/agenda/resourceSchedules/client.js +5 -4
- package/dist/agenda/resourceSchedules/index.d.ts +1 -0
- package/dist/agenda/resourceSchedules/models.d.ts +133 -0
- package/dist/agenda/resourceSchedules/models.js +12 -0
- package/dist/agenda/resources/client.d.ts +7 -99
- package/dist/agenda/resources/client.js +8 -8
- package/dist/agenda/resources/index.d.ts +1 -1
- package/dist/agenda/resources/models.d.ts +302 -1
- package/dist/agenda/resources/models.js +6 -0
- package/dist/agenda/scheduleRules/client.d.ts +7 -172
- package/dist/agenda/scheduleRules/client.js +10 -10
- package/dist/agenda/scheduleRules/index.d.ts +1 -1
- package/dist/agenda/scheduleRules/models.d.ts +520 -1
- package/dist/agenda/scheduleRules/models.js +31 -0
- package/dist/agenda/services/client.d.ts +7 -71
- package/dist/agenda/services/client.js +8 -8
- package/dist/agenda/services/index.d.ts +1 -1
- package/dist/agenda/services/models.d.ts +274 -1
- package/dist/agenda/services/models.js +6 -0
- package/dist/agenda/waitlist/client.d.ts +9 -217
- package/dist/agenda/waitlist/client.js +13 -13
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +482 -1
- package/dist/agenda/waitlist/models.js +16 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -20
- package/dist/raiz/agents/client.d.ts +8 -137
- package/dist/raiz/agents/client.js +12 -12
- package/dist/raiz/agents/index.d.ts +1 -1
- package/dist/raiz/agents/models.d.ts +258 -2
- package/dist/raiz/agents/models.js +13 -1
- package/dist/raiz/bulletins/client.d.ts +10 -74
- package/dist/raiz/bulletins/client.js +13 -14
- package/dist/raiz/bulletins/index.d.ts +1 -1
- package/dist/raiz/bulletins/models.d.ts +112 -1
- package/dist/raiz/bulletins/models.js +14 -0
- package/dist/raiz/campaigns/client.d.ts +11 -140
- package/dist/raiz/campaigns/client.js +14 -14
- package/dist/raiz/campaigns/index.d.ts +1 -1
- package/dist/raiz/campaigns/models.d.ts +343 -2
- package/dist/raiz/campaigns/models.js +14 -1
- package/dist/raiz/changes/client.d.ts +2 -8
- package/dist/raiz/changes/client.js +4 -4
- package/dist/raiz/changes/index.d.ts +1 -1
- package/dist/raiz/changes/models.d.ts +41 -1
- package/dist/raiz/changes/models.js +3 -0
- package/dist/raiz/channels/client.d.ts +15 -142
- package/dist/raiz/channels/client.js +16 -18
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +1511 -2
- package/dist/raiz/channels/models.js +12 -2
- package/dist/raiz/contacts/client.d.ts +12 -117
- package/dist/raiz/contacts/client.js +15 -15
- package/dist/raiz/contacts/index.d.ts +1 -1
- package/dist/raiz/contacts/models.d.ts +305 -2
- package/dist/raiz/contacts/models.js +10 -1
- package/dist/raiz/conversations/client.d.ts +18 -99
- package/dist/raiz/conversations/client.js +12 -13
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +253 -2
- package/dist/raiz/conversations/models.js +8 -2
- package/dist/raiz/definitions/client.d.ts +8 -115
- package/dist/raiz/definitions/client.js +10 -10
- package/dist/raiz/definitions/index.d.ts +1 -1
- package/dist/raiz/definitions/models.d.ts +224 -1
- package/dist/raiz/definitions/models.js +6 -0
- package/dist/raiz/evalCases/client.d.ts +10 -57
- package/dist/raiz/evalCases/client.js +8 -8
- package/dist/raiz/evalCases/index.d.ts +1 -1
- package/dist/raiz/evalCases/models.d.ts +78 -1
- package/dist/raiz/evalCases/models.js +6 -0
- package/dist/raiz/evalRuns/client.d.ts +4 -45
- package/dist/raiz/evalRuns/client.js +6 -6
- package/dist/raiz/evalRuns/index.d.ts +1 -1
- package/dist/raiz/evalRuns/models.d.ts +85 -0
- package/dist/raiz/evalRuns/models.js +3 -0
- package/dist/raiz/facts/client.d.ts +6 -65
- package/dist/raiz/facts/client.js +7 -7
- package/dist/raiz/facts/index.d.ts +1 -0
- package/dist/raiz/facts/models.d.ts +120 -0
- package/dist/raiz/facts/models.js +10 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +10 -130
- package/dist/raiz/knowledge/client.js +13 -13
- package/dist/raiz/knowledge/index.d.ts +1 -1
- package/dist/raiz/knowledge/models.d.ts +256 -1
- package/dist/raiz/knowledge/models.js +12 -0
- package/dist/raiz/models.d.ts +1474 -825
- package/dist/raiz/models.js +3 -0
- package/dist/raiz/organization/client.d.ts +7 -70
- package/dist/raiz/organization/client.js +8 -8
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/organization/models.d.ts +178 -1
- package/dist/raiz/organization/models.js +11 -0
- package/dist/raiz/profiles/client.d.ts +8 -87
- package/dist/raiz/profiles/client.js +10 -10
- package/dist/raiz/profiles/index.d.ts +1 -1
- package/dist/raiz/profiles/models.d.ts +206 -2
- package/dist/raiz/profiles/models.js +6 -0
- package/dist/raiz/reports/client.d.ts +5 -8
- package/dist/raiz/reports/client.js +4 -4
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/raiz/reports/models.d.ts +41 -0
- package/dist/raiz/reports/models.js +3 -0
- package/dist/raiz/suppressions/client.d.ts +4 -31
- package/dist/raiz/suppressions/client.js +6 -6
- package/dist/raiz/suppressions/index.d.ts +1 -1
- package/dist/raiz/suppressions/models.d.ts +114 -1
- package/dist/raiz/suppressions/models.js +6 -0
- package/dist/raiz/tasks/client.d.ts +12 -32
- package/dist/raiz/tasks/client.js +11 -11
- package/dist/raiz/tasks/index.d.ts +1 -1
- package/dist/raiz/tasks/models.d.ts +108 -2
- package/dist/raiz/tasks/models.js +4 -1
- package/dist/raiz/templates/client.d.ts +7 -84
- package/dist/raiz/templates/client.js +5 -4
- package/dist/raiz/templates/index.d.ts +1 -1
- package/dist/raiz/templates/models.d.ts +214 -1
- package/dist/raiz/templates/models.js +4 -1
- package/dist/raiz/voices/client.d.ts +2 -8
- package/dist/raiz/voices/client.js +1 -1
- package/dist/raiz/voices/index.d.ts +1 -1
- package/dist/raiz/voices/models.d.ts +40 -1
- package/package.json +3 -3
- package/dist/account/billing/client.d.ts +0 -22
- package/dist/account/billing/client.js +0 -18
- package/dist/account/billing/index.d.ts +0 -5
- package/dist/account/billing/index.js +0 -4
- package/dist/account/billing/models.d.ts +0 -74
- package/dist/account/billing/models.js +0 -10
- package/dist/account/billingProfiles/client.d.ts +0 -39
- package/dist/account/billingProfiles/client.js +0 -25
- package/dist/account/billingProfiles/index.d.ts +0 -5
- package/dist/account/billingProfiles/index.js +0 -4
- package/dist/account/billingProfiles/models.d.ts +0 -58
- package/dist/account/invoiceDocuments/client.d.ts +0 -25
- package/dist/account/invoiceDocuments/client.js +0 -17
- package/dist/account/invoiceDocuments/index.d.ts +0 -5
- package/dist/account/invoiceDocuments/index.js +0 -4
- package/dist/account/invoiceDocuments/models.d.ts +0 -35
- package/dist/account/invoices/client.d.ts +0 -47
- package/dist/account/invoices/client.js +0 -26
- package/dist/account/invoices/index.d.ts +0 -5
- package/dist/account/invoices/index.js +0 -4
- package/dist/account/invoices/models.d.ts +0 -135
- package/dist/account/invoices/models.js +0 -24
- package/dist/account/payments/client.d.ts +0 -34
- package/dist/account/payments/client.js +0 -19
- package/dist/account/payments/index.d.ts +0 -5
- package/dist/account/payments/index.js +0 -4
- package/dist/account/payments/models.d.ts +0 -64
- package/dist/account/payments/models.js +0 -12
- package/dist/account/usage/client.d.ts +0 -47
- package/dist/account/usage/client.js +0 -18
- package/dist/account/usage/index.d.ts +0 -5
- package/dist/account/usage/index.js +0 -4
- package/dist/account/usage/models.d.ts +0 -51
- package/dist/account/usageSummary/client.d.ts +0 -26
- package/dist/account/usageSummary/client.js +0 -19
- package/dist/account/usageSummary/index.d.ts +0 -5
- package/dist/account/usageSummary/index.js +0 -4
- package/dist/account/usageSummary/models.d.ts +0 -50
- package/dist/account/usageSummary/models.js +0 -9
- package/dist/account/walletTransactions/client.d.ts +0 -34
- package/dist/account/walletTransactions/client.js +0 -19
- package/dist/account/walletTransactions/index.d.ts +0 -5
- package/dist/account/walletTransactions/index.js +0 -4
- package/dist/account/walletTransactions/models.d.ts +0 -58
- package/dist/account/walletTransactions/models.js +0 -12
- /package/dist/{account/billingProfiles → agenda/availability}/models.js +0 -0
- /package/dist/{account/invoiceDocuments → agenda/bookingLocations}/models.js +0 -0
- /package/dist/{account/usage → agenda/bookingRequirements}/models.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { RaizCreateKnowledgeDocumentBodyCodec, RaizKnowledgeDocumentPageResponseCodec, RaizKnowledgeDocumentResponseCodec, RaizUpdateKnowledgeDocumentBodyCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -18,36 +18,36 @@ const CreateOperation = {
|
|
|
18
18
|
method: "POST",
|
|
19
19
|
route: "/v1/raiz/knowledge",
|
|
20
20
|
body: "flat",
|
|
21
|
-
request:
|
|
22
|
-
response:
|
|
23
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
21
|
+
request: RaizCreateKnowledgeDocumentBodyCodec,
|
|
22
|
+
response: RaizKnowledgeDocumentResponseCodec,
|
|
23
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
24
24
|
};
|
|
25
25
|
const GetOperation = {
|
|
26
26
|
method: "GET",
|
|
27
27
|
route: "/v1/raiz/knowledge/{knowledgeDocumentId}",
|
|
28
28
|
query: { expand: "expand" },
|
|
29
|
-
response:
|
|
30
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
29
|
+
response: RaizKnowledgeDocumentResponseCodec,
|
|
30
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
31
31
|
};
|
|
32
32
|
const ListOperation = {
|
|
33
33
|
method: "GET",
|
|
34
34
|
route: "/v1/raiz/knowledge",
|
|
35
35
|
query: { cursor: "cursor", direction: "direction", limit: "limit", indexStatus: "indexStatus", kind: "kind", q: "q", status: "status" },
|
|
36
|
-
response:
|
|
37
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
36
|
+
response: RaizKnowledgeDocumentPageResponseCodec,
|
|
37
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
38
38
|
};
|
|
39
39
|
const SearchOperation = {
|
|
40
40
|
method: "POST",
|
|
41
41
|
route: "/v1/raiz/knowledge/search",
|
|
42
42
|
body: "flat",
|
|
43
43
|
response: null,
|
|
44
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
44
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
45
45
|
};
|
|
46
46
|
const UpdateOperation = {
|
|
47
47
|
method: "PATCH",
|
|
48
48
|
route: "/v1/raiz/knowledge/{knowledgeDocumentId}",
|
|
49
49
|
body: "flat",
|
|
50
|
-
request:
|
|
51
|
-
response:
|
|
52
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
50
|
+
request: RaizUpdateKnowledgeDocumentBodyCodec,
|
|
51
|
+
response: RaizKnowledgeDocumentResponseCodec,
|
|
52
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
53
53
|
};
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, CreateRequest, CreateResponse, GetRequest, GetResponse, ListRequest, ListResponse, SearchRequest, SearchResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
-
export type { RaizCrawlSettings, RaizKnowledgeDocument, RaizKnowledgeDocumentPage, RaizKnowledgeFileInput, RaizKnowledgePassage, RaizKnowledgePassagePage, } from "./models.js";
|
|
5
|
+
export type { RaizCrawlSettings, RaizCreateKnowledgeDocumentBody, RaizCreateKnowledgeDocumentServiceUnavailableError, RaizCreateKnowledgeDocumentServiceUnavailableFailure, RaizCreateKnowledgeDocumentUnprocessableContentError, RaizCreateKnowledgeDocumentUnprocessableContentFailure, RaizGetKnowledgeDocumentServiceUnavailableError, RaizGetKnowledgeDocumentServiceUnavailableFailure, RaizKnowledgeDocument, RaizKnowledgeDocumentPage, RaizKnowledgeDocumentPageResponse, RaizKnowledgeDocumentResponse, RaizKnowledgeFileInput, RaizKnowledgePassage, RaizKnowledgePassagePage, RaizKnowledgePassagePageResponse, RaizListKnowledgeDocumentsBadRequestError, RaizListKnowledgeDocumentsBadRequestFailure, RaizListKnowledgeDocumentsServiceUnavailableError, RaizListKnowledgeDocumentsServiceUnavailableFailure, RaizSearchKnowledgeBadRequestError, RaizSearchKnowledgeBadRequestFailure, RaizSearchKnowledgeBody, RaizSearchKnowledgeServiceUnavailableError, RaizSearchKnowledgeServiceUnavailableFailure, RaizUpdateKnowledgeDocumentBody, RaizUpdateKnowledgeDocumentServiceUnavailableError, RaizUpdateKnowledgeDocumentServiceUnavailableFailure, RaizUpdateKnowledgeDocumentUnprocessableContentError, RaizUpdateKnowledgeDocumentUnprocessableContentFailure, } from "./models.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { HttpsUrl, InvalidInputFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { RaizIntegrationsUnavailableFailure, RaizInvalidCursorFailure, RaizKnowledgeFileInvalidFailure, RaizKnowledgeKindMismatchFailure, RaizWebsiteNotApprovedFailure } from "../models.js";
|
|
2
3
|
export interface RaizCrawlSettings {
|
|
3
4
|
/**
|
|
4
5
|
* Path depth below the source URL to follow; 0 imports only that page.
|
|
@@ -9,6 +10,77 @@ export interface RaizCrawlSettings {
|
|
|
9
10
|
*/
|
|
10
11
|
maxPages: number;
|
|
11
12
|
}
|
|
13
|
+
export interface RaizCreateKnowledgeDocumentBody {
|
|
14
|
+
/**
|
|
15
|
+
* Website documents only. Default: 20 pages, depth 2.
|
|
16
|
+
*/
|
|
17
|
+
crawl?: RaizCrawlSettings;
|
|
18
|
+
description?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* File documents only.
|
|
21
|
+
*/
|
|
22
|
+
file?: RaizKnowledgeFileInput;
|
|
23
|
+
/**
|
|
24
|
+
* `text`: written inline. `file`: an uploaded document (PDF, Word, Excel,
|
|
25
|
+
* HTML, CSV, plain text or Markdown). `website`: a snapshot of approved web
|
|
26
|
+
* pages.
|
|
27
|
+
*/
|
|
28
|
+
kind: "text" | "file" | "website";
|
|
29
|
+
/**
|
|
30
|
+
* Website documents only: the HTTPS page to start from. Its origin must be
|
|
31
|
+
* approved for this deployment; only same-origin pages under its path are
|
|
32
|
+
* followed, and robots.txt is respected.
|
|
33
|
+
*/
|
|
34
|
+
sourceUrl?: HttpsUrl;
|
|
35
|
+
/**
|
|
36
|
+
* A paused document is never searched; its index is kept.
|
|
37
|
+
*/
|
|
38
|
+
status?: "active" | "paused";
|
|
39
|
+
/**
|
|
40
|
+
* Text documents only: the content, plain text or Markdown.
|
|
41
|
+
*/
|
|
42
|
+
text?: string;
|
|
43
|
+
title: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A failed answer.
|
|
47
|
+
*/
|
|
48
|
+
export interface RaizCreateKnowledgeDocumentServiceUnavailableError {
|
|
49
|
+
data: null;
|
|
50
|
+
error: RaizCreateKnowledgeDocumentServiceUnavailableFailure;
|
|
51
|
+
/**
|
|
52
|
+
* What every answer carries besides its data or error.
|
|
53
|
+
*/
|
|
54
|
+
metadata: ResponseMetadata;
|
|
55
|
+
success: false;
|
|
56
|
+
}
|
|
57
|
+
export type RaizCreateKnowledgeDocumentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
58
|
+
/**
|
|
59
|
+
* A failed answer.
|
|
60
|
+
*/
|
|
61
|
+
export interface RaizCreateKnowledgeDocumentUnprocessableContentError {
|
|
62
|
+
data: null;
|
|
63
|
+
error: RaizCreateKnowledgeDocumentUnprocessableContentFailure;
|
|
64
|
+
/**
|
|
65
|
+
* What every answer carries besides its data or error.
|
|
66
|
+
*/
|
|
67
|
+
metadata: ResponseMetadata;
|
|
68
|
+
success: false;
|
|
69
|
+
}
|
|
70
|
+
export type RaizCreateKnowledgeDocumentUnprocessableContentFailure = RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure;
|
|
71
|
+
/**
|
|
72
|
+
* A failed answer.
|
|
73
|
+
*/
|
|
74
|
+
export interface RaizGetKnowledgeDocumentServiceUnavailableError {
|
|
75
|
+
data: null;
|
|
76
|
+
error: RaizGetKnowledgeDocumentServiceUnavailableFailure;
|
|
77
|
+
/**
|
|
78
|
+
* What every answer carries besides its data or error.
|
|
79
|
+
*/
|
|
80
|
+
metadata: ResponseMetadata;
|
|
81
|
+
success: false;
|
|
82
|
+
}
|
|
83
|
+
export type RaizGetKnowledgeDocumentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
12
84
|
export interface RaizKnowledgeDocument {
|
|
13
85
|
byteSize: number | null;
|
|
14
86
|
/**
|
|
@@ -71,6 +143,30 @@ export interface RaizKnowledgeDocumentPage {
|
|
|
71
143
|
*/
|
|
72
144
|
pageInfo: PageInfo;
|
|
73
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* A successful answer.
|
|
148
|
+
*/
|
|
149
|
+
export interface RaizKnowledgeDocumentPageResponse {
|
|
150
|
+
data: RaizKnowledgeDocumentPage;
|
|
151
|
+
error: null;
|
|
152
|
+
/**
|
|
153
|
+
* What every answer carries besides its data or error.
|
|
154
|
+
*/
|
|
155
|
+
metadata: ResponseMetadata;
|
|
156
|
+
success: true;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* A successful answer.
|
|
160
|
+
*/
|
|
161
|
+
export interface RaizKnowledgeDocumentResponse {
|
|
162
|
+
data: RaizKnowledgeDocument;
|
|
163
|
+
error: null;
|
|
164
|
+
/**
|
|
165
|
+
* What every answer carries besides its data or error.
|
|
166
|
+
*/
|
|
167
|
+
metadata: ResponseMetadata;
|
|
168
|
+
success: true;
|
|
169
|
+
}
|
|
74
170
|
export interface RaizKnowledgeFileInput {
|
|
75
171
|
/**
|
|
76
172
|
* The file's bytes in standard base64, at most 8 MiB decoded.
|
|
@@ -117,6 +213,165 @@ export interface RaizKnowledgePassagePage {
|
|
|
117
213
|
*/
|
|
118
214
|
pageInfo: PageInfo;
|
|
119
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* A successful answer.
|
|
218
|
+
*/
|
|
219
|
+
export interface RaizKnowledgePassagePageResponse {
|
|
220
|
+
data: RaizKnowledgePassagePage;
|
|
221
|
+
error: null;
|
|
222
|
+
/**
|
|
223
|
+
* What every answer carries besides its data or error.
|
|
224
|
+
*/
|
|
225
|
+
metadata: ResponseMetadata;
|
|
226
|
+
success: true;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* A failed answer.
|
|
230
|
+
*/
|
|
231
|
+
export interface RaizListKnowledgeDocumentsBadRequestError {
|
|
232
|
+
data: null;
|
|
233
|
+
error: RaizListKnowledgeDocumentsBadRequestFailure;
|
|
234
|
+
/**
|
|
235
|
+
* What every answer carries besides its data or error.
|
|
236
|
+
*/
|
|
237
|
+
metadata: ResponseMetadata;
|
|
238
|
+
success: false;
|
|
239
|
+
}
|
|
240
|
+
export type RaizListKnowledgeDocumentsBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
241
|
+
/**
|
|
242
|
+
* A failed answer.
|
|
243
|
+
*/
|
|
244
|
+
export interface RaizListKnowledgeDocumentsServiceUnavailableError {
|
|
245
|
+
data: null;
|
|
246
|
+
error: RaizListKnowledgeDocumentsServiceUnavailableFailure;
|
|
247
|
+
/**
|
|
248
|
+
* What every answer carries besides its data or error.
|
|
249
|
+
*/
|
|
250
|
+
metadata: ResponseMetadata;
|
|
251
|
+
success: false;
|
|
252
|
+
}
|
|
253
|
+
export type RaizListKnowledgeDocumentsServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
254
|
+
/**
|
|
255
|
+
* A failed answer.
|
|
256
|
+
*/
|
|
257
|
+
export interface RaizSearchKnowledgeBadRequestError {
|
|
258
|
+
data: null;
|
|
259
|
+
error: RaizSearchKnowledgeBadRequestFailure;
|
|
260
|
+
/**
|
|
261
|
+
* What every answer carries besides its data or error.
|
|
262
|
+
*/
|
|
263
|
+
metadata: ResponseMetadata;
|
|
264
|
+
success: false;
|
|
265
|
+
}
|
|
266
|
+
export type RaizSearchKnowledgeBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
267
|
+
export interface RaizSearchKnowledgeBody {
|
|
268
|
+
/**
|
|
269
|
+
* Search only the documents this Agent consults, as the Agent would.
|
|
270
|
+
*/
|
|
271
|
+
agentId?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
274
|
+
*/
|
|
275
|
+
cursor?: string;
|
|
276
|
+
/**
|
|
277
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
278
|
+
*/
|
|
279
|
+
direction?: "forward" | "backward";
|
|
280
|
+
/**
|
|
281
|
+
* Search only these documents (intersected with the Agent's, when both are
|
|
282
|
+
* given).
|
|
283
|
+
*/
|
|
284
|
+
knowledgeDocumentIds?: string[];
|
|
285
|
+
/**
|
|
286
|
+
* Maximum items returned in one page. Defaults to 8; larger reads require
|
|
287
|
+
* another cursor.
|
|
288
|
+
*/
|
|
289
|
+
limit?: number;
|
|
290
|
+
/**
|
|
291
|
+
* What to look for, in a few words.
|
|
292
|
+
*/
|
|
293
|
+
q?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Deprecated: use `q`. Answered until 2027-01-28.
|
|
296
|
+
*
|
|
297
|
+
* @deprecated
|
|
298
|
+
*/
|
|
299
|
+
query?: string;
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* A failed answer.
|
|
303
|
+
*/
|
|
304
|
+
export interface RaizSearchKnowledgeServiceUnavailableError {
|
|
305
|
+
data: null;
|
|
306
|
+
error: RaizSearchKnowledgeServiceUnavailableFailure;
|
|
307
|
+
/**
|
|
308
|
+
* What every answer carries besides its data or error.
|
|
309
|
+
*/
|
|
310
|
+
metadata: ResponseMetadata;
|
|
311
|
+
success: false;
|
|
312
|
+
}
|
|
313
|
+
export type RaizSearchKnowledgeServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
314
|
+
export interface RaizUpdateKnowledgeDocumentBody {
|
|
315
|
+
/**
|
|
316
|
+
* Website documents only. Default: 20 pages, depth 2.
|
|
317
|
+
*/
|
|
318
|
+
crawl?: RaizCrawlSettings;
|
|
319
|
+
description?: string | null;
|
|
320
|
+
/**
|
|
321
|
+
* The `version` you read. When present, the change applies only if nobody
|
|
322
|
+
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
323
|
+
*/
|
|
324
|
+
expectedVersion?: number;
|
|
325
|
+
/**
|
|
326
|
+
* File documents only.
|
|
327
|
+
*/
|
|
328
|
+
file?: RaizKnowledgeFileInput;
|
|
329
|
+
/**
|
|
330
|
+
* Website documents only: the HTTPS page to start from. Its origin must be
|
|
331
|
+
* approved for this deployment; only same-origin pages under its path are
|
|
332
|
+
* followed, and robots.txt is respected.
|
|
333
|
+
*/
|
|
334
|
+
sourceUrl?: HttpsUrl;
|
|
335
|
+
/**
|
|
336
|
+
* A paused document is never searched; its index is kept.
|
|
337
|
+
*/
|
|
338
|
+
status?: "active" | "paused";
|
|
339
|
+
/**
|
|
340
|
+
* Text documents only: the content, plain text or Markdown.
|
|
341
|
+
*/
|
|
342
|
+
text?: string;
|
|
343
|
+
title?: string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* A failed answer.
|
|
347
|
+
*/
|
|
348
|
+
export interface RaizUpdateKnowledgeDocumentServiceUnavailableError {
|
|
349
|
+
data: null;
|
|
350
|
+
error: RaizUpdateKnowledgeDocumentServiceUnavailableFailure;
|
|
351
|
+
/**
|
|
352
|
+
* What every answer carries besides its data or error.
|
|
353
|
+
*/
|
|
354
|
+
metadata: ResponseMetadata;
|
|
355
|
+
success: false;
|
|
356
|
+
}
|
|
357
|
+
export type RaizUpdateKnowledgeDocumentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
358
|
+
/**
|
|
359
|
+
* A failed answer.
|
|
360
|
+
*/
|
|
361
|
+
export interface RaizUpdateKnowledgeDocumentUnprocessableContentError {
|
|
362
|
+
data: null;
|
|
363
|
+
error: RaizUpdateKnowledgeDocumentUnprocessableContentFailure;
|
|
364
|
+
/**
|
|
365
|
+
* What every answer carries besides its data or error.
|
|
366
|
+
*/
|
|
367
|
+
metadata: ResponseMetadata;
|
|
368
|
+
success: false;
|
|
369
|
+
}
|
|
370
|
+
export type RaizUpdateKnowledgeDocumentUnprocessableContentFailure = RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure;
|
|
371
|
+
export declare const RaizCreateKnowledgeDocumentBodyCodec: import("../../_/codec.js").Codec;
|
|
120
372
|
export declare const RaizKnowledgeDocumentCodec: import("../../_/codec.js").Codec;
|
|
121
373
|
export declare const RaizKnowledgeDocumentPageCodec: import("../../_/codec.js").Codec;
|
|
374
|
+
export declare const RaizKnowledgeDocumentPageResponseCodec: import("../../_/codec.js").Codec;
|
|
375
|
+
export declare const RaizKnowledgeDocumentResponseCodec: import("../../_/codec.js").Codec;
|
|
122
376
|
export declare const RaizKnowledgeFileInputCodec: import("../../_/codec.js").Codec;
|
|
377
|
+
export declare const RaizUpdateKnowledgeDocumentBodyCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { array, bytes, instant, object } from "../../_/index.js";
|
|
4
|
+
export const RaizCreateKnowledgeDocumentBodyCodec = object([
|
|
5
|
+
["file", null, () => RaizKnowledgeFileInputCodec],
|
|
6
|
+
]);
|
|
4
7
|
export const RaizKnowledgeDocumentCodec = object([
|
|
5
8
|
["createdAt", null, instant],
|
|
6
9
|
["indexedAt", null, instant],
|
|
@@ -9,6 +12,15 @@ export const RaizKnowledgeDocumentCodec = object([
|
|
|
9
12
|
export const RaizKnowledgeDocumentPageCodec = object([
|
|
10
13
|
["data", null, array(() => RaizKnowledgeDocumentCodec)],
|
|
11
14
|
]);
|
|
15
|
+
export const RaizKnowledgeDocumentPageResponseCodec = object([
|
|
16
|
+
["data", null, () => RaizKnowledgeDocumentPageCodec],
|
|
17
|
+
]);
|
|
18
|
+
export const RaizKnowledgeDocumentResponseCodec = object([
|
|
19
|
+
["data", null, () => RaizKnowledgeDocumentCodec],
|
|
20
|
+
]);
|
|
12
21
|
export const RaizKnowledgeFileInputCodec = object([
|
|
13
22
|
["data", null, bytes],
|
|
14
23
|
]);
|
|
24
|
+
export const RaizUpdateKnowledgeDocumentBodyCodec = object([
|
|
25
|
+
["file", null, () => RaizKnowledgeFileInputCodec],
|
|
26
|
+
]);
|