@arbol-ai/sdk 5.73.0 → 5.75.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/billing/models.d.ts +2 -2
- package/dist/account/usageSummary/models.d.ts +1 -1
- package/dist/oficlinic/appointmentReport/client.d.ts +36 -0
- package/dist/oficlinic/appointmentReport/client.js +19 -0
- package/dist/oficlinic/appointmentReport/index.d.ts +5 -0
- package/dist/oficlinic/appointmentReport/index.js +4 -0
- package/dist/oficlinic/appointmentReport/models.d.ts +100 -0
- package/dist/oficlinic/appointmentReport/models.js +9 -0
- package/dist/oficlinic/client.d.ts +4 -0
- package/dist/oficlinic/client.js +10 -0
- package/dist/oficlinic/reportCatalog/client.d.ts +45 -0
- package/dist/oficlinic/reportCatalog/client.js +18 -0
- package/dist/oficlinic/reportCatalog/index.d.ts +5 -0
- package/dist/oficlinic/reportCatalog/index.js +4 -0
- package/dist/oficlinic/reportCatalog/models.d.ts +116 -0
- package/dist/oficlinic/reportCatalog/models.js +3 -0
- package/dist/raiz/agents/client.d.ts +14 -1
- package/dist/raiz/agents/client.js +1 -0
- package/dist/raiz/agents/models.d.ts +30 -6
- package/dist/raiz/channels/client.d.ts +4 -1
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +9 -746
- package/dist/raiz/client.d.ts +2 -0
- package/dist/raiz/client.js +5 -0
- package/dist/raiz/conversations/client.d.ts +32 -1
- package/dist/raiz/conversations/client.js +10 -1
- package/dist/raiz/conversations/index.d.ts +2 -2
- package/dist/raiz/conversations/models.d.ts +217 -3
- package/dist/raiz/conversations/models.js +1 -0
- package/dist/raiz/definitions/models.d.ts +30 -0
- package/dist/raiz/evalRuns/client.d.ts +33 -10
- package/dist/raiz/evalRuns/client.js +1 -0
- package/dist/raiz/evalRuns/index.d.ts +1 -1
- package/dist/raiz/evalRuns/models.d.ts +108 -7
- package/dist/raiz/evalRuns/models.js +4 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/models/client.d.ts +37 -0
- package/dist/raiz/models/client.js +18 -0
- package/dist/raiz/models/index.d.ts +5 -0
- package/dist/raiz/models/index.js +4 -0
- package/dist/raiz/models/models.d.ts +55 -0
- package/dist/raiz/models/models.js +3 -0
- package/dist/raiz/models.d.ts +1157 -175
- package/dist/raiz/organization/models.d.ts +2 -2
- package/dist/raiz/reports/client.d.ts +1 -1
- package/dist/raiz/reports/models.d.ts +1 -1
- package/dist/visoft/patients/client.d.ts +2 -2
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import type { RaizAgentIntegrationProcedureInput, RaizAgentProcedureInput, RaizAgentProceduresInvalidFailure, RaizAgentSettingsInvalidFailure, RaizEvalCasesUnavailableFailure, RaizFeedbackProposalUnavailableFailure, RaizIntegrationProcedureUnavailableFailure, RaizIntegrationsUnavailableFailure, RaizInvalidStateFailure } from "../models.js";
|
|
1
|
+
import type { InvalidInputFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { RaizAgentIntegrationProcedureInput, RaizAgentProcedureInput, RaizAgentProceduresInvalidFailure, RaizAgentSettingsInvalidFailure, RaizEvalCasesUnavailableFailure, RaizFeedbackProposalUnavailableFailure, RaizIntegrationProcedureUnavailableFailure, RaizIntegrationsUnavailableFailure, RaizInvalidCursorFailure, RaizInvalidStateFailure } from "../models.js";
|
|
3
3
|
export interface RaizCreateEvalRunBody {
|
|
4
4
|
/**
|
|
5
5
|
* Agent id.
|
|
@@ -13,7 +13,7 @@ export interface RaizCreateEvalRunBody {
|
|
|
13
13
|
candidate?: {
|
|
14
14
|
instructions?: string | null;
|
|
15
15
|
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
16
|
-
model?: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | null;
|
|
16
|
+
model?: "arbolito/agile" | "arbolito/balanced" | "arbolito/advanced" | "arbolito/top" | "openai/gpt-6-luna" | "openai/gpt-6.1-sol" | "openai/gpt-5.6-luna" | "openai/gpt-6.1-terra" | "anthropic/claude-opus-5-5" | "anthropic/claude-haiku-5-5" | "anthropic/claude-sonnet-5-5" | "anthropic/claude-sonnet-5" | null;
|
|
17
17
|
procedures?: RaizAgentProcedureInput[];
|
|
18
18
|
reasoningEffort?: "none" | "low" | "medium" | "high" | "xhigh" | null;
|
|
19
19
|
};
|
|
@@ -23,7 +23,8 @@ export interface RaizCreateEvalRunBody {
|
|
|
23
23
|
caseIds?: string[];
|
|
24
24
|
/**
|
|
25
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
|
|
26
|
+
* reply, then a small judge model per case, charged to the organization. Send
|
|
27
|
+
* `true` to accept that cost.
|
|
27
28
|
*/
|
|
28
29
|
confirmCost: true;
|
|
29
30
|
/**
|
|
@@ -91,7 +92,8 @@ export interface RaizEvalRun {
|
|
|
91
92
|
endedAt: Temporal.Instant | null;
|
|
92
93
|
errorCode: string | null;
|
|
93
94
|
/**
|
|
94
|
-
* Cases that could not be replayed or judged
|
|
95
|
+
* Cases that could not be replayed or judged, and simulated conversations
|
|
96
|
+
* that proved nothing (`error` or `inconclusive`).
|
|
95
97
|
*/
|
|
96
98
|
errors: number;
|
|
97
99
|
/**
|
|
@@ -107,6 +109,7 @@ export interface RaizEvalRun {
|
|
|
107
109
|
* Evaluation run id.
|
|
108
110
|
*/
|
|
109
111
|
id: string;
|
|
112
|
+
passRate: number | null;
|
|
110
113
|
passed: number;
|
|
111
114
|
proposal: {
|
|
112
115
|
appliesWhen: string;
|
|
@@ -129,12 +132,45 @@ export interface RaizEvalRun {
|
|
|
129
132
|
} | null;
|
|
130
133
|
verdict: "passed" | "failed" | "error";
|
|
131
134
|
}[];
|
|
135
|
+
/**
|
|
136
|
+
* The scenarios the run simulates, in order. Empty for a run that replays
|
|
137
|
+
* cases.
|
|
138
|
+
*/
|
|
139
|
+
scenarioIds: string[];
|
|
140
|
+
/**
|
|
141
|
+
* How each scenario did so far: its conversations by verdict and its pass
|
|
142
|
+
* rate. A scenario appears once its first conversation ended.
|
|
143
|
+
*/
|
|
144
|
+
scenarioResults: {
|
|
145
|
+
errors: number;
|
|
146
|
+
failed: number;
|
|
147
|
+
inconclusive: number;
|
|
148
|
+
passRate: number | null;
|
|
149
|
+
passed: number;
|
|
150
|
+
scenarioId: string;
|
|
151
|
+
}[];
|
|
132
152
|
/**
|
|
133
153
|
* `queued` until the channel evaluator takes it (within a minute), `running`
|
|
134
|
-
* while cases are replayed (each result appears as
|
|
135
|
-
* once every case has a result
|
|
154
|
+
* while cases are replayed or conversations simulated (each result appears as
|
|
155
|
+
* it is judged), `completed` once every case has a result and every scenario
|
|
156
|
+
* its conversations, `failed` when it could not continue.
|
|
136
157
|
*/
|
|
137
158
|
status: "queued" | "running" | "completed" | "failed";
|
|
159
|
+
tokenBudget: number | null;
|
|
160
|
+
/**
|
|
161
|
+
* Tokens the run's models read and wrote so far: the candidate's, the
|
|
162
|
+
* simulated contact's and the judge's.
|
|
163
|
+
*/
|
|
164
|
+
tokensUsed: number;
|
|
165
|
+
/**
|
|
166
|
+
* The run's simulated conversations, by scenario and then by trial, each with
|
|
167
|
+
* its transcript, checks and criteria. Present only when expanded.
|
|
168
|
+
*/
|
|
169
|
+
trialResults?: RaizEvalTrialResultPage;
|
|
170
|
+
/**
|
|
171
|
+
* Conversations simulated of each scenario.
|
|
172
|
+
*/
|
|
173
|
+
trials: number;
|
|
138
174
|
/**
|
|
139
175
|
* An instant in RFC 3339 format, in UTC.
|
|
140
176
|
*/
|
|
@@ -152,5 +188,70 @@ export interface RaizEvalRunResponse {
|
|
|
152
188
|
metadata: ResponseMetadata;
|
|
153
189
|
success: true;
|
|
154
190
|
}
|
|
191
|
+
export interface RaizEvalTrialResultPage {
|
|
192
|
+
/**
|
|
193
|
+
* Items admitted by this resource contract within the verified organization.
|
|
194
|
+
*/
|
|
195
|
+
data: {
|
|
196
|
+
checks: string[];
|
|
197
|
+
conversation: {
|
|
198
|
+
agent: {
|
|
199
|
+
calls: {
|
|
200
|
+
blocked: boolean;
|
|
201
|
+
input: unknown;
|
|
202
|
+
name: string;
|
|
203
|
+
output: unknown;
|
|
204
|
+
}[];
|
|
205
|
+
choices: string[];
|
|
206
|
+
closed: boolean;
|
|
207
|
+
escalated: boolean;
|
|
208
|
+
greeting?: {
|
|
209
|
+
answered: boolean;
|
|
210
|
+
text?: string;
|
|
211
|
+
};
|
|
212
|
+
handedOff: boolean;
|
|
213
|
+
reply: string;
|
|
214
|
+
};
|
|
215
|
+
contact: string[];
|
|
216
|
+
}[] | null;
|
|
217
|
+
createdAt: Temporal.Instant;
|
|
218
|
+
criteria: {
|
|
219
|
+
id: string;
|
|
220
|
+
reasons: string;
|
|
221
|
+
verdict: "passed" | "failed" | "unknown";
|
|
222
|
+
}[];
|
|
223
|
+
ended: "closed" | "contact_done" | "escalated" | "handed_off" | "turn_limit" | null;
|
|
224
|
+
errorCode: string | null;
|
|
225
|
+
scenarioId: string;
|
|
226
|
+
trial: number;
|
|
227
|
+
unsimulated: string[];
|
|
228
|
+
usage: {
|
|
229
|
+
[key: string]: unknown;
|
|
230
|
+
} | null;
|
|
231
|
+
verdict: "passed" | "failed" | "inconclusive" | "error";
|
|
232
|
+
}[];
|
|
233
|
+
/**
|
|
234
|
+
* Discriminator for a resource list response.
|
|
235
|
+
*/
|
|
236
|
+
object: "list";
|
|
237
|
+
/**
|
|
238
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
239
|
+
*/
|
|
240
|
+
pageInfo: PageInfo;
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* A failed answer.
|
|
244
|
+
*/
|
|
245
|
+
export interface RaizGetEvalRunBadRequestError {
|
|
246
|
+
data: null;
|
|
247
|
+
error: RaizGetEvalRunBadRequestFailure;
|
|
248
|
+
/**
|
|
249
|
+
* What every answer carries besides its data or error.
|
|
250
|
+
*/
|
|
251
|
+
metadata: ResponseMetadata;
|
|
252
|
+
success: false;
|
|
253
|
+
}
|
|
254
|
+
export type RaizGetEvalRunBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
155
255
|
export declare const RaizEvalRunCodec: import("../../_/codec.js").Codec;
|
|
156
256
|
export declare const RaizEvalRunResponseCodec: import("../../_/codec.js").Codec;
|
|
257
|
+
export declare const RaizEvalTrialResultPageCodec: import("../../_/codec.js").Codec;
|
|
@@ -5,8 +5,12 @@ export const RaizEvalRunCodec = object([
|
|
|
5
5
|
["createdAt", null, instant],
|
|
6
6
|
["endedAt", null, instant],
|
|
7
7
|
["results", null, array(object([["createdAt", null, instant]]))],
|
|
8
|
+
["trialResults", null, () => RaizEvalTrialResultPageCodec],
|
|
8
9
|
["updatedAt", null, instant],
|
|
9
10
|
]);
|
|
10
11
|
export const RaizEvalRunResponseCodec = object([
|
|
11
12
|
["data", null, () => RaizEvalRunCodec],
|
|
12
13
|
]);
|
|
14
|
+
export const RaizEvalTrialResultPageCodec = object([
|
|
15
|
+
["data", null, array(object([["createdAt", null, instant]]))],
|
|
16
|
+
]);
|
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 { RaizAddressInUseFailure, RaizAgentInUseFailure, RaizAgentIntegrationProcedureInput, RaizAgentModalityLockedFailure, RaizAgentProcedureInput, RaizAgentProceduresInvalidFailure, RaizAgentProceduresInvalidFailureData, RaizAgentSettingsInvalidFailure, RaizAgentWorkflowInvalidFailure, RaizAgentWorkflowInvalidFailureData, RaizAssigneeUnavailableFailure, RaizBulletinLimitReachedFailure, RaizBulletinPeriodInvalidFailure, RaizBusinessHours, RaizBusinessHoursWindow, RaizCallInProgressFailure, RaizCampaignAgentNotReadyFailure, RaizCampaignHeaderMissingFailure, RaizCampaignHeaderNotStoredFailure, RaizCampaignHeaderNotStoredFailureData, RaizCampaignNoRecipientsFailure, RaizCampaignVariableMissingFailure, RaizCampaignVariableMissingFailureData, RaizChannelAgentMismatchFailure, RaizChannelNotReadyFailure, RaizChannelTypeMismatchFailure, RaizContactHoursWindow, RaizContactSuppressedFailure, RaizConversationClosedFailure, RaizConversationNotHandedOffFailure, RaizConversationOpenFailure, RaizCreditsExhaustedError, RaizCreditsExhaustedFailure, 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, RaizTeamUnavailableFailure, RaizTemplateHeaderFile, RaizTemplateHeaderMismatchFailure, RaizTemplateHeaderRequiredFailure, RaizTemplateNotApprovedFailure, RaizTemplateNotFoundFailure, RaizTemplateParametersMismatchFailure, RaizTemplateUnsupportedFailure, RaizTimeZoneUnknownFailure, RaizVersionConflictError, RaizVersionConflictFailure, RaizVoiceAgentNotReadyFailure, RaizVoiceUnavailableFailure, RaizWebsiteNotApprovedFailure, RaizWhatsappAiPausedFailure, RaizWhatsappDeliveryFailedFailure, RaizWhatsappMarketingStoppedFailure, RaizWhatsappMediaRejectedFailure, RaizWhatsappMessageUnsupportedFailure, RaizWhatsappRateLimitedFailure, RaizWhatsappRecipientUnavailableFailure, RaizWhatsappWindowClosedFailure, } from "./models.js";
|
|
5
|
+
export type { RaizAddressInUseFailure, RaizAgentBranchBehindFailure, RaizAgentBranchConflictFailure, RaizAgentBranchConflictFailureData, RaizAgentBranchEndedFailure, RaizAgentBranchFieldFailure, RaizAgentCandidateExistsFailure, RaizAgentDraftPendingFailure, RaizAgentDraftStaleFailure, RaizAgentInUseFailure, RaizAgentIntegrationProcedureInput, RaizAgentModalityLockedFailure, RaizAgentNotTextFailure, RaizAgentProcedureInput, RaizAgentProceduresInvalidFailure, RaizAgentProceduresInvalidFailureData, RaizAgentSettingsInvalidFailure, RaizAgentSplitInvalidFailure, RaizAgentWorkflowInvalidFailure, RaizAgentWorkflowInvalidFailureData, RaizAssigneeUnavailableFailure, RaizBulletinLimitReachedFailure, RaizBulletinPeriodInvalidFailure, RaizBusinessHours, RaizBusinessHoursWindow, RaizCallInProgressFailure, RaizCallRejectedFailure, RaizCampaignAgentNotReadyFailure, RaizCampaignHeaderMissingFailure, RaizCampaignHeaderNotStoredFailure, RaizCampaignHeaderNotStoredFailureData, RaizCampaignNoRecipientsFailure, RaizCampaignVariableMissingFailure, RaizCampaignVariableMissingFailureData, RaizChannelAgentMismatchFailure, RaizChannelAgentRequiredFailure, RaizChannelCreationInAppFailure, RaizChannelEndpointInUseFailure, RaizChannelNotReadyFailure, RaizChannelTypeMismatchFailure, RaizContactHoursWindow, RaizContactSuppressedFailure, RaizContactUnreachableFailure, RaizConversationClosedFailure, RaizConversationNotHandedOffFailure, RaizConversationOpenFailure, RaizConversationViewAuthorOnlyFailure, RaizConversationViewLimitReachedFailure, RaizConversationViewNameTakenFailure, RaizCreditsExhaustedError, RaizCreditsExhaustedFailure, RaizDailyReportInProgressFailure, RaizDailyReportRecipientsMissingFailure, RaizDefinitionNotActiveFailure, RaizDefinitionOptionsInvalidFailure, RaizDefinitionRetiredFailure, RaizDefinitionTypeLockedFailure, RaizEmailAddress, RaizEvalCasesUnavailableFailure, RaizEvalGateUnmetFailure, RaizEvalScenarioNameInUseFailure, RaizEvalScenariosUnavailableFailure, RaizEvalSimulationUnsupportedFailure, RaizFact, RaizFactSubjectMismatchFailure, RaizFactValueInvalidFailure, RaizFeedbackProposalUnavailableFailure, RaizHandoffAlreadyContinuedFailure, RaizIdentifierInUseFailure, RaizImportFileInvalidFailure, RaizImportFileTooLargeFailure, RaizIntegrationProcedureUnavailableFailure, RaizIntegrationToolUnavailableFailure, RaizIntegrationsUnavailableFailure, RaizInvalidCursorFailure, RaizInvalidStateFailure, RaizIpNetworkInvalidFailure, RaizKeyInUseFailure, RaizKnowledgeDocumentUnavailableFailure, RaizKnowledgeFileInvalidFailure, RaizKnowledgeKindMismatchFailure, RaizOutboundChannelInternalFailure, RaizOutboundChannelRefusedFailure, RaizOutsideContactHoursFailure, RaizOutsideHoursTemplate, RaizPhoneNumber, RaizProfileVariableMissingFailure, RaizProviderAccountExistsFailure, RaizProviderAccountInUseFailure, RaizProviderAccountMismatchFailure, RaizProviderAccountUnsupportedFailure, RaizProviderCredentialsRejectedFailure, RaizProviderRejectedError, RaizProviderRejectedFailure, RaizProviderSecretUnavailableFailure, RaizReplyInProgressFailure, RaizReportFilterUnsupportedFailure, RaizReportRangeInvalidFailure, RaizResourceNotFoundError, RaizResourceNotFoundFailure, RaizSourceConversationOpenFailure, RaizSuppressionExistsFailure, RaizTask, RaizTaskNotRetryableFailure, RaizTaskResponse, RaizTeamUnavailableFailure, RaizTemplateHeaderFile, RaizTemplateHeaderMismatchFailure, RaizTemplateHeaderRequiredFailure, RaizTemplateNotApprovedFailure, RaizTemplateNotFoundFailure, RaizTemplateParametersMismatchFailure, RaizTemplateUnsupportedFailure, RaizTimeZoneUnknownFailure, RaizVersionConflictError, RaizVersionConflictFailure, RaizVoiceAgentNotReadyFailure, RaizVoiceLineUnavailableFailure, RaizVoiceNotAvailableFailure, RaizVoiceNumberInUseFailure, RaizVoiceNumberNotOwnedFailure, RaizVoiceUnavailableFailure, RaizWebsiteNotApprovedFailure, RaizWhatsappAccountRestrictedFailure, RaizWhatsappAiPausedFailure, RaizWhatsappChannelInternalFailure, RaizWhatsappChannelRefusedFailure, RaizWhatsappDeliveryFailedFailure, RaizWhatsappDeliveryUnconfirmedFailure, RaizWhatsappEngagementLimitedFailure, RaizWhatsappMarketingStoppedFailure, RaizWhatsappMediaRejectedFailure, RaizWhatsappMessageUnsupportedFailure, RaizWhatsappNotSentFailure, RaizWhatsappRateLimitedFailure, RaizWhatsappRecipientUnavailableFailure, RaizWhatsappWindowClosedFailure, RaizWidgetConflictFailure, RaizWidgetInternalFailure, RaizWidgetLimitReachedFailure, RaizWidgetRefusedFailure, RaizWidgetVoiceUnheardFailure, } from "./models.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import type { RaizReplyModelPageResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* List reply models
|
|
12
|
+
*
|
|
13
|
+
* List the versioned models available for WhatsApp and web replies. Use an id
|
|
14
|
+
* in settings.model or keep null to follow the default. A model recommended
|
|
15
|
+
* for voice can also be selected by id in settings.voice.llm. Credits depend
|
|
16
|
+
* on actual model usage and the organization's plan.
|
|
17
|
+
*/
|
|
18
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
19
|
+
}
|
|
20
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
21
|
+
export declare function bind(transport: Transport): Client;
|
|
22
|
+
export interface ListRequest {
|
|
23
|
+
/**
|
|
24
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
25
|
+
*/
|
|
26
|
+
cursor?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
29
|
+
*/
|
|
30
|
+
direction?: "forward" | "backward";
|
|
31
|
+
/**
|
|
32
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
33
|
+
* another cursor.
|
|
34
|
+
*/
|
|
35
|
+
limit?: number;
|
|
36
|
+
}
|
|
37
|
+
export type ListResponse = RaizReplyModelPageResponse;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
export function createClient(options) {
|
|
5
|
+
return bind(new Transport(options));
|
|
6
|
+
}
|
|
7
|
+
export function bind(transport) {
|
|
8
|
+
return {
|
|
9
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const ListOperation = {
|
|
13
|
+
method: "GET",
|
|
14
|
+
route: "/v1/raiz/models",
|
|
15
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
16
|
+
response: null,
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { RaizListModelsBadRequestError, RaizListModelsBadRequestFailure, RaizReplyModel, RaizReplyModelPage, RaizReplyModelPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { InvalidInputFailure, PageInfo, ResponseMetadata } from "../../models.js";
|
|
2
|
+
import type { RaizInvalidCursorFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface RaizListModelsBadRequestError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: RaizListModelsBadRequestFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type RaizListModelsBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
16
|
+
export interface RaizReplyModel {
|
|
17
|
+
id: "openai/gpt-6-luna" | "openai/gpt-6.1-sol" | "openai/gpt-5.6-luna" | "openai/gpt-6.1-terra" | "anthropic/claude-opus-5-5" | "anthropic/claude-haiku-5-5" | "anthropic/claude-sonnet-5-5" | "anthropic/claude-sonnet-5";
|
|
18
|
+
isDefault: boolean;
|
|
19
|
+
name: string;
|
|
20
|
+
reasoningEfforts: ("none" | "low" | "medium" | "high" | "xhigh")[];
|
|
21
|
+
/**
|
|
22
|
+
* Channels for which Arbol recommends this model.
|
|
23
|
+
*/
|
|
24
|
+
recommendedFor: ("voice" | "whatsapp")[];
|
|
25
|
+
/**
|
|
26
|
+
* Selectable for text replies in this release.
|
|
27
|
+
*/
|
|
28
|
+
status: "available";
|
|
29
|
+
}
|
|
30
|
+
export interface RaizReplyModelPage {
|
|
31
|
+
/**
|
|
32
|
+
* Items admitted by this resource contract within the verified organization.
|
|
33
|
+
*/
|
|
34
|
+
data: RaizReplyModel[];
|
|
35
|
+
/**
|
|
36
|
+
* Discriminator for a resource list response.
|
|
37
|
+
*/
|
|
38
|
+
object: "list";
|
|
39
|
+
/**
|
|
40
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
41
|
+
*/
|
|
42
|
+
pageInfo: PageInfo;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A successful answer.
|
|
46
|
+
*/
|
|
47
|
+
export interface RaizReplyModelPageResponse {
|
|
48
|
+
data: RaizReplyModelPage;
|
|
49
|
+
error: null;
|
|
50
|
+
/**
|
|
51
|
+
* What every answer carries besides its data or error.
|
|
52
|
+
*/
|
|
53
|
+
metadata: ResponseMetadata;
|
|
54
|
+
success: true;
|
|
55
|
+
}
|