@arbol-ai/sdk 5.44.0 → 5.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/client.d.ts +0 -16
- package/dist/account/client.js +0 -40
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +0 -93
- package/dist/agenda/appointments/client.d.ts +14 -243
- package/dist/agenda/appointments/client.js +18 -17
- package/dist/agenda/appointments/index.d.ts +1 -1
- package/dist/agenda/appointments/models.d.ts +612 -2
- package/dist/agenda/appointments/models.js +14 -2
- package/dist/agenda/availability/client.d.ts +2 -7
- package/dist/agenda/availability/client.js +5 -4
- package/dist/agenda/availability/index.d.ts +1 -0
- package/dist/agenda/availability/models.d.ts +67 -0
- package/dist/agenda/bookingLocations/client.d.ts +2 -7
- package/dist/agenda/bookingLocations/client.js +4 -4
- package/dist/agenda/bookingLocations/index.d.ts +1 -0
- package/dist/agenda/bookingLocations/models.d.ts +67 -0
- package/dist/agenda/bookingOfferings/client.d.ts +2 -8
- package/dist/agenda/bookingOfferings/client.js +1 -1
- package/dist/agenda/bookingOfferings/index.d.ts +1 -1
- package/dist/agenda/bookingOfferings/models.d.ts +79 -1
- package/dist/agenda/bookingRequirements/client.d.ts +2 -75
- package/dist/agenda/bookingRequirements/client.js +1 -1
- package/dist/agenda/bookingRequirements/index.d.ts +1 -0
- package/dist/agenda/bookingRequirements/models.d.ts +182 -0
- package/dist/agenda/bookingSlots/client.d.ts +2 -7
- package/dist/agenda/bookingSlots/client.js +5 -4
- package/dist/agenda/bookingSlots/index.d.ts +1 -0
- package/dist/agenda/bookingSlots/models.d.ts +67 -0
- package/dist/agenda/bookingSlots/models.js +3 -0
- package/dist/agenda/bookings/client.d.ts +13 -188
- package/dist/agenda/bookings/client.js +13 -13
- package/dist/agenda/bookings/index.d.ts +1 -1
- package/dist/agenda/bookings/models.d.ts +526 -1
- package/dist/agenda/bookings/models.js +7 -1
- package/dist/agenda/firstAvailability/client.d.ts +2 -8
- package/dist/agenda/firstAvailability/client.js +4 -4
- package/dist/agenda/firstAvailability/index.d.ts +1 -1
- package/dist/agenda/firstAvailability/models.d.ts +80 -1
- package/dist/agenda/firstAvailability/models.js +4 -1
- package/dist/agenda/index.d.ts +1 -1
- package/dist/agenda/locations/client.d.ts +2 -7
- package/dist/agenda/locations/client.js +4 -4
- package/dist/agenda/locations/index.d.ts +1 -0
- package/dist/agenda/locations/models.d.ts +67 -0
- package/dist/agenda/locations/models.js +3 -0
- package/dist/agenda/models.d.ts +2193 -839
- package/dist/agenda/models.js +9 -0
- package/dist/agenda/nearestBookingSlots/client.d.ts +2 -8
- package/dist/agenda/nearestBookingSlots/client.js +4 -4
- package/dist/agenda/nearestBookingSlots/index.d.ts +1 -1
- package/dist/agenda/nearestBookingSlots/models.d.ts +80 -2
- package/dist/agenda/nearestBookingSlots/models.js +4 -1
- package/dist/agenda/offerings/client.d.ts +7 -146
- package/dist/agenda/offerings/client.js +8 -8
- package/dist/agenda/offerings/index.d.ts +1 -1
- package/dist/agenda/offerings/models.d.ts +349 -1
- package/dist/agenda/offerings/models.js +6 -0
- package/dist/agenda/resourceSchedules/client.d.ts +4 -51
- package/dist/agenda/resourceSchedules/client.js +5 -4
- package/dist/agenda/resourceSchedules/index.d.ts +1 -0
- package/dist/agenda/resourceSchedules/models.d.ts +133 -0
- package/dist/agenda/resourceSchedules/models.js +12 -0
- package/dist/agenda/resources/client.d.ts +7 -99
- package/dist/agenda/resources/client.js +8 -8
- package/dist/agenda/resources/index.d.ts +1 -1
- package/dist/agenda/resources/models.d.ts +302 -1
- package/dist/agenda/resources/models.js +6 -0
- package/dist/agenda/scheduleRules/client.d.ts +7 -172
- package/dist/agenda/scheduleRules/client.js +10 -10
- package/dist/agenda/scheduleRules/index.d.ts +1 -1
- package/dist/agenda/scheduleRules/models.d.ts +520 -1
- package/dist/agenda/scheduleRules/models.js +31 -0
- package/dist/agenda/services/client.d.ts +7 -71
- package/dist/agenda/services/client.js +8 -8
- package/dist/agenda/services/index.d.ts +1 -1
- package/dist/agenda/services/models.d.ts +274 -1
- package/dist/agenda/services/models.js +6 -0
- package/dist/agenda/waitlist/client.d.ts +9 -217
- package/dist/agenda/waitlist/client.js +13 -13
- package/dist/agenda/waitlist/index.d.ts +1 -1
- package/dist/agenda/waitlist/models.d.ts +482 -1
- package/dist/agenda/waitlist/models.js +16 -1
- package/dist/index.d.ts +1 -1
- package/dist/models.d.ts +0 -20
- package/dist/raiz/agents/client.d.ts +8 -137
- package/dist/raiz/agents/client.js +12 -12
- package/dist/raiz/agents/index.d.ts +1 -1
- package/dist/raiz/agents/models.d.ts +258 -2
- package/dist/raiz/agents/models.js +13 -1
- package/dist/raiz/bulletins/client.d.ts +10 -74
- package/dist/raiz/bulletins/client.js +13 -14
- package/dist/raiz/bulletins/index.d.ts +1 -1
- package/dist/raiz/bulletins/models.d.ts +112 -1
- package/dist/raiz/bulletins/models.js +14 -0
- package/dist/raiz/campaigns/client.d.ts +11 -140
- package/dist/raiz/campaigns/client.js +14 -14
- package/dist/raiz/campaigns/index.d.ts +1 -1
- package/dist/raiz/campaigns/models.d.ts +343 -2
- package/dist/raiz/campaigns/models.js +14 -1
- package/dist/raiz/changes/client.d.ts +2 -8
- package/dist/raiz/changes/client.js +4 -4
- package/dist/raiz/changes/index.d.ts +1 -1
- package/dist/raiz/changes/models.d.ts +41 -1
- package/dist/raiz/changes/models.js +3 -0
- package/dist/raiz/channels/client.d.ts +15 -142
- package/dist/raiz/channels/client.js +16 -18
- package/dist/raiz/channels/index.d.ts +1 -1
- package/dist/raiz/channels/models.d.ts +1511 -2
- package/dist/raiz/channels/models.js +12 -2
- package/dist/raiz/contacts/client.d.ts +12 -117
- package/dist/raiz/contacts/client.js +15 -15
- package/dist/raiz/contacts/index.d.ts +1 -1
- package/dist/raiz/contacts/models.d.ts +305 -2
- package/dist/raiz/contacts/models.js +10 -1
- package/dist/raiz/conversations/client.d.ts +18 -99
- package/dist/raiz/conversations/client.js +12 -13
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +253 -2
- package/dist/raiz/conversations/models.js +8 -2
- package/dist/raiz/definitions/client.d.ts +8 -115
- package/dist/raiz/definitions/client.js +10 -10
- package/dist/raiz/definitions/index.d.ts +1 -1
- package/dist/raiz/definitions/models.d.ts +224 -1
- package/dist/raiz/definitions/models.js +6 -0
- package/dist/raiz/evalCases/client.d.ts +10 -57
- package/dist/raiz/evalCases/client.js +8 -8
- package/dist/raiz/evalCases/index.d.ts +1 -1
- package/dist/raiz/evalCases/models.d.ts +78 -1
- package/dist/raiz/evalCases/models.js +6 -0
- package/dist/raiz/evalRuns/client.d.ts +4 -45
- package/dist/raiz/evalRuns/client.js +6 -6
- package/dist/raiz/evalRuns/index.d.ts +1 -1
- package/dist/raiz/evalRuns/models.d.ts +85 -0
- package/dist/raiz/evalRuns/models.js +3 -0
- package/dist/raiz/facts/client.d.ts +6 -65
- package/dist/raiz/facts/client.js +7 -7
- package/dist/raiz/facts/index.d.ts +1 -0
- package/dist/raiz/facts/models.d.ts +120 -0
- package/dist/raiz/facts/models.js +10 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/knowledge/client.d.ts +10 -130
- package/dist/raiz/knowledge/client.js +13 -13
- package/dist/raiz/knowledge/index.d.ts +1 -1
- package/dist/raiz/knowledge/models.d.ts +256 -1
- package/dist/raiz/knowledge/models.js +12 -0
- package/dist/raiz/models.d.ts +1474 -825
- package/dist/raiz/models.js +3 -0
- package/dist/raiz/organization/client.d.ts +7 -70
- package/dist/raiz/organization/client.js +8 -8
- package/dist/raiz/organization/index.d.ts +1 -1
- package/dist/raiz/organization/models.d.ts +178 -1
- package/dist/raiz/organization/models.js +11 -0
- package/dist/raiz/profiles/client.d.ts +8 -87
- package/dist/raiz/profiles/client.js +10 -10
- package/dist/raiz/profiles/index.d.ts +1 -1
- package/dist/raiz/profiles/models.d.ts +206 -2
- package/dist/raiz/profiles/models.js +6 -0
- package/dist/raiz/reports/client.d.ts +5 -8
- package/dist/raiz/reports/client.js +4 -4
- package/dist/raiz/reports/index.d.ts +1 -1
- package/dist/raiz/reports/models.d.ts +41 -0
- package/dist/raiz/reports/models.js +3 -0
- package/dist/raiz/suppressions/client.d.ts +4 -31
- package/dist/raiz/suppressions/client.js +6 -6
- package/dist/raiz/suppressions/index.d.ts +1 -1
- package/dist/raiz/suppressions/models.d.ts +114 -1
- package/dist/raiz/suppressions/models.js +6 -0
- package/dist/raiz/tasks/client.d.ts +12 -32
- package/dist/raiz/tasks/client.js +11 -11
- package/dist/raiz/tasks/index.d.ts +1 -1
- package/dist/raiz/tasks/models.d.ts +108 -2
- package/dist/raiz/tasks/models.js +4 -1
- package/dist/raiz/templates/client.d.ts +7 -84
- package/dist/raiz/templates/client.js +5 -4
- package/dist/raiz/templates/index.d.ts +1 -1
- package/dist/raiz/templates/models.d.ts +214 -1
- package/dist/raiz/templates/models.js +4 -1
- package/dist/raiz/voices/client.d.ts +2 -8
- package/dist/raiz/voices/client.js +1 -1
- package/dist/raiz/voices/index.d.ts +1 -1
- package/dist/raiz/voices/models.d.ts +40 -1
- package/package.json +3 -3
- package/dist/account/billing/client.d.ts +0 -22
- package/dist/account/billing/client.js +0 -18
- package/dist/account/billing/index.d.ts +0 -5
- package/dist/account/billing/index.js +0 -4
- package/dist/account/billing/models.d.ts +0 -74
- package/dist/account/billing/models.js +0 -10
- package/dist/account/billingProfiles/client.d.ts +0 -39
- package/dist/account/billingProfiles/client.js +0 -25
- package/dist/account/billingProfiles/index.d.ts +0 -5
- package/dist/account/billingProfiles/index.js +0 -4
- package/dist/account/billingProfiles/models.d.ts +0 -58
- package/dist/account/invoiceDocuments/client.d.ts +0 -25
- package/dist/account/invoiceDocuments/client.js +0 -17
- package/dist/account/invoiceDocuments/index.d.ts +0 -5
- package/dist/account/invoiceDocuments/index.js +0 -4
- package/dist/account/invoiceDocuments/models.d.ts +0 -35
- package/dist/account/invoices/client.d.ts +0 -47
- package/dist/account/invoices/client.js +0 -26
- package/dist/account/invoices/index.d.ts +0 -5
- package/dist/account/invoices/index.js +0 -4
- package/dist/account/invoices/models.d.ts +0 -135
- package/dist/account/invoices/models.js +0 -24
- package/dist/account/payments/client.d.ts +0 -34
- package/dist/account/payments/client.js +0 -19
- package/dist/account/payments/index.d.ts +0 -5
- package/dist/account/payments/index.js +0 -4
- package/dist/account/payments/models.d.ts +0 -64
- package/dist/account/payments/models.js +0 -12
- package/dist/account/usage/client.d.ts +0 -47
- package/dist/account/usage/client.js +0 -18
- package/dist/account/usage/index.d.ts +0 -5
- package/dist/account/usage/index.js +0 -4
- package/dist/account/usage/models.d.ts +0 -51
- package/dist/account/usageSummary/client.d.ts +0 -26
- package/dist/account/usageSummary/client.js +0 -19
- package/dist/account/usageSummary/index.d.ts +0 -5
- package/dist/account/usageSummary/index.js +0 -4
- package/dist/account/usageSummary/models.d.ts +0 -50
- package/dist/account/usageSummary/models.js +0 -9
- package/dist/account/walletTransactions/client.d.ts +0 -34
- package/dist/account/walletTransactions/client.js +0 -19
- package/dist/account/walletTransactions/index.d.ts +0 -5
- package/dist/account/walletTransactions/index.js +0 -4
- package/dist/account/walletTransactions/models.d.ts +0 -58
- package/dist/account/walletTransactions/models.js +0 -12
- /package/dist/{account/billingProfiles → agenda/availability}/models.js +0 -0
- /package/dist/{account/invoiceDocuments → agenda/bookingLocations}/models.js +0 -0
- /package/dist/{account/usage → agenda/bookingRequirements}/models.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { RaizTaskResponseCodec } from "../models.js";
|
|
5
|
+
import { RaizTaskPageResponseCodec, } from "./models.js";
|
|
6
6
|
export function createClient(options) {
|
|
7
7
|
return bind(new Transport(options));
|
|
8
8
|
}
|
|
@@ -18,26 +18,26 @@ const CancelOperation = {
|
|
|
18
18
|
method: "POST",
|
|
19
19
|
route: "/v1/raiz/tasks/{taskId}/cancel",
|
|
20
20
|
body: "nested",
|
|
21
|
-
response:
|
|
22
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
21
|
+
response: RaizTaskResponseCodec,
|
|
22
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
23
23
|
};
|
|
24
24
|
const GetOperation = {
|
|
25
25
|
method: "GET",
|
|
26
26
|
route: "/v1/raiz/tasks/{taskId}",
|
|
27
|
-
response:
|
|
28
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
27
|
+
response: RaizTaskResponseCodec,
|
|
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/tasks",
|
|
33
33
|
query: { cursor: "cursor", direction: "direction", limit: "limit", kind: "kind", status: "status" },
|
|
34
|
-
response:
|
|
35
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
34
|
+
response: RaizTaskPageResponseCodec,
|
|
35
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
36
36
|
};
|
|
37
37
|
const RetryOperation = {
|
|
38
38
|
method: "POST",
|
|
39
39
|
route: "/v1/raiz/tasks/{taskId}/retry",
|
|
40
40
|
body: "nested",
|
|
41
|
-
response:
|
|
42
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
41
|
+
response: RaizTaskResponseCodec,
|
|
42
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "413": true, "415": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
43
43
|
};
|
|
@@ -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, CancelRequest, CancelResponse, GetRequest, GetResponse, ListRequest, ListResponse, RetryRequest, RetryResponse, } from "./client.js";
|
|
5
|
-
export type { RaizTaskPage } from "./models.js";
|
|
5
|
+
export type { RaizCancelTaskServiceUnavailableError, RaizCancelTaskServiceUnavailableFailure, RaizGetTaskServiceUnavailableError, RaizGetTaskServiceUnavailableFailure, RaizInvalidStateError, RaizListTasksBadRequestError, RaizListTasksBadRequestFailure, RaizListTasksServiceUnavailableError, RaizListTasksServiceUnavailableFailure, RaizRetryTaskConflictError, RaizRetryTaskConflictFailure, RaizRetryTaskServiceUnavailableError, RaizRetryTaskServiceUnavailableFailure, RaizTaskPage, RaizTaskPageResponse, } from "./models.js";
|
|
@@ -1,5 +1,98 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
2
|
-
import { type RaizTask } from "../models.js";
|
|
1
|
+
import type { InvalidInputFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import { type RaizIntegrationsUnavailableFailure, type RaizInvalidCursorFailure, type RaizInvalidStateFailure, type RaizTask, type RaizTaskNotRetryableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface RaizCancelTaskServiceUnavailableError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: RaizCancelTaskServiceUnavailableFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type RaizCancelTaskServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface RaizGetTaskServiceUnavailableError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: RaizGetTaskServiceUnavailableFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type RaizGetTaskServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
29
|
+
/**
|
|
30
|
+
* A failed answer.
|
|
31
|
+
*/
|
|
32
|
+
export interface RaizInvalidStateError {
|
|
33
|
+
data: null;
|
|
34
|
+
/**
|
|
35
|
+
* The resource is not in a state that allows this operation.
|
|
36
|
+
*/
|
|
37
|
+
error: RaizInvalidStateFailure;
|
|
38
|
+
/**
|
|
39
|
+
* What every answer carries besides its data or error.
|
|
40
|
+
*/
|
|
41
|
+
metadata: ResponseMetadata;
|
|
42
|
+
success: false;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A failed answer.
|
|
46
|
+
*/
|
|
47
|
+
export interface RaizListTasksBadRequestError {
|
|
48
|
+
data: null;
|
|
49
|
+
error: RaizListTasksBadRequestFailure;
|
|
50
|
+
/**
|
|
51
|
+
* What every answer carries besides its data or error.
|
|
52
|
+
*/
|
|
53
|
+
metadata: ResponseMetadata;
|
|
54
|
+
success: false;
|
|
55
|
+
}
|
|
56
|
+
export type RaizListTasksBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
57
|
+
/**
|
|
58
|
+
* A failed answer.
|
|
59
|
+
*/
|
|
60
|
+
export interface RaizListTasksServiceUnavailableError {
|
|
61
|
+
data: null;
|
|
62
|
+
error: RaizListTasksServiceUnavailableFailure;
|
|
63
|
+
/**
|
|
64
|
+
* What every answer carries besides its data or error.
|
|
65
|
+
*/
|
|
66
|
+
metadata: ResponseMetadata;
|
|
67
|
+
success: false;
|
|
68
|
+
}
|
|
69
|
+
export type RaizListTasksServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
70
|
+
/**
|
|
71
|
+
* A failed answer.
|
|
72
|
+
*/
|
|
73
|
+
export interface RaizRetryTaskConflictError {
|
|
74
|
+
data: null;
|
|
75
|
+
error: RaizRetryTaskConflictFailure;
|
|
76
|
+
/**
|
|
77
|
+
* What every answer carries besides its data or error.
|
|
78
|
+
*/
|
|
79
|
+
metadata: ResponseMetadata;
|
|
80
|
+
success: false;
|
|
81
|
+
}
|
|
82
|
+
export type RaizRetryTaskConflictFailure = RaizTaskNotRetryableFailure | RaizInvalidStateFailure;
|
|
83
|
+
/**
|
|
84
|
+
* A failed answer.
|
|
85
|
+
*/
|
|
86
|
+
export interface RaizRetryTaskServiceUnavailableError {
|
|
87
|
+
data: null;
|
|
88
|
+
error: RaizRetryTaskServiceUnavailableFailure;
|
|
89
|
+
/**
|
|
90
|
+
* What every answer carries besides its data or error.
|
|
91
|
+
*/
|
|
92
|
+
metadata: ResponseMetadata;
|
|
93
|
+
success: false;
|
|
94
|
+
}
|
|
95
|
+
export type RaizRetryTaskServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
3
96
|
export interface RaizTaskPage {
|
|
4
97
|
/**
|
|
5
98
|
* Items admitted by this resource contract within the verified organization.
|
|
@@ -14,4 +107,17 @@ export interface RaizTaskPage {
|
|
|
14
107
|
*/
|
|
15
108
|
pageInfo: PageInfo;
|
|
16
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* A successful answer.
|
|
112
|
+
*/
|
|
113
|
+
export interface RaizTaskPageResponse {
|
|
114
|
+
data: RaizTaskPage;
|
|
115
|
+
error: null;
|
|
116
|
+
/**
|
|
117
|
+
* What every answer carries besides its data or error.
|
|
118
|
+
*/
|
|
119
|
+
metadata: ResponseMetadata;
|
|
120
|
+
success: true;
|
|
121
|
+
}
|
|
17
122
|
export declare const RaizTaskPageCodec: import("../../_/codec.js").Codec;
|
|
123
|
+
export declare const RaizTaskPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
import { array, object } from "../../_/index.js";
|
|
4
|
-
import { RaizTaskCodec } from "../models.js";
|
|
4
|
+
import { RaizTaskCodec, } from "../models.js";
|
|
5
5
|
export const RaizTaskPageCodec = object([
|
|
6
6
|
["data", null, array(() => RaizTaskCodec)],
|
|
7
7
|
]);
|
|
8
|
+
export const RaizTaskPageResponseCodec = object([
|
|
9
|
+
["data", null, () => RaizTaskPageCodec],
|
|
10
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type
|
|
3
|
-
import type { RaizTemplate, RaizTemplatePage } from "./models.js";
|
|
2
|
+
import { type RaizCreateTemplateBody, type RaizTemplatePageResponse, type RaizTemplateResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -36,82 +35,8 @@ export interface Client {
|
|
|
36
35
|
}
|
|
37
36
|
export declare function createClient(options: ClientOptions): Client;
|
|
38
37
|
export declare function bind(transport: Transport): Client;
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
examples?: string[];
|
|
42
|
-
text: string;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Up to 10 buttons: at most 2 links and 1 phone number; quick replies stay
|
|
46
|
-
* together, before or after the others.
|
|
47
|
-
*/
|
|
48
|
-
buttons?: ({
|
|
49
|
-
text: string;
|
|
50
|
-
type: "quick_reply";
|
|
51
|
-
} | {
|
|
52
|
-
text: string;
|
|
53
|
-
type: "url";
|
|
54
|
-
url: string;
|
|
55
|
-
} | {
|
|
56
|
-
phone?: RaizPhoneNumber;
|
|
57
|
-
phoneNumber?: RaizPhoneNumber;
|
|
58
|
-
text: string;
|
|
59
|
-
type: "phone_number";
|
|
60
|
-
})[];
|
|
61
|
-
/**
|
|
62
|
-
* `utility` for messages about something the person asked for (appointments,
|
|
63
|
-
* orders); `marketing` for promotions. WhatsApp may recategorize.
|
|
64
|
-
*/
|
|
65
|
-
category: "marketing" | "utility";
|
|
66
|
-
/**
|
|
67
|
-
* Channel id.
|
|
68
|
-
*/
|
|
69
|
-
channelId: string;
|
|
70
|
-
footer?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Shown above the body: a fixed `text`, or a `document` (PDF), `image` (JPEG
|
|
73
|
-
* or PNG) or `video` (MP4) whose file each send provides. A media header
|
|
74
|
-
* needs a sample `example` for WhatsApp's review; it is used only for that
|
|
75
|
-
* review.
|
|
76
|
-
*/
|
|
77
|
-
header?: {
|
|
78
|
-
format: "text";
|
|
79
|
-
text: string;
|
|
80
|
-
} | {
|
|
81
|
-
example: {
|
|
82
|
-
data: Uint8Array;
|
|
83
|
-
fileName?: string;
|
|
84
|
-
mediaType: "application/pdf";
|
|
85
|
-
};
|
|
86
|
-
format: "document";
|
|
87
|
-
} | {
|
|
88
|
-
example: {
|
|
89
|
-
data: Uint8Array;
|
|
90
|
-
mediaType: "image/jpeg" | "image/png";
|
|
91
|
-
};
|
|
92
|
-
format: "image";
|
|
93
|
-
} | {
|
|
94
|
-
example: {
|
|
95
|
-
data: Uint8Array;
|
|
96
|
-
mediaType: "video/mp4";
|
|
97
|
-
};
|
|
98
|
-
format: "video";
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* WhatsApp's language code, for example `es`, `es_MX` or `en_US`.
|
|
102
|
-
*/
|
|
103
|
-
language: string;
|
|
104
|
-
/**
|
|
105
|
-
* Lower case letters, digits and underscores.
|
|
106
|
-
*/
|
|
107
|
-
name: string;
|
|
108
|
-
}
|
|
109
|
-
export interface CreateResponse {
|
|
110
|
-
data: RaizTemplate;
|
|
111
|
-
error: null;
|
|
112
|
-
metadata: RaizResponseMetadata;
|
|
113
|
-
success: true;
|
|
114
|
-
}
|
|
38
|
+
export type CreateRequest = RaizCreateTemplateBody;
|
|
39
|
+
export type CreateResponse = RaizTemplateResponse;
|
|
115
40
|
export interface ListRequest {
|
|
116
41
|
/**
|
|
117
42
|
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
@@ -131,11 +56,9 @@ export interface ListRequest {
|
|
|
131
56
|
* templates live in WhatsApp, per business account.
|
|
132
57
|
*/
|
|
133
58
|
channelId: string;
|
|
59
|
+
/**
|
|
60
|
+
* The status.
|
|
61
|
+
*/
|
|
134
62
|
status?: "approved" | "pending" | "rejected";
|
|
135
63
|
}
|
|
136
|
-
export
|
|
137
|
-
data: RaizTemplatePage;
|
|
138
|
-
error: null;
|
|
139
|
-
metadata: RaizResponseMetadata;
|
|
140
|
-
success: true;
|
|
141
|
-
}
|
|
64
|
+
export type ListResponse = RaizTemplatePageResponse;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
import { Transport,
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { RaizCreateTemplateBodyCodec, } from "./models.js";
|
|
4
5
|
export function createClient(options) {
|
|
5
6
|
return bind(new Transport(options));
|
|
6
7
|
}
|
|
@@ -14,14 +15,14 @@ const CreateOperation = {
|
|
|
14
15
|
method: "POST",
|
|
15
16
|
route: "/v1/raiz/templates",
|
|
16
17
|
body: "flat",
|
|
17
|
-
request:
|
|
18
|
+
request: RaizCreateTemplateBodyCodec,
|
|
18
19
|
response: null,
|
|
19
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
20
|
+
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 },
|
|
20
21
|
};
|
|
21
22
|
const ListOperation = {
|
|
22
23
|
method: "GET",
|
|
23
24
|
route: "/v1/raiz/templates",
|
|
24
25
|
query: { cursor: "cursor", direction: "direction", limit: "limit", channelId: "channelId", status: "status" },
|
|
25
26
|
response: null,
|
|
26
|
-
errors: { "400": true, "401": true, "403": true, "404": true, "
|
|
27
|
+
errors: { "400": true, "401": true, "403": true, "404": true, "409": true, "422": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
27
28
|
};
|
|
@@ -2,4 +2,4 @@ export { ApiError } from "../../_/index.js";
|
|
|
2
2
|
export type { RequestOptions } from "../../_/index.js";
|
|
3
3
|
export { createClient } from "./client.js";
|
|
4
4
|
export type { Client, ClientOptions, CreateRequest, CreateResponse, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { RaizTemplate, RaizTemplatePage, } from "./models.js";
|
|
5
|
+
export type { RaizCreateTemplateBody, RaizCreateTemplateConflictError, RaizCreateTemplateConflictFailure, RaizCreateTemplateNotFoundError, RaizCreateTemplateNotFoundFailure, RaizCreateTemplateServiceUnavailableError, RaizCreateTemplateServiceUnavailableFailure, RaizCreateTemplateTooManyRequestsError, RaizCreateTemplateTooManyRequestsFailure, RaizListTemplatesBadRequestError, RaizListTemplatesBadRequestFailure, RaizListTemplatesConflictError, RaizListTemplatesConflictFailure, RaizListTemplatesNotFoundError, RaizListTemplatesNotFoundFailure, RaizListTemplatesServiceUnavailableError, RaizListTemplatesServiceUnavailableFailure, RaizListTemplatesTooManyRequestsError, RaizListTemplatesTooManyRequestsFailure, RaizTemplate, RaizTemplatePage, RaizTemplatePageResponse, RaizTemplateResponse, } from "./models.js";
|
|
@@ -1,4 +1,192 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { InvalidInputFailure, PageInfo, RateLimitedFailure, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { RaizChannelNotReadyFailure, RaizChannelTypeMismatchFailure, RaizIntegrationsUnavailableFailure, RaizInvalidCursorFailure, RaizPhoneNumber, RaizResourceNotFoundFailure, RaizTemplateNotFoundFailure, RaizWhatsappRateLimitedFailure } from "../models.js";
|
|
3
|
+
export interface RaizCreateTemplateBody {
|
|
4
|
+
body: {
|
|
5
|
+
examples?: string[];
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Up to 10 buttons: at most 2 links and 1 phone number; quick replies stay
|
|
10
|
+
* together, before or after the others.
|
|
11
|
+
*/
|
|
12
|
+
buttons?: ({
|
|
13
|
+
text: string;
|
|
14
|
+
type: "quick_reply";
|
|
15
|
+
} | {
|
|
16
|
+
text: string;
|
|
17
|
+
type: "url";
|
|
18
|
+
url: string;
|
|
19
|
+
} | {
|
|
20
|
+
phone?: RaizPhoneNumber;
|
|
21
|
+
phoneNumber?: RaizPhoneNumber;
|
|
22
|
+
text: string;
|
|
23
|
+
type: "phone_number";
|
|
24
|
+
})[];
|
|
25
|
+
/**
|
|
26
|
+
* `utility` for messages about something the person asked for (appointments,
|
|
27
|
+
* orders); `marketing` for promotions. WhatsApp may recategorize.
|
|
28
|
+
*/
|
|
29
|
+
category: "marketing" | "utility";
|
|
30
|
+
/**
|
|
31
|
+
* Channel id.
|
|
32
|
+
*/
|
|
33
|
+
channelId: string;
|
|
34
|
+
footer?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Shown above the body: a fixed `text`, or a `document` (PDF), `image` (JPEG
|
|
37
|
+
* or PNG) or `video` (MP4) whose file each send provides. A media header
|
|
38
|
+
* needs a sample `example` for WhatsApp's review; it is used only for that
|
|
39
|
+
* review.
|
|
40
|
+
*/
|
|
41
|
+
header?: {
|
|
42
|
+
format: "text";
|
|
43
|
+
text: string;
|
|
44
|
+
} | {
|
|
45
|
+
example: {
|
|
46
|
+
data: Uint8Array;
|
|
47
|
+
fileName?: string;
|
|
48
|
+
mediaType: "application/pdf";
|
|
49
|
+
};
|
|
50
|
+
format: "document";
|
|
51
|
+
} | {
|
|
52
|
+
example: {
|
|
53
|
+
data: Uint8Array;
|
|
54
|
+
mediaType: "image/jpeg" | "image/png";
|
|
55
|
+
};
|
|
56
|
+
format: "image";
|
|
57
|
+
} | {
|
|
58
|
+
example: {
|
|
59
|
+
data: Uint8Array;
|
|
60
|
+
mediaType: "video/mp4";
|
|
61
|
+
};
|
|
62
|
+
format: "video";
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* WhatsApp's language code, for example `es`, `es_MX` or `en_US`.
|
|
66
|
+
*/
|
|
67
|
+
language: string;
|
|
68
|
+
/**
|
|
69
|
+
* Lower case letters, digits and underscores.
|
|
70
|
+
*/
|
|
71
|
+
name: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* A failed answer.
|
|
75
|
+
*/
|
|
76
|
+
export interface RaizCreateTemplateConflictError {
|
|
77
|
+
data: null;
|
|
78
|
+
error: RaizCreateTemplateConflictFailure;
|
|
79
|
+
/**
|
|
80
|
+
* What every answer carries besides its data or error.
|
|
81
|
+
*/
|
|
82
|
+
metadata: ResponseMetadata;
|
|
83
|
+
success: false;
|
|
84
|
+
}
|
|
85
|
+
export type RaizCreateTemplateConflictFailure = RaizChannelNotReadyFailure | RaizChannelTypeMismatchFailure;
|
|
86
|
+
/**
|
|
87
|
+
* A failed answer.
|
|
88
|
+
*/
|
|
89
|
+
export interface RaizCreateTemplateNotFoundError {
|
|
90
|
+
data: null;
|
|
91
|
+
error: RaizCreateTemplateNotFoundFailure;
|
|
92
|
+
/**
|
|
93
|
+
* What every answer carries besides its data or error.
|
|
94
|
+
*/
|
|
95
|
+
metadata: ResponseMetadata;
|
|
96
|
+
success: false;
|
|
97
|
+
}
|
|
98
|
+
export type RaizCreateTemplateNotFoundFailure = RaizTemplateNotFoundFailure | RaizResourceNotFoundFailure;
|
|
99
|
+
/**
|
|
100
|
+
* A failed answer.
|
|
101
|
+
*/
|
|
102
|
+
export interface RaizCreateTemplateServiceUnavailableError {
|
|
103
|
+
data: null;
|
|
104
|
+
error: RaizCreateTemplateServiceUnavailableFailure;
|
|
105
|
+
/**
|
|
106
|
+
* What every answer carries besides its data or error.
|
|
107
|
+
*/
|
|
108
|
+
metadata: ResponseMetadata;
|
|
109
|
+
success: false;
|
|
110
|
+
}
|
|
111
|
+
export type RaizCreateTemplateServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
112
|
+
/**
|
|
113
|
+
* A failed answer.
|
|
114
|
+
*/
|
|
115
|
+
export interface RaizCreateTemplateTooManyRequestsError {
|
|
116
|
+
data: null;
|
|
117
|
+
error: RaizCreateTemplateTooManyRequestsFailure;
|
|
118
|
+
/**
|
|
119
|
+
* What every answer carries besides its data or error.
|
|
120
|
+
*/
|
|
121
|
+
metadata: ResponseMetadata;
|
|
122
|
+
success: false;
|
|
123
|
+
}
|
|
124
|
+
export type RaizCreateTemplateTooManyRequestsFailure = RateLimitedFailure | RaizWhatsappRateLimitedFailure;
|
|
125
|
+
/**
|
|
126
|
+
* A failed answer.
|
|
127
|
+
*/
|
|
128
|
+
export interface RaizListTemplatesBadRequestError {
|
|
129
|
+
data: null;
|
|
130
|
+
error: RaizListTemplatesBadRequestFailure;
|
|
131
|
+
/**
|
|
132
|
+
* What every answer carries besides its data or error.
|
|
133
|
+
*/
|
|
134
|
+
metadata: ResponseMetadata;
|
|
135
|
+
success: false;
|
|
136
|
+
}
|
|
137
|
+
export type RaizListTemplatesBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
138
|
+
/**
|
|
139
|
+
* A failed answer.
|
|
140
|
+
*/
|
|
141
|
+
export interface RaizListTemplatesConflictError {
|
|
142
|
+
data: null;
|
|
143
|
+
error: RaizListTemplatesConflictFailure;
|
|
144
|
+
/**
|
|
145
|
+
* What every answer carries besides its data or error.
|
|
146
|
+
*/
|
|
147
|
+
metadata: ResponseMetadata;
|
|
148
|
+
success: false;
|
|
149
|
+
}
|
|
150
|
+
export type RaizListTemplatesConflictFailure = RaizChannelNotReadyFailure | RaizChannelTypeMismatchFailure;
|
|
151
|
+
/**
|
|
152
|
+
* A failed answer.
|
|
153
|
+
*/
|
|
154
|
+
export interface RaizListTemplatesNotFoundError {
|
|
155
|
+
data: null;
|
|
156
|
+
error: RaizListTemplatesNotFoundFailure;
|
|
157
|
+
/**
|
|
158
|
+
* What every answer carries besides its data or error.
|
|
159
|
+
*/
|
|
160
|
+
metadata: ResponseMetadata;
|
|
161
|
+
success: false;
|
|
162
|
+
}
|
|
163
|
+
export type RaizListTemplatesNotFoundFailure = RaizTemplateNotFoundFailure | RaizResourceNotFoundFailure;
|
|
164
|
+
/**
|
|
165
|
+
* A failed answer.
|
|
166
|
+
*/
|
|
167
|
+
export interface RaizListTemplatesServiceUnavailableError {
|
|
168
|
+
data: null;
|
|
169
|
+
error: RaizListTemplatesServiceUnavailableFailure;
|
|
170
|
+
/**
|
|
171
|
+
* What every answer carries besides its data or error.
|
|
172
|
+
*/
|
|
173
|
+
metadata: ResponseMetadata;
|
|
174
|
+
success: false;
|
|
175
|
+
}
|
|
176
|
+
export type RaizListTemplatesServiceUnavailableFailure = UpstreamUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
177
|
+
/**
|
|
178
|
+
* A failed answer.
|
|
179
|
+
*/
|
|
180
|
+
export interface RaizListTemplatesTooManyRequestsError {
|
|
181
|
+
data: null;
|
|
182
|
+
error: RaizListTemplatesTooManyRequestsFailure;
|
|
183
|
+
/**
|
|
184
|
+
* What every answer carries besides its data or error.
|
|
185
|
+
*/
|
|
186
|
+
metadata: ResponseMetadata;
|
|
187
|
+
success: false;
|
|
188
|
+
}
|
|
189
|
+
export type RaizListTemplatesTooManyRequestsFailure = RateLimitedFailure | RaizWhatsappRateLimitedFailure;
|
|
2
190
|
export interface RaizTemplate {
|
|
3
191
|
body: string | null;
|
|
4
192
|
buttons: {
|
|
@@ -53,3 +241,28 @@ export interface RaizTemplatePage {
|
|
|
53
241
|
*/
|
|
54
242
|
pageInfo: PageInfo;
|
|
55
243
|
}
|
|
244
|
+
/**
|
|
245
|
+
* A successful answer.
|
|
246
|
+
*/
|
|
247
|
+
export interface RaizTemplatePageResponse {
|
|
248
|
+
data: RaizTemplatePage;
|
|
249
|
+
error: null;
|
|
250
|
+
/**
|
|
251
|
+
* What every answer carries besides its data or error.
|
|
252
|
+
*/
|
|
253
|
+
metadata: ResponseMetadata;
|
|
254
|
+
success: true;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* A successful answer.
|
|
258
|
+
*/
|
|
259
|
+
export interface RaizTemplateResponse {
|
|
260
|
+
data: RaizTemplate;
|
|
261
|
+
error: null;
|
|
262
|
+
/**
|
|
263
|
+
* What every answer carries besides its data or error.
|
|
264
|
+
*/
|
|
265
|
+
metadata: ResponseMetadata;
|
|
266
|
+
success: true;
|
|
267
|
+
}
|
|
268
|
+
export declare const RaizCreateTemplateBodyCodec: import("../../_/codec.js").Codec;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
// Code generated by forge. DO NOT EDIT.
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
3
|
+
import { bytes, object, union } from "../../_/index.js";
|
|
4
|
+
export const RaizCreateTemplateBodyCodec = object([
|
|
5
|
+
["header", null, union([object([["example", null, object([["data", null, bytes]])]]), object([["example", null, object([["data", null, bytes]])]]), object([["example", null, object([["data", null, bytes]])]])])],
|
|
6
|
+
]);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
-
import type {
|
|
3
|
-
import type { RaizVoicePage } from "./models.js";
|
|
2
|
+
import type { RaizVoicePageResponse } from "./models.js";
|
|
4
3
|
export interface ClientOptions extends BaseClientOptions {
|
|
5
4
|
/**
|
|
6
5
|
* The URL the paths of the API are relative to.
|
|
@@ -44,9 +43,4 @@ export interface ListRequest {
|
|
|
44
43
|
*/
|
|
45
44
|
q?: string;
|
|
46
45
|
}
|
|
47
|
-
export
|
|
48
|
-
data: RaizVoicePage;
|
|
49
|
-
error: null;
|
|
50
|
-
metadata: RaizResponseMetadata;
|
|
51
|
-
success: true;
|
|
52
|
-
}
|
|
46
|
+
export type ListResponse = RaizVoicePageResponse;
|
|
@@ -14,5 +14,5 @@ const ListOperation = {
|
|
|
14
14
|
route: "/v1/raiz/voices",
|
|
15
15
|
query: { cursor: "cursor", direction: "direction", limit: "limit", language: "language", q: "q" },
|
|
16
16
|
response: null,
|
|
17
|
-
errors: { "400": true, "401": true, "403": true, "
|
|
17
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
18
18
|
};
|
|
@@ -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, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
-
export type { RaizVoice, RaizVoicePage, } from "./models.js";
|
|
5
|
+
export type { RaizListVoicesBadRequestError, RaizListVoicesBadRequestFailure, RaizListVoicesServiceUnavailableError, RaizListVoicesServiceUnavailableFailure, RaizVoice, RaizVoicePage, RaizVoicePageResponse, } from "./models.js";
|
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
import type { PageInfo } from "../../models.js";
|
|
1
|
+
import type { InvalidInputFailure, PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { RaizIntegrationsUnavailableFailure, RaizInvalidCursorFailure, RaizVoiceUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface RaizListVoicesBadRequestError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: RaizListVoicesBadRequestFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type RaizListVoicesBadRequestFailure = InvalidInputFailure | RaizInvalidCursorFailure;
|
|
16
|
+
/**
|
|
17
|
+
* A failed answer.
|
|
18
|
+
*/
|
|
19
|
+
export interface RaizListVoicesServiceUnavailableError {
|
|
20
|
+
data: null;
|
|
21
|
+
error: RaizListVoicesServiceUnavailableFailure;
|
|
22
|
+
/**
|
|
23
|
+
* What every answer carries besides its data or error.
|
|
24
|
+
*/
|
|
25
|
+
metadata: ResponseMetadata;
|
|
26
|
+
success: false;
|
|
27
|
+
}
|
|
28
|
+
export type RaizListVoicesServiceUnavailableFailure = UpstreamUnavailableFailure | RaizVoiceUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
2
29
|
export interface RaizVoice {
|
|
3
30
|
accent: string | null;
|
|
4
31
|
age: string | null;
|
|
@@ -38,3 +65,15 @@ export interface RaizVoicePage {
|
|
|
38
65
|
*/
|
|
39
66
|
pageInfo: PageInfo;
|
|
40
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* A successful answer.
|
|
70
|
+
*/
|
|
71
|
+
export interface RaizVoicePageResponse {
|
|
72
|
+
data: RaizVoicePage;
|
|
73
|
+
error: null;
|
|
74
|
+
/**
|
|
75
|
+
* What every answer carries besides its data or error.
|
|
76
|
+
*/
|
|
77
|
+
metadata: ResponseMetadata;
|
|
78
|
+
success: true;
|
|
79
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbol-ai/sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.45.0",
|
|
4
4
|
"description": "The Arbol API for TypeScript and JavaScript, generated by Cloudflare Forge from the platform's public OpenAPI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arbol",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"packageManager": "bun@1.4.3",
|
|
59
59
|
"arbol": {
|
|
60
60
|
"openapi": {
|
|
61
|
-
"release": "1.
|
|
62
|
-
"sha256": "
|
|
61
|
+
"release": "1.20261108.215556",
|
|
62
|
+
"sha256": "8fcd233cbe7a349b5d7fc3623a6d4a434d08cfdbb91c519c123e38eadc1209ff"
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|