otomato-sdk 2.0.276 → 2.0.277

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.
@@ -7672,13 +7672,12 @@ export const ACTIONS = {
7672
7672
  }
7673
7673
  },
7674
7674
  "TELEGRAM_POLL": {
7675
- "description": "Telegram Poll",
7675
+ "description": "Human in the Loop",
7676
7676
  "tags": {},
7677
- "comingSoon": true,
7678
7677
  "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/telegram.jpeg",
7679
7678
  "TELEGRAM_POLL": {
7680
- "name": "Telegram Poll",
7681
- "description": "Telegram poll",
7679
+ "name": "Human in the Loop",
7680
+ "description": "Send a telegram message to ask for user input. The workflow will then wait for the user to select an option before continuing.",
7682
7681
  "type": 6,
7683
7682
  "output": {
7684
7683
  "answer": "string"
@@ -7687,14 +7686,14 @@ export const ACTIONS = {
7687
7686
  {
7688
7687
  "key": "question",
7689
7688
  "type": "string",
7690
- "description": "Question of the poll",
7689
+ "description": "Question to ask the user",
7691
7690
  "mandatory": true,
7692
7691
  "category": 0
7693
7692
  },
7694
7693
  {
7695
7694
  "key": "options",
7696
7695
  "type": "string_array",
7697
- "description": "Options of the poll",
7696
+ "description": "Available options for the user to choose from",
7698
7697
  "category": 0,
7699
7698
  "default": [],
7700
7699
  "value": []
@@ -7702,34 +7701,32 @@ export const ACTIONS = {
7702
7701
  {
7703
7702
  "key": "chat_id",
7704
7703
  "type": "string",
7705
- "description": "Channel id",
7704
+ "description": "Chat channel id",
7706
7705
  "private": true,
7707
7706
  "category": 1
7708
7707
  },
7709
7708
  ],
7710
7709
  "examples": [
7711
7710
  {
7712
- "name": "Telegram Poll",
7713
- "description": "Gets triggered when you answer a poll in a Telegram chat",
7711
+ "name": "Human in the Loop",
7712
+ "description": "Gets triggered when a user answers a poll sent via message",
7714
7713
  "parameters": [
7715
7714
  {
7716
7715
  "key": "question",
7717
- "value": "What is the capital of France?"
7716
+ "value": "Should we proceed with the swap?"
7718
7717
  },
7719
7718
  {
7720
7719
  "key": "options",
7721
7720
  "value": [
7722
- "Paris",
7723
- "London",
7724
- "Berlin"
7721
+ "Yes",
7722
+ "No"
7725
7723
  ]
7726
7724
  }
7727
7725
  ]
7728
7726
  }
7729
7727
  ],
7730
7728
  "blockId": 100043,
7731
- "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/telegram.jpeg",
7732
- "comingSoon": true
7729
+ "image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/telegram.jpeg"
7733
7730
  }
7734
7731
  },
7735
7732
  "WHATSAPP": {
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.276';
1
+ export const SDK_VERSION = '2.0.277';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -1,4 +1,4 @@
1
- import { Parameter } from '../models/Parameter.js';
1
+ import { Parameter } from "../models/Parameter.js";
2
2
  export declare const TRIGGERS: {
3
3
  TRENDING: {
4
4
  X: {
@@ -2996,7 +2996,6 @@ export declare const ACTIONS: {
2996
2996
  TELEGRAM_POLL: {
2997
2997
  description: string;
2998
2998
  tags: {};
2999
- comingSoon: boolean;
3000
2999
  image: string;
3001
3000
  TELEGRAM_POLL: {
3002
3001
  name: string;
@@ -3019,7 +3018,6 @@ export declare const ACTIONS: {
3019
3018
  }[];
3020
3019
  blockId: number;
3021
3020
  image: string;
3022
- comingSoon: boolean;
3023
3021
  };
3024
3022
  };
3025
3023
  WHATSAPP: {
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.276";
1
+ export declare const SDK_VERSION = "2.0.277";
2
2
  export declare function compareVersions(v1: string, v2: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "2.0.276",
3
+ "version": "2.0.277",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/types/src/index.d.ts",