@arbol-ai/sdk 5.43.0 → 5.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/client.d.ts +0 -16
- package/dist/account/client.js +0 -40
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +0 -93
- package/dist/agenda/appointments/client.d.ts +14 -243
- package/dist/agenda/appointments/client.js +18 -17
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/appointments/models.d.ts +612 -2
- package/dist/agenda/appointments/models.js +14 -2
- package/dist/agenda/availability/client.d.ts +2 -7
- package/dist/agenda/availability/client.js +5 -4
- package/dist/agenda/availability/index.d.ts +1 -0
- package/dist/agenda/availability/models.d.ts +67 -0
- package/dist/agenda/bookingLocations/client.d.ts +2 -7
- package/dist/agenda/bookingLocations/client.js +4 -4
- package/dist/agenda/bookingLocations/index.d.ts +1 -0
- package/dist/agenda/bookingLocations/models.d.ts +67 -0
- package/dist/agenda/bookingOfferings/client.d.ts +2 -8
- package/dist/agenda/bookingOfferings/client.js +1 -1
- package/dist/agenda/bookingOfferings/index.d.ts +1 -1
- package/dist/agenda/bookingOfferings/models.d.ts +79 -1
- package/dist/agenda/bookingRequirements/client.d.ts +2 -75
- package/dist/agenda/bookingRequirements/client.js +1 -1
- package/dist/agenda/bookingRequirements/index.d.ts +1 -0
- package/dist/agenda/bookingRequirements/models.d.ts +182 -0
- package/dist/agenda/bookingSlots/client.d.ts +2 -7
- package/dist/agenda/bookingSlots/client.js +5 -4
- package/dist/agenda/bookingSlots/index.d.ts +1 -0
- package/dist/agenda/bookingSlots/models.d.ts +67 -0
- package/dist/agenda/bookingSlots/models.js +3 -0
- package/dist/agenda/bookings/client.d.ts +13 -188
- package/dist/agenda/bookings/client.js +13 -13
- package/dist/agenda/bookings/index.d.ts +1 -1
- package/dist/agenda/bookings/models.d.ts +526 -1
- package/dist/agenda/bookings/models.js +7 -1
- package/dist/agenda/firstAvailability/client.d.ts +2 -8
- package/dist/agenda/firstAvailability/client.js +4 -4
- package/dist/agenda/firstAvailability/index.d.ts +1 -1
- package/dist/agenda/firstAvailability/models.d.ts +80 -1
- package/dist/agenda/firstAvailability/models.js +4 -1
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -7
- package/dist/agenda/locations/client.js +4 -4
- package/dist/agenda/locations/index.d.ts +1 -0
- package/dist/agenda/locations/models.d.ts +67 -0
- package/dist/agenda/locations/models.js +3 -0
- package/dist/agenda/models.d.ts +2193 -839
- package/dist/agenda/models.js +9 -0
- package/dist/agenda/nearestBookingSlots/client.d.ts +2 -8
- package/dist/agenda/nearestBookingSlots/client.js +4 -4
- package/dist/agenda/nearestBookingSlots/index.d.ts +1 -1
- package/dist/agenda/nearestBookingSlots/models.d.ts +80 -2
- package/dist/agenda/nearestBookingSlots/models.js +4 -1
- package/dist/agenda/offerings/client.d.ts +7 -146
- package/dist/agenda/offerings/client.js +8 -8
- package/dist/agenda/offerings/index.d.ts +1 -1
- package/dist/agenda/offerings/models.d.ts +349 -1
- package/dist/agenda/offerings/models.js +6 -0
- package/dist/agenda/resourceSchedules/client.d.ts +4 -51
- package/dist/agenda/resourceSchedules/client.js +5 -4
- package/dist/agenda/resourceSchedules/index.d.ts +1 -0
- package/dist/agenda/resourceSchedules/models.d.ts +133 -0
- package/dist/agenda/resourceSchedules/models.js +12 -0
- package/dist/agenda/resources/client.d.ts +7 -99
- package/dist/agenda/resources/client.js +8 -8
- package/dist/agenda/resources/index.d.ts +1 -1
- package/dist/agenda/resources/models.d.ts +302 -1
- package/dist/agenda/resources/models.js +6 -0
- package/dist/agenda/scheduleRules/client.d.ts +7 -172
- package/dist/agenda/scheduleRules/client.js +10 -10
- package/dist/agenda/scheduleRules/index.d.ts +1 -1
- package/dist/agenda/scheduleRules/models.d.ts +520 -1
- package/dist/agenda/scheduleRules/models.js +31 -0
- package/dist/agenda/services/client.d.ts +7 -71
- package/dist/agenda/services/client.js +8 -8
- package/dist/agenda/services/index.d.ts +1 -1
- package/dist/agenda/services/models.d.ts +274 -1
- package/dist/agenda/services/models.js +6 -0
- package/dist/agenda/waitlist/client.d.ts +9 -217
- package/dist/agenda/waitlist/client.js +13 -13
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +482 -1
- package/dist/agenda/waitlist/models.js +16 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -20
- package/dist/raiz/agents/client.d.ts +8 -137
- package/dist/raiz/agents/client.js +12 -12
- package/dist/raiz/agents/index.d.ts +1 -1
- package/dist/raiz/agents/models.d.ts +258 -2
- package/dist/raiz/agents/models.js +13 -1
- package/dist/raiz/bulletins/client.d.ts +10 -74
- package/dist/raiz/bulletins/client.js +13 -14
- package/dist/raiz/bulletins/index.d.ts +1 -1
- package/dist/raiz/bulletins/models.d.ts +112 -1
- package/dist/raiz/bulletins/models.js +14 -0
- package/dist/raiz/campaigns/client.d.ts +11 -140
- package/dist/raiz/campaigns/client.js +14 -14
- package/dist/raiz/campaigns/index.d.ts +1 -1
- package/dist/raiz/campaigns/models.d.ts +343 -2
- package/dist/raiz/campaigns/models.js +14 -1
- package/dist/raiz/changes/client.d.ts +2 -8
- package/dist/raiz/changes/client.js +4 -4
- package/dist/raiz/changes/index.d.ts +1 -1
- package/dist/raiz/changes/models.d.ts +41 -1
- package/dist/raiz/changes/models.js +3 -0
- package/dist/raiz/channels/client.d.ts +15 -142
- package/dist/raiz/channels/client.js +16 -18
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +1511 -2
- package/dist/raiz/channels/models.js +12 -2
- package/dist/raiz/contacts/client.d.ts +12 -117
- package/dist/raiz/contacts/client.js +15 -15
- package/dist/raiz/contacts/index.d.ts +1 -1
- package/dist/raiz/contacts/models.d.ts +305 -2
- package/dist/raiz/contacts/models.js +10 -1
- package/dist/raiz/conversations/client.d.ts +18 -99
- package/dist/raiz/conversations/client.js +12 -13
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +253 -2
- package/dist/raiz/conversations/models.js +8 -2
- package/dist/raiz/definitions/client.d.ts +8 -115
- package/dist/raiz/definitions/client.js +10 -10
- package/dist/raiz/definitions/index.d.ts +1 -1
- package/dist/raiz/definitions/models.d.ts +224 -1
- package/dist/raiz/definitions/models.js +6 -0
- package/dist/raiz/evalCases/client.d.ts +10 -57
- package/dist/raiz/evalCases/client.js +8 -8
- package/dist/raiz/evalCases/index.d.ts +1 -1
- package/dist/raiz/evalCases/models.d.ts +78 -1
- package/dist/raiz/evalCases/models.js +6 -0
- package/dist/raiz/evalRuns/client.d.ts +4 -45
- package/dist/raiz/evalRuns/client.js +6 -6
- package/dist/raiz/evalRuns/index.d.ts +1 -1
- package/dist/raiz/evalRuns/models.d.ts +85 -0
- package/dist/raiz/evalRuns/models.js +3 -0
- package/dist/raiz/facts/client.d.ts +6 -65
- package/dist/raiz/facts/client.js +7 -7
- package/dist/raiz/facts/index.d.ts +1 -0
- package/dist/raiz/facts/models.d.ts +120 -0
- package/dist/raiz/facts/models.js +10 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +10 -130
- package/dist/raiz/knowledge/client.js +13 -13
- package/dist/raiz/knowledge/index.d.ts +1 -1
- package/dist/raiz/knowledge/models.d.ts +256 -1
- package/dist/raiz/knowledge/models.js +12 -0
- package/dist/raiz/models.d.ts +1474 -825
- package/dist/raiz/models.js +3 -0
- package/dist/raiz/organization/client.d.ts +7 -70
- package/dist/raiz/organization/client.js +8 -8
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/organization/models.d.ts +178 -1
- package/dist/raiz/organization/models.js +11 -0
- package/dist/raiz/profiles/client.d.ts +8 -87
- package/dist/raiz/profiles/client.js +10 -10
- package/dist/raiz/profiles/index.d.ts +1 -1
- package/dist/raiz/profiles/models.d.ts +206 -2
- package/dist/raiz/profiles/models.js +6 -0
- package/dist/raiz/reports/client.d.ts +5 -8
- package/dist/raiz/reports/client.js +4 -4
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/raiz/reports/models.d.ts +41 -0
- package/dist/raiz/reports/models.js +3 -0
- package/dist/raiz/suppressions/client.d.ts +4 -31
- package/dist/raiz/suppressions/client.js +6 -6
- package/dist/raiz/suppressions/index.d.ts +1 -1
- package/dist/raiz/suppressions/models.d.ts +114 -1
- package/dist/raiz/suppressions/models.js +6 -0
- package/dist/raiz/tasks/client.d.ts +12 -32
- package/dist/raiz/tasks/client.js +11 -11
- package/dist/raiz/tasks/index.d.ts +1 -1
- package/dist/raiz/tasks/models.d.ts +108 -2
- package/dist/raiz/tasks/models.js +4 -1
- package/dist/raiz/templates/client.d.ts +7 -84
- package/dist/raiz/templates/client.js +5 -4
- package/dist/raiz/templates/index.d.ts +1 -1
- package/dist/raiz/templates/models.d.ts +214 -1
- package/dist/raiz/templates/models.js +4 -1
- package/dist/raiz/voices/client.d.ts +2 -8
- package/dist/raiz/voices/client.js +1 -1
- package/dist/raiz/voices/index.d.ts +1 -1
- package/dist/raiz/voices/models.d.ts +40 -1
- package/package.json +3 -3
- package/dist/account/billing/client.d.ts +0 -22
- package/dist/account/billing/client.js +0 -18
- package/dist/account/billing/index.d.ts +0 -5
- package/dist/account/billing/index.js +0 -4
- package/dist/account/billing/models.d.ts +0 -74
- package/dist/account/billing/models.js +0 -10
- package/dist/account/billingProfiles/client.d.ts +0 -39
- package/dist/account/billingProfiles/client.js +0 -25
- package/dist/account/billingProfiles/index.d.ts +0 -5
- package/dist/account/billingProfiles/index.js +0 -4
- package/dist/account/billingProfiles/models.d.ts +0 -58
- package/dist/account/invoiceDocuments/client.d.ts +0 -25
- package/dist/account/invoiceDocuments/client.js +0 -17
- package/dist/account/invoiceDocuments/index.d.ts +0 -5
- package/dist/account/invoiceDocuments/index.js +0 -4
- package/dist/account/invoiceDocuments/models.d.ts +0 -35
- package/dist/account/invoices/client.d.ts +0 -47
- package/dist/account/invoices/client.js +0 -26
- package/dist/account/invoices/index.d.ts +0 -5
- package/dist/account/invoices/index.js +0 -4
- package/dist/account/invoices/models.d.ts +0 -135
- package/dist/account/invoices/models.js +0 -24
- package/dist/account/payments/client.d.ts +0 -34
- package/dist/account/payments/client.js +0 -19
- package/dist/account/payments/index.d.ts +0 -5
- package/dist/account/payments/index.js +0 -4
- package/dist/account/payments/models.d.ts +0 -64
- package/dist/account/payments/models.js +0 -12
- package/dist/account/usage/client.d.ts +0 -47
- package/dist/account/usage/client.js +0 -18
- package/dist/account/usage/index.d.ts +0 -5
- package/dist/account/usage/index.js +0 -4
- package/dist/account/usage/models.d.ts +0 -51
- package/dist/account/usageSummary/client.d.ts +0 -26
- package/dist/account/usageSummary/client.js +0 -19
- package/dist/account/usageSummary/index.d.ts +0 -5
- package/dist/account/usageSummary/index.js +0 -4
- package/dist/account/usageSummary/models.d.ts +0 -50
- package/dist/account/usageSummary/models.js +0 -9
- package/dist/account/walletTransactions/client.d.ts +0 -34
- package/dist/account/walletTransactions/client.js +0 -19
- package/dist/account/walletTransactions/index.d.ts +0 -5
- package/dist/account/walletTransactions/index.js +0 -4
- package/dist/account/walletTransactions/models.d.ts +0 -58
- package/dist/account/walletTransactions/models.js +0 -12
- /package/dist/{account/billingProfiles → agenda/availability}/models.js +0 -0
- /package/dist/{account/invoiceDocuments → agenda/bookingLocations}/models.js +0 -0
- /package/dist/{account/usage → agenda/bookingRequirements}/models.js +0 -0
|
@@ -1,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.
|
|
@@ -72,74 +71,15 @@ export interface Client {
|
|
|
72
71
|
}
|
|
73
72
|
export declare function createClient(options: ClientOptions): Client;
|
|
74
73
|
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
|
-
}
|
|
74
|
+
export type CreateRequest = RaizCreateAgentBody;
|
|
75
|
+
export type CreateResponse = RaizAgentResponse;
|
|
131
76
|
export interface GetRequest {
|
|
132
77
|
/**
|
|
133
78
|
* Agent id.
|
|
134
79
|
*/
|
|
135
80
|
agentId: string;
|
|
136
81
|
}
|
|
137
|
-
export
|
|
138
|
-
data: RaizAgent;
|
|
139
|
-
error: null;
|
|
140
|
-
metadata: RaizResponseMetadata;
|
|
141
|
-
success: true;
|
|
142
|
-
}
|
|
82
|
+
export type GetResponse = RaizAgentResponse;
|
|
143
83
|
export interface ListRequest {
|
|
144
84
|
/**
|
|
145
85
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -167,80 +107,11 @@ export interface ListRequest {
|
|
|
167
107
|
*/
|
|
168
108
|
status?: "active" | "paused";
|
|
169
109
|
}
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
error: null;
|
|
173
|
-
metadata: RaizResponseMetadata;
|
|
174
|
-
success: true;
|
|
175
|
-
}
|
|
176
|
-
export interface UpdateRequest {
|
|
110
|
+
export type ListResponse = RaizAgentPageResponse;
|
|
111
|
+
export type UpdateRequest = {
|
|
177
112
|
/**
|
|
178
113
|
* Agent id.
|
|
179
114
|
*/
|
|
180
115
|
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
|
-
}
|
|
116
|
+
} & RaizUpdateAgentBody;
|
|
117
|
+
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, 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 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
|
/**
|
|
@@ -137,6 +137,18 @@ export interface RaizAgentPage {
|
|
|
137
137
|
*/
|
|
138
138
|
pageInfo: PageInfo;
|
|
139
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* A successful answer.
|
|
142
|
+
*/
|
|
143
|
+
export interface RaizAgentPageResponse {
|
|
144
|
+
data: RaizAgentPage;
|
|
145
|
+
error: null;
|
|
146
|
+
/**
|
|
147
|
+
* What every answer carries besides its data or error.
|
|
148
|
+
*/
|
|
149
|
+
metadata: ResponseMetadata;
|
|
150
|
+
success: true;
|
|
151
|
+
}
|
|
140
152
|
export interface RaizAgentProcedure {
|
|
141
153
|
/**
|
|
142
154
|
* Free-form procedures: what to do, in Markdown, with inline references such
|
|
@@ -315,6 +327,18 @@ export interface RaizAgentProcedure {
|
|
|
315
327
|
*/
|
|
316
328
|
type: "free_form" | "structured";
|
|
317
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* A successful answer.
|
|
332
|
+
*/
|
|
333
|
+
export interface RaizAgentResponse {
|
|
334
|
+
data: RaizAgent;
|
|
335
|
+
error: null;
|
|
336
|
+
/**
|
|
337
|
+
* What every answer carries besides its data or error.
|
|
338
|
+
*/
|
|
339
|
+
metadata: ResponseMetadata;
|
|
340
|
+
success: true;
|
|
341
|
+
}
|
|
318
342
|
export interface RaizAgentSettings {
|
|
319
343
|
attachmentReader: "vision" | "ocr" | null;
|
|
320
344
|
automaticKnowledge: boolean | null;
|
|
@@ -463,6 +487,238 @@ export interface RaizAgentVoiceSettings {
|
|
|
463
487
|
turnTimeoutSeconds: number | null;
|
|
464
488
|
voiceId: string | null;
|
|
465
489
|
}
|
|
490
|
+
export interface RaizCreateAgentBody {
|
|
491
|
+
description?: string | null;
|
|
492
|
+
firstMessage?: string | null;
|
|
493
|
+
instructions?: string | null;
|
|
494
|
+
/**
|
|
495
|
+
* Text Agents. Procedures a connection publishes (`listConnections`, checked
|
|
496
|
+
* live in Account), each saved with its current text and run as a free-form
|
|
497
|
+
* procedure beside `procedures`. In an update, the complete new set.
|
|
498
|
+
*/
|
|
499
|
+
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
500
|
+
/**
|
|
501
|
+
* The integrations' tools the Agent may call, each on one of the
|
|
502
|
+
* organization's connections (`listConnections`, checked live in Account).
|
|
503
|
+
* Each is saved with its current definition. In an update, the complete new
|
|
504
|
+
* set.
|
|
505
|
+
*/
|
|
506
|
+
integrationTools?: RaizAgentIntegrationToolInput[];
|
|
507
|
+
/**
|
|
508
|
+
* The Knowledge documents the Agent consults. In an update, the complete new
|
|
509
|
+
* set.
|
|
510
|
+
*/
|
|
511
|
+
knowledgeDocumentIds?: string[];
|
|
512
|
+
/**
|
|
513
|
+
* BCP 47 language tag.
|
|
514
|
+
*/
|
|
515
|
+
language?: string;
|
|
516
|
+
/**
|
|
517
|
+
* `voice`: phone calls. `text`: WhatsApp and web chat.
|
|
518
|
+
*/
|
|
519
|
+
modality: "voice" | "text";
|
|
520
|
+
name: string;
|
|
521
|
+
/**
|
|
522
|
+
* The Agent's procedures, as a complete set: a procedure left out is removed.
|
|
523
|
+
* Keep each existing procedure's `id`; a new one may omit it.
|
|
524
|
+
*/
|
|
525
|
+
procedures?: RaizAgentProcedureInput[];
|
|
526
|
+
/**
|
|
527
|
+
* How the Agent behaves. In an update, only the keys you send change: a key
|
|
528
|
+
* left out stays and `null` returns it to its default. A key's own value,
|
|
529
|
+
* such as `policy` or `voice`, is replaced whole. An update that changes
|
|
530
|
+
* `modality` starts from the defaults. Text and voice settings apply only to
|
|
531
|
+
* Agents of that modality.
|
|
532
|
+
*/
|
|
533
|
+
settings?: RaizAgentSettingsInput;
|
|
534
|
+
/**
|
|
535
|
+
* A paused Agent answers nothing and places no calls.
|
|
536
|
+
*/
|
|
537
|
+
status?: "active" | "paused";
|
|
538
|
+
timeZone?: string | null;
|
|
539
|
+
}
|
|
540
|
+
/**
|
|
541
|
+
* A failed answer.
|
|
542
|
+
*/
|
|
543
|
+
export interface RaizCreateAgentConflictError {
|
|
544
|
+
data: null;
|
|
545
|
+
error: RaizCreateAgentConflictFailure;
|
|
546
|
+
/**
|
|
547
|
+
* What every answer carries besides its data or error.
|
|
548
|
+
*/
|
|
549
|
+
metadata: ResponseMetadata;
|
|
550
|
+
success: false;
|
|
551
|
+
}
|
|
552
|
+
export type RaizCreateAgentConflictFailure = RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizVersionConflictFailure;
|
|
553
|
+
/**
|
|
554
|
+
* A failed answer.
|
|
555
|
+
*/
|
|
556
|
+
export interface RaizCreateAgentServiceUnavailableError {
|
|
557
|
+
data: null;
|
|
558
|
+
error: RaizCreateAgentServiceUnavailableFailure;
|
|
559
|
+
/**
|
|
560
|
+
* What every answer carries besides its data or error.
|
|
561
|
+
*/
|
|
562
|
+
metadata: ResponseMetadata;
|
|
563
|
+
success: false;
|
|
564
|
+
}
|
|
565
|
+
export type RaizCreateAgentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
566
|
+
/**
|
|
567
|
+
* A failed answer.
|
|
568
|
+
*/
|
|
569
|
+
export interface RaizCreateAgentUnprocessableContentError {
|
|
570
|
+
data: null;
|
|
571
|
+
error: RaizCreateAgentUnprocessableContentFailure;
|
|
572
|
+
/**
|
|
573
|
+
* What every answer carries besides its data or error.
|
|
574
|
+
*/
|
|
575
|
+
metadata: ResponseMetadata;
|
|
576
|
+
success: false;
|
|
577
|
+
}
|
|
578
|
+
export type RaizCreateAgentUnprocessableContentFailure = RaizAgentProceduresInvalidFailure | RaizAgentSettingsInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure;
|
|
579
|
+
/**
|
|
580
|
+
* A failed answer.
|
|
581
|
+
*/
|
|
582
|
+
export interface RaizGetAgentServiceUnavailableError {
|
|
583
|
+
data: null;
|
|
584
|
+
error: RaizGetAgentServiceUnavailableFailure;
|
|
585
|
+
/**
|
|
586
|
+
* What every answer carries besides its data or error.
|
|
587
|
+
*/
|
|
588
|
+
metadata: ResponseMetadata;
|
|
589
|
+
success: false;
|
|
590
|
+
}
|
|
591
|
+
export type RaizGetAgentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
592
|
+
/**
|
|
593
|
+
* A failed answer.
|
|
594
|
+
*/
|
|
595
|
+
export interface RaizListAgentsBadRequestError {
|
|
596
|
+
data: null;
|
|
597
|
+
error: RaizListAgentsBadRequestFailure;
|
|
598
|
+
/**
|
|
599
|
+
* What every answer carries besides its data or error.
|
|
600
|
+
*/
|
|
601
|
+
metadata: ResponseMetadata;
|
|
602
|
+
success: false;
|
|
603
|
+
}
|
|
604
|
+
export type RaizListAgentsBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
605
|
+
/**
|
|
606
|
+
* A failed answer.
|
|
607
|
+
*/
|
|
608
|
+
export interface RaizListAgentsServiceUnavailableError {
|
|
609
|
+
data: null;
|
|
610
|
+
error: RaizListAgentsServiceUnavailableFailure;
|
|
611
|
+
/**
|
|
612
|
+
* What every answer carries besides its data or error.
|
|
613
|
+
*/
|
|
614
|
+
metadata: ResponseMetadata;
|
|
615
|
+
success: false;
|
|
616
|
+
}
|
|
617
|
+
export type RaizListAgentsServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
618
|
+
export interface RaizUpdateAgentBody {
|
|
619
|
+
description?: string | null;
|
|
620
|
+
/**
|
|
621
|
+
* With the Agent's `settings.evalGate`: the completed evaluation run
|
|
622
|
+
* (`createEvalRun`) of exactly the content this update leaves the model
|
|
623
|
+
* reading, in which every case passed.
|
|
624
|
+
*/
|
|
625
|
+
evalRunId?: string;
|
|
626
|
+
/**
|
|
627
|
+
* The `version` you read. When present, the change applies only if nobody
|
|
628
|
+
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
629
|
+
*/
|
|
630
|
+
expectedVersion?: number;
|
|
631
|
+
firstMessage?: string | null;
|
|
632
|
+
instructions?: string | null;
|
|
633
|
+
/**
|
|
634
|
+
* Text Agents. Procedures a connection publishes (`listConnections`, checked
|
|
635
|
+
* live in Account), each saved with its current text and run as a free-form
|
|
636
|
+
* procedure beside `procedures`. In an update, the complete new set.
|
|
637
|
+
*/
|
|
638
|
+
integrationProcedures?: RaizAgentIntegrationProcedureInput[];
|
|
639
|
+
/**
|
|
640
|
+
* The integrations' tools the Agent may call, each on one of the
|
|
641
|
+
* organization's connections (`listConnections`, checked live in Account).
|
|
642
|
+
* Each is saved with its current definition. In an update, the complete new
|
|
643
|
+
* set.
|
|
644
|
+
*/
|
|
645
|
+
integrationTools?: RaizAgentIntegrationToolInput[];
|
|
646
|
+
/**
|
|
647
|
+
* The Knowledge documents the Agent consults. In an update, the complete new
|
|
648
|
+
* set.
|
|
649
|
+
*/
|
|
650
|
+
knowledgeDocumentIds?: string[];
|
|
651
|
+
/**
|
|
652
|
+
* BCP 47 language tag.
|
|
653
|
+
*/
|
|
654
|
+
language?: string;
|
|
655
|
+
/**
|
|
656
|
+
* `voice`: phone calls. `text`: WhatsApp and web chat.
|
|
657
|
+
*/
|
|
658
|
+
modality?: "voice" | "text";
|
|
659
|
+
name?: string;
|
|
660
|
+
/**
|
|
661
|
+
* The Agent's procedures, as a complete set: a procedure left out is removed.
|
|
662
|
+
* Keep each existing procedure's `id`; a new one may omit it.
|
|
663
|
+
*/
|
|
664
|
+
procedures?: RaizAgentProcedureInput[];
|
|
665
|
+
/**
|
|
666
|
+
* How the Agent behaves. In an update, only the keys you send change: a key
|
|
667
|
+
* left out stays and `null` returns it to its default. A key's own value,
|
|
668
|
+
* such as `policy` or `voice`, is replaced whole. An update that changes
|
|
669
|
+
* `modality` starts from the defaults. Text and voice settings apply only to
|
|
670
|
+
* Agents of that modality.
|
|
671
|
+
*/
|
|
672
|
+
settings?: RaizAgentSettingsInput;
|
|
673
|
+
/**
|
|
674
|
+
* A paused Agent answers nothing and places no calls.
|
|
675
|
+
*/
|
|
676
|
+
status?: "active" | "paused";
|
|
677
|
+
timeZone?: string | null;
|
|
678
|
+
}
|
|
679
|
+
/**
|
|
680
|
+
* A failed answer.
|
|
681
|
+
*/
|
|
682
|
+
export interface RaizUpdateAgentConflictError {
|
|
683
|
+
data: null;
|
|
684
|
+
error: RaizUpdateAgentConflictFailure;
|
|
685
|
+
/**
|
|
686
|
+
* What every answer carries besides its data or error.
|
|
687
|
+
*/
|
|
688
|
+
metadata: ResponseMetadata;
|
|
689
|
+
success: false;
|
|
690
|
+
}
|
|
691
|
+
export type RaizUpdateAgentConflictFailure = RaizAgentInUseFailure | RaizAgentModalityLockedFailure | RaizEvalGateUnmetFailure | RaizVersionConflictFailure;
|
|
692
|
+
/**
|
|
693
|
+
* A failed answer.
|
|
694
|
+
*/
|
|
695
|
+
export interface RaizUpdateAgentServiceUnavailableError {
|
|
696
|
+
data: null;
|
|
697
|
+
error: RaizUpdateAgentServiceUnavailableFailure;
|
|
698
|
+
/**
|
|
699
|
+
* What every answer carries besides its data or error.
|
|
700
|
+
*/
|
|
701
|
+
metadata: ResponseMetadata;
|
|
702
|
+
success: false;
|
|
703
|
+
}
|
|
704
|
+
export type RaizUpdateAgentServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
705
|
+
/**
|
|
706
|
+
* A failed answer.
|
|
707
|
+
*/
|
|
708
|
+
export interface RaizUpdateAgentUnprocessableContentError {
|
|
709
|
+
data: null;
|
|
710
|
+
error: RaizUpdateAgentUnprocessableContentFailure;
|
|
711
|
+
/**
|
|
712
|
+
* What every answer carries besides its data or error.
|
|
713
|
+
*/
|
|
714
|
+
metadata: ResponseMetadata;
|
|
715
|
+
success: false;
|
|
716
|
+
}
|
|
717
|
+
export type RaizUpdateAgentUnprocessableContentFailure = RaizAgentProceduresInvalidFailure | RaizAgentSettingsInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure;
|
|
466
718
|
export declare const RaizAgentCodec: import("../../_/codec.js").Codec;
|
|
467
719
|
export declare const RaizAgentPageCodec: import("../../_/codec.js").Codec;
|
|
720
|
+
export declare const RaizAgentPageResponseCodec: import("../../_/codec.js").Codec;
|
|
721
|
+
export declare const RaizAgentResponseCodec: import("../../_/codec.js").Codec;
|
|
468
722
|
export declare const RaizAgentSettingsInputCodec: import("../../_/codec.js").Codec;
|
|
723
|
+
export declare const RaizCreateAgentBodyCodec: import("../../_/codec.js").Codec;
|
|
724
|
+
export declare const RaizUpdateAgentBodyCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { array, instant, object } from "../../_/index.js";
|
|
4
|
-
import { RaizBusinessHoursCodec } from "../models.js";
|
|
4
|
+
import { RaizBusinessHoursCodec, } from "../models.js";
|
|
5
5
|
export const RaizAgentCodec = object([
|
|
6
6
|
["channels", null, array(object([["lastBusinessAppGreetingAt", null, instant]]))],
|
|
7
7
|
["createdAt", null, instant],
|
|
@@ -10,6 +10,18 @@ export const RaizAgentCodec = object([
|
|
|
10
10
|
export const RaizAgentPageCodec = object([
|
|
11
11
|
["data", null, array(() => RaizAgentCodec)],
|
|
12
12
|
]);
|
|
13
|
+
export const RaizAgentPageResponseCodec = object([
|
|
14
|
+
["data", null, () => RaizAgentPageCodec],
|
|
15
|
+
]);
|
|
16
|
+
export const RaizAgentResponseCodec = object([
|
|
17
|
+
["data", null, () => RaizAgentCodec],
|
|
18
|
+
]);
|
|
13
19
|
export const RaizAgentSettingsInputCodec = object([
|
|
14
20
|
["businessHours", null, () => RaizBusinessHoursCodec],
|
|
15
21
|
]);
|
|
22
|
+
export const RaizCreateAgentBodyCodec = object([
|
|
23
|
+
["settings", null, () => RaizAgentSettingsInputCodec],
|
|
24
|
+
]);
|
|
25
|
+
export const RaizUpdateAgentBodyCodec = object([
|
|
26
|
+
["settings", null, () => RaizAgentSettingsInputCodec],
|
|
27
|
+
]);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type
|
|
4
|
-
import { type RaizBulletin, type RaizBulletinPage } from "./models.js";
|
|
2
|
+
import type { DeletedObjectResponse } from "../../models.js";
|
|
3
|
+
import { type RaizBulletinPageResponse, type RaizBulletinResponse, type RaizCreateBulletinBody, type RaizUpdateBulletinBody } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
7
6
|
* The URL the paths of the API are relative to.
|
|
@@ -69,59 +68,22 @@ export interface Client {
|
|
|
69
68
|
}
|
|
70
69
|
export declare function createClient(options: ClientOptions): Client;
|
|
71
70
|
export declare function bind(transport: Transport): Client;
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* When Agents stop applying it, later than its start and than now. Omit it or
|
|
76
|
-
* send null to keep it until it is deleted.
|
|
77
|
-
*/
|
|
78
|
-
endsAt?: Temporal.Instant | null;
|
|
79
|
-
/**
|
|
80
|
-
* When Agents start applying it; default now. No Agent reads it before. For
|
|
81
|
-
* Agents to know ahead (so they book no appointment on a closed day), start
|
|
82
|
-
* it now and write the dates in the text.
|
|
83
|
-
*/
|
|
84
|
-
startsAt?: Temporal.Instant;
|
|
85
|
-
/**
|
|
86
|
-
* What is happening and what the Agents should do about it, written as you
|
|
87
|
-
* would tell them. One situation per bulletin; long reference material
|
|
88
|
-
* belongs in Knowledge.
|
|
89
|
-
*/
|
|
90
|
-
text: string;
|
|
91
|
-
}
|
|
92
|
-
export interface CreateResponse {
|
|
93
|
-
data: RaizBulletin;
|
|
94
|
-
error: null;
|
|
95
|
-
metadata: RaizResponseMetadata;
|
|
96
|
-
success: true;
|
|
97
|
-
}
|
|
71
|
+
export type CreateRequest = RaizCreateBulletinBody;
|
|
72
|
+
export type CreateResponse = RaizBulletinResponse;
|
|
98
73
|
export interface DeleteRequest {
|
|
99
74
|
/**
|
|
100
75
|
* Bulletin id.
|
|
101
76
|
*/
|
|
102
77
|
bulletinId: string;
|
|
103
|
-
body: {
|
|
104
|
-
[key: string]: unknown;
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
export interface DeleteResponse {
|
|
108
|
-
data: DeletedObject;
|
|
109
|
-
error: null;
|
|
110
|
-
metadata: RaizResponseMetadata;
|
|
111
|
-
success: true;
|
|
112
78
|
}
|
|
79
|
+
export type DeleteResponse = DeletedObjectResponse;
|
|
113
80
|
export interface GetRequest {
|
|
114
81
|
/**
|
|
115
82
|
* Bulletin id.
|
|
116
83
|
*/
|
|
117
84
|
bulletinId: string;
|
|
118
85
|
}
|
|
119
|
-
export
|
|
120
|
-
data: RaizBulletin;
|
|
121
|
-
error: null;
|
|
122
|
-
metadata: RaizResponseMetadata;
|
|
123
|
-
success: true;
|
|
124
|
-
}
|
|
86
|
+
export type GetResponse = RaizBulletinResponse;
|
|
125
87
|
export interface ListRequest {
|
|
126
88
|
/**
|
|
127
89
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -150,37 +112,11 @@ export interface ListRequest {
|
|
|
150
112
|
*/
|
|
151
113
|
status?: string;
|
|
152
114
|
}
|
|
153
|
-
export
|
|
154
|
-
|
|
155
|
-
error: null;
|
|
156
|
-
metadata: RaizResponseMetadata;
|
|
157
|
-
success: true;
|
|
158
|
-
}
|
|
159
|
-
export interface UpdateRequest {
|
|
115
|
+
export type ListResponse = RaizBulletinPageResponse;
|
|
116
|
+
export type UpdateRequest = {
|
|
160
117
|
/**
|
|
161
118
|
* Bulletin id.
|
|
162
119
|
*/
|
|
163
120
|
bulletinId: string;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
* When Agents stop applying it, later than its start; send the current
|
|
167
|
-
* instant to end it now, or null to keep it until it is deleted.
|
|
168
|
-
*/
|
|
169
|
-
endsAt?: Temporal.Instant | null;
|
|
170
|
-
/**
|
|
171
|
-
* When Agents start applying it.
|
|
172
|
-
*/
|
|
173
|
-
startsAt?: Temporal.Instant;
|
|
174
|
-
/**
|
|
175
|
-
* What is happening and what the Agents should do about it, written as you
|
|
176
|
-
* would tell them. One situation per bulletin; long reference material
|
|
177
|
-
* belongs in Knowledge.
|
|
178
|
-
*/
|
|
179
|
-
text?: string;
|
|
180
|
-
}
|
|
181
|
-
export interface UpdateResponse {
|
|
182
|
-
data: RaizBulletin;
|
|
183
|
-
error: null;
|
|
184
|
-
metadata: RaizResponseMetadata;
|
|
185
|
-
success: true;
|
|
186
|
-
}
|
|
121
|
+
} & RaizUpdateBulletinBody;
|
|
122
|
+
export type UpdateResponse = RaizBulletinResponse;
|