@arbol-ai/sdk 5.58.0 → 5.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/billing/client.d.ts +23 -0
- package/dist/account/billing/client.js +18 -0
- package/dist/account/billing/index.d.ts +5 -0
- package/dist/account/billing/index.js +4 -0
- package/dist/account/billing/models.d.ts +97 -0
- package/dist/account/billing/models.js +13 -0
- package/dist/account/billingPortalSessions/client.d.ts +24 -0
- package/dist/account/billingPortalSessions/client.js +18 -0
- package/dist/account/billingPortalSessions/index.d.ts +5 -0
- package/dist/account/billingPortalSessions/index.js +4 -0
- package/dist/account/billingPortalSessions/models.d.ts +69 -0
- package/dist/account/billingPortalSessions/models.js +3 -0
- package/dist/account/client.d.ts +10 -0
- package/dist/account/client.js +25 -0
- package/dist/account/connections/models.d.ts +1 -1
- package/dist/account/index.d.ts +1 -1
- package/dist/account/models.d.ts +42 -0
- package/dist/account/usageSummary/client.d.ts +35 -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 +55 -0
- package/dist/account/usageSummary/models.js +10 -0
- package/dist/account/walletTopUps/client.d.ts +23 -0
- package/dist/account/walletTopUps/client.js +18 -0
- package/dist/account/walletTopUps/index.d.ts +5 -0
- package/dist/account/walletTopUps/index.js +4 -0
- package/dist/account/walletTopUps/models.d.ts +80 -0
- package/dist/account/walletTopUps/models.js +3 -0
- package/dist/account/walletTransactions/client.d.ts +36 -0
- package/dist/account/walletTransactions/client.js +19 -0
- package/dist/account/walletTransactions/index.d.ts +5 -0
- package/dist/account/walletTransactions/index.js +4 -0
- package/dist/account/walletTransactions/models.d.ts +78 -0
- package/dist/account/walletTransactions/models.js +13 -0
- package/dist/raiz/agents/models.d.ts +2 -0
- package/dist/raiz/channels/models.d.ts +7 -7
- package/dist/raiz/conversations/client.d.ts +89 -44
- package/dist/raiz/conversations/client.js +3 -3
- package/dist/raiz/conversations/index.d.ts +1 -1
- package/dist/raiz/conversations/models.d.ts +73 -2
- package/dist/raiz/conversations/models.js +6 -0
- package/dist/raiz/index.d.ts +1 -1
- package/dist/raiz/models.d.ts +43 -0
- package/dist/raiz/organization/models.d.ts +2 -0
- package/dist/raiz/reports/client.d.ts +36 -28
- package/dist/raiz/reports/models.d.ts +18 -0
- package/dist/raiz/reports/models.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { Empty, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingNotConfiguredFailure, AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
export interface AccountCreateWalletTopUpBody {
|
|
4
|
+
/**
|
|
5
|
+
* Credits to buy, at one US dollar each.
|
|
6
|
+
*/
|
|
7
|
+
credits: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A failed answer.
|
|
11
|
+
*/
|
|
12
|
+
export interface AccountCreateWalletTopUpServiceUnavailableError {
|
|
13
|
+
data: null;
|
|
14
|
+
error: AccountCreateWalletTopUpServiceUnavailableFailure;
|
|
15
|
+
/**
|
|
16
|
+
* What every answer carries besides its data or error.
|
|
17
|
+
*/
|
|
18
|
+
metadata: ResponseMetadata;
|
|
19
|
+
success: false;
|
|
20
|
+
}
|
|
21
|
+
export type AccountCreateWalletTopUpServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingNotConfiguredFailure | AccountBillingUnavailableFailure;
|
|
22
|
+
/**
|
|
23
|
+
* A failed answer.
|
|
24
|
+
*/
|
|
25
|
+
export interface AccountTopUpDeclinedError {
|
|
26
|
+
data: null;
|
|
27
|
+
/**
|
|
28
|
+
* The card was not charged: the payment was declined.
|
|
29
|
+
*/
|
|
30
|
+
error: AccountTopUpDeclinedFailure;
|
|
31
|
+
/**
|
|
32
|
+
* What every answer carries besides its data or error.
|
|
33
|
+
*/
|
|
34
|
+
metadata: ResponseMetadata;
|
|
35
|
+
success: false;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The card was not charged: the payment was declined.
|
|
39
|
+
*/
|
|
40
|
+
export interface AccountTopUpDeclinedFailure {
|
|
41
|
+
/**
|
|
42
|
+
* The failure code, stable across releases.
|
|
43
|
+
*/
|
|
44
|
+
code: "TOP_UP_DECLINED";
|
|
45
|
+
/**
|
|
46
|
+
* No fields.
|
|
47
|
+
*/
|
|
48
|
+
data: Empty;
|
|
49
|
+
/**
|
|
50
|
+
* What went wrong, for people; it never contains input values.
|
|
51
|
+
*/
|
|
52
|
+
message: string;
|
|
53
|
+
/**
|
|
54
|
+
* Whether repeating the same request may succeed.
|
|
55
|
+
*/
|
|
56
|
+
retryable: false;
|
|
57
|
+
}
|
|
58
|
+
export interface AccountWalletTopUp {
|
|
59
|
+
/**
|
|
60
|
+
* Stripe's page to pay on, for `checkout`.
|
|
61
|
+
*/
|
|
62
|
+
checkoutUrl: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* `paid`: the saved card was charged and the credits are in the wallet;
|
|
65
|
+
* `checkout`: pay on `checkoutUrl`.
|
|
66
|
+
*/
|
|
67
|
+
status: "paid" | "checkout";
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* A successful answer.
|
|
71
|
+
*/
|
|
72
|
+
export interface AccountWalletTopUpResponse {
|
|
73
|
+
data: AccountWalletTopUp;
|
|
74
|
+
error: null;
|
|
75
|
+
/**
|
|
76
|
+
* What every answer carries besides its data or error.
|
|
77
|
+
*/
|
|
78
|
+
metadata: ResponseMetadata;
|
|
79
|
+
success: true;
|
|
80
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type BaseClientOptions, type RequestOptions, Transport } from "../../_/index.js";
|
|
2
|
+
import { type AccountWalletTransactionPageResponse } from "./models.js";
|
|
3
|
+
export interface ClientOptions extends BaseClientOptions {
|
|
4
|
+
/**
|
|
5
|
+
* The URL the paths of the API are relative to.
|
|
6
|
+
*/
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface Client {
|
|
10
|
+
/**
|
|
11
|
+
* List wallet transactions
|
|
12
|
+
*
|
|
13
|
+
* What moved the organization's wallet, newest first: top-ups, plan grants
|
|
14
|
+
* and renewals, adjustments Arbol made, and the credits spent, one entry per
|
|
15
|
+
* UTC day, each with the balance right after it. Listed forward only.
|
|
16
|
+
*/
|
|
17
|
+
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export declare function createClient(options: ClientOptions): Client;
|
|
20
|
+
export declare function bind(transport: Transport): Client;
|
|
21
|
+
export interface ListRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Opaque cursor returned by pageInfo; omit it to request the first page.
|
|
24
|
+
*/
|
|
25
|
+
cursor?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Direction to traverse the stable keyset ordering from the supplied cursor.
|
|
28
|
+
*/
|
|
29
|
+
direction?: "forward" | "backward";
|
|
30
|
+
/**
|
|
31
|
+
* Maximum items returned in one page. Defaults to 25; larger reads require
|
|
32
|
+
* another cursor.
|
|
33
|
+
*/
|
|
34
|
+
limit?: number;
|
|
35
|
+
}
|
|
36
|
+
export type ListResponse = AccountWalletTransactionPageResponse;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { Transport, } from "../../_/index.js";
|
|
4
|
+
import { AccountWalletTransactionPageResponseCodec, } from "./models.js";
|
|
5
|
+
export function createClient(options) {
|
|
6
|
+
return bind(new Transport(options));
|
|
7
|
+
}
|
|
8
|
+
export function bind(transport) {
|
|
9
|
+
return {
|
|
10
|
+
list: (request, options) => transport.send(ListOperation, request, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
const ListOperation = {
|
|
14
|
+
method: "GET",
|
|
15
|
+
route: "/v1/account/wallet-transactions",
|
|
16
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit" },
|
|
17
|
+
response: AccountWalletTransactionPageResponseCodec,
|
|
18
|
+
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
19
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ApiError } from "../../_/index.js";
|
|
2
|
+
export type { RequestOptions } from "../../_/index.js";
|
|
3
|
+
export { createClient } from "./client.js";
|
|
4
|
+
export type { Client, ClientOptions, ListRequest, ListResponse, } from "./client.js";
|
|
5
|
+
export type { AccountListWalletTransactionsServiceUnavailableError, AccountListWalletTransactionsServiceUnavailableFailure, AccountWalletTransaction, AccountWalletTransactionPage, AccountWalletTransactionPageResponse, } from "./models.js";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { PageInfo, ResponseMetadata, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
+
import type { AccountBillingNotConfiguredFailure, AccountBillingUnavailableFailure } from "../models.js";
|
|
3
|
+
/**
|
|
4
|
+
* A failed answer.
|
|
5
|
+
*/
|
|
6
|
+
export interface AccountListWalletTransactionsServiceUnavailableError {
|
|
7
|
+
data: null;
|
|
8
|
+
error: AccountListWalletTransactionsServiceUnavailableFailure;
|
|
9
|
+
/**
|
|
10
|
+
* What every answer carries besides its data or error.
|
|
11
|
+
*/
|
|
12
|
+
metadata: ResponseMetadata;
|
|
13
|
+
success: false;
|
|
14
|
+
}
|
|
15
|
+
export type AccountListWalletTransactionsServiceUnavailableFailure = UpstreamUnavailableFailure | AccountBillingNotConfiguredFailure | AccountBillingUnavailableFailure;
|
|
16
|
+
export interface AccountWalletTransaction {
|
|
17
|
+
/**
|
|
18
|
+
* Credits it added (positive) or took (negative); null when Autumn could not
|
|
19
|
+
* tell.
|
|
20
|
+
*/
|
|
21
|
+
amount: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Its amounts are Autumn’s estimate, not an exact record.
|
|
24
|
+
*/
|
|
25
|
+
approximate: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Credits left right after it.
|
|
28
|
+
*/
|
|
29
|
+
balanceAfter: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* For usage, how many reports it groups.
|
|
32
|
+
*/
|
|
33
|
+
count: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* For a day of usage, its last use.
|
|
36
|
+
*/
|
|
37
|
+
endsAt: Temporal.Instant | null;
|
|
38
|
+
id: string;
|
|
39
|
+
/**
|
|
40
|
+
* `usage`: credits spent, one entry per UTC day; `top_up`: credits bought;
|
|
41
|
+
* `plan`: a plan's grant or change; `reset`: the plan's period renewed;
|
|
42
|
+
* `adjustment`: a change Arbol made.
|
|
43
|
+
*/
|
|
44
|
+
kind: "usage" | "top_up" | "plan" | "reset" | "adjustment";
|
|
45
|
+
/**
|
|
46
|
+
* When it happened; for a day of usage, its first use.
|
|
47
|
+
*/
|
|
48
|
+
occurredAt: Temporal.Instant;
|
|
49
|
+
}
|
|
50
|
+
export interface AccountWalletTransactionPage {
|
|
51
|
+
/**
|
|
52
|
+
* Items admitted by this resource contract within the verified organization.
|
|
53
|
+
*/
|
|
54
|
+
data: AccountWalletTransaction[];
|
|
55
|
+
/**
|
|
56
|
+
* Discriminator for a resource list response.
|
|
57
|
+
*/
|
|
58
|
+
object: "list";
|
|
59
|
+
/**
|
|
60
|
+
* Opaque navigation cursors for this page’s stable keyset order.
|
|
61
|
+
*/
|
|
62
|
+
pageInfo: PageInfo;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A successful answer.
|
|
66
|
+
*/
|
|
67
|
+
export interface AccountWalletTransactionPageResponse {
|
|
68
|
+
data: AccountWalletTransactionPage;
|
|
69
|
+
error: null;
|
|
70
|
+
/**
|
|
71
|
+
* What every answer carries besides its data or error.
|
|
72
|
+
*/
|
|
73
|
+
metadata: ResponseMetadata;
|
|
74
|
+
success: true;
|
|
75
|
+
}
|
|
76
|
+
export declare const AccountWalletTransactionCodec: import("../../_/codec.js").Codec;
|
|
77
|
+
export declare const AccountWalletTransactionPageCodec: import("../../_/codec.js").Codec;
|
|
78
|
+
export declare const AccountWalletTransactionPageResponseCodec: import("../../_/codec.js").Codec;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Code generated by forge. DO NOT EDIT.
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import { array, instant, object } from "../../_/index.js";
|
|
4
|
+
export const AccountWalletTransactionCodec = object([
|
|
5
|
+
["endsAt", null, instant],
|
|
6
|
+
["occurredAt", null, instant],
|
|
7
|
+
]);
|
|
8
|
+
export const AccountWalletTransactionPageCodec = object([
|
|
9
|
+
["data", null, array(() => AccountWalletTransactionCodec)],
|
|
10
|
+
]);
|
|
11
|
+
export const AccountWalletTransactionPageResponseCodec = object([
|
|
12
|
+
["data", null, () => AccountWalletTransactionPageCodec],
|
|
13
|
+
]);
|
|
@@ -383,6 +383,7 @@ export interface RaizAgentSettings {
|
|
|
383
383
|
} | null;
|
|
384
384
|
replyChoices: boolean | null;
|
|
385
385
|
sessionCloseAfterMinutes: number | null;
|
|
386
|
+
teamCloseAfterMinutes: number | null;
|
|
386
387
|
temperature: number | null;
|
|
387
388
|
toolDiscovery: boolean | null;
|
|
388
389
|
voice: RaizAgentVoiceSettings | null;
|
|
@@ -427,6 +428,7 @@ export interface RaizAgentSettingsInput {
|
|
|
427
428
|
} | null;
|
|
428
429
|
replyChoices?: boolean | null;
|
|
429
430
|
sessionCloseAfterMinutes?: number | null;
|
|
431
|
+
teamCloseAfterMinutes?: number | null;
|
|
430
432
|
temperature?: number | null;
|
|
431
433
|
toolDiscovery?: boolean | null;
|
|
432
434
|
voice?: RaizAgentVoiceSettings | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Empty, ForbiddenFailure, HttpsUrl, InternalFailure, InvalidInputFailure, OutcomeUnknownFailure, PageInfo, RateLimitedFailure, RequestTooLargeFailure, ResponseMetadata, UpstreamTimeoutFailure, UpstreamUnavailableFailure } from "../../models.js";
|
|
2
|
-
import { type RaizAddressInUseFailure, type RaizAgentInUseFailure, type RaizAgentModalityLockedFailure, type RaizAgentProceduresInvalidFailure, type RaizAgentSettingsInvalidFailure, type RaizAgentWorkflowInvalidFailure, type RaizBulletinLimitReachedFailure, type RaizBulletinPeriodInvalidFailure, type RaizBusinessHours, type RaizCallInProgressFailure, type RaizCampaignAgentNotReadyFailure, type RaizCampaignHeaderMissingFailure, type RaizCampaignHeaderNotStoredFailure, type RaizCampaignNoRecipientsFailure, type RaizCampaignVariableMissingFailure, type RaizChannelAgentMismatchFailure, type RaizChannelNotReadyFailure, type RaizChannelTypeMismatchFailure, type RaizContactSuppressedFailure, type RaizConversationClosedFailure, type RaizConversationNotHandedOffFailure, type RaizConversationOpenFailure, type RaizDailyReportInProgressFailure, type RaizDailyReportRecipientsMissingFailure, type RaizDefinitionNotActiveFailure, type RaizDefinitionOptionsInvalidFailure, type RaizDefinitionRetiredFailure, type RaizDefinitionTypeLockedFailure, type RaizEvalCasesUnavailableFailure, type RaizEvalGateUnmetFailure, type RaizFactSubjectMismatchFailure, type RaizFactValueInvalidFailure, type RaizFeedbackProposalUnavailableFailure, type RaizHandoffAlreadyContinuedFailure, type RaizIdentifierInUseFailure, type RaizImportFileInvalidFailure, type RaizImportFileTooLargeFailure, type RaizIntegrationProcedureUnavailableFailure, type RaizIntegrationToolUnavailableFailure, type RaizIntegrationsUnavailableFailure, type RaizInvalidCursorFailure, type RaizInvalidStateFailure, type RaizIpNetworkInvalidFailure, type RaizKeyInUseFailure, type RaizKnowledgeDocumentUnavailableFailure, type RaizKnowledgeFileInvalidFailure, type RaizKnowledgeKindMismatchFailure, type RaizPhoneNumber, type RaizProviderRejectedFailure, type RaizReplyInProgressFailure, type RaizReportFilterUnsupportedFailure, type RaizReportRangeInvalidFailure, type RaizResourceNotFoundFailure, type RaizSourceConversationOpenFailure, type RaizSuppressionExistsFailure, type RaizTaskNotRetryableFailure, type RaizTemplateHeaderMismatchFailure, type RaizTemplateHeaderRequiredFailure, type RaizTemplateNotApprovedFailure, type RaizTemplateNotFoundFailure, type RaizTemplateParametersMismatchFailure, type RaizTemplateUnsupportedFailure, type RaizTimeZoneUnknownFailure, type RaizVersionConflictFailure, type RaizVoiceAgentNotReadyFailure, type RaizVoiceUnavailableFailure, type RaizWebsiteNotApprovedFailure, type RaizWhatsappAiPausedFailure, type RaizWhatsappDeliveryFailedFailure, type RaizWhatsappMarketingStoppedFailure, type RaizWhatsappMediaRejectedFailure, type RaizWhatsappMessageUnsupportedFailure, type RaizWhatsappRateLimitedFailure, type RaizWhatsappRecipientUnavailableFailure, type RaizWhatsappWindowClosedFailure } from "../models.js";
|
|
2
|
+
import { type RaizAddressInUseFailure, type RaizAgentInUseFailure, type RaizAgentModalityLockedFailure, type RaizAgentProceduresInvalidFailure, type RaizAgentSettingsInvalidFailure, type RaizAgentWorkflowInvalidFailure, type RaizAssigneeUnavailableFailure, type RaizBulletinLimitReachedFailure, type RaizBulletinPeriodInvalidFailure, type RaizBusinessHours, type RaizCallInProgressFailure, type RaizCampaignAgentNotReadyFailure, type RaizCampaignHeaderMissingFailure, type RaizCampaignHeaderNotStoredFailure, type RaizCampaignNoRecipientsFailure, type RaizCampaignVariableMissingFailure, type RaizChannelAgentMismatchFailure, type RaizChannelNotReadyFailure, type RaizChannelTypeMismatchFailure, type RaizContactSuppressedFailure, type RaizConversationClosedFailure, type RaizConversationNotHandedOffFailure, type RaizConversationOpenFailure, type RaizDailyReportInProgressFailure, type RaizDailyReportRecipientsMissingFailure, type RaizDefinitionNotActiveFailure, type RaizDefinitionOptionsInvalidFailure, type RaizDefinitionRetiredFailure, type RaizDefinitionTypeLockedFailure, type RaizEvalCasesUnavailableFailure, type RaizEvalGateUnmetFailure, type RaizFactSubjectMismatchFailure, type RaizFactValueInvalidFailure, type RaizFeedbackProposalUnavailableFailure, type RaizHandoffAlreadyContinuedFailure, type RaizIdentifierInUseFailure, type RaizImportFileInvalidFailure, type RaizImportFileTooLargeFailure, type RaizIntegrationProcedureUnavailableFailure, type RaizIntegrationToolUnavailableFailure, type RaizIntegrationsUnavailableFailure, type RaizInvalidCursorFailure, type RaizInvalidStateFailure, type RaizIpNetworkInvalidFailure, type RaizKeyInUseFailure, type RaizKnowledgeDocumentUnavailableFailure, type RaizKnowledgeFileInvalidFailure, type RaizKnowledgeKindMismatchFailure, type RaizPhoneNumber, type RaizProviderRejectedFailure, type RaizReplyInProgressFailure, type RaizReportFilterUnsupportedFailure, type RaizReportRangeInvalidFailure, type RaizResourceNotFoundFailure, type RaizSourceConversationOpenFailure, type RaizSuppressionExistsFailure, type RaizTaskNotRetryableFailure, type RaizTeamUnavailableFailure, type RaizTemplateHeaderMismatchFailure, type RaizTemplateHeaderRequiredFailure, type RaizTemplateNotApprovedFailure, type RaizTemplateNotFoundFailure, type RaizTemplateParametersMismatchFailure, type RaizTemplateUnsupportedFailure, type RaizTimeZoneUnknownFailure, type RaizVersionConflictFailure, type RaizVoiceAgentNotReadyFailure, type RaizVoiceUnavailableFailure, type RaizWebsiteNotApprovedFailure, type RaizWhatsappAiPausedFailure, type RaizWhatsappDeliveryFailedFailure, type RaizWhatsappMarketingStoppedFailure, type RaizWhatsappMediaRejectedFailure, type RaizWhatsappMessageUnsupportedFailure, type RaizWhatsappRateLimitedFailure, type RaizWhatsappRecipientUnavailableFailure, type RaizWhatsappWindowClosedFailure } from "../models.js";
|
|
3
3
|
/**
|
|
4
4
|
* Only a text Agent can hold a web conversation; a voice Agent only with
|
|
5
5
|
* `origin: test`, to try it by text.
|
|
@@ -472,7 +472,7 @@ export interface RaizCreateChannelServiceUnavailableError {
|
|
|
472
472
|
metadata: ResponseMetadata;
|
|
473
473
|
success: false;
|
|
474
474
|
}
|
|
475
|
-
export type RaizCreateChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
475
|
+
export type RaizCreateChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizTeamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
476
476
|
/**
|
|
477
477
|
* A failed answer.
|
|
478
478
|
*/
|
|
@@ -498,7 +498,7 @@ export interface RaizCreateChannelUnprocessableContentError {
|
|
|
498
498
|
metadata: ResponseMetadata;
|
|
499
499
|
success: false;
|
|
500
500
|
}
|
|
501
|
-
export type RaizCreateChannelUnprocessableContentFailure = RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
|
|
501
|
+
export type RaizCreateChannelUnprocessableContentFailure = RaizAssigneeUnavailableFailure | RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
|
|
502
502
|
/**
|
|
503
503
|
* A failed answer.
|
|
504
504
|
*/
|
|
@@ -602,7 +602,7 @@ export interface RaizDeleteChannelServiceUnavailableError {
|
|
|
602
602
|
metadata: ResponseMetadata;
|
|
603
603
|
success: false;
|
|
604
604
|
}
|
|
605
|
-
export type RaizDeleteChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
605
|
+
export type RaizDeleteChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizTeamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
606
606
|
/**
|
|
607
607
|
* A failed answer.
|
|
608
608
|
*/
|
|
@@ -628,7 +628,7 @@ export interface RaizDeleteChannelUnprocessableContentError {
|
|
|
628
628
|
metadata: ResponseMetadata;
|
|
629
629
|
success: false;
|
|
630
630
|
}
|
|
631
|
-
export type RaizDeleteChannelUnprocessableContentFailure = RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
|
|
631
|
+
export type RaizDeleteChannelUnprocessableContentFailure = RaizAssigneeUnavailableFailure | RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
|
|
632
632
|
/**
|
|
633
633
|
* A failed answer.
|
|
634
634
|
*/
|
|
@@ -1100,7 +1100,7 @@ export interface RaizUpdateChannelServiceUnavailableError {
|
|
|
1100
1100
|
metadata: ResponseMetadata;
|
|
1101
1101
|
success: false;
|
|
1102
1102
|
}
|
|
1103
|
-
export type RaizUpdateChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
1103
|
+
export type RaizUpdateChannelServiceUnavailableFailure = UpstreamUnavailableFailure | RaizTeamUnavailableFailure | RaizCampaignHeaderNotStoredFailure | RaizVoiceUnavailableFailure | RaizFeedbackProposalUnavailableFailure | RaizIntegrationsUnavailableFailure;
|
|
1104
1104
|
/**
|
|
1105
1105
|
* A failed answer.
|
|
1106
1106
|
*/
|
|
@@ -1126,7 +1126,7 @@ export interface RaizUpdateChannelUnprocessableContentError {
|
|
|
1126
1126
|
metadata: ResponseMetadata;
|
|
1127
1127
|
success: false;
|
|
1128
1128
|
}
|
|
1129
|
-
export type RaizUpdateChannelUnprocessableContentFailure = RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
|
|
1129
|
+
export type RaizUpdateChannelUnprocessableContentFailure = RaizAssigneeUnavailableFailure | RaizContactUnreachableFailure | RaizDailyReportRecipientsMissingFailure | RaizDefinitionOptionsInvalidFailure | RaizFactSubjectMismatchFailure | RaizFactValueInvalidFailure | RaizImportFileInvalidFailure | RaizIpNetworkInvalidFailure | RaizProfileVariableMissingFailure | RaizTimeZoneUnknownFailure | RaizCampaignHeaderMissingFailure | RaizCampaignVariableMissingFailure | RaizChannelAgentMismatchFailure | RaizTemplateHeaderMismatchFailure | RaizTemplateHeaderRequiredFailure | RaizTemplateParametersMismatchFailure | RaizTemplateUnsupportedFailure | RaizWhatsappMediaRejectedFailure | RaizWhatsappMessageUnsupportedFailure | RaizWhatsappRecipientUnavailableFailure | RaizCallRejectedFailure | RaizProviderAccountUnsupportedFailure | RaizProviderCredentialsRejectedFailure | RaizVoiceNotAvailableFailure | RaizVoiceNumberNotOwnedFailure | RaizAgentProceduresInvalidFailure | RaizAgentWorkflowInvalidFailure | RaizAgentSettingsInvalidFailure | RaizBulletinPeriodInvalidFailure | RaizIntegrationProcedureUnavailableFailure | RaizIntegrationToolUnavailableFailure | RaizKnowledgeDocumentUnavailableFailure | RaizKnowledgeFileInvalidFailure | RaizKnowledgeKindMismatchFailure | RaizWebsiteNotApprovedFailure | RaizWidgetVoiceUnheardFailure | RaizProviderRejectedFailure;
|
|
1130
1130
|
export interface RaizVerifyChannelBody {
|
|
1131
1131
|
/**
|
|
1132
1132
|
* Phone number in E.164 format.
|
|
@@ -33,11 +33,12 @@ export interface Client {
|
|
|
33
33
|
* at least that many match. `averageMessageCount` and
|
|
34
34
|
* `averageDurationSeconds` are their average length. `groupBy` also divides
|
|
35
35
|
* them, largest group first, each with its outcomes: by `outcome`, `status`,
|
|
36
|
-
* `channel`, `agent`, `sentiment`, `
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
36
|
+
* `channel`, `agent`, `sentiment`, `waitingOn` (who each open conversation
|
|
37
|
+
* waits for: the AI, the team or the contact), `tool` (which Agent tools they
|
|
38
|
+
* used, and in how many a tool failed), `toolError` (why calls of `toolName`
|
|
39
|
+
* failed) or `fact:<definition key>` (such as the reason for contact). Use it
|
|
40
|
+
* to answer how many conversations match, or how they divide, instead of
|
|
41
|
+
* paging through the list; for volumes per day use `get_report`.
|
|
41
42
|
*/
|
|
42
43
|
count(request?: CountRequest, options?: RequestOptions): Promise<CountResponse>;
|
|
43
44
|
/**
|
|
@@ -55,12 +56,15 @@ export interface Client {
|
|
|
55
56
|
* (`workers`: each Agent and the team, and who answers now), title, summary,
|
|
56
57
|
* outcome, sentiment and current facts. Add `expand=messages` for the
|
|
57
58
|
* transcript, oldest first, each message with its author, the Agent's tool
|
|
58
|
-
* calls and quoted replies (continue with `messagesCursor`),
|
|
59
|
-
* `expand=recording` for a short-lived link to the call recording
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
59
|
+
* calls and quoted replies (continue with `messagesCursor`),
|
|
60
|
+
* `expand=recording` for a short-lived link to the call recording, and
|
|
61
|
+
* `expand=history` for the case's history: the handoff to the team, who took
|
|
62
|
+
* it or was given it, the return to the AI and the closing. `waitingOn` says
|
|
63
|
+
* who an open conversation waits for (the AI, the team or the contact) and
|
|
64
|
+
* `assigneeId` who has its case. Staff may also request `expand=diagnostics`
|
|
65
|
+
* for bounded live call-termination evidence; this additionally requires
|
|
66
|
+
* raiz:staff:operate and never changes the conversation. The
|
|
67
|
+
* `review-conversation` skill explains how to read and summarize one.
|
|
64
68
|
*/
|
|
65
69
|
get(request: GetRequest, options?: RequestOptions): Promise<GetResponse>;
|
|
66
70
|
/**
|
|
@@ -70,23 +74,26 @@ export interface Client {
|
|
|
70
74
|
* counterpart or subject), `agentId`, `channelId`, `channelType`, `status`,
|
|
71
75
|
* `conversationDirection`, `origin`, `outcome`, `sentiment`, `handling` (`ai`
|
|
72
76
|
* or `team`: whether the AI takes part; `escalated`: handed to the team by
|
|
73
|
-
* the AI), `worker` (`ai` or `team`: who answers it now),
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
* `
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
* `
|
|
77
|
+
* the AI), `worker` (`ai` or `team`: who answers it now), `waitingOn` (`ai`,
|
|
78
|
+
* `team` or `contact`: who an open conversation waits for; `team` lists the
|
|
79
|
+
* cases a person has to answer), `assignee` (a member id, `me` or `none`:
|
|
80
|
+
* whose case it is), `unattended` (closed with a handoff nobody of the team
|
|
81
|
+
* answered), the Agent's tools (`toolName`, `toolStatus`: which tool it
|
|
82
|
+
* called and how the call ended), a captured fact (`factDefinition`,
|
|
83
|
+
* `factValue`), `assessment` (`failed` or `passed`), `toReview` (evaluated
|
|
84
|
+
* failures or unresolved handoffs; explicitly resolved successes leave this
|
|
85
|
+
* queue), length (`messagesMin`, `messagesMax`, `durationMin`,
|
|
86
|
+
* `durationMax`), `campaignId`, `profileId`, `requestedBy` and start time
|
|
87
|
+
* (`startedAfter`, `startedBefore`); `q` searches participant identities
|
|
88
|
+
* (names, profile names, usernames, phones, emails and documents), visible
|
|
89
|
+
* messages, titles, summaries and exact conversation references;
|
|
90
|
+
* `count_conversations` counts every match. Each item already carries its
|
|
91
|
+
* title, summary, outcome, sentiment, workers and tool calls (how many, how
|
|
92
|
+
* many failed, the latest failure), often enough to answer. `sort`: `started`
|
|
93
|
+
* (newest first), `last_message` (latest activity first) or `changed`, the
|
|
94
|
+
* feed of status, outcome and analysis changes, oldest first, that systems
|
|
95
|
+
* poll from a saved `pageInfo.nextCursor` (a deleted conversation appears
|
|
96
|
+
* once with `deletedAt`). Next: `get_conversation` for a transcript.
|
|
90
97
|
*/
|
|
91
98
|
list(request?: ListRequest, options?: RequestOptions): Promise<ListResponse>;
|
|
92
99
|
/**
|
|
@@ -108,16 +115,19 @@ export interface Client {
|
|
|
108
115
|
/**
|
|
109
116
|
* Update a conversation
|
|
110
117
|
*
|
|
111
|
-
* Change a conversation's title, summary, metadata, contact or subject,
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
118
|
+
* Change a conversation's title, summary, metadata, contact or subject, give
|
|
119
|
+
* its case to a person of the organization (`assigneeId`: a member id from
|
|
120
|
+
* `listAssignees`, `me`, or `null` for nobody; its new owner is told by
|
|
121
|
+
* email), or close it (`status: closed`), which starts its analysis. A title
|
|
122
|
+
* or summary written here always wins over the generated one. A call closes
|
|
123
|
+
* by itself (CALL_IN_PROGRESS); a web chat cannot close while the Agent is
|
|
124
|
+
* replying (REPLY_IN_PROGRESS, retry shortly). On WhatsApp, `aiEnabled`
|
|
125
|
+
* activates or pauses AI only for this open conversation and leaves future
|
|
126
|
+
* episodes unchanged; `aiPaused` pauses or resumes the Agent for this person
|
|
127
|
+
* until their open conversation closes (one a person handles closes by itself
|
|
128
|
+
* after the Agent's `teamCloseAfterMinutes` without messages). Activating or
|
|
129
|
+
* resuming answers what the contact wrote after the last real answer, the
|
|
130
|
+
* team's or the Agent's (a wait notice is not one).
|
|
121
131
|
*/
|
|
122
132
|
update(request: UpdateRequest, options?: RequestOptions): Promise<UpdateResponse>;
|
|
123
133
|
}
|
|
@@ -178,6 +188,23 @@ export interface CountRequest {
|
|
|
178
188
|
* then handed to people is `team` while open.
|
|
179
189
|
*/
|
|
180
190
|
worker?: "ai" | "team";
|
|
191
|
+
/**
|
|
192
|
+
* Open conversations by who they wait for, as each conversation's `waitingOn`
|
|
193
|
+
* says: `ai`, `team` (the team's cases to answer) or `contact`. Closed
|
|
194
|
+
* conversations never match.
|
|
195
|
+
*/
|
|
196
|
+
waitingOn?: "ai" | "team" | "contact";
|
|
197
|
+
/**
|
|
198
|
+
* Conversations by the case's owner: a member id, `me` (the person calling)
|
|
199
|
+
* or `none` (nobody has it). With `waitingOn=team`: one person's cases to
|
|
200
|
+
* answer, or the ones nobody took.
|
|
201
|
+
*/
|
|
202
|
+
assignee?: string;
|
|
203
|
+
/**
|
|
204
|
+
* `true`: conversations that closed for inactivity with a handoff nobody of
|
|
205
|
+
* the team answered.
|
|
206
|
+
*/
|
|
207
|
+
unattended?: boolean;
|
|
181
208
|
/**
|
|
182
209
|
* Comma-separated origins.
|
|
183
210
|
*/
|
|
@@ -284,11 +311,12 @@ export interface CountRequest {
|
|
|
284
311
|
*/
|
|
285
312
|
durationMax?: number;
|
|
286
313
|
/**
|
|
287
|
-
* `outcome`, `status`, `channel` (type), `agent`, `sentiment`, `
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
314
|
+
* `outcome`, `status`, `channel` (type), `agent`, `sentiment`, `waitingOn`
|
|
315
|
+
* (who each open conversation waits for: `ai`, `team` or `contact`; null for
|
|
316
|
+
* the closed ones), `tool` (each Agent tool and the conversations that used
|
|
317
|
+
* it; null for those that used none), `toolError` (failed calls, of
|
|
318
|
+
* `toolName` when given, by error) or `fact:<definition key>` (the current
|
|
319
|
+
* value of that definition, such as the reason for contact).
|
|
292
320
|
*/
|
|
293
321
|
groupBy?: string;
|
|
294
322
|
}
|
|
@@ -307,7 +335,7 @@ export interface GetRequest {
|
|
|
307
335
|
conversationId: string;
|
|
308
336
|
/**
|
|
309
337
|
* Related data to include, comma-separated: `messages`, `recording`,
|
|
310
|
-
* `diagnostics`.
|
|
338
|
+
* `diagnostics`, `history`.
|
|
311
339
|
*/
|
|
312
340
|
expand?: string;
|
|
313
341
|
/**
|
|
@@ -386,6 +414,23 @@ export interface ListRequest {
|
|
|
386
414
|
* then handed to people is `team` while open.
|
|
387
415
|
*/
|
|
388
416
|
worker?: "ai" | "team";
|
|
417
|
+
/**
|
|
418
|
+
* Open conversations by who they wait for, as each conversation's `waitingOn`
|
|
419
|
+
* says: `ai`, `team` (the team's cases to answer) or `contact`. Closed
|
|
420
|
+
* conversations never match.
|
|
421
|
+
*/
|
|
422
|
+
waitingOn?: "ai" | "team" | "contact";
|
|
423
|
+
/**
|
|
424
|
+
* Conversations by the case's owner: a member id, `me` (the person calling)
|
|
425
|
+
* or `none` (nobody has it). With `waitingOn=team`: one person's cases to
|
|
426
|
+
* answer, or the ones nobody took.
|
|
427
|
+
*/
|
|
428
|
+
assignee?: string;
|
|
429
|
+
/**
|
|
430
|
+
* `true`: conversations that closed for inactivity with a handoff nobody of
|
|
431
|
+
* the team answered.
|
|
432
|
+
*/
|
|
433
|
+
unattended?: boolean;
|
|
389
434
|
/**
|
|
390
435
|
* Comma-separated origins.
|
|
391
436
|
*/
|
|
@@ -27,7 +27,7 @@ const ContinueOperation = {
|
|
|
27
27
|
const CountOperation = {
|
|
28
28
|
method: "GET",
|
|
29
29
|
route: "/v1/raiz/conversations/count",
|
|
30
|
-
query: { agentId: "agentId", campaignId: "campaignId", channelId: "channelId", channelType: "channelType", contactId: "contactId", conversationDirection: "conversationDirection", handling: "handling", worker: "worker", origin: "origin", outcome: "outcome", metadataReference: "metadataReference", profileId: "profileId", q: "q", requestedBy: "requestedBy", startedAfter: "startedAfter", startedBefore: "startedBefore", status: "status", period: "period", sentiment: "sentiment", toolName: "toolName", toolStatus: "toolStatus", factDefinition: "factDefinition", factValue: "factValue", assessment: "assessment", toReview: "toReview", messagesMin: "messagesMin", messagesMax: "messagesMax", durationMin: "durationMin", durationMax: "durationMax", groupBy: "groupBy" },
|
|
30
|
+
query: { agentId: "agentId", campaignId: "campaignId", channelId: "channelId", channelType: "channelType", contactId: "contactId", conversationDirection: "conversationDirection", handling: "handling", worker: "worker", waitingOn: "waitingOn", assignee: "assignee", unattended: "unattended", origin: "origin", outcome: "outcome", metadataReference: "metadataReference", profileId: "profileId", q: "q", requestedBy: "requestedBy", startedAfter: "startedAfter", startedBefore: "startedBefore", status: "status", period: "period", sentiment: "sentiment", toolName: "toolName", toolStatus: "toolStatus", factDefinition: "factDefinition", factValue: "factValue", assessment: "assessment", toReview: "toReview", messagesMin: "messagesMin", messagesMax: "messagesMax", durationMin: "durationMin", durationMax: "durationMax", groupBy: "groupBy" },
|
|
31
31
|
response: null,
|
|
32
32
|
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
33
33
|
};
|
|
@@ -47,7 +47,7 @@ const GetOperation = {
|
|
|
47
47
|
const ListOperation = {
|
|
48
48
|
method: "GET",
|
|
49
49
|
route: "/v1/raiz/conversations",
|
|
50
|
-
query: { cursor: "cursor", direction: "direction", limit: "limit", agentId: "agentId", campaignId: "campaignId", channelId: "channelId", channelType: "channelType", contactId: "contactId", conversationDirection: "conversationDirection", handling: "handling", worker: "worker", origin: "origin", outcome: "outcome", metadataReference: "metadataReference", profileId: "profileId", q: "q", requestedBy: "requestedBy", startedAfter: "startedAfter", startedBefore: "startedBefore", status: "status", period: "period", sentiment: "sentiment", toolName: "toolName", toolStatus: "toolStatus", factDefinition: "factDefinition", factValue: "factValue", assessment: "assessment", toReview: "toReview", messagesMin: "messagesMin", messagesMax: "messagesMax", durationMin: "durationMin", durationMax: "durationMax", sort: "sort" },
|
|
50
|
+
query: { cursor: "cursor", direction: "direction", limit: "limit", agentId: "agentId", campaignId: "campaignId", channelId: "channelId", channelType: "channelType", contactId: "contactId", conversationDirection: "conversationDirection", handling: "handling", worker: "worker", waitingOn: "waitingOn", assignee: "assignee", unattended: "unattended", origin: "origin", outcome: "outcome", metadataReference: "metadataReference", profileId: "profileId", q: "q", requestedBy: "requestedBy", startedAfter: "startedAfter", startedBefore: "startedBefore", status: "status", period: "period", sentiment: "sentiment", toolName: "toolName", toolStatus: "toolStatus", factDefinition: "factDefinition", factValue: "factValue", assessment: "assessment", toReview: "toReview", messagesMin: "messagesMin", messagesMax: "messagesMax", durationMin: "durationMin", durationMax: "durationMax", sort: "sort" },
|
|
51
51
|
response: RaizConversationPageResponseCodec,
|
|
52
52
|
errors: { "400": true, "401": true, "403": true, "429": true, "500": true, "502": true, "503": true, "504": true },
|
|
53
53
|
};
|
|
@@ -64,5 +64,5 @@ const UpdateOperation = {
|
|
|
64
64
|
route: "/v1/raiz/conversations/{conversationId}",
|
|
65
65
|
body: "flat",
|
|
66
66
|
response: RaizConversationResponseCodec,
|
|
67
|
-
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 },
|
|
67
|
+
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 },
|
|
68
68
|
};
|
|
@@ -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, ContinueRequest, ContinueResponse, CountRequest, CountResponse, DeleteRequest, DeleteResponse, GetRequest, GetResponse, ListRequest, ListResponse, SendRequest, SendResponse, UpdateRequest, UpdateResponse, } from "./client.js";
|
|
5
|
-
export type { RaizContinueConversationBadRequestError, RaizContinueConversationBadRequestFailure, RaizContinueConversationBody, RaizContinueConversationConflictError, RaizContinueConversationConflictFailure, RaizContinueConversationNotFoundError, RaizContinueConversationNotFoundFailure, RaizContinueConversationServiceUnavailableError, RaizContinueConversationServiceUnavailableFailure, RaizContinueConversationUnprocessableContentError, RaizContinueConversationUnprocessableContentFailure, RaizConversation, RaizConversationCount, RaizConversationCountResponse, RaizConversationDiagnostics, RaizConversationGroup, RaizConversationOutcomeCounts, RaizConversationPage, RaizConversationPageResponse, RaizConversationResponse, RaizConversationToolCalls, RaizConversationToolFailure, RaizConversationWorker, RaizCountConversationsServiceUnavailableError, RaizCountConversationsServiceUnavailableFailure, RaizDeleteConversationConflictError, RaizDeleteConversationConflictFailure, RaizGetConversationBadRequestError, RaizGetConversationBadRequestFailure, RaizGetConversationServiceUnavailableError, RaizGetConversationServiceUnavailableFailure, RaizListConversationsBadRequestError, RaizListConversationsBadRequestFailure, RaizListConversationsServiceUnavailableError, RaizListConversationsServiceUnavailableFailure, RaizMessage, RaizMessagePage, RaizMessageResponse, RaizSendMessageBadGatewayError, RaizSendMessageBadGatewayFailure, RaizSendMessageBody, RaizSendMessageConflictError, RaizSendMessageConflictFailure, RaizSendMessageNotFoundError, RaizSendMessageNotFoundFailure, RaizSendMessageTooManyRequestsError, RaizSendMessageTooManyRequestsFailure, RaizSendMessageUnprocessableContentError, RaizSendMessageUnprocessableContentFailure, RaizUpdateConversationBadRequestError, RaizUpdateConversationBadRequestFailure, RaizUpdateConversationBody, RaizUpdateConversationConflictError, RaizUpdateConversationConflictFailure, RaizUpdateConversationServiceUnavailableError, RaizUpdateConversationServiceUnavailableFailure, } from "./models.js";
|
|
5
|
+
export type { RaizAssigneeUnavailableError, RaizContinueConversationBadRequestError, RaizContinueConversationBadRequestFailure, RaizContinueConversationBody, RaizContinueConversationConflictError, RaizContinueConversationConflictFailure, RaizContinueConversationNotFoundError, RaizContinueConversationNotFoundFailure, RaizContinueConversationServiceUnavailableError, RaizContinueConversationServiceUnavailableFailure, RaizContinueConversationUnprocessableContentError, RaizContinueConversationUnprocessableContentFailure, RaizConversation, RaizConversationCount, RaizConversationCountResponse, RaizConversationDiagnostics, RaizConversationEvent, RaizConversationGroup, RaizConversationOutcomeCounts, RaizConversationPage, RaizConversationPageResponse, RaizConversationResponse, RaizConversationToolCalls, RaizConversationToolFailure, RaizConversationWorker, RaizCountConversationsServiceUnavailableError, RaizCountConversationsServiceUnavailableFailure, RaizDeleteConversationConflictError, RaizDeleteConversationConflictFailure, RaizGetConversationBadRequestError, RaizGetConversationBadRequestFailure, RaizGetConversationServiceUnavailableError, RaizGetConversationServiceUnavailableFailure, RaizListConversationsBadRequestError, RaizListConversationsBadRequestFailure, RaizListConversationsServiceUnavailableError, RaizListConversationsServiceUnavailableFailure, RaizMessage, RaizMessagePage, RaizMessageResponse, RaizSendMessageBadGatewayError, RaizSendMessageBadGatewayFailure, RaizSendMessageBody, RaizSendMessageConflictError, RaizSendMessageConflictFailure, RaizSendMessageNotFoundError, RaizSendMessageNotFoundFailure, RaizSendMessageTooManyRequestsError, RaizSendMessageTooManyRequestsFailure, RaizSendMessageUnprocessableContentError, RaizSendMessageUnprocessableContentFailure, RaizUpdateConversationBadRequestError, RaizUpdateConversationBadRequestFailure, RaizUpdateConversationBody, RaizUpdateConversationConflictError, RaizUpdateConversationConflictFailure, RaizUpdateConversationServiceUnavailableError, RaizUpdateConversationServiceUnavailableFailure, } from "./models.js";
|