@arbol-ai/sdk 5.27.0 → 5.28.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.
@@ -839,6 +839,111 @@ export interface AgendaFailureResponse {
839
839
  };
840
840
  message: "The integration service rejected this request. Review its configuration.";
841
841
  retryable: false;
842
+ } | {
843
+ code: "FOLLOWUP_SETTINGS_VERSION_MISMATCH";
844
+ data: {
845
+ [key: string]: unknown;
846
+ };
847
+ message: "Follow-up email settings changed; reload before saving.";
848
+ retryable: false;
849
+ } | {
850
+ code: "FOLLOWUP_DISABLED";
851
+ data: {
852
+ [key: string]: unknown;
853
+ };
854
+ message: "Turn this follow-up email on in the notification settings first.";
855
+ retryable: false;
856
+ } | {
857
+ code: "FOLLOWUP_CONSENT_REQUIRED";
858
+ data: {
859
+ [key: string]: unknown;
860
+ };
861
+ message: "The patient has not consented to this follow-up email for their current address.";
862
+ retryable: false;
863
+ } | {
864
+ code: "PATIENT_EMAIL_REQUIRED";
865
+ data: {
866
+ [key: string]: unknown;
867
+ };
868
+ message: "Record the patient's email before this action.";
869
+ retryable: false;
870
+ } | {
871
+ code: "PATIENT_ARCHIVED";
872
+ data: {
873
+ [key: string]: unknown;
874
+ };
875
+ message: "Restore the patient before this action.";
876
+ retryable: false;
877
+ } | {
878
+ code: "RECALL_ALREADY_ACTIVE";
879
+ data: {
880
+ [key: string]: unknown;
881
+ };
882
+ message: "The patient already has an active recall for this service.";
883
+ retryable: false;
884
+ } | {
885
+ code: "RECALL_MONTH_PASSED";
886
+ data: {
887
+ [key: string]: unknown;
888
+ };
889
+ message: "The recall's month has already passed.";
890
+ retryable: false;
891
+ } | {
892
+ code: "RECALL_VISIT_REQUIRED";
893
+ data: {
894
+ [key: string]: unknown;
895
+ };
896
+ message: "Enter the last visit: there is no attended appointment of this service for the patient.";
897
+ retryable: false;
898
+ } | {
899
+ code: "RECALL_VISIT_IN_FUTURE";
900
+ data: {
901
+ [key: string]: unknown;
902
+ };
903
+ message: "The last visit must be a past date.";
904
+ retryable: false;
905
+ } | {
906
+ code: "RECALL_VERSION_MISMATCH";
907
+ data: {
908
+ [key: string]: unknown;
909
+ };
910
+ message: "The recall changed after it was loaded.";
911
+ retryable: false;
912
+ } | {
913
+ code: "SLOT_OFFER_NOT_ALLOWED";
914
+ data: {
915
+ [key: string]: unknown;
916
+ };
917
+ message: "Only an open waiting-list entry of a registered patient can receive a slot offer.";
918
+ retryable: false;
919
+ } | {
920
+ code: "SLOT_OFFER_MISMATCH";
921
+ data: {
922
+ [key: string]: unknown;
923
+ };
924
+ message: "The slot belongs to another service or agenda than the entry asks for.";
925
+ retryable: false;
926
+ } | {
927
+ code: "SLOT_OFFER_TOO_SOON";
928
+ data: {
929
+ [key: string]: unknown;
930
+ };
931
+ message: "The slot starts too soon to hold it for the patient; offer a later one.";
932
+ retryable: false;
933
+ } | {
934
+ code: "SLOT_OFFER_ALREADY_OPEN";
935
+ data: {
936
+ [key: string]: unknown;
937
+ };
938
+ message: "This waiting-list entry already has an open slot offer.";
939
+ retryable: false;
940
+ } | {
941
+ code: "SLOT_OFFER_CLOSED";
942
+ data: {
943
+ [key: string]: unknown;
944
+ };
945
+ message: "The slot offer is no longer open.";
946
+ retryable: false;
842
947
  });
843
948
  metadata: AgendaResponseMetadata;
844
949
  success: false;
@@ -272,9 +272,10 @@ export interface CountRequest {
272
272
  durationMax?: number;
273
273
  /**
274
274
  * `outcome`, `status`, `channel` (type), `agent`, `sentiment`, `tool` (each
275
- * Agent tool and the conversations that used it), `toolError` (failed calls,
276
- * of `toolName` when given, by error) or `fact:<definition key>` (the current
277
- * value of that definition, such as the reason for contact).
275
+ * Agent tool and the conversations that used it; null for those that used
276
+ * none), `toolError` (failed calls, of `toolName` when given, by error) or
277
+ * `fact:<definition key>` (the current value of that definition, such as the
278
+ * reason for contact).
278
279
  */
279
280
  groupBy?: string;
280
281
  }
@@ -14,10 +14,11 @@ export interface Client {
14
14
  * Read your organization: name, default language and time zone, deployment
15
15
  * capabilities, and the settings in effect (defaults included), such as how
16
16
  * many outbound calls may run at once, who is emailed when the AI escalates a
17
- * conversation or fails in it, and the daily report.
18
- * capabilities.managedVoiceOutbound reports whether the shared outbound line
19
- * is configured; settings.channels.managedVoiceOutboundEnabled is the
20
- * organization's separate permission to use it.
17
+ * conversation or fails in it and how often (each notice at once, or a digest
18
+ * every few hours), and the daily report. capabilities.managedVoiceOutbound
19
+ * reports whether the shared outbound line is configured;
20
+ * settings.channels.managedVoiceOutboundEnabled is the organization's
21
+ * separate permission to use it.
21
22
  */
22
23
  get(request?: GetRequest, options?: RequestOptions): Promise<GetResponse>;
23
24
  /**
@@ -93,9 +94,15 @@ export interface UpdateRequest {
93
94
  escalations?: boolean | null;
94
95
  failedOutcomes?: boolean | null;
95
96
  failures?: boolean | null;
97
+ frequency?: "immediate" | "hourly" | "every3Hours" | "every6Hours" | "every12Hours" | null;
96
98
  phones?: string[] | null;
97
99
  recipients?: RaizEmailAddress[] | null;
98
100
  };
101
+ productNotices?: {
102
+ administrators?: RaizEmailAddress[] | null;
103
+ events?: ("agent-idle" | "agent-live" | "budget-reached" | "budget-warning" | "campaign-finished" | "channel-disconnected" | "channel-limit" | "channel-quality" | "channel-restored" | "import-finished" | "knowledge-failed" | "milestone" | "monthly-summary" | "outage-resolved" | "template-approved" | "template-rejected" | "weekly-summary")[] | null;
104
+ recipients?: RaizEmailAddress[] | null;
105
+ };
99
106
  whatsapp?: {
100
107
  maxConcurrentReplies?: number | null;
101
108
  };
@@ -31,9 +31,15 @@ export interface RaizOrganization {
31
31
  escalations: boolean;
32
32
  failedOutcomes: boolean;
33
33
  failures: boolean;
34
+ frequency: "immediate" | "hourly" | "every3Hours" | "every6Hours" | "every12Hours";
34
35
  phones: string[];
35
36
  recipients: RaizEmailAddress[];
36
37
  };
38
+ productNotices?: {
39
+ administrators: RaizEmailAddress[];
40
+ events: ("agent-idle" | "agent-live" | "budget-reached" | "budget-warning" | "campaign-finished" | "channel-disconnected" | "channel-limit" | "channel-quality" | "channel-restored" | "import-finished" | "knowledge-failed" | "milestone" | "monthly-summary" | "outage-resolved" | "template-approved" | "template-rejected" | "weekly-summary")[];
41
+ recipients: RaizEmailAddress[];
42
+ };
37
43
  whatsapp: {
38
44
  maxConcurrentReplies: number;
39
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arbol-ai/sdk",
3
- "version": "5.27.0",
3
+ "version": "5.28.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",
@@ -57,8 +57,8 @@
57
57
  "packageManager": "bun@1.4.3",
58
58
  "arbol": {
59
59
  "openapi": {
60
- "release": "1.20261102.183956",
61
- "sha256": "42351c707ecd4270d4b1367bc2df45cd70c7c7e2a87b509dcf0f86fc066a82f4"
60
+ "release": "1.20261102.184552",
61
+ "sha256": "e34650b3a648f26a1dde140e596839fe84e6e50dc89b5dc1d3a16ee2fd65ea24"
62
62
  }
63
63
  }
64
64
  }