@arbol-ai/sdk 3.0.0 → 4.0.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/README.md +23 -0
- package/dist/account/apiKeys/client.d.ts +15 -47
- package/dist/account/apiKeys/client.js +11 -12
- package/dist/account/apiKeys/index.d.ts +1 -1
- package/dist/account/apiKeys/models.d.ts +164 -1
- package/dist/account/apiKeys/models.js +6 -0
- package/dist/account/billing/client.d.ts +4 -10
- package/dist/account/billing/client.js +7 -7
- package/dist/account/billing/index.d.ts +2 -2
- package/dist/account/billing/models.d.ts +32 -0
- package/dist/account/billing/models.js +5 -2
- package/dist/account/billingProfiles/client.d.ts +13 -24
- package/dist/account/billingProfiles/client.js +4 -4
- package/dist/account/billingProfiles/index.d.ts +1 -1
- package/dist/account/billingProfiles/models.d.ts +48 -0
- package/dist/account/client.d.ts +6 -0
- package/dist/account/client.js +15 -0
- package/dist/account/connections/client.d.ts +2 -200
- package/dist/account/connections/client.js +1 -25
- package/dist/account/connections/index.d.ts +2 -2
- package/dist/account/connections/models.d.ts +22 -7
- package/dist/account/index.d.ts +1 -1
- package/dist/account/invitations/client.d.ts +9 -38
- package/dist/account/invitations/client.js +8 -9
- package/dist/account/invitations/index.d.ts +1 -1
- package/dist/account/invitations/models.d.ts +221 -2
- package/dist/account/invitations/models.js +6 -0
- package/dist/account/invoiceDocuments/client.d.ts +25 -0
- package/dist/account/invoiceDocuments/client.js +17 -0
- package/dist/account/invoiceDocuments/index.d.ts +5 -0
- package/dist/account/invoiceDocuments/index.js +4 -0
- package/dist/account/invoiceDocuments/models.d.ts +35 -0
- package/dist/account/invoiceDocuments/models.js +3 -0
- package/dist/account/invoices/client.d.ts +7 -34
- package/dist/account/invoices/client.js +7 -14
- package/dist/account/invoices/index.d.ts +2 -2
- package/dist/account/invoices/models.d.ts +66 -1
- package/dist/account/invoices/models.js +8 -0
- package/dist/account/members/client.d.ts +14 -55
- package/dist/account/members/client.js +6 -7
- package/dist/account/members/index.d.ts +1 -1
- package/dist/account/members/models.d.ts +261 -2
- package/dist/account/models.d.ts +210 -259
- package/dist/account/organization/client.d.ts +31 -0
- package/dist/account/organization/client.js +25 -0
- package/dist/account/organization/index.d.ts +5 -0
- package/dist/account/organization/index.js +4 -0
- package/dist/account/organization/models.d.ts +89 -0
- package/dist/account/organization/models.js +3 -0
- package/dist/account/organizations/client.d.ts +2 -48
- package/dist/account/organizations/client.js +1 -16
- package/dist/account/organizations/index.d.ts +2 -2
- package/dist/account/organizations/models.d.ts +26 -37
- package/dist/account/payments/client.d.ts +2 -8
- package/dist/account/payments/client.js +4 -4
- package/dist/account/payments/index.d.ts +1 -1
- package/dist/account/payments/models.d.ts +28 -1
- package/dist/account/payments/models.js +3 -0
- package/dist/account/permissions/client.d.ts +2 -8
- package/dist/account/permissions/client.js +1 -1
- package/dist/account/permissions/index.d.ts +1 -1
- package/dist/account/permissions/models.d.ts +27 -1
- package/dist/account/roles/client.d.ts +2 -8
- package/dist/account/roles/client.js +1 -1
- package/dist/account/roles/index.d.ts +1 -1
- package/dist/account/roles/models.d.ts +27 -1
- package/dist/account/usage/client.d.ts +7 -44
- package/dist/account/usage/client.js +5 -13
- package/dist/account/usage/index.d.ts +2 -2
- package/dist/account/usage/models.d.ts +27 -1
- package/dist/account/usageSummary/client.d.ts +26 -0
- package/dist/account/usageSummary/client.js +19 -0
- package/dist/account/usageSummary/index.d.ts +5 -0
- package/dist/account/usageSummary/index.js +4 -0
- package/dist/account/usageSummary/models.d.ts +50 -0
- package/dist/account/usageSummary/models.js +9 -0
- package/dist/account/walletTransactions/client.d.ts +2 -8
- package/dist/account/walletTransactions/client.js +4 -4
- package/dist/account/walletTransactions/index.d.ts +1 -1
- package/dist/account/walletTransactions/models.d.ts +28 -1
- package/dist/account/walletTransactions/models.js +3 -0
- package/dist/agenda/appointments/client.d.ts +6 -7
- package/dist/agenda/availability/client.d.ts +3 -4
- package/dist/agenda/bookings/client.d.ts +11 -12
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -3
- package/dist/agenda/locations/client.js +1 -1
- package/dist/agenda/models.d.ts +8 -2
- package/dist/agenda/offerings/client.d.ts +4 -4
- package/dist/agenda/resources/client.d.ts +4 -4
- package/dist/agenda/scheduleRules/client.d.ts +4 -4
- package/dist/agenda/services/client.d.ts +4 -4
- package/dist/agenda/waitlist/client.d.ts +3 -4
- package/dist/axxa/authorizations/client.d.ts +2 -2
- package/dist/axxa/connections/client.d.ts +6 -5
- package/dist/axxa/eligibility/client.d.ts +2 -2
- package/dist/axxa/index.d.ts +1 -1
- package/dist/axxa/models.d.ts +8 -2
- package/dist/axxa/provider/client.d.ts +2 -2
- package/dist/gmedic/agendaServices/client.d.ts +2 -2
- package/dist/gmedic/agendas/client.d.ts +2 -2
- package/dist/gmedic/appointments/client.d.ts +4 -4
- package/dist/gmedic/availability/client.d.ts +2 -2
- package/dist/gmedic/availableDays/client.d.ts +2 -2
- package/dist/gmedic/branchOffices/client.d.ts +2 -2
- package/dist/gmedic/connections/client.d.ts +6 -5
- package/dist/gmedic/dictionaryEntries/client.d.ts +2 -2
- package/dist/gmedic/healthPartners/client.d.ts +2 -2
- package/dist/gmedic/healthPromotionEntities/client.d.ts +2 -2
- package/dist/gmedic/index.d.ts +1 -1
- package/dist/gmedic/laboralRiskManagers/client.d.ts +2 -2
- package/dist/gmedic/models.d.ts +8 -2
- package/dist/gmedic/occupations/client.d.ts +2 -2
- package/dist/gmedic/patientNotes/client.d.ts +4 -4
- package/dist/gmedic/patients/client.d.ts +4 -4
- package/dist/gmedic/services/client.d.ts +2 -2
- package/dist/gmedic/sessionPackages/client.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +293 -5
- package/dist/nuevaEps/affiliations/models.d.ts +8 -8
- package/dist/nuevaEps/connections/client.d.ts +3 -2
- package/dist/nuevaEps/connections/index.d.ts +1 -1
- package/dist/nuevaEps/connections/models.d.ts +25 -37
- package/dist/nuevaEps/index.d.ts +1 -1
- package/dist/nuevaEps/models.d.ts +2 -101
- package/dist/orsovision/agencies/models.d.ts +8 -8
- package/dist/orsovision/appointments/client.d.ts +3 -3
- package/dist/orsovision/appointments/index.d.ts +1 -1
- package/dist/orsovision/appointments/models.d.ts +8 -32
- package/dist/orsovision/availability/index.d.ts +1 -1
- package/dist/orsovision/availability/models.d.ts +9 -20
- package/dist/orsovision/clinic/index.d.ts +1 -1
- package/dist/orsovision/clinic/models.d.ts +9 -8
- package/dist/orsovision/contracts/index.d.ts +1 -1
- package/dist/orsovision/contracts/models.d.ts +6 -30
- package/dist/orsovision/index.d.ts +1 -1
- package/dist/orsovision/models.d.ts +1 -162
- package/dist/orsovision/patients/client.d.ts +4 -4
- package/dist/orsovision/patients/index.d.ts +1 -1
- package/dist/orsovision/patients/models.d.ts +17 -27
- package/dist/orsovision/services/index.d.ts +1 -1
- package/dist/orsovision/services/models.d.ts +6 -30
- package/dist/orsovision/tools/index.d.ts +1 -1
- package/dist/orsovision/tools/models.d.ts +9 -8
- package/dist/raiz/agents/client.d.ts +5 -6
- package/dist/raiz/agents/client.js +3 -4
- package/dist/raiz/agents/models.d.ts +1 -0
- package/dist/raiz/bulletins/client.d.ts +11 -7
- package/dist/raiz/bulletins/client.js +5 -6
- package/dist/raiz/campaigns/client.d.ts +11 -11
- package/dist/raiz/campaigns/client.js +4 -4
- package/dist/raiz/changes/client.d.ts +2 -2
- package/dist/raiz/channels/client.d.ts +28 -14
- package/dist/raiz/channels/client.js +9 -9
- package/dist/raiz/contacts/client.d.ts +7 -8
- package/dist/raiz/contacts/client.js +5 -5
- package/dist/raiz/conversations/client.d.ts +15 -12
- package/dist/raiz/conversations/client.js +6 -6
- package/dist/raiz/definitions/client.d.ts +9 -9
- package/dist/raiz/definitions/client.js +3 -4
- package/dist/raiz/evalCases/client.d.ts +17 -16
- package/dist/raiz/evalCases/client.js +2 -2
- package/dist/raiz/evalRuns/client.d.ts +10 -8
- package/dist/raiz/evalRuns/client.js +2 -3
- package/dist/raiz/evalRuns/models.d.ts +7 -1
- package/dist/raiz/facts/client.d.ts +3 -4
- package/dist/raiz/facts/client.js +3 -3
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +23 -18
- package/dist/raiz/knowledge/client.js +4 -4
- package/dist/raiz/models.d.ts +8 -44
- package/dist/raiz/organization/client.d.ts +6 -11
- package/dist/raiz/organization/client.js +2 -3
- package/dist/raiz/organization/models.d.ts +0 -10
- package/dist/raiz/profiles/client.d.ts +9 -10
- package/dist/raiz/profiles/client.js +3 -4
- package/dist/raiz/reports/client.d.ts +2 -2
- package/dist/raiz/suppressions/client.d.ts +3 -4
- package/dist/raiz/suppressions/client.js +1 -1
- package/dist/raiz/tasks/client.d.ts +11 -6
- package/dist/raiz/tasks/client.js +6 -7
- package/dist/raiz/templates/client.d.ts +5 -5
- package/dist/raiz/templates/client.js +1 -1
- package/dist/raiz/voices/client.d.ts +2 -2
- package/dist/somos/appointments/client.d.ts +3 -3
- package/dist/somos/appointments/index.d.ts +1 -1
- package/dist/somos/appointments/models.d.ts +14 -12
- package/dist/somos/availability/index.d.ts +1 -1
- package/dist/somos/availability/models.d.ts +9 -20
- package/dist/somos/clinic/index.d.ts +1 -1
- package/dist/somos/clinic/models.d.ts +9 -8
- package/dist/somos/contracts/index.d.ts +1 -1
- package/dist/somos/contracts/models.d.ts +9 -20
- package/dist/somos/groups/models.d.ts +9 -9
- package/dist/somos/index.d.ts +1 -1
- package/dist/somos/models.d.ts +12 -151
- package/dist/somos/patients/client.d.ts +4 -4
- package/dist/somos/patients/index.d.ts +1 -1
- package/dist/somos/patients/models.d.ts +20 -17
- package/dist/somos/services/index.d.ts +1 -1
- package/dist/somos/services/models.d.ts +15 -26
- package/dist/somos/specialtyRules/client.d.ts +2 -2
- package/dist/somos/specialtyRules/models.d.ts +7 -7
- package/dist/somos/tools/index.d.ts +1 -1
- package/dist/somos/tools/models.d.ts +9 -8
- package/dist/sura/affiliations/client.d.ts +2 -3
- package/dist/sura/appointments/client.d.ts +5 -6
- package/dist/sura/authorizations/client.d.ts +2 -3
- package/dist/sura/availability/client.d.ts +2 -3
- package/dist/sura/connections/client.d.ts +6 -5
- package/dist/sura/copays/client.d.ts +2 -3
- package/dist/sura/index.d.ts +1 -1
- package/dist/sura/models.d.ts +8 -2
- package/dist/sura/operations/client.d.ts +2 -3
- package/dist/sura/patients/client.d.ts +2 -3
- package/dist/sura/professionals/client.d.ts +2 -3
- package/dist/sura/services/client.d.ts +2 -3
- package/dist/visoft/appointments/index.d.ts +1 -1
- package/dist/visoft/appointments/models.d.ts +8 -32
- package/dist/visoft/availability/models.d.ts +6 -6
- package/dist/visoft/clinic/models.d.ts +3 -2
- package/dist/visoft/clinics/models.d.ts +3 -3
- package/dist/visoft/connections/client.d.ts +3 -2
- package/dist/visoft/connections/index.d.ts +1 -1
- package/dist/visoft/connections/models.d.ts +4 -17
- package/dist/visoft/contracts/index.d.ts +1 -1
- package/dist/visoft/contracts/models.d.ts +4 -16
- package/dist/visoft/index.d.ts +1 -1
- package/dist/visoft/models.d.ts +3 -162
- package/dist/visoft/patients/index.d.ts +1 -1
- package/dist/visoft/patients/models.d.ts +10 -38
- package/dist/visoft/professionals/models.d.ts +5 -5
- package/dist/visoft/serviceCatalogs/models.d.ts +6 -6
- package/dist/visoft/services/index.d.ts +1 -1
- package/dist/visoft/services/models.d.ts +5 -17
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { RaizAgentIntegrationSkillInput, RaizAgentSkill } from "../models.js";
|
|
2
|
+
import type { RaizAgentIntegrationSkillInput, RaizAgentSkill, RaizResponseMetadata } from "../models.js";
|
|
4
3
|
import { type RaizAgent, type RaizAgentIntegrationToolInput, type RaizAgentPage, type RaizAgentSettingsInput } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -122,7 +121,7 @@ export interface CreateRequest {
|
|
|
122
121
|
export interface CreateResponse {
|
|
123
122
|
data: RaizAgent;
|
|
124
123
|
error: null;
|
|
125
|
-
metadata:
|
|
124
|
+
metadata: RaizResponseMetadata;
|
|
126
125
|
success: true;
|
|
127
126
|
}
|
|
128
127
|
export interface GetRequest {
|
|
@@ -134,7 +133,7 @@ export interface GetRequest {
|
|
|
134
133
|
export interface GetResponse {
|
|
135
134
|
data: RaizAgent;
|
|
136
135
|
error: null;
|
|
137
|
-
metadata:
|
|
136
|
+
metadata: RaizResponseMetadata;
|
|
138
137
|
success: true;
|
|
139
138
|
}
|
|
140
139
|
export interface ListRequest {
|
|
@@ -167,7 +166,7 @@ export interface ListRequest {
|
|
|
167
166
|
export interface ListResponse {
|
|
168
167
|
data: RaizAgentPage;
|
|
169
168
|
error: null;
|
|
170
|
-
metadata:
|
|
169
|
+
metadata: RaizResponseMetadata;
|
|
171
170
|
success: true;
|
|
172
171
|
}
|
|
173
172
|
export interface UpdateRequest {
|
|
@@ -239,6 +238,6 @@ export interface UpdateRequest {
|
|
|
239
238
|
export interface UpdateResponse {
|
|
240
239
|
data: RaizAgent;
|
|
241
240
|
error: null;
|
|
242
|
-
metadata:
|
|
241
|
+
metadata: RaizResponseMetadata;
|
|
243
242
|
success: true;
|
|
244
243
|
}
|
|
@@ -15,7 +15,7 @@ export function bind(transport) {
|
|
|
15
15
|
}
|
|
16
16
|
const CreateOperation = {
|
|
17
17
|
method: "POST",
|
|
18
|
-
route: "/v1/raiz/agents
|
|
18
|
+
route: "/v1/raiz/agents",
|
|
19
19
|
body: "flat",
|
|
20
20
|
request: object([["settings", null, () => RaizAgentSettingsInputCodec]]),
|
|
21
21
|
response: object([["data", null, () => RaizAgentCodec]]),
|
|
@@ -23,8 +23,7 @@ const CreateOperation = {
|
|
|
23
23
|
};
|
|
24
24
|
const GetOperation = {
|
|
25
25
|
method: "GET",
|
|
26
|
-
route: "/v1/raiz/agents/
|
|
27
|
-
query: { agentId: "agentId" },
|
|
26
|
+
route: "/v1/raiz/agents/{agentId}",
|
|
28
27
|
response: object([["data", null, () => RaizAgentCodec]]),
|
|
29
28
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
30
29
|
};
|
|
@@ -37,7 +36,7 @@ const ListOperation = {
|
|
|
37
36
|
};
|
|
38
37
|
const UpdateOperation = {
|
|
39
38
|
method: "PATCH",
|
|
40
|
-
route: "/v1/raiz/agents/
|
|
39
|
+
route: "/v1/raiz/agents/{agentId}",
|
|
41
40
|
body: "flat",
|
|
42
41
|
request: object([["settings", null, () => RaizAgentSettingsInputCodec]]),
|
|
43
42
|
response: object([["data", null, () => RaizAgentCodec]]),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { DeletedObject
|
|
2
|
+
import type { DeletedObject } from "../../models.js";
|
|
3
|
+
import type { RaizResponseMetadata } from "../models.js";
|
|
3
4
|
import { type RaizBulletin, type RaizBulletinPage } from "./models.js";
|
|
4
5
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
6
|
/**
|
|
@@ -91,7 +92,7 @@ export interface CreateRequest {
|
|
|
91
92
|
export interface CreateResponse {
|
|
92
93
|
data: RaizBulletin;
|
|
93
94
|
error: null;
|
|
94
|
-
metadata:
|
|
95
|
+
metadata: RaizResponseMetadata;
|
|
95
96
|
success: true;
|
|
96
97
|
}
|
|
97
98
|
export interface DeleteRequest {
|
|
@@ -99,11 +100,14 @@ export interface DeleteRequest {
|
|
|
99
100
|
* Bulletin id.
|
|
100
101
|
*/
|
|
101
102
|
bulletinId: string;
|
|
103
|
+
body: {
|
|
104
|
+
[key: string]: unknown;
|
|
105
|
+
};
|
|
102
106
|
}
|
|
103
107
|
export interface DeleteResponse {
|
|
104
108
|
data: DeletedObject;
|
|
105
109
|
error: null;
|
|
106
|
-
metadata:
|
|
110
|
+
metadata: RaizResponseMetadata;
|
|
107
111
|
success: true;
|
|
108
112
|
}
|
|
109
113
|
export interface GetRequest {
|
|
@@ -115,7 +119,7 @@ export interface GetRequest {
|
|
|
115
119
|
export interface GetResponse {
|
|
116
120
|
data: RaizBulletin;
|
|
117
121
|
error: null;
|
|
118
|
-
metadata:
|
|
122
|
+
metadata: RaizResponseMetadata;
|
|
119
123
|
success: true;
|
|
120
124
|
}
|
|
121
125
|
export interface ListRequest {
|
|
@@ -149,15 +153,15 @@ export interface ListRequest {
|
|
|
149
153
|
export interface ListResponse {
|
|
150
154
|
data: RaizBulletinPage;
|
|
151
155
|
error: null;
|
|
152
|
-
metadata:
|
|
156
|
+
metadata: RaizResponseMetadata;
|
|
153
157
|
success: true;
|
|
154
158
|
}
|
|
155
159
|
export interface UpdateRequest {
|
|
156
|
-
agentId?: string | null;
|
|
157
160
|
/**
|
|
158
161
|
* Bulletin id.
|
|
159
162
|
*/
|
|
160
163
|
bulletinId: string;
|
|
164
|
+
agentId?: string | null;
|
|
161
165
|
/**
|
|
162
166
|
* When Agents stop applying it, later than its start; send the current
|
|
163
167
|
* instant to end it now, or null to keep it until it is deleted.
|
|
@@ -177,6 +181,6 @@ export interface UpdateRequest {
|
|
|
177
181
|
export interface UpdateResponse {
|
|
178
182
|
data: RaizBulletin;
|
|
179
183
|
error: null;
|
|
180
|
-
metadata:
|
|
184
|
+
metadata: RaizResponseMetadata;
|
|
181
185
|
success: true;
|
|
182
186
|
}
|
|
@@ -16,7 +16,7 @@ export function bind(transport) {
|
|
|
16
16
|
}
|
|
17
17
|
const CreateOperation = {
|
|
18
18
|
method: "POST",
|
|
19
|
-
route: "/v1/raiz/bulletins
|
|
19
|
+
route: "/v1/raiz/bulletins",
|
|
20
20
|
body: "flat",
|
|
21
21
|
request: object([["endsAt", null, instant], ["startsAt", null, instant]]),
|
|
22
22
|
response: object([["data", null, () => RaizBulletinCodec]]),
|
|
@@ -24,15 +24,14 @@ const CreateOperation = {
|
|
|
24
24
|
};
|
|
25
25
|
const DeleteOperation = {
|
|
26
26
|
method: "DELETE",
|
|
27
|
-
route: "/v1/raiz/bulletins/
|
|
28
|
-
body: "
|
|
27
|
+
route: "/v1/raiz/bulletins/{bulletinId}",
|
|
28
|
+
body: "nested",
|
|
29
29
|
response: null,
|
|
30
30
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
31
31
|
};
|
|
32
32
|
const GetOperation = {
|
|
33
33
|
method: "GET",
|
|
34
|
-
route: "/v1/raiz/bulletins/
|
|
35
|
-
query: { bulletinId: "bulletinId" },
|
|
34
|
+
route: "/v1/raiz/bulletins/{bulletinId}",
|
|
36
35
|
response: object([["data", null, () => RaizBulletinCodec]]),
|
|
37
36
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
38
37
|
};
|
|
@@ -45,7 +44,7 @@ const ListOperation = {
|
|
|
45
44
|
};
|
|
46
45
|
const UpdateOperation = {
|
|
47
46
|
method: "PATCH",
|
|
48
|
-
route: "/v1/raiz/bulletins/
|
|
47
|
+
route: "/v1/raiz/bulletins/{bulletinId}",
|
|
49
48
|
body: "flat",
|
|
50
49
|
request: object([["endsAt", null, instant], ["startsAt", null, instant]]),
|
|
51
50
|
response: object([["data", null, () => RaizBulletinCodec]]),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { RaizContactHoursWindow } from "../models.js";
|
|
2
|
+
import type { RaizContactHoursWindow, RaizResponseMetadata } from "../models.js";
|
|
4
3
|
import { type RaizCampaign, type RaizCampaignPage, type RaizCampaignRecipientInput } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -21,7 +20,8 @@ export interface Client {
|
|
|
21
20
|
* `scheduledStartAt` and `scheduledEndAt`; each recipient gets up to
|
|
22
21
|
* `maxAttempts` calls, retried `retryAfterMinutes` later after the results in
|
|
23
22
|
* `retryOn` (`no_answer`, `failure`). Starting it (REST `POST
|
|
24
|
-
* /v1/campaigns/start`) is not an AI tool. Read the
|
|
23
|
+
* /v1/campaigns/{campaignId}/start`) is not an AI tool. Read the
|
|
24
|
+
* `run-a-campaign` skill.
|
|
25
25
|
*/
|
|
26
26
|
create(request: CreateRequest, options?: RequestOptions): Promise<CreateResponse>;
|
|
27
27
|
/**
|
|
@@ -106,7 +106,7 @@ export interface CreateRequest {
|
|
|
106
106
|
export interface CreateResponse {
|
|
107
107
|
data: RaizCampaign;
|
|
108
108
|
error: null;
|
|
109
|
-
metadata:
|
|
109
|
+
metadata: RaizResponseMetadata;
|
|
110
110
|
success: true;
|
|
111
111
|
}
|
|
112
112
|
export interface GetRequest {
|
|
@@ -135,7 +135,7 @@ export interface GetRequest {
|
|
|
135
135
|
export interface GetResponse {
|
|
136
136
|
data: RaizCampaign;
|
|
137
137
|
error: null;
|
|
138
|
-
metadata:
|
|
138
|
+
metadata: RaizResponseMetadata;
|
|
139
139
|
success: true;
|
|
140
140
|
}
|
|
141
141
|
export interface ListRequest {
|
|
@@ -166,18 +166,18 @@ export interface ListRequest {
|
|
|
166
166
|
export interface ListResponse {
|
|
167
167
|
data: RaizCampaignPage;
|
|
168
168
|
error: null;
|
|
169
|
-
metadata:
|
|
169
|
+
metadata: RaizResponseMetadata;
|
|
170
170
|
success: true;
|
|
171
171
|
}
|
|
172
172
|
export interface UpdateRequest {
|
|
173
|
-
/**
|
|
174
|
-
* Changes only before the campaign starts.
|
|
175
|
-
*/
|
|
176
|
-
agentId?: string;
|
|
177
173
|
/**
|
|
178
174
|
* Campaign id.
|
|
179
175
|
*/
|
|
180
176
|
campaignId: string;
|
|
177
|
+
/**
|
|
178
|
+
* Changes only before the campaign starts.
|
|
179
|
+
*/
|
|
180
|
+
agentId?: string;
|
|
181
181
|
channelId?: string | null;
|
|
182
182
|
/**
|
|
183
183
|
* When calls may start, in the campaign's time zone. Empty: any time.
|
|
@@ -232,6 +232,6 @@ export interface UpdateRequest {
|
|
|
232
232
|
export interface UpdateResponse {
|
|
233
233
|
data: RaizCampaign;
|
|
234
234
|
error: null;
|
|
235
|
-
metadata:
|
|
235
|
+
metadata: RaizResponseMetadata;
|
|
236
236
|
success: true;
|
|
237
237
|
}
|
|
@@ -15,7 +15,7 @@ export function bind(transport) {
|
|
|
15
15
|
}
|
|
16
16
|
const CreateOperation = {
|
|
17
17
|
method: "POST",
|
|
18
|
-
route: "/v1/raiz/campaigns
|
|
18
|
+
route: "/v1/raiz/campaigns",
|
|
19
19
|
body: "flat",
|
|
20
20
|
request: object([["scheduledEndAt", null, instant], ["scheduledStartAt", null, instant]]),
|
|
21
21
|
response: object([["data", null, () => RaizCampaignCodec]]),
|
|
@@ -23,8 +23,8 @@ const CreateOperation = {
|
|
|
23
23
|
};
|
|
24
24
|
const GetOperation = {
|
|
25
25
|
method: "GET",
|
|
26
|
-
route: "/v1/raiz/campaigns/
|
|
27
|
-
query: {
|
|
26
|
+
route: "/v1/raiz/campaigns/{campaignId}",
|
|
27
|
+
query: { expand: "expand", recipientsCursor: "recipientsCursor", recipientsDirection: "recipientsDirection", recipientsLimit: "recipientsLimit" },
|
|
28
28
|
response: object([["data", null, () => RaizCampaignCodec]]),
|
|
29
29
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
30
30
|
};
|
|
@@ -37,7 +37,7 @@ const ListOperation = {
|
|
|
37
37
|
};
|
|
38
38
|
const UpdateOperation = {
|
|
39
39
|
method: "PATCH",
|
|
40
|
-
route: "/v1/raiz/campaigns/
|
|
40
|
+
route: "/v1/raiz/campaigns/{campaignId}",
|
|
41
41
|
body: "flat",
|
|
42
42
|
request: object([["scheduledEndAt", null, instant], ["scheduledStartAt", null, instant]]),
|
|
43
43
|
response: object([["data", null, () => RaizCampaignCodec]]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { RaizResponseMetadata } from "../models.js";
|
|
3
3
|
import { type RaizChangePage } from "./models.js";
|
|
4
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
5
|
/**
|
|
@@ -64,6 +64,6 @@ export interface ListRequest {
|
|
|
64
64
|
export interface ListResponse {
|
|
65
65
|
data: RaizChangePage;
|
|
66
66
|
error: null;
|
|
67
|
-
metadata:
|
|
67
|
+
metadata: RaizResponseMetadata;
|
|
68
68
|
success: true;
|
|
69
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { DeletedObject
|
|
3
|
-
import { type RaizBusinessHours, type RaizPhoneNumber } from "../models.js";
|
|
2
|
+
import type { DeletedObject } from "../../models.js";
|
|
3
|
+
import { type RaizBusinessHours, type RaizPhoneNumber, type RaizResponseMetadata } from "../models.js";
|
|
4
4
|
import { type RaizChannel, type RaizChannelPage, type RaizWidgetSettingsInput } from "./models.js";
|
|
5
5
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
6
|
/**
|
|
@@ -112,14 +112,16 @@ export type CreateRequest = {
|
|
|
112
112
|
endpoint: {
|
|
113
113
|
kind: "platform_number";
|
|
114
114
|
label?: string;
|
|
115
|
-
|
|
115
|
+
phone?: RaizPhoneNumber;
|
|
116
|
+
phoneNumber?: RaizPhoneNumber;
|
|
116
117
|
} | {
|
|
117
118
|
address: string;
|
|
118
119
|
kind: "sip_trunk";
|
|
119
120
|
label?: string;
|
|
120
121
|
mediaEncryption?: "disabled" | "allowed" | "required";
|
|
121
122
|
password?: string;
|
|
122
|
-
|
|
123
|
+
phone?: RaizPhoneNumber;
|
|
124
|
+
phoneNumber?: RaizPhoneNumber;
|
|
123
125
|
transport?: "auto" | "udp" | "tcp" | "tls";
|
|
124
126
|
username?: string;
|
|
125
127
|
};
|
|
@@ -137,7 +139,7 @@ export type CreateRequest = {
|
|
|
137
139
|
export interface CreateResponse {
|
|
138
140
|
data: RaizChannel;
|
|
139
141
|
error: null;
|
|
140
|
-
metadata:
|
|
142
|
+
metadata: RaizResponseMetadata;
|
|
141
143
|
success: true;
|
|
142
144
|
}
|
|
143
145
|
export interface DeleteRequest {
|
|
@@ -145,11 +147,14 @@ export interface DeleteRequest {
|
|
|
145
147
|
* Channel id.
|
|
146
148
|
*/
|
|
147
149
|
channelId: string;
|
|
150
|
+
body: {
|
|
151
|
+
[key: string]: unknown;
|
|
152
|
+
};
|
|
148
153
|
}
|
|
149
154
|
export interface DeleteResponse {
|
|
150
155
|
data: DeletedObject;
|
|
151
156
|
error: null;
|
|
152
|
-
metadata:
|
|
157
|
+
metadata: RaizResponseMetadata;
|
|
153
158
|
success: true;
|
|
154
159
|
}
|
|
155
160
|
export interface GetRequest {
|
|
@@ -165,7 +170,7 @@ export interface GetRequest {
|
|
|
165
170
|
export interface GetResponse {
|
|
166
171
|
data: RaizChannel;
|
|
167
172
|
error: null;
|
|
168
|
-
metadata:
|
|
173
|
+
metadata: RaizResponseMetadata;
|
|
169
174
|
success: true;
|
|
170
175
|
}
|
|
171
176
|
export interface ListRequest {
|
|
@@ -202,7 +207,7 @@ export interface ListRequest {
|
|
|
202
207
|
export interface ListResponse {
|
|
203
208
|
data: RaizChannelPage;
|
|
204
209
|
error: null;
|
|
205
|
-
metadata:
|
|
210
|
+
metadata: RaizResponseMetadata;
|
|
206
211
|
success: true;
|
|
207
212
|
}
|
|
208
213
|
export interface RenewSetupRequest {
|
|
@@ -210,21 +215,24 @@ export interface RenewSetupRequest {
|
|
|
210
215
|
* Channel id.
|
|
211
216
|
*/
|
|
212
217
|
channelId: string;
|
|
218
|
+
body: {
|
|
219
|
+
[key: string]: unknown;
|
|
220
|
+
};
|
|
213
221
|
}
|
|
214
222
|
export interface RenewSetupResponse {
|
|
215
223
|
data: RaizChannel;
|
|
216
224
|
error: null;
|
|
217
|
-
metadata:
|
|
225
|
+
metadata: RaizResponseMetadata;
|
|
218
226
|
success: true;
|
|
219
227
|
}
|
|
220
228
|
export interface UpdateRequest {
|
|
221
|
-
agentId?: string | null;
|
|
222
|
-
aiCoveragePercent?: number;
|
|
223
|
-
businessHours?: RaizBusinessHours | null;
|
|
224
229
|
/**
|
|
225
230
|
* Channel id.
|
|
226
231
|
*/
|
|
227
232
|
channelId: string;
|
|
233
|
+
agentId?: string | null;
|
|
234
|
+
aiCoveragePercent?: number;
|
|
235
|
+
businessHours?: RaizBusinessHours | null;
|
|
228
236
|
/**
|
|
229
237
|
* The `version` you read. When present, the change applies only if nobody
|
|
230
238
|
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
@@ -267,7 +275,7 @@ export interface UpdateRequest {
|
|
|
267
275
|
export interface UpdateResponse {
|
|
268
276
|
data: RaizChannel;
|
|
269
277
|
error: null;
|
|
270
|
-
metadata:
|
|
278
|
+
metadata: RaizResponseMetadata;
|
|
271
279
|
success: true;
|
|
272
280
|
}
|
|
273
281
|
export interface VerifyRequest {
|
|
@@ -278,11 +286,17 @@ export interface VerifyRequest {
|
|
|
278
286
|
/**
|
|
279
287
|
* Phone number in E.164 format.
|
|
280
288
|
*/
|
|
289
|
+
phone?: RaizPhoneNumber;
|
|
290
|
+
/**
|
|
291
|
+
* Deprecated: use `phone`. Answered until 2027-01-28.
|
|
292
|
+
*
|
|
293
|
+
* @deprecated
|
|
294
|
+
*/
|
|
281
295
|
phoneNumber?: RaizPhoneNumber;
|
|
282
296
|
}
|
|
283
297
|
export interface VerifyResponse {
|
|
284
298
|
data: RaizChannel;
|
|
285
299
|
error: null;
|
|
286
|
-
metadata:
|
|
300
|
+
metadata: RaizResponseMetadata;
|
|
287
301
|
success: true;
|
|
288
302
|
}
|
|
@@ -19,22 +19,22 @@ export function bind(transport) {
|
|
|
19
19
|
}
|
|
20
20
|
const CreateOperation = {
|
|
21
21
|
method: "POST",
|
|
22
|
-
route: "/v1/raiz/channels
|
|
22
|
+
route: "/v1/raiz/channels",
|
|
23
23
|
body: "flat",
|
|
24
24
|
response: object([["data", null, () => RaizChannelCodec]]),
|
|
25
25
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
26
26
|
};
|
|
27
27
|
const DeleteOperation = {
|
|
28
28
|
method: "DELETE",
|
|
29
|
-
route: "/v1/raiz/channels/
|
|
30
|
-
body: "
|
|
29
|
+
route: "/v1/raiz/channels/{channelId}",
|
|
30
|
+
body: "nested",
|
|
31
31
|
response: null,
|
|
32
32
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
33
33
|
};
|
|
34
34
|
const GetOperation = {
|
|
35
35
|
method: "GET",
|
|
36
|
-
route: "/v1/raiz/channels/
|
|
37
|
-
query: {
|
|
36
|
+
route: "/v1/raiz/channels/{channelId}",
|
|
37
|
+
query: { expand: "expand" },
|
|
38
38
|
response: object([["data", null, () => RaizChannelCodec]]),
|
|
39
39
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
40
40
|
};
|
|
@@ -47,14 +47,14 @@ const ListOperation = {
|
|
|
47
47
|
};
|
|
48
48
|
const RenewSetupOperation = {
|
|
49
49
|
method: "POST",
|
|
50
|
-
route: "/v1/raiz/channels/renew-setup",
|
|
51
|
-
body: "
|
|
50
|
+
route: "/v1/raiz/channels/{channelId}/renew-setup",
|
|
51
|
+
body: "nested",
|
|
52
52
|
response: object([["data", null, () => RaizChannelCodec]]),
|
|
53
53
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
54
54
|
};
|
|
55
55
|
const UpdateOperation = {
|
|
56
56
|
method: "PATCH",
|
|
57
|
-
route: "/v1/raiz/channels/
|
|
57
|
+
route: "/v1/raiz/channels/{channelId}",
|
|
58
58
|
body: "flat",
|
|
59
59
|
request: object([["businessHours", null, () => RaizBusinessHoursCodec], ["widgetLogo", null, object([["data", null, bytes]])]]),
|
|
60
60
|
response: object([["data", null, () => RaizChannelCodec]]),
|
|
@@ -62,7 +62,7 @@ const UpdateOperation = {
|
|
|
62
62
|
};
|
|
63
63
|
const VerifyOperation = {
|
|
64
64
|
method: "POST",
|
|
65
|
-
route: "/v1/raiz/channels/verify",
|
|
65
|
+
route: "/v1/raiz/channels/{channelId}/verify",
|
|
66
66
|
body: "flat",
|
|
67
67
|
response: object([["data", null, () => RaizChannelCodec]]),
|
|
68
68
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import { type RaizCount, type RaizTask } from "../models.js";
|
|
2
|
+
import { type RaizCount, type RaizResponseMetadata, type RaizTask } from "../models.js";
|
|
4
3
|
import { type RaizContact, type RaizContactIdentifierInput, type RaizContactPage, type RaizContactPointInput, type RaizPostalAddress } from "./models.js";
|
|
5
4
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
5
|
/**
|
|
@@ -111,7 +110,7 @@ export interface CountRequest {
|
|
|
111
110
|
export interface CountResponse {
|
|
112
111
|
data: RaizCount;
|
|
113
112
|
error: null;
|
|
114
|
-
metadata:
|
|
113
|
+
metadata: RaizResponseMetadata;
|
|
115
114
|
success: true;
|
|
116
115
|
}
|
|
117
116
|
export interface CreateRequest {
|
|
@@ -140,7 +139,7 @@ export interface CreateRequest {
|
|
|
140
139
|
export interface CreateResponse {
|
|
141
140
|
data: RaizContact;
|
|
142
141
|
error: null;
|
|
143
|
-
metadata:
|
|
142
|
+
metadata: RaizResponseMetadata;
|
|
144
143
|
success: true;
|
|
145
144
|
}
|
|
146
145
|
export interface GetRequest {
|
|
@@ -169,7 +168,7 @@ export interface GetRequest {
|
|
|
169
168
|
export interface GetResponse {
|
|
170
169
|
data: RaizContact;
|
|
171
170
|
error: null;
|
|
172
|
-
metadata:
|
|
171
|
+
metadata: RaizResponseMetadata;
|
|
173
172
|
success: true;
|
|
174
173
|
}
|
|
175
174
|
export interface ImportRequest {
|
|
@@ -203,7 +202,7 @@ export interface ImportRequest {
|
|
|
203
202
|
export interface ImportResponse {
|
|
204
203
|
data: RaizTask;
|
|
205
204
|
error: null;
|
|
206
|
-
metadata:
|
|
205
|
+
metadata: RaizResponseMetadata;
|
|
207
206
|
success: true;
|
|
208
207
|
}
|
|
209
208
|
export interface ListRequest {
|
|
@@ -254,7 +253,7 @@ export interface ListRequest {
|
|
|
254
253
|
export interface ListResponse {
|
|
255
254
|
data: RaizContactPage;
|
|
256
255
|
error: null;
|
|
257
|
-
metadata:
|
|
256
|
+
metadata: RaizResponseMetadata;
|
|
258
257
|
success: true;
|
|
259
258
|
}
|
|
260
259
|
export interface UpdateRequest {
|
|
@@ -292,6 +291,6 @@ export interface UpdateRequest {
|
|
|
292
291
|
export interface UpdateResponse {
|
|
293
292
|
data: RaizContact;
|
|
294
293
|
error: null;
|
|
295
|
-
metadata:
|
|
294
|
+
metadata: RaizResponseMetadata;
|
|
296
295
|
success: true;
|
|
297
296
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { Transport, bytes, object, } from "../../_/index.js";
|
|
4
|
-
import { RaizTaskCodec } from "../models.js";
|
|
4
|
+
import { RaizTaskCodec, } from "../models.js";
|
|
5
5
|
import { RaizContactCodec, RaizContactPageCodec, } from "./models.js";
|
|
6
6
|
export function createClient(options) {
|
|
7
7
|
return bind(new Transport(options));
|
|
@@ -25,15 +25,15 @@ const CountOperation = {
|
|
|
25
25
|
};
|
|
26
26
|
const CreateOperation = {
|
|
27
27
|
method: "POST",
|
|
28
|
-
route: "/v1/raiz/contacts
|
|
28
|
+
route: "/v1/raiz/contacts",
|
|
29
29
|
body: "flat",
|
|
30
30
|
response: object([["data", null, () => RaizContactCodec]]),
|
|
31
31
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
32
32
|
};
|
|
33
33
|
const GetOperation = {
|
|
34
34
|
method: "GET",
|
|
35
|
-
route: "/v1/raiz/contacts/
|
|
36
|
-
query: {
|
|
35
|
+
route: "/v1/raiz/contacts/{contactId}",
|
|
36
|
+
query: { expand: "expand", timelineCursor: "timelineCursor", timelineDirection: "timelineDirection", timelineLimit: "timelineLimit" },
|
|
37
37
|
response: object([["data", null, () => RaizContactCodec]]),
|
|
38
38
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
39
39
|
};
|
|
@@ -54,7 +54,7 @@ const ListOperation = {
|
|
|
54
54
|
};
|
|
55
55
|
const UpdateOperation = {
|
|
56
56
|
method: "PATCH",
|
|
57
|
-
route: "/v1/raiz/contacts/
|
|
57
|
+
route: "/v1/raiz/contacts/{contactId}",
|
|
58
58
|
body: "flat",
|
|
59
59
|
response: object([["data", null, () => RaizContactCodec]]),
|
|
60
60
|
errors: { "400": true, "401": true, "403": true, "404": true, "405": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type { DeletedObject
|
|
3
|
-
import type { RaizCount } from "../models.js";
|
|
2
|
+
import type { DeletedObject } from "../../models.js";
|
|
3
|
+
import type { RaizCount, RaizResponseMetadata } from "../models.js";
|
|
4
4
|
import { type RaizConversation, type RaizConversationPage } from "./models.js";
|
|
5
5
|
export interface ClientOptions extends BaseClientOptions {
|
|
6
6
|
/**
|
|
@@ -108,7 +108,7 @@ export interface ContinueRequest {
|
|
|
108
108
|
export interface ContinueResponse {
|
|
109
109
|
data: RaizConversation;
|
|
110
110
|
error: null;
|
|
111
|
-
metadata:
|
|
111
|
+
metadata: RaizResponseMetadata;
|
|
112
112
|
success: true;
|
|
113
113
|
}
|
|
114
114
|
export interface CountRequest {
|
|
@@ -205,7 +205,7 @@ export interface CountRequest {
|
|
|
205
205
|
export interface CountResponse {
|
|
206
206
|
data: RaizCount;
|
|
207
207
|
error: null;
|
|
208
|
-
metadata:
|
|
208
|
+
metadata: RaizResponseMetadata;
|
|
209
209
|
success: true;
|
|
210
210
|
}
|
|
211
211
|
export interface DeleteRequest {
|
|
@@ -213,11 +213,14 @@ export interface DeleteRequest {
|
|
|
213
213
|
* Conversation id.
|
|
214
214
|
*/
|
|
215
215
|
conversationId: string;
|
|
216
|
+
body: {
|
|
217
|
+
[key: string]: unknown;
|
|
218
|
+
};
|
|
216
219
|
}
|
|
217
220
|
export interface DeleteResponse {
|
|
218
221
|
data: DeletedObject;
|
|
219
222
|
error: null;
|
|
220
|
-
metadata:
|
|
223
|
+
metadata: RaizResponseMetadata;
|
|
221
224
|
success: true;
|
|
222
225
|
}
|
|
223
226
|
export interface GetRequest {
|
|
@@ -247,7 +250,7 @@ export interface GetRequest {
|
|
|
247
250
|
export interface GetResponse {
|
|
248
251
|
data: RaizConversation;
|
|
249
252
|
error: null;
|
|
250
|
-
metadata:
|
|
253
|
+
metadata: RaizResponseMetadata;
|
|
251
254
|
success: true;
|
|
252
255
|
}
|
|
253
256
|
export interface ListRequest {
|
|
@@ -364,10 +367,14 @@ export interface ListRequest {
|
|
|
364
367
|
export interface ListResponse {
|
|
365
368
|
data: RaizConversationPage;
|
|
366
369
|
error: null;
|
|
367
|
-
metadata:
|
|
370
|
+
metadata: RaizResponseMetadata;
|
|
368
371
|
success: true;
|
|
369
372
|
}
|
|
370
373
|
export interface UpdateRequest {
|
|
374
|
+
/**
|
|
375
|
+
* Conversation id.
|
|
376
|
+
*/
|
|
377
|
+
conversationId: string;
|
|
371
378
|
/**
|
|
372
379
|
* WhatsApp only: activate or pause AI for this open conversation alone.
|
|
373
380
|
* Activation answers what the contact wrote after the last real answer, the
|
|
@@ -381,10 +388,6 @@ export interface UpdateRequest {
|
|
|
381
388
|
*/
|
|
382
389
|
aiPaused?: boolean;
|
|
383
390
|
contactId?: string | null;
|
|
384
|
-
/**
|
|
385
|
-
* Conversation id.
|
|
386
|
-
*/
|
|
387
|
-
conversationId: string;
|
|
388
391
|
/**
|
|
389
392
|
* The `version` you read. When present, the change applies only if nobody
|
|
390
393
|
* changed the resource since; otherwise it fails with VERSION_CONFLICT.
|
|
@@ -409,6 +412,6 @@ export interface UpdateRequest {
|
|
|
409
412
|
export interface UpdateResponse {
|
|
410
413
|
data: RaizConversation;
|
|
411
414
|
error: null;
|
|
412
|
-
metadata:
|
|
415
|
+
metadata: RaizResponseMetadata;
|
|
413
416
|
success: true;
|
|
414
417
|
}
|