getstream-ruby 4.0.0 → 4.1.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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/getstream_ruby/generated/chat_client.rb +67 -0
  3. data/lib/getstream_ruby/generated/models/ai_image_label_definition.rb +46 -0
  4. data/lib/getstream_ruby/generated/models/app_response_fields.rb +5 -0
  5. data/lib/getstream_ruby/generated/models/async_export_error_event.rb +1 -1
  6. data/lib/getstream_ruby/generated/models/aws_rekognition_rule.rb +1 -1
  7. data/lib/getstream_ruby/generated/models/call_ended_event.rb +5 -0
  8. data/lib/getstream_ruby/generated/models/channel_config.rb +6 -1
  9. data/lib/getstream_ruby/generated/models/channel_config_with_info.rb +5 -0
  10. data/lib/getstream_ruby/generated/models/channel_push_preferences_response.rb +6 -1
  11. data/lib/getstream_ruby/generated/models/channel_type_config.rb +6 -1
  12. data/lib/getstream_ruby/generated/models/chat_preferences.rb +66 -0
  13. data/lib/getstream_ruby/generated/models/chat_preferences_input.rb +61 -0
  14. data/lib/getstream_ruby/generated/models/chat_preferences_response.rb +61 -0
  15. data/lib/getstream_ruby/generated/models/check_response.rb +6 -1
  16. data/lib/getstream_ruby/generated/models/config_overrides_request.rb +10 -0
  17. data/lib/getstream_ruby/generated/models/config_response.rb +5 -0
  18. data/lib/getstream_ruby/generated/models/create_channel_type_request.rb +5 -0
  19. data/lib/getstream_ruby/generated/models/create_channel_type_response.rb +6 -1
  20. data/lib/getstream_ruby/generated/models/create_sip_trunk_request.rb +11 -1
  21. data/lib/getstream_ruby/generated/models/delete_retention_policy_request.rb +31 -0
  22. data/lib/getstream_ruby/generated/models/delete_retention_policy_response.rb +31 -0
  23. data/lib/getstream_ruby/generated/models/filter_config_response.rb +6 -1
  24. data/lib/getstream_ruby/generated/models/get_channel_type_response.rb +6 -1
  25. data/lib/getstream_ruby/generated/models/get_retention_policy_response.rb +36 -0
  26. data/lib/getstream_ruby/generated/models/get_retention_policy_runs_response.rb +36 -0
  27. data/lib/getstream_ruby/generated/models/image_content_parameters.rb +5 -0
  28. data/lib/getstream_ruby/generated/models/image_rule_parameters.rb +5 -0
  29. data/lib/getstream_ruby/generated/models/policy_config.rb +31 -0
  30. data/lib/getstream_ruby/generated/models/push_preference_input.rb +5 -0
  31. data/lib/getstream_ruby/generated/models/push_preferences_response.rb +5 -0
  32. data/lib/getstream_ruby/generated/models/query_moderation_rules_response.rb +10 -0
  33. data/lib/getstream_ruby/generated/models/resolve_sip_auth_request.rb +46 -0
  34. data/lib/getstream_ruby/generated/models/resolve_sip_auth_response.rb +51 -0
  35. data/lib/getstream_ruby/generated/models/resolve_sip_inbound_request.rb +10 -5
  36. data/lib/getstream_ruby/generated/models/retention_cleanup_run.rb +76 -0
  37. data/lib/getstream_ruby/generated/models/retention_policy.rb +46 -0
  38. data/lib/getstream_ruby/generated/models/rule_builder_action.rb +5 -0
  39. data/lib/getstream_ruby/generated/models/run_stats.rb +36 -0
  40. data/lib/getstream_ruby/generated/models/set_retention_policy_request.rb +36 -0
  41. data/lib/getstream_ruby/generated/models/set_retention_policy_response.rb +36 -0
  42. data/lib/getstream_ruby/generated/models/sip_trunk_response.rb +5 -0
  43. data/lib/getstream_ruby/generated/models/triggered_rule_response.rb +51 -0
  44. data/lib/getstream_ruby/generated/models/update_app_request.rb +5 -0
  45. data/lib/getstream_ruby/generated/models/update_channel_type_request.rb +5 -0
  46. data/lib/getstream_ruby/generated/models/update_channel_type_response.rb +6 -1
  47. data/lib/getstream_ruby/generated/models/update_sip_inbound_routing_rule_request.rb +5 -5
  48. data/lib/getstream_ruby/generated/models/update_sip_trunk_request.rb +11 -1
  49. data/lib/getstream_ruby/generated/video_client.rb +17 -0
  50. data/lib/getstream_ruby/version.rb +1 -1
  51. metadata +19 -2
@@ -15,19 +15,29 @@ module GetStream
15
15
  # @!attribute numbers
16
16
  # @return [Array<String>] Phone numbers associated with this SIP trunk
17
17
  attr_accessor :numbers
18
+ # @!attribute password
19
+ # @return [String] Optional password for SIP trunk authentication
20
+ attr_accessor :password
21
+ # @!attribute allowed_ips
22
+ # @return [Array<String>] Optional list of allowed IPv4/IPv6 addresses or CIDR blocks
23
+ attr_accessor :allowed_ips
18
24
 
19
25
  # Initialize with attributes
20
26
  def initialize(attributes = {})
21
27
  super(attributes)
22
28
  @name = attributes[:name] || attributes['name']
23
29
  @numbers = attributes[:numbers] || attributes['numbers']
30
+ @password = attributes[:password] || attributes['password'] || nil
31
+ @allowed_ips = attributes[:allowed_ips] || attributes['allowed_ips'] || nil
24
32
  end
25
33
 
26
34
  # Override field mappings for JSON serialization
27
35
  def self.json_field_mappings
28
36
  {
29
37
  name: 'name',
30
- numbers: 'numbers'
38
+ numbers: 'numbers',
39
+ password: 'password',
40
+ allowed_ips: 'allowed_ips'
31
41
  }
32
42
  end
33
43
  end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class DeleteRetentionPolicyRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute policy
13
+ # @return [String]
14
+ attr_accessor :policy
15
+
16
+ # Initialize with attributes
17
+ def initialize(attributes = {})
18
+ super(attributes)
19
+ @policy = attributes[:policy] || attributes['policy'] || nil
20
+ end
21
+
22
+ # Override field mappings for JSON serialization
23
+ def self.json_field_mappings
24
+ {
25
+ policy: 'policy'
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # Basic response information
9
+ class DeleteRetentionPolicyResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+
16
+ # Initialize with attributes
17
+ def initialize(attributes = {})
18
+ super(attributes)
19
+ @duration = attributes[:duration] || attributes['duration']
20
+ end
21
+
22
+ # Override field mappings for JSON serialization
23
+ def self.json_field_mappings
24
+ {
25
+ duration: 'duration'
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -15,19 +15,24 @@ module GetStream
15
15
  # @!attribute ai_text_labels
16
16
  # @return [Array<String>]
17
17
  attr_accessor :ai_text_labels
18
+ # @!attribute config_keys
19
+ # @return [Array<String>]
20
+ attr_accessor :config_keys
18
21
 
19
22
  # Initialize with attributes
20
23
  def initialize(attributes = {})
21
24
  super(attributes)
22
25
  @llm_labels = attributes[:llm_labels] || attributes['llm_labels']
23
26
  @ai_text_labels = attributes[:ai_text_labels] || attributes['ai_text_labels'] || nil
27
+ @config_keys = attributes[:config_keys] || attributes['config_keys'] || nil
24
28
  end
25
29
 
26
30
  # Override field mappings for JSON serialization
27
31
  def self.json_field_mappings
28
32
  {
29
33
  llm_labels: 'llm_labels',
30
- ai_text_labels: 'ai_text_labels'
34
+ ai_text_labels: 'ai_text_labels',
35
+ config_keys: 'config_keys'
31
36
  }
32
37
  end
33
38
  end
@@ -123,6 +123,9 @@ module GetStream
123
123
  # @!attribute automod_thresholds
124
124
  # @return [Thresholds]
125
125
  attr_accessor :automod_thresholds
126
+ # @!attribute chat_preferences
127
+ # @return [ChatPreferences]
128
+ attr_accessor :chat_preferences
126
129
 
127
130
  # Initialize with attributes
128
131
  def initialize(attributes = {})
@@ -165,6 +168,7 @@ module GetStream
165
168
  @allowed_flag_reasons = attributes[:allowed_flag_reasons] || attributes['allowed_flag_reasons'] || nil
166
169
  @blocklists = attributes[:blocklists] || attributes['blocklists'] || nil
167
170
  @automod_thresholds = attributes[:automod_thresholds] || attributes['automod_thresholds'] || nil
171
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
168
172
  end
169
173
 
170
174
  # Override field mappings for JSON serialization
@@ -207,7 +211,8 @@ module GetStream
207
211
  push_level: 'push_level',
208
212
  allowed_flag_reasons: 'allowed_flag_reasons',
209
213
  blocklists: 'blocklists',
210
- automod_thresholds: 'automod_thresholds'
214
+ automod_thresholds: 'automod_thresholds',
215
+ chat_preferences: 'chat_preferences'
211
216
  }
212
217
  end
213
218
  end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # Basic response information
9
+ class GetRetentionPolicyResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute policies
16
+ # @return [Array<RetentionPolicy>]
17
+ attr_accessor :policies
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @policies = attributes[:policies] || attributes['policies']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ policies: 'policies'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # Basic response information
9
+ class GetRetentionPolicyRunsResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute duration
13
+ # @return [String] Duration of the request in milliseconds
14
+ attr_accessor :duration
15
+ # @!attribute runs
16
+ # @return [Array<RetentionCleanupRun>]
17
+ attr_accessor :runs
18
+
19
+ # Initialize with attributes
20
+ def initialize(attributes = {})
21
+ super(attributes)
22
+ @duration = attributes[:duration] || attributes['duration']
23
+ @runs = attributes[:runs] || attributes['runs']
24
+ end
25
+
26
+ # Override field mappings for JSON serialization
27
+ def self.json_field_mappings
28
+ {
29
+ duration: 'duration',
30
+ runs: 'runs'
31
+ }
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -9,6 +9,9 @@ module GetStream
9
9
  class ImageContentParameters < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute min_confidence
13
+ # @return [Float]
14
+ attr_accessor :min_confidence
12
15
  # @!attribute harm_labels
13
16
  # @return [Array<String>]
14
17
  attr_accessor :harm_labels
@@ -16,12 +19,14 @@ module GetStream
16
19
  # Initialize with attributes
17
20
  def initialize(attributes = {})
18
21
  super(attributes)
22
+ @min_confidence = attributes[:min_confidence] || attributes['min_confidence'] || nil
19
23
  @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
20
24
  end
21
25
 
22
26
  # Override field mappings for JSON serialization
23
27
  def self.json_field_mappings
24
28
  {
29
+ min_confidence: 'min_confidence',
25
30
  harm_labels: 'harm_labels'
26
31
  }
27
32
  end
@@ -9,6 +9,9 @@ module GetStream
9
9
  class ImageRuleParameters < GetStream::BaseModel
10
10
 
11
11
  # Model attributes
12
+ # @!attribute min_confidence
13
+ # @return [Float]
14
+ attr_accessor :min_confidence
12
15
  # @!attribute threshold
13
16
  # @return [Integer]
14
17
  attr_accessor :threshold
@@ -22,6 +25,7 @@ module GetStream
22
25
  # Initialize with attributes
23
26
  def initialize(attributes = {})
24
27
  super(attributes)
28
+ @min_confidence = attributes[:min_confidence] || attributes['min_confidence'] || nil
25
29
  @threshold = attributes[:threshold] || attributes['threshold'] || nil
26
30
  @time_window = attributes[:time_window] || attributes['time_window'] || nil
27
31
  @harm_labels = attributes[:harm_labels] || attributes['harm_labels'] || nil
@@ -30,6 +34,7 @@ module GetStream
30
34
  # Override field mappings for JSON serialization
31
35
  def self.json_field_mappings
32
36
  {
37
+ min_confidence: 'min_confidence',
33
38
  threshold: 'threshold',
34
39
  time_window: 'time_window',
35
40
  harm_labels: 'harm_labels'
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class PolicyConfig < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute max_age_hours
13
+ # @return [Integer]
14
+ attr_accessor :max_age_hours
15
+
16
+ # Initialize with attributes
17
+ def initialize(attributes = {})
18
+ super(attributes)
19
+ @max_age_hours = attributes[:max_age_hours] || attributes['max_age_hours']
20
+ end
21
+
22
+ # Override field mappings for JSON serialization
23
+ def self.json_field_mappings
24
+ {
25
+ max_age_hours: 'max_age_hours'
26
+ }
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -30,6 +30,9 @@ module GetStream
30
30
  # @!attribute user_id
31
31
  # @return [String] The user id for which to set the push preferences. Required when using server side auths, defaults to current user with client side auth.
32
32
  attr_accessor :user_id
33
+ # @!attribute chat_preferences
34
+ # @return [ChatPreferencesInput]
35
+ attr_accessor :chat_preferences
33
36
  # @!attribute feeds_preferences
34
37
  # @return [FeedsPreferences]
35
38
  attr_accessor :feeds_preferences
@@ -44,6 +47,7 @@ module GetStream
44
47
  @feeds_level = attributes[:feeds_level] || attributes['feeds_level'] || nil
45
48
  @remove_disable = attributes[:remove_disable] || attributes['remove_disable'] || nil
46
49
  @user_id = attributes[:user_id] || attributes['user_id'] || nil
50
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
47
51
  @feeds_preferences = attributes[:feeds_preferences] || attributes['feeds_preferences'] || nil
48
52
  end
49
53
 
@@ -57,6 +61,7 @@ module GetStream
57
61
  feeds_level: 'feeds_level',
58
62
  remove_disable: 'remove_disable',
59
63
  user_id: 'user_id',
64
+ chat_preferences: 'chat_preferences',
60
65
  feeds_preferences: 'feeds_preferences'
61
66
  }
62
67
  end
@@ -21,6 +21,9 @@ module GetStream
21
21
  # @!attribute feeds_level
22
22
  # @return [String]
23
23
  attr_accessor :feeds_level
24
+ # @!attribute chat_preferences
25
+ # @return [ChatPreferencesResponse]
26
+ attr_accessor :chat_preferences
24
27
  # @!attribute feeds_preferences
25
28
  # @return [FeedsPreferencesResponse]
26
29
  attr_accessor :feeds_preferences
@@ -32,6 +35,7 @@ module GetStream
32
35
  @chat_level = attributes[:chat_level] || attributes['chat_level'] || nil
33
36
  @disabled_until = attributes[:disabled_until] || attributes['disabled_until'] || nil
34
37
  @feeds_level = attributes[:feeds_level] || attributes['feeds_level'] || nil
38
+ @chat_preferences = attributes[:chat_preferences] || attributes['chat_preferences'] || nil
35
39
  @feeds_preferences = attributes[:feeds_preferences] || attributes['feeds_preferences'] || nil
36
40
  end
37
41
 
@@ -42,6 +46,7 @@ module GetStream
42
46
  chat_level: 'chat_level',
43
47
  disabled_until: 'disabled_until',
44
48
  feeds_level: 'feeds_level',
49
+ chat_preferences: 'chat_preferences',
45
50
  feeds_preferences: 'feeds_preferences'
46
51
  }
47
52
  end
@@ -12,6 +12,9 @@ module GetStream
12
12
  # @!attribute duration
13
13
  # @return [String]
14
14
  attr_accessor :duration
15
+ # @!attribute ai_image_label_definitions
16
+ # @return [Array<AIImageLabelDefinition>] AI image label definitions with metadata for dashboard rendering
17
+ attr_accessor :ai_image_label_definitions
15
18
  # @!attribute closed_caption_labels
16
19
  # @return [Array<String>] Available harm labels for closed caption rules
17
20
  attr_accessor :closed_caption_labels
@@ -21,6 +24,9 @@ module GetStream
21
24
  # @!attribute rules
22
25
  # @return [Array<ModerationRuleV2Response>] List of moderation rules
23
26
  attr_accessor :rules
27
+ # @!attribute ai_image_subclassifications
28
+ # @return [Hash<String, Array<String>>] Stream L1 to leaf-level label name mapping for AI image rules
29
+ attr_accessor :ai_image_subclassifications
24
30
  # @!attribute default_llm_labels
25
31
  # @return [Hash<String, String>] Default LLM label descriptions
26
32
  attr_accessor :default_llm_labels
@@ -38,9 +44,11 @@ module GetStream
38
44
  def initialize(attributes = {})
39
45
  super(attributes)
40
46
  @duration = attributes[:duration] || attributes['duration']
47
+ @ai_image_label_definitions = attributes[:ai_image_label_definitions] || attributes['ai_image_label_definitions']
41
48
  @closed_caption_labels = attributes[:closed_caption_labels] || attributes['closed_caption_labels']
42
49
  @keyframe_labels = attributes[:keyframe_labels] || attributes['keyframe_labels']
43
50
  @rules = attributes[:rules] || attributes['rules']
51
+ @ai_image_subclassifications = attributes[:ai_image_subclassifications] || attributes['ai_image_subclassifications']
44
52
  @default_llm_labels = attributes[:default_llm_labels] || attributes['default_llm_labels']
45
53
  @keyframe_label_classifications = attributes[:keyframe_label_classifications] || attributes['keyframe_label_classifications']
46
54
  @next = attributes[:next] || attributes['next'] || nil
@@ -51,9 +59,11 @@ module GetStream
51
59
  def self.json_field_mappings
52
60
  {
53
61
  duration: 'duration',
62
+ ai_image_label_definitions: 'ai_image_label_definitions',
54
63
  closed_caption_labels: 'closed_caption_labels',
55
64
  keyframe_labels: 'keyframe_labels',
56
65
  rules: 'rules',
66
+ ai_image_subclassifications: 'ai_image_subclassifications',
57
67
  default_llm_labels: 'default_llm_labels',
58
68
  keyframe_label_classifications: 'keyframe_label_classifications',
59
69
  next: 'next',
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # Request to determine SIP trunk authentication requirements
9
+ class ResolveSipAuthRequest < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute sip_caller_number
13
+ # @return [String] SIP caller number
14
+ attr_accessor :sip_caller_number
15
+ # @!attribute sip_trunk_number
16
+ # @return [String] SIP trunk number to look up
17
+ attr_accessor :sip_trunk_number
18
+ # @!attribute from_host
19
+ # @return [String] Host from the SIP From header
20
+ attr_accessor :from_host
21
+ # @!attribute source_ip
22
+ # @return [String] Transport-layer source IP address of the SIP request
23
+ attr_accessor :source_ip
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @sip_caller_number = attributes[:sip_caller_number] || attributes['sip_caller_number']
29
+ @sip_trunk_number = attributes[:sip_trunk_number] || attributes['sip_trunk_number']
30
+ @from_host = attributes[:from_host] || attributes['from_host'] || nil
31
+ @source_ip = attributes[:source_ip] || attributes['source_ip'] || nil
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ sip_caller_number: 'sip_caller_number',
38
+ sip_trunk_number: 'sip_trunk_number',
39
+ from_host: 'from_host',
40
+ source_ip: 'source_ip'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ # Response containing the pre-authentication decision for a SIP trunk
9
+ class ResolveSipAuthResponse < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute auth_result
13
+ # @return [String] Authentication result: password, accept, or no_trunk_found
14
+ attr_accessor :auth_result
15
+ # @!attribute duration
16
+ # @return [String]
17
+ attr_accessor :duration
18
+ # @!attribute password
19
+ # @return [String] Password for digest authentication (when auth_result is password)
20
+ attr_accessor :password
21
+ # @!attribute trunk_id
22
+ # @return [String] ID of the matched SIP trunk
23
+ attr_accessor :trunk_id
24
+ # @!attribute username
25
+ # @return [String] Username for digest authentication (when auth_result is password)
26
+ attr_accessor :username
27
+
28
+ # Initialize with attributes
29
+ def initialize(attributes = {})
30
+ super(attributes)
31
+ @auth_result = attributes[:auth_result] || attributes['auth_result']
32
+ @duration = attributes[:duration] || attributes['duration']
33
+ @password = attributes[:password] || attributes['password'] || nil
34
+ @trunk_id = attributes[:trunk_id] || attributes['trunk_id'] || nil
35
+ @username = attributes[:username] || attributes['username'] || nil
36
+ end
37
+
38
+ # Override field mappings for JSON serialization
39
+ def self.json_field_mappings
40
+ {
41
+ auth_result: 'auth_result',
42
+ duration: 'duration',
43
+ password: 'password',
44
+ trunk_id: 'trunk_id',
45
+ username: 'username'
46
+ }
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -15,12 +15,15 @@ module GetStream
15
15
  # @!attribute sip_trunk_number
16
16
  # @return [String] SIP trunk number to resolve
17
17
  attr_accessor :sip_trunk_number
18
- # @!attribute challenge
19
- # @return [SIPChallengeRequest]
20
- attr_accessor :challenge
21
18
  # @!attribute routing_number
22
19
  # @return [String] Optional routing number for routing number-based call routing (10 digits)
23
20
  attr_accessor :routing_number
21
+ # @!attribute trunk_id
22
+ # @return [String] Optional pre-authenticated trunk ID (from PreAuth no-auth flow)
23
+ attr_accessor :trunk_id
24
+ # @!attribute challenge
25
+ # @return [SIPChallengeRequest]
26
+ attr_accessor :challenge
24
27
  # @!attribute sip_headers
25
28
  # @return [Hash<String, String>] Optional SIP headers as key-value pairs
26
29
  attr_accessor :sip_headers
@@ -30,8 +33,9 @@ module GetStream
30
33
  super(attributes)
31
34
  @sip_caller_number = attributes[:sip_caller_number] || attributes['sip_caller_number']
32
35
  @sip_trunk_number = attributes[:sip_trunk_number] || attributes['sip_trunk_number']
33
- @challenge = attributes[:challenge] || attributes['challenge']
34
36
  @routing_number = attributes[:routing_number] || attributes['routing_number'] || nil
37
+ @trunk_id = attributes[:trunk_id] || attributes['trunk_id'] || nil
38
+ @challenge = attributes[:challenge] || attributes['challenge'] || nil
35
39
  @sip_headers = attributes[:sip_headers] || attributes['sip_headers'] || nil
36
40
  end
37
41
 
@@ -40,8 +44,9 @@ module GetStream
40
44
  {
41
45
  sip_caller_number: 'sip_caller_number',
42
46
  sip_trunk_number: 'sip_trunk_number',
43
- challenge: 'challenge',
44
47
  routing_number: 'routing_number',
48
+ trunk_id: 'trunk_id',
49
+ challenge: 'challenge',
45
50
  sip_headers: 'sip_headers'
46
51
  }
47
52
  end
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class RetentionCleanupRun < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute app_pk
13
+ # @return [Integer]
14
+ attr_accessor :app_pk
15
+ # @!attribute date
16
+ # @return [DateTime]
17
+ attr_accessor :date
18
+ # @!attribute policy
19
+ # @return [String]
20
+ attr_accessor :policy
21
+ # @!attribute started_at
22
+ # @return [DateTime]
23
+ attr_accessor :started_at
24
+ # @!attribute status
25
+ # @return [String]
26
+ attr_accessor :status
27
+ # @!attribute stats
28
+ # @return [RunStats]
29
+ attr_accessor :stats
30
+ # @!attribute cursor_id
31
+ # @return [String]
32
+ attr_accessor :cursor_id
33
+ # @!attribute cursor_ts
34
+ # @return [DateTime]
35
+ attr_accessor :cursor_ts
36
+ # @!attribute error
37
+ # @return [String]
38
+ attr_accessor :error
39
+ # @!attribute finished_at
40
+ # @return [DateTime]
41
+ attr_accessor :finished_at
42
+
43
+ # Initialize with attributes
44
+ def initialize(attributes = {})
45
+ super(attributes)
46
+ @app_pk = attributes[:app_pk] || attributes['app_pk']
47
+ @date = attributes[:date] || attributes['date']
48
+ @policy = attributes[:policy] || attributes['policy']
49
+ @started_at = attributes[:started_at] || attributes['started_at']
50
+ @status = attributes[:status] || attributes['status']
51
+ @stats = attributes[:stats] || attributes['stats']
52
+ @cursor_id = attributes[:cursor_id] || attributes['cursor_id'] || nil
53
+ @cursor_ts = attributes[:cursor_ts] || attributes['cursor_ts'] || nil
54
+ @error = attributes[:error] || attributes['error'] || nil
55
+ @finished_at = attributes[:finished_at] || attributes['finished_at'] || nil
56
+ end
57
+
58
+ # Override field mappings for JSON serialization
59
+ def self.json_field_mappings
60
+ {
61
+ app_pk: 'app_pk',
62
+ date: 'date',
63
+ policy: 'policy',
64
+ started_at: 'started_at',
65
+ status: 'status',
66
+ stats: 'stats',
67
+ cursor_id: 'cursor_id',
68
+ cursor_ts: 'cursor_ts',
69
+ error: 'error',
70
+ finished_at: 'finished_at'
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.
4
+
5
+ module GetStream
6
+ module Generated
7
+ module Models
8
+ #
9
+ class RetentionPolicy < GetStream::BaseModel
10
+
11
+ # Model attributes
12
+ # @!attribute app_pk
13
+ # @return [Integer]
14
+ attr_accessor :app_pk
15
+ # @!attribute enabled_at
16
+ # @return [DateTime]
17
+ attr_accessor :enabled_at
18
+ # @!attribute policy
19
+ # @return [String]
20
+ attr_accessor :policy
21
+ # @!attribute config
22
+ # @return [PolicyConfig]
23
+ attr_accessor :config
24
+
25
+ # Initialize with attributes
26
+ def initialize(attributes = {})
27
+ super(attributes)
28
+ @app_pk = attributes[:app_pk] || attributes['app_pk']
29
+ @enabled_at = attributes[:enabled_at] || attributes['enabled_at']
30
+ @policy = attributes[:policy] || attributes['policy']
31
+ @config = attributes[:config] || attributes['config']
32
+ end
33
+
34
+ # Override field mappings for JSON serialization
35
+ def self.json_field_mappings
36
+ {
37
+ app_pk: 'app_pk',
38
+ enabled_at: 'enabled_at',
39
+ policy: 'policy',
40
+ config: 'config'
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end