svix 1.70.0 → 1.70.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6864acc5abe806fd408f691d1b1682ea21bf314f35c7f07dcfb0df62f4ebd089
4
- data.tar.gz: 62b4b0fe49b253b0c962bfacaa981183749493bbe1699beea481b0d39eccdae0
3
+ metadata.gz: bc5c5ebe27f3b6c5374e5fada390751d6d6dd6c891b419135c4883b7be06fe5b
4
+ data.tar.gz: b17b3aa5ce714143164a7413bee76a94b4138ef68d696049af2c9032cefa4d03
5
5
  SHA512:
6
- metadata.gz: 935bafb5bf1a3a0410a3862d46ee0c00deb5cf7d672a7a3b569033a70b8d16381756d0bf34ffbef64f1eaa1f4b57b47943979d84fa6ca92cd929c5805cb7b72f
7
- data.tar.gz: 6cf7143084a624ececba56124f0f05a49d9c1c14cff3e8a8c84b7526c546ef57c777b5cc79a1ec92ca803db7d0040c4b51afa70a5983a4a790a7b919944521f3
6
+ metadata.gz: f089fa61e6b58578ab082921ec3d5cbf113a5f5866f6d986197fc4e1a809ca08cc7f66bf39a0e15cbd69229475b6e471d368d957a33e66e8bfa03eddc4de23fe
7
+ data.tar.gz: 89b5ddc4c5cd72f6a80e36a3971c0e3c4bbdcbc1cc5bd76798cfb4797cda8cce254187dacd79d2cf51db2c15763c23e6fd957cda67479724aaac903ec65d175f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.70.0)
4
+ svix (1.70.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -181,5 +181,13 @@ module Svix
181
181
  )
182
182
  end
183
183
 
184
+ def transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in)
185
+ @client.execute_request(
186
+ "PATCH",
187
+ "/api/v1/app/#{app_id}/endpoint/#{endpoint_id}/transformation",
188
+ body: endpoint_transformation_in
189
+ )
190
+ end
191
+
184
192
  end
185
193
  end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class EndpointTransformationIn
7
+ attr_accessor :code
8
+ attr_accessor :enabled
9
+
10
+ ALL_FIELD ||= ["code", "enabled"].freeze
11
+ private_constant :ALL_FIELD
12
+
13
+ def initialize(attributes = {})
14
+ unless attributes.is_a?(Hash)
15
+ fail(
16
+ ArgumentError,
17
+ "The input argument (attributes) must be a hash in `Svix::EndpointTransformationIn` new method"
18
+ )
19
+ end
20
+
21
+ attributes.each do |k, v|
22
+ unless ALL_FIELD.include?(k.to_s)
23
+ fail(ArgumentError, "The field #{k} is not part of Svix::EndpointTransformationIn")
24
+ end
25
+
26
+ instance_variable_set("@#{k}", v)
27
+ instance_variable_set("@__#{k}_is_defined", true)
28
+ end
29
+ end
30
+
31
+ def self.deserialize(attributes = {})
32
+ attributes = attributes.transform_keys(&:to_s)
33
+ attrs = Hash.new
34
+ attrs["code"] = attributes["code"]
35
+ attrs["enabled"] = attributes["enabled"]
36
+ new(attrs)
37
+ end
38
+
39
+ def serialize
40
+ out = Hash.new
41
+ out["code"] = Svix::serialize_primitive(@code) if @code
42
+ out["enabled"] = Svix::serialize_primitive(@enabled) if @enabled
43
+ out
44
+ end
45
+
46
+ # Serializes the object to a json string
47
+ # @return String
48
+ def to_json
49
+ JSON.dump(serialize)
50
+ end
51
+ end
52
+ end
data/lib/svix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "1.70.0"
4
+ VERSION = "1.70.1"
5
5
  end
data/lib/svix.rb CHANGED
@@ -75,6 +75,7 @@ require "svix/models/endpoint_patch"
75
75
  require "svix/models/endpoint_secret_out"
76
76
  require "svix/models/endpoint_secret_rotate_in"
77
77
  require "svix/models/endpoint_stats"
78
+ require "svix/models/endpoint_transformation_in"
78
79
  require "svix/models/endpoint_transformation_out"
79
80
  require "svix/models/endpoint_transformation_patch"
80
81
  require "svix/models/endpoint_update"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.70.0
4
+ version: 1.70.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-08-01 00:00:00.000000000 Z
10
+ date: 2025-08-06 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake
@@ -133,6 +133,7 @@ files:
133
133
  - lib/svix/models/endpoint_secret_out.rb
134
134
  - lib/svix/models/endpoint_secret_rotate_in.rb
135
135
  - lib/svix/models/endpoint_stats.rb
136
+ - lib/svix/models/endpoint_transformation_in.rb
136
137
  - lib/svix/models/endpoint_transformation_out.rb
137
138
  - lib/svix/models/endpoint_transformation_patch.rb
138
139
  - lib/svix/models/endpoint_update.rb