composio 0.1.15 → 0.1.17
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.
- checksums.yaml +4 -4
 - data/Gemfile.lock +4 -4
 - data/README.md +250 -202
 - data/lib/composio/api/actions_api.rb +201 -6
 - data/lib/composio/api/admin_api.rb +78 -0
 - data/lib/composio/api/auth_api.rb +77 -0
 - data/lib/composio/api/cli_api.rb +266 -0
 - data/lib/composio/api/connections_api.rb +124 -6
 - data/lib/composio/api/event_logs_api.rb +0 -318
 - data/lib/composio/api/integrations_api.rb +8 -4
 - data/lib/composio/api/logs_api.rb +19 -4
 - data/lib/composio/api/triggers_api.rb +9 -2
 - data/lib/composio/models/action_execution_req_dto.rb +31 -4
 - data/lib/composio/models/action_get_nla_inputs_req_dto.rb +22 -4
 - data/lib/composio/models/actions_query_dto.rb +22 -4
 - data/lib/composio/models/app_query_dto.rb +1 -1
 - data/lib/composio/models/client_dto.rb +374 -0
 - data/lib/composio/models/client_dto_created_at.rb +102 -0
 - data/lib/composio/models/client_dto_last_subscribed_at.rb +102 -0
 - data/lib/composio/models/client_dto_updated_at.rb +102 -0
 - data/lib/composio/models/client_info_res_dto.rb +235 -0
 - data/lib/composio/models/connection_params.rb +15 -4
 - data/lib/composio/models/connection_with_app_data.rb +15 -4
 - data/lib/composio/models/create_connector_payload_dto.rb +12 -7
 - data/lib/composio/models/expected_input_fields_dto.rb +346 -0
 - data/lib/composio/models/get_connections_query_dto.rb +15 -4
 - data/lib/composio/models/get_connector_info_res_dto.rb +1 -1
 - data/lib/composio/models/get_logs_dto.rb +14 -4
 - data/lib/composio/models/ingest_data_dto.rb +21 -1
 - data/lib/composio/models/initiate_connection_payload_dto.rb +19 -18
 - data/lib/composio/models/list_triggers_query_dto.rb +11 -1
 - data/lib/composio/models/sdk_error_res_dto.rb +221 -0
 - data/lib/composio/models/session_info_dto.rb +224 -0
 - data/lib/composio/models/tools_execute_req_dto.rb +22 -4
 - data/lib/composio/models/trigger_response_dto.rb +14 -4
 - data/lib/composio/models/update_connection_labels_payload_dto.rb +222 -0
 - data/lib/composio/version.rb +1 -1
 - data/lib/composio.rb +12 -3
 - data/spec/api/actions_api_spec.rb +25 -0
 - data/spec/api/admin_api_spec.rb +11 -0
 - data/spec/api/auth_api_spec.rb +11 -0
 - data/spec/api/cli_api_spec.rb +63 -0
 - data/spec/api/connections_api_spec.rb +14 -0
 - data/spec/api/event_logs_api_spec.rb +0 -43
 - data/spec/api/logs_api_spec.rb +1 -0
 - data/spec/api/triggers_api_spec.rb +1 -0
 - data/spec/models/action_execution_req_dto_spec.rb +18 -0
 - data/spec/models/action_get_nla_inputs_req_dto_spec.rb +12 -0
 - data/spec/models/actions_query_dto_spec.rb +12 -0
 - data/spec/models/client_dto_created_at_spec.rb +25 -0
 - data/spec/models/client_dto_last_subscribed_at_spec.rb +25 -0
 - data/spec/models/client_dto_spec.rb +100 -0
 - data/spec/models/client_dto_updated_at_spec.rb +25 -0
 - data/spec/models/client_info_res_dto_spec.rb +34 -0
 - data/spec/models/connection_params_spec.rb +6 -0
 - data/spec/models/connection_with_app_data_spec.rb +6 -0
 - data/spec/models/create_connector_payload_dto_spec.rb +6 -0
 - data/spec/models/expected_input_fields_dto_spec.rb +82 -0
 - data/spec/models/get_connections_query_dto_spec.rb +6 -0
 - data/spec/models/get_logs_dto_spec.rb +6 -0
 - data/spec/models/ingest_data_dto_spec.rb +12 -0
 - data/spec/models/initiate_connection_payload_dto_spec.rb +6 -0
 - data/spec/models/list_triggers_query_dto_spec.rb +6 -0
 - data/spec/models/sdk_error_res_dto_spec.rb +28 -0
 - data/spec/models/session_info_dto_spec.rb +34 -0
 - data/spec/models/tools_execute_req_dto_spec.rb +12 -0
 - data/spec/models/trigger_response_dto_spec.rb +6 -0
 - data/spec/models/update_connection_labels_payload_dto_spec.rb +28 -0
 - metadata +32 -4
 - data/spec/api/payment_api_spec.rb +0 -83
 
| 
         @@ -0,0 +1,222 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            #Composio OpenAPI
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            The version of the OpenAPI document: 1.0.0
         
     | 
| 
      
 7 
     | 
    
         
            +
            =end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            require 'date'
         
     | 
| 
      
 10 
     | 
    
         
            +
            require 'time'
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            module Composio
         
     | 
| 
      
 13 
     | 
    
         
            +
              class UpdateConnectionLabelsPayloadDto
         
     | 
| 
      
 14 
     | 
    
         
            +
                attr_accessor :labels
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                # Attribute mapping from ruby-style variable name to JSON key.
         
     | 
| 
      
 17 
     | 
    
         
            +
                def self.attribute_map
         
     | 
| 
      
 18 
     | 
    
         
            +
                  {
         
     | 
| 
      
 19 
     | 
    
         
            +
                    :'labels' => :'labels'
         
     | 
| 
      
 20 
     | 
    
         
            +
                  }
         
     | 
| 
      
 21 
     | 
    
         
            +
                end
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                # Returns all the JSON keys this model knows about
         
     | 
| 
      
 24 
     | 
    
         
            +
                def self.acceptable_attributes
         
     | 
| 
      
 25 
     | 
    
         
            +
                  attribute_map.values
         
     | 
| 
      
 26 
     | 
    
         
            +
                end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
                # Attribute type mapping.
         
     | 
| 
      
 29 
     | 
    
         
            +
                def self.openapi_types
         
     | 
| 
      
 30 
     | 
    
         
            +
                  {
         
     | 
| 
      
 31 
     | 
    
         
            +
                    :'labels' => :'Array<String>'
         
     | 
| 
      
 32 
     | 
    
         
            +
                  }
         
     | 
| 
      
 33 
     | 
    
         
            +
                end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                # List of attributes with nullable: true
         
     | 
| 
      
 36 
     | 
    
         
            +
                def self.openapi_nullable
         
     | 
| 
      
 37 
     | 
    
         
            +
                  Set.new([
         
     | 
| 
      
 38 
     | 
    
         
            +
                  ])
         
     | 
| 
      
 39 
     | 
    
         
            +
                end
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
                # Initializes the object
         
     | 
| 
      
 42 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 43 
     | 
    
         
            +
                def initialize(attributes = {})
         
     | 
| 
      
 44 
     | 
    
         
            +
                  if (!attributes.is_a?(Hash))
         
     | 
| 
      
 45 
     | 
    
         
            +
                    fail ArgumentError, "The input argument (attributes) must be a hash in `Composio::UpdateConnectionLabelsPayloadDto` initialize method"
         
     | 
| 
      
 46 
     | 
    
         
            +
                  end
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
                  # check to see if the attribute exists and convert string to symbol for hash key
         
     | 
| 
      
 49 
     | 
    
         
            +
                  attributes = attributes.each_with_object({}) { |(k, v), h|
         
     | 
| 
      
 50 
     | 
    
         
            +
                    if (!self.class.attribute_map.key?(k.to_sym))
         
     | 
| 
      
 51 
     | 
    
         
            +
                      fail ArgumentError, "`#{k}` is not a valid attribute in `Composio::UpdateConnectionLabelsPayloadDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
         
     | 
| 
      
 52 
     | 
    
         
            +
                    end
         
     | 
| 
      
 53 
     | 
    
         
            +
                    h[k.to_sym] = v
         
     | 
| 
      
 54 
     | 
    
         
            +
                  }
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
                  if attributes.key?(:'labels')
         
     | 
| 
      
 57 
     | 
    
         
            +
                    if (value = attributes[:'labels']).is_a?(Array)
         
     | 
| 
      
 58 
     | 
    
         
            +
                      self.labels = value
         
     | 
| 
      
 59 
     | 
    
         
            +
                    end
         
     | 
| 
      
 60 
     | 
    
         
            +
                  end
         
     | 
| 
      
 61 
     | 
    
         
            +
                end
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
                # Show invalid properties with the reasons. Usually used together with valid?
         
     | 
| 
      
 64 
     | 
    
         
            +
                # @return Array for valid properties with the reasons
         
     | 
| 
      
 65 
     | 
    
         
            +
                def list_invalid_properties
         
     | 
| 
      
 66 
     | 
    
         
            +
                  invalid_properties = Array.new
         
     | 
| 
      
 67 
     | 
    
         
            +
                  if @labels.nil?
         
     | 
| 
      
 68 
     | 
    
         
            +
                    invalid_properties.push('invalid value for "labels", labels cannot be nil.')
         
     | 
| 
      
 69 
     | 
    
         
            +
                  end
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
      
 71 
     | 
    
         
            +
                  invalid_properties
         
     | 
| 
      
 72 
     | 
    
         
            +
                end
         
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
                # Check to see if the all the properties in the model are valid
         
     | 
| 
      
 75 
     | 
    
         
            +
                # @return true if the model is valid
         
     | 
| 
      
 76 
     | 
    
         
            +
                def valid?
         
     | 
| 
      
 77 
     | 
    
         
            +
                  return false if @labels.nil?
         
     | 
| 
      
 78 
     | 
    
         
            +
                  true
         
     | 
| 
      
 79 
     | 
    
         
            +
                end
         
     | 
| 
      
 80 
     | 
    
         
            +
             
     | 
| 
      
 81 
     | 
    
         
            +
                # Checks equality by comparing each attribute.
         
     | 
| 
      
 82 
     | 
    
         
            +
                # @param [Object] Object to be compared
         
     | 
| 
      
 83 
     | 
    
         
            +
                def ==(o)
         
     | 
| 
      
 84 
     | 
    
         
            +
                  return true if self.equal?(o)
         
     | 
| 
      
 85 
     | 
    
         
            +
                  self.class == o.class &&
         
     | 
| 
      
 86 
     | 
    
         
            +
                      labels == o.labels
         
     | 
| 
      
 87 
     | 
    
         
            +
                end
         
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
                # @see the `==` method
         
     | 
| 
      
 90 
     | 
    
         
            +
                # @param [Object] Object to be compared
         
     | 
| 
      
 91 
     | 
    
         
            +
                def eql?(o)
         
     | 
| 
      
 92 
     | 
    
         
            +
                  self == o
         
     | 
| 
      
 93 
     | 
    
         
            +
                end
         
     | 
| 
      
 94 
     | 
    
         
            +
             
     | 
| 
      
 95 
     | 
    
         
            +
                # Calculates hash code according to all attributes.
         
     | 
| 
      
 96 
     | 
    
         
            +
                # @return [Integer] Hash code
         
     | 
| 
      
 97 
     | 
    
         
            +
                def hash
         
     | 
| 
      
 98 
     | 
    
         
            +
                  [labels].hash
         
     | 
| 
      
 99 
     | 
    
         
            +
                end
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
                # Builds the object from hash
         
     | 
| 
      
 102 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 103 
     | 
    
         
            +
                # @return [Object] Returns the model itself
         
     | 
| 
      
 104 
     | 
    
         
            +
                def self.build_from_hash(attributes)
         
     | 
| 
      
 105 
     | 
    
         
            +
                  new.build_from_hash(attributes)
         
     | 
| 
      
 106 
     | 
    
         
            +
                end
         
     | 
| 
      
 107 
     | 
    
         
            +
             
     | 
| 
      
 108 
     | 
    
         
            +
                # Builds the object from hash
         
     | 
| 
      
 109 
     | 
    
         
            +
                # @param [Hash] attributes Model attributes in the form of hash
         
     | 
| 
      
 110 
     | 
    
         
            +
                # @return [Object] Returns the model itself
         
     | 
| 
      
 111 
     | 
    
         
            +
                def build_from_hash(attributes)
         
     | 
| 
      
 112 
     | 
    
         
            +
                  return nil unless attributes.is_a?(Hash)
         
     | 
| 
      
 113 
     | 
    
         
            +
                  attributes = attributes.transform_keys(&:to_sym)
         
     | 
| 
      
 114 
     | 
    
         
            +
                  self.class.openapi_types.each_pair do |key, type|
         
     | 
| 
      
 115 
     | 
    
         
            +
                    if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
         
     | 
| 
      
 116 
     | 
    
         
            +
                      self.send("#{key}=", nil)
         
     | 
| 
      
 117 
     | 
    
         
            +
                    elsif type =~ /\AArray<(.*)>/i
         
     | 
| 
      
 118 
     | 
    
         
            +
                      # check to ensure the input is an array given that the attribute
         
     | 
| 
      
 119 
     | 
    
         
            +
                      # is documented as an array but the input is not
         
     | 
| 
      
 120 
     | 
    
         
            +
                      if attributes[self.class.attribute_map[key]].is_a?(Array)
         
     | 
| 
      
 121 
     | 
    
         
            +
                        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
         
     | 
| 
      
 122 
     | 
    
         
            +
                      end
         
     | 
| 
      
 123 
     | 
    
         
            +
                    elsif !attributes[self.class.attribute_map[key]].nil?
         
     | 
| 
      
 124 
     | 
    
         
            +
                      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
         
     | 
| 
      
 125 
     | 
    
         
            +
                    end
         
     | 
| 
      
 126 
     | 
    
         
            +
                  end
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
                  self
         
     | 
| 
      
 129 
     | 
    
         
            +
                end
         
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
      
 131 
     | 
    
         
            +
                # Deserializes the data based on type
         
     | 
| 
      
 132 
     | 
    
         
            +
                # @param string type Data type
         
     | 
| 
      
 133 
     | 
    
         
            +
                # @param string value Value to be deserialized
         
     | 
| 
      
 134 
     | 
    
         
            +
                # @return [Object] Deserialized data
         
     | 
| 
      
 135 
     | 
    
         
            +
                def _deserialize(type, value)
         
     | 
| 
      
 136 
     | 
    
         
            +
                  case type.to_sym
         
     | 
| 
      
 137 
     | 
    
         
            +
                  when :Time
         
     | 
| 
      
 138 
     | 
    
         
            +
                    Time.parse(value)
         
     | 
| 
      
 139 
     | 
    
         
            +
                  when :Date
         
     | 
| 
      
 140 
     | 
    
         
            +
                    Date.parse(value)
         
     | 
| 
      
 141 
     | 
    
         
            +
                  when :String
         
     | 
| 
      
 142 
     | 
    
         
            +
                    value.to_s
         
     | 
| 
      
 143 
     | 
    
         
            +
                  when :Integer
         
     | 
| 
      
 144 
     | 
    
         
            +
                    value.to_i
         
     | 
| 
      
 145 
     | 
    
         
            +
                  when :Float
         
     | 
| 
      
 146 
     | 
    
         
            +
                    value.to_f
         
     | 
| 
      
 147 
     | 
    
         
            +
                  when :Boolean
         
     | 
| 
      
 148 
     | 
    
         
            +
                    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
         
     | 
| 
      
 149 
     | 
    
         
            +
                      true
         
     | 
| 
      
 150 
     | 
    
         
            +
                    else
         
     | 
| 
      
 151 
     | 
    
         
            +
                      false
         
     | 
| 
      
 152 
     | 
    
         
            +
                    end
         
     | 
| 
      
 153 
     | 
    
         
            +
                  when :Object
         
     | 
| 
      
 154 
     | 
    
         
            +
                    # generic object (usually a Hash), return directly
         
     | 
| 
      
 155 
     | 
    
         
            +
                    value
         
     | 
| 
      
 156 
     | 
    
         
            +
                  when /\AArray<(?<inner_type>.+)>\z/
         
     | 
| 
      
 157 
     | 
    
         
            +
                    inner_type = Regexp.last_match[:inner_type]
         
     | 
| 
      
 158 
     | 
    
         
            +
                    value.map { |v| _deserialize(inner_type, v) }
         
     | 
| 
      
 159 
     | 
    
         
            +
                  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
         
     | 
| 
      
 160 
     | 
    
         
            +
                    k_type = Regexp.last_match[:k_type]
         
     | 
| 
      
 161 
     | 
    
         
            +
                    v_type = Regexp.last_match[:v_type]
         
     | 
| 
      
 162 
     | 
    
         
            +
                    {}.tap do |hash|
         
     | 
| 
      
 163 
     | 
    
         
            +
                      value.each do |k, v|
         
     | 
| 
      
 164 
     | 
    
         
            +
                        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
         
     | 
| 
      
 165 
     | 
    
         
            +
                      end
         
     | 
| 
      
 166 
     | 
    
         
            +
                    end
         
     | 
| 
      
 167 
     | 
    
         
            +
                  else # model
         
     | 
| 
      
 168 
     | 
    
         
            +
                    # models (e.g. Pet) or oneOf
         
     | 
| 
      
 169 
     | 
    
         
            +
                    klass = Composio.const_get(type)
         
     | 
| 
      
 170 
     | 
    
         
            +
                    klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
         
     | 
| 
      
 171 
     | 
    
         
            +
                  end
         
     | 
| 
      
 172 
     | 
    
         
            +
                end
         
     | 
| 
      
 173 
     | 
    
         
            +
             
     | 
| 
      
 174 
     | 
    
         
            +
                # Returns the string representation of the object
         
     | 
| 
      
 175 
     | 
    
         
            +
                # @return [String] String presentation of the object
         
     | 
| 
      
 176 
     | 
    
         
            +
                def to_s
         
     | 
| 
      
 177 
     | 
    
         
            +
                  to_hash.to_s
         
     | 
| 
      
 178 
     | 
    
         
            +
                end
         
     | 
| 
      
 179 
     | 
    
         
            +
             
     | 
| 
      
 180 
     | 
    
         
            +
                # to_body is an alias to to_hash (backward compatibility)
         
     | 
| 
      
 181 
     | 
    
         
            +
                # @return [Hash] Returns the object in the form of hash
         
     | 
| 
      
 182 
     | 
    
         
            +
                def to_body
         
     | 
| 
      
 183 
     | 
    
         
            +
                  to_hash
         
     | 
| 
      
 184 
     | 
    
         
            +
                end
         
     | 
| 
      
 185 
     | 
    
         
            +
             
     | 
| 
      
 186 
     | 
    
         
            +
                # Returns the object in the form of hash
         
     | 
| 
      
 187 
     | 
    
         
            +
                # @return [Hash] Returns the object in the form of hash
         
     | 
| 
      
 188 
     | 
    
         
            +
                def to_hash
         
     | 
| 
      
 189 
     | 
    
         
            +
                  hash = {}
         
     | 
| 
      
 190 
     | 
    
         
            +
                  self.class.attribute_map.each_pair do |attr, param|
         
     | 
| 
      
 191 
     | 
    
         
            +
                    value = self.send(attr)
         
     | 
| 
      
 192 
     | 
    
         
            +
                    if value.nil?
         
     | 
| 
      
 193 
     | 
    
         
            +
                      is_nullable = self.class.openapi_nullable.include?(attr)
         
     | 
| 
      
 194 
     | 
    
         
            +
                      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
         
     | 
| 
      
 195 
     | 
    
         
            +
                    end
         
     | 
| 
      
 196 
     | 
    
         
            +
             
     | 
| 
      
 197 
     | 
    
         
            +
                    hash[param] = _to_hash(value)
         
     | 
| 
      
 198 
     | 
    
         
            +
                  end
         
     | 
| 
      
 199 
     | 
    
         
            +
                  hash
         
     | 
| 
      
 200 
     | 
    
         
            +
                end
         
     | 
| 
      
 201 
     | 
    
         
            +
             
     | 
| 
      
 202 
     | 
    
         
            +
                # Outputs non-array value in the form of hash
         
     | 
| 
      
 203 
     | 
    
         
            +
                # For object, use to_hash. Otherwise, just return the value
         
     | 
| 
      
 204 
     | 
    
         
            +
                # @param [Object] value Any valid value
         
     | 
| 
      
 205 
     | 
    
         
            +
                # @return [Hash] Returns the value in the form of hash
         
     | 
| 
      
 206 
     | 
    
         
            +
                def _to_hash(value)
         
     | 
| 
      
 207 
     | 
    
         
            +
                  if value.is_a?(Array)
         
     | 
| 
      
 208 
     | 
    
         
            +
                    value.compact.map { |v| _to_hash(v) }
         
     | 
| 
      
 209 
     | 
    
         
            +
                  elsif value.is_a?(Hash)
         
     | 
| 
      
 210 
     | 
    
         
            +
                    {}.tap do |hash|
         
     | 
| 
      
 211 
     | 
    
         
            +
                      value.each { |k, v| hash[k] = _to_hash(v) }
         
     | 
| 
      
 212 
     | 
    
         
            +
                    end
         
     | 
| 
      
 213 
     | 
    
         
            +
                  elsif value.respond_to? :to_hash
         
     | 
| 
      
 214 
     | 
    
         
            +
                    value.to_hash
         
     | 
| 
      
 215 
     | 
    
         
            +
                  else
         
     | 
| 
      
 216 
     | 
    
         
            +
                    value
         
     | 
| 
      
 217 
     | 
    
         
            +
                  end
         
     | 
| 
      
 218 
     | 
    
         
            +
                end
         
     | 
| 
      
 219 
     | 
    
         
            +
             
     | 
| 
      
 220 
     | 
    
         
            +
              end
         
     | 
| 
      
 221 
     | 
    
         
            +
             
     | 
| 
      
 222 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/composio/version.rb
    CHANGED
    
    
    
        data/lib/composio.rb
    CHANGED
    
    | 
         @@ -47,6 +47,11 @@ require 'composio/models/app_name_count_dto' 
     | 
|
| 
       47 
47 
     | 
    
         
             
            require 'composio/models/app_query_dto'
         
     | 
| 
       48 
48 
     | 
    
         
             
            require 'composio/models/auth_config_dto'
         
     | 
| 
       49 
49 
     | 
    
         
             
            require 'composio/models/cli_query_dto'
         
     | 
| 
      
 50 
     | 
    
         
            +
            require 'composio/models/client_dto'
         
     | 
| 
      
 51 
     | 
    
         
            +
            require 'composio/models/client_dto_created_at'
         
     | 
| 
      
 52 
     | 
    
         
            +
            require 'composio/models/client_dto_last_subscribed_at'
         
     | 
| 
      
 53 
     | 
    
         
            +
            require 'composio/models/client_dto_updated_at'
         
     | 
| 
      
 54 
     | 
    
         
            +
            require 'composio/models/client_info_res_dto'
         
     | 
| 
       50 
55 
     | 
    
         
             
            require 'composio/models/client_unique_user_id_count_dto'
         
     | 
| 
       51 
56 
     | 
    
         
             
            require 'composio/models/connected_account_response_dto'
         
     | 
| 
       52 
57 
     | 
    
         
             
            require 'composio/models/connection_params'
         
     | 
| 
         @@ -71,6 +76,7 @@ require 'composio/models/enable_trigger_body_dto' 
     | 
|
| 
       71 
76 
     | 
    
         
             
            require 'composio/models/enable_trigger_params_dto'
         
     | 
| 
       72 
77 
     | 
    
         
             
            require 'composio/models/entity_query_req_dto'
         
     | 
| 
       73 
78 
     | 
    
         
             
            require 'composio/models/execute_action_res_dto'
         
     | 
| 
      
 79 
     | 
    
         
            +
            require 'composio/models/expected_input_fields_dto'
         
     | 
| 
       74 
80 
     | 
    
         
             
            require 'composio/models/fetch_query_dto'
         
     | 
| 
       75 
81 
     | 
    
         
             
            require 'composio/models/generate_api_key_req_dto'
         
     | 
| 
       76 
82 
     | 
    
         
             
            require 'composio/models/generate_cli_session_req_dto'
         
     | 
| 
         @@ -123,6 +129,8 @@ require 'composio/models/plan' 
     | 
|
| 
       123 
129 
     | 
    
         
             
            require 'composio/models/proxy_execution_req_dto'
         
     | 
| 
       124 
130 
     | 
    
         
             
            require 'composio/models/redirect_uri_dto'
         
     | 
| 
       125 
131 
     | 
    
         
             
            require 'composio/models/role'
         
     | 
| 
      
 132 
     | 
    
         
            +
            require 'composio/models/sdk_error_res_dto'
         
     | 
| 
      
 133 
     | 
    
         
            +
            require 'composio/models/session_info_dto'
         
     | 
| 
       126 
134 
     | 
    
         
             
            require 'composio/models/set_callback_url_body_dto'
         
     | 
| 
       127 
135 
     | 
    
         
             
            require 'composio/models/single_app_info_res_dto'
         
     | 
| 
       128 
136 
     | 
    
         
             
            require 'composio/models/single_trigger_res_dto'
         
     | 
| 
         @@ -153,6 +161,7 @@ require 'composio/models/trigger_toggle_info_response_dto' 
     | 
|
| 
       153 
161 
     | 
    
         
             
            require 'composio/models/triggers_enabled_toggle_req_dto'
         
     | 
| 
       154 
162 
     | 
    
         
             
            require 'composio/models/triggers_enabled_toggle_res_dto'
         
     | 
| 
       155 
163 
     | 
    
         
             
            require 'composio/models/type'
         
     | 
| 
      
 164 
     | 
    
         
            +
            require 'composio/models/update_connection_labels_payload_dto'
         
     | 
| 
       156 
165 
     | 
    
         
             
            require 'composio/models/update_member_req_dto'
         
     | 
| 
       157 
166 
     | 
    
         
             
            require 'composio/models/update_member_req_dto_role'
         
     | 
| 
       158 
167 
     | 
    
         
             
            require 'composio/models/user_git_user_info'
         
     | 
| 
         @@ -171,11 +180,11 @@ require 'composio/api/admin_api' 
     | 
|
| 
       171 
180 
     | 
    
         
             
            require 'composio/api/analytics_api'
         
     | 
| 
       172 
181 
     | 
    
         
             
            require 'composio/api/apps_api'
         
     | 
| 
       173 
182 
     | 
    
         
             
            require 'composio/api/auth_api'
         
     | 
| 
      
 183 
     | 
    
         
            +
            require 'composio/api/cli_api'
         
     | 
| 
       174 
184 
     | 
    
         
             
            require 'composio/api/connections_api'
         
     | 
| 
       175 
185 
     | 
    
         
             
            require 'composio/api/event_logs_api'
         
     | 
| 
       176 
186 
     | 
    
         
             
            require 'composio/api/integrations_api'
         
     | 
| 
       177 
187 
     | 
    
         
             
            require 'composio/api/logs_api'
         
     | 
| 
       178 
     | 
    
         
            -
            require 'composio/api/payment_api'
         
     | 
| 
       179 
188 
     | 
    
         
             
            require 'composio/api/triggers_api'
         
     | 
| 
       180 
189 
     | 
    
         | 
| 
       181 
190 
     | 
    
         
             
            module Composio
         
     | 
| 
         @@ -224,11 +233,11 @@ module Composio 
     | 
|
| 
       224 
233 
     | 
    
         
             
                attr_reader :analytics
         
     | 
| 
       225 
234 
     | 
    
         
             
                attr_reader :apps
         
     | 
| 
       226 
235 
     | 
    
         
             
                attr_reader :auth
         
     | 
| 
      
 236 
     | 
    
         
            +
                attr_reader :cli
         
     | 
| 
       227 
237 
     | 
    
         
             
                attr_reader :connections
         
     | 
| 
       228 
238 
     | 
    
         
             
                attr_reader :event_logs
         
     | 
| 
       229 
239 
     | 
    
         
             
                attr_reader :integrations
         
     | 
| 
       230 
240 
     | 
    
         
             
                attr_reader :logs
         
     | 
| 
       231 
     | 
    
         
            -
                attr_reader :payment
         
     | 
| 
       232 
241 
     | 
    
         
             
                attr_reader :triggers
         
     | 
| 
       233 
242 
     | 
    
         | 
| 
       234 
243 
     | 
    
         
             
                def initialize(config = Configuration.default)
         
     | 
| 
         @@ -239,11 +248,11 @@ module Composio 
     | 
|
| 
       239 
248 
     | 
    
         
             
                  @analytics = Composio::AnalyticsApi.new(@api_client)
         
     | 
| 
       240 
249 
     | 
    
         
             
                  @apps = Composio::AppsApi.new(@api_client)
         
     | 
| 
       241 
250 
     | 
    
         
             
                  @auth = Composio::AuthApi.new(@api_client)
         
     | 
| 
      
 251 
     | 
    
         
            +
                  @cli = Composio::CLIApi.new(@api_client)
         
     | 
| 
       242 
252 
     | 
    
         
             
                  @connections = Composio::ConnectionsApi.new(@api_client)
         
     | 
| 
       243 
253 
     | 
    
         
             
                  @event_logs = Composio::EventLogsApi.new(@api_client)
         
     | 
| 
       244 
254 
     | 
    
         
             
                  @integrations = Composio::IntegrationsApi.new(@api_client)
         
     | 
| 
       245 
255 
     | 
    
         
             
                  @logs = Composio::LogsApi.new(@api_client)
         
     | 
| 
       246 
     | 
    
         
            -
                  @payment = Composio::PaymentApi.new(@api_client)
         
     | 
| 
       247 
256 
     | 
    
         
             
                  @triggers = Composio::TriggersApi.new(@api_client)
         
     | 
| 
       248 
257 
     | 
    
         
             
                end
         
     | 
| 
       249 
258 
     | 
    
         
             
              end
         
     | 
| 
         @@ -91,6 +91,8 @@ describe 'ActionsApi' do 
     | 
|
| 
       91 
91 
     | 
    
         
             
              # @option opts [Float] :usecase_limit 
         
     | 
| 
       92 
92 
     | 
    
         
             
              # @option opts [Boolean] :filter_important_actions 
         
     | 
| 
       93 
93 
     | 
    
         
             
              # @option opts [Boolean] :show_all 
         
     | 
| 
      
 94 
     | 
    
         
            +
              # @option opts [Float] :page 
         
     | 
| 
      
 95 
     | 
    
         
            +
              # @option opts [Float] :offset 
         
     | 
| 
       94 
96 
     | 
    
         
             
              # @return [ActionsListResponseDTO]
         
     | 
| 
       95 
97 
     | 
    
         
             
              describe 'get_all_actions_based_on_query test' do
         
     | 
| 
       96 
98 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
         @@ -98,4 +100,27 @@ describe 'ActionsApi' do 
     | 
|
| 
       98 
100 
     | 
    
         
             
                end
         
     | 
| 
       99 
101 
     | 
    
         
             
              end
         
     | 
| 
       100 
102 
     | 
    
         | 
| 
      
 103 
     | 
    
         
            +
              # unit tests for list
         
     | 
| 
      
 104 
     | 
    
         
            +
              # List actions
         
     | 
| 
      
 105 
     | 
    
         
            +
              # Retrieve a list of all actions based on query parameters.
         
     | 
| 
      
 106 
     | 
    
         
            +
              # @param [Hash] opts the optional parameters
         
     | 
| 
      
 107 
     | 
    
         
            +
              # @option opts [String] :app_names 
         
     | 
| 
      
 108 
     | 
    
         
            +
              # @option opts [String] :use_case 
         
     | 
| 
      
 109 
     | 
    
         
            +
              # @option opts [Boolean] :show_enabled_only 
         
     | 
| 
      
 110 
     | 
    
         
            +
              # @option opts [Float] :limit 
         
     | 
| 
      
 111 
     | 
    
         
            +
              # @option opts [String] :apps 
         
     | 
| 
      
 112 
     | 
    
         
            +
              # @option opts [String] :actions 
         
     | 
| 
      
 113 
     | 
    
         
            +
              # @option opts [String] :tags 
         
     | 
| 
      
 114 
     | 
    
         
            +
              # @option opts [Float] :usecase_limit 
         
     | 
| 
      
 115 
     | 
    
         
            +
              # @option opts [Boolean] :filter_important_actions 
         
     | 
| 
      
 116 
     | 
    
         
            +
              # @option opts [Boolean] :show_all 
         
     | 
| 
      
 117 
     | 
    
         
            +
              # @option opts [Float] :page 
         
     | 
| 
      
 118 
     | 
    
         
            +
              # @option opts [Float] :offset 
         
     | 
| 
      
 119 
     | 
    
         
            +
              # @return [ActionsListResponseDTO]
         
     | 
| 
      
 120 
     | 
    
         
            +
              describe 'list test' do
         
     | 
| 
      
 121 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 122 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 123 
     | 
    
         
            +
                end
         
     | 
| 
      
 124 
     | 
    
         
            +
              end
         
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
       101 
126 
     | 
    
         
             
            end
         
     | 
    
        data/spec/api/admin_api_spec.rb
    CHANGED
    
    | 
         @@ -26,6 +26,17 @@ describe 'AdminApi' do 
     | 
|
| 
       26 
26 
     | 
    
         
             
                end
         
     | 
| 
       27 
27 
     | 
    
         
             
              end
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
      
 29 
     | 
    
         
            +
              # unit tests for clear_cache
         
     | 
| 
      
 30 
     | 
    
         
            +
              # Clear cache
         
     | 
| 
      
 31 
     | 
    
         
            +
              # @param [Hash] opts the optional parameters
         
     | 
| 
      
 32 
     | 
    
         
            +
              # @option opts [String] :x_admin_token 
         
     | 
| 
      
 33 
     | 
    
         
            +
              # @return [Object]
         
     | 
| 
      
 34 
     | 
    
         
            +
              describe 'clear_cache test' do
         
     | 
| 
      
 35 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 37 
     | 
    
         
            +
                end
         
     | 
| 
      
 38 
     | 
    
         
            +
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
       29 
40 
     | 
    
         
             
              # unit tests for get_sentry_dns
         
     | 
| 
       30 
41 
     | 
    
         
             
              # Jssentry dns
         
     | 
| 
       31 
42 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
    
        data/spec/api/auth_api_spec.rb
    CHANGED
    
    | 
         @@ -26,6 +26,17 @@ describe 'AuthApi' do 
     | 
|
| 
       26 
26 
     | 
    
         
             
                end
         
     | 
| 
       27 
27 
     | 
    
         
             
              end
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
      
 29 
     | 
    
         
            +
              # unit tests for get_user_info
         
     | 
| 
      
 30 
     | 
    
         
            +
              # Get user info
         
     | 
| 
      
 31 
     | 
    
         
            +
              # Get client info
         
     | 
| 
      
 32 
     | 
    
         
            +
              # @param [Hash] opts the optional parameters
         
     | 
| 
      
 33 
     | 
    
         
            +
              # @return [ClientInfoResDTO]
         
     | 
| 
      
 34 
     | 
    
         
            +
              describe 'get_user_info test' do
         
     | 
| 
      
 35 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 37 
     | 
    
         
            +
                end
         
     | 
| 
      
 38 
     | 
    
         
            +
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
       29 
40 
     | 
    
         
             
              # unit tests for identify_client_operation
         
     | 
| 
       30 
41 
     | 
    
         
             
              # Identify client
         
     | 
| 
       31 
42 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
| 
         @@ -0,0 +1,63 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            #Composio OpenAPI
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            The version of the OpenAPI document: 1.0.0
         
     | 
| 
      
 7 
     | 
    
         
            +
            =end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            require 'spec_helper'
         
     | 
| 
      
 10 
     | 
    
         
            +
            require 'json'
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            # Unit tests for Composio::CLIApi
         
     | 
| 
      
 13 
     | 
    
         
            +
            describe 'CLIApi' do
         
     | 
| 
      
 14 
     | 
    
         
            +
              before do
         
     | 
| 
      
 15 
     | 
    
         
            +
                # run before each test
         
     | 
| 
      
 16 
     | 
    
         
            +
                @api_instance = Composio::CLIApi.new
         
     | 
| 
      
 17 
     | 
    
         
            +
              end
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
              after do
         
     | 
| 
      
 20 
     | 
    
         
            +
                # run after each test
         
     | 
| 
      
 21 
     | 
    
         
            +
              end
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
              describe 'test an instance of CLIApi' do
         
     | 
| 
      
 24 
     | 
    
         
            +
                it 'should create an instance of CLIApi' do
         
     | 
| 
      
 25 
     | 
    
         
            +
                  expect(@api_instance).to be_instance_of(Composio::CLIApi)
         
     | 
| 
      
 26 
     | 
    
         
            +
                end
         
     | 
| 
      
 27 
     | 
    
         
            +
              end
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
              # unit tests for exchange_code
         
     | 
| 
      
 30 
     | 
    
         
            +
              # Handle cli code exchange
         
     | 
| 
      
 31 
     | 
    
         
            +
              # @param [Hash] opts the optional parameters
         
     | 
| 
      
 32 
     | 
    
         
            +
              # @return [GenerateCLISessionResDTO]
         
     | 
| 
      
 33 
     | 
    
         
            +
              describe 'exchange_code test' do
         
     | 
| 
      
 34 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 35 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 36 
     | 
    
         
            +
                end
         
     | 
| 
      
 37 
     | 
    
         
            +
              end
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
              # unit tests for get_code
         
     | 
| 
      
 40 
     | 
    
         
            +
              # Get cli code
         
     | 
| 
      
 41 
     | 
    
         
            +
              # @param key 
         
     | 
| 
      
 42 
     | 
    
         
            +
              # @param [Hash] opts the optional parameters
         
     | 
| 
      
 43 
     | 
    
         
            +
              # @option opts [String] :code 
         
     | 
| 
      
 44 
     | 
    
         
            +
              # @return [GetCLISessionResDTO]
         
     | 
| 
      
 45 
     | 
    
         
            +
              describe 'get_code test' do
         
     | 
| 
      
 46 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 47 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 48 
     | 
    
         
            +
                end
         
     | 
| 
      
 49 
     | 
    
         
            +
              end
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
              # unit tests for verify_code
         
     | 
| 
      
 52 
     | 
    
         
            +
              # Handle cli code verification
         
     | 
| 
      
 53 
     | 
    
         
            +
              # @param key 
         
     | 
| 
      
 54 
     | 
    
         
            +
              # @param [Hash] opts the optional parameters
         
     | 
| 
      
 55 
     | 
    
         
            +
              # @option opts [String] :code 
         
     | 
| 
      
 56 
     | 
    
         
            +
              # @return [VerifyCLICodeResDTO]
         
     | 
| 
      
 57 
     | 
    
         
            +
              describe 'verify_code test' do
         
     | 
| 
      
 58 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 59 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 60 
     | 
    
         
            +
                end
         
     | 
| 
      
 61 
     | 
    
         
            +
              end
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -108,6 +108,7 @@ describe 'ConnectionsApi' do 
     | 
|
| 
       108 
108 
     | 
    
         
             
              # @option opts [Boolean] :show_active_only 
         
     | 
| 
       109 
109 
     | 
    
         
             
              # @option opts [String] :status 
         
     | 
| 
       110 
110 
     | 
    
         
             
              # @option opts [Boolean] :show_disabled 
         
     | 
| 
      
 111 
     | 
    
         
            +
              # @option opts [Array<String>] :labels 
         
     | 
| 
       111 
112 
     | 
    
         
             
              # @return [GetConnectionsResponseDto]
         
     | 
| 
       112 
113 
     | 
    
         
             
              describe 'list test' do
         
     | 
| 
       113 
114 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
         @@ -115,4 +116,17 @@ describe 'ConnectionsApi' do 
     | 
|
| 
       115 
116 
     | 
    
         
             
                end
         
     | 
| 
       116 
117 
     | 
    
         
             
              end
         
     | 
| 
       117 
118 
     | 
    
         | 
| 
      
 119 
     | 
    
         
            +
              # unit tests for update_connection_data
         
     | 
| 
      
 120 
     | 
    
         
            +
              # Update connection data
         
     | 
| 
      
 121 
     | 
    
         
            +
              # Update connection data
         
     | 
| 
      
 122 
     | 
    
         
            +
              # @param connected_account_id 
         
     | 
| 
      
 123 
     | 
    
         
            +
              # @param [Hash] opts the optional parameters
         
     | 
| 
      
 124 
     | 
    
         
            +
              # @option opts [UpdateConnectionLabelsPayloadDto] :update_connection_labels_payload_dto UpdateConnectionLabelsPayloadDto
         
     | 
| 
      
 125 
     | 
    
         
            +
              # @return [Object]
         
     | 
| 
      
 126 
     | 
    
         
            +
              describe 'update_connection_data test' do
         
     | 
| 
      
 127 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 128 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 129 
     | 
    
         
            +
                end
         
     | 
| 
      
 130 
     | 
    
         
            +
              end
         
     | 
| 
      
 131 
     | 
    
         
            +
             
     | 
| 
       118 
132 
     | 
    
         
             
            end
         
     | 
| 
         @@ -26,49 +26,6 @@ describe 'EventLogsApi' do 
     | 
|
| 
       26 
26 
     | 
    
         
             
                end
         
     | 
| 
       27 
27 
     | 
    
         
             
              end
         
     | 
| 
       28 
28 
     | 
    
         | 
| 
       29 
     | 
    
         
            -
              # unit tests for get_events
         
     | 
| 
       30 
     | 
    
         
            -
              # Get events
         
     | 
| 
       31 
     | 
    
         
            -
              # Fetch events from database
         
     | 
| 
       32 
     | 
    
         
            -
              # @param start_time 
         
     | 
| 
       33 
     | 
    
         
            -
              # @param end_time 
         
     | 
| 
       34 
     | 
    
         
            -
              # @param [Hash] opts the optional parameters
         
     | 
| 
       35 
     | 
    
         
            -
              # @return [Object]
         
     | 
| 
       36 
     | 
    
         
            -
              describe 'get_events test' do
         
     | 
| 
       37 
     | 
    
         
            -
                it 'should work' do
         
     | 
| 
       38 
     | 
    
         
            -
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
       39 
     | 
    
         
            -
                end
         
     | 
| 
       40 
     | 
    
         
            -
              end
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
              # unit tests for get_webhook
         
     | 
| 
       43 
     | 
    
         
            -
              # Get webhook
         
     | 
| 
       44 
     | 
    
         
            -
              # @param [Hash] opts the optional parameters
         
     | 
| 
       45 
     | 
    
         
            -
              # @return [Object]
         
     | 
| 
       46 
     | 
    
         
            -
              describe 'get_webhook test' do
         
     | 
| 
       47 
     | 
    
         
            -
                it 'should work' do
         
     | 
| 
       48 
     | 
    
         
            -
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
       49 
     | 
    
         
            -
                end
         
     | 
| 
       50 
     | 
    
         
            -
              end
         
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
              # unit tests for get_webhook_secret
         
     | 
| 
       53 
     | 
    
         
            -
              # Get webhook secret
         
     | 
| 
       54 
     | 
    
         
            -
              # @param [Hash] opts the optional parameters
         
     | 
| 
       55 
     | 
    
         
            -
              # @return [Object]
         
     | 
| 
       56 
     | 
    
         
            -
              describe 'get_webhook_secret test' do
         
     | 
| 
       57 
     | 
    
         
            -
                it 'should work' do
         
     | 
| 
       58 
     | 
    
         
            -
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
       59 
     | 
    
         
            -
                end
         
     | 
| 
       60 
     | 
    
         
            -
              end
         
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
              # unit tests for refresh_webhook_secret
         
     | 
| 
       63 
     | 
    
         
            -
              # Refresh webhook
         
     | 
| 
       64 
     | 
    
         
            -
              # @param [Hash] opts the optional parameters
         
     | 
| 
       65 
     | 
    
         
            -
              # @return [Object]
         
     | 
| 
       66 
     | 
    
         
            -
              describe 'refresh_webhook_secret test' do
         
     | 
| 
       67 
     | 
    
         
            -
                it 'should work' do
         
     | 
| 
       68 
     | 
    
         
            -
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
       69 
     | 
    
         
            -
                end
         
     | 
| 
       70 
     | 
    
         
            -
              end
         
     | 
| 
       71 
     | 
    
         
            -
             
     | 
| 
       72 
29 
     | 
    
         
             
              # unit tests for update_webhook
         
     | 
| 
       73 
30 
     | 
    
         
             
              # Update webhook
         
     | 
| 
       74 
31 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
    
        data/spec/api/logs_api_spec.rb
    CHANGED
    
    
| 
         @@ -127,6 +127,7 @@ describe 'TriggersApi' do 
     | 
|
| 
       127 
127 
     | 
    
         
             
              # @option opts [String] :app_names 
         
     | 
| 
       128 
128 
     | 
    
         
             
              # @option opts [String] :connected_account_ids 
         
     | 
| 
       129 
129 
     | 
    
         
             
              # @option opts [String] :trigger_ids 
         
     | 
| 
      
 130 
     | 
    
         
            +
              # @option opts [String] :integration_ids 
         
     | 
| 
       130 
131 
     | 
    
         
             
              # @option opts [Boolean] :show_enabled_only 
         
     | 
| 
       131 
132 
     | 
    
         
             
              # @return [Array<TriggerResDTO>]
         
     | 
| 
       132 
133 
     | 
    
         
             
              describe 'list test' do
         
     | 
| 
         @@ -49,6 +49,12 @@ describe Composio::ActionExecutionReqDTO do 
     | 
|
| 
       49 
49 
     | 
    
         
             
                end
         
     | 
| 
       50 
50 
     | 
    
         
             
              end
         
     | 
| 
       51 
51 
     | 
    
         | 
| 
      
 52 
     | 
    
         
            +
              describe 'test attribute "session_info"' do
         
     | 
| 
      
 53 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 54 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 55 
     | 
    
         
            +
                end
         
     | 
| 
      
 56 
     | 
    
         
            +
              end
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
       52 
58 
     | 
    
         
             
              describe 'test attribute "auth_config"' do
         
     | 
| 
       53 
59 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       54 
60 
     | 
    
         
             
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
         @@ -61,4 +67,16 @@ describe Composio::ActionExecutionReqDTO do 
     | 
|
| 
       61 
67 
     | 
    
         
             
                end
         
     | 
| 
       62 
68 
     | 
    
         
             
              end
         
     | 
| 
       63 
69 
     | 
    
         | 
| 
      
 70 
     | 
    
         
            +
              describe 'test attribute "custom_description"' do
         
     | 
| 
      
 71 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 72 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 73 
     | 
    
         
            +
                end
         
     | 
| 
      
 74 
     | 
    
         
            +
              end
         
     | 
| 
      
 75 
     | 
    
         
            +
             
     | 
| 
      
 76 
     | 
    
         
            +
              describe 'test attribute "system_prompt"' do
         
     | 
| 
      
 77 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 78 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 79 
     | 
    
         
            +
                end
         
     | 
| 
      
 80 
     | 
    
         
            +
              end
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
       64 
82 
     | 
    
         
             
            end
         
     | 
| 
         @@ -25,4 +25,16 @@ describe Composio::ActionGetNLAInputsReqDTO do 
     | 
|
| 
       25 
25 
     | 
    
         
             
                end
         
     | 
| 
       26 
26 
     | 
    
         
             
              end
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
      
 28 
     | 
    
         
            +
              describe 'test attribute "custom_description"' do
         
     | 
| 
      
 29 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 30 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 31 
     | 
    
         
            +
                end
         
     | 
| 
      
 32 
     | 
    
         
            +
              end
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
              describe 'test attribute "system_prompt"' do
         
     | 
| 
      
 35 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 37 
     | 
    
         
            +
                end
         
     | 
| 
      
 38 
     | 
    
         
            +
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
       28 
40 
     | 
    
         
             
            end
         
     | 
| 
         @@ -79,4 +79,16 @@ describe Composio::ActionsQueryDTO do 
     | 
|
| 
       79 
79 
     | 
    
         
             
                end
         
     | 
| 
       80 
80 
     | 
    
         
             
              end
         
     | 
| 
       81 
81 
     | 
    
         | 
| 
      
 82 
     | 
    
         
            +
              describe 'test attribute "page"' do
         
     | 
| 
      
 83 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 84 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 85 
     | 
    
         
            +
                end
         
     | 
| 
      
 86 
     | 
    
         
            +
              end
         
     | 
| 
      
 87 
     | 
    
         
            +
             
     | 
| 
      
 88 
     | 
    
         
            +
              describe 'test attribute "offset"' do
         
     | 
| 
      
 89 
     | 
    
         
            +
                it 'should work' do
         
     | 
| 
      
 90 
     | 
    
         
            +
                  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
         
     | 
| 
      
 91 
     | 
    
         
            +
                end
         
     | 
| 
      
 92 
     | 
    
         
            +
              end
         
     | 
| 
      
 93 
     | 
    
         
            +
             
     | 
| 
       82 
94 
     | 
    
         
             
            end
         
     | 
| 
         @@ -0,0 +1,25 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            #Composio OpenAPI
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            The version of the OpenAPI document: 1.0.0
         
     | 
| 
      
 7 
     | 
    
         
            +
            =end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            require 'spec_helper'
         
     | 
| 
      
 10 
     | 
    
         
            +
            require 'json'
         
     | 
| 
      
 11 
     | 
    
         
            +
            require 'date'
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            # Unit tests for Composio::ClientDTOCreatedAt
         
     | 
| 
      
 14 
     | 
    
         
            +
            describe Composio::ClientDTOCreatedAt do
         
     | 
| 
      
 15 
     | 
    
         
            +
              describe '.openapi_one_of' do
         
     | 
| 
      
 16 
     | 
    
         
            +
                it 'lists the items referenced in the oneOf array' do
         
     | 
| 
      
 17 
     | 
    
         
            +
                  expect(described_class.openapi_one_of).to_not be_empty
         
     | 
| 
      
 18 
     | 
    
         
            +
                end
         
     | 
| 
      
 19 
     | 
    
         
            +
              end
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
              describe '.build' do
         
     | 
| 
      
 22 
     | 
    
         
            +
                it 'returns the correct model' do
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
              end
         
     | 
| 
      
 25 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,25 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            =begin
         
     | 
| 
      
 2 
     | 
    
         
            +
            #Composio OpenAPI
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            The version of the OpenAPI document: 1.0.0
         
     | 
| 
      
 7 
     | 
    
         
            +
            =end
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            require 'spec_helper'
         
     | 
| 
      
 10 
     | 
    
         
            +
            require 'json'
         
     | 
| 
      
 11 
     | 
    
         
            +
            require 'date'
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            # Unit tests for Composio::ClientDTOLastSubscribedAt
         
     | 
| 
      
 14 
     | 
    
         
            +
            describe Composio::ClientDTOLastSubscribedAt do
         
     | 
| 
      
 15 
     | 
    
         
            +
              describe '.openapi_one_of' do
         
     | 
| 
      
 16 
     | 
    
         
            +
                it 'lists the items referenced in the oneOf array' do
         
     | 
| 
      
 17 
     | 
    
         
            +
                  expect(described_class.openapi_one_of).to_not be_empty
         
     | 
| 
      
 18 
     | 
    
         
            +
                end
         
     | 
| 
      
 19 
     | 
    
         
            +
              end
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
              describe '.build' do
         
     | 
| 
      
 22 
     | 
    
         
            +
                it 'returns the correct model' do
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
              end
         
     | 
| 
      
 25 
     | 
    
         
            +
            end
         
     |