@arbol-ai/sdk 5.44.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
|
@@ -8,3 +8,9 @@ export const RaizEvalCaseCodec = object([
|
|
|
8
8
|
export const RaizEvalCasePageCodec = object([
|
|
9
9
|
["data", null, array(() => RaizEvalCaseCodec)],
|
|
10
10
|
]);
|
|
11
|
+
export const RaizEvalCasePageResponseCodec = object([
|
|
12
|
+
["data", null, () => RaizEvalCasePageCodec],
|
|
13
|
+
]);
|
|
14
|
+
export const RaizEvalCaseResponseCodec = object([
|
|
15
|
+
["data", null, () => RaizEvalCaseCodec],
|
|
16
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import
|
|
3
|
-
import { type RaizEvalRun } from "./models.js";
|
|
2
|
+
import { type RaizCreateEvalRunBody, type RaizEvalRunResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -45,52 +44,12 @@ export interface Client {
|
|
|
45
44
|
}
|
|
46
45
|
export declare function createClient(options: ClientOptions): Client;
|
|
47
46
|
export declare function bind(transport: Transport): Client;
|
|
48
|
-
export
|
|
49
|
-
|
|
50
|
-
* Agent id.
|
|
51
|
-
*/
|
|
52
|
-
agentId: string;
|
|
53
|
-
/**
|
|
54
|
-
* The candidate version: what changes in what the model reads. Omitted fields
|
|
55
|
-
* keep the live Agent's; `integrationProcedures` and `procedures` are
|
|
56
|
-
* complete sets, as in `updateAgent`.
|
|
57
|
-
*/
|
|
58
|
-
candidate?: {
|
|
59
|
-
instructions?: string | null;
|
|
60
|
-
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
61
|
-
model?: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | null;
|
|
62
|
-
procedures?: RaizAgentProcedureInput[];
|
|
63
|
-
reasoningEffort?: "none" | "low" | "medium" | "high" | "xhigh" | null;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* The Agent's kept cases to replay. Omitted: its 50 newest kept cases.
|
|
67
|
-
*/
|
|
68
|
-
caseIds?: string[];
|
|
69
|
-
/**
|
|
70
|
-
* A run calls paid models: the candidate's model on every step of each case's
|
|
71
|
-
* reply, then a small judge model per case. Send `true` to accept that cost.
|
|
72
|
-
*/
|
|
73
|
-
confirmCost: true;
|
|
74
|
-
/**
|
|
75
|
-
* Evaluation case id.
|
|
76
|
-
*/
|
|
77
|
-
feedbackCaseId?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface CreateResponse {
|
|
80
|
-
data: RaizEvalRun;
|
|
81
|
-
error: null;
|
|
82
|
-
metadata: RaizResponseMetadata;
|
|
83
|
-
success: true;
|
|
84
|
-
}
|
|
47
|
+
export type CreateRequest = RaizCreateEvalRunBody;
|
|
48
|
+
export type CreateResponse = RaizEvalRunResponse;
|
|
85
49
|
export interface GetRequest {
|
|
86
50
|
/**
|
|
87
51
|
* Evaluation run id.
|
|
88
52
|
*/
|
|
89
53
|
evalRunId: string;
|
|
90
54
|
}
|
|
91
|
-
export
|
|
92
|
-
data: RaizEvalRun;
|
|
93
|
-
error: null;
|
|
94
|
-
metadata: RaizResponseMetadata;
|
|
95
|
-
success: true;
|
|
96
|
-
}
|
|
55
|
+
export type GetResponse = RaizEvalRunResponse;
|
|
@@ -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 { RaizEvalRunResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -15,12 +15,12 @@ const CreateOperation = {
|
|
|
15
15
|
method: "POST",
|
|
16
16
|
route: "/v1/raiz/eval-runs",
|
|
17
17
|
body: "flat",
|
|
18
|
-
response:
|
|
19
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
18
|
+
response: RaizEvalRunResponseCodec,
|
|
19
|
+
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 },
|
|
20
20
|
};
|
|
21
21
|
const GetOperation = {
|
|
22
22
|
method: "GET",
|
|
23
23
|
route: "/v1/raiz/eval-runs/{evalRunId}",
|
|
24
|
-
response:
|
|
25
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
24
|
+
response: RaizEvalRunResponseCodec,
|
|
25
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
26
26
|
};
|
|
@@ -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, } from "./client.js";
|
|
5
|
-
export type { RaizEvalRun } from "./models.js";
|
|
5
|
+
export type { RaizCreateEvalRunBody, RaizCreateEvalRunConflictError, RaizCreateEvalRunConflictFailure, RaizCreateEvalRunServiceUnavailableError, RaizCreateEvalRunServiceUnavailableFailure, RaizCreateEvalRunUnprocessableContentError, RaizCreateEvalRunUnprocessableContentFailure, RaizEvalRun, RaizEvalRunResponse, } from "./models.js";
|
|
@@ -1,3 +1,75 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { RaizAgentIntegrationProcedureInput, RaizAgentProcedureInput, RaizAgentProceduresInvalidFailure, RaizAgentSettingsInvalidFailure, RaizEvalCasesUnavailableFailure, RaizFeedbackProposalUnavailableFailure, RaizIntegrationProcedureUnavailableFailure, RaizIntegrationsUnavailableFailure, RaizInvalidStateFailure } from "../models.js";
|
|
3
|
+
export interface RaizCreateEvalRunBody {
|
|
4
|
+
/**
|
|
5
|
+
* Agent id.
|
|
6
|
+
*/
|
|
7
|
+
agentId: string;
|
|
8
|
+
/**
|
|
9
|
+
* The candidate version: what changes in what the model reads. Omitted fields
|
|
10
|
+
* keep the live Agent's; `integrationProcedures` and `procedures` are
|
|
11
|
+
* complete sets, as in `updateAgent`.
|
|
12
|
+
*/
|
|
13
|
+
candidate?: {
|
|
14
|
+
instructions?: string | null;
|
|
15
|
+
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
16
|
+
model?: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | null;
|
|
17
|
+
procedures?: RaizAgentProcedureInput[];
|
|
18
|
+
reasoningEffort?: "none" | "low" | "medium" | "high" | "xhigh" | null;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The Agent's kept cases to replay. Omitted: its 50 newest kept cases.
|
|
22
|
+
*/
|
|
23
|
+
caseIds?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* A run calls paid models: the candidate's model on every step of each case's
|
|
26
|
+
* reply, then a small judge model per case. Send `true` to accept that cost.
|
|
27
|
+
*/
|
|
28
|
+
confirmCost: true;
|
|
29
|
+
/**
|
|
30
|
+
* Evaluation case id.
|
|
31
|
+
*/
|
|
32
|
+
feedbackCaseId?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A failed answer.
|
|
36
|
+
*/
|
|
37
|
+
export interface RaizCreateEvalRunConflictError {
|
|
38
|
+
data: null;
|
|
39
|
+
error: RaizCreateEvalRunConflictFailure;
|
|
40
|
+
/**
|
|
41
|
+
* What every answer carries besides its data or error.
|
|
42
|
+
*/
|
|
43
|
+
metadata: ResponseMetadata;
|
|
44
|
+
success: false;
|
|
45
|
+
}
|
|
46
|
+
export type RaizCreateEvalRunConflictFailure = RaizEvalCasesUnavailableFailure | RaizInvalidStateFailure;
|
|
47
|
+
/**
|
|
48
|
+
* A failed answer.
|
|
49
|
+
*/
|
|
50
|
+
export interface RaizCreateEvalRunServiceUnavailableError {
|
|
51
|
+
data: null;
|
|
52
|
+
error: RaizCreateEvalRunServiceUnavailableFailure;
|
|
53
|
+
/**
|
|
54
|
+
* What every answer carries besides its data or error.
|
|
55
|
+
*/
|
|
56
|
+
metadata: ResponseMetadata;
|
|
57
|
+
success: false;
|
|
58
|
+
}
|
|
59
|
+
export type RaizCreateEvalRunServiceUnavailableFailure = UpstreamUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
60
|
+
/**
|
|
61
|
+
* A failed answer.
|
|
62
|
+
*/
|
|
63
|
+
export interface RaizCreateEvalRunUnprocessableContentError {
|
|
64
|
+
data: null;
|
|
65
|
+
error: RaizCreateEvalRunUnprocessableContentFailure;
|
|
66
|
+
/**
|
|
67
|
+
* What every answer carries besides its data or error.
|
|
68
|
+
*/
|
|
69
|
+
metadata: ResponseMetadata;
|
|
70
|
+
success: false;
|
|
71
|
+
}
|
|
72
|
+
export type RaizCreateEvalRunUnprocessableContentFailure = RaizAgentProceduresInvalidFailure | RaizAgentSettingsInvalidFailure | RaizIntegrationProcedureUnavailableFailure;
|
|
1
73
|
export interface RaizEvalRun {
|
|
2
74
|
/**
|
|
3
75
|
* Agent id.
|
|
@@ -68,4 +140,17 @@ export interface RaizEvalRun {
|
|
|
68
140
|
*/
|
|
69
141
|
updatedAt: Temporal.Instant;
|
|
70
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* A successful answer.
|
|
145
|
+
*/
|
|
146
|
+
export interface RaizEvalRunResponse {
|
|
147
|
+
data: RaizEvalRun;
|
|
148
|
+
error: null;
|
|
149
|
+
/**
|
|
150
|
+
* What every answer carries besides its data or error.
|
|
151
|
+
*/
|
|
152
|
+
metadata: ResponseMetadata;
|
|
153
|
+
success: true;
|
|
154
|
+
}
|
|
71
155
|
export declare const RaizEvalRunCodec: import("../../_/codec.js").Codec;
|
|
156
|
+
export declare const RaizEvalRunResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type RaizCreateFactBody, type RaizFactResponse, type RaizUpdateFactBody } from "./models.js";
|
|
3
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The URL the paths of the API are relative to.
|
|
@@ -31,71 +31,12 @@ export interface Client {
|
|
|
31
31
|
}
|
|
32
32
|
export declare function createClient(options: ClientOptions): Client;
|
|
33
33
|
export declare function bind(transport: Transport): Client;
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* Give it or `conversationId`, not both. The id of a merged duplicate asserts
|
|
38
|
-
* on the contact that absorbed it.
|
|
39
|
-
*/
|
|
40
|
-
contactId?: string;
|
|
41
|
-
/**
|
|
42
|
-
* The conversation the fact is about, for a definition whose subject is
|
|
43
|
-
* `conversation`.
|
|
44
|
-
*/
|
|
45
|
-
conversationId?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Definition id.
|
|
48
|
-
*/
|
|
49
|
-
definitionId: string;
|
|
50
|
-
/**
|
|
51
|
-
* When the value was true or observed (RFC 3339). Defaults to now. The
|
|
52
|
-
* current fact is the newest observation that was not rejected.
|
|
53
|
-
*/
|
|
54
|
-
observedAt?: Temporal.Instant;
|
|
55
|
-
/**
|
|
56
|
-
* Why it holds: the evidence, in a sentence.
|
|
57
|
-
*/
|
|
58
|
-
reason?: string;
|
|
59
|
-
/**
|
|
60
|
-
* A closed conversation where the value was learned, cited as evidence.
|
|
61
|
-
*/
|
|
62
|
-
sourceConversationId?: string;
|
|
63
|
-
/**
|
|
64
|
-
* The message of `sourceConversationId` that says it. Requires
|
|
65
|
-
* `sourceConversationId`.
|
|
66
|
-
*/
|
|
67
|
-
sourceMessageId?: string;
|
|
68
|
-
/**
|
|
69
|
-
* A string (text), number, boolean, ISO date `YYYY-MM-DD` (date) or option
|
|
70
|
-
* key (option), per the definition's value type.
|
|
71
|
-
*/
|
|
72
|
-
value?: string | number | boolean | null;
|
|
73
|
-
/**
|
|
74
|
-
* `known` asserts `value`; `unknown` and `not_applicable` assert that there
|
|
75
|
-
* is no value (FHIR data-absent reasons) and take no `value`.
|
|
76
|
-
*/
|
|
77
|
-
valueStatus?: "known" | "unknown" | "not_applicable";
|
|
78
|
-
}
|
|
79
|
-
export interface CreateResponse {
|
|
80
|
-
data: RaizFact;
|
|
81
|
-
error: null;
|
|
82
|
-
metadata: RaizResponseMetadata;
|
|
83
|
-
success: true;
|
|
84
|
-
}
|
|
85
|
-
export interface UpdateRequest {
|
|
34
|
+
export type CreateRequest = RaizCreateFactBody;
|
|
35
|
+
export type CreateResponse = RaizFactResponse;
|
|
36
|
+
export type UpdateRequest = {
|
|
86
37
|
/**
|
|
87
38
|
* Fact id.
|
|
88
39
|
*/
|
|
89
40
|
factId: string;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
* assertion becomes current again.
|
|
93
|
-
*/
|
|
94
|
-
reviewStatus: "confirmed" | "rejected";
|
|
95
|
-
}
|
|
96
|
-
export interface UpdateResponse {
|
|
97
|
-
data: RaizFact;
|
|
98
|
-
error: null;
|
|
99
|
-
metadata: RaizResponseMetadata;
|
|
100
|
-
success: true;
|
|
101
|
-
}
|
|
41
|
+
} & RaizUpdateFactBody;
|
|
42
|
+
export type UpdateResponse = RaizFactResponse;
|
|
@@ -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 { RaizCreateFactBodyCodec, RaizFactResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -15,14 +15,14 @@ const CreateOperation = {
|
|
|
15
15
|
method: "POST",
|
|
16
16
|
route: "/v1/raiz/facts",
|
|
17
17
|
body: "flat",
|
|
18
|
-
request:
|
|
19
|
-
response:
|
|
20
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
18
|
+
request: RaizCreateFactBodyCodec,
|
|
19
|
+
response: RaizFactResponseCodec,
|
|
20
|
+
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 },
|
|
21
21
|
};
|
|
22
22
|
const UpdateOperation = {
|
|
23
23
|
method: "PATCH",
|
|
24
24
|
route: "/v1/raiz/facts/{factId}",
|
|
25
25
|
body: "flat",
|
|
26
|
-
response:
|
|
27
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
26
|
+
response: RaizFactResponseCodec,
|
|
27
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
28
28
|
};
|
|
@@ -2,3 +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, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
+
export type { RaizCreateFactBody, RaizCreateFactConflictError, RaizCreateFactConflictFailure, RaizCreateFactServiceUnavailableError, RaizCreateFactServiceUnavailableFailure, RaizCreateFactUnprocessableContentError, RaizCreateFactUnprocessableContentFailure, RaizFactResponse, RaizUpdateFactBody, RaizUpdateFactServiceUnavailableError, RaizUpdateFactServiceUnavailableFailure, } from "./models.js";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import { type RaizDefinitionNotActiveFailure, type RaizFact, type RaizFactSubjectMismatchFailure, type RaizFactValueInvalidFailure, type RaizIntegrationsUnavailableFailure, type RaizSourceConversationOpenFailure } from "../models.js";
|
|
3
|
+
export interface RaizCreateFactBody {
|
|
4
|
+
/**
|
|
5
|
+
* The contact the fact is about, for a definition whose subject is `contact`.
|
|
6
|
+
* Give it or `conversationId`, not both. The id of a merged duplicate asserts
|
|
7
|
+
* on the contact that absorbed it.
|
|
8
|
+
*/
|
|
9
|
+
contactId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The conversation the fact is about, for a definition whose subject is
|
|
12
|
+
* `conversation`.
|
|
13
|
+
*/
|
|
14
|
+
conversationId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Definition id.
|
|
17
|
+
*/
|
|
18
|
+
definitionId: string;
|
|
19
|
+
/**
|
|
20
|
+
* When the value was true or observed (RFC 3339). Defaults to now. The
|
|
21
|
+
* current fact is the newest observation that was not rejected.
|
|
22
|
+
*/
|
|
23
|
+
observedAt?: Temporal.Instant;
|
|
24
|
+
/**
|
|
25
|
+
* Why it holds: the evidence, in a sentence.
|
|
26
|
+
*/
|
|
27
|
+
reason?: string;
|
|
28
|
+
/**
|
|
29
|
+
* A closed conversation where the value was learned, cited as evidence.
|
|
30
|
+
*/
|
|
31
|
+
sourceConversationId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The message of `sourceConversationId` that says it. Requires
|
|
34
|
+
* `sourceConversationId`.
|
|
35
|
+
*/
|
|
36
|
+
sourceMessageId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* A string (text), number, boolean, ISO date `YYYY-MM-DD` (date) or option
|
|
39
|
+
* key (option), per the definition's value type.
|
|
40
|
+
*/
|
|
41
|
+
value?: string | number | boolean | null;
|
|
42
|
+
/**
|
|
43
|
+
* `known` asserts `value`; `unknown` and `not_applicable` assert that there
|
|
44
|
+
* is no value (FHIR data-absent reasons) and take no `value`.
|
|
45
|
+
*/
|
|
46
|
+
valueStatus?: "known" | "unknown" | "not_applicable";
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A failed answer.
|
|
50
|
+
*/
|
|
51
|
+
export interface RaizCreateFactConflictError {
|
|
52
|
+
data: null;
|
|
53
|
+
error: RaizCreateFactConflictFailure;
|
|
54
|
+
/**
|
|
55
|
+
* What every answer carries besides its data or error.
|
|
56
|
+
*/
|
|
57
|
+
metadata: ResponseMetadata;
|
|
58
|
+
success: false;
|
|
59
|
+
}
|
|
60
|
+
export type RaizCreateFactConflictFailure = RaizDefinitionNotActiveFailure | RaizSourceConversationOpenFailure;
|
|
61
|
+
/**
|
|
62
|
+
* A failed answer.
|
|
63
|
+
*/
|
|
64
|
+
export interface RaizCreateFactServiceUnavailableError {
|
|
65
|
+
data: null;
|
|
66
|
+
error: RaizCreateFactServiceUnavailableFailure;
|
|
67
|
+
/**
|
|
68
|
+
* What every answer carries besides its data or error.
|
|
69
|
+
*/
|
|
70
|
+
metadata: ResponseMetadata;
|
|
71
|
+
success: false;
|
|
72
|
+
}
|
|
73
|
+
export type RaizCreateFactServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
74
|
+
/**
|
|
75
|
+
* A failed answer.
|
|
76
|
+
*/
|
|
77
|
+
export interface RaizCreateFactUnprocessableContentError {
|
|
78
|
+
data: null;
|
|
79
|
+
error: RaizCreateFactUnprocessableContentFailure;
|
|
80
|
+
/**
|
|
81
|
+
* What every answer carries besides its data or error.
|
|
82
|
+
*/
|
|
83
|
+
metadata: ResponseMetadata;
|
|
84
|
+
success: false;
|
|
85
|
+
}
|
|
86
|
+
export type RaizCreateFactUnprocessableContentFailure = RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure;
|
|
87
|
+
/**
|
|
88
|
+
* A successful answer.
|
|
89
|
+
*/
|
|
90
|
+
export interface RaizFactResponse {
|
|
91
|
+
data: RaizFact;
|
|
92
|
+
error: null;
|
|
93
|
+
/**
|
|
94
|
+
* What every answer carries besides its data or error.
|
|
95
|
+
*/
|
|
96
|
+
metadata: ResponseMetadata;
|
|
97
|
+
success: true;
|
|
98
|
+
}
|
|
99
|
+
export interface RaizUpdateFactBody {
|
|
100
|
+
/**
|
|
101
|
+
* `confirmed` vouches for the fact; `rejected` withdraws it, and the previous
|
|
102
|
+
* assertion becomes current again.
|
|
103
|
+
*/
|
|
104
|
+
reviewStatus: "confirmed" | "rejected";
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A failed answer.
|
|
108
|
+
*/
|
|
109
|
+
export interface RaizUpdateFactServiceUnavailableError {
|
|
110
|
+
data: null;
|
|
111
|
+
error: RaizUpdateFactServiceUnavailableFailure;
|
|
112
|
+
/**
|
|
113
|
+
* What every answer carries besides its data or error.
|
|
114
|
+
*/
|
|
115
|
+
metadata: ResponseMetadata;
|
|
116
|
+
success: false;
|
|
117
|
+
}
|
|
118
|
+
export type RaizUpdateFactServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
119
|
+
export declare const RaizCreateFactBodyCodec: import("../../_/codec.js").Codec;
|
|
120
|
+
export declare const RaizFactResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { instant, object } from "../../_/index.js";
|
|
4
|
+
import { RaizFactCodec, } from "../models.js";
|
|
5
|
+
export const RaizCreateFactBodyCodec = object([
|
|
6
|
+
["observedAt", null, instant],
|
|
7
|
+
]);
|
|
8
|
+
export const RaizFactResponseCodec = object([
|
|
9
|
+
["data", null, () => RaizFactCodec],
|
|
10
|
+
]);
|
package/dist/raiz/index.d.ts
CHANGED
|
@@ -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, } from "./client.js";
|
|
5
|
-
export type { RaizAgentIntegrationProcedureInput, RaizAgentProcedureInput, RaizBusinessHours, RaizBusinessHoursWindow, RaizContactHoursWindow, RaizEmailAddress, RaizFact,
|
|
5
|
+
export type { RaizAddressInUseFailure, RaizAgentInUseFailure, RaizAgentIntegrationProcedureInput, RaizAgentModalityLockedFailure, RaizAgentProcedureInput, RaizAgentProceduresInvalidFailure, RaizAgentProceduresInvalidFailureData, RaizAgentSettingsInvalidFailure, RaizBulletinLimitReachedFailure, RaizBulletinPeriodInvalidFailure, RaizBusinessHours, RaizBusinessHoursWindow, RaizCallInProgressFailure, RaizCampaignAgentNotReadyFailure, RaizCampaignHeaderMissingFailure, RaizCampaignHeaderNotStoredFailure, RaizCampaignHeaderNotStoredFailureData, RaizCampaignNoRecipientsFailure, RaizCampaignVariableMissingFailure, RaizCampaignVariableMissingFailureData, RaizChannelAgentMismatchFailure, RaizChannelNotReadyFailure, RaizChannelTypeMismatchFailure, RaizContactHoursWindow, RaizConversationClosedFailure, RaizConversationNotHandedOffFailure, RaizConversationOpenFailure, RaizDailyReportInProgressFailure, RaizDailyReportRecipientsMissingFailure, RaizDefinitionNotActiveFailure, RaizDefinitionOptionsInvalidFailure, RaizDefinitionRetiredFailure, RaizDefinitionTypeLockedFailure, RaizEmailAddress, RaizEvalCasesUnavailableFailure, RaizEvalGateUnmetFailure, RaizFact, RaizFactSubjectMismatchFailure, RaizFactValueInvalidFailure, RaizFeedbackProposalUnavailableFailure, RaizHandoffAlreadyContinuedFailure, RaizIdentifierInUseFailure, RaizImportFileInvalidFailure, RaizImportFileTooLargeFailure, RaizIntegrationProcedureUnavailableFailure, RaizIntegrationToolUnavailableFailure, RaizIntegrationsUnavailableFailure, RaizInvalidCursorFailure, RaizInvalidStateFailure, RaizIpNetworkInvalidFailure, RaizKeyInUseFailure, RaizKnowledgeDocumentUnavailableFailure, RaizKnowledgeFileInvalidFailure, RaizKnowledgeKindMismatchFailure, RaizOutsideHoursTemplate, RaizPhoneNumber, RaizProviderRejectedError, RaizProviderRejectedFailure, RaizReplyInProgressFailure, RaizReportFilterUnsupportedFailure, RaizReportRangeInvalidFailure, RaizResourceNotFoundError, RaizResourceNotFoundFailure, RaizSourceConversationOpenFailure, RaizSuppressionExistsFailure, RaizTask, RaizTaskNotRetryableFailure, RaizTaskResponse, RaizTemplateHeaderMismatchFailure, RaizTemplateHeaderRequiredFailure, RaizTemplateNotApprovedFailure, RaizTemplateNotFoundFailure, RaizTemplateParametersMismatchFailure, RaizTemplateUnsupportedFailure, RaizTimeZoneUnknownFailure, RaizVersionConflictError, RaizVersionConflictFailure, RaizVoiceAgentNotReadyFailure, RaizVoiceUnavailableFailure, RaizWebsiteNotApprovedFailure, RaizWhatsappRateLimitedFailure, RaizWhatsappWindowClosedFailure, } from "./models.js";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import type { RaizResponseMetadata } from "../models.js";
|
|
4
|
-
import { type RaizCrawlSettings, type RaizKnowledgeDocument, type RaizKnowledgeDocumentPage, type RaizKnowledgeFileInput, type RaizKnowledgePassagePage } from "./models.js";
|
|
2
|
+
import { type RaizCreateKnowledgeDocumentBody, type RaizKnowledgeDocumentPageResponse, type RaizKnowledgeDocumentResponse, type RaizKnowledgePassagePageResponse, type RaizSearchKnowledgeBody, type RaizUpdateKnowledgeDocumentBody } from "./models.js";
|
|
5
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
4
|
/**
|
|
7
5
|
* The URL the paths of the API are relative to.
|
|
@@ -63,44 +61,8 @@ export interface Client {
|
|
|
63
61
|
}
|
|
64
62
|
export declare function createClient(options: ClientOptions): Client;
|
|
65
63
|
export declare function bind(transport: Transport): Client;
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
* Website documents only. Default: 20 pages, depth 2.
|
|
69
|
-
*/
|
|
70
|
-
crawl?: RaizCrawlSettings;
|
|
71
|
-
description?: string | null;
|
|
72
|
-
/**
|
|
73
|
-
* File documents only.
|
|
74
|
-
*/
|
|
75
|
-
file?: RaizKnowledgeFileInput;
|
|
76
|
-
/**
|
|
77
|
-
* `text`: written inline. `file`: an uploaded document (PDF, Word, Excel,
|
|
78
|
-
* HTML, CSV, plain text or Markdown). `website`: a snapshot of approved web
|
|
79
|
-
* pages.
|
|
80
|
-
*/
|
|
81
|
-
kind: "text" | "file" | "website";
|
|
82
|
-
/**
|
|
83
|
-
* Website documents only: the HTTPS page to start from. Its origin must be
|
|
84
|
-
* approved for this deployment; only same-origin pages under its path are
|
|
85
|
-
* followed, and robots.txt is respected.
|
|
86
|
-
*/
|
|
87
|
-
sourceUrl?: HttpsUrl;
|
|
88
|
-
/**
|
|
89
|
-
* A paused document is never searched; its index is kept.
|
|
90
|
-
*/
|
|
91
|
-
status?: "active" | "paused";
|
|
92
|
-
/**
|
|
93
|
-
* Text documents only: the content, plain text or Markdown.
|
|
94
|
-
*/
|
|
95
|
-
text?: string;
|
|
96
|
-
title: string;
|
|
97
|
-
}
|
|
98
|
-
export interface CreateResponse {
|
|
99
|
-
data: RaizKnowledgeDocument;
|
|
100
|
-
error: null;
|
|
101
|
-
metadata: RaizResponseMetadata;
|
|
102
|
-
success: true;
|
|
103
|
-
}
|
|
64
|
+
export type CreateRequest = RaizCreateKnowledgeDocumentBody;
|
|
65
|
+
export type CreateResponse = RaizKnowledgeDocumentResponse;
|
|
104
66
|
export interface GetRequest {
|
|
105
67
|
/**
|
|
106
68
|
* Knowledge document id.
|
|
@@ -111,12 +73,7 @@ export interface GetRequest {
|
|
|
111
73
|
*/
|
|
112
74
|
expand?: string;
|
|
113
75
|
}
|
|
114
|
-
export
|
|
115
|
-
data: RaizKnowledgeDocument;
|
|
116
|
-
error: null;
|
|
117
|
-
metadata: RaizResponseMetadata;
|
|
118
|
-
success: true;
|
|
119
|
-
}
|
|
76
|
+
export type GetResponse = RaizKnowledgeDocumentResponse;
|
|
120
77
|
export interface ListRequest {
|
|
121
78
|
/**
|
|
122
79
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -152,90 +109,13 @@ export interface ListRequest {
|
|
|
152
109
|
*/
|
|
153
110
|
status?: "active" | "paused";
|
|
154
111
|
}
|
|
155
|
-
export
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
success: true;
|
|
160
|
-
}
|
|
161
|
-
export interface SearchRequest {
|
|
162
|
-
/**
|
|
163
|
-
* Search only the documents this Agent consults, as the Agent would.
|
|
164
|
-
*/
|
|
165
|
-
agentId?: string;
|
|
166
|
-
/**
|
|
167
|
-
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
168
|
-
*/
|
|
169
|
-
cursor?: string;
|
|
170
|
-
/**
|
|
171
|
-
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
172
|
-
*/
|
|
173
|
-
direction?: "forward" | "backward";
|
|
174
|
-
/**
|
|
175
|
-
* Search only these documents (intersected with the Agent's, when both are
|
|
176
|
-
* given).
|
|
177
|
-
*/
|
|
178
|
-
knowledgeDocumentIds?: string[];
|
|
179
|
-
/**
|
|
180
|
-
* Maximum items returned in one page. Defaults to 8; larger reads require
|
|
181
|
-
* another cursor.
|
|
182
|
-
*/
|
|
183
|
-
limit?: number;
|
|
184
|
-
/**
|
|
185
|
-
* What to look for, in a few words.
|
|
186
|
-
*/
|
|
187
|
-
q?: string;
|
|
188
|
-
/**
|
|
189
|
-
* Deprecated: use `q`. Answered until 2027-01-28.
|
|
190
|
-
*
|
|
191
|
-
* @deprecated
|
|
192
|
-
*/
|
|
193
|
-
query?: string;
|
|
194
|
-
}
|
|
195
|
-
export interface SearchResponse {
|
|
196
|
-
data: RaizKnowledgePassagePage;
|
|
197
|
-
error: null;
|
|
198
|
-
metadata: RaizResponseMetadata;
|
|
199
|
-
success: true;
|
|
200
|
-
}
|
|
201
|
-
export interface UpdateRequest {
|
|
112
|
+
export type ListResponse = RaizKnowledgeDocumentPageResponse;
|
|
113
|
+
export type SearchRequest = RaizSearchKnowledgeBody;
|
|
114
|
+
export type SearchResponse = RaizKnowledgePassagePageResponse;
|
|
115
|
+
export type UpdateRequest = {
|
|
202
116
|
/**
|
|
203
117
|
* Knowledge document id.
|
|
204
118
|
*/
|
|
205
119
|
knowledgeDocumentId: string;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
*/
|
|
209
|
-
crawl?: RaizCrawlSettings;
|
|
210
|
-
description?: string | null;
|
|
211
|
-
/**
|
|
212
|
-
* The `version` you read. When present, the change applies only if nobody
|
|
213
|
-
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
214
|
-
*/
|
|
215
|
-
expectedVersion?: number;
|
|
216
|
-
/**
|
|
217
|
-
* File documents only.
|
|
218
|
-
*/
|
|
219
|
-
file?: RaizKnowledgeFileInput;
|
|
220
|
-
/**
|
|
221
|
-
* Website documents only: the HTTPS page to start from. Its origin must be
|
|
222
|
-
* approved for this deployment; only same-origin pages under its path are
|
|
223
|
-
* followed, and robots.txt is respected.
|
|
224
|
-
*/
|
|
225
|
-
sourceUrl?: HttpsUrl;
|
|
226
|
-
/**
|
|
227
|
-
* A paused document is never searched; its index is kept.
|
|
228
|
-
*/
|
|
229
|
-
status?: "active" | "paused";
|
|
230
|
-
/**
|
|
231
|
-
* Text documents only: the content, plain text or Markdown.
|
|
232
|
-
*/
|
|
233
|
-
text?: string;
|
|
234
|
-
title?: string;
|
|
235
|
-
}
|
|
236
|
-
export interface UpdateResponse {
|
|
237
|
-
data: RaizKnowledgeDocument;
|
|
238
|
-
error: null;
|
|
239
|
-
metadata: RaizResponseMetadata;
|
|
240
|
-
success: true;
|
|
241
|
-
}
|
|
120
|
+
} & RaizUpdateKnowledgeDocumentBody;
|
|
121
|
+
export type UpdateResponse = RaizKnowledgeDocumentResponse;
|