revox 0.0.2 → 0.2.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 (128) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +96 -0
  3. data/README.md +88 -22
  4. data/lib/revox/client.rb +19 -1
  5. data/lib/revox/internal/transport/base_client.rb +5 -0
  6. data/lib/revox/internal/type/base_model.rb +3 -3
  7. data/lib/revox/internal/util.rb +53 -7
  8. data/lib/revox/models/assistant_create_params.rb +1036 -11
  9. data/lib/revox/models/assistant_create_response.rb +1071 -11
  10. data/lib/revox/models/assistant_delete_params.rb +7 -1
  11. data/lib/revox/models/assistant_list_response.rb +1070 -11
  12. data/lib/revox/models/assistant_retrieve_params.rb +7 -1
  13. data/lib/revox/models/assistant_retrieve_response.rb +1066 -11
  14. data/lib/revox/models/assistant_update_params.rb +1043 -11
  15. data/lib/revox/models/assistant_update_response.rb +1097 -12
  16. data/lib/revox/models/call_create_params.rb +1063 -11
  17. data/lib/revox/models/call_create_response.rb +2507 -87
  18. data/lib/revox/models/call_retrieve_params.rb +7 -1
  19. data/lib/revox/models/call_retrieve_response.rb +2512 -87
  20. data/lib/revox/models/campaign_cancel_params.rb +20 -0
  21. data/lib/revox/models/campaign_cancel_response.rb +16 -0
  22. data/lib/revox/models/campaign_create_params.rb +239 -0
  23. data/lib/revox/models/campaign_create_response.rb +2030 -0
  24. data/lib/revox/models/campaign_delete_params.rb +20 -0
  25. data/lib/revox/models/campaign_delete_response.rb +16 -0
  26. data/lib/revox/models/campaign_export_rows_params.rb +20 -0
  27. data/lib/revox/models/campaign_export_rows_response.rb +22 -0
  28. data/lib/revox/models/campaign_get_rows_params.rb +20 -0
  29. data/lib/revox/models/campaign_get_rows_response.rb +3176 -0
  30. data/lib/revox/models/campaign_list_params.rb +14 -0
  31. data/lib/revox/models/campaign_list_response.rb +2024 -0
  32. data/lib/revox/models/campaign_retrieve_params.rb +20 -0
  33. data/lib/revox/models/campaign_retrieve_response.rb +2032 -0
  34. data/lib/revox/models/users/me_retrieve_response.rb +13 -1
  35. data/lib/revox/models/users/me_update_response.rb +13 -1
  36. data/lib/revox/models/voice_list_response.rb +55 -1
  37. data/lib/revox/models/voice_preview_params.rb +43 -3
  38. data/lib/revox/models/voice_retrieve_params.rb +7 -1
  39. data/lib/revox/models.rb +14 -2
  40. data/lib/revox/resources/assistants.rb +138 -6
  41. data/lib/revox/resources/call.rb +10 -27
  42. data/lib/revox/resources/campaigns.rb +176 -0
  43. data/lib/revox/resources/voices.rb +17 -7
  44. data/lib/revox/version.rb +1 -1
  45. data/lib/revox.rb +15 -2
  46. data/rbi/revox/client.rbi +3 -0
  47. data/rbi/revox/internal/util.rbi +28 -0
  48. data/rbi/revox/models/assistant_create_params.rbi +2135 -102
  49. data/rbi/revox/models/assistant_create_response.rbi +2454 -199
  50. data/rbi/revox/models/assistant_delete_params.rbi +11 -5
  51. data/rbi/revox/models/assistant_list_response.rbi +2448 -195
  52. data/rbi/revox/models/assistant_retrieve_params.rbi +11 -5
  53. data/rbi/revox/models/assistant_retrieve_response.rbi +2401 -210
  54. data/rbi/revox/models/assistant_update_params.rbi +2139 -100
  55. data/rbi/revox/models/assistant_update_response.rbi +2504 -198
  56. data/rbi/revox/models/call_create_params.rbi +2377 -222
  57. data/rbi/revox/models/call_create_response.rbi +5840 -594
  58. data/rbi/revox/models/call_retrieve_params.rbi +11 -5
  59. data/rbi/revox/models/call_retrieve_response.rbi +5872 -618
  60. data/rbi/revox/models/campaign_cancel_params.rbi +33 -0
  61. data/rbi/revox/models/campaign_cancel_response.rbi +23 -0
  62. data/rbi/revox/models/campaign_create_params.rbi +433 -0
  63. data/rbi/revox/models/campaign_create_response.rbi +4170 -0
  64. data/rbi/revox/models/campaign_delete_params.rbi +33 -0
  65. data/rbi/revox/models/campaign_delete_response.rbi +23 -0
  66. data/rbi/revox/models/campaign_export_rows_params.rbi +33 -0
  67. data/rbi/revox/models/campaign_export_rows_response.rbi +29 -0
  68. data/rbi/revox/models/campaign_get_rows_params.rbi +33 -0
  69. data/rbi/revox/models/campaign_get_rows_response.rbi +6706 -0
  70. data/rbi/revox/models/campaign_list_params.rbi +27 -0
  71. data/rbi/revox/models/campaign_list_response.rbi +4156 -0
  72. data/rbi/revox/models/campaign_retrieve_params.rbi +33 -0
  73. data/rbi/revox/models/campaign_retrieve_response.rbi +4175 -0
  74. data/rbi/revox/models/users/me_retrieve_response.rbi +13 -3
  75. data/rbi/revox/models/users/me_update_response.rbi +13 -3
  76. data/rbi/revox/models/voice_list_response.rbi +105 -3
  77. data/rbi/revox/models/voice_preview_params.rbi +60 -2
  78. data/rbi/revox/models/voice_retrieve_params.rbi +6 -1
  79. data/rbi/revox/models.rbi +14 -2
  80. data/rbi/revox/resources/assistants.rbi +301 -6
  81. data/rbi/revox/resources/call.rbi +10 -19
  82. data/rbi/revox/resources/campaigns.rbi +121 -0
  83. data/rbi/revox/resources/voices.rbi +15 -5
  84. data/sig/revox/client.rbs +2 -0
  85. data/sig/revox/internal/util.rbs +14 -0
  86. data/sig/revox/models/assistant_create_params.rbs +841 -4
  87. data/sig/revox/models/assistant_create_response.rbs +860 -3
  88. data/sig/revox/models/assistant_delete_params.rbs +8 -3
  89. data/sig/revox/models/assistant_list_response.rbs +860 -3
  90. data/sig/revox/models/assistant_retrieve_params.rbs +8 -3
  91. data/sig/revox/models/assistant_retrieve_response.rbs +859 -3
  92. data/sig/revox/models/assistant_update_params.rbs +846 -4
  93. data/sig/revox/models/assistant_update_response.rbs +886 -6
  94. data/sig/revox/models/call_create_params.rbs +844 -6
  95. data/sig/revox/models/call_create_response.rbs +2166 -79
  96. data/sig/revox/models/call_retrieve_params.rbs +9 -3
  97. data/sig/revox/models/call_retrieve_response.rbs +2166 -79
  98. data/sig/revox/models/campaign_cancel_params.rbs +20 -0
  99. data/sig/revox/models/campaign_cancel_response.rbs +13 -0
  100. data/sig/revox/models/campaign_create_params.rbs +203 -0
  101. data/sig/revox/models/campaign_create_response.rbs +1694 -0
  102. data/sig/revox/models/campaign_delete_params.rbs +20 -0
  103. data/sig/revox/models/campaign_delete_response.rbs +13 -0
  104. data/sig/revox/models/campaign_export_rows_params.rbs +20 -0
  105. data/sig/revox/models/campaign_export_rows_response.rbs +15 -0
  106. data/sig/revox/models/campaign_get_rows_params.rbs +20 -0
  107. data/sig/revox/models/campaign_get_rows_response.rbs +2688 -0
  108. data/sig/revox/models/campaign_list_params.rbs +14 -0
  109. data/sig/revox/models/campaign_list_response.rbs +1694 -0
  110. data/sig/revox/models/campaign_retrieve_params.rbs +20 -0
  111. data/sig/revox/models/campaign_retrieve_response.rbs +1694 -0
  112. data/sig/revox/models/users/me_retrieve_response.rbs +8 -3
  113. data/sig/revox/models/users/me_update_response.rbs +8 -3
  114. data/sig/revox/models/voice_list_response.rbs +45 -3
  115. data/sig/revox/models/voice_preview_params.rbs +35 -1
  116. data/sig/revox/models/voice_retrieve_params.rbs +5 -1
  117. data/sig/revox/models.rbs +14 -2
  118. data/sig/revox/resources/assistants.rbs +54 -0
  119. data/sig/revox/resources/call.rbs +0 -6
  120. data/sig/revox/resources/campaigns.rbs +49 -0
  121. data/sig/revox/resources/voices.rbs +3 -0
  122. metadata +47 -8
  123. data/lib/revox/models/call_list_params.rb +0 -29
  124. data/lib/revox/models/call_list_response.rb +0 -197
  125. data/rbi/revox/models/call_list_params.rbi +0 -47
  126. data/rbi/revox/models/call_list_response.rbi +0 -401
  127. data/sig/revox/models/call_list_params.rbs +0 -28
  128. data/sig/revox/models/call_list_response.rbs +0 -171
@@ -1,197 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Revox
4
- module Models
5
- # @see Revox::Resources::Call#list
6
- class CallListResponse < Revox::Internal::Type::BaseModel
7
- # @!attribute calls
8
- #
9
- # @return [Array<Revox::Models::CallListResponse::Call>]
10
- required :calls, -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallListResponse::Call] }
11
-
12
- # @!method initialize(calls:)
13
- # @param calls [Array<Revox::Models::CallListResponse::Call>]
14
-
15
- class Call < Revox::Internal::Type::BaseModel
16
- # @!attribute id
17
- # The ID of the call attempt.
18
- #
19
- # @return [String]
20
- required :id, String
21
-
22
- # @!attribute answered_at
23
- # The time the call was answered.
24
- #
25
- # @return [Object]
26
- required :answered_at, Revox::Internal::Type::Unknown
27
-
28
- # @!attribute ended_at
29
- # The time the call ended.
30
- #
31
- # @return [Object]
32
- required :ended_at, Revox::Internal::Type::Unknown
33
-
34
- # @!attribute phone_number
35
- # The phone number that was called. Formatted in E.164 format. Example:
36
- # +1234567890
37
- #
38
- # @return [String]
39
- required :phone_number, String
40
-
41
- # @!attribute recording_url
42
- # The URL of the audio recording of the call.
43
- #
44
- # @return [String, nil]
45
- required :recording_url, String, nil?: true
46
-
47
- # @!attribute result
48
- #
49
- # @return [Symbol, Revox::Models::CallListResponse::Call::Result, nil]
50
- required :result, enum: -> { Revox::Models::CallListResponse::Call::Result }, nil?: true
51
-
52
- # @!attribute started_at
53
- # The time the call started.
54
- #
55
- # @return [Object]
56
- required :started_at, Revox::Internal::Type::Unknown
57
-
58
- # @!attribute status
59
- # The status of the call attempt.
60
- #
61
- # @return [Symbol, Revox::Models::CallListResponse::Call::Status]
62
- required :status, enum: -> { Revox::Models::CallListResponse::Call::Status }
63
-
64
- # @!attribute structured_output
65
- # The data extracted from the call, using the structured output config from the
66
- # parent call object.
67
- #
68
- # @return [Hash{Symbol=>Object}, nil]
69
- optional :structured_output, Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown], nil?: true
70
-
71
- # @!attribute transcript
72
- # The transcript of the call.
73
- #
74
- # @return [Array<Revox::Models::CallListResponse::Call::Transcript>, nil]
75
- optional :transcript,
76
- -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallListResponse::Call::Transcript] },
77
- nil?: true
78
-
79
- # @!method initialize(id:, answered_at:, ended_at:, phone_number:, recording_url:, result:, started_at:, status:, structured_output: nil, transcript: nil)
80
- # Some parameter documentations has been truncated, see
81
- # {Revox::Models::CallListResponse::Call} for more details.
82
- #
83
- # This represent a single call attempt. A call attempt is a single call made to
84
- # the phone number.
85
- #
86
- # @param id [String] The ID of the call attempt.
87
- #
88
- # @param answered_at [Object] The time the call was answered.
89
- #
90
- # @param ended_at [Object] The time the call ended.
91
- #
92
- # @param phone_number [String] The phone number that was called. Formatted in E.164 format. Example: +123456789
93
- #
94
- # @param recording_url [String, nil] The URL of the audio recording of the call.
95
- #
96
- # @param result [Symbol, Revox::Models::CallListResponse::Call::Result, nil]
97
- #
98
- # @param started_at [Object] The time the call started.
99
- #
100
- # @param status [Symbol, Revox::Models::CallListResponse::Call::Status] The status of the call attempt.
101
- #
102
- # @param structured_output [Hash{Symbol=>Object}, nil] The data extracted from the call, using the structured output config from the pa
103
- #
104
- # @param transcript [Array<Revox::Models::CallListResponse::Call::Transcript>, nil] The transcript of the call.
105
-
106
- # @see Revox::Models::CallListResponse::Call#result
107
- module Result
108
- extend Revox::Internal::Type::Enum
109
-
110
- IVR = :IVR
111
- VOICEMAIL = :voicemail
112
- HUMAN = :human
113
- UNKNOWN = :unknown
114
-
115
- # @!method self.values
116
- # @return [Array<Symbol>]
117
- end
118
-
119
- # The status of the call attempt.
120
- #
121
- # @see Revox::Models::CallListResponse::Call#status
122
- module Status
123
- extend Revox::Internal::Type::Enum
124
-
125
- QUEUED = :queued
126
- RINGING = :ringing
127
- ONGOING = :ongoing
128
- COMPLETED = :completed
129
-
130
- # @!method self.values
131
- # @return [Array<Symbol>]
132
- end
133
-
134
- class Transcript < Revox::Internal::Type::BaseModel
135
- # @!attribute content
136
- #
137
- # @return [String]
138
- required :content, String
139
-
140
- # @!attribute role
141
- #
142
- # @return [Symbol, Revox::Models::CallListResponse::Call::Transcript::Role]
143
- required :role, enum: -> { Revox::Models::CallListResponse::Call::Transcript::Role }
144
-
145
- # @!attribute tool_arguments
146
- #
147
- # @return [Hash{Symbol=>Object}, String, nil]
148
- optional :tool_arguments, union: -> { Revox::Models::CallListResponse::Call::Transcript::ToolArguments }
149
-
150
- # @!attribute tool_is_error
151
- #
152
- # @return [Boolean, nil]
153
- optional :tool_is_error, Revox::Internal::Type::Boolean
154
-
155
- # @!attribute tool_name
156
- #
157
- # @return [String, nil]
158
- optional :tool_name, String
159
-
160
- # @!method initialize(content:, role:, tool_arguments: nil, tool_is_error: nil, tool_name: nil)
161
- # @param content [String]
162
- # @param role [Symbol, Revox::Models::CallListResponse::Call::Transcript::Role]
163
- # @param tool_arguments [Hash{Symbol=>Object}, String]
164
- # @param tool_is_error [Boolean]
165
- # @param tool_name [String]
166
-
167
- # @see Revox::Models::CallListResponse::Call::Transcript#role
168
- module Role
169
- extend Revox::Internal::Type::Enum
170
-
171
- USER = :user
172
- ASSISTANT = :assistant
173
- TOOL = :tool
174
-
175
- # @!method self.values
176
- # @return [Array<Symbol>]
177
- end
178
-
179
- # @see Revox::Models::CallListResponse::Call::Transcript#tool_arguments
180
- module ToolArguments
181
- extend Revox::Internal::Type::Union
182
-
183
- variant -> { Revox::Models::CallListResponse::Call::Transcript::ToolArguments::UnionMember0Map }
184
-
185
- variant String
186
-
187
- # @!method self.variants
188
- # @return [Array(Hash{Symbol=>Object}, String)]
189
-
190
- # @type [Revox::Internal::Type::Converter]
191
- UnionMember0Map = Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown]
192
- end
193
- end
194
- end
195
- end
196
- end
197
- end
@@ -1,47 +0,0 @@
1
- # typed: strong
2
-
3
- module Revox
4
- module Models
5
- class CallListParams < Revox::Internal::Type::BaseModel
6
- extend Revox::Internal::Type::RequestParameters::Converter
7
- include Revox::Internal::Type::RequestParameters
8
-
9
- OrHash =
10
- T.type_alias { T.any(Revox::CallListParams, Revox::Internal::AnyHash) }
11
-
12
- # The page number you want to get. Starting at 0.
13
- sig { returns(Float) }
14
- attr_accessor :page
15
-
16
- sig { returns(Float) }
17
- attr_accessor :page_size
18
-
19
- sig do
20
- params(
21
- page: Float,
22
- page_size: Float,
23
- request_options: Revox::RequestOptions::OrHash
24
- ).returns(T.attached_class)
25
- end
26
- def self.new(
27
- # The page number you want to get. Starting at 0.
28
- page:,
29
- page_size:,
30
- request_options: {}
31
- )
32
- end
33
-
34
- sig do
35
- override.returns(
36
- {
37
- page: Float,
38
- page_size: Float,
39
- request_options: Revox::RequestOptions
40
- }
41
- )
42
- end
43
- def to_hash
44
- end
45
- end
46
- end
47
- end
@@ -1,401 +0,0 @@
1
- # typed: strong
2
-
3
- module Revox
4
- module Models
5
- class CallListResponse < Revox::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(Revox::Models::CallListResponse, Revox::Internal::AnyHash)
9
- end
10
-
11
- sig { returns(T::Array[Revox::Models::CallListResponse::Call]) }
12
- attr_accessor :calls
13
-
14
- sig do
15
- params(
16
- calls: T::Array[Revox::Models::CallListResponse::Call::OrHash]
17
- ).returns(T.attached_class)
18
- end
19
- def self.new(calls:)
20
- end
21
-
22
- sig do
23
- override.returns(
24
- { calls: T::Array[Revox::Models::CallListResponse::Call] }
25
- )
26
- end
27
- def to_hash
28
- end
29
-
30
- class Call < Revox::Internal::Type::BaseModel
31
- OrHash =
32
- T.type_alias do
33
- T.any(
34
- Revox::Models::CallListResponse::Call,
35
- Revox::Internal::AnyHash
36
- )
37
- end
38
-
39
- # The ID of the call attempt.
40
- sig { returns(String) }
41
- attr_accessor :id
42
-
43
- # The time the call was answered.
44
- sig { returns(T.anything) }
45
- attr_accessor :answered_at
46
-
47
- # The time the call ended.
48
- sig { returns(T.anything) }
49
- attr_accessor :ended_at
50
-
51
- # The phone number that was called. Formatted in E.164 format. Example:
52
- # +1234567890
53
- sig { returns(String) }
54
- attr_accessor :phone_number
55
-
56
- # The URL of the audio recording of the call.
57
- sig { returns(T.nilable(String)) }
58
- attr_accessor :recording_url
59
-
60
- sig do
61
- returns(
62
- T.nilable(
63
- Revox::Models::CallListResponse::Call::Result::TaggedSymbol
64
- )
65
- )
66
- end
67
- attr_accessor :result
68
-
69
- # The time the call started.
70
- sig { returns(T.anything) }
71
- attr_accessor :started_at
72
-
73
- # The status of the call attempt.
74
- sig do
75
- returns(Revox::Models::CallListResponse::Call::Status::TaggedSymbol)
76
- end
77
- attr_accessor :status
78
-
79
- # The data extracted from the call, using the structured output config from the
80
- # parent call object.
81
- sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
82
- attr_accessor :structured_output
83
-
84
- # The transcript of the call.
85
- sig do
86
- returns(
87
- T.nilable(
88
- T::Array[Revox::Models::CallListResponse::Call::Transcript]
89
- )
90
- )
91
- end
92
- attr_accessor :transcript
93
-
94
- # This represent a single call attempt. A call attempt is a single call made to
95
- # the phone number.
96
- sig do
97
- params(
98
- id: String,
99
- answered_at: T.anything,
100
- ended_at: T.anything,
101
- phone_number: String,
102
- recording_url: T.nilable(String),
103
- result:
104
- T.nilable(
105
- Revox::Models::CallListResponse::Call::Result::OrSymbol
106
- ),
107
- started_at: T.anything,
108
- status: Revox::Models::CallListResponse::Call::Status::OrSymbol,
109
- structured_output: T.nilable(T::Hash[Symbol, T.anything]),
110
- transcript:
111
- T.nilable(
112
- T::Array[
113
- Revox::Models::CallListResponse::Call::Transcript::OrHash
114
- ]
115
- )
116
- ).returns(T.attached_class)
117
- end
118
- def self.new(
119
- # The ID of the call attempt.
120
- id:,
121
- # The time the call was answered.
122
- answered_at:,
123
- # The time the call ended.
124
- ended_at:,
125
- # The phone number that was called. Formatted in E.164 format. Example:
126
- # +1234567890
127
- phone_number:,
128
- # The URL of the audio recording of the call.
129
- recording_url:,
130
- result:,
131
- # The time the call started.
132
- started_at:,
133
- # The status of the call attempt.
134
- status:,
135
- # The data extracted from the call, using the structured output config from the
136
- # parent call object.
137
- structured_output: nil,
138
- # The transcript of the call.
139
- transcript: nil
140
- )
141
- end
142
-
143
- sig do
144
- override.returns(
145
- {
146
- id: String,
147
- answered_at: T.anything,
148
- ended_at: T.anything,
149
- phone_number: String,
150
- recording_url: T.nilable(String),
151
- result:
152
- T.nilable(
153
- Revox::Models::CallListResponse::Call::Result::TaggedSymbol
154
- ),
155
- started_at: T.anything,
156
- status:
157
- Revox::Models::CallListResponse::Call::Status::TaggedSymbol,
158
- structured_output: T.nilable(T::Hash[Symbol, T.anything]),
159
- transcript:
160
- T.nilable(
161
- T::Array[Revox::Models::CallListResponse::Call::Transcript]
162
- )
163
- }
164
- )
165
- end
166
- def to_hash
167
- end
168
-
169
- module Result
170
- extend Revox::Internal::Type::Enum
171
-
172
- TaggedSymbol =
173
- T.type_alias do
174
- T.all(Symbol, Revox::Models::CallListResponse::Call::Result)
175
- end
176
- OrSymbol = T.type_alias { T.any(Symbol, String) }
177
-
178
- IVR =
179
- T.let(
180
- :IVR,
181
- Revox::Models::CallListResponse::Call::Result::TaggedSymbol
182
- )
183
- VOICEMAIL =
184
- T.let(
185
- :voicemail,
186
- Revox::Models::CallListResponse::Call::Result::TaggedSymbol
187
- )
188
- HUMAN =
189
- T.let(
190
- :human,
191
- Revox::Models::CallListResponse::Call::Result::TaggedSymbol
192
- )
193
- UNKNOWN =
194
- T.let(
195
- :unknown,
196
- Revox::Models::CallListResponse::Call::Result::TaggedSymbol
197
- )
198
-
199
- sig do
200
- override.returns(
201
- T::Array[
202
- Revox::Models::CallListResponse::Call::Result::TaggedSymbol
203
- ]
204
- )
205
- end
206
- def self.values
207
- end
208
- end
209
-
210
- # The status of the call attempt.
211
- module Status
212
- extend Revox::Internal::Type::Enum
213
-
214
- TaggedSymbol =
215
- T.type_alias do
216
- T.all(Symbol, Revox::Models::CallListResponse::Call::Status)
217
- end
218
- OrSymbol = T.type_alias { T.any(Symbol, String) }
219
-
220
- QUEUED =
221
- T.let(
222
- :queued,
223
- Revox::Models::CallListResponse::Call::Status::TaggedSymbol
224
- )
225
- RINGING =
226
- T.let(
227
- :ringing,
228
- Revox::Models::CallListResponse::Call::Status::TaggedSymbol
229
- )
230
- ONGOING =
231
- T.let(
232
- :ongoing,
233
- Revox::Models::CallListResponse::Call::Status::TaggedSymbol
234
- )
235
- COMPLETED =
236
- T.let(
237
- :completed,
238
- Revox::Models::CallListResponse::Call::Status::TaggedSymbol
239
- )
240
-
241
- sig do
242
- override.returns(
243
- T::Array[
244
- Revox::Models::CallListResponse::Call::Status::TaggedSymbol
245
- ]
246
- )
247
- end
248
- def self.values
249
- end
250
- end
251
-
252
- class Transcript < Revox::Internal::Type::BaseModel
253
- OrHash =
254
- T.type_alias do
255
- T.any(
256
- Revox::Models::CallListResponse::Call::Transcript,
257
- Revox::Internal::AnyHash
258
- )
259
- end
260
-
261
- sig { returns(String) }
262
- attr_accessor :content
263
-
264
- sig do
265
- returns(
266
- Revox::Models::CallListResponse::Call::Transcript::Role::TaggedSymbol
267
- )
268
- end
269
- attr_accessor :role
270
-
271
- sig do
272
- returns(
273
- T.nilable(
274
- Revox::Models::CallListResponse::Call::Transcript::ToolArguments::Variants
275
- )
276
- )
277
- end
278
- attr_reader :tool_arguments
279
-
280
- sig do
281
- params(
282
- tool_arguments:
283
- Revox::Models::CallListResponse::Call::Transcript::ToolArguments::Variants
284
- ).void
285
- end
286
- attr_writer :tool_arguments
287
-
288
- sig { returns(T.nilable(T::Boolean)) }
289
- attr_reader :tool_is_error
290
-
291
- sig { params(tool_is_error: T::Boolean).void }
292
- attr_writer :tool_is_error
293
-
294
- sig { returns(T.nilable(String)) }
295
- attr_reader :tool_name
296
-
297
- sig { params(tool_name: String).void }
298
- attr_writer :tool_name
299
-
300
- sig do
301
- params(
302
- content: String,
303
- role:
304
- Revox::Models::CallListResponse::Call::Transcript::Role::OrSymbol,
305
- tool_arguments:
306
- Revox::Models::CallListResponse::Call::Transcript::ToolArguments::Variants,
307
- tool_is_error: T::Boolean,
308
- tool_name: String
309
- ).returns(T.attached_class)
310
- end
311
- def self.new(
312
- content:,
313
- role:,
314
- tool_arguments: nil,
315
- tool_is_error: nil,
316
- tool_name: nil
317
- )
318
- end
319
-
320
- sig do
321
- override.returns(
322
- {
323
- content: String,
324
- role:
325
- Revox::Models::CallListResponse::Call::Transcript::Role::TaggedSymbol,
326
- tool_arguments:
327
- Revox::Models::CallListResponse::Call::Transcript::ToolArguments::Variants,
328
- tool_is_error: T::Boolean,
329
- tool_name: String
330
- }
331
- )
332
- end
333
- def to_hash
334
- end
335
-
336
- module Role
337
- extend Revox::Internal::Type::Enum
338
-
339
- TaggedSymbol =
340
- T.type_alias do
341
- T.all(
342
- Symbol,
343
- Revox::Models::CallListResponse::Call::Transcript::Role
344
- )
345
- end
346
- OrSymbol = T.type_alias { T.any(Symbol, String) }
347
-
348
- USER =
349
- T.let(
350
- :user,
351
- Revox::Models::CallListResponse::Call::Transcript::Role::TaggedSymbol
352
- )
353
- ASSISTANT =
354
- T.let(
355
- :assistant,
356
- Revox::Models::CallListResponse::Call::Transcript::Role::TaggedSymbol
357
- )
358
- TOOL =
359
- T.let(
360
- :tool,
361
- Revox::Models::CallListResponse::Call::Transcript::Role::TaggedSymbol
362
- )
363
-
364
- sig do
365
- override.returns(
366
- T::Array[
367
- Revox::Models::CallListResponse::Call::Transcript::Role::TaggedSymbol
368
- ]
369
- )
370
- end
371
- def self.values
372
- end
373
- end
374
-
375
- module ToolArguments
376
- extend Revox::Internal::Type::Union
377
-
378
- Variants =
379
- T.type_alias { T.any(T::Hash[Symbol, T.anything], String) }
380
-
381
- sig do
382
- override.returns(
383
- T::Array[
384
- Revox::Models::CallListResponse::Call::Transcript::ToolArguments::Variants
385
- ]
386
- )
387
- end
388
- def self.variants
389
- end
390
-
391
- UnionMember0Map =
392
- T.let(
393
- Revox::Internal::Type::HashOf[Revox::Internal::Type::Unknown],
394
- Revox::Internal::Type::Converter
395
- )
396
- end
397
- end
398
- end
399
- end
400
- end
401
- end
@@ -1,28 +0,0 @@
1
- module Revox
2
- module Models
3
- type call_list_params =
4
- { page: Float, page_size: Float }
5
- & Revox::Internal::Type::request_parameters
6
-
7
- class CallListParams < Revox::Internal::Type::BaseModel
8
- extend Revox::Internal::Type::RequestParameters::Converter
9
- include Revox::Internal::Type::RequestParameters
10
-
11
- attr_accessor page: Float
12
-
13
- attr_accessor page_size: Float
14
-
15
- def initialize: (
16
- page: Float,
17
- page_size: Float,
18
- ?request_options: Revox::request_opts
19
- ) -> void
20
-
21
- def to_hash: -> {
22
- page: Float,
23
- page_size: Float,
24
- request_options: Revox::RequestOptions
25
- }
26
- end
27
- end
28
- end