prelude-sdk 0.1.0.pre.alpha.2 → 0.1.0.pre.alpha.3
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 +29 -0
- data/README.md +1 -1
- data/lib/prelude_sdk/internal/transport/base_client.rb +11 -3
- data/lib/prelude_sdk/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/prelude_sdk/internal/type/array_of.rb +1 -0
- data/lib/prelude_sdk/internal/type/base_model.rb +4 -9
- data/lib/prelude_sdk/internal/type/converter.rb +27 -0
- data/lib/prelude_sdk/internal/type/hash_of.rb +1 -0
- data/lib/prelude_sdk/internal/type/union.rb +9 -7
- data/lib/prelude_sdk/internal/util.rb +1 -1
- data/lib/prelude_sdk/models/transactional_send_params.rb +4 -2
- data/lib/prelude_sdk/models/transactional_send_response.rb +7 -2
- data/lib/prelude_sdk/models/verification_check_response.rb +6 -1
- data/lib/prelude_sdk/models/verification_create_params.rb +13 -16
- data/lib/prelude_sdk/models/verification_create_response.rb +39 -12
- data/lib/prelude_sdk/models/watch_predict_params.rb +6 -2
- data/lib/prelude_sdk/models/watch_send_feedbacks_params.rb +7 -2
- data/lib/prelude_sdk/resources/transactional.rb +1 -1
- data/lib/prelude_sdk/version.rb +1 -1
- data/rbi/prelude_sdk/errors.rbi +2 -2
- data/rbi/prelude_sdk/internal/transport/base_client.rbi +1 -1
- data/rbi/prelude_sdk/internal/type/converter.rbi +54 -0
- data/rbi/prelude_sdk/internal/type/union.rbi +9 -2
- data/rbi/prelude_sdk/models/transactional_send_params.rbi +6 -2
- data/rbi/prelude_sdk/models/transactional_send_response.rbi +6 -2
- data/rbi/prelude_sdk/models/verification_check_response.rbi +7 -1
- data/rbi/prelude_sdk/models/verification_create_params.rbi +10 -18
- data/rbi/prelude_sdk/models/verification_create_response.rbi +121 -15
- data/rbi/prelude_sdk/models/watch_predict_params.rbi +4 -2
- data/rbi/prelude_sdk/models/watch_send_feedbacks_params.rbi +4 -2
- data/rbi/prelude_sdk/resources/transactional.rbi +3 -1
- data/sig/prelude_sdk/internal/transport/base_client.rbs +1 -1
- data/sig/prelude_sdk/internal/type/converter.rbs +17 -0
- data/sig/prelude_sdk/internal/type/union.rbs +2 -2
- data/sig/prelude_sdk/models/verification_create_params.rbs +6 -15
- data/sig/prelude_sdk/models/verification_create_response.rbs +41 -16
- metadata +2 -2
@@ -90,6 +90,60 @@ module PreludeSDK
|
|
90
90
|
def self.type_info(spec)
|
91
91
|
end
|
92
92
|
|
93
|
+
# @api private
|
94
|
+
sig do
|
95
|
+
params(
|
96
|
+
type_info:
|
97
|
+
T.any(
|
98
|
+
{
|
99
|
+
const:
|
100
|
+
T.nilable(
|
101
|
+
T.any(NilClass, T::Boolean, Integer, Float, Symbol)
|
102
|
+
),
|
103
|
+
enum:
|
104
|
+
T.nilable(
|
105
|
+
T.proc.returns(
|
106
|
+
PreludeSDK::Internal::Type::Converter::Input
|
107
|
+
)
|
108
|
+
),
|
109
|
+
union:
|
110
|
+
T.nilable(
|
111
|
+
T.proc.returns(
|
112
|
+
PreludeSDK::Internal::Type::Converter::Input
|
113
|
+
)
|
114
|
+
)
|
115
|
+
},
|
116
|
+
T.proc.returns(PreludeSDK::Internal::Type::Converter::Input),
|
117
|
+
PreludeSDK::Internal::Type::Converter::Input
|
118
|
+
),
|
119
|
+
spec:
|
120
|
+
T.any(
|
121
|
+
{
|
122
|
+
const:
|
123
|
+
T.nilable(
|
124
|
+
T.any(NilClass, T::Boolean, Integer, Float, Symbol)
|
125
|
+
),
|
126
|
+
enum:
|
127
|
+
T.nilable(
|
128
|
+
T.proc.returns(
|
129
|
+
PreludeSDK::Internal::Type::Converter::Input
|
130
|
+
)
|
131
|
+
),
|
132
|
+
union:
|
133
|
+
T.nilable(
|
134
|
+
T.proc.returns(
|
135
|
+
PreludeSDK::Internal::Type::Converter::Input
|
136
|
+
)
|
137
|
+
)
|
138
|
+
},
|
139
|
+
T.proc.returns(PreludeSDK::Internal::Type::Converter::Input),
|
140
|
+
PreludeSDK::Internal::Type::Converter::Input
|
141
|
+
)
|
142
|
+
).returns(PreludeSDK::Internal::AnyHash)
|
143
|
+
end
|
144
|
+
def self.meta_info(type_info, spec)
|
145
|
+
end
|
146
|
+
|
93
147
|
# @api private
|
94
148
|
sig do
|
95
149
|
params(translate_names: T::Boolean).returns(
|
@@ -16,7 +16,8 @@ module PreludeSDK
|
|
16
16
|
T::Array[
|
17
17
|
[
|
18
18
|
T.nilable(Symbol),
|
19
|
-
T.proc.returns(PreludeSDK::Internal::Type::Converter::Input)
|
19
|
+
T.proc.returns(PreludeSDK::Internal::Type::Converter::Input),
|
20
|
+
PreludeSDK::Internal::AnyHash
|
20
21
|
]
|
21
22
|
]
|
22
23
|
)
|
@@ -25,7 +26,13 @@ module PreludeSDK
|
|
25
26
|
end
|
26
27
|
|
27
28
|
# @api private
|
28
|
-
sig
|
29
|
+
sig do
|
30
|
+
returns(
|
31
|
+
T::Array[
|
32
|
+
[T.nilable(Symbol), T.anything, PreludeSDK::Internal::AnyHash]
|
33
|
+
]
|
34
|
+
)
|
35
|
+
end
|
29
36
|
protected def derefed_variants
|
30
37
|
end
|
31
38
|
|
@@ -29,7 +29,9 @@ module PreludeSDK
|
|
29
29
|
sig { params(callback_url: String).void }
|
30
30
|
attr_writer :callback_url
|
31
31
|
|
32
|
-
# A
|
32
|
+
# A user-defined identifier to correlate this transactional message with. It is
|
33
|
+
# returned in the response and any webhook events that refer to this
|
34
|
+
# transactionalmessage.
|
33
35
|
sig { returns(T.nilable(String)) }
|
34
36
|
attr_reader :correlation_id
|
35
37
|
|
@@ -87,7 +89,9 @@ module PreludeSDK
|
|
87
89
|
to:,
|
88
90
|
# The callback URL.
|
89
91
|
callback_url: nil,
|
90
|
-
# A
|
92
|
+
# A user-defined identifier to correlate this transactional message with. It is
|
93
|
+
# returned in the response and any webhook events that refer to this
|
94
|
+
# transactionalmessage.
|
91
95
|
correlation_id: nil,
|
92
96
|
# The message expiration date.
|
93
97
|
expires_at: nil,
|
@@ -42,7 +42,9 @@ module PreludeSDK
|
|
42
42
|
sig { params(callback_url: String).void }
|
43
43
|
attr_writer :callback_url
|
44
44
|
|
45
|
-
# A
|
45
|
+
# A user-defined identifier to correlate this transactional message with. It is
|
46
|
+
# returned in the response and any webhook events that refer to this transactional
|
47
|
+
# message.
|
46
48
|
sig { returns(T.nilable(String)) }
|
47
49
|
attr_reader :correlation_id
|
48
50
|
|
@@ -84,7 +86,9 @@ module PreludeSDK
|
|
84
86
|
variables:,
|
85
87
|
# The callback URL.
|
86
88
|
callback_url: nil,
|
87
|
-
# A
|
89
|
+
# A user-defined identifier to correlate this transactional message with. It is
|
90
|
+
# returned in the response and any webhook events that refer to this transactional
|
91
|
+
# message.
|
88
92
|
correlation_id: nil,
|
89
93
|
# The Sender ID.
|
90
94
|
from: nil
|
@@ -129,6 +129,8 @@ module PreludeSDK
|
|
129
129
|
)
|
130
130
|
end
|
131
131
|
|
132
|
+
# A user-defined identifier to correlate this verification with. It is returned in
|
133
|
+
# the response and any webhook events that refer to this verification.
|
132
134
|
sig { returns(T.nilable(String)) }
|
133
135
|
attr_reader :correlation_id
|
134
136
|
|
@@ -137,7 +139,11 @@ module PreludeSDK
|
|
137
139
|
|
138
140
|
# The metadata for this verification.
|
139
141
|
sig { params(correlation_id: String).returns(T.attached_class) }
|
140
|
-
def self.new(
|
142
|
+
def self.new(
|
143
|
+
# A user-defined identifier to correlate this verification with. It is returned in
|
144
|
+
# the response and any webhook events that refer to this verification.
|
145
|
+
correlation_id: nil
|
146
|
+
)
|
141
147
|
end
|
142
148
|
|
143
149
|
sig { override.returns({ correlation_id: String }) }
|
@@ -200,7 +200,8 @@ module PreludeSDK
|
|
200
200
|
)
|
201
201
|
end
|
202
202
|
|
203
|
-
# A user-defined identifier to correlate this verification with.
|
203
|
+
# A user-defined identifier to correlate this verification with. It is returned in
|
204
|
+
# the response and any webhook events that refer to this verification.
|
204
205
|
sig { returns(T.nilable(String)) }
|
205
206
|
attr_reader :correlation_id
|
206
207
|
|
@@ -211,7 +212,8 @@ module PreludeSDK
|
|
211
212
|
# response or webhook sent that refers to this verification.
|
212
213
|
sig { params(correlation_id: String).returns(T.attached_class) }
|
213
214
|
def self.new(
|
214
|
-
# A user-defined identifier to correlate this verification with.
|
215
|
+
# A user-defined identifier to correlate this verification with. It is returned in
|
216
|
+
# the response and any webhook events that refer to this verification.
|
215
217
|
correlation_id: nil
|
216
218
|
)
|
217
219
|
end
|
@@ -294,15 +296,15 @@ module PreludeSDK
|
|
294
296
|
)
|
295
297
|
)
|
296
298
|
end
|
297
|
-
attr_reader :
|
299
|
+
attr_reader :verification_method
|
298
300
|
|
299
301
|
sig do
|
300
302
|
params(
|
301
|
-
|
303
|
+
verification_method:
|
302
304
|
PreludeSDK::VerificationCreateParams::Options::Method::OrSymbol
|
303
305
|
).void
|
304
306
|
end
|
305
|
-
attr_writer :
|
307
|
+
attr_writer :verification_method
|
306
308
|
|
307
309
|
# The preferred channel to be used in priority for verification.
|
308
310
|
sig do
|
@@ -354,7 +356,7 @@ module PreludeSDK
|
|
354
356
|
code_size: Integer,
|
355
357
|
custom_code: String,
|
356
358
|
locale: String,
|
357
|
-
|
359
|
+
verification_method:
|
358
360
|
PreludeSDK::VerificationCreateParams::Options::Method::OrSymbol,
|
359
361
|
preferred_channel:
|
360
362
|
PreludeSDK::VerificationCreateParams::Options::PreferredChannel::OrSymbol,
|
@@ -387,7 +389,7 @@ module PreludeSDK
|
|
387
389
|
# accessible alternative for visually impaired users by delivering the
|
388
390
|
# verification code through a phone call rather than a text message. It also
|
389
391
|
# allows verification of landline numbers that cannot receive SMS messages.
|
390
|
-
|
392
|
+
verification_method: nil,
|
391
393
|
# The preferred channel to be used in priority for verification.
|
392
394
|
preferred_channel: nil,
|
393
395
|
# The Sender ID to use for this message. The Sender ID needs to be enabled by
|
@@ -410,7 +412,7 @@ module PreludeSDK
|
|
410
412
|
code_size: Integer,
|
411
413
|
custom_code: String,
|
412
414
|
locale: String,
|
413
|
-
|
415
|
+
verification_method:
|
414
416
|
PreludeSDK::VerificationCreateParams::Options::Method::OrSymbol,
|
415
417
|
preferred_channel:
|
416
418
|
PreludeSDK::VerificationCreateParams::Options::PreferredChannel::OrSymbol,
|
@@ -588,16 +590,6 @@ module PreludeSDK
|
|
588
590
|
:telegram,
|
589
591
|
PreludeSDK::VerificationCreateParams::Options::PreferredChannel::TaggedSymbol
|
590
592
|
)
|
591
|
-
SILENT =
|
592
|
-
T.let(
|
593
|
-
:silent,
|
594
|
-
PreludeSDK::VerificationCreateParams::Options::PreferredChannel::TaggedSymbol
|
595
|
-
)
|
596
|
-
VOICE =
|
597
|
-
T.let(
|
598
|
-
:voice,
|
599
|
-
PreludeSDK::VerificationCreateParams::Options::PreferredChannel::TaggedSymbol
|
600
|
-
)
|
601
593
|
|
602
594
|
sig do
|
603
595
|
override.returns(
|
@@ -21,7 +21,7 @@ module PreludeSDK
|
|
21
21
|
PreludeSDK::Models::VerificationCreateResponse::Method::TaggedSymbol
|
22
22
|
)
|
23
23
|
end
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :verification_method
|
25
25
|
|
26
26
|
# The status of the verification.
|
27
27
|
sig do
|
@@ -32,10 +32,25 @@ module PreludeSDK
|
|
32
32
|
attr_accessor :status
|
33
33
|
|
34
34
|
# The ordered sequence of channels to be used for verification
|
35
|
-
sig
|
35
|
+
sig do
|
36
|
+
returns(
|
37
|
+
T.nilable(
|
38
|
+
T::Array[
|
39
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
40
|
+
]
|
41
|
+
)
|
42
|
+
)
|
43
|
+
end
|
36
44
|
attr_reader :channels
|
37
45
|
|
38
|
-
sig
|
46
|
+
sig do
|
47
|
+
params(
|
48
|
+
channels:
|
49
|
+
T::Array[
|
50
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::OrSymbol
|
51
|
+
]
|
52
|
+
).void
|
53
|
+
end
|
39
54
|
attr_writer :channels
|
40
55
|
|
41
56
|
# The metadata for this verification.
|
@@ -97,11 +112,14 @@ module PreludeSDK
|
|
97
112
|
sig do
|
98
113
|
params(
|
99
114
|
id: String,
|
100
|
-
|
115
|
+
verification_method:
|
101
116
|
PreludeSDK::Models::VerificationCreateResponse::Method::OrSymbol,
|
102
117
|
status:
|
103
118
|
PreludeSDK::Models::VerificationCreateResponse::Status::OrSymbol,
|
104
|
-
channels:
|
119
|
+
channels:
|
120
|
+
T::Array[
|
121
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::OrSymbol
|
122
|
+
],
|
105
123
|
metadata:
|
106
124
|
PreludeSDK::Models::VerificationCreateResponse::Metadata::OrHash,
|
107
125
|
reason:
|
@@ -114,7 +132,7 @@ module PreludeSDK
|
|
114
132
|
# The verification identifier.
|
115
133
|
id:,
|
116
134
|
# The method used for verifying this phone number.
|
117
|
-
|
135
|
+
verification_method:,
|
118
136
|
# The status of the verification.
|
119
137
|
status:,
|
120
138
|
# The ordered sequence of channels to be used for verification
|
@@ -134,11 +152,14 @@ module PreludeSDK
|
|
134
152
|
override.returns(
|
135
153
|
{
|
136
154
|
id: String,
|
137
|
-
|
155
|
+
verification_method:
|
138
156
|
PreludeSDK::Models::VerificationCreateResponse::Method::TaggedSymbol,
|
139
157
|
status:
|
140
158
|
PreludeSDK::Models::VerificationCreateResponse::Status::TaggedSymbol,
|
141
|
-
channels:
|
159
|
+
channels:
|
160
|
+
T::Array[
|
161
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
162
|
+
],
|
142
163
|
metadata: PreludeSDK::Models::VerificationCreateResponse::Metadata,
|
143
164
|
reason:
|
144
165
|
PreludeSDK::Models::VerificationCreateResponse::Reason::TaggedSymbol,
|
@@ -163,6 +184,11 @@ module PreludeSDK
|
|
163
184
|
end
|
164
185
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
165
186
|
|
187
|
+
EMAIL =
|
188
|
+
T.let(
|
189
|
+
:email,
|
190
|
+
PreludeSDK::Models::VerificationCreateResponse::Method::TaggedSymbol
|
191
|
+
)
|
166
192
|
MESSAGE =
|
167
193
|
T.let(
|
168
194
|
:message,
|
@@ -230,6 +256,70 @@ module PreludeSDK
|
|
230
256
|
end
|
231
257
|
end
|
232
258
|
|
259
|
+
module Channel
|
260
|
+
extend PreludeSDK::Internal::Type::Enum
|
261
|
+
|
262
|
+
TaggedSymbol =
|
263
|
+
T.type_alias do
|
264
|
+
T.all(
|
265
|
+
Symbol,
|
266
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel
|
267
|
+
)
|
268
|
+
end
|
269
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
270
|
+
|
271
|
+
RCS =
|
272
|
+
T.let(
|
273
|
+
:rcs,
|
274
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
275
|
+
)
|
276
|
+
SILENT =
|
277
|
+
T.let(
|
278
|
+
:silent,
|
279
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
280
|
+
)
|
281
|
+
SMS =
|
282
|
+
T.let(
|
283
|
+
:sms,
|
284
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
285
|
+
)
|
286
|
+
TELEGRAM =
|
287
|
+
T.let(
|
288
|
+
:telegram,
|
289
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
290
|
+
)
|
291
|
+
VIBER =
|
292
|
+
T.let(
|
293
|
+
:viber,
|
294
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
295
|
+
)
|
296
|
+
VOICE =
|
297
|
+
T.let(
|
298
|
+
:voice,
|
299
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
300
|
+
)
|
301
|
+
WHATSAPP =
|
302
|
+
T.let(
|
303
|
+
:whatsapp,
|
304
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
305
|
+
)
|
306
|
+
ZALO =
|
307
|
+
T.let(
|
308
|
+
:zalo,
|
309
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
310
|
+
)
|
311
|
+
|
312
|
+
sig do
|
313
|
+
override.returns(
|
314
|
+
T::Array[
|
315
|
+
PreludeSDK::Models::VerificationCreateResponse::Channel::TaggedSymbol
|
316
|
+
]
|
317
|
+
)
|
318
|
+
end
|
319
|
+
def self.values
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
233
323
|
class Metadata < PreludeSDK::Internal::Type::BaseModel
|
234
324
|
OrHash =
|
235
325
|
T.type_alias do
|
@@ -239,6 +329,8 @@ module PreludeSDK
|
|
239
329
|
)
|
240
330
|
end
|
241
331
|
|
332
|
+
# A user-defined identifier to correlate this verification with. It is returned in
|
333
|
+
# the response and any webhook events that refer to this verification.
|
242
334
|
sig { returns(T.nilable(String)) }
|
243
335
|
attr_reader :correlation_id
|
244
336
|
|
@@ -247,7 +339,11 @@ module PreludeSDK
|
|
247
339
|
|
248
340
|
# The metadata for this verification.
|
249
341
|
sig { params(correlation_id: String).returns(T.attached_class) }
|
250
|
-
def self.new(
|
342
|
+
def self.new(
|
343
|
+
# A user-defined identifier to correlate this verification with. It is returned in
|
344
|
+
# the response and any webhook events that refer to this verification.
|
345
|
+
correlation_id: nil
|
346
|
+
)
|
251
347
|
end
|
252
348
|
|
253
349
|
sig { override.returns({ correlation_id: String }) }
|
@@ -269,14 +365,14 @@ module PreludeSDK
|
|
269
365
|
end
|
270
366
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
271
367
|
|
272
|
-
|
368
|
+
EXPIRED_SIGNATURE =
|
273
369
|
T.let(
|
274
|
-
:
|
370
|
+
:expired_signature,
|
275
371
|
PreludeSDK::Models::VerificationCreateResponse::Reason::TaggedSymbol
|
276
372
|
)
|
277
|
-
|
373
|
+
IN_BLOCK_LIST =
|
278
374
|
T.let(
|
279
|
-
:
|
375
|
+
:in_block_list,
|
280
376
|
PreludeSDK::Models::VerificationCreateResponse::Reason::TaggedSymbol
|
281
377
|
)
|
282
378
|
INVALID_PHONE_LINE =
|
@@ -289,9 +385,19 @@ module PreludeSDK
|
|
289
385
|
:invalid_phone_number,
|
290
386
|
PreludeSDK::Models::VerificationCreateResponse::Reason::TaggedSymbol
|
291
387
|
)
|
292
|
-
|
388
|
+
INVALID_SIGNATURE =
|
293
389
|
T.let(
|
294
|
-
:
|
390
|
+
:invalid_signature,
|
391
|
+
PreludeSDK::Models::VerificationCreateResponse::Reason::TaggedSymbol
|
392
|
+
)
|
393
|
+
REPEATED_ATTEMPTS =
|
394
|
+
T.let(
|
395
|
+
:repeated_attempts,
|
396
|
+
PreludeSDK::Models::VerificationCreateResponse::Reason::TaggedSymbol
|
397
|
+
)
|
398
|
+
SUSPICIOUS =
|
399
|
+
T.let(
|
400
|
+
:suspicious,
|
295
401
|
PreludeSDK::Models::VerificationCreateResponse::Reason::TaggedSymbol
|
296
402
|
)
|
297
403
|
|
@@ -168,7 +168,8 @@ module PreludeSDK
|
|
168
168
|
)
|
169
169
|
end
|
170
170
|
|
171
|
-
# A user-defined identifier to correlate this prediction with.
|
171
|
+
# A user-defined identifier to correlate this prediction with. It is returned in
|
172
|
+
# the response and any webhook events that refer to this prediction.
|
172
173
|
sig { returns(T.nilable(String)) }
|
173
174
|
attr_reader :correlation_id
|
174
175
|
|
@@ -178,7 +179,8 @@ module PreludeSDK
|
|
178
179
|
# The metadata for this prediction.
|
179
180
|
sig { params(correlation_id: String).returns(T.attached_class) }
|
180
181
|
def self.new(
|
181
|
-
# A user-defined identifier to correlate this prediction with.
|
182
|
+
# A user-defined identifier to correlate this prediction with. It is returned in
|
183
|
+
# the response and any webhook events that refer to this prediction.
|
182
184
|
correlation_id: nil
|
183
185
|
)
|
184
186
|
end
|
@@ -285,7 +285,8 @@ module PreludeSDK
|
|
285
285
|
)
|
286
286
|
end
|
287
287
|
|
288
|
-
# A user-defined identifier to correlate this feedback with.
|
288
|
+
# A user-defined identifier to correlate this feedback with. It is returned in the
|
289
|
+
# response and any webhook events that refer to this feedback.
|
289
290
|
sig { returns(T.nilable(String)) }
|
290
291
|
attr_reader :correlation_id
|
291
292
|
|
@@ -295,7 +296,8 @@ module PreludeSDK
|
|
295
296
|
# The metadata for this feedback.
|
296
297
|
sig { params(correlation_id: String).returns(T.attached_class) }
|
297
298
|
def self.new(
|
298
|
-
# A user-defined identifier to correlate this feedback with.
|
299
|
+
# A user-defined identifier to correlate this feedback with. It is returned in the
|
300
|
+
# response and any webhook events that refer to this feedback.
|
299
301
|
correlation_id: nil
|
300
302
|
)
|
301
303
|
end
|
@@ -24,7 +24,9 @@ module PreludeSDK
|
|
24
24
|
to:,
|
25
25
|
# The callback URL.
|
26
26
|
callback_url: nil,
|
27
|
-
# A
|
27
|
+
# A user-defined identifier to correlate this transactional message with. It is
|
28
|
+
# returned in the response and any webhook events that refer to this
|
29
|
+
# transactionalmessage.
|
28
30
|
correlation_id: nil,
|
29
31
|
# The message expiration date.
|
30
32
|
expires_at: nil,
|
@@ -39,6 +39,23 @@ module PreludeSDK
|
|
39
39
|
| PreludeSDK::Internal::Type::Converter::input spec
|
40
40
|
) -> (^-> top)
|
41
41
|
|
42
|
+
def self.meta_info: (
|
43
|
+
{
|
44
|
+
const: (nil | bool | Integer | Float | Symbol)?,
|
45
|
+
enum: ^-> PreludeSDK::Internal::Type::Converter::input?,
|
46
|
+
union: ^-> PreludeSDK::Internal::Type::Converter::input?
|
47
|
+
}
|
48
|
+
| ^-> PreludeSDK::Internal::Type::Converter::input
|
49
|
+
| PreludeSDK::Internal::Type::Converter::input type_info,
|
50
|
+
{
|
51
|
+
const: (nil | bool | Integer | Float | Symbol)?,
|
52
|
+
enum: ^-> PreludeSDK::Internal::Type::Converter::input?,
|
53
|
+
union: ^-> PreludeSDK::Internal::Type::Converter::input?
|
54
|
+
}
|
55
|
+
| ^-> PreludeSDK::Internal::Type::Converter::input
|
56
|
+
| PreludeSDK::Internal::Type::Converter::input spec
|
57
|
+
) -> ::Hash[Symbol, top]
|
58
|
+
|
42
59
|
def self.new_coerce_state: (
|
43
60
|
?translate_names: bool
|
44
61
|
) -> PreludeSDK::Internal::Type::Converter::coerce_state
|
@@ -5,9 +5,9 @@ module PreludeSDK
|
|
5
5
|
include PreludeSDK::Internal::Type::Converter
|
6
6
|
include PreludeSDK::Internal::Util::SorbetRuntimeSupport
|
7
7
|
|
8
|
-
private def self.known_variants: -> ::Array[[Symbol?, (^-> PreludeSDK::Internal::Type::Converter::input)]]
|
8
|
+
private def self.known_variants: -> ::Array[[Symbol?, (^-> PreludeSDK::Internal::Type::Converter::input), ::Hash[Symbol, top]]]
|
9
9
|
|
10
|
-
def self.derefed_variants: -> ::Array[[Symbol?, top]]
|
10
|
+
def self.derefed_variants: -> ::Array[[Symbol?, top, ::Hash[Symbol, top]]]
|
11
11
|
|
12
12
|
def self.variants: -> ::Array[top]
|
13
13
|
|
@@ -108,7 +108,7 @@ module PreludeSDK
|
|
108
108
|
code_size: Integer,
|
109
109
|
custom_code: String,
|
110
110
|
locale: String,
|
111
|
-
|
111
|
+
verification_method: PreludeSDK::Models::VerificationCreateParams::Options::method_,
|
112
112
|
preferred_channel: PreludeSDK::Models::VerificationCreateParams::Options::preferred_channel,
|
113
113
|
sender_id: String,
|
114
114
|
template_id: String,
|
@@ -138,9 +138,9 @@ module PreludeSDK
|
|
138
138
|
|
139
139
|
def locale=: (String) -> String
|
140
140
|
|
141
|
-
attr_reader
|
141
|
+
attr_reader verification_method: PreludeSDK::Models::VerificationCreateParams::Options::method_?
|
142
142
|
|
143
|
-
def
|
143
|
+
def verification_method=: (
|
144
144
|
PreludeSDK::Models::VerificationCreateParams::Options::method_
|
145
145
|
) -> PreludeSDK::Models::VerificationCreateParams::Options::method_
|
146
146
|
|
@@ -168,7 +168,7 @@ module PreludeSDK
|
|
168
168
|
?code_size: Integer,
|
169
169
|
?custom_code: String,
|
170
170
|
?locale: String,
|
171
|
-
?
|
171
|
+
?verification_method: PreludeSDK::Models::VerificationCreateParams::Options::method_,
|
172
172
|
?preferred_channel: PreludeSDK::Models::VerificationCreateParams::Options::preferred_channel,
|
173
173
|
?sender_id: String,
|
174
174
|
?template_id: String,
|
@@ -181,7 +181,7 @@ module PreludeSDK
|
|
181
181
|
code_size: Integer,
|
182
182
|
custom_code: String,
|
183
183
|
locale: String,
|
184
|
-
|
184
|
+
verification_method: PreludeSDK::Models::VerificationCreateParams::Options::method_,
|
185
185
|
preferred_channel: PreludeSDK::Models::VerificationCreateParams::Options::preferred_channel,
|
186
186
|
sender_id: String,
|
187
187
|
template_id: String,
|
@@ -232,14 +232,7 @@ module PreludeSDK
|
|
232
232
|
end
|
233
233
|
|
234
234
|
type preferred_channel =
|
235
|
-
:sms
|
236
|
-
| :rcs
|
237
|
-
| :whatsapp
|
238
|
-
| :viber
|
239
|
-
| :zalo
|
240
|
-
| :telegram
|
241
|
-
| :silent
|
242
|
-
| :voice
|
235
|
+
:sms | :rcs | :whatsapp | :viber | :zalo | :telegram
|
243
236
|
|
244
237
|
module PreferredChannel
|
245
238
|
extend PreludeSDK::Internal::Type::Enum
|
@@ -250,8 +243,6 @@ module PreludeSDK
|
|
250
243
|
VIBER: :viber
|
251
244
|
ZALO: :zalo
|
252
245
|
TELEGRAM: :telegram
|
253
|
-
SILENT: :silent
|
254
|
-
VOICE: :voice
|
255
246
|
|
256
247
|
def self?.values: -> ::Array[PreludeSDK::Models::VerificationCreateParams::Options::preferred_channel]
|
257
248
|
end
|