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 +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/lib/moonbase/models/activity_program_message_failed.rb +17 -3
- data/lib/moonbase/models/activity_program_message_shielded.rb +17 -3
- data/lib/moonbase/models/call.rb +17 -3
- data/lib/moonbase/models/call_create_params.rb +31 -6
- data/lib/moonbase/models/call_upsert_params.rb +31 -6
- data/lib/moonbase/models/meeting_update_params.rb +16 -3
- data/lib/moonbase/resources/calls.rb +2 -2
- data/lib/moonbase/version.rb +1 -1
- data/rbi/moonbase/models/activity_program_message_failed.rbi +54 -4
- data/rbi/moonbase/models/activity_program_message_shielded.rbi +50 -4
- data/rbi/moonbase/models/call.rbi +21 -3
- data/rbi/moonbase/models/call_create_params.rbi +65 -6
- data/rbi/moonbase/models/call_upsert_params.rbi +65 -6
- data/rbi/moonbase/models/meeting_update_params.rbi +44 -3
- data/rbi/moonbase/resources/calls.rbi +2 -2
- data/sig/moonbase/models/activity_program_message_failed.rbs +20 -5
- data/sig/moonbase/models/activity_program_message_shielded.rbs +19 -5
- data/sig/moonbase/models/call.rbs +16 -4
- data/sig/moonbase/models/call_create_params.rbs +34 -8
- data/sig/moonbase/models/call_upsert_params.rbs +34 -8
- data/sig/moonbase/models/meeting_update_params.rbs +18 -4
- data/sig/moonbase/resources/calls.rbs +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1b4404635a20e29ee4df574298b974c51dd8267d02413969b85b7601ed21fc5
|
|
4
|
+
data.tar.gz: 7c6108c37f21d8eadfec260fdf8933e1b202b842eaaf971ab09f8a667375696f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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 [
|
|
41
|
-
optional :reason_code,
|
|
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 [
|
|
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 [
|
|
42
|
-
optional :reason_code,
|
|
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 [
|
|
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
|
data/lib/moonbase/models/call.rb
CHANGED
|
@@ -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 [
|
|
35
|
-
required :provider,
|
|
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 [
|
|
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 [
|
|
26
|
-
required :provider,
|
|
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 [
|
|
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 [
|
|
153
|
-
required :content_type,
|
|
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 [
|
|
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 [
|
|
26
|
-
required :provider,
|
|
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 [
|
|
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 [
|
|
153
|
-
required :content_type,
|
|
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 [
|
|
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 [
|
|
35
|
-
required :content_type,
|
|
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 [
|
|
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 [
|
|
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 [
|
|
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
|
#
|
data/lib/moonbase/version.rb
CHANGED
|
@@ -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
|
|
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
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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:
|
|
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:
|
|
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(
|
|
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:
|
|
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:
|
|
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
|