getricky 0.1.37 → 0.1.39

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.
@@ -3318,7 +3318,7 @@ export type Workflow = {
3318
3318
  type: 'conversation' | 'scheduled';
3319
3319
  definition: {
3320
3320
  /**
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; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `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.
3321
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the contact writes first in a conversation, before any message from the business; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers the conversations of its channels (only those assigned to `coverage.assigned_user_ids` when given) and no assignee moves; when each period starts it answers those already waiting for a reply. `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
3323
  trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
3324
3324
  /**
@@ -3334,7 +3334,7 @@ export type Workflow = {
3334
3334
  */
3335
3335
  message_filters?: {
3336
3336
  /**
3337
- * Match the first inbound message OR only_unassigned. Neither selected matches every message.
3337
+ * Match the contact writing first, before any message from the business, OR only_unassigned. Neither selected matches every message.
3338
3338
  */
3339
3339
  first_message?: boolean;
3340
3340
  /**
@@ -3360,17 +3360,25 @@ export type Workflow = {
3360
3360
  text_contains?: string;
3361
3361
  };
3362
3362
  /**
3363
- * The period of a `team_away` workflow.
3363
+ * When a `team_away` workflow covers: one period, or every week outside the team's hours.
3364
3364
  */
3365
3365
  coverage?: {
3366
3366
  /**
3367
- * When the team goes away.
3367
+ * When the team goes away, for one period; with `ends_at`.
3368
3368
  */
3369
- starts_at: string;
3369
+ starts_at?: string;
3370
3370
  /**
3371
- * When the team is back.
3371
+ * When the team is back, for one period; with `starts_at`.
3372
3372
  */
3373
- ends_at: string;
3373
+ ends_at?: string;
3374
+ /**
3375
+ * The team's hours, instead of `starts_at` and `ends_at`: the agent covers every week outside them, each closing starting a period.
3376
+ */
3377
+ team_hours?: BusinessHours;
3378
+ /**
3379
+ * Covers only the conversations assigned to these members; omitted, every conversation of its channels. See `GET /members`.
3380
+ */
3381
+ assigned_user_ids?: Array<string>;
3374
3382
  /**
3375
3383
  * What the agent tells customers meanwhile.
3376
3384
  */
@@ -4983,7 +4991,7 @@ export type CreateWorkflow = {
4983
4991
  */
4984
4992
  definition: {
4985
4993
  /**
4986
- * `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; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `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.
4994
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the contact writes first in a conversation, before any message from the business; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers the conversations of its channels (only those assigned to `coverage.assigned_user_ids` when given) and no assignee moves; when each period starts it answers those already waiting for a reply. `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.
4987
4995
  */
4988
4996
  trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
4989
4997
  /**
@@ -4999,7 +5007,7 @@ export type CreateWorkflow = {
4999
5007
  */
5000
5008
  message_filters?: {
5001
5009
  /**
5002
- * Match the first inbound message OR only_unassigned. Neither selected matches every message.
5010
+ * Match the contact writing first, before any message from the business, OR only_unassigned. Neither selected matches every message.
5003
5011
  */
5004
5012
  first_message?: boolean;
5005
5013
  /**
@@ -5025,17 +5033,25 @@ export type CreateWorkflow = {
5025
5033
  text_contains?: string;
5026
5034
  };
5027
5035
  /**
5028
- * The period of a `team_away` workflow.
5036
+ * When a `team_away` workflow covers: one period, or every week outside the team's hours.
5029
5037
  */
5030
5038
  coverage?: {
5031
5039
  /**
5032
- * When the team goes away.
5040
+ * When the team goes away, for one period; with `ends_at`.
5041
+ */
5042
+ starts_at?: string;
5043
+ /**
5044
+ * When the team is back, for one period; with `starts_at`.
5033
5045
  */
5034
- starts_at: string;
5046
+ ends_at?: string;
5035
5047
  /**
5036
- * When the team is back.
5048
+ * The team's hours, instead of `starts_at` and `ends_at`: the agent covers every week outside them, each closing starting a period.
5037
5049
  */
5038
- ends_at: string;
5050
+ team_hours?: BusinessHoursInput;
5051
+ /**
5052
+ * Covers only the conversations assigned to these members; omitted, every conversation of its channels. See `GET /members`.
5053
+ */
5054
+ assigned_user_ids?: Array<string>;
5039
5055
  /**
5040
5056
  * What the agent tells customers meanwhile.
5041
5057
  */
@@ -5264,7 +5280,7 @@ export type UpdateWorkflow = {
5264
5280
  */
5265
5281
  definition?: {
5266
5282
  /**
5267
- * `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; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `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.
5283
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the contact writes first in a conversation, before any message from the business; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers the conversations of its channels (only those assigned to `coverage.assigned_user_ids` when given) and no assignee moves; when each period starts it answers those already waiting for a reply. `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.
5268
5284
  */
5269
5285
  trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
5270
5286
  /**
@@ -5280,7 +5296,7 @@ export type UpdateWorkflow = {
5280
5296
  */
5281
5297
  message_filters?: {
5282
5298
  /**
5283
- * Match the first inbound message OR only_unassigned. Neither selected matches every message.
5299
+ * Match the contact writing first, before any message from the business, OR only_unassigned. Neither selected matches every message.
5284
5300
  */
5285
5301
  first_message?: boolean;
5286
5302
  /**
@@ -5306,17 +5322,25 @@ export type UpdateWorkflow = {
5306
5322
  text_contains?: string;
5307
5323
  };
5308
5324
  /**
5309
- * The period of a `team_away` workflow.
5325
+ * When a `team_away` workflow covers: one period, or every week outside the team's hours.
5310
5326
  */
5311
5327
  coverage?: {
5312
5328
  /**
5313
- * When the team goes away.
5329
+ * When the team goes away, for one period; with `ends_at`.
5330
+ */
5331
+ starts_at?: string;
5332
+ /**
5333
+ * When the team is back, for one period; with `starts_at`.
5334
+ */
5335
+ ends_at?: string;
5336
+ /**
5337
+ * The team's hours, instead of `starts_at` and `ends_at`: the agent covers every week outside them, each closing starting a period.
5314
5338
  */
5315
- starts_at: string;
5339
+ team_hours?: BusinessHoursInput;
5316
5340
  /**
5317
- * When the team is back.
5341
+ * Covers only the conversations assigned to these members; omitted, every conversation of its channels. See `GET /members`.
5318
5342
  */
5319
- ends_at: string;
5343
+ assigned_user_ids?: Array<string>;
5320
5344
  /**
5321
5345
  * What the agent tells customers meanwhile.
5322
5346
  */
@@ -3318,7 +3318,7 @@ export type Workflow = {
3318
3318
  type: 'conversation' | 'scheduled';
3319
3319
  definition: {
3320
3320
  /**
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; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `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.
3321
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the contact writes first in a conversation, before any message from the business; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers the conversations of its channels (only those assigned to `coverage.assigned_user_ids` when given) and no assignee moves; when each period starts it answers those already waiting for a reply. `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
3323
  trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
3324
3324
  /**
@@ -3334,7 +3334,7 @@ export type Workflow = {
3334
3334
  */
3335
3335
  message_filters?: {
3336
3336
  /**
3337
- * Match the first inbound message OR only_unassigned. Neither selected matches every message.
3337
+ * Match the contact writing first, before any message from the business, OR only_unassigned. Neither selected matches every message.
3338
3338
  */
3339
3339
  first_message?: boolean;
3340
3340
  /**
@@ -3360,17 +3360,25 @@ export type Workflow = {
3360
3360
  text_contains?: string;
3361
3361
  };
3362
3362
  /**
3363
- * The period of a `team_away` workflow.
3363
+ * When a `team_away` workflow covers: one period, or every week outside the team's hours.
3364
3364
  */
3365
3365
  coverage?: {
3366
3366
  /**
3367
- * When the team goes away.
3367
+ * When the team goes away, for one period; with `ends_at`.
3368
3368
  */
3369
- starts_at: string;
3369
+ starts_at?: string;
3370
3370
  /**
3371
- * When the team is back.
3371
+ * When the team is back, for one period; with `starts_at`.
3372
3372
  */
3373
- ends_at: string;
3373
+ ends_at?: string;
3374
+ /**
3375
+ * The team's hours, instead of `starts_at` and `ends_at`: the agent covers every week outside them, each closing starting a period.
3376
+ */
3377
+ team_hours?: BusinessHours;
3378
+ /**
3379
+ * Covers only the conversations assigned to these members; omitted, every conversation of its channels. See `GET /members`.
3380
+ */
3381
+ assigned_user_ids?: Array<string>;
3374
3382
  /**
3375
3383
  * What the agent tells customers meanwhile.
3376
3384
  */
@@ -4983,7 +4991,7 @@ export type CreateWorkflow = {
4983
4991
  */
4984
4992
  definition: {
4985
4993
  /**
4986
- * `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; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `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.
4994
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the contact writes first in a conversation, before any message from the business; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers the conversations of its channels (only those assigned to `coverage.assigned_user_ids` when given) and no assignee moves; when each period starts it answers those already waiting for a reply. `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.
4987
4995
  */
4988
4996
  trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
4989
4997
  /**
@@ -4999,7 +5007,7 @@ export type CreateWorkflow = {
4999
5007
  */
5000
5008
  message_filters?: {
5001
5009
  /**
5002
- * Match the first inbound message OR only_unassigned. Neither selected matches every message.
5010
+ * Match the contact writing first, before any message from the business, OR only_unassigned. Neither selected matches every message.
5003
5011
  */
5004
5012
  first_message?: boolean;
5005
5013
  /**
@@ -5025,17 +5033,25 @@ export type CreateWorkflow = {
5025
5033
  text_contains?: string;
5026
5034
  };
5027
5035
  /**
5028
- * The period of a `team_away` workflow.
5036
+ * When a `team_away` workflow covers: one period, or every week outside the team's hours.
5029
5037
  */
5030
5038
  coverage?: {
5031
5039
  /**
5032
- * When the team goes away.
5040
+ * When the team goes away, for one period; with `ends_at`.
5041
+ */
5042
+ starts_at?: string;
5043
+ /**
5044
+ * When the team is back, for one period; with `starts_at`.
5033
5045
  */
5034
- starts_at: string;
5046
+ ends_at?: string;
5035
5047
  /**
5036
- * When the team is back.
5048
+ * The team's hours, instead of `starts_at` and `ends_at`: the agent covers every week outside them, each closing starting a period.
5037
5049
  */
5038
- ends_at: string;
5050
+ team_hours?: BusinessHoursInput;
5051
+ /**
5052
+ * Covers only the conversations assigned to these members; omitted, every conversation of its channels. See `GET /members`.
5053
+ */
5054
+ assigned_user_ids?: Array<string>;
5039
5055
  /**
5040
5056
  * What the agent tells customers meanwhile.
5041
5057
  */
@@ -5264,7 +5280,7 @@ export type UpdateWorkflow = {
5264
5280
  */
5265
5281
  definition?: {
5266
5282
  /**
5267
- * `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; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `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.
5283
+ * `conversation_opened` runs when a conversation opens; `first_message_received` when the contact writes first in a conversation, before any message from the business; `message_received` on every incoming message; `message_sent` within 15 minutes of an outgoing message that passes `sent_message_filters`, unless the contact replied first. `team_away` runs nothing: during `coverage` the agent of its only `assign_agent` step answers the conversations of its channels (only those assigned to `coverage.assigned_user_ids` when given) and no assignee moves; when each period starts it answers those already waiting for a reply. `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.
5268
5284
  */
5269
5285
  trigger: 'conversation_inactive' | 'conversation_opened' | 'first_message_received' | 'message_received' | 'message_sent' | 'team_away' | 'team_message_unanswered' | 'call_received';
5270
5286
  /**
@@ -5280,7 +5296,7 @@ export type UpdateWorkflow = {
5280
5296
  */
5281
5297
  message_filters?: {
5282
5298
  /**
5283
- * Match the first inbound message OR only_unassigned. Neither selected matches every message.
5299
+ * Match the contact writing first, before any message from the business, OR only_unassigned. Neither selected matches every message.
5284
5300
  */
5285
5301
  first_message?: boolean;
5286
5302
  /**
@@ -5306,17 +5322,25 @@ export type UpdateWorkflow = {
5306
5322
  text_contains?: string;
5307
5323
  };
5308
5324
  /**
5309
- * The period of a `team_away` workflow.
5325
+ * When a `team_away` workflow covers: one period, or every week outside the team's hours.
5310
5326
  */
5311
5327
  coverage?: {
5312
5328
  /**
5313
- * When the team goes away.
5329
+ * When the team goes away, for one period; with `ends_at`.
5330
+ */
5331
+ starts_at?: string;
5332
+ /**
5333
+ * When the team is back, for one period; with `starts_at`.
5334
+ */
5335
+ ends_at?: string;
5336
+ /**
5337
+ * The team's hours, instead of `starts_at` and `ends_at`: the agent covers every week outside them, each closing starting a period.
5314
5338
  */
5315
- starts_at: string;
5339
+ team_hours?: BusinessHoursInput;
5316
5340
  /**
5317
- * When the team is back.
5341
+ * Covers only the conversations assigned to these members; omitted, every conversation of its channels. See `GET /members`.
5318
5342
  */
5319
- ends_at: string;
5343
+ assigned_user_ids?: Array<string>;
5320
5344
  /**
5321
5345
  * What the agent tells customers meanwhile.
5322
5346
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getricky",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "Official TypeScript SDK for the Ricky REST API",
5
5
  "keywords": [
6
6
  "api",