moonbase-sdk 0.1.0.pre.alpha.8 → 0.1.0.pre.alpha.9

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: e03284abe6f7fc28ddef264df8add1e58c2ea12ed0c615ee3a381a1a561135e8
4
- data.tar.gz: 7fd59defee63bb9da6221286420017ec6bd756fb37668be56620840ab6ba7d6e
3
+ metadata.gz: e1b4404635a20e29ee4df574298b974c51dd8267d02413969b85b7601ed21fc5
4
+ data.tar.gz: 7c6108c37f21d8eadfec260fdf8933e1b202b842eaaf971ab09f8a667375696f
5
5
  SHA512:
6
- metadata.gz: 7fe47484e421bb3412ea1d91229d70f4ddb099e6f20a55b5ed4715e1e560c26e3a950bb2fb4c134fd0570d6001cd87d457944c5ba2f0479166406480bc7437a8
7
- data.tar.gz: c12b4dc94ebe53d337f24ad01ca2265654db25ac8f24d4534db916ad636b31897f1e8af374b5a59e03429df370ba91f53fa2da4451baab4751fd6b007e0ad560
6
+ metadata.gz: 77b1b5bb6620b44d8704762af93b365ffdffab947db73dc22bdf019479f8d1fb06f97ab3c98aa29c9f7e74dfb16de65922375b00c337f634f3a5f970b793b582
7
+ data.tar.gz: 8533a0ebf0765190ed1a7e4170ae9cf7aa4b23487755672e9e4a89c5b861a8248beece5cf3aca7592d597815f60e0f55265f30784b86ce8c9dfa080cc9e2ded4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.9 (2026-02-26)
4
+
5
+ Full Changelog: [v0.1.0-alpha.8...v0.1.0-alpha.9](https://github.com/moonbaseai/moonbase-sdk-ruby/compare/v0.1.0-alpha.8...v0.1.0-alpha.9)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **types:** convert reason_code/provider/content_type to enums in activities/calls ([3953bb3](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/3953bb32c892812f60b747f6041ab3314ee6f7eb))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **api:** update SDK settings ([3a80b66](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/3a80b66e27518c1dd25e949a457cda4ce175e953))
15
+ * update SDK settings ([1675001](https://github.com/moonbaseai/moonbase-sdk-ruby/commit/16750010bbd3d04a64170460c779fcea09d4e0b2))
16
+
3
17
  ## 0.1.0-alpha.8 (2026-02-23)
4
18
 
5
19
  Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/moonbaseai/moonbase-sdk-ruby/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "moonbase-sdk", "~> 0.1.0.pre.alpha.8"
27
+ gem "moonbase-sdk", "~> 0.1.0.pre.alpha.9"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -37,8 +37,8 @@ module Moonbase
37
37
  # @!attribute reason_code
38
38
  # A code indicating the reason for the failure (e.g., `message_contained_virus`).
39
39
  #
40
- # @return [String, nil]
41
- optional :reason_code, String
40
+ # @return [Symbol, Moonbase::Models::ActivityProgramMessageFailed::ReasonCode, nil]
41
+ optional :reason_code, enum: -> { Moonbase::ActivityProgramMessageFailed::ReasonCode }
42
42
 
43
43
  # @!method initialize(id:, occurred_at:, program_message:, recipient:, reason_code: nil, type: :"activity/program_message_failed")
44
44
  # Some parameter documentations has been truncated, see
@@ -55,9 +55,23 @@ module Moonbase
55
55
  #
56
56
  # @param recipient [Moonbase::Models::ItemPointer, nil] A reference to an `Item` within a specific `Collection`, providing the context n
57
57
  #
58
- # @param reason_code [String] A code indicating the reason for the failure (e.g., `message_contained_virus`).
58
+ # @param reason_code [Symbol, Moonbase::Models::ActivityProgramMessageFailed::ReasonCode] A code indicating the reason for the failure (e.g., `message_contained_virus`).
59
59
  #
60
60
  # @param type [Symbol, :"activity/program_message_failed"] The type of activity. Always `activity/program_message_failed`.
61
+
62
+ # A code indicating the reason for the failure (e.g., `message_contained_virus`).
63
+ #
64
+ # @see Moonbase::Models::ActivityProgramMessageFailed#reason_code
65
+ module ReasonCode
66
+ extend Moonbase::Internal::Type::Enum
67
+
68
+ LIQUID_ERROR = :liquid_error
69
+ PERSON_MISSING_EMAIL = :person_missing_email
70
+ MESSAGE_CONTAINED_VIRUS = :message_contained_virus
71
+
72
+ # @!method self.values
73
+ # @return [Array<Symbol>]
74
+ end
61
75
  end
62
76
  end
63
77
  end
@@ -38,8 +38,8 @@ module Moonbase
38
38
  # A code indicating why the message was shielded (e.g.,
39
39
  # `person_previously_unsubscribed`).
40
40
  #
41
- # @return [String, nil]
42
- optional :reason_code, String
41
+ # @return [Symbol, Moonbase::Models::ActivityProgramMessageShielded::ReasonCode, nil]
42
+ optional :reason_code, enum: -> { Moonbase::ActivityProgramMessageShielded::ReasonCode }
43
43
 
44
44
  # @!method initialize(id:, occurred_at:, program_message:, recipient:, reason_code: nil, type: :"activity/program_message_shielded")
45
45
  # Some parameter documentations has been truncated, see
@@ -56,9 +56,23 @@ module Moonbase
56
56
  #
57
57
  # @param recipient [Moonbase::Models::ItemPointer, nil] A reference to an `Item` within a specific `Collection`, providing the context n
58
58
  #
59
- # @param reason_code [String] A code indicating why the message was shielded (e.g., `person_previously_unsubsc
59
+ # @param reason_code [Symbol, Moonbase::Models::ActivityProgramMessageShielded::ReasonCode] A code indicating why the message was shielded (e.g., `person_previously_unsubsc
60
60
  #
61
61
  # @param type [Symbol, :"activity/program_message_shielded"] The type of activity. Always `activity/program_message_shielded`.
62
+
63
+ # A code indicating why the message was shielded (e.g.,
64
+ # `person_previously_unsubscribed`).
65
+ #
66
+ # @see Moonbase::Models::ActivityProgramMessageShielded#reason_code
67
+ module ReasonCode
68
+ extend Moonbase::Internal::Type::Enum
69
+
70
+ PERSON_PREVIOUSLY_UNSUBSCRIBED = :person_previously_unsubscribed
71
+ EMAIL_ON_UNSUBSCRIBE_LIST = :email_on_unsubscribe_list
72
+
73
+ # @!method self.values
74
+ # @return [Array<Symbol>]
75
+ end
62
76
  end
63
77
  end
64
78
  end
@@ -31,8 +31,8 @@ module Moonbase
31
31
  # @!attribute provider
32
32
  # The name of the phone provider that handled the call.
33
33
  #
34
- # @return [String]
35
- required :provider, String
34
+ # @return [Symbol, Moonbase::Models::Call::Provider]
35
+ required :provider, enum: -> { Moonbase::Call::Provider }
36
36
 
37
37
  # @!attribute provider_id
38
38
  # The unique identifier for the call from the provider's system.
@@ -116,7 +116,7 @@ module Moonbase
116
116
  #
117
117
  # @param participants [Array<Moonbase::Models::Call::Participant>] The participants involved in the call.
118
118
  #
119
- # @param provider [String] The name of the phone provider that handled the call.
119
+ # @param provider [Symbol, Moonbase::Models::Call::Provider] The name of the phone provider that handled the call.
120
120
  #
121
121
  # @param provider_id [String] The unique identifier for the call from the provider's system.
122
122
  #
@@ -224,6 +224,20 @@ module Moonbase
224
224
  end
225
225
  end
226
226
 
227
+ # The name of the phone provider that handled the call.
228
+ #
229
+ # @see Moonbase::Models::Call#provider
230
+ module Provider
231
+ extend Moonbase::Internal::Type::Enum
232
+
233
+ OPENPHONE = :openphone
234
+ USER = :user
235
+ ZOOM_PHONE = :zoom_phone
236
+
237
+ # @!method self.values
238
+ # @return [Array<Symbol>]
239
+ end
240
+
227
241
  # @see Moonbase::Models::Call#transcript
228
242
  class Transcript < Moonbase::Internal::Type::BaseModel
229
243
  # @!attribute cues
@@ -22,8 +22,8 @@ module Moonbase
22
22
  # @!attribute provider
23
23
  # The name of the phone provider that handled the call (e.g., `openphone`).
24
24
  #
25
- # @return [String]
26
- required :provider, String
25
+ # @return [Symbol, Moonbase::Models::CallCreateParams::Provider]
26
+ required :provider, enum: -> { Moonbase::CallCreateParams::Provider }
27
27
 
28
28
  # @!attribute provider_id
29
29
  # The unique identifier for the call from the provider's system.
@@ -78,7 +78,7 @@ module Moonbase
78
78
  #
79
79
  # @param participants [Array<Moonbase::Models::CallCreateParams::Participant>] An array of participants involved in the call.
80
80
  #
81
- # @param provider [String] The name of the phone provider that handled the call (e.g., `openphone`).
81
+ # @param provider [Symbol, Moonbase::Models::CallCreateParams::Provider] The name of the phone provider that handled the call (e.g., `openphone`).
82
82
  #
83
83
  # @param provider_id [String] The unique identifier for the call from the provider's system.
84
84
  #
@@ -144,13 +144,25 @@ module Moonbase
144
144
  end
145
145
  end
146
146
 
147
+ # The name of the phone provider that handled the call (e.g., `openphone`).
148
+ module Provider
149
+ extend Moonbase::Internal::Type::Enum
150
+
151
+ OPENPHONE = :openphone
152
+ USER = :user
153
+ ZOOM_PHONE = :zoom_phone
154
+
155
+ # @!method self.values
156
+ # @return [Array<Symbol>]
157
+ end
158
+
147
159
  class Recording < Moonbase::Internal::Type::BaseModel
148
160
  # @!attribute content_type
149
161
  # The content type of the recording. Note that only `audio/mpeg` is supported at
150
162
  # this time.
151
163
  #
152
- # @return [String]
153
- required :content_type, String
164
+ # @return [Symbol, Moonbase::Models::CallCreateParams::Recording::ContentType]
165
+ required :content_type, enum: -> { Moonbase::CallCreateParams::Recording::ContentType }
154
166
 
155
167
  # @!attribute provider_id
156
168
  # The unique identifier for the recording from the provider's system.
@@ -170,11 +182,24 @@ module Moonbase
170
182
  #
171
183
  # Parameters for creating a `CallRecording` object.
172
184
  #
173
- # @param content_type [String] The content type of the recording. Note that only `audio/mpeg` is supported at t
185
+ # @param content_type [Symbol, Moonbase::Models::CallCreateParams::Recording::ContentType] The content type of the recording. Note that only `audio/mpeg` is supported at t
174
186
  #
175
187
  # @param provider_id [String] The unique identifier for the recording from the provider's system.
176
188
  #
177
189
  # @param url [String] The URL pointing to the recording.
190
+
191
+ # The content type of the recording. Note that only `audio/mpeg` is supported at
192
+ # this time.
193
+ #
194
+ # @see Moonbase::Models::CallCreateParams::Recording#content_type
195
+ module ContentType
196
+ extend Moonbase::Internal::Type::Enum
197
+
198
+ AUDIO_MPEG = :"audio/mpeg"
199
+
200
+ # @!method self.values
201
+ # @return [Array<Symbol>]
202
+ end
178
203
  end
179
204
 
180
205
  class Transcript < Moonbase::Internal::Type::BaseModel
@@ -22,8 +22,8 @@ module Moonbase
22
22
  # @!attribute provider
23
23
  # The name of the phone provider that handled the call (e.g., `openphone`).
24
24
  #
25
- # @return [String]
26
- required :provider, String
25
+ # @return [Symbol, Moonbase::Models::CallUpsertParams::Provider]
26
+ required :provider, enum: -> { Moonbase::CallUpsertParams::Provider }
27
27
 
28
28
  # @!attribute provider_id
29
29
  # The unique identifier for the call from the provider's system.
@@ -78,7 +78,7 @@ module Moonbase
78
78
  #
79
79
  # @param participants [Array<Moonbase::Models::CallUpsertParams::Participant>] An array of participants involved in the call.
80
80
  #
81
- # @param provider [String] The name of the phone provider that handled the call (e.g., `openphone`).
81
+ # @param provider [Symbol, Moonbase::Models::CallUpsertParams::Provider] The name of the phone provider that handled the call (e.g., `openphone`).
82
82
  #
83
83
  # @param provider_id [String] The unique identifier for the call from the provider's system.
84
84
  #
@@ -144,13 +144,25 @@ module Moonbase
144
144
  end
145
145
  end
146
146
 
147
+ # The name of the phone provider that handled the call (e.g., `openphone`).
148
+ module Provider
149
+ extend Moonbase::Internal::Type::Enum
150
+
151
+ OPENPHONE = :openphone
152
+ USER = :user
153
+ ZOOM_PHONE = :zoom_phone
154
+
155
+ # @!method self.values
156
+ # @return [Array<Symbol>]
157
+ end
158
+
147
159
  class Recording < Moonbase::Internal::Type::BaseModel
148
160
  # @!attribute content_type
149
161
  # The content type of the recording. Note that only `audio/mpeg` is supported at
150
162
  # this time.
151
163
  #
152
- # @return [String]
153
- required :content_type, String
164
+ # @return [Symbol, Moonbase::Models::CallUpsertParams::Recording::ContentType]
165
+ required :content_type, enum: -> { Moonbase::CallUpsertParams::Recording::ContentType }
154
166
 
155
167
  # @!attribute provider_id
156
168
  # The unique identifier for the recording from the provider's system.
@@ -170,11 +182,24 @@ module Moonbase
170
182
  #
171
183
  # Parameters for creating a `CallRecording` object.
172
184
  #
173
- # @param content_type [String] The content type of the recording. Note that only `audio/mpeg` is supported at t
185
+ # @param content_type [Symbol, Moonbase::Models::CallUpsertParams::Recording::ContentType] The content type of the recording. Note that only `audio/mpeg` is supported at t
174
186
  #
175
187
  # @param provider_id [String] The unique identifier for the recording from the provider's system.
176
188
  #
177
189
  # @param url [String] The URL pointing to the recording.
190
+
191
+ # The content type of the recording. Note that only `audio/mpeg` is supported at
192
+ # this time.
193
+ #
194
+ # @see Moonbase::Models::CallUpsertParams::Recording#content_type
195
+ module ContentType
196
+ extend Moonbase::Internal::Type::Enum
197
+
198
+ AUDIO_MPEG = :"audio/mpeg"
199
+
200
+ # @!method self.values
201
+ # @return [Array<Symbol>]
202
+ end
178
203
  end
179
204
 
180
205
  class Transcript < Moonbase::Internal::Type::BaseModel
@@ -31,8 +31,8 @@ module Moonbase
31
31
  # The content type of the recording. Note that only `video/mp4` is supported at
32
32
  # this time.
33
33
  #
34
- # @return [String]
35
- required :content_type, String
34
+ # @return [Symbol, Moonbase::Models::MeetingUpdateParams::Recording::ContentType]
35
+ required :content_type, enum: -> { Moonbase::MeetingUpdateParams::Recording::ContentType }
36
36
 
37
37
  # @!attribute provider_id
38
38
  # The unique identifier for the recording from the provider's system.
@@ -52,11 +52,24 @@ module Moonbase
52
52
  #
53
53
  # A video recording of the meeting.
54
54
  #
55
- # @param content_type [String] The content type of the recording. Note that only `video/mp4` is supported at th
55
+ # @param content_type [Symbol, Moonbase::Models::MeetingUpdateParams::Recording::ContentType] The content type of the recording. Note that only `video/mp4` is supported at th
56
56
  #
57
57
  # @param provider_id [String] The unique identifier for the recording from the provider's system.
58
58
  #
59
59
  # @param url [String] The URL pointing to the recording.
60
+
61
+ # The content type of the recording. Note that only `video/mp4` is supported at
62
+ # this time.
63
+ #
64
+ # @see Moonbase::Models::MeetingUpdateParams::Recording#content_type
65
+ module ContentType
66
+ extend Moonbase::Internal::Type::Enum
67
+
68
+ VIDEO_MP4 = :"video/mp4"
69
+
70
+ # @!method self.values
71
+ # @return [Array<Symbol>]
72
+ end
60
73
  end
61
74
 
62
75
  class Transcript < Moonbase::Internal::Type::BaseModel
@@ -11,7 +11,7 @@ module Moonbase
11
11
  #
12
12
  # @param participants [Array<Moonbase::Models::CallCreateParams::Participant>] An array of participants involved in the call.
13
13
  #
14
- # @param provider [String] The name of the phone provider that handled the call (e.g., `openphone`).
14
+ # @param provider [Symbol, Moonbase::Models::CallCreateParams::Provider] The name of the phone provider that handled the call (e.g., `openphone`).
15
15
  #
16
16
  # @param provider_id [String] The unique identifier for the call from the provider's system.
17
17
  #
@@ -104,7 +104,7 @@ module Moonbase
104
104
  #
105
105
  # @param participants [Array<Moonbase::Models::CallUpsertParams::Participant>] An array of participants involved in the call.
106
106
  #
107
- # @param provider [String] The name of the phone provider that handled the call (e.g., `openphone`).
107
+ # @param provider [Symbol, Moonbase::Models::CallUpsertParams::Provider] The name of the phone provider that handled the call (e.g., `openphone`).
108
108
  #
109
109
  # @param provider_id [String] The unique identifier for the call from the provider's system.
110
110
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Moonbase
4
- VERSION = "0.1.0.pre.alpha.8"
4
+ VERSION = "0.1.0.pre.alpha.9"
5
5
  end
@@ -39,10 +39,21 @@ module Moonbase
39
39
  attr_accessor :type
40
40
 
41
41
  # A code indicating the reason for the failure (e.g., `message_contained_virus`).
42
- sig { returns(T.nilable(String)) }
42
+ sig do
43
+ returns(
44
+ T.nilable(
45
+ Moonbase::ActivityProgramMessageFailed::ReasonCode::TaggedSymbol
46
+ )
47
+ )
48
+ end
43
49
  attr_reader :reason_code
44
50
 
45
- sig { params(reason_code: String).void }
51
+ sig do
52
+ params(
53
+ reason_code:
54
+ Moonbase::ActivityProgramMessageFailed::ReasonCode::OrSymbol
55
+ ).void
56
+ end
46
57
  attr_writer :reason_code
47
58
 
48
59
  # Represents an event that occurs when a `ProgramMessage` fails to be delivered
@@ -53,7 +64,8 @@ module Moonbase
53
64
  occurred_at: Time,
54
65
  program_message: T.nilable(Moonbase::Pointer::OrHash),
55
66
  recipient: T.nilable(Moonbase::ItemPointer::OrHash),
56
- reason_code: String,
67
+ reason_code:
68
+ Moonbase::ActivityProgramMessageFailed::ReasonCode::OrSymbol,
57
69
  type: Symbol
58
70
  ).returns(T.attached_class)
59
71
  end
@@ -82,12 +94,50 @@ module Moonbase
82
94
  program_message: T.nilable(Moonbase::Pointer),
83
95
  recipient: T.nilable(Moonbase::ItemPointer),
84
96
  type: Symbol,
85
- reason_code: String
97
+ reason_code:
98
+ Moonbase::ActivityProgramMessageFailed::ReasonCode::TaggedSymbol
86
99
  }
87
100
  )
88
101
  end
89
102
  def to_hash
90
103
  end
104
+
105
+ # A code indicating the reason for the failure (e.g., `message_contained_virus`).
106
+ module ReasonCode
107
+ extend Moonbase::Internal::Type::Enum
108
+
109
+ TaggedSymbol =
110
+ T.type_alias do
111
+ T.all(Symbol, Moonbase::ActivityProgramMessageFailed::ReasonCode)
112
+ end
113
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
114
+
115
+ LIQUID_ERROR =
116
+ T.let(
117
+ :liquid_error,
118
+ Moonbase::ActivityProgramMessageFailed::ReasonCode::TaggedSymbol
119
+ )
120
+ PERSON_MISSING_EMAIL =
121
+ T.let(
122
+ :person_missing_email,
123
+ Moonbase::ActivityProgramMessageFailed::ReasonCode::TaggedSymbol
124
+ )
125
+ MESSAGE_CONTAINED_VIRUS =
126
+ T.let(
127
+ :message_contained_virus,
128
+ Moonbase::ActivityProgramMessageFailed::ReasonCode::TaggedSymbol
129
+ )
130
+
131
+ sig do
132
+ override.returns(
133
+ T::Array[
134
+ Moonbase::ActivityProgramMessageFailed::ReasonCode::TaggedSymbol
135
+ ]
136
+ )
137
+ end
138
+ def self.values
139
+ end
140
+ end
91
141
  end
92
142
  end
93
143
  end
@@ -40,10 +40,21 @@ module Moonbase
40
40
 
41
41
  # A code indicating why the message was shielded (e.g.,
42
42
  # `person_previously_unsubscribed`).
43
- sig { returns(T.nilable(String)) }
43
+ sig do
44
+ returns(
45
+ T.nilable(
46
+ Moonbase::ActivityProgramMessageShielded::ReasonCode::TaggedSymbol
47
+ )
48
+ )
49
+ end
44
50
  attr_reader :reason_code
45
51
 
46
- sig { params(reason_code: String).void }
52
+ sig do
53
+ params(
54
+ reason_code:
55
+ Moonbase::ActivityProgramMessageShielded::ReasonCode::OrSymbol
56
+ ).void
57
+ end
47
58
  attr_writer :reason_code
48
59
 
49
60
  # Represents an event that occurs when a `ProgramMessage` is prevented from being
@@ -54,7 +65,8 @@ module Moonbase
54
65
  occurred_at: Time,
55
66
  program_message: T.nilable(Moonbase::Pointer::OrHash),
56
67
  recipient: T.nilable(Moonbase::ItemPointer::OrHash),
57
- reason_code: String,
68
+ reason_code:
69
+ Moonbase::ActivityProgramMessageShielded::ReasonCode::OrSymbol,
58
70
  type: Symbol
59
71
  ).returns(T.attached_class)
60
72
  end
@@ -84,12 +96,46 @@ module Moonbase
84
96
  program_message: T.nilable(Moonbase::Pointer),
85
97
  recipient: T.nilable(Moonbase::ItemPointer),
86
98
  type: Symbol,
87
- reason_code: String
99
+ reason_code:
100
+ Moonbase::ActivityProgramMessageShielded::ReasonCode::TaggedSymbol
88
101
  }
89
102
  )
90
103
  end
91
104
  def to_hash
92
105
  end
106
+
107
+ # A code indicating why the message was shielded (e.g.,
108
+ # `person_previously_unsubscribed`).
109
+ module ReasonCode
110
+ extend Moonbase::Internal::Type::Enum
111
+
112
+ TaggedSymbol =
113
+ T.type_alias do
114
+ T.all(Symbol, Moonbase::ActivityProgramMessageShielded::ReasonCode)
115
+ end
116
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
117
+
118
+ PERSON_PREVIOUSLY_UNSUBSCRIBED =
119
+ T.let(
120
+ :person_previously_unsubscribed,
121
+ Moonbase::ActivityProgramMessageShielded::ReasonCode::TaggedSymbol
122
+ )
123
+ EMAIL_ON_UNSUBSCRIBE_LIST =
124
+ T.let(
125
+ :email_on_unsubscribe_list,
126
+ Moonbase::ActivityProgramMessageShielded::ReasonCode::TaggedSymbol
127
+ )
128
+
129
+ sig do
130
+ override.returns(
131
+ T::Array[
132
+ Moonbase::ActivityProgramMessageShielded::ReasonCode::TaggedSymbol
133
+ ]
134
+ )
135
+ end
136
+ def self.values
137
+ end
138
+ end
93
139
  end
94
140
  end
95
141
  end
@@ -23,7 +23,7 @@ module Moonbase
23
23
  attr_accessor :participants
24
24
 
25
25
  # The name of the phone provider that handled the call.
26
- sig { returns(String) }
26
+ sig { returns(Moonbase::Call::Provider::TaggedSymbol) }
27
27
  attr_accessor :provider
28
28
 
29
29
  # The unique identifier for the call from the provider's system.
@@ -99,7 +99,7 @@ module Moonbase
99
99
  created_at: Time,
100
100
  direction: Moonbase::Call::Direction::OrSymbol,
101
101
  participants: T::Array[Moonbase::Call::Participant::OrHash],
102
- provider: String,
102
+ provider: Moonbase::Call::Provider::OrSymbol,
103
103
  provider_id: String,
104
104
  provider_status: String,
105
105
  start_at: Time,
@@ -157,7 +157,7 @@ module Moonbase
157
157
  created_at: Time,
158
158
  direction: Moonbase::Call::Direction::TaggedSymbol,
159
159
  participants: T::Array[Moonbase::Call::Participant],
160
- provider: String,
160
+ provider: Moonbase::Call::Provider::TaggedSymbol,
161
161
  provider_id: String,
162
162
  provider_status: String,
163
163
  start_at: Time,
@@ -296,6 +296,24 @@ module Moonbase
296
296
  end
297
297
  end
298
298
 
299
+ # The name of the phone provider that handled the call.
300
+ module Provider
301
+ extend Moonbase::Internal::Type::Enum
302
+
303
+ TaggedSymbol = T.type_alias { T.all(Symbol, Moonbase::Call::Provider) }
304
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
305
+
306
+ OPENPHONE = T.let(:openphone, Moonbase::Call::Provider::TaggedSymbol)
307
+ USER = T.let(:user, Moonbase::Call::Provider::TaggedSymbol)
308
+ ZOOM_PHONE = T.let(:zoom_phone, Moonbase::Call::Provider::TaggedSymbol)
309
+
310
+ sig do
311
+ override.returns(T::Array[Moonbase::Call::Provider::TaggedSymbol])
312
+ end
313
+ def self.values
314
+ end
315
+ end
316
+
299
317
  class Transcript < Moonbase::Internal::Type::BaseModel
300
318
  OrHash =
301
319
  T.type_alias do