svix 1.85.0 → 1.86.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 278491df18f0895da7e790f71871c39cb687dd0e192397d3a4273017518176bb
4
- data.tar.gz: 3f965506885983e34febc7fc7f6a86df92dd8282db2ca525a2aa598f4d034c1e
3
+ metadata.gz: 1c22d5c19407d046cf3310eaeeff4043cd440e26d4e68e62840dc2d426901588
4
+ data.tar.gz: ac65a37cea5e167a078d49de4ecf0d1b109fa006a4f5cded53a56ad87c33b901
5
5
  SHA512:
6
- metadata.gz: b8971940ad382e7952d2f4a4145ed3209814683f8d5a9977d3866455bd852b9e611873f8dfd53fc18f04fa1a3e3f4d10b9639e2357f1390dde6907b02a5c2958
7
- data.tar.gz: 6f9c261b1f9adc5051425250d009540fe550f00188c992036da0e30e3f219cc456bffa4a265f01f0a55268d2023b16a70200a9453c22c3a32075864115c12fff
6
+ metadata.gz: 169d7fd05c4c2f681a5c4e27359c757a373dd985375fde5e4e8971ddbbf62ee21367b61f82025b40d1542d563c431a37601201fb40b42905b001f9e1f127687e
7
+ data.tar.gz: 8bbf3d44e854832fd49ef046c9148a25c42d7dc64b23a930a3bcd95667796e35a53d14cba2a511be8d4a9e55b74966b7924930119641596b25a2dc9d06877fe6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.85.0)
4
+ svix (1.86.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -86,6 +86,19 @@ module Svix
86
86
  ExpungeAllContentsOut.deserialize(res)
87
87
  end
88
88
 
89
+ def precheck(app_id, message_precheck_in, options = {})
90
+ options = options.transform_keys(&:to_s)
91
+ res = @client.execute_request(
92
+ "POST",
93
+ "/api/v1/app/#{app_id}/msg/precheck/active",
94
+ headers: {
95
+ "idempotency-key" => options["idempotency-key"]
96
+ },
97
+ body: message_precheck_in
98
+ )
99
+ MessagePrecheckOut.deserialize(res)
100
+ end
101
+
89
102
  def get(app_id, msg_id, options = {})
90
103
  options = options.transform_keys(&:to_s)
91
104
  res = @client.execute_request(
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class MessagePrecheckIn
7
+ attr_accessor :channels
8
+ # The event type's name
9
+ attr_accessor :event_type
10
+
11
+ ALL_FIELD ||= ["channels", "event_type"].freeze
12
+ private_constant :ALL_FIELD
13
+
14
+ def initialize(attributes = {})
15
+ unless attributes.is_a?(Hash)
16
+ fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::MessagePrecheckIn` new method")
17
+ end
18
+
19
+ attributes.each do |k, v|
20
+ unless ALL_FIELD.include?(k.to_s)
21
+ fail(ArgumentError, "The field #{k} is not part of Svix::MessagePrecheckIn")
22
+ end
23
+
24
+ instance_variable_set("@#{k}", v)
25
+ instance_variable_set("@__#{k}_is_defined", true)
26
+ end
27
+ end
28
+
29
+ def self.deserialize(attributes = {})
30
+ attributes = attributes.transform_keys(&:to_s)
31
+ attrs = Hash.new
32
+ attrs["channels"] = attributes["channels"]
33
+ attrs["event_type"] = attributes["eventType"]
34
+ new(attrs)
35
+ end
36
+
37
+ def serialize
38
+ out = Hash.new
39
+ out["channels"] = Svix::serialize_primitive(@channels) if @channels
40
+ out["eventType"] = Svix::serialize_primitive(@event_type) if @event_type
41
+ out
42
+ end
43
+
44
+ # Serializes the object to a json string
45
+ # @return String
46
+ def to_json
47
+ JSON.dump(serialize)
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class MessagePrecheckOut
7
+ # Whether there are any active endpoint that would get sent such a message.
8
+ attr_accessor :active
9
+
10
+ ALL_FIELD ||= ["active"].freeze
11
+ private_constant :ALL_FIELD
12
+
13
+ def initialize(attributes = {})
14
+ unless attributes.is_a?(Hash)
15
+ fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::MessagePrecheckOut` new method")
16
+ end
17
+
18
+ attributes.each do |k, v|
19
+ unless ALL_FIELD.include?(k.to_s)
20
+ fail(ArgumentError, "The field #{k} is not part of Svix::MessagePrecheckOut")
21
+ end
22
+
23
+ instance_variable_set("@#{k}", v)
24
+ instance_variable_set("@__#{k}_is_defined", true)
25
+ end
26
+ end
27
+
28
+ def self.deserialize(attributes = {})
29
+ attributes = attributes.transform_keys(&:to_s)
30
+ attrs = Hash.new
31
+ attrs["active"] = attributes["active"]
32
+ new(attrs)
33
+ end
34
+
35
+ def serialize
36
+ out = Hash.new
37
+ out["active"] = Svix::serialize_primitive(@active) if @active
38
+ out
39
+ end
40
+
41
+ # Serializes the object to a json string
42
+ # @return String
43
+ def to_json
44
+ JSON.dump(serialize)
45
+ end
46
+ end
47
+ 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.85.0"
4
+ VERSION = "1.86.0"
5
5
  end
data/lib/svix.rb CHANGED
@@ -176,6 +176,8 @@ require "svix/models/message_attempt_trigger_type"
176
176
  require "svix/models/message_endpoint_out"
177
177
  require "svix/models/message_in"
178
178
  require "svix/models/message_out"
179
+ require "svix/models/message_precheck_in"
180
+ require "svix/models/message_precheck_out"
179
181
  require "svix/models/message_status"
180
182
  require "svix/models/message_status_text"
181
183
  require "svix/models/operational_webhook_endpoint_headers_in"
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.85.0
4
+ version: 1.86.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-02-12 00:00:00.000000000 Z
10
+ date: 2026-02-23 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake
@@ -234,6 +234,8 @@ files:
234
234
  - lib/svix/models/message_endpoint_out.rb
235
235
  - lib/svix/models/message_in.rb
236
236
  - lib/svix/models/message_out.rb
237
+ - lib/svix/models/message_precheck_in.rb
238
+ - lib/svix/models/message_precheck_out.rb
237
239
  - lib/svix/models/message_status.rb
238
240
  - lib/svix/models/message_status_text.rb
239
241
  - lib/svix/models/operational_webhook_endpoint_headers_in.rb