zavudev 0.14.0 → 0.16.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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +7 -7
  4. data/lib/zavudev/models/broadcast_channel.rb +0 -3
  5. data/lib/zavudev/models/channel.rb +5 -1
  6. data/lib/zavudev/models/contact_channel.rb +1 -0
  7. data/lib/zavudev/models/contact_create_params.rb +1 -0
  8. data/lib/zavudev/models/contacts/channel_add_params.rb +1 -0
  9. data/lib/zavudev/models/invitation.rb +27 -1
  10. data/lib/zavudev/models/invitation_create_params.rb +28 -1
  11. data/lib/zavudev/models/message.rb +12 -8
  12. data/lib/zavudev/models/message_list_params.rb +40 -7
  13. data/lib/zavudev/models/message_send_params.rb +6 -3
  14. data/lib/zavudev/models/phone_number_type.rb +1 -1
  15. data/lib/zavudev/models/url_list_verified_params.rb +1 -0
  16. data/lib/zavudev/models/verified_url.rb +1 -0
  17. data/lib/zavudev/models.rb +0 -12
  18. data/lib/zavudev/resources/exports.rb +0 -75
  19. data/lib/zavudev/resources/invitations.rb +15 -4
  20. data/lib/zavudev/resources/messages.rb +3 -3
  21. data/lib/zavudev/resources/plan.rb +0 -19
  22. data/lib/zavudev/resources/usage.rb +0 -19
  23. data/lib/zavudev/version.rb +1 -1
  24. data/lib/zavudev.rb +0 -10
  25. data/rbi/zavudev/models/broadcast_channel.rbi +0 -3
  26. data/rbi/zavudev/models/channel.rbi +5 -1
  27. data/rbi/zavudev/models/contact_channel.rbi +2 -0
  28. data/rbi/zavudev/models/contact_create_params.rbi +5 -0
  29. data/rbi/zavudev/models/contacts/channel_add_params.rbi +5 -0
  30. data/rbi/zavudev/models/invitation.rbi +48 -0
  31. data/rbi/zavudev/models/invitation_create_params.rbi +63 -0
  32. data/rbi/zavudev/models/message.rbi +16 -8
  33. data/rbi/zavudev/models/message_list_params.rbi +74 -10
  34. data/rbi/zavudev/models/message_send_params.rbi +10 -4
  35. data/rbi/zavudev/models/phone_number_type.rbi +1 -1
  36. data/rbi/zavudev/models/url_list_verified_params.rbi +5 -0
  37. data/rbi/zavudev/models/verified_url.rbi +2 -0
  38. data/rbi/zavudev/models.rbi +0 -12
  39. data/rbi/zavudev/resources/exports.rbi +0 -50
  40. data/rbi/zavudev/resources/invitations.rbi +19 -3
  41. data/rbi/zavudev/resources/messages.rbi +9 -5
  42. data/rbi/zavudev/resources/plan.rbi +0 -10
  43. data/rbi/zavudev/resources/usage.rbi +0 -10
  44. data/sig/zavudev/models/broadcast_channel.rbs +1 -12
  45. data/sig/zavudev/models/channel.rbs +2 -0
  46. data/sig/zavudev/models/contact_channel.rbs +3 -1
  47. data/sig/zavudev/models/contact_create_params.rbs +8 -1
  48. data/sig/zavudev/models/contacts/channel_add_params.rbs +8 -1
  49. data/sig/zavudev/models/invitation.rbs +20 -0
  50. data/sig/zavudev/models/invitation_create_params.rbs +20 -0
  51. data/sig/zavudev/models/message_list_params.rbs +54 -11
  52. data/sig/zavudev/models/phone_number_type.rbs +2 -2
  53. data/sig/zavudev/models/url_list_verified_params.rbs +2 -1
  54. data/sig/zavudev/models/verified_url.rbs +2 -1
  55. data/sig/zavudev/models.rbs +0 -12
  56. data/sig/zavudev/resources/exports.rbs +0 -19
  57. data/sig/zavudev/resources/invitations.rbs +1 -0
  58. data/sig/zavudev/resources/messages.rbs +2 -2
  59. data/sig/zavudev/resources/plan.rbs +0 -4
  60. data/sig/zavudev/resources/usage.rbs +0 -4
  61. metadata +2 -32
  62. data/lib/zavudev/models/data_export.rb +0 -122
  63. data/lib/zavudev/models/export_create_params.rb +0 -54
  64. data/lib/zavudev/models/export_create_response.rb +0 -16
  65. data/lib/zavudev/models/export_list_params.rb +0 -49
  66. data/lib/zavudev/models/export_retrieve_params.rb +0 -20
  67. data/lib/zavudev/models/export_retrieve_response.rb +0 -16
  68. data/lib/zavudev/models/plan_retrieve_params.rb +0 -14
  69. data/lib/zavudev/models/plan_retrieve_response.rb +0 -155
  70. data/lib/zavudev/models/usage_retrieve_params.rb +0 -14
  71. data/lib/zavudev/models/usage_retrieve_response.rb +0 -77
  72. data/rbi/zavudev/models/data_export.rbi +0 -151
  73. data/rbi/zavudev/models/export_create_params.rbi +0 -106
  74. data/rbi/zavudev/models/export_create_response.rbi +0 -31
  75. data/rbi/zavudev/models/export_list_params.rbi +0 -89
  76. data/rbi/zavudev/models/export_retrieve_params.rbi +0 -35
  77. data/rbi/zavudev/models/export_retrieve_response.rbi +0 -31
  78. data/rbi/zavudev/models/plan_retrieve_params.rbi +0 -27
  79. data/rbi/zavudev/models/plan_retrieve_response.rbi +0 -306
  80. data/rbi/zavudev/models/usage_retrieve_params.rbi +0 -27
  81. data/rbi/zavudev/models/usage_retrieve_response.rbi +0 -150
  82. data/sig/zavudev/models/data_export.rbs +0 -102
  83. data/sig/zavudev/models/export_create_params.rbs +0 -59
  84. data/sig/zavudev/models/export_create_response.rbs +0 -13
  85. data/sig/zavudev/models/export_list_params.rbs +0 -57
  86. data/sig/zavudev/models/export_retrieve_params.rbs +0 -23
  87. data/sig/zavudev/models/export_retrieve_response.rbs +0 -13
  88. data/sig/zavudev/models/plan_retrieve_params.rbs +0 -15
  89. data/sig/zavudev/models/plan_retrieve_response.rbs +0 -158
  90. data/sig/zavudev/models/usage_retrieve_params.rbs +0 -15
  91. data/sig/zavudev/models/usage_retrieve_response.rbs +0 -69
@@ -3,15 +3,26 @@
3
3
  module Zavudev
4
4
  module Resources
5
5
  class Invitations
6
- # Create a partner invitation link for a client to connect their WhatsApp Business
7
- # account. The client will complete Meta's embedded signup flow and the resulting
8
- # sender will be created in your project.
6
+ # Create a partner invitation link for a client to connect WhatsApp. The client
7
+ # opens the returned `url` and connects. Set `connectionType` to choose how they
8
+ # connect:
9
+ #
10
+ # - `whatsapp_waba` (default): the client completes Meta's embedded signup,
11
+ # linking an official WhatsApp Business Account.
12
+ # - `whatsapp_alt`: the client links their number by scanning a QR code. Requires
13
+ # the WhatsApp Alternative feature to be enabled for your team (otherwise
14
+ # returns 400).
15
+ #
16
+ # Either way, the resulting sender is created in your project when the client
17
+ # completes the flow, and the invitation transitions to `completed`.
9
18
  sig do
10
19
  params(
11
20
  allowed_phone_countries: T::Array[String],
12
21
  client_email: String,
13
22
  client_name: String,
14
23
  client_phone: String,
24
+ connection_type:
25
+ Zavudev::InvitationCreateParams::ConnectionType::OrSymbol,
15
26
  expires_in_days: Integer,
16
27
  phone_number_id: String,
17
28
  request_options: Zavudev::RequestOptions::OrHash
@@ -26,6 +37,11 @@ module Zavudev
26
37
  client_name: nil,
27
38
  # Phone number of the client in E.164 format.
28
39
  client_phone: nil,
40
+ # How the client connects WhatsApp. `whatsapp_waba` (default) runs Meta's embedded
41
+ # signup to link an official WhatsApp Business Account. `whatsapp_alt` links the
42
+ # number by scanning a QR code — available only to teams with the WhatsApp
43
+ # Alternative feature enabled.
44
+ connection_type: nil,
29
45
  # Number of days until the invitation expires.
30
46
  expires_in_days: nil,
31
47
  # ID of a Zavu phone number to pre-assign for WhatsApp registration. If provided,
@@ -16,19 +16,20 @@ module Zavudev
16
16
  # List messages previously sent by this project.
17
17
  sig do
18
18
  params(
19
- channel: Zavudev::Channel::OrSymbol,
19
+ channel: Zavudev::MessageListParams::Channel::OrSymbol,
20
20
  cursor: String,
21
21
  limit: Integer,
22
- status: Zavudev::MessageStatus::OrSymbol,
22
+ status: Zavudev::MessageListParams::Status::OrSymbol,
23
23
  to: String,
24
24
  request_options: Zavudev::RequestOptions::OrHash
25
25
  ).returns(Zavudev::Internal::Cursor[Zavudev::Message])
26
26
  end
27
27
  def list(
28
- # Delivery channel. Use 'auto' for intelligent routing.
28
+ # Filter by delivery channel.
29
29
  channel: nil,
30
30
  cursor: nil,
31
31
  limit: nil,
32
+ # Filter by status. Not all stored statuses are filterable.
32
33
  status: nil,
33
34
  to: nil,
34
35
  request_options: {}
@@ -94,8 +95,11 @@ module Zavudev
94
95
  ).returns(Zavudev::MessageResponse)
95
96
  end
96
97
  def send_(
97
- # Body param: Recipient phone number in E.164 format, email address, or numeric
98
- # chat ID (for Telegram/Instagram/Messenger).
98
+ # Body param: Recipient phone number in E.164 format, email address, WhatsApp
99
+ # business-scoped user ID (BSUID, e.g. `US.13491208655302741918`), or numeric chat
100
+ # ID (for Telegram/Instagram/Messenger). A BSUID is routed to WhatsApp and sent
101
+ # via the `recipient` field; use it to message a contact who adopted a username
102
+ # and whose phone number is hidden.
99
103
  to:,
100
104
  # Body param: Email attachments. Only supported when channel is 'email'. Maximum
101
105
  # 40MB total size.
@@ -3,16 +3,6 @@
3
3
  module Zavudev
4
4
  module Resources
5
5
  class Plan
6
- # Get the current subscription plan for the API key's team, including tier,
7
- # billing interval, and period dates.
8
- sig do
9
- params(request_options: Zavudev::RequestOptions::OrHash).returns(
10
- Zavudev::Models::PlanRetrieveResponse
11
- )
12
- end
13
- def retrieve(request_options: {})
14
- end
15
-
16
6
  # @api private
17
7
  sig { params(client: Zavudev::Client).returns(T.attached_class) }
18
8
  def self.new(client:)
@@ -3,16 +3,6 @@
3
3
  module Zavudev
4
4
  module Resources
5
5
  class Usage
6
- # Get the current month's usage counters for A2P messages and emails, along with
7
- # the tier limits.
8
- sig do
9
- params(request_options: Zavudev::RequestOptions::OrHash).returns(
10
- Zavudev::Models::UsageRetrieveResponse
11
- )
12
- end
13
- def retrieve(request_options: {})
14
- end
15
-
16
6
  # @api private
17
7
  sig { params(client: Zavudev::Client).returns(T.attached_class) }
18
8
  def self.new(client:)
@@ -1,15 +1,7 @@
1
1
  module Zavudev
2
2
  module Models
3
3
  type broadcast_channel =
4
- :smart
5
- | :sms
6
- | :sms_oneway
7
- | :whatsapp
8
- | :telegram
9
- | :email
10
- | :instagram
11
- | :messenger
12
- | :voice
4
+ :smart | :sms | :sms_oneway | :whatsapp | :telegram | :email
13
5
 
14
6
  module BroadcastChannel
15
7
  extend Zavudev::Internal::Type::Enum
@@ -20,9 +12,6 @@ module Zavudev
20
12
  WHATSAPP: :whatsapp
21
13
  TELEGRAM: :telegram
22
14
  EMAIL: :email
23
- INSTAGRAM: :instagram
24
- MESSENGER: :messenger
25
- VOICE: :voice
26
15
 
27
16
  def self?.values: -> ::Array[Zavudev::Models::broadcast_channel]
28
17
  end
@@ -5,6 +5,7 @@ module Zavudev
5
5
  | :sms
6
6
  | :sms_oneway
7
7
  | :whatsapp
8
+ | :whatsapp_alt
8
9
  | :telegram
9
10
  | :email
10
11
  | :instagram
@@ -18,6 +19,7 @@ module Zavudev
18
19
  SMS: :sms
19
20
  SMS_ONEWAY: :sms_oneway
20
21
  WHATSAPP: :whatsapp
22
+ WHATSAPP_ALT: :whatsapp_alt
21
23
  TELEGRAM: :telegram
22
24
  EMAIL: :email
23
25
  INSTAGRAM: :instagram
@@ -85,7 +85,8 @@ module Zavudev
85
85
  updated_at: Time
86
86
  }
87
87
 
88
- type channel = :sms | :whatsapp | :email | :telegram | :messenger | :voice
88
+ type channel =
89
+ :sms | :whatsapp | :email | :telegram | :instagram | :messenger | :voice
89
90
 
90
91
  module Channel
91
92
  extend Zavudev::Internal::Type::Enum
@@ -94,6 +95,7 @@ module Zavudev
94
95
  WHATSAPP: :whatsapp
95
96
  EMAIL: :email
96
97
  TELEGRAM: :telegram
98
+ INSTAGRAM: :instagram
97
99
  MESSENGER: :messenger
98
100
  VOICE: :voice
99
101
 
@@ -79,7 +79,13 @@ module Zavudev
79
79
  }
80
80
 
81
81
  type channel =
82
- :sms | :whatsapp | :email | :telegram | :messenger | :voice
82
+ :sms
83
+ | :whatsapp
84
+ | :email
85
+ | :telegram
86
+ | :instagram
87
+ | :messenger
88
+ | :voice
83
89
 
84
90
  module Channel
85
91
  extend Zavudev::Internal::Type::Enum
@@ -88,6 +94,7 @@ module Zavudev
88
94
  WHATSAPP: :whatsapp
89
95
  EMAIL: :email
90
96
  TELEGRAM: :telegram
97
+ INSTAGRAM: :instagram
91
98
  MESSENGER: :messenger
92
99
  VOICE: :voice
93
100
 
@@ -55,7 +55,13 @@ module Zavudev
55
55
  }
56
56
 
57
57
  type channel =
58
- :sms | :whatsapp | :email | :telegram | :messenger | :voice
58
+ :sms
59
+ | :whatsapp
60
+ | :email
61
+ | :telegram
62
+ | :instagram
63
+ | :messenger
64
+ | :voice
59
65
 
60
66
  module Channel
61
67
  extend Zavudev::Internal::Type::Enum
@@ -64,6 +70,7 @@ module Zavudev
64
70
  WHATSAPP: :whatsapp
65
71
  EMAIL: :email
66
72
  TELEGRAM: :telegram
73
+ INSTAGRAM: :instagram
67
74
  MESSENGER: :messenger
68
75
  VOICE: :voice
69
76
 
@@ -13,6 +13,7 @@ module Zavudev
13
13
  client_name: String?,
14
14
  client_phone: String?,
15
15
  completed_at: Time?,
16
+ connection_type: Zavudev::Models::Invitation::connection_type,
16
17
  phone_number_id: String?,
17
18
  sender_id: String?,
18
19
  started_at: Time?,
@@ -42,6 +43,12 @@ module Zavudev
42
43
 
43
44
  attr_accessor completed_at: Time?
44
45
 
46
+ attr_reader connection_type: Zavudev::Models::Invitation::connection_type?
47
+
48
+ def connection_type=: (
49
+ Zavudev::Models::Invitation::connection_type
50
+ ) -> Zavudev::Models::Invitation::connection_type
51
+
45
52
  attr_accessor phone_number_id: String?
46
53
 
47
54
  attr_accessor sender_id: String?
@@ -62,6 +69,7 @@ module Zavudev
62
69
  ?client_name: String?,
63
70
  ?client_phone: String?,
64
71
  ?completed_at: Time?,
72
+ ?connection_type: Zavudev::Models::Invitation::connection_type,
65
73
  ?phone_number_id: String?,
66
74
  ?sender_id: String?,
67
75
  ?started_at: Time?,
@@ -80,6 +88,7 @@ module Zavudev
80
88
  client_name: String?,
81
89
  client_phone: String?,
82
90
  completed_at: Time?,
91
+ connection_type: Zavudev::Models::Invitation::connection_type,
83
92
  phone_number_id: String?,
84
93
  sender_id: String?,
85
94
  started_at: Time?,
@@ -99,6 +108,17 @@ module Zavudev
99
108
 
100
109
  def self?.values: -> ::Array[Zavudev::Models::Invitation::status]
101
110
  end
111
+
112
+ type connection_type = :whatsapp_waba | :whatsapp_alt
113
+
114
+ module ConnectionType
115
+ extend Zavudev::Internal::Type::Enum
116
+
117
+ WHATSAPP_WABA: :whatsapp_waba
118
+ WHATSAPP_ALT: :whatsapp_alt
119
+
120
+ def self?.values: -> ::Array[Zavudev::Models::Invitation::connection_type]
121
+ end
102
122
  end
103
123
  end
104
124
  end
@@ -6,6 +6,7 @@ module Zavudev
6
6
  client_email: String,
7
7
  client_name: String,
8
8
  client_phone: String,
9
+ connection_type: Zavudev::Models::InvitationCreateParams::connection_type,
9
10
  expires_in_days: Integer,
10
11
  phone_number_id: String
11
12
  }
@@ -31,6 +32,12 @@ module Zavudev
31
32
 
32
33
  def client_phone=: (String) -> String
33
34
 
35
+ attr_reader connection_type: Zavudev::Models::InvitationCreateParams::connection_type?
36
+
37
+ def connection_type=: (
38
+ Zavudev::Models::InvitationCreateParams::connection_type
39
+ ) -> Zavudev::Models::InvitationCreateParams::connection_type
40
+
34
41
  attr_reader expires_in_days: Integer?
35
42
 
36
43
  def expires_in_days=: (Integer) -> Integer
@@ -44,6 +51,7 @@ module Zavudev
44
51
  ?client_email: String,
45
52
  ?client_name: String,
46
53
  ?client_phone: String,
54
+ ?connection_type: Zavudev::Models::InvitationCreateParams::connection_type,
47
55
  ?expires_in_days: Integer,
48
56
  ?phone_number_id: String,
49
57
  ?request_options: Zavudev::request_opts
@@ -54,10 +62,22 @@ module Zavudev
54
62
  client_email: String,
55
63
  client_name: String,
56
64
  client_phone: String,
65
+ connection_type: Zavudev::Models::InvitationCreateParams::connection_type,
57
66
  expires_in_days: Integer,
58
67
  phone_number_id: String,
59
68
  request_options: Zavudev::RequestOptions
60
69
  }
70
+
71
+ type connection_type = :whatsapp_waba | :whatsapp_alt
72
+
73
+ module ConnectionType
74
+ extend Zavudev::Internal::Type::Enum
75
+
76
+ WHATSAPP_WABA: :whatsapp_waba
77
+ WHATSAPP_ALT: :whatsapp_alt
78
+
79
+ def self?.values: -> ::Array[Zavudev::Models::InvitationCreateParams::connection_type]
80
+ end
61
81
  end
62
82
  end
63
83
  end
@@ -2,10 +2,10 @@ module Zavudev
2
2
  module Models
3
3
  type message_list_params =
4
4
  {
5
- channel: Zavudev::Models::channel,
5
+ channel: Zavudev::Models::MessageListParams::channel,
6
6
  cursor: String,
7
7
  limit: Integer,
8
- status: Zavudev::Models::message_status,
8
+ status: Zavudev::Models::MessageListParams::status,
9
9
  to: String
10
10
  }
11
11
  & Zavudev::Internal::Type::request_parameters
@@ -14,9 +14,11 @@ module Zavudev
14
14
  extend Zavudev::Internal::Type::RequestParameters::Converter
15
15
  include Zavudev::Internal::Type::RequestParameters
16
16
 
17
- attr_reader channel: Zavudev::Models::channel?
17
+ attr_reader channel: Zavudev::Models::MessageListParams::channel?
18
18
 
19
- def channel=: (Zavudev::Models::channel) -> Zavudev::Models::channel
19
+ def channel=: (
20
+ Zavudev::Models::MessageListParams::channel
21
+ ) -> Zavudev::Models::MessageListParams::channel
20
22
 
21
23
  attr_reader cursor: String?
22
24
 
@@ -26,33 +28,74 @@ module Zavudev
26
28
 
27
29
  def limit=: (Integer) -> Integer
28
30
 
29
- attr_reader status: Zavudev::Models::message_status?
31
+ attr_reader status: Zavudev::Models::MessageListParams::status?
30
32
 
31
33
  def status=: (
32
- Zavudev::Models::message_status
33
- ) -> Zavudev::Models::message_status
34
+ Zavudev::Models::MessageListParams::status
35
+ ) -> Zavudev::Models::MessageListParams::status
34
36
 
35
37
  attr_reader to: String?
36
38
 
37
39
  def to=: (String) -> String
38
40
 
39
41
  def initialize: (
40
- ?channel: Zavudev::Models::channel,
42
+ ?channel: Zavudev::Models::MessageListParams::channel,
41
43
  ?cursor: String,
42
44
  ?limit: Integer,
43
- ?status: Zavudev::Models::message_status,
45
+ ?status: Zavudev::Models::MessageListParams::status,
44
46
  ?to: String,
45
47
  ?request_options: Zavudev::request_opts
46
48
  ) -> void
47
49
 
48
50
  def to_hash: -> {
49
- channel: Zavudev::Models::channel,
51
+ channel: Zavudev::Models::MessageListParams::channel,
50
52
  cursor: String,
51
53
  limit: Integer,
52
- status: Zavudev::Models::message_status,
54
+ status: Zavudev::Models::MessageListParams::status,
53
55
  to: String,
54
56
  request_options: Zavudev::RequestOptions
55
57
  }
58
+
59
+ type channel =
60
+ :sms
61
+ | :sms_oneway
62
+ | :whatsapp
63
+ | :email
64
+ | :telegram
65
+ | :instagram
66
+ | :messenger
67
+ | :voice
68
+
69
+ module Channel
70
+ extend Zavudev::Internal::Type::Enum
71
+
72
+ SMS: :sms
73
+ SMS_ONEWAY: :sms_oneway
74
+ WHATSAPP: :whatsapp
75
+ EMAIL: :email
76
+ TELEGRAM: :telegram
77
+ INSTAGRAM: :instagram
78
+ MESSENGER: :messenger
79
+ VOICE: :voice
80
+
81
+ def self?.values: -> ::Array[Zavudev::Models::MessageListParams::channel]
82
+ end
83
+
84
+ type status =
85
+ :queued | :sending | :sent | :delivered | :failed | :received
86
+
87
+ module Status
88
+ extend Zavudev::Internal::Type::Enum
89
+
90
+ QUEUED: :queued
91
+ SENDING: :sending
92
+ SENT: :sent
93
+ DELIVERED: :delivered
94
+ FAILED: :failed
95
+ RECEIVED: :received
96
+
97
+ def self?.values: -> ::Array[Zavudev::Models::MessageListParams::status]
98
+ end
56
99
  end
57
100
  end
58
101
  end
@@ -1,12 +1,12 @@
1
1
  module Zavudev
2
2
  module Models
3
- type phone_number_type = :local | :mobile | :tollFree
3
+ type phone_number_type = :local | :national | :tollFree
4
4
 
5
5
  module PhoneNumberType
6
6
  extend Zavudev::Internal::Type::Enum
7
7
 
8
8
  LOCAL: :local
9
- MOBILE: :mobile
9
+ NATIONAL: :national
10
10
  TOLL_FREE: :tollFree
11
11
 
12
12
  def self?.values: -> ::Array[Zavudev::Models::phone_number_type]
@@ -40,7 +40,7 @@ module Zavudev
40
40
  request_options: Zavudev::RequestOptions
41
41
  }
42
42
 
43
- type status = :pending | :approved | :rejected | :malicious
43
+ type status = :pending | :approved | :rejected | :escalated | :malicious
44
44
 
45
45
  module Status
46
46
  extend Zavudev::Internal::Type::Enum
@@ -48,6 +48,7 @@ module Zavudev
48
48
  PENDING: :pending
49
49
  APPROVED: :approved
50
50
  REJECTED: :rejected
51
+ ESCALATED: :escalated
51
52
  MALICIOUS: :malicious
52
53
 
53
54
  def self?.values: -> ::Array[Zavudev::Models::URLListVerifiedParams::status]
@@ -52,7 +52,7 @@ module Zavudev
52
52
  updated_at: Time
53
53
  }
54
54
 
55
- type status = :pending | :approved | :rejected | :malicious
55
+ type status = :pending | :approved | :rejected | :escalated | :malicious
56
56
 
57
57
  module Status
58
58
  extend Zavudev::Internal::Type::Enum
@@ -60,6 +60,7 @@ module Zavudev
60
60
  PENDING: :pending
61
61
  APPROVED: :approved
62
62
  REJECTED: :rejected
63
+ ESCALATED: :escalated
63
64
  MALICIOUS: :malicious
64
65
 
65
66
  def self?.values: -> ::Array[Zavudev::Models::VerifiedURL::status]
@@ -79,14 +79,6 @@ module Zavudev
79
79
 
80
80
  class ContactUpdateParams = Zavudev::Models::ContactUpdateParams
81
81
 
82
- class DataExport = Zavudev::Models::DataExport
83
-
84
- class ExportCreateParams = Zavudev::Models::ExportCreateParams
85
-
86
- class ExportListParams = Zavudev::Models::ExportListParams
87
-
88
- class ExportRetrieveParams = Zavudev::Models::ExportRetrieveParams
89
-
90
82
  class FunctionCreateParams = Zavudev::Models::FunctionCreateParams
91
83
 
92
84
  class FunctionDeleteParams = Zavudev::Models::FunctionDeleteParams
@@ -167,8 +159,6 @@ module Zavudev
167
159
 
168
160
  class PhoneNumberUpdateParams = Zavudev::Models::PhoneNumberUpdateParams
169
161
 
170
- class PlanRetrieveParams = Zavudev::Models::PlanRetrieveParams
171
-
172
162
  class RegulatoryDocument = Zavudev::Models::RegulatoryDocument
173
163
 
174
164
  class RegulatoryDocumentCreateParams = Zavudev::Models::RegulatoryDocumentCreateParams
@@ -247,8 +237,6 @@ module Zavudev
247
237
 
248
238
  class URLSubmitForVerificationParams = Zavudev::Models::URLSubmitForVerificationParams
249
239
 
250
- class UsageRetrieveParams = Zavudev::Models::UsageRetrieveParams
251
-
252
240
  class VerifiedURL = Zavudev::Models::VerifiedURL
253
241
 
254
242
  module WebhookEvent = Zavudev::Models::WebhookEvent
@@ -1,25 +1,6 @@
1
1
  module Zavudev
2
2
  module Resources
3
3
  class Exports
4
- def create: (
5
- data_types: ::Array[Zavudev::Models::ExportCreateParams::data_type],
6
- ?date_from: Time,
7
- ?date_to: Time,
8
- ?request_options: Zavudev::request_opts
9
- ) -> Zavudev::Models::ExportCreateResponse
10
-
11
- def retrieve: (
12
- String export_id,
13
- ?request_options: Zavudev::request_opts
14
- ) -> Zavudev::Models::ExportRetrieveResponse
15
-
16
- def list: (
17
- ?cursor: String,
18
- ?limit: Integer,
19
- ?status: Zavudev::Models::ExportListParams::status,
20
- ?request_options: Zavudev::request_opts
21
- ) -> Zavudev::Internal::Cursor[Zavudev::DataExport]
22
-
23
4
  def initialize: (client: Zavudev::Client) -> void
24
5
  end
25
6
  end
@@ -6,6 +6,7 @@ module Zavudev
6
6
  ?client_email: String,
7
7
  ?client_name: String,
8
8
  ?client_phone: String,
9
+ ?connection_type: Zavudev::Models::InvitationCreateParams::connection_type,
9
10
  ?expires_in_days: Integer,
10
11
  ?phone_number_id: String,
11
12
  ?request_options: Zavudev::request_opts
@@ -7,10 +7,10 @@ module Zavudev
7
7
  ) -> Zavudev::MessageResponse
8
8
 
9
9
  def list: (
10
- ?channel: Zavudev::Models::channel,
10
+ ?channel: Zavudev::Models::MessageListParams::channel,
11
11
  ?cursor: String,
12
12
  ?limit: Integer,
13
- ?status: Zavudev::Models::message_status,
13
+ ?status: Zavudev::Models::MessageListParams::status,
14
14
  ?to: String,
15
15
  ?request_options: Zavudev::request_opts
16
16
  ) -> Zavudev::Internal::Cursor[Zavudev::Message]
@@ -1,10 +1,6 @@
1
1
  module Zavudev
2
2
  module Resources
3
3
  class Plan
4
- def retrieve: (
5
- ?request_options: Zavudev::request_opts
6
- ) -> Zavudev::Models::PlanRetrieveResponse
7
-
8
4
  def initialize: (client: Zavudev::Client) -> void
9
5
  end
10
6
  end
@@ -1,10 +1,6 @@
1
1
  module Zavudev
2
2
  module Resources
3
3
  class Usage
4
- def retrieve: (
5
- ?request_options: Zavudev::request_opts
6
- ) -> Zavudev::Models::UsageRetrieveResponse
7
-
8
4
  def initialize: (client: Zavudev::Client) -> void
9
5
  end
10
6
  end