@arbol-ai/sdk 5.44.0 → 5.46.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 +32 -158
- package/dist/raiz/agents/client.js +12 -12
- package/dist/raiz/agents/index.d.ts +1 -1
- package/dist/raiz/agents/models.d.ts +334 -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 +1499 -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 RaizAgent, type RaizAgentIntegrationToolInput, type RaizAgentPage, type RaizAgentSettingsInput } from "./models.js";
|
|
2
|
+
import { type RaizAgentPageResponse, type RaizAgentResponse, type RaizCreateAgentBody, type RaizUpdateAgentBody } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -20,12 +19,14 @@ export interface Client {
|
|
|
20
19
|
* connections in Account, checked live: INTEGRATION_TOOL_UNAVAILABLE),
|
|
21
20
|
* `procedures` (each a trigger plus free-form Markdown or structured steps,
|
|
22
21
|
* with inline references to the Agent's tools, Knowledge and other
|
|
23
|
-
* procedures: AGENT_PROCEDURES_INVALID says where one is wrong),
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* `
|
|
22
|
+
* procedures: AGENT_PROCEDURES_INVALID says where one is wrong), `workflow`
|
|
23
|
+
* (a conversation graph of steps and edges: AGENT_WORKFLOW_INVALID says where
|
|
24
|
+
* one is wrong), and for a text Agent `integrationProcedures` (connection +
|
|
25
|
+
* procedure pairs a connection publishes, checked live:
|
|
26
|
+
* INTEGRATION_PROCEDURE_UNAVAILABLE). Next: assign it to a channel with
|
|
27
|
+
* `update_channel`; a voice Agent is published in the background, so check
|
|
28
|
+
* `synced` with `get_agent`. Read the `create-agent` skill (`get_skill`)
|
|
29
|
+
* first.
|
|
29
30
|
*/
|
|
30
31
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
31
32
|
/**
|
|
@@ -34,11 +35,11 @@ export interface Client {
|
|
|
34
35
|
* Read one Agent's complete setup: instructions, first message, language,
|
|
35
36
|
* time zone, settings, integration tools (each with its connection and
|
|
36
37
|
* effect), Knowledge document ids, procedures (trigger plus free-form
|
|
37
|
-
* instructions or structured steps) and connection procedures,
|
|
38
|
-
* `ready` says whether it can
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* `expectedVersion`.
|
|
38
|
+
* instructions or structured steps) and connection procedures, its workflow
|
|
39
|
+
* (a conversation graph, or null) and channels. `ready` says whether it can
|
|
40
|
+
* hold conversations; for a voice Agent, `synced` says whether its phone line
|
|
41
|
+
* already runs this version, and `syncErrorCode` why not. Read it before
|
|
42
|
+
* `update_agent` and send its `version` as `expectedVersion`.
|
|
42
43
|
*/
|
|
43
44
|
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
44
45
|
/**
|
|
@@ -57,89 +58,31 @@ export interface Client {
|
|
|
57
58
|
* Update an Agent
|
|
58
59
|
*
|
|
59
60
|
* Change an Agent: instructions, first message, name, language, time zone,
|
|
60
|
-
* settings, integration tools, Knowledge, procedures, connection procedures
|
|
61
|
-
* or status. Omitted fields stay and `null` clears one, also inside
|
|
62
|
-
* `settings`; `integrationTools`, `integrationProcedures`, `procedures
|
|
63
|
-
* `knowledgeDocumentIds` replace the whole value when given
|
|
64
|
-
* existing procedure's `id`), so read the Agent with `get_agent`
|
|
65
|
-
* send its `version` as `expectedVersion` (VERSION_CONFLICT: read
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
61
|
+
* settings, integration tools, Knowledge, procedures, connection procedures,
|
|
62
|
+
* workflow or status. Omitted fields stay and `null` clears one, also inside
|
|
63
|
+
* `settings`; `integrationTools`, `integrationProcedures`, `procedures`,
|
|
64
|
+
* `knowledgeDocumentIds` and `workflow` replace the whole value when given
|
|
65
|
+
* (keep each existing procedure's `id`), so read the Agent with `get_agent`
|
|
66
|
+
* first and send its `version` as `expectedVersion` (VERSION_CONFLICT: read
|
|
67
|
+
* it again). A workflow is checked against the tools the Agent will have
|
|
68
|
+
* (AGENT_WORKFLOW_INVALID). `status: paused` stops it from answering and
|
|
69
|
+
* calling. `modality` changes only while it has no channels and no published
|
|
70
|
+
* voice line (AGENT_MODALITY_LOCKED). A voice Agent republishes in the
|
|
71
|
+
* background: check `synced`.
|
|
70
72
|
*/
|
|
71
73
|
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
72
74
|
}
|
|
73
75
|
export declare function createClient(options: ClientOptions): Client;
|
|
74
76
|
export declare function bind(transport: Transport): Client;
|
|
75
|
-
export
|
|
76
|
-
|
|
77
|
-
firstMessage?: string | null;
|
|
78
|
-
instructions?: string | null;
|
|
79
|
-
/**
|
|
80
|
-
* Text Agents. Procedures a connection publishes (`listConnections`, checked
|
|
81
|
-
* live in Account), each saved with its current text and run as a free-form
|
|
82
|
-
* procedure beside `procedures`. In an update, the complete new set.
|
|
83
|
-
*/
|
|
84
|
-
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
85
|
-
/**
|
|
86
|
-
* The integrations' tools the Agent may call, each on one of the
|
|
87
|
-
* organization's connections (`listConnections`, checked live in Account).
|
|
88
|
-
* Each is saved with its current definition. In an update, the complete new
|
|
89
|
-
* set.
|
|
90
|
-
*/
|
|
91
|
-
integrationTools?: RaizAgentIntegrationToolInput[];
|
|
92
|
-
/**
|
|
93
|
-
* The Knowledge documents the Agent consults. In an update, the complete new
|
|
94
|
-
* set.
|
|
95
|
-
*/
|
|
96
|
-
knowledgeDocumentIds?: string[];
|
|
97
|
-
/**
|
|
98
|
-
* BCP 47 language tag.
|
|
99
|
-
*/
|
|
100
|
-
language?: string;
|
|
101
|
-
/**
|
|
102
|
-
* `voice`: phone calls. `text`: WhatsApp and web chat.
|
|
103
|
-
*/
|
|
104
|
-
modality: "voice" | "text";
|
|
105
|
-
name: string;
|
|
106
|
-
/**
|
|
107
|
-
* The Agent's procedures, as a complete set: a procedure left out is removed.
|
|
108
|
-
* Keep each existing procedure's `id`; a new one may omit it.
|
|
109
|
-
*/
|
|
110
|
-
procedures?: RaizAgentProcedureInput[];
|
|
111
|
-
/**
|
|
112
|
-
* How the Agent behaves. In an update, only the keys you send change: a key
|
|
113
|
-
* left out stays and `null` returns it to its default. A key's own value,
|
|
114
|
-
* such as `policy` or `voice`, is replaced whole. An update that changes
|
|
115
|
-
* `modality` starts from the defaults. Text and voice settings apply only to
|
|
116
|
-
* Agents of that modality.
|
|
117
|
-
*/
|
|
118
|
-
settings?: RaizAgentSettingsInput;
|
|
119
|
-
/**
|
|
120
|
-
* A paused Agent answers nothing and places no calls.
|
|
121
|
-
*/
|
|
122
|
-
status?: "active" | "paused";
|
|
123
|
-
timeZone?: string | null;
|
|
124
|
-
}
|
|
125
|
-
export interface CreateResponse {
|
|
126
|
-
data: RaizAgent;
|
|
127
|
-
error: null;
|
|
128
|
-
metadata: RaizResponseMetadata;
|
|
129
|
-
success: true;
|
|
130
|
-
}
|
|
77
|
+
export type CreateRequest = RaizCreateAgentBody;
|
|
78
|
+
export type CreateResponse = RaizAgentResponse;
|
|
131
79
|
export interface GetRequest {
|
|
132
80
|
/**
|
|
133
81
|
* Agent id.
|
|
134
82
|
*/
|
|
135
83
|
agentId: string;
|
|
136
84
|
}
|
|
137
|
-
export
|
|
138
|
-
data: RaizAgent;
|
|
139
|
-
error: null;
|
|
140
|
-
metadata: RaizResponseMetadata;
|
|
141
|
-
success: true;
|
|
142
|
-
}
|
|
85
|
+
export type GetResponse = RaizAgentResponse;
|
|
143
86
|
export interface ListRequest {
|
|
144
87
|
/**
|
|
145
88
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -167,80 +110,11 @@ export interface ListRequest {
|
|
|
167
110
|
*/
|
|
168
111
|
status?: "active" | "paused";
|
|
169
112
|
}
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
error: null;
|
|
173
|
-
metadata: RaizResponseMetadata;
|
|
174
|
-
success: true;
|
|
175
|
-
}
|
|
176
|
-
export interface UpdateRequest {
|
|
113
|
+
export type ListResponse = RaizAgentPageResponse;
|
|
114
|
+
export type UpdateRequest = {
|
|
177
115
|
/**
|
|
178
116
|
* Agent id.
|
|
179
117
|
*/
|
|
180
118
|
agentId: string;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
* With the Agent's `settings.evalGate`: the completed evaluation run
|
|
184
|
-
* (`createEvalRun`) of exactly the content this update leaves the model
|
|
185
|
-
* reading, in which every case passed.
|
|
186
|
-
*/
|
|
187
|
-
evalRunId?: string;
|
|
188
|
-
/**
|
|
189
|
-
* The `version` you read. When present, the change applies only if nobody
|
|
190
|
-
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
191
|
-
*/
|
|
192
|
-
expectedVersion?: number;
|
|
193
|
-
firstMessage?: string | null;
|
|
194
|
-
instructions?: string | null;
|
|
195
|
-
/**
|
|
196
|
-
* Text Agents. Procedures a connection publishes (`listConnections`, checked
|
|
197
|
-
* live in Account), each saved with its current text and run as a free-form
|
|
198
|
-
* procedure beside `procedures`. In an update, the complete new set.
|
|
199
|
-
*/
|
|
200
|
-
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
201
|
-
/**
|
|
202
|
-
* The integrations' tools the Agent may call, each on one of the
|
|
203
|
-
* organization's connections (`listConnections`, checked live in Account).
|
|
204
|
-
* Each is saved with its current definition. In an update, the complete new
|
|
205
|
-
* set.
|
|
206
|
-
*/
|
|
207
|
-
integrationTools?: RaizAgentIntegrationToolInput[];
|
|
208
|
-
/**
|
|
209
|
-
* The Knowledge documents the Agent consults. In an update, the complete new
|
|
210
|
-
* set.
|
|
211
|
-
*/
|
|
212
|
-
knowledgeDocumentIds?: string[];
|
|
213
|
-
/**
|
|
214
|
-
* BCP 47 language tag.
|
|
215
|
-
*/
|
|
216
|
-
language?: string;
|
|
217
|
-
/**
|
|
218
|
-
* `voice`: phone calls. `text`: WhatsApp and web chat.
|
|
219
|
-
*/
|
|
220
|
-
modality?: "voice" | "text";
|
|
221
|
-
name?: string;
|
|
222
|
-
/**
|
|
223
|
-
* The Agent's procedures, as a complete set: a procedure left out is removed.
|
|
224
|
-
* Keep each existing procedure's `id`; a new one may omit it.
|
|
225
|
-
*/
|
|
226
|
-
procedures?: RaizAgentProcedureInput[];
|
|
227
|
-
/**
|
|
228
|
-
* How the Agent behaves. In an update, only the keys you send change: a key
|
|
229
|
-
* left out stays and `null` returns it to its default. A key's own value,
|
|
230
|
-
* such as `policy` or `voice`, is replaced whole. An update that changes
|
|
231
|
-
* `modality` starts from the defaults. Text and voice settings apply only to
|
|
232
|
-
* Agents of that modality.
|
|
233
|
-
*/
|
|
234
|
-
settings?: RaizAgentSettingsInput;
|
|
235
|
-
/**
|
|
236
|
-
* A paused Agent answers nothing and places no calls.
|
|
237
|
-
*/
|
|
238
|
-
status?: "active" | "paused";
|
|
239
|
-
timeZone?: string | null;
|
|
240
|
-
}
|
|
241
|
-
export interface UpdateResponse {
|
|
242
|
-
data: RaizAgent;
|
|
243
|
-
error: null;
|
|
244
|
-
metadata: RaizResponseMetadata;
|
|
245
|
-
success: true;
|
|
246
|
-
}
|
|
119
|
+
} & RaizUpdateAgentBody;
|
|
120
|
+
export type UpdateResponse = RaizAgentResponse;
|
|
@@ -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 { RaizAgentPageResponseCodec, RaizAgentResponseCodec, RaizCreateAgentBodyCodec, RaizUpdateAgentBodyCodec, } from "./models.js";
|
|
5
5
|
export function createClient(options) {
|
|
6
6
|
return bind(new Transport(options));
|
|
7
7
|
}
|
|
@@ -17,28 +17,28 @@ const CreateOperation = {
|
|
|
17
17
|
method: "POST",
|
|
18
18
|
route: "/v1/raiz/agents",
|
|
19
19
|
body: "flat",
|
|
20
|
-
request:
|
|
21
|
-
response:
|
|
22
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
20
|
+
request: RaizCreateAgentBodyCodec,
|
|
21
|
+
response: RaizAgentResponseCodec,
|
|
22
|
+
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 },
|
|
23
23
|
};
|
|
24
24
|
const GetOperation = {
|
|
25
25
|
method: "GET",
|
|
26
26
|
route: "/v1/raiz/agents/{agentId}",
|
|
27
|
-
response:
|
|
28
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
27
|
+
response: RaizAgentResponseCodec,
|
|
28
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
29
29
|
};
|
|
30
30
|
const ListOperation = {
|
|
31
31
|
method: "GET",
|
|
32
32
|
route: "/v1/raiz/agents",
|
|
33
33
|
query: { cursor: "cursor", direction: "direction", limit: "limit", modality: "modality", q: "q", status: "status" },
|
|
34
|
-
response:
|
|
35
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
34
|
+
response: RaizAgentPageResponseCodec,
|
|
35
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
36
36
|
};
|
|
37
37
|
const UpdateOperation = {
|
|
38
38
|
method: "PATCH",
|
|
39
39
|
route: "/v1/raiz/agents/{agentId}",
|
|
40
40
|
body: "flat",
|
|
41
|
-
request:
|
|
42
|
-
response:
|
|
43
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
41
|
+
request: RaizUpdateAgentBodyCodec,
|
|
42
|
+
response: RaizAgentResponseCodec,
|
|
43
|
+
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 },
|
|
44
44
|
};
|
|
@@ -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 { RaizAgent, RaizAgentGreeting, RaizAgentIntegrationToolInput, RaizAgentModelTrial, RaizAgentPage, RaizAgentProcedure, RaizAgentSettings, RaizAgentSettingsInput, RaizAgentTurnPolicy, RaizAgentVoiceSettings, } from "./models.js";
|
|
5
|
+
export type { RaizAgent, RaizAgentGreeting, RaizAgentIntegrationToolInput, RaizAgentModelTrial, RaizAgentPage, RaizAgentPageResponse, RaizAgentProcedure, RaizAgentResponse, RaizAgentSettings, RaizAgentSettingsInput, RaizAgentTurnPolicy, RaizAgentVoiceSettings, RaizAgentWorkflow, RaizCreateAgentBody, RaizCreateAgentConflictError, RaizCreateAgentConflictFailure, RaizCreateAgentServiceUnavailableError, RaizCreateAgentServiceUnavailableFailure, RaizCreateAgentUnprocessableContentError, RaizCreateAgentUnprocessableContentFailure, RaizGetAgentServiceUnavailableError, RaizGetAgentServiceUnavailableFailure, RaizListAgentsBadRequestError, RaizListAgentsBadRequestFailure, RaizListAgentsServiceUnavailableError, RaizListAgentsServiceUnavailableFailure, RaizUpdateAgentBody, RaizUpdateAgentConflictError, RaizUpdateAgentConflictFailure, RaizUpdateAgentServiceUnavailableError, RaizUpdateAgentServiceUnavailableFailure, RaizUpdateAgentUnprocessableContentError, RaizUpdateAgentUnprocessableContentFailure, } from "./models.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
2
|
-
import { type RaizBusinessHours } from "../models.js";
|
|
1
|
+
import type { InvalidInputFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import { type RaizAgentInUseFailure, type RaizAgentIntegrationProcedureInput, type RaizAgentModalityLockedFailure, type RaizAgentProcedureInput, type RaizAgentProceduresInvalidFailure, type RaizAgentSettingsInvalidFailure, type RaizAgentWorkflowInvalidFailure, type RaizBusinessHours, type RaizEvalGateUnmetFailure, type RaizIntegrationProcedureUnavailableFailure, type RaizIntegrationToolUnavailableFailure, type RaizIntegrationsUnavailableFailure, type RaizInvalidCursorFailure, type RaizKnowledgeDocumentUnavailableFailure, type RaizVersionConflictFailure, type RaizVoiceUnavailableFailure } from "../models.js";
|
|
3
3
|
export interface RaizAgent {
|
|
4
4
|
channelCount: number;
|
|
5
5
|
/**
|
|
@@ -87,6 +87,11 @@ export interface RaizAgent {
|
|
|
87
87
|
*/
|
|
88
88
|
updatedAt: Temporal.Instant;
|
|
89
89
|
version: number;
|
|
90
|
+
/**
|
|
91
|
+
* The conversation graph the Agent follows beside its instructions and
|
|
92
|
+
* procedures, or null for none.
|
|
93
|
+
*/
|
|
94
|
+
workflow: RaizAgentWorkflow | null;
|
|
90
95
|
}
|
|
91
96
|
export type RaizAgentGreeting = {
|
|
92
97
|
always?: boolean;
|
|
@@ -137,6 +142,18 @@ export interface RaizAgentPage {
|
|
|
137
142
|
*/
|
|
138
143
|
pageInfo: PageInfo;
|
|
139
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* A successful answer.
|
|
147
|
+
*/
|
|
148
|
+
export interface RaizAgentPageResponse {
|
|
149
|
+
data: RaizAgentPage;
|
|
150
|
+
error: null;
|
|
151
|
+
/**
|
|
152
|
+
* What every answer carries besides its data or error.
|
|
153
|
+
*/
|
|
154
|
+
metadata: ResponseMetadata;
|
|
155
|
+
success: true;
|
|
156
|
+
}
|
|
140
157
|
export interface RaizAgentProcedure {
|
|
141
158
|
/**
|
|
142
159
|
* Free-form procedures: what to do, in Markdown, with inline references such
|
|
@@ -315,6 +332,18 @@ export interface RaizAgentProcedure {
|
|
|
315
332
|
*/
|
|
316
333
|
type: "free_form" | "structured";
|
|
317
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* A successful answer.
|
|
337
|
+
*/
|
|
338
|
+
export interface RaizAgentResponse {
|
|
339
|
+
data: RaizAgent;
|
|
340
|
+
error: null;
|
|
341
|
+
/**
|
|
342
|
+
* What every answer carries besides its data or error.
|
|
343
|
+
*/
|
|
344
|
+
metadata: ResponseMetadata;
|
|
345
|
+
success: true;
|
|
346
|
+
}
|
|
318
347
|
export interface RaizAgentSettings {
|
|
319
348
|
attachmentReader: "vision" | "ocr" | null;
|
|
320
349
|
automaticKnowledge: boolean | null;
|
|
@@ -463,6 +492,309 @@ export interface RaizAgentVoiceSettings {
|
|
|
463
492
|
turnTimeoutSeconds: number | null;
|
|
464
493
|
voiceId: string | null;
|
|
465
494
|
}
|
|
495
|
+
export interface RaizAgentWorkflow {
|
|
496
|
+
/**
|
|
497
|
+
* The format of this document.
|
|
498
|
+
*/
|
|
499
|
+
formatVersion: 1;
|
|
500
|
+
/**
|
|
501
|
+
* The steps. Every node must be reachable from the start, the graph has no
|
|
502
|
+
* cycles, and every path finishes at an end node.
|
|
503
|
+
*/
|
|
504
|
+
nodes: ({
|
|
505
|
+
edges: {
|
|
506
|
+
condition: {
|
|
507
|
+
type: "semantic";
|
|
508
|
+
when: string;
|
|
509
|
+
} | {
|
|
510
|
+
type: "unconditional";
|
|
511
|
+
};
|
|
512
|
+
to: string;
|
|
513
|
+
}[];
|
|
514
|
+
id: string;
|
|
515
|
+
instructions: string;
|
|
516
|
+
type: "converse";
|
|
517
|
+
} | {
|
|
518
|
+
arguments: {
|
|
519
|
+
[key: string]: unknown;
|
|
520
|
+
};
|
|
521
|
+
edges: {
|
|
522
|
+
condition: {
|
|
523
|
+
outcome: "success" | "failure";
|
|
524
|
+
type: "result";
|
|
525
|
+
};
|
|
526
|
+
to: string;
|
|
527
|
+
}[];
|
|
528
|
+
id: string;
|
|
529
|
+
tool: string;
|
|
530
|
+
type: "tool";
|
|
531
|
+
} | {
|
|
532
|
+
id: string;
|
|
533
|
+
type: "end";
|
|
534
|
+
})[];
|
|
535
|
+
/**
|
|
536
|
+
* The node the conversation starts at.
|
|
537
|
+
*/
|
|
538
|
+
startNodeId: string;
|
|
539
|
+
}
|
|
540
|
+
export interface RaizCreateAgentBody {
|
|
541
|
+
description?: string | null;
|
|
542
|
+
firstMessage?: string | null;
|
|
543
|
+
instructions?: string | null;
|
|
544
|
+
/**
|
|
545
|
+
* Text Agents. Procedures a connection publishes (`listConnections`, checked
|
|
546
|
+
* live in Account), each saved with its current text and run as a free-form
|
|
547
|
+
* procedure beside `procedures`. In an update, the complete new set.
|
|
548
|
+
*/
|
|
549
|
+
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
550
|
+
/**
|
|
551
|
+
* The integrations' tools the Agent may call, each on one of the
|
|
552
|
+
* organization's connections (`listConnections`, checked live in Account).
|
|
553
|
+
* Each is saved with its current definition. In an update, the complete new
|
|
554
|
+
* set.
|
|
555
|
+
*/
|
|
556
|
+
integrationTools?: RaizAgentIntegrationToolInput[];
|
|
557
|
+
/**
|
|
558
|
+
* The Knowledge documents the Agent consults. In an update, the complete new
|
|
559
|
+
* set.
|
|
560
|
+
*/
|
|
561
|
+
knowledgeDocumentIds?: string[];
|
|
562
|
+
/**
|
|
563
|
+
* BCP 47 language tag.
|
|
564
|
+
*/
|
|
565
|
+
language?: string;
|
|
566
|
+
/**
|
|
567
|
+
* `voice`: phone calls. `text`: WhatsApp and web chat.
|
|
568
|
+
*/
|
|
569
|
+
modality: "voice" | "text";
|
|
570
|
+
name: string;
|
|
571
|
+
/**
|
|
572
|
+
* The Agent's procedures, as a complete set: a procedure left out is removed.
|
|
573
|
+
* Keep each existing procedure's `id`; a new one may omit it.
|
|
574
|
+
*/
|
|
575
|
+
procedures?: RaizAgentProcedureInput[];
|
|
576
|
+
/**
|
|
577
|
+
* How the Agent behaves. In an update, only the keys you send change: a key
|
|
578
|
+
* left out stays and `null` returns it to its default. A key's own value,
|
|
579
|
+
* such as `policy` or `voice`, is replaced whole. An update that changes
|
|
580
|
+
* `modality` starts from the defaults. Text and voice settings apply only to
|
|
581
|
+
* Agents of that modality.
|
|
582
|
+
*/
|
|
583
|
+
settings?: RaizAgentSettingsInput;
|
|
584
|
+
/**
|
|
585
|
+
* A paused Agent answers nothing and places no calls.
|
|
586
|
+
*/
|
|
587
|
+
status?: "active" | "paused";
|
|
588
|
+
timeZone?: string | null;
|
|
589
|
+
/**
|
|
590
|
+
* The conversation graph the Agent follows beside its instructions and
|
|
591
|
+
* procedures: conversation steps, tool steps and endings, with no loops and a
|
|
592
|
+
* way forward from every step. A tool step needs one of the Agent's
|
|
593
|
+
* integration tools that only reads and that exactly one connection holds. It
|
|
594
|
+
* runs by itself, with the step's constant arguments and without the model
|
|
595
|
+
* choosing them, and follows its success or failure edge; on a call, a step
|
|
596
|
+
* that cannot run follows its failure edge. Checked against the Agent as it
|
|
597
|
+
* will be once saved (AGENT_WORKFLOW_INVALID says where one is wrong), also
|
|
598
|
+
* when an update changes the Agent's tools. In an update, omit it to keep the
|
|
599
|
+
* current one and send `null` to remove it.
|
|
600
|
+
*/
|
|
601
|
+
workflow?: RaizAgentWorkflow | null;
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* A failed answer.
|
|
605
|
+
*/
|
|
606
|
+
export interface RaizCreateAgentConflictError {
|
|
607
|
+
data: null;
|
|
608
|
+
error: RaizCreateAgentConflictFailure;
|
|
609
|
+
/**
|
|
610
|
+
* What every answer carries besides its data or error.
|
|
611
|
+
*/
|
|
612
|
+
metadata: ResponseMetadata;
|
|
613
|
+
success: false;
|
|
614
|
+
}
|
|
615
|
+
export type RaizCreateAgentConflictFailure = RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizVersionConflictFailure;
|
|
616
|
+
/**
|
|
617
|
+
* A failed answer.
|
|
618
|
+
*/
|
|
619
|
+
export interface RaizCreateAgentServiceUnavailableError {
|
|
620
|
+
data: null;
|
|
621
|
+
error: RaizCreateAgentServiceUnavailableFailure;
|
|
622
|
+
/**
|
|
623
|
+
* What every answer carries besides its data or error.
|
|
624
|
+
*/
|
|
625
|
+
metadata: ResponseMetadata;
|
|
626
|
+
success: false;
|
|
627
|
+
}
|
|
628
|
+
export type RaizCreateAgentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
629
|
+
/**
|
|
630
|
+
* A failed answer.
|
|
631
|
+
*/
|
|
632
|
+
export interface RaizCreateAgentUnprocessableContentError {
|
|
633
|
+
data: null;
|
|
634
|
+
error: RaizCreateAgentUnprocessableContentFailure;
|
|
635
|
+
/**
|
|
636
|
+
* What every answer carries besides its data or error.
|
|
637
|
+
*/
|
|
638
|
+
metadata: ResponseMetadata;
|
|
639
|
+
success: false;
|
|
640
|
+
}
|
|
641
|
+
export type RaizCreateAgentUnprocessableContentFailure = RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure;
|
|
642
|
+
/**
|
|
643
|
+
* A failed answer.
|
|
644
|
+
*/
|
|
645
|
+
export interface RaizGetAgentServiceUnavailableError {
|
|
646
|
+
data: null;
|
|
647
|
+
error: RaizGetAgentServiceUnavailableFailure;
|
|
648
|
+
/**
|
|
649
|
+
* What every answer carries besides its data or error.
|
|
650
|
+
*/
|
|
651
|
+
metadata: ResponseMetadata;
|
|
652
|
+
success: false;
|
|
653
|
+
}
|
|
654
|
+
export type RaizGetAgentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
655
|
+
/**
|
|
656
|
+
* A failed answer.
|
|
657
|
+
*/
|
|
658
|
+
export interface RaizListAgentsBadRequestError {
|
|
659
|
+
data: null;
|
|
660
|
+
error: RaizListAgentsBadRequestFailure;
|
|
661
|
+
/**
|
|
662
|
+
* What every answer carries besides its data or error.
|
|
663
|
+
*/
|
|
664
|
+
metadata: ResponseMetadata;
|
|
665
|
+
success: false;
|
|
666
|
+
}
|
|
667
|
+
export type RaizListAgentsBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
668
|
+
/**
|
|
669
|
+
* A failed answer.
|
|
670
|
+
*/
|
|
671
|
+
export interface RaizListAgentsServiceUnavailableError {
|
|
672
|
+
data: null;
|
|
673
|
+
error: RaizListAgentsServiceUnavailableFailure;
|
|
674
|
+
/**
|
|
675
|
+
* What every answer carries besides its data or error.
|
|
676
|
+
*/
|
|
677
|
+
metadata: ResponseMetadata;
|
|
678
|
+
success: false;
|
|
679
|
+
}
|
|
680
|
+
export type RaizListAgentsServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
681
|
+
export interface RaizUpdateAgentBody {
|
|
682
|
+
description?: string | null;
|
|
683
|
+
/**
|
|
684
|
+
* With the Agent's `settings.evalGate`: the completed evaluation run
|
|
685
|
+
* (`createEvalRun`) of exactly the content this update leaves the model
|
|
686
|
+
* reading, in which every case passed.
|
|
687
|
+
*/
|
|
688
|
+
evalRunId?: string;
|
|
689
|
+
/**
|
|
690
|
+
* The `version` you read. When present, the change applies only if nobody
|
|
691
|
+
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
692
|
+
*/
|
|
693
|
+
expectedVersion?: number;
|
|
694
|
+
firstMessage?: string | null;
|
|
695
|
+
instructions?: string | null;
|
|
696
|
+
/**
|
|
697
|
+
* Text Agents. Procedures a connection publishes (`listConnections`, checked
|
|
698
|
+
* live in Account), each saved with its current text and run as a free-form
|
|
699
|
+
* procedure beside `procedures`. In an update, the complete new set.
|
|
700
|
+
*/
|
|
701
|
+
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
702
|
+
/**
|
|
703
|
+
* The integrations' tools the Agent may call, each on one of the
|
|
704
|
+
* organization's connections (`listConnections`, checked live in Account).
|
|
705
|
+
* Each is saved with its current definition. In an update, the complete new
|
|
706
|
+
* set.
|
|
707
|
+
*/
|
|
708
|
+
integrationTools?: RaizAgentIntegrationToolInput[];
|
|
709
|
+
/**
|
|
710
|
+
* The Knowledge documents the Agent consults. In an update, the complete new
|
|
711
|
+
* set.
|
|
712
|
+
*/
|
|
713
|
+
knowledgeDocumentIds?: string[];
|
|
714
|
+
/**
|
|
715
|
+
* BCP 47 language tag.
|
|
716
|
+
*/
|
|
717
|
+
language?: string;
|
|
718
|
+
/**
|
|
719
|
+
* `voice`: phone calls. `text`: WhatsApp and web chat.
|
|
720
|
+
*/
|
|
721
|
+
modality?: "voice" | "text";
|
|
722
|
+
name?: string;
|
|
723
|
+
/**
|
|
724
|
+
* The Agent's procedures, as a complete set: a procedure left out is removed.
|
|
725
|
+
* Keep each existing procedure's `id`; a new one may omit it.
|
|
726
|
+
*/
|
|
727
|
+
procedures?: RaizAgentProcedureInput[];
|
|
728
|
+
/**
|
|
729
|
+
* How the Agent behaves. In an update, only the keys you send change: a key
|
|
730
|
+
* left out stays and `null` returns it to its default. A key's own value,
|
|
731
|
+
* such as `policy` or `voice`, is replaced whole. An update that changes
|
|
732
|
+
* `modality` starts from the defaults. Text and voice settings apply only to
|
|
733
|
+
* Agents of that modality.
|
|
734
|
+
*/
|
|
735
|
+
settings?: RaizAgentSettingsInput;
|
|
736
|
+
/**
|
|
737
|
+
* A paused Agent answers nothing and places no calls.
|
|
738
|
+
*/
|
|
739
|
+
status?: "active" | "paused";
|
|
740
|
+
timeZone?: string | null;
|
|
741
|
+
/**
|
|
742
|
+
* The conversation graph the Agent follows beside its instructions and
|
|
743
|
+
* procedures: conversation steps, tool steps and endings, with no loops and a
|
|
744
|
+
* way forward from every step. A tool step needs one of the Agent's
|
|
745
|
+
* integration tools that only reads and that exactly one connection holds. It
|
|
746
|
+
* runs by itself, with the step's constant arguments and without the model
|
|
747
|
+
* choosing them, and follows its success or failure edge; on a call, a step
|
|
748
|
+
* that cannot run follows its failure edge. Checked against the Agent as it
|
|
749
|
+
* will be once saved (AGENT_WORKFLOW_INVALID says where one is wrong), also
|
|
750
|
+
* when an update changes the Agent's tools. In an update, omit it to keep the
|
|
751
|
+
* current one and send `null` to remove it.
|
|
752
|
+
*/
|
|
753
|
+
workflow?: RaizAgentWorkflow | null;
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* A failed answer.
|
|
757
|
+
*/
|
|
758
|
+
export interface RaizUpdateAgentConflictError {
|
|
759
|
+
data: null;
|
|
760
|
+
error: RaizUpdateAgentConflictFailure;
|
|
761
|
+
/**
|
|
762
|
+
* What every answer carries besides its data or error.
|
|
763
|
+
*/
|
|
764
|
+
metadata: ResponseMetadata;
|
|
765
|
+
success: false;
|
|
766
|
+
}
|
|
767
|
+
export type RaizUpdateAgentConflictFailure = RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizEvalGateUnmetFailure | RaizVersionConflictFailure;
|
|
768
|
+
/**
|
|
769
|
+
* A failed answer.
|
|
770
|
+
*/
|
|
771
|
+
export interface RaizUpdateAgentServiceUnavailableError {
|
|
772
|
+
data: null;
|
|
773
|
+
error: RaizUpdateAgentServiceUnavailableFailure;
|
|
774
|
+
/**
|
|
775
|
+
* What every answer carries besides its data or error.
|
|
776
|
+
*/
|
|
777
|
+
metadata: ResponseMetadata;
|
|
778
|
+
success: false;
|
|
779
|
+
}
|
|
780
|
+
export type RaizUpdateAgentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
781
|
+
/**
|
|
782
|
+
* A failed answer.
|
|
783
|
+
*/
|
|
784
|
+
export interface RaizUpdateAgentUnprocessableContentError {
|
|
785
|
+
data: null;
|
|
786
|
+
error: RaizUpdateAgentUnprocessableContentFailure;
|
|
787
|
+
/**
|
|
788
|
+
* What every answer carries besides its data or error.
|
|
789
|
+
*/
|
|
790
|
+
metadata: ResponseMetadata;
|
|
791
|
+
success: false;
|
|
792
|
+
}
|
|
793
|
+
export type RaizUpdateAgentUnprocessableContentFailure = RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure;
|
|
466
794
|
export declare const RaizAgentCodec: import("../../_/codec.js").Codec;
|
|
467
795
|
export declare const RaizAgentPageCodec: import("../../_/codec.js").Codec;
|
|
796
|
+
export declare const RaizAgentPageResponseCodec: import("../../_/codec.js").Codec;
|
|
797
|
+
export declare const RaizAgentResponseCodec: import("../../_/codec.js").Codec;
|
|
468
798
|
export declare const RaizAgentSettingsInputCodec: import("../../_/codec.js").Codec;
|
|
799
|
+
export declare const RaizCreateAgentBodyCodec: import("../../_/codec.js").Codec;
|
|
800
|
+
export declare const RaizUpdateAgentBodyCodec: import("../../_/codec.js").Codec;
|