getricky 0.1.33 → 0.1.34

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.
@@ -1035,7 +1035,7 @@ export type AgentOptions = {
1035
1035
  */
1036
1036
  description: string;
1037
1037
  /**
1038
- * Integration it belongs to; it works only once the organization connects it in Ricky. `human_handoff` needs no connection but requires `handoff_user_ids`.
1038
+ * Integration it belongs to; it works only once the organization connects it in Ricky. `human_handoff` needs no connection but requires `handoff_user_ids`; `conversation_close` needs nothing.
1039
1039
  */
1040
1040
  family: string;
1041
1041
  }>;
@@ -3320,11 +3320,15 @@ export type Workflow = {
3320
3320
  /**
3321
3321
  * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
3322
3322
  */
3323
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'call_received';
3323
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
3324
3324
  /**
3325
3325
  * Channels it listens to. See `GET /channels`.
3326
3326
  */
3327
3327
  channel_ids: Array<string>;
3328
+ /**
3329
+ * For team_message_unanswered: seconds since the latest team reply. Requires a single close_conversation step.
3330
+ */
3331
+ inactivity_seconds?: number;
3328
3332
  /**
3329
3333
  * Which messages a `message_received` workflow reacts to.
3330
3334
  */
@@ -3576,7 +3580,7 @@ export type Workflow = {
3576
3580
  timezone: string;
3577
3581
  };
3578
3582
  /**
3579
- * Who it messages: Odoo appointments or birthdays from Odoo or GesDen.
3583
+ * Who it messages: Odoo or GesDen appointments, or birthdays from Odoo or GesDen.
3580
3584
  */
3581
3585
  source: {
3582
3586
  kind: 'odoo_appointments';
@@ -3588,11 +3592,25 @@ export type Workflow = {
3588
3592
  * Odoo appointment states it reminds; null for every state.
3589
3593
  */
3590
3594
  appointment_states: Array<string> | null;
3595
+ } | {
3596
+ kind: 'gesden_appointments';
3597
+ /**
3598
+ * Days before the appointment it reminds.
3599
+ */
3600
+ days_ahead: number;
3601
+ /**
3602
+ * GesDen appointment states it reminds, by their GesDen id.
3603
+ */
3604
+ appointment_states: Array<string>;
3591
3605
  } | {
3592
3606
  kind: 'odoo_birthdays';
3593
3607
  } | {
3594
3608
  kind: 'gesden_birthdays';
3595
3609
  };
3610
+ /**
3611
+ * Close only when this send opened the conversation and no later message arrived.
3612
+ */
3613
+ close_after_send?: boolean;
3596
3614
  template: {
3597
3615
  /**
3598
3616
  * WhatsApp channel it sends from.
@@ -4950,11 +4968,15 @@ export type CreateWorkflow = {
4950
4968
  /**
4951
4969
  * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
4952
4970
  */
4953
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'call_received';
4971
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
4954
4972
  /**
4955
4973
  * Channels it listens to. See `GET /channels`.
4956
4974
  */
4957
4975
  channel_ids: Array<string>;
4976
+ /**
4977
+ * For team_message_unanswered: seconds since the latest team reply. Requires a single close_conversation step.
4978
+ */
4979
+ inactivity_seconds?: number;
4958
4980
  /**
4959
4981
  * Which messages a `message_received` workflow reacts to.
4960
4982
  */
@@ -5210,11 +5232,15 @@ export type UpdateWorkflow = {
5210
5232
  /**
5211
5233
  * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
5212
5234
  */
5213
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'call_received';
5235
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
5214
5236
  /**
5215
5237
  * Channels it listens to. See `GET /channels`.
5216
5238
  */
5217
5239
  channel_ids: Array<string>;
5240
+ /**
5241
+ * For team_message_unanswered: seconds since the latest team reply. Requires a single close_conversation step.
5242
+ */
5243
+ inactivity_seconds?: number;
5218
5244
  /**
5219
5245
  * Which messages a `message_received` workflow reacts to.
5220
5246
  */
@@ -6364,6 +6390,10 @@ export type ListConversationsData = {
6364
6390
  * `true`: only conversations with a handoff to a person not resolved yet.
6365
6391
  */
6366
6392
  pending_handoff?: 'true' | 'false';
6393
+ /**
6394
+ * `true`: only conversations waiting for the team's reply: open, with the contact's message as the latest one that asks or answers (a reaction does neither). The conversations `GET /reports/dashboard` counts in `awaiting_reply`.
6395
+ */
6396
+ awaiting_reply?: 'true' | 'false';
6367
6397
  /**
6368
6398
  * `customer`: only conversations whose latest message came from the contact.
6369
6399
  */
@@ -1035,7 +1035,7 @@ export type AgentOptions = {
1035
1035
  */
1036
1036
  description: string;
1037
1037
  /**
1038
- * Integration it belongs to; it works only once the organization connects it in Ricky. `human_handoff` needs no connection but requires `handoff_user_ids`.
1038
+ * Integration it belongs to; it works only once the organization connects it in Ricky. `human_handoff` needs no connection but requires `handoff_user_ids`; `conversation_close` needs nothing.
1039
1039
  */
1040
1040
  family: string;
1041
1041
  }>;
@@ -3320,11 +3320,15 @@ export type Workflow = {
3320
3320
  /**
3321
3321
  * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
3322
3322
  */
3323
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'call_received';
3323
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
3324
3324
  /**
3325
3325
  * Channels it listens to. See `GET /channels`.
3326
3326
  */
3327
3327
  channel_ids: Array<string>;
3328
+ /**
3329
+ * For team_message_unanswered: seconds since the latest team reply. Requires a single close_conversation step.
3330
+ */
3331
+ inactivity_seconds?: number;
3328
3332
  /**
3329
3333
  * Which messages a `message_received` workflow reacts to.
3330
3334
  */
@@ -3576,7 +3580,7 @@ export type Workflow = {
3576
3580
  timezone: string;
3577
3581
  };
3578
3582
  /**
3579
- * Who it messages: Odoo appointments or birthdays from Odoo or GesDen.
3583
+ * Who it messages: Odoo or GesDen appointments, or birthdays from Odoo or GesDen.
3580
3584
  */
3581
3585
  source: {
3582
3586
  kind: 'odoo_appointments';
@@ -3588,11 +3592,25 @@ export type Workflow = {
3588
3592
  * Odoo appointment states it reminds; null for every state.
3589
3593
  */
3590
3594
  appointment_states: Array<string> | null;
3595
+ } | {
3596
+ kind: 'gesden_appointments';
3597
+ /**
3598
+ * Days before the appointment it reminds.
3599
+ */
3600
+ days_ahead: number;
3601
+ /**
3602
+ * GesDen appointment states it reminds, by their GesDen id.
3603
+ */
3604
+ appointment_states: Array<string>;
3591
3605
  } | {
3592
3606
  kind: 'odoo_birthdays';
3593
3607
  } | {
3594
3608
  kind: 'gesden_birthdays';
3595
3609
  };
3610
+ /**
3611
+ * Close only when this send opened the conversation and no later message arrived.
3612
+ */
3613
+ close_after_send?: boolean;
3596
3614
  template: {
3597
3615
  /**
3598
3616
  * WhatsApp channel it sends from.
@@ -4950,11 +4968,15 @@ export type CreateWorkflow = {
4950
4968
  /**
4951
4969
  * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
4952
4970
  */
4953
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'call_received';
4971
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
4954
4972
  /**
4955
4973
  * Channels it listens to. See `GET /channels`.
4956
4974
  */
4957
4975
  channel_ids: Array<string>;
4976
+ /**
4977
+ * For team_message_unanswered: seconds since the latest team reply. Requires a single close_conversation step.
4978
+ */
4979
+ inactivity_seconds?: number;
4958
4980
  /**
4959
4981
  * Which messages a `message_received` workflow reacts to.
4960
4982
  */
@@ -5210,11 +5232,15 @@ export type UpdateWorkflow = {
5210
5232
  /**
5211
5233
  * `conversation_opened` runs when a conversation opens; `first_message_received` when the first message from the contact in a conversation arrives; `message_received` on every incoming message. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers every conversation of its channels and no assignee moves. `call_received` decides who answers a WhatsApp call on its channels (WhatsApp numbers with AI calls on): its flow takes only `answer_call`, `decline_call` and a `branch` on `business_hours`, and the first active one that reaches a call step decides, over whoever holds the conversation.
5212
5234
  */
5213
- trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'call_received';
5235
+ trigger: 'conversation_opened' | 'first_message_received' | 'message_received' | 'team_away' | 'team_message_unanswered' | 'call_received';
5214
5236
  /**
5215
5237
  * Channels it listens to. See `GET /channels`.
5216
5238
  */
5217
5239
  channel_ids: Array<string>;
5240
+ /**
5241
+ * For team_message_unanswered: seconds since the latest team reply. Requires a single close_conversation step.
5242
+ */
5243
+ inactivity_seconds?: number;
5218
5244
  /**
5219
5245
  * Which messages a `message_received` workflow reacts to.
5220
5246
  */
@@ -6364,6 +6390,10 @@ export type ListConversationsData = {
6364
6390
  * `true`: only conversations with a handoff to a person not resolved yet.
6365
6391
  */
6366
6392
  pending_handoff?: 'true' | 'false';
6393
+ /**
6394
+ * `true`: only conversations waiting for the team's reply: open, with the contact's message as the latest one that asks or answers (a reaction does neither). The conversations `GET /reports/dashboard` counts in `awaiting_reply`.
6395
+ */
6396
+ awaiting_reply?: 'true' | 'false';
6367
6397
  /**
6368
6398
  * `customer`: only conversations whose latest message came from the contact.
6369
6399
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getricky",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Official TypeScript SDK for the Ricky REST API",
5
5
  "keywords": [
6
6
  "api",