@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type RaizDefinition, type RaizDefinitionOptionInput, type RaizDefinitionPage } from "./models.js";
|
|
2
|
+
import { type RaizCreateDefinitionBody, type RaizDefinitionPageResponse, type RaizDefinitionResponse, type RaizUpdateDefinitionBody } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -56,66 +55,15 @@ export interface Client {
|
|
|
56
55
|
}
|
|
57
56
|
export declare function createClient(options: ClientOptions): Client;
|
|
58
57
|
export declare function bind(transport: Transport): Client;
|
|
59
|
-
export
|
|
60
|
-
|
|
61
|
-
* The Agents that use the definition; empty for every Agent. In an update,
|
|
62
|
-
* the complete new set.
|
|
63
|
-
*/
|
|
64
|
-
agentIds?: string[];
|
|
65
|
-
description?: string | null;
|
|
66
|
-
instructions?: string | null;
|
|
67
|
-
/**
|
|
68
|
-
* Stable machine name: lower case letters, digits and `_`, starting with a
|
|
69
|
-
* letter. A CSV column with this header imports into the definition.
|
|
70
|
-
*/
|
|
71
|
-
key: string;
|
|
72
|
-
/**
|
|
73
|
-
* `attribute`: a property of the subject. `assessment`: a judgement about a
|
|
74
|
-
* conversation (yes/no assessments feed the assessment report). `category`: a
|
|
75
|
-
* classification. `metric`: a measured number, with a `unit`.
|
|
76
|
-
*/
|
|
77
|
-
kind: "attribute" | "assessment" | "category" | "metric";
|
|
78
|
-
name: string;
|
|
79
|
-
/**
|
|
80
|
-
* The options of an `option` definition, in order, with unique keys. In an
|
|
81
|
-
* update, the complete new set: an option is matched by key and keeps its id;
|
|
82
|
-
* one left out is retired, never deleted, because facts reference it.
|
|
83
|
-
*/
|
|
84
|
-
options?: RaizDefinitionOptionInput[];
|
|
85
|
-
/**
|
|
86
|
-
* `active` definitions accept facts and Agents use them; `draft` ones are
|
|
87
|
-
* being prepared. Retiring is `deleteDefinition`.
|
|
88
|
-
*/
|
|
89
|
-
status?: "draft" | "active";
|
|
90
|
-
/**
|
|
91
|
-
* What the facts describe.
|
|
92
|
-
*/
|
|
93
|
-
subject: "contact" | "conversation";
|
|
94
|
-
unit?: string | null;
|
|
95
|
-
/**
|
|
96
|
-
* The JSON type of the facts' values: a string, a number, a boolean, a
|
|
97
|
-
* `YYYY-MM-DD` date, or the key of one of the options.
|
|
98
|
-
*/
|
|
99
|
-
valueType: "text" | "number" | "boolean" | "date" | "option";
|
|
100
|
-
}
|
|
101
|
-
export interface CreateResponse {
|
|
102
|
-
data: RaizDefinition;
|
|
103
|
-
error: null;
|
|
104
|
-
metadata: RaizResponseMetadata;
|
|
105
|
-
success: true;
|
|
106
|
-
}
|
|
58
|
+
export type CreateRequest = RaizCreateDefinitionBody;
|
|
59
|
+
export type CreateResponse = RaizDefinitionResponse;
|
|
107
60
|
export interface GetRequest {
|
|
108
61
|
/**
|
|
109
62
|
* Definition id.
|
|
110
63
|
*/
|
|
111
64
|
definitionId: string;
|
|
112
65
|
}
|
|
113
|
-
export
|
|
114
|
-
data: RaizDefinition;
|
|
115
|
-
error: null;
|
|
116
|
-
metadata: RaizResponseMetadata;
|
|
117
|
-
success: true;
|
|
118
|
-
}
|
|
66
|
+
export type GetResponse = RaizDefinitionResponse;
|
|
119
67
|
export interface ListRequest {
|
|
120
68
|
/**
|
|
121
69
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -146,66 +94,11 @@ export interface ListRequest {
|
|
|
146
94
|
*/
|
|
147
95
|
subject?: "contact" | "conversation";
|
|
148
96
|
}
|
|
149
|
-
export
|
|
150
|
-
|
|
151
|
-
error: null;
|
|
152
|
-
metadata: RaizResponseMetadata;
|
|
153
|
-
success: true;
|
|
154
|
-
}
|
|
155
|
-
export interface UpdateRequest {
|
|
97
|
+
export type ListResponse = RaizDefinitionPageResponse;
|
|
98
|
+
export type UpdateRequest = {
|
|
156
99
|
/**
|
|
157
100
|
* Definition id.
|
|
158
101
|
*/
|
|
159
102
|
definitionId: string;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
* the complete new set.
|
|
163
|
-
*/
|
|
164
|
-
agentIds?: string[];
|
|
165
|
-
description?: string | null;
|
|
166
|
-
/**
|
|
167
|
-
* The `version` you read. When present, the change applies only if nobody
|
|
168
|
-
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
169
|
-
*/
|
|
170
|
-
expectedVersion?: number;
|
|
171
|
-
instructions?: string | null;
|
|
172
|
-
/**
|
|
173
|
-
* Stable machine name: lower case letters, digits and `_`, starting with a
|
|
174
|
-
* letter. A CSV column with this header imports into the definition.
|
|
175
|
-
*/
|
|
176
|
-
key?: string;
|
|
177
|
-
/**
|
|
178
|
-
* `attribute`: a property of the subject. `assessment`: a judgement about a
|
|
179
|
-
* conversation (yes/no assessments feed the assessment report). `category`: a
|
|
180
|
-
* classification. `metric`: a measured number, with a `unit`.
|
|
181
|
-
*/
|
|
182
|
-
kind?: "attribute" | "assessment" | "category" | "metric";
|
|
183
|
-
name?: string;
|
|
184
|
-
/**
|
|
185
|
-
* The options of an `option` definition, in order, with unique keys. In an
|
|
186
|
-
* update, the complete new set: an option is matched by key and keeps its id;
|
|
187
|
-
* one left out is retired, never deleted, because facts reference it.
|
|
188
|
-
*/
|
|
189
|
-
options?: RaizDefinitionOptionInput[];
|
|
190
|
-
/**
|
|
191
|
-
* `active` definitions accept facts and Agents use them; `draft` ones are
|
|
192
|
-
* being prepared. Retiring is `deleteDefinition`.
|
|
193
|
-
*/
|
|
194
|
-
status?: "draft" | "active";
|
|
195
|
-
/**
|
|
196
|
-
* What the facts describe.
|
|
197
|
-
*/
|
|
198
|
-
subject?: "contact" | "conversation";
|
|
199
|
-
unit?: string | null;
|
|
200
|
-
/**
|
|
201
|
-
* The JSON type of the facts' values: a string, a number, a boolean, a
|
|
202
|
-
* `YYYY-MM-DD` date, or the key of one of the options.
|
|
203
|
-
*/
|
|
204
|
-
valueType?: "text" | "number" | "boolean" | "date" | "option";
|
|
205
|
-
}
|
|
206
|
-
export interface UpdateResponse {
|
|
207
|
-
data: RaizDefinition;
|
|
208
|
-
error: null;
|
|
209
|
-
metadata: RaizResponseMetadata;
|
|
210
|
-
success: true;
|
|
211
|
-
}
|
|
103
|
+
} & RaizUpdateDefinitionBody;
|
|
104
|
+
export type UpdateResponse = RaizDefinitionResponse;
|
|
@@ -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 { RaizDefinitionPageResponseCodec, RaizDefinitionResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -17,26 +17,26 @@ const CreateOperation = {
|
|
|
17
17
|
method: "POST",
|
|
18
18
|
route: "/v1/raiz/definitions",
|
|
19
19
|
body: "flat",
|
|
20
|
-
response:
|
|
21
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
20
|
+
response: RaizDefinitionResponseCodec,
|
|
21
|
+
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 },
|
|
22
22
|
};
|
|
23
23
|
const GetOperation = {
|
|
24
24
|
method: "GET",
|
|
25
25
|
route: "/v1/raiz/definitions/{definitionId}",
|
|
26
|
-
response:
|
|
27
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
26
|
+
response: RaizDefinitionResponseCodec,
|
|
27
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
28
28
|
};
|
|
29
29
|
const ListOperation = {
|
|
30
30
|
method: "GET",
|
|
31
31
|
route: "/v1/raiz/definitions",
|
|
32
32
|
query: { cursor: "cursor", direction: "direction", limit: "limit", kind: "kind", status: "status", subject: "subject" },
|
|
33
|
-
response:
|
|
34
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
33
|
+
response: RaizDefinitionPageResponseCodec,
|
|
34
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
35
35
|
};
|
|
36
36
|
const UpdateOperation = {
|
|
37
37
|
method: "PATCH",
|
|
38
38
|
route: "/v1/raiz/definitions/{definitionId}",
|
|
39
39
|
body: "flat",
|
|
40
|
-
response:
|
|
41
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
40
|
+
response: RaizDefinitionResponseCodec,
|
|
41
|
+
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 },
|
|
42
42
|
};
|
|
@@ -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, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
-
export type { RaizDefinition, RaizDefinitionOptionInput, RaizDefinitionPage, } from "./models.js";
|
|
5
|
+
export type { RaizCreateDefinitionBody, RaizCreateDefinitionConflictError, RaizCreateDefinitionConflictFailure, RaizCreateDefinitionServiceUnavailableError, RaizCreateDefinitionServiceUnavailableFailure, RaizDefinition, RaizDefinitionOptionInput, RaizDefinitionOptionsInvalidError, RaizDefinitionPage, RaizDefinitionPageResponse, RaizDefinitionResponse, RaizGetDefinitionServiceUnavailableError, RaizGetDefinitionServiceUnavailableFailure, RaizListDefinitionsBadRequestError, RaizListDefinitionsBadRequestFailure, RaizListDefinitionsServiceUnavailableError, RaizListDefinitionsServiceUnavailableFailure, RaizUpdateDefinitionBody, RaizUpdateDefinitionConflictError, RaizUpdateDefinitionConflictFailure, RaizUpdateDefinitionServiceUnavailableError, RaizUpdateDefinitionServiceUnavailableFailure, } from "./models.js";
|
|
@@ -1,4 +1,73 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { InvalidInputFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { RaizDefinitionOptionsInvalidFailure, RaizDefinitionRetiredFailure, RaizDefinitionTypeLockedFailure, RaizIntegrationsUnavailableFailure, RaizInvalidCursorFailure, RaizKeyInUseFailure, RaizVersionConflictFailure } from "../models.js";
|
|
3
|
+
export interface RaizCreateDefinitionBody {
|
|
4
|
+
/**
|
|
5
|
+
* The Agents that use the definition; empty for every Agent. In an update,
|
|
6
|
+
* the complete new set.
|
|
7
|
+
*/
|
|
8
|
+
agentIds?: string[];
|
|
9
|
+
description?: string | null;
|
|
10
|
+
instructions?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Stable machine name: lower case letters, digits and `_`, starting with a
|
|
13
|
+
* letter. A CSV column with this header imports into the definition.
|
|
14
|
+
*/
|
|
15
|
+
key: string;
|
|
16
|
+
/**
|
|
17
|
+
* `attribute`: a property of the subject. `assessment`: a judgement about a
|
|
18
|
+
* conversation (yes/no assessments feed the assessment report). `category`: a
|
|
19
|
+
* classification. `metric`: a measured number, with a `unit`.
|
|
20
|
+
*/
|
|
21
|
+
kind: "attribute" | "assessment" | "category" | "metric";
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* The options of an `option` definition, in order, with unique keys. In an
|
|
25
|
+
* update, the complete new set: an option is matched by key and keeps its id;
|
|
26
|
+
* one left out is retired, never deleted, because facts reference it.
|
|
27
|
+
*/
|
|
28
|
+
options?: RaizDefinitionOptionInput[];
|
|
29
|
+
/**
|
|
30
|
+
* `active` definitions accept facts and Agents use them; `draft` ones are
|
|
31
|
+
* being prepared. Retiring is `deleteDefinition`.
|
|
32
|
+
*/
|
|
33
|
+
status?: "draft" | "active";
|
|
34
|
+
/**
|
|
35
|
+
* What the facts describe.
|
|
36
|
+
*/
|
|
37
|
+
subject: "contact" | "conversation";
|
|
38
|
+
unit?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* The JSON type of the facts' values: a string, a number, a boolean, a
|
|
41
|
+
* `YYYY-MM-DD` date, or the key of one of the options.
|
|
42
|
+
*/
|
|
43
|
+
valueType: "text" | "number" | "boolean" | "date" | "option";
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A failed answer.
|
|
47
|
+
*/
|
|
48
|
+
export interface RaizCreateDefinitionConflictError {
|
|
49
|
+
data: null;
|
|
50
|
+
error: RaizCreateDefinitionConflictFailure;
|
|
51
|
+
/**
|
|
52
|
+
* What every answer carries besides its data or error.
|
|
53
|
+
*/
|
|
54
|
+
metadata: ResponseMetadata;
|
|
55
|
+
success: false;
|
|
56
|
+
}
|
|
57
|
+
export type RaizCreateDefinitionConflictFailure = RaizDefinitionRetiredFailure | RaizDefinitionTypeLockedFailure | RaizKeyInUseFailure | RaizVersionConflictFailure;
|
|
58
|
+
/**
|
|
59
|
+
* A failed answer.
|
|
60
|
+
*/
|
|
61
|
+
export interface RaizCreateDefinitionServiceUnavailableError {
|
|
62
|
+
data: null;
|
|
63
|
+
error: RaizCreateDefinitionServiceUnavailableFailure;
|
|
64
|
+
/**
|
|
65
|
+
* What every answer carries besides its data or error.
|
|
66
|
+
*/
|
|
67
|
+
metadata: ResponseMetadata;
|
|
68
|
+
success: false;
|
|
69
|
+
}
|
|
70
|
+
export type RaizCreateDefinitionServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
2
71
|
export interface RaizDefinition {
|
|
3
72
|
/**
|
|
4
73
|
* The Agents that use the definition. Empty: every Agent of the organization.
|
|
@@ -57,6 +126,22 @@ export interface RaizDefinitionOptionInput {
|
|
|
57
126
|
key: string;
|
|
58
127
|
label: string;
|
|
59
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* A failed answer.
|
|
131
|
+
*/
|
|
132
|
+
export interface RaizDefinitionOptionsInvalidError {
|
|
133
|
+
data: null;
|
|
134
|
+
/**
|
|
135
|
+
* Only a definition whose value type is `option` has options; it needs at
|
|
136
|
+
* least one, and option keys must be unique.
|
|
137
|
+
*/
|
|
138
|
+
error: RaizDefinitionOptionsInvalidFailure;
|
|
139
|
+
/**
|
|
140
|
+
* What every answer carries besides its data or error.
|
|
141
|
+
*/
|
|
142
|
+
metadata: ResponseMetadata;
|
|
143
|
+
success: false;
|
|
144
|
+
}
|
|
60
145
|
export interface RaizDefinitionPage {
|
|
61
146
|
/**
|
|
62
147
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -71,5 +156,143 @@ export interface RaizDefinitionPage {
|
|
|
71
156
|
*/
|
|
72
157
|
pageInfo: PageInfo;
|
|
73
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* A successful answer.
|
|
161
|
+
*/
|
|
162
|
+
export interface RaizDefinitionPageResponse {
|
|
163
|
+
data: RaizDefinitionPage;
|
|
164
|
+
error: null;
|
|
165
|
+
/**
|
|
166
|
+
* What every answer carries besides its data or error.
|
|
167
|
+
*/
|
|
168
|
+
metadata: ResponseMetadata;
|
|
169
|
+
success: true;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* A successful answer.
|
|
173
|
+
*/
|
|
174
|
+
export interface RaizDefinitionResponse {
|
|
175
|
+
data: RaizDefinition;
|
|
176
|
+
error: null;
|
|
177
|
+
/**
|
|
178
|
+
* What every answer carries besides its data or error.
|
|
179
|
+
*/
|
|
180
|
+
metadata: ResponseMetadata;
|
|
181
|
+
success: true;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A failed answer.
|
|
185
|
+
*/
|
|
186
|
+
export interface RaizGetDefinitionServiceUnavailableError {
|
|
187
|
+
data: null;
|
|
188
|
+
error: RaizGetDefinitionServiceUnavailableFailure;
|
|
189
|
+
/**
|
|
190
|
+
* What every answer carries besides its data or error.
|
|
191
|
+
*/
|
|
192
|
+
metadata: ResponseMetadata;
|
|
193
|
+
success: false;
|
|
194
|
+
}
|
|
195
|
+
export type RaizGetDefinitionServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
196
|
+
/**
|
|
197
|
+
* A failed answer.
|
|
198
|
+
*/
|
|
199
|
+
export interface RaizListDefinitionsBadRequestError {
|
|
200
|
+
data: null;
|
|
201
|
+
error: RaizListDefinitionsBadRequestFailure;
|
|
202
|
+
/**
|
|
203
|
+
* What every answer carries besides its data or error.
|
|
204
|
+
*/
|
|
205
|
+
metadata: ResponseMetadata;
|
|
206
|
+
success: false;
|
|
207
|
+
}
|
|
208
|
+
export type RaizListDefinitionsBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
209
|
+
/**
|
|
210
|
+
* A failed answer.
|
|
211
|
+
*/
|
|
212
|
+
export interface RaizListDefinitionsServiceUnavailableError {
|
|
213
|
+
data: null;
|
|
214
|
+
error: RaizListDefinitionsServiceUnavailableFailure;
|
|
215
|
+
/**
|
|
216
|
+
* What every answer carries besides its data or error.
|
|
217
|
+
*/
|
|
218
|
+
metadata: ResponseMetadata;
|
|
219
|
+
success: false;
|
|
220
|
+
}
|
|
221
|
+
export type RaizListDefinitionsServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
222
|
+
export interface RaizUpdateDefinitionBody {
|
|
223
|
+
/**
|
|
224
|
+
* The Agents that use the definition; empty for every Agent. In an update,
|
|
225
|
+
* the complete new set.
|
|
226
|
+
*/
|
|
227
|
+
agentIds?: string[];
|
|
228
|
+
description?: string | null;
|
|
229
|
+
/**
|
|
230
|
+
* The `version` you read. When present, the change applies only if nobody
|
|
231
|
+
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
232
|
+
*/
|
|
233
|
+
expectedVersion?: number;
|
|
234
|
+
instructions?: string | null;
|
|
235
|
+
/**
|
|
236
|
+
* Stable machine name: lower case letters, digits and `_`, starting with a
|
|
237
|
+
* letter. A CSV column with this header imports into the definition.
|
|
238
|
+
*/
|
|
239
|
+
key?: string;
|
|
240
|
+
/**
|
|
241
|
+
* `attribute`: a property of the subject. `assessment`: a judgement about a
|
|
242
|
+
* conversation (yes/no assessments feed the assessment report). `category`: a
|
|
243
|
+
* classification. `metric`: a measured number, with a `unit`.
|
|
244
|
+
*/
|
|
245
|
+
kind?: "attribute" | "assessment" | "category" | "metric";
|
|
246
|
+
name?: string;
|
|
247
|
+
/**
|
|
248
|
+
* The options of an `option` definition, in order, with unique keys. In an
|
|
249
|
+
* update, the complete new set: an option is matched by key and keeps its id;
|
|
250
|
+
* one left out is retired, never deleted, because facts reference it.
|
|
251
|
+
*/
|
|
252
|
+
options?: RaizDefinitionOptionInput[];
|
|
253
|
+
/**
|
|
254
|
+
* `active` definitions accept facts and Agents use them; `draft` ones are
|
|
255
|
+
* being prepared. Retiring is `deleteDefinition`.
|
|
256
|
+
*/
|
|
257
|
+
status?: "draft" | "active";
|
|
258
|
+
/**
|
|
259
|
+
* What the facts describe.
|
|
260
|
+
*/
|
|
261
|
+
subject?: "contact" | "conversation";
|
|
262
|
+
unit?: string | null;
|
|
263
|
+
/**
|
|
264
|
+
* The JSON type of the facts' values: a string, a number, a boolean, a
|
|
265
|
+
* `YYYY-MM-DD` date, or the key of one of the options.
|
|
266
|
+
*/
|
|
267
|
+
valueType?: "text" | "number" | "boolean" | "date" | "option";
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* A failed answer.
|
|
271
|
+
*/
|
|
272
|
+
export interface RaizUpdateDefinitionConflictError {
|
|
273
|
+
data: null;
|
|
274
|
+
error: RaizUpdateDefinitionConflictFailure;
|
|
275
|
+
/**
|
|
276
|
+
* What every answer carries besides its data or error.
|
|
277
|
+
*/
|
|
278
|
+
metadata: ResponseMetadata;
|
|
279
|
+
success: false;
|
|
280
|
+
}
|
|
281
|
+
export type RaizUpdateDefinitionConflictFailure = RaizDefinitionRetiredFailure | RaizDefinitionTypeLockedFailure | RaizKeyInUseFailure | RaizVersionConflictFailure;
|
|
282
|
+
/**
|
|
283
|
+
* A failed answer.
|
|
284
|
+
*/
|
|
285
|
+
export interface RaizUpdateDefinitionServiceUnavailableError {
|
|
286
|
+
data: null;
|
|
287
|
+
error: RaizUpdateDefinitionServiceUnavailableFailure;
|
|
288
|
+
/**
|
|
289
|
+
* What every answer carries besides its data or error.
|
|
290
|
+
*/
|
|
291
|
+
metadata: ResponseMetadata;
|
|
292
|
+
success: false;
|
|
293
|
+
}
|
|
294
|
+
export type RaizUpdateDefinitionServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
74
295
|
export declare const RaizDefinitionCodec: import("../../_/codec.js").Codec;
|
|
75
296
|
export declare const RaizDefinitionPageCodec: import("../../_/codec.js").Codec;
|
|
297
|
+
export declare const RaizDefinitionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
298
|
+
export declare const RaizDefinitionResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -8,3 +8,9 @@ export const RaizDefinitionCodec = object([
|
|
|
8
8
|
export const RaizDefinitionPageCodec = object([
|
|
9
9
|
["data", null, array(() => RaizDefinitionCodec)],
|
|
10
10
|
]);
|
|
11
|
+
export const RaizDefinitionPageResponseCodec = object([
|
|
12
|
+
["data", null, () => RaizDefinitionPageCodec],
|
|
13
|
+
]);
|
|
14
|
+
export const RaizDefinitionResponseCodec = object([
|
|
15
|
+
["data", null, () => RaizDefinitionCodec],
|
|
16
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type RaizEvalCase, type RaizEvalCasePage } from "./models.js";
|
|
2
|
+
import { type RaizCreateEvalCaseBody, type RaizEvalCasePageResponse, type RaizEvalCaseResponse, type RaizUpdateEvalCaseBody } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -43,33 +42,8 @@ export interface Client {
|
|
|
43
42
|
}
|
|
44
43
|
export declare function createClient(options: ClientOptions): Client;
|
|
45
44
|
export declare function bind(transport: Transport): Client;
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
* Conversation id.
|
|
49
|
-
*/
|
|
50
|
-
conversationId: string;
|
|
51
|
-
/**
|
|
52
|
-
* What the Agent should have done instead, for whoever replays the case: a
|
|
53
|
-
* short rubric, never the contact's personal data.
|
|
54
|
-
*/
|
|
55
|
-
expectation: string;
|
|
56
|
-
feedbackKind: "incorrect" | "simpler" | "incomplete";
|
|
57
|
-
/**
|
|
58
|
-
* The team's preferred reply or procedure. Private evidence, never
|
|
59
|
-
* automatically instructions.
|
|
60
|
-
*/
|
|
61
|
-
preferredResponse: string;
|
|
62
|
-
/**
|
|
63
|
-
* Message id.
|
|
64
|
-
*/
|
|
65
|
-
replyMessageId: string;
|
|
66
|
-
}
|
|
67
|
-
export interface CreateResponse {
|
|
68
|
-
data: RaizEvalCase;
|
|
69
|
-
error: null;
|
|
70
|
-
metadata: RaizResponseMetadata;
|
|
71
|
-
success: true;
|
|
72
|
-
}
|
|
45
|
+
export type CreateRequest = RaizCreateEvalCaseBody;
|
|
46
|
+
export type CreateResponse = RaizEvalCaseResponse;
|
|
73
47
|
export interface ListRequest {
|
|
74
48
|
/**
|
|
75
49
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -98,37 +72,16 @@ export interface ListRequest {
|
|
|
98
72
|
* Message id.
|
|
99
73
|
*/
|
|
100
74
|
replyMessageId?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The source.
|
|
77
|
+
*/
|
|
101
78
|
source?: "correction" | "sample" | "authored";
|
|
102
79
|
}
|
|
103
|
-
export
|
|
104
|
-
|
|
105
|
-
error: null;
|
|
106
|
-
metadata: RaizResponseMetadata;
|
|
107
|
-
success: true;
|
|
108
|
-
}
|
|
109
|
-
export interface UpdateRequest {
|
|
80
|
+
export type ListResponse = RaizEvalCasePageResponse;
|
|
81
|
+
export type UpdateRequest = {
|
|
110
82
|
/**
|
|
111
83
|
* Evaluation case id.
|
|
112
84
|
*/
|
|
113
85
|
evalCaseId: string;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
* The `version` you read. When present, the change applies only if nobody
|
|
117
|
-
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
118
|
-
*/
|
|
119
|
-
expectedVersion?: number;
|
|
120
|
-
feedbackKind?: "incorrect" | "simpler" | "incomplete";
|
|
121
|
-
preferredResponse?: string | null;
|
|
122
|
-
/**
|
|
123
|
-
* `open`: not reviewed yet. `kept`: a candidate version must handle it.
|
|
124
|
-
* `dismissed`: not a case (the person only continued after a handoff, for
|
|
125
|
-
* example).
|
|
126
|
-
*/
|
|
127
|
-
status?: "open" | "kept" | "dismissed";
|
|
128
|
-
}
|
|
129
|
-
export interface UpdateResponse {
|
|
130
|
-
data: RaizEvalCase;
|
|
131
|
-
error: null;
|
|
132
|
-
metadata: RaizResponseMetadata;
|
|
133
|
-
success: true;
|
|
134
|
-
}
|
|
86
|
+
} & RaizUpdateEvalCaseBody;
|
|
87
|
+
export type UpdateResponse = RaizEvalCaseResponse;
|
|
@@ -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 { RaizEvalCasePageResponseCodec, RaizEvalCaseResponseCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -16,20 +16,20 @@ const CreateOperation = {
|
|
|
16
16
|
method: "POST",
|
|
17
17
|
route: "/v1/raiz/eval-cases",
|
|
18
18
|
body: "flat",
|
|
19
|
-
response:
|
|
20
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
19
|
+
response: RaizEvalCaseResponseCodec,
|
|
20
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
21
21
|
};
|
|
22
22
|
const ListOperation = {
|
|
23
23
|
method: "GET",
|
|
24
24
|
route: "/v1/raiz/eval-cases",
|
|
25
25
|
query: { cursor: "cursor", direction: "direction", limit: "limit", agentId: "agentId", status: "status", replyMessageId: "replyMessageId", source: "source" },
|
|
26
|
-
response:
|
|
27
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
26
|
+
response: RaizEvalCasePageResponseCodec,
|
|
27
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
28
28
|
};
|
|
29
29
|
const UpdateOperation = {
|
|
30
30
|
method: "PATCH",
|
|
31
31
|
route: "/v1/raiz/eval-cases/{evalCaseId}",
|
|
32
32
|
body: "flat",
|
|
33
|
-
response:
|
|
34
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
33
|
+
response: RaizEvalCaseResponseCodec,
|
|
34
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
35
35
|
};
|
|
@@ -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, ListRequest, ListResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
-
export type { RaizEvalCase, RaizEvalCasePage, } from "./models.js";
|
|
5
|
+
export type { RaizCreateEvalCaseBody, RaizEvalCase, RaizEvalCasePage, RaizEvalCasePageResponse, RaizEvalCaseResponse, RaizListEvalCasesBadRequestError, RaizListEvalCasesBadRequestFailure, RaizUpdateEvalCaseBody, } from "./models.js";
|
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { InvalidInputFailure, PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { RaizInvalidCursorFailure } from "../models.js";
|
|
3
|
+
export interface RaizCreateEvalCaseBody {
|
|
4
|
+
/**
|
|
5
|
+
* Conversation id.
|
|
6
|
+
*/
|
|
7
|
+
conversationId: string;
|
|
8
|
+
/**
|
|
9
|
+
* What the Agent should have done instead, for whoever replays the case: a
|
|
10
|
+
* short rubric, never the contact's personal data.
|
|
11
|
+
*/
|
|
12
|
+
expectation: string;
|
|
13
|
+
feedbackKind: "incorrect" | "simpler" | "incomplete";
|
|
14
|
+
/**
|
|
15
|
+
* The team's preferred reply or procedure. Private evidence, never
|
|
16
|
+
* automatically instructions.
|
|
17
|
+
*/
|
|
18
|
+
preferredResponse: string;
|
|
19
|
+
/**
|
|
20
|
+
* Message id.
|
|
21
|
+
*/
|
|
22
|
+
replyMessageId: string;
|
|
23
|
+
}
|
|
2
24
|
export interface RaizEvalCase {
|
|
3
25
|
/**
|
|
4
26
|
* Agent id.
|
|
@@ -57,5 +79,60 @@ export interface RaizEvalCasePage {
|
|
|
57
79
|
*/
|
|
58
80
|
pageInfo: PageInfo;
|
|
59
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* A successful answer.
|
|
84
|
+
*/
|
|
85
|
+
export interface RaizEvalCasePageResponse {
|
|
86
|
+
data: RaizEvalCasePage;
|
|
87
|
+
error: null;
|
|
88
|
+
/**
|
|
89
|
+
* What every answer carries besides its data or error.
|
|
90
|
+
*/
|
|
91
|
+
metadata: ResponseMetadata;
|
|
92
|
+
success: true;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A successful answer.
|
|
96
|
+
*/
|
|
97
|
+
export interface RaizEvalCaseResponse {
|
|
98
|
+
data: RaizEvalCase;
|
|
99
|
+
error: null;
|
|
100
|
+
/**
|
|
101
|
+
* What every answer carries besides its data or error.
|
|
102
|
+
*/
|
|
103
|
+
metadata: ResponseMetadata;
|
|
104
|
+
success: true;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* A failed answer.
|
|
108
|
+
*/
|
|
109
|
+
export interface RaizListEvalCasesBadRequestError {
|
|
110
|
+
data: null;
|
|
111
|
+
error: RaizListEvalCasesBadRequestFailure;
|
|
112
|
+
/**
|
|
113
|
+
* What every answer carries besides its data or error.
|
|
114
|
+
*/
|
|
115
|
+
metadata: ResponseMetadata;
|
|
116
|
+
success: false;
|
|
117
|
+
}
|
|
118
|
+
export type RaizListEvalCasesBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
119
|
+
export interface RaizUpdateEvalCaseBody {
|
|
120
|
+
expectation?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* The `version` you read. When present, the change applies only if nobody
|
|
123
|
+
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
124
|
+
*/
|
|
125
|
+
expectedVersion?: number;
|
|
126
|
+
feedbackKind?: "incorrect" | "simpler" | "incomplete";
|
|
127
|
+
preferredResponse?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* `open`: not reviewed yet. `kept`: a candidate version must handle it.
|
|
130
|
+
* `dismissed`: not a case (the person only continued after a handoff, for
|
|
131
|
+
* example).
|
|
132
|
+
*/
|
|
133
|
+
status?: "open" | "kept" | "dismissed";
|
|
134
|
+
}
|
|
60
135
|
export declare const RaizEvalCaseCodec: import("../../_/codec.js").Codec;
|
|
61
136
|
export declare const RaizEvalCasePageCodec: import("../../_/codec.js").Codec;
|
|
137
|
+
export declare const RaizEvalCasePageResponseCodec: import("../../_/codec.js").Codec;
|
|
138
|
+
export declare const RaizEvalCaseResponseCodec: import("../../_/codec.js").Codec;
|