Skip to content

Commit 71c363e

Browse files
feat(api): api update
1 parent f8ea0ac commit 71c363e

19 files changed

+303
-345
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-11fb1aed184670541bbb7c5f04489a70c5a57d7198d5425dac011d9a66c5479c.yml
3-
openapi_spec_hash: 527a7a7a0a193740536764a2b789905f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-a9080c0de1cdfd5f5b355e5267265eba790649d0b002cc98347b6b76e3e8f075.yml
3+
openapi_spec_hash: ea95e4b3ebf37227b1b556f208968f62
44
config_hash: 405ade725d72d542c60de821a127411b

lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,36 @@
33
module Sentdm
44
module Models
55
class SentDmServicesCommonContractsPocOsTemplateButton < Sentdm::Internal::Type::BaseModel
6-
# @!attribute id
7-
# The unique identifier of the button (1-based index)
8-
#
9-
# @return [Integer, nil]
10-
optional :id, Integer
11-
126
# @!attribute props
137
# Properties specific to the button type
148
#
15-
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps, nil]
16-
optional :props, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps }
9+
# @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps]
10+
required :props, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps }
1711

1812
# @!attribute type
1913
# The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
2014
#
21-
# @return [String, nil]
22-
optional :type, String
15+
# @return [String]
16+
required :type, String
17+
18+
# @!attribute id
19+
# The unique identifier of the button (1-based index)
20+
#
21+
# @return [Integer, nil]
22+
optional :id, Integer
2323

24-
# @!method initialize(id: nil, props: nil, type: nil)
24+
# @!method initialize(props:, type:, id: nil)
2525
# Some parameter documentations has been truncated, see
2626
# {Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton} for more
2727
# details.
2828
#
2929
# Interactive button in a message template
3030
#
31-
# @param id [Integer] The unique identifier of the button (1-based index)
32-
#
3331
# @param props [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps] Properties specific to the button type
3432
#
3533
# @param type [String] The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
34+
#
35+
# @param id [Integer] The unique identifier of the button (1-based index)
3636
end
3737
end
3838
end

lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,77 +5,77 @@ module Models
55
class SentDmServicesCommonContractsPocOsTemplateButtonProps < Sentdm::Internal::Type::BaseModel
66
# @!attribute active_for
77
#
8-
# @return [Integer, nil]
9-
optional :active_for, Integer, api_name: :activeFor, nil?: true
10-
11-
# @!attribute autofill_text
12-
#
13-
# @return [String, nil]
14-
optional :autofill_text, String, api_name: :autofillText, nil?: true
8+
# @return [Integer]
9+
required :active_for, Integer, api_name: :activeFor
1510

1611
# @!attribute country_code
1712
#
18-
# @return [String, nil]
19-
optional :country_code, String, api_name: :countryCode, nil?: true
13+
# @return [String]
14+
required :country_code, String, api_name: :countryCode
2015

2116
# @!attribute offer_code
2217
#
23-
# @return [String, nil]
24-
optional :offer_code, String, api_name: :offerCode, nil?: true
18+
# @return [String]
19+
required :offer_code, String, api_name: :offerCode
2520

26-
# @!attribute otp_type
21+
# @!attribute phone_number
2722
#
28-
# @return [String, nil]
29-
optional :otp_type, String, api_name: :otpType, nil?: true
23+
# @return [String]
24+
required :phone_number, String, api_name: :phoneNumber
3025

31-
# @!attribute package_name
26+
# @!attribute quick_reply_type
3227
#
33-
# @return [String, nil]
34-
optional :package_name, String, api_name: :packageName, nil?: true
28+
# @return [String]
29+
required :quick_reply_type, String, api_name: :quickReplyType
3530

36-
# @!attribute phone_number
31+
# @!attribute text
3732
#
38-
# @return [String, nil]
39-
optional :phone_number, String, api_name: :phoneNumber, nil?: true
33+
# @return [String]
34+
required :text, String
4035

41-
# @!attribute quick_reply_type
36+
# @!attribute url
4237
#
43-
# @return [String, nil]
44-
optional :quick_reply_type, String, api_name: :quickReplyType, nil?: true
38+
# @return [String]
39+
required :url, String
4540

46-
# @!attribute signature_hash
41+
# @!attribute url_type
42+
#
43+
# @return [String]
44+
required :url_type, String, api_name: :urlType
45+
46+
# @!attribute autofill_text
4747
#
4848
# @return [String, nil]
49-
optional :signature_hash, String, api_name: :signatureHash, nil?: true
49+
optional :autofill_text, String, api_name: :autofillText, nil?: true
5050

51-
# @!attribute text
51+
# @!attribute otp_type
5252
#
5353
# @return [String, nil]
54-
optional :text, String, nil?: true
54+
optional :otp_type, String, api_name: :otpType, nil?: true
5555

56-
# @!attribute url
56+
# @!attribute package_name
5757
#
5858
# @return [String, nil]
59-
optional :url, String, nil?: true
59+
optional :package_name, String, api_name: :packageName, nil?: true
6060

61-
# @!attribute url_type
61+
# @!attribute signature_hash
6262
#
6363
# @return [String, nil]
64-
optional :url_type, String, api_name: :urlType, nil?: true
64+
optional :signature_hash, String, api_name: :signatureHash, nil?: true
6565

66-
# @!method initialize(active_for: nil, autofill_text: nil, country_code: nil, offer_code: nil, otp_type: nil, package_name: nil, phone_number: nil, quick_reply_type: nil, signature_hash: nil, text: nil, url: nil, url_type: nil)
67-
# @param active_for [Integer, nil]
66+
# @!method initialize(active_for:, country_code:, offer_code:, phone_number:, quick_reply_type:, text:, url:, url_type:, autofill_text: nil, otp_type: nil, package_name: nil, signature_hash: nil)
67+
# @param active_for [Integer]
68+
# @param country_code [String]
69+
# @param offer_code [String]
70+
# @param phone_number [String]
71+
# @param quick_reply_type [String]
72+
# @param text [String]
73+
# @param url [String]
74+
# @param url_type [String]
6875
# @param autofill_text [String, nil]
69-
# @param country_code [String, nil]
70-
# @param offer_code [String, nil]
7176
# @param otp_type [String, nil]
7277
# @param package_name [String, nil]
73-
# @param phone_number [String, nil]
74-
# @param quick_reply_type [String, nil]
7578
# @param signature_hash [String, nil]
76-
# @param text [String, nil]
77-
# @param url [String, nil]
78-
# @param url_type [String, nil]
7979
end
8080
end
8181
end

lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class SentDmServicesCommonContractsPocOsTemplateFooter < Sentdm::Internal::Type:
66
# @!attribute template
77
# The footer template text with optional variable placeholders
88
#
9-
# @return [String, nil]
10-
optional :template, String
9+
# @return [String]
10+
required :template, String
1111

1212
# @!attribute type
1313
# The type of footer (typically "text")
@@ -21,7 +21,7 @@ class SentDmServicesCommonContractsPocOsTemplateFooter < Sentdm::Internal::Type:
2121
# @return [Array<Sentdm::Models::TemplateVariable>, nil]
2222
optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
2323

24-
# @!method initialize(template: nil, type: nil, variables: nil)
24+
# @!method initialize(template:, type: nil, variables: nil)
2525
# Footer section of a message template
2626
#
2727
# @param template [String] The footer template text with optional variable placeholders

lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class SentDmServicesCommonContractsPocOsTemplateHeader < Sentdm::Internal::Type:
77
# The header template text with optional variable placeholders (e.g., "Welcome to
88
# {{0:variable}}")
99
#
10-
# @return [String, nil]
11-
optional :template, String
10+
# @return [String]
11+
required :template, String
1212

1313
# @!attribute type
1414
# The type of header (e.g., "text", "image", "video", "document")
@@ -22,7 +22,7 @@ class SentDmServicesCommonContractsPocOsTemplateHeader < Sentdm::Internal::Type:
2222
# @return [Array<Sentdm::Models::TemplateVariable>, nil]
2323
optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
2424

25-
# @!method initialize(template: nil, type: nil, variables: nil)
25+
# @!method initialize(template:, type: nil, variables: nil)
2626
# Some parameter documentations has been truncated, see
2727
# {Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader} for more
2828
# details.

lib/sentdm/models/template_body_content.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ module Models
55
class TemplateBodyContent < Sentdm::Internal::Type::BaseModel
66
# @!attribute template
77
#
8-
# @return [String, nil]
9-
optional :template, String
8+
# @return [String]
9+
required :template, String
1010

1111
# @!attribute type
1212
#
@@ -18,7 +18,7 @@ class TemplateBodyContent < Sentdm::Internal::Type::BaseModel
1818
# @return [Array<Sentdm::Models::TemplateVariable>, nil]
1919
optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
2020

21-
# @!method initialize(template: nil, type: nil, variables: nil)
21+
# @!method initialize(template:, type: nil, variables: nil)
2222
# @param template [String]
2323
# @param type [String, nil]
2424
# @param variables [Array<Sentdm::Models::TemplateVariable>, nil]

lib/sentdm/models/template_variable.rb

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,77 +3,77 @@
33
module Sentdm
44
module Models
55
class TemplateVariable < Sentdm::Internal::Type::BaseModel
6-
# @!attribute id
7-
#
8-
# @return [Integer, nil]
9-
optional :id, Integer
10-
116
# @!attribute name
127
#
13-
# @return [String, nil]
14-
optional :name, String
8+
# @return [String]
9+
required :name, String
1510

1611
# @!attribute props
1712
#
18-
# @return [Sentdm::Models::TemplateVariable::Props, nil]
19-
optional :props, -> { Sentdm::TemplateVariable::Props }
13+
# @return [Sentdm::Models::TemplateVariable::Props]
14+
required :props, -> { Sentdm::TemplateVariable::Props }
2015

2116
# @!attribute type
2217
#
23-
# @return [String, nil]
24-
optional :type, String
18+
# @return [String]
19+
required :type, String
2520

26-
# @!method initialize(id: nil, name: nil, props: nil, type: nil)
27-
# @param id [Integer]
21+
# @!attribute id
22+
#
23+
# @return [Integer, nil]
24+
optional :id, Integer
25+
26+
# @!method initialize(name:, props:, type:, id: nil)
2827
# @param name [String]
2928
# @param props [Sentdm::Models::TemplateVariable::Props]
3029
# @param type [String]
30+
# @param id [Integer]
3131

3232
# @see Sentdm::Models::TemplateVariable#props
3333
class Props < Sentdm::Internal::Type::BaseModel
34-
# @!attribute alt
34+
# @!attribute media_type
3535
#
36-
# @return [String, nil]
37-
optional :alt, String, nil?: true
36+
# @return [String]
37+
required :media_type, String, api_name: :mediaType
3838

39-
# @!attribute media_type
39+
# @!attribute sample
4040
#
41-
# @return [String, nil]
42-
optional :media_type, String, api_name: :mediaType, nil?: true
41+
# @return [String]
42+
required :sample, String
4343

44-
# @!attribute regex
44+
# @!attribute url
4545
#
46-
# @return [String, nil]
47-
optional :regex, String, nil?: true
46+
# @return [String]
47+
required :url, String
4848

49-
# @!attribute sample
49+
# @!attribute variable_type
5050
#
51-
# @return [String, nil]
52-
optional :sample, String, nil?: true
51+
# @return [String]
52+
required :variable_type, String, api_name: :variableType
5353

54-
# @!attribute short_url
54+
# @!attribute alt
5555
#
5656
# @return [String, nil]
57-
optional :short_url, String, api_name: :shortUrl, nil?: true
57+
optional :alt, String, nil?: true
5858

59-
# @!attribute url
59+
# @!attribute regex
6060
#
6161
# @return [String, nil]
62-
optional :url, String, nil?: true
62+
optional :regex, String, nil?: true
6363

64-
# @!attribute variable_type
64+
# @!attribute short_url
6565
#
6666
# @return [String, nil]
67-
optional :variable_type, String, api_name: :variableType, nil?: true
67+
optional :short_url, String, api_name: :shortUrl, nil?: true
6868

69-
# @!method initialize(alt: nil, media_type: nil, regex: nil, sample: nil, short_url: nil, url: nil, variable_type: nil)
69+
# @!method initialize(media_type:, sample:, url:, variable_type:, alt: nil, regex: nil, short_url: nil)
70+
# @param media_type [String]
71+
# @param sample [String]
72+
# @param url [String]
73+
# @param variable_type [String]
7074
# @param alt [String, nil]
71-
# @param media_type [String, nil]
7275
# @param regex [String, nil]
73-
# @param sample [String, nil]
7476
# @param short_url [String, nil]
75-
# @param url [String, nil]
76-
# @param variable_type [String, nil]
7777
end
7878
end
7979
end

0 commit comments

Comments
 (0)