svix 1.64.0 → 1.64.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: b76624b06f12f51b77c0232a574290122592c3b344119a6ace2dfe3656aa0e3b
4
- data.tar.gz: df17ed07bc81413e2de251235d8ca3df54a6fff1af4975a29e11f2cadd3981fc
3
+ metadata.gz: a1b7773e171e2278071f12bb0255f7648c8932bca4049efdb64cc2db6aa81512
4
+ data.tar.gz: cd4440aa2761fd3f1a087d00241e1b1ae19c4621d4132b3a8ea7469800398a8c
5
5
  SHA512:
6
- metadata.gz: 70e1e2c3e2b6ec40257501efe3310215af4a61d897d191f833fa12e0ca734b5694730f9f4fb8af3a956f04bf5fc357f70b7cfd412e924a8c1a4585de758209ef
7
- data.tar.gz: 441008eec2769f0f3a4f688a87e286eee762dd44ffee4e5d5301499d1cddccfea97c10b70f371fe2170b43c136276d81baa23a7769c7ea49c25d6ccc82a5dd6d
6
+ metadata.gz: 78850d4d985e876fb159fa8d90e9b3fa496e356d022d9e3863a64bbda2843283f9693bf08cd01efce907d820eb299c6f6fdb7deaee8d82d41d848039746bff04
7
+ data.tar.gz: edfdd88de30d18a51e327c3d61fa236f5a4c299b510cfb4ae1cdc1ae8655aeddf8b3d1e65ee9646c4f8a2625f85985bc799480c0d05e55aaec7fc56edbb3505b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.64.0)
4
+ svix (1.64.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -33,8 +33,10 @@ module Svix
33
33
  end
34
34
 
35
35
  class Message
36
+ attr_accessor :poller
36
37
  def initialize(client)
37
38
  @client = client
39
+ @poller = MessagePoller.new(client)
38
40
  end
39
41
 
40
42
  def list(app_id, options = {})
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+
4
+ require "net/http"
5
+
6
+ module Svix
7
+ class MessagePoller
8
+ def initialize(client)
9
+ @client = client
10
+ end
11
+
12
+ def poll(app_id, sink_id, options = {})
13
+ options = options.transform_keys(&:to_s)
14
+ res = @client.execute_request(
15
+ "GET",
16
+ "/api/v1/app/#{app_id}/poller/#{sink_id}",
17
+ query_params: {
18
+ "limit" => options["limit"],
19
+ "iterator" => options["iterator"],
20
+ "event_type" => options["event_type"],
21
+ "channel" => options["channel"],
22
+ "after" => options["after"]
23
+ }
24
+ )
25
+ PollingEndpointOut.deserialize(res)
26
+ end
27
+
28
+ def consumer_poll(app_id, sink_id, consumer_id, options = {})
29
+ options = options.transform_keys(&:to_s)
30
+ res = @client.execute_request(
31
+ "GET",
32
+ "/api/v1/app/#{app_id}/poller/#{sink_id}/consumer/#{consumer_id}",
33
+ query_params: {
34
+ "limit" => options["limit"],
35
+ "iterator" => options["iterator"],
36
+ "event_type" => options["event_type"],
37
+ "channel" => options["channel"]
38
+ }
39
+ )
40
+ PollingEndpointOut.deserialize(res)
41
+ end
42
+
43
+ def consumer_seek(app_id, sink_id, consumer_id, polling_endpoint_consumer_seek_in, options = {})
44
+ options = options.transform_keys(&:to_s)
45
+ res = @client.execute_request(
46
+ "POST",
47
+ "/api/v1/app/#{app_id}/poller/#{sink_id}/consumer/#{consumer_id}/seek",
48
+ headers: {
49
+ "idempotency-key" => options["idempotency-key"]
50
+ },
51
+ body: polling_endpoint_consumer_seek_in
52
+ )
53
+ PollingEndpointConsumerSeekOut.deserialize(res)
54
+ end
55
+
56
+ end
57
+ 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.64.0"
4
+ VERSION = "1.64.1"
5
5
  end
data/lib/svix.rb CHANGED
@@ -14,7 +14,6 @@ require "svix/api/background_task"
14
14
  require "svix/api/endpoint"
15
15
  require "svix/api/environment"
16
16
  require "svix/api/event_type"
17
- require "svix/api/events_public"
18
17
  require "svix/api/health"
19
18
  require "svix/api/ingest"
20
19
  require "svix/api/ingest_endpoint"
@@ -23,6 +22,7 @@ require "svix/api/integration"
23
22
  require "svix/api/management"
24
23
  require "svix/api/management_authentication"
25
24
  require "svix/api/message"
25
+ require "svix/api/message_poller"
26
26
  require "svix/api/message_attempt"
27
27
  require "svix/api/operational_webhook"
28
28
  require "svix/api/operational_webhook_endpoint"
@@ -0,0 +1,11 @@
1
+ def dashboard_access(app_id, options = {})
2
+ options = options.transform_keys(&:to_s)
3
+ res = @client.execute_request(
4
+ "POST",
5
+ "/api/v1/auth/dashboard-access/#{app_id}",
6
+ headers: {
7
+ "idempotency-key" => options["idempotency-key"]
8
+ }
9
+ )
10
+ DashboardAccessOut.deserialize(res)
11
+ end
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.64.0
4
+ version: 1.64.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-10 00:00:00.000000000 Z
10
+ date: 2025-04-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake
@@ -79,6 +79,7 @@ files:
79
79
  - lib/svix/api/management_authentication.rb
80
80
  - lib/svix/api/message.rb
81
81
  - lib/svix/api/message_attempt.rb
82
+ - lib/svix/api/message_poller.rb
82
83
  - lib/svix/api/operational_webhook.rb
83
84
  - lib/svix/api/operational_webhook_endpoint.rb
84
85
  - lib/svix/api/statistics.rb
@@ -234,6 +235,7 @@ files:
234
235
  - lib/svix/webhook.rb
235
236
  - svix.gemspec
236
237
  - templates/api_extra/application_create.rb
238
+ - templates/api_extra/authentication_expire_all.rb
237
239
  - templates/api_extra/message.rb
238
240
  - templates/api_resource.rb.jinja
239
241
  - templates/component_type.rb.jinja