@arbol-ai/sdk 5.27.0 → 5.29.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.
@@ -797,12 +797,19 @@ export interface AgendaFailureResponse {
797
797
  };
798
798
  message: "Report settings changed; reload before saving.";
799
799
  retryable: false;
800
+ } | {
801
+ code: "REPORT_NOTIFICATIONS_DISABLED";
802
+ data: {
803
+ [key: string]: unknown;
804
+ };
805
+ message: "Enable the notifications module before sending a daily agenda.";
806
+ retryable: false;
800
807
  } | {
801
808
  code: "REPORT_RECIPIENTS_REQUIRED";
802
809
  data: {
803
810
  [key: string]: unknown;
804
811
  };
805
- message: "Give or save at least one recipient before sending the daily agenda.";
812
+ message: "No eligible organization owner or additional delivery address is available for this agenda.";
806
813
  retryable: false;
807
814
  } | {
808
815
  code: "WAITLIST_ENTRY_VERSION_MISMATCH";
@@ -839,6 +846,111 @@ export interface AgendaFailureResponse {
839
846
  };
840
847
  message: "The integration service rejected this request. Review its configuration.";
841
848
  retryable: false;
849
+ } | {
850
+ code: "FOLLOWUP_SETTINGS_VERSION_MISMATCH";
851
+ data: {
852
+ [key: string]: unknown;
853
+ };
854
+ message: "Follow-up email settings changed; reload before saving.";
855
+ retryable: false;
856
+ } | {
857
+ code: "FOLLOWUP_DISABLED";
858
+ data: {
859
+ [key: string]: unknown;
860
+ };
861
+ message: "Turn this follow-up email on in the notification settings first.";
862
+ retryable: false;
863
+ } | {
864
+ code: "FOLLOWUP_CONSENT_REQUIRED";
865
+ data: {
866
+ [key: string]: unknown;
867
+ };
868
+ message: "The patient has not consented to this follow-up email for their current address.";
869
+ retryable: false;
870
+ } | {
871
+ code: "PATIENT_EMAIL_REQUIRED";
872
+ data: {
873
+ [key: string]: unknown;
874
+ };
875
+ message: "Record the patient's email before this action.";
876
+ retryable: false;
877
+ } | {
878
+ code: "PATIENT_ARCHIVED";
879
+ data: {
880
+ [key: string]: unknown;
881
+ };
882
+ message: "Restore the patient before this action.";
883
+ retryable: false;
884
+ } | {
885
+ code: "RECALL_ALREADY_ACTIVE";
886
+ data: {
887
+ [key: string]: unknown;
888
+ };
889
+ message: "The patient already has an active recall for this service.";
890
+ retryable: false;
891
+ } | {
892
+ code: "RECALL_MONTH_PASSED";
893
+ data: {
894
+ [key: string]: unknown;
895
+ };
896
+ message: "The recall's month has already passed.";
897
+ retryable: false;
898
+ } | {
899
+ code: "RECALL_VISIT_REQUIRED";
900
+ data: {
901
+ [key: string]: unknown;
902
+ };
903
+ message: "Enter the last visit: there is no attended appointment of this service for the patient.";
904
+ retryable: false;
905
+ } | {
906
+ code: "RECALL_VISIT_IN_FUTURE";
907
+ data: {
908
+ [key: string]: unknown;
909
+ };
910
+ message: "The last visit must be a past date.";
911
+ retryable: false;
912
+ } | {
913
+ code: "RECALL_VERSION_MISMATCH";
914
+ data: {
915
+ [key: string]: unknown;
916
+ };
917
+ message: "The recall changed after it was loaded.";
918
+ retryable: false;
919
+ } | {
920
+ code: "SLOT_OFFER_NOT_ALLOWED";
921
+ data: {
922
+ [key: string]: unknown;
923
+ };
924
+ message: "Only an open waiting-list entry of a registered patient can receive a slot offer.";
925
+ retryable: false;
926
+ } | {
927
+ code: "SLOT_OFFER_MISMATCH";
928
+ data: {
929
+ [key: string]: unknown;
930
+ };
931
+ message: "The slot belongs to another service or agenda than the entry asks for.";
932
+ retryable: false;
933
+ } | {
934
+ code: "SLOT_OFFER_TOO_SOON";
935
+ data: {
936
+ [key: string]: unknown;
937
+ };
938
+ message: "The slot starts too soon to hold it for the patient; offer a later one.";
939
+ retryable: false;
940
+ } | {
941
+ code: "SLOT_OFFER_ALREADY_OPEN";
942
+ data: {
943
+ [key: string]: unknown;
944
+ };
945
+ message: "This waiting-list entry already has an open slot offer.";
946
+ retryable: false;
947
+ } | {
948
+ code: "SLOT_OFFER_CLOSED";
949
+ data: {
950
+ [key: string]: unknown;
951
+ };
952
+ message: "The slot offer is no longer open.";
953
+ retryable: false;
842
954
  });
843
955
  metadata: AgendaResponseMetadata;
844
956
  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,19 +14,21 @@ 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
  /**
24
25
  * Send the daily report now
25
26
  *
26
- * Email the daily report now to the recipients in `settings.dailyReport`,
27
- * whether or not it goes out by itself each day: the calls and conversations
28
- * registered in the last 24 hours, the conversations waiting for the team and
29
- * those that need a review. It arrives within a minute. Fails with
27
+ * Email the daily report now to the workspace owners with product access and
28
+ * the additional recipients in `settings.dailyReport`, whether or not it goes
29
+ * out by itself each day: the calls and conversations registered in the last
30
+ * 24 hours, the conversations waiting for the team and those that need a
31
+ * review. It arrives within a minute. Fails with
30
32
  * DAILY_REPORT_RECIPIENTS_MISSING when the report has no recipients, and
31
33
  * DAILY_REPORT_IN_PROGRESS while a report asked for earlier is still on its
32
34
  * way.
@@ -93,9 +95,15 @@ export interface UpdateRequest {
93
95
  escalations?: boolean | null;
94
96
  failedOutcomes?: boolean | null;
95
97
  failures?: boolean | null;
98
+ frequency?: "immediate" | "hourly" | "every3Hours" | "every6Hours" | "every12Hours" | null;
96
99
  phones?: string[] | null;
97
100
  recipients?: RaizEmailAddress[] | null;
98
101
  };
102
+ productNotices?: {
103
+ administrators?: RaizEmailAddress[] | null;
104
+ 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;
105
+ recipients?: RaizEmailAddress[] | null;
106
+ };
99
107
  whatsapp?: {
100
108
  maxConcurrentReplies?: number | null;
101
109
  };
@@ -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.29.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.20261103.4925",
61
+ "sha256": "1b8418752d9fdb3ac6d5455a90e7e5b36b1b0d832459c350a49048d1cb3ae626"
62
62
  }
63
63
  }
64
64
  }