svix 1.69.0 → 1.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/endpoint.rb +2 -2
- data/lib/svix/models/{api_token_expire_in.rb → airwallex_config.rb} +7 -8
- data/lib/svix/models/{api_token_in.rb → airwallex_config_out.rb} +4 -10
- data/lib/svix/models/app_portal_access_in.rb +7 -1
- data/lib/svix/models/application_token_expire_in.rb +7 -1
- data/lib/svix/models/checkbook_config.rb +46 -0
- data/lib/svix/models/checkbook_config_out.rb +43 -0
- data/lib/svix/models/connector_in.rb +5 -0
- data/lib/svix/models/connector_out.rb +4 -0
- data/lib/svix/models/easypost_config.rb +46 -0
- data/lib/svix/models/easypost_config_out.rb +43 -0
- data/lib/svix/models/{endpoint_transformation_in.rb → endpoint_transformation_patch.rb} +4 -4
- data/lib/svix/models/event_type_from_open_api.rb +4 -1
- data/lib/svix/models/event_type_in.rb +14 -1
- data/lib/svix/models/event_type_out.rb +4 -0
- data/lib/svix/models/event_type_patch.rb +4 -1
- data/lib/svix/models/event_type_update.rb +4 -1
- data/lib/svix/models/ingest_source_in.rb +58 -2
- data/lib/svix/models/ingest_source_out.rb +58 -2
- data/lib/svix/models/message_attempt_trigger_type.rb +1 -0
- data/lib/svix/models/message_status.rb +1 -0
- data/lib/svix/models/orum_io_config.rb +46 -0
- data/lib/svix/models/orum_io_config_out.rb +46 -0
- data/lib/svix/models/port_io_config.rb +46 -0
- data/lib/svix/models/port_io_config_out.rb +43 -0
- data/lib/svix/models/rutter_config.rb +46 -0
- data/lib/svix/models/rutter_config_out.rb +43 -0
- data/lib/svix/models/status_code_class.rb +1 -0
- data/lib/svix/models/telnyx_config.rb +46 -0
- data/lib/svix/models/telnyx_config_out.rb +46 -0
- data/lib/svix/models/vapi_config.rb +46 -0
- data/lib/svix/models/vapi_config_out.rb +43 -0
- data/lib/svix/models/veriff_config.rb +46 -0
- data/lib/svix/models/veriff_config_out.rb +43 -0
- data/lib/svix/svix.rb +0 -2
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +19 -8
- metadata +21 -10
- data/lib/svix/api/management.rb +0 -14
- data/lib/svix/api/management_authentication.rb +0 -52
- data/lib/svix/models/api_token_censored_out.rb +0 -62
- data/lib/svix/models/api_token_out.rb +0 -62
- data/lib/svix/models/list_response_api_token_censored_out.rb +0 -58
| @@ -3,16 +3,25 @@ | |
| 3 3 | 
             
            require "json"
         | 
| 4 4 |  | 
| 5 5 | 
             
            require_relative "./adobe_sign_config"
         | 
| 6 | 
            +
            require_relative "./airwallex_config"
         | 
| 7 | 
            +
            require_relative "./checkbook_config"
         | 
| 6 8 | 
             
            require_relative "./cron_config"
         | 
| 7 9 | 
             
            require_relative "./docusign_config"
         | 
| 10 | 
            +
            require_relative "./easypost_config"
         | 
| 8 11 | 
             
            require_relative "./github_config"
         | 
| 9 12 | 
             
            require_relative "./hubspot_config"
         | 
| 13 | 
            +
            require_relative "./orum_io_config"
         | 
| 10 14 | 
             
            require_relative "./panda_doc_config"
         | 
| 15 | 
            +
            require_relative "./port_io_config"
         | 
| 16 | 
            +
            require_relative "./rutter_config"
         | 
| 11 17 | 
             
            require_relative "./segment_config"
         | 
| 12 18 | 
             
            require_relative "./shopify_config"
         | 
| 13 19 | 
             
            require_relative "./slack_config"
         | 
| 14 20 | 
             
            require_relative "./stripe_config"
         | 
| 15 21 | 
             
            require_relative "./svix_config"
         | 
| 22 | 
            +
            require_relative "./telnyx_config"
         | 
| 23 | 
            +
            require_relative "./vapi_config"
         | 
| 24 | 
            +
            require_relative "./veriff_config"
         | 
| 16 25 | 
             
            require_relative "./zoom_config"
         | 
| 17 26 |  | 
| 18 27 | 
             
            module Svix
         | 
| @@ -45,12 +54,18 @@ module Svix | |
| 45 54 | 
             
                class Brex < SvixConfig
         | 
| 46 55 | 
             
                end
         | 
| 47 56 |  | 
| 57 | 
            +
                class Checkbook < CheckbookConfig
         | 
| 58 | 
            +
                end
         | 
| 59 | 
            +
             | 
| 48 60 | 
             
                class Clerk < SvixConfig
         | 
| 49 61 | 
             
                end
         | 
| 50 62 |  | 
| 51 63 | 
             
                class Docusign < DocusignConfig
         | 
| 52 64 | 
             
                end
         | 
| 53 65 |  | 
| 66 | 
            +
                class Easypost < EasypostConfig
         | 
| 67 | 
            +
                end
         | 
| 68 | 
            +
             | 
| 54 69 | 
             
                class Github < GithubConfig
         | 
| 55 70 | 
             
                end
         | 
| 56 71 |  | 
| @@ -69,9 +84,15 @@ module Svix | |
| 69 84 | 
             
                class Nash < SvixConfig
         | 
| 70 85 | 
             
                end
         | 
| 71 86 |  | 
| 87 | 
            +
                class OrumIo < OrumIoConfig
         | 
| 88 | 
            +
                end
         | 
| 89 | 
            +
             | 
| 72 90 | 
             
                class PandaDoc < PandaDocConfig
         | 
| 73 91 | 
             
                end
         | 
| 74 92 |  | 
| 93 | 
            +
                class PortIo < PortIoConfig
         | 
| 94 | 
            +
                end
         | 
| 95 | 
            +
             | 
| 75 96 | 
             
                class Pleo < SvixConfig
         | 
| 76 97 | 
             
                end
         | 
| 77 98 |  | 
| @@ -81,6 +102,9 @@ module Svix | |
| 81 102 | 
             
                class Resend < SvixConfig
         | 
| 82 103 | 
             
                end
         | 
| 83 104 |  | 
| 105 | 
            +
                class Rutter < RutterConfig
         | 
| 106 | 
            +
                end
         | 
| 107 | 
            +
             | 
| 84 108 | 
             
                class Safebase < SvixConfig
         | 
| 85 109 | 
             
                end
         | 
| 86 110 |  | 
| @@ -107,15 +131,34 @@ module Svix | |
| 107 131 |  | 
| 108 132 | 
             
                class Zoom < ZoomConfig
         | 
| 109 133 | 
             
                end
         | 
| 134 | 
            +
             | 
| 135 | 
            +
                class Telnyx < TelnyxConfig
         | 
| 136 | 
            +
                end
         | 
| 137 | 
            +
             | 
| 138 | 
            +
                class Vapi < VapiConfig
         | 
| 139 | 
            +
                end
         | 
| 140 | 
            +
             | 
| 141 | 
            +
                class OpenAi < SvixConfig
         | 
| 142 | 
            +
                end
         | 
| 143 | 
            +
             | 
| 144 | 
            +
                class Render < SvixConfig
         | 
| 145 | 
            +
                end
         | 
| 146 | 
            +
             | 
| 147 | 
            +
                class Veriff < VeriffConfig
         | 
| 148 | 
            +
                end
         | 
| 149 | 
            +
             | 
| 150 | 
            +
                class Airwallex < AirwallexConfig
         | 
| 151 | 
            +
                end
         | 
| 110 152 | 
             
              end
         | 
| 111 153 |  | 
| 112 154 | 
             
              class IngestSourceIn
         | 
| 155 | 
            +
                attr_accessor :metadata
         | 
| 113 156 | 
             
                attr_accessor :name
         | 
| 114 157 | 
             
                # The Source's UID.
         | 
| 115 158 | 
             
                attr_accessor :uid
         | 
| 116 159 | 
             
                attr_accessor :config
         | 
| 117 160 |  | 
| 118 | 
            -
                ALL_FIELD ||= ["name", "uid", "config"].freeze
         | 
| 161 | 
            +
                ALL_FIELD ||= ["metadata", "name", "uid", "config"].freeze
         | 
| 119 162 | 
             
                private_constant :ALL_FIELD
         | 
| 120 163 | 
             
                TYPE_TO_NAME = {
         | 
| 121 164 | 
             
                  IngestSourceInConfig::GenericWebhook => "generic-webhook",
         | 
| @@ -123,18 +166,23 @@ module Svix | |
| 123 166 | 
             
                  IngestSourceInConfig::AdobeSign => "adobe-sign",
         | 
| 124 167 | 
             
                  IngestSourceInConfig::Beehiiv => "beehiiv",
         | 
| 125 168 | 
             
                  IngestSourceInConfig::Brex => "brex",
         | 
| 169 | 
            +
                  IngestSourceInConfig::Checkbook => "checkbook",
         | 
| 126 170 | 
             
                  IngestSourceInConfig::Clerk => "clerk",
         | 
| 127 171 | 
             
                  IngestSourceInConfig::Docusign => "docusign",
         | 
| 172 | 
            +
                  IngestSourceInConfig::Easypost => "easypost",
         | 
| 128 173 | 
             
                  IngestSourceInConfig::Github => "github",
         | 
| 129 174 | 
             
                  IngestSourceInConfig::Guesty => "guesty",
         | 
| 130 175 | 
             
                  IngestSourceInConfig::Hubspot => "hubspot",
         | 
| 131 176 | 
             
                  IngestSourceInConfig::IncidentIo => "incident-io",
         | 
| 132 177 | 
             
                  IngestSourceInConfig::Lithic => "lithic",
         | 
| 133 178 | 
             
                  IngestSourceInConfig::Nash => "nash",
         | 
| 179 | 
            +
                  IngestSourceInConfig::OrumIo => "orum-io",
         | 
| 134 180 | 
             
                  IngestSourceInConfig::PandaDoc => "panda-doc",
         | 
| 181 | 
            +
                  IngestSourceInConfig::PortIo => "port-io",
         | 
| 135 182 | 
             
                  IngestSourceInConfig::Pleo => "pleo",
         | 
| 136 183 | 
             
                  IngestSourceInConfig::Replicate => "replicate",
         | 
| 137 184 | 
             
                  IngestSourceInConfig::Resend => "resend",
         | 
| 185 | 
            +
                  IngestSourceInConfig::Rutter => "rutter",
         | 
| 138 186 | 
             
                  IngestSourceInConfig::Safebase => "safebase",
         | 
| 139 187 | 
             
                  IngestSourceInConfig::Sardine => "sardine",
         | 
| 140 188 | 
             
                  IngestSourceInConfig::Segment => "segment",
         | 
| @@ -143,7 +191,13 @@ module Svix | |
| 143 191 | 
             
                  IngestSourceInConfig::Stripe => "stripe",
         | 
| 144 192 | 
             
                  IngestSourceInConfig::Stych => "stych",
         | 
| 145 193 | 
             
                  IngestSourceInConfig::Svix => "svix",
         | 
| 146 | 
            -
                  IngestSourceInConfig::Zoom => "zoom"
         | 
| 194 | 
            +
                  IngestSourceInConfig::Zoom => "zoom",
         | 
| 195 | 
            +
                  IngestSourceInConfig::Telnyx => "telnyx",
         | 
| 196 | 
            +
                  IngestSourceInConfig::Vapi => "vapi",
         | 
| 197 | 
            +
                  IngestSourceInConfig::OpenAi => "open-ai",
         | 
| 198 | 
            +
                  IngestSourceInConfig::Render => "render",
         | 
| 199 | 
            +
                  IngestSourceInConfig::Veriff => "veriff",
         | 
| 200 | 
            +
                  IngestSourceInConfig::Airwallex => "airwallex"
         | 
| 147 201 | 
             
                }
         | 
| 148 202 | 
             
                private_constant :TYPE_TO_NAME
         | 
| 149 203 | 
             
                NAME_TO_TYPE = TYPE_TO_NAME.invert
         | 
| @@ -182,6 +236,7 @@ module Svix | |
| 182 236 | 
             
                def self.deserialize(attributes = {})
         | 
| 183 237 | 
             
                  attributes = attributes.transform_keys(&:to_s)
         | 
| 184 238 | 
             
                  attrs = Hash.new
         | 
| 239 | 
            +
                  attrs["metadata"] = attributes["metadata"]
         | 
| 185 240 | 
             
                  attrs["name"] = attributes["name"]
         | 
| 186 241 | 
             
                  attrs["uid"] = attributes["uid"]
         | 
| 187 242 | 
             
                  unless NAME_TO_TYPE.key?(attributes["type"])
         | 
| @@ -198,6 +253,7 @@ module Svix | |
| 198 253 |  | 
| 199 254 | 
             
                def serialize
         | 
| 200 255 | 
             
                  out = Hash.new
         | 
| 256 | 
            +
                  out["metadata"] = Svix::serialize_primitive(@metadata) if @metadata
         | 
| 201 257 | 
             
                  out["name"] = Svix::serialize_primitive(@name) if @name
         | 
| 202 258 | 
             
                  out["uid"] = Svix::serialize_primitive(@uid) if @uid
         | 
| 203 259 | 
             
                  out["type"] = @__enum_discriminator
         | 
| @@ -3,16 +3,25 @@ | |
| 3 3 | 
             
            require "json"
         | 
| 4 4 |  | 
| 5 5 | 
             
            require_relative "./adobe_sign_config_out"
         | 
| 6 | 
            +
            require_relative "./airwallex_config_out"
         | 
| 7 | 
            +
            require_relative "./checkbook_config_out"
         | 
| 6 8 | 
             
            require_relative "./cron_config"
         | 
| 7 9 | 
             
            require_relative "./docusign_config_out"
         | 
| 10 | 
            +
            require_relative "./easypost_config_out"
         | 
| 8 11 | 
             
            require_relative "./github_config_out"
         | 
| 9 12 | 
             
            require_relative "./hubspot_config_out"
         | 
| 13 | 
            +
            require_relative "./orum_io_config_out"
         | 
| 10 14 | 
             
            require_relative "./panda_doc_config_out"
         | 
| 15 | 
            +
            require_relative "./port_io_config_out"
         | 
| 16 | 
            +
            require_relative "./rutter_config_out"
         | 
| 11 17 | 
             
            require_relative "./segment_config_out"
         | 
| 12 18 | 
             
            require_relative "./shopify_config_out"
         | 
| 13 19 | 
             
            require_relative "./slack_config_out"
         | 
| 14 20 | 
             
            require_relative "./stripe_config_out"
         | 
| 15 21 | 
             
            require_relative "./svix_config_out"
         | 
| 22 | 
            +
            require_relative "./telnyx_config_out"
         | 
| 23 | 
            +
            require_relative "./vapi_config_out"
         | 
| 24 | 
            +
            require_relative "./veriff_config_out"
         | 
| 16 25 | 
             
            require_relative "./zoom_config_out"
         | 
| 17 26 |  | 
| 18 27 | 
             
            module Svix
         | 
| @@ -45,12 +54,18 @@ module Svix | |
| 45 54 | 
             
                class Brex < SvixConfigOut
         | 
| 46 55 | 
             
                end
         | 
| 47 56 |  | 
| 57 | 
            +
                class Checkbook < CheckbookConfigOut
         | 
| 58 | 
            +
                end
         | 
| 59 | 
            +
             | 
| 48 60 | 
             
                class Clerk < SvixConfigOut
         | 
| 49 61 | 
             
                end
         | 
| 50 62 |  | 
| 51 63 | 
             
                class Docusign < DocusignConfigOut
         | 
| 52 64 | 
             
                end
         | 
| 53 65 |  | 
| 66 | 
            +
                class Easypost < EasypostConfigOut
         | 
| 67 | 
            +
                end
         | 
| 68 | 
            +
             | 
| 54 69 | 
             
                class Github < GithubConfigOut
         | 
| 55 70 | 
             
                end
         | 
| 56 71 |  | 
| @@ -69,9 +84,15 @@ module Svix | |
| 69 84 | 
             
                class Nash < SvixConfigOut
         | 
| 70 85 | 
             
                end
         | 
| 71 86 |  | 
| 87 | 
            +
                class OrumIo < OrumIoConfigOut
         | 
| 88 | 
            +
                end
         | 
| 89 | 
            +
             | 
| 72 90 | 
             
                class PandaDoc < PandaDocConfigOut
         | 
| 73 91 | 
             
                end
         | 
| 74 92 |  | 
| 93 | 
            +
                class PortIo < PortIoConfigOut
         | 
| 94 | 
            +
                end
         | 
| 95 | 
            +
             | 
| 75 96 | 
             
                class Pleo < SvixConfigOut
         | 
| 76 97 | 
             
                end
         | 
| 77 98 |  | 
| @@ -81,6 +102,9 @@ module Svix | |
| 81 102 | 
             
                class Resend < SvixConfigOut
         | 
| 82 103 | 
             
                end
         | 
| 83 104 |  | 
| 105 | 
            +
                class Rutter < RutterConfigOut
         | 
| 106 | 
            +
                end
         | 
| 107 | 
            +
             | 
| 84 108 | 
             
                class Safebase < SvixConfigOut
         | 
| 85 109 | 
             
                end
         | 
| 86 110 |  | 
| @@ -107,6 +131,24 @@ module Svix | |
| 107 131 |  | 
| 108 132 | 
             
                class Zoom < ZoomConfigOut
         | 
| 109 133 | 
             
                end
         | 
| 134 | 
            +
             | 
| 135 | 
            +
                class Telnyx < TelnyxConfigOut
         | 
| 136 | 
            +
                end
         | 
| 137 | 
            +
             | 
| 138 | 
            +
                class Vapi < VapiConfigOut
         | 
| 139 | 
            +
                end
         | 
| 140 | 
            +
             | 
| 141 | 
            +
                class OpenAi < SvixConfigOut
         | 
| 142 | 
            +
                end
         | 
| 143 | 
            +
             | 
| 144 | 
            +
                class Render < SvixConfigOut
         | 
| 145 | 
            +
                end
         | 
| 146 | 
            +
             | 
| 147 | 
            +
                class Veriff < VeriffConfigOut
         | 
| 148 | 
            +
                end
         | 
| 149 | 
            +
             | 
| 150 | 
            +
                class Airwallex < AirwallexConfigOut
         | 
| 151 | 
            +
                end
         | 
| 110 152 | 
             
              end
         | 
| 111 153 |  | 
| 112 154 | 
             
              class IngestSourceOut
         | 
| @@ -114,13 +156,14 @@ module Svix | |
| 114 156 | 
             
                # The Source's ID.
         | 
| 115 157 | 
             
                attr_accessor :id
         | 
| 116 158 | 
             
                attr_accessor :ingest_url
         | 
| 159 | 
            +
                attr_accessor :metadata
         | 
| 117 160 | 
             
                attr_accessor :name
         | 
| 118 161 | 
             
                # The Source's UID.
         | 
| 119 162 | 
             
                attr_accessor :uid
         | 
| 120 163 | 
             
                attr_accessor :updated_at
         | 
| 121 164 | 
             
                attr_accessor :config
         | 
| 122 165 |  | 
| 123 | 
            -
                ALL_FIELD ||= ["created_at", "id", "ingest_url", "name", "uid", "updated_at", "config"].freeze
         | 
| 166 | 
            +
                ALL_FIELD ||= ["created_at", "id", "ingest_url", "metadata", "name", "uid", "updated_at", "config"].freeze
         | 
| 124 167 | 
             
                private_constant :ALL_FIELD
         | 
| 125 168 | 
             
                TYPE_TO_NAME = {
         | 
| 126 169 | 
             
                  IngestSourceOutConfig::GenericWebhook => "generic-webhook",
         | 
| @@ -128,18 +171,23 @@ module Svix | |
| 128 171 | 
             
                  IngestSourceOutConfig::AdobeSign => "adobe-sign",
         | 
| 129 172 | 
             
                  IngestSourceOutConfig::Beehiiv => "beehiiv",
         | 
| 130 173 | 
             
                  IngestSourceOutConfig::Brex => "brex",
         | 
| 174 | 
            +
                  IngestSourceOutConfig::Checkbook => "checkbook",
         | 
| 131 175 | 
             
                  IngestSourceOutConfig::Clerk => "clerk",
         | 
| 132 176 | 
             
                  IngestSourceOutConfig::Docusign => "docusign",
         | 
| 177 | 
            +
                  IngestSourceOutConfig::Easypost => "easypost",
         | 
| 133 178 | 
             
                  IngestSourceOutConfig::Github => "github",
         | 
| 134 179 | 
             
                  IngestSourceOutConfig::Guesty => "guesty",
         | 
| 135 180 | 
             
                  IngestSourceOutConfig::Hubspot => "hubspot",
         | 
| 136 181 | 
             
                  IngestSourceOutConfig::IncidentIo => "incident-io",
         | 
| 137 182 | 
             
                  IngestSourceOutConfig::Lithic => "lithic",
         | 
| 138 183 | 
             
                  IngestSourceOutConfig::Nash => "nash",
         | 
| 184 | 
            +
                  IngestSourceOutConfig::OrumIo => "orum-io",
         | 
| 139 185 | 
             
                  IngestSourceOutConfig::PandaDoc => "panda-doc",
         | 
| 186 | 
            +
                  IngestSourceOutConfig::PortIo => "port-io",
         | 
| 140 187 | 
             
                  IngestSourceOutConfig::Pleo => "pleo",
         | 
| 141 188 | 
             
                  IngestSourceOutConfig::Replicate => "replicate",
         | 
| 142 189 | 
             
                  IngestSourceOutConfig::Resend => "resend",
         | 
| 190 | 
            +
                  IngestSourceOutConfig::Rutter => "rutter",
         | 
| 143 191 | 
             
                  IngestSourceOutConfig::Safebase => "safebase",
         | 
| 144 192 | 
             
                  IngestSourceOutConfig::Sardine => "sardine",
         | 
| 145 193 | 
             
                  IngestSourceOutConfig::Segment => "segment",
         | 
| @@ -148,7 +196,13 @@ module Svix | |
| 148 196 | 
             
                  IngestSourceOutConfig::Stripe => "stripe",
         | 
| 149 197 | 
             
                  IngestSourceOutConfig::Stych => "stych",
         | 
| 150 198 | 
             
                  IngestSourceOutConfig::Svix => "svix",
         | 
| 151 | 
            -
                  IngestSourceOutConfig::Zoom => "zoom"
         | 
| 199 | 
            +
                  IngestSourceOutConfig::Zoom => "zoom",
         | 
| 200 | 
            +
                  IngestSourceOutConfig::Telnyx => "telnyx",
         | 
| 201 | 
            +
                  IngestSourceOutConfig::Vapi => "vapi",
         | 
| 202 | 
            +
                  IngestSourceOutConfig::OpenAi => "open-ai",
         | 
| 203 | 
            +
                  IngestSourceOutConfig::Render => "render",
         | 
| 204 | 
            +
                  IngestSourceOutConfig::Veriff => "veriff",
         | 
| 205 | 
            +
                  IngestSourceOutConfig::Airwallex => "airwallex"
         | 
| 152 206 | 
             
                }
         | 
| 153 207 | 
             
                private_constant :TYPE_TO_NAME
         | 
| 154 208 | 
             
                NAME_TO_TYPE = TYPE_TO_NAME.invert
         | 
| @@ -190,6 +244,7 @@ module Svix | |
| 190 244 | 
             
                  attrs["created_at"] = DateTime.rfc3339(attributes["createdAt"]).to_time
         | 
| 191 245 | 
             
                  attrs["id"] = attributes["id"]
         | 
| 192 246 | 
             
                  attrs["ingest_url"] = attributes["ingestUrl"]
         | 
| 247 | 
            +
                  attrs["metadata"] = attributes["metadata"]
         | 
| 193 248 | 
             
                  attrs["name"] = attributes["name"]
         | 
| 194 249 | 
             
                  attrs["uid"] = attributes["uid"]
         | 
| 195 250 | 
             
                  attrs["updated_at"] = DateTime.rfc3339(attributes["updatedAt"]).to_time
         | 
| @@ -210,6 +265,7 @@ module Svix | |
| 210 265 | 
             
                  out["createdAt"] = Svix::serialize_primitive(@created_at) if @created_at
         | 
| 211 266 | 
             
                  out["id"] = Svix::serialize_primitive(@id) if @id
         | 
| 212 267 | 
             
                  out["ingestUrl"] = Svix::serialize_primitive(@ingest_url) if @ingest_url
         | 
| 268 | 
            +
                  out["metadata"] = Svix::serialize_primitive(@metadata) if @metadata
         | 
| 213 269 | 
             
                  out["name"] = Svix::serialize_primitive(@name) if @name
         | 
| 214 270 | 
             
                  out["uid"] = Svix::serialize_primitive(@uid) if @uid
         | 
| 215 271 | 
             
                  out["updatedAt"] = Svix::serialize_primitive(@updated_at) if @updated_at
         | 
| @@ -0,0 +1,46 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
            # This file is @generated
         | 
| 3 | 
            +
            require "json"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Svix
         | 
| 6 | 
            +
              class OrumIoConfig
         | 
| 7 | 
            +
                attr_accessor :public_key
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                ALL_FIELD ||= ["public_key"].freeze
         | 
| 10 | 
            +
                private_constant :ALL_FIELD
         | 
| 11 | 
            +
             | 
| 12 | 
            +
                def initialize(attributes = {})
         | 
| 13 | 
            +
                  unless attributes.is_a?(Hash)
         | 
| 14 | 
            +
                    fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::OrumIoConfig` new method")
         | 
| 15 | 
            +
                  end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                  attributes.each do |k, v|
         | 
| 18 | 
            +
                    unless ALL_FIELD.include?(k.to_s)
         | 
| 19 | 
            +
                      fail(ArgumentError, "The field #{k} is not part of Svix::OrumIoConfig")
         | 
| 20 | 
            +
                    end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                    instance_variable_set("@#{k}", v)
         | 
| 23 | 
            +
                    instance_variable_set("@__#{k}_is_defined", true)
         | 
| 24 | 
            +
                  end
         | 
| 25 | 
            +
                end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
                def self.deserialize(attributes = {})
         | 
| 28 | 
            +
                  attributes = attributes.transform_keys(&:to_s)
         | 
| 29 | 
            +
                  attrs = Hash.new
         | 
| 30 | 
            +
                  attrs["public_key"] = attributes["publicKey"]
         | 
| 31 | 
            +
                  new(attrs)
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                def serialize
         | 
| 35 | 
            +
                  out = Hash.new
         | 
| 36 | 
            +
                  out["publicKey"] = Svix::serialize_primitive(@public_key) if @public_key
         | 
| 37 | 
            +
                  out
         | 
| 38 | 
            +
                end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                # Serializes the object to a json string
         | 
| 41 | 
            +
                # @return String
         | 
| 42 | 
            +
                def to_json
         | 
| 43 | 
            +
                  JSON.dump(serialize)
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
              end
         | 
| 46 | 
            +
            end
         | 
| @@ -0,0 +1,46 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
            # This file is @generated
         | 
| 3 | 
            +
            require "json"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Svix
         | 
| 6 | 
            +
              class OrumIoConfigOut
         | 
| 7 | 
            +
                attr_accessor :public_key
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                ALL_FIELD ||= ["public_key"].freeze
         | 
| 10 | 
            +
                private_constant :ALL_FIELD
         | 
| 11 | 
            +
             | 
| 12 | 
            +
                def initialize(attributes = {})
         | 
| 13 | 
            +
                  unless attributes.is_a?(Hash)
         | 
| 14 | 
            +
                    fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::OrumIoConfigOut` new method")
         | 
| 15 | 
            +
                  end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                  attributes.each do |k, v|
         | 
| 18 | 
            +
                    unless ALL_FIELD.include?(k.to_s)
         | 
| 19 | 
            +
                      fail(ArgumentError, "The field #{k} is not part of Svix::OrumIoConfigOut")
         | 
| 20 | 
            +
                    end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                    instance_variable_set("@#{k}", v)
         | 
| 23 | 
            +
                    instance_variable_set("@__#{k}_is_defined", true)
         | 
| 24 | 
            +
                  end
         | 
| 25 | 
            +
                end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
                def self.deserialize(attributes = {})
         | 
| 28 | 
            +
                  attributes = attributes.transform_keys(&:to_s)
         | 
| 29 | 
            +
                  attrs = Hash.new
         | 
| 30 | 
            +
                  attrs["public_key"] = attributes["publicKey"]
         | 
| 31 | 
            +
                  new(attrs)
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                def serialize
         | 
| 35 | 
            +
                  out = Hash.new
         | 
| 36 | 
            +
                  out["publicKey"] = Svix::serialize_primitive(@public_key) if @public_key
         | 
| 37 | 
            +
                  out
         | 
| 38 | 
            +
                end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                # Serializes the object to a json string
         | 
| 41 | 
            +
                # @return String
         | 
| 42 | 
            +
                def to_json
         | 
| 43 | 
            +
                  JSON.dump(serialize)
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
              end
         | 
| 46 | 
            +
            end
         | 
| @@ -0,0 +1,46 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
            # This file is @generated
         | 
| 3 | 
            +
            require "json"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Svix
         | 
| 6 | 
            +
              class PortIoConfig
         | 
| 7 | 
            +
                attr_accessor :secret
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                ALL_FIELD ||= ["secret"].freeze
         | 
| 10 | 
            +
                private_constant :ALL_FIELD
         | 
| 11 | 
            +
             | 
| 12 | 
            +
                def initialize(attributes = {})
         | 
| 13 | 
            +
                  unless attributes.is_a?(Hash)
         | 
| 14 | 
            +
                    fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::PortIoConfig` new method")
         | 
| 15 | 
            +
                  end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                  attributes.each do |k, v|
         | 
| 18 | 
            +
                    unless ALL_FIELD.include?(k.to_s)
         | 
| 19 | 
            +
                      fail(ArgumentError, "The field #{k} is not part of Svix::PortIoConfig")
         | 
| 20 | 
            +
                    end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                    instance_variable_set("@#{k}", v)
         | 
| 23 | 
            +
                    instance_variable_set("@__#{k}_is_defined", true)
         | 
| 24 | 
            +
                  end
         | 
| 25 | 
            +
                end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
                def self.deserialize(attributes = {})
         | 
| 28 | 
            +
                  attributes = attributes.transform_keys(&:to_s)
         | 
| 29 | 
            +
                  attrs = Hash.new
         | 
| 30 | 
            +
                  attrs["secret"] = attributes["secret"]
         | 
| 31 | 
            +
                  new(attrs)
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                def serialize
         | 
| 35 | 
            +
                  out = Hash.new
         | 
| 36 | 
            +
                  out["secret"] = Svix::serialize_primitive(@secret) if @secret
         | 
| 37 | 
            +
                  out
         | 
| 38 | 
            +
                end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                # Serializes the object to a json string
         | 
| 41 | 
            +
                # @return String
         | 
| 42 | 
            +
                def to_json
         | 
| 43 | 
            +
                  JSON.dump(serialize)
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
              end
         | 
| 46 | 
            +
            end
         | 
| @@ -0,0 +1,43 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
            # This file is @generated
         | 
| 3 | 
            +
            require "json"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Svix
         | 
| 6 | 
            +
              class PortIoConfigOut
         | 
| 7 | 
            +
             | 
| 8 | 
            +
                ALL_FIELD ||= [].freeze
         | 
| 9 | 
            +
                private_constant :ALL_FIELD
         | 
| 10 | 
            +
             | 
| 11 | 
            +
                def initialize(attributes = {})
         | 
| 12 | 
            +
                  unless attributes.is_a?(Hash)
         | 
| 13 | 
            +
                    fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::PortIoConfigOut` new method")
         | 
| 14 | 
            +
                  end
         | 
| 15 | 
            +
             | 
| 16 | 
            +
                  attributes.each do |k, v|
         | 
| 17 | 
            +
                    unless ALL_FIELD.include?(k.to_s)
         | 
| 18 | 
            +
                      fail(ArgumentError, "The field #{k} is not part of Svix::PortIoConfigOut")
         | 
| 19 | 
            +
                    end
         | 
| 20 | 
            +
             | 
| 21 | 
            +
                    instance_variable_set("@#{k}", v)
         | 
| 22 | 
            +
                    instance_variable_set("@__#{k}_is_defined", true)
         | 
| 23 | 
            +
                  end
         | 
| 24 | 
            +
                end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
                def self.deserialize(attributes = {})
         | 
| 27 | 
            +
                  attributes = attributes.transform_keys(&:to_s)
         | 
| 28 | 
            +
                  attrs = Hash.new
         | 
| 29 | 
            +
                  new(attrs)
         | 
| 30 | 
            +
                end
         | 
| 31 | 
            +
             | 
| 32 | 
            +
                def serialize
         | 
| 33 | 
            +
                  out = Hash.new
         | 
| 34 | 
            +
                  out
         | 
| 35 | 
            +
                end
         | 
| 36 | 
            +
             | 
| 37 | 
            +
                # Serializes the object to a json string
         | 
| 38 | 
            +
                # @return String
         | 
| 39 | 
            +
                def to_json
         | 
| 40 | 
            +
                  JSON.dump(serialize)
         | 
| 41 | 
            +
                end
         | 
| 42 | 
            +
              end
         | 
| 43 | 
            +
            end
         | 
| @@ -0,0 +1,46 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
            # This file is @generated
         | 
| 3 | 
            +
            require "json"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Svix
         | 
| 6 | 
            +
              class RutterConfig
         | 
| 7 | 
            +
                attr_accessor :secret
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                ALL_FIELD ||= ["secret"].freeze
         | 
| 10 | 
            +
                private_constant :ALL_FIELD
         | 
| 11 | 
            +
             | 
| 12 | 
            +
                def initialize(attributes = {})
         | 
| 13 | 
            +
                  unless attributes.is_a?(Hash)
         | 
| 14 | 
            +
                    fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::RutterConfig` new method")
         | 
| 15 | 
            +
                  end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                  attributes.each do |k, v|
         | 
| 18 | 
            +
                    unless ALL_FIELD.include?(k.to_s)
         | 
| 19 | 
            +
                      fail(ArgumentError, "The field #{k} is not part of Svix::RutterConfig")
         | 
| 20 | 
            +
                    end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                    instance_variable_set("@#{k}", v)
         | 
| 23 | 
            +
                    instance_variable_set("@__#{k}_is_defined", true)
         | 
| 24 | 
            +
                  end
         | 
| 25 | 
            +
                end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
                def self.deserialize(attributes = {})
         | 
| 28 | 
            +
                  attributes = attributes.transform_keys(&:to_s)
         | 
| 29 | 
            +
                  attrs = Hash.new
         | 
| 30 | 
            +
                  attrs["secret"] = attributes["secret"]
         | 
| 31 | 
            +
                  new(attrs)
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                def serialize
         | 
| 35 | 
            +
                  out = Hash.new
         | 
| 36 | 
            +
                  out["secret"] = Svix::serialize_primitive(@secret) if @secret
         | 
| 37 | 
            +
                  out
         | 
| 38 | 
            +
                end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                # Serializes the object to a json string
         | 
| 41 | 
            +
                # @return String
         | 
| 42 | 
            +
                def to_json
         | 
| 43 | 
            +
                  JSON.dump(serialize)
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
              end
         | 
| 46 | 
            +
            end
         | 
| @@ -0,0 +1,43 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
            # This file is @generated
         | 
| 3 | 
            +
            require "json"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Svix
         | 
| 6 | 
            +
              class RutterConfigOut
         | 
| 7 | 
            +
             | 
| 8 | 
            +
                ALL_FIELD ||= [].freeze
         | 
| 9 | 
            +
                private_constant :ALL_FIELD
         | 
| 10 | 
            +
             | 
| 11 | 
            +
                def initialize(attributes = {})
         | 
| 12 | 
            +
                  unless attributes.is_a?(Hash)
         | 
| 13 | 
            +
                    fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::RutterConfigOut` new method")
         | 
| 14 | 
            +
                  end
         | 
| 15 | 
            +
             | 
| 16 | 
            +
                  attributes.each do |k, v|
         | 
| 17 | 
            +
                    unless ALL_FIELD.include?(k.to_s)
         | 
| 18 | 
            +
                      fail(ArgumentError, "The field #{k} is not part of Svix::RutterConfigOut")
         | 
| 19 | 
            +
                    end
         | 
| 20 | 
            +
             | 
| 21 | 
            +
                    instance_variable_set("@#{k}", v)
         | 
| 22 | 
            +
                    instance_variable_set("@__#{k}_is_defined", true)
         | 
| 23 | 
            +
                  end
         | 
| 24 | 
            +
                end
         | 
| 25 | 
            +
             | 
| 26 | 
            +
                def self.deserialize(attributes = {})
         | 
| 27 | 
            +
                  attributes = attributes.transform_keys(&:to_s)
         | 
| 28 | 
            +
                  attrs = Hash.new
         | 
| 29 | 
            +
                  new(attrs)
         | 
| 30 | 
            +
                end
         | 
| 31 | 
            +
             | 
| 32 | 
            +
                def serialize
         | 
| 33 | 
            +
                  out = Hash.new
         | 
| 34 | 
            +
                  out
         | 
| 35 | 
            +
                end
         | 
| 36 | 
            +
             | 
| 37 | 
            +
                # Serializes the object to a json string
         | 
| 38 | 
            +
                # @return String
         | 
| 39 | 
            +
                def to_json
         | 
| 40 | 
            +
                  JSON.dump(serialize)
         | 
| 41 | 
            +
                end
         | 
| 42 | 
            +
              end
         | 
| 43 | 
            +
            end
         | 
| @@ -0,0 +1,46 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
            # This file is @generated
         | 
| 3 | 
            +
            require "json"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            module Svix
         | 
| 6 | 
            +
              class TelnyxConfig
         | 
| 7 | 
            +
                attr_accessor :public_key
         | 
| 8 | 
            +
             | 
| 9 | 
            +
                ALL_FIELD ||= ["public_key"].freeze
         | 
| 10 | 
            +
                private_constant :ALL_FIELD
         | 
| 11 | 
            +
             | 
| 12 | 
            +
                def initialize(attributes = {})
         | 
| 13 | 
            +
                  unless attributes.is_a?(Hash)
         | 
| 14 | 
            +
                    fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::TelnyxConfig` new method")
         | 
| 15 | 
            +
                  end
         | 
| 16 | 
            +
             | 
| 17 | 
            +
                  attributes.each do |k, v|
         | 
| 18 | 
            +
                    unless ALL_FIELD.include?(k.to_s)
         | 
| 19 | 
            +
                      fail(ArgumentError, "The field #{k} is not part of Svix::TelnyxConfig")
         | 
| 20 | 
            +
                    end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                    instance_variable_set("@#{k}", v)
         | 
| 23 | 
            +
                    instance_variable_set("@__#{k}_is_defined", true)
         | 
| 24 | 
            +
                  end
         | 
| 25 | 
            +
                end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
                def self.deserialize(attributes = {})
         | 
| 28 | 
            +
                  attributes = attributes.transform_keys(&:to_s)
         | 
| 29 | 
            +
                  attrs = Hash.new
         | 
| 30 | 
            +
                  attrs["public_key"] = attributes["publicKey"]
         | 
| 31 | 
            +
                  new(attrs)
         | 
| 32 | 
            +
                end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                def serialize
         | 
| 35 | 
            +
                  out = Hash.new
         | 
| 36 | 
            +
                  out["publicKey"] = Svix::serialize_primitive(@public_key) if @public_key
         | 
| 37 | 
            +
                  out
         | 
| 38 | 
            +
                end
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                # Serializes the object to a json string
         | 
| 41 | 
            +
                # @return String
         | 
| 42 | 
            +
                def to_json
         | 
| 43 | 
            +
                  JSON.dump(serialize)
         | 
| 44 | 
            +
                end
         | 
| 45 | 
            +
              end
         | 
| 46 | 
            +
            end
         |