Skip to content

Commit 2e50584

Browse files
feat(api): manual updates
1 parent fee4ca2 commit 2e50584

File tree

81 files changed

+282
-282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+282
-282
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-294831f61f7890b2cdb89d181f26297732387d5e1288f446c0138e46fb1a4608.yml
33
openapi_spec_hash: a7f20451621ee678fbe09ff7a297b3ea
4-
config_hash: 497506d9e2e66cd0573bd9c1f1242462
4+
config_hash: 478a49d5520c8bb64b43272de11c2872

lib/sentdm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
require_relative "sentdm/client"
5555
require_relative "sentdm/models/mutation_request"
5656
require_relative "sentdm/models/profiles/base_dto"
57-
require_relative "sentdm/models/api_error"
5857
require_relative "sentdm/models/api_meta"
5958
require_relative "sentdm/models/api_response_of_contact"
6059
require_relative "sentdm/models/api_response_of_profile_detail"
@@ -71,6 +70,7 @@
7170
require_relative "sentdm/models/contact_retrieve_params"
7271
require_relative "sentdm/models/contact_update_params"
7372
require_relative "sentdm/models/destination_country"
73+
require_relative "sentdm/models/error_detail"
7474
require_relative "sentdm/models/me_retrieve_params"
7575
require_relative "sentdm/models/me_retrieve_response"
7676
require_relative "sentdm/models/message_retrieve_activities_params"

lib/sentdm/internal/type/base_model.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ def deep_to_h = self.class.recursively_to_h(@data, convert: false)
438438
# @return [Hash{Symbol=>Object}]
439439
#
440440
# @example
441-
# # `api_error` is a `Sentdm::APIError`
442-
# api_error => {
443-
# code: code,
444-
# details: details,
445-
# doc_url: doc_url
441+
# # `api_meta` is a `Sentdm::APIMeta`
442+
# api_meta => {
443+
# request_id: request_id,
444+
# timestamp: timestamp,
445+
# version: version
446446
# }
447447
def deconstruct_keys(keys)
448448
(keys || self.class.known_fields.keys)

lib/sentdm/models.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ module Sentdm
3939
mod.define_sorbet_constant!(const) { T.type_alias { mod.to_sorbet_type } }
4040
end
4141

42-
APIError = Sentdm::Models::APIError
43-
4442
APIMeta = Sentdm::Models::APIMeta
4543

4644
APIResponseOfContact = Sentdm::Models::APIResponseOfContact
@@ -71,6 +69,8 @@ module Sentdm
7169

7270
DestinationCountry = Sentdm::Models::DestinationCountry
7371

72+
ErrorDetail = Sentdm::Models::ErrorDetail
73+
7474
MeRetrieveParams = Sentdm::Models::MeRetrieveParams
7575

7676
MessageRetrieveActivitiesParams = Sentdm::Models::MessageRetrieveActivitiesParams

lib/sentdm/models/api_response_of_contact.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class APIResponseOfContact < Sentdm::Internal::Type::BaseModel
1313
# @!attribute error
1414
# Error information
1515
#
16-
# @return [Sentdm::Models::APIError, nil]
17-
optional :error, -> { Sentdm::APIError }, nil?: true
16+
# @return [Sentdm::Models::ErrorDetail, nil]
17+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
1818

1919
# @!attribute meta
2020
# Request and response metadata
@@ -36,7 +36,7 @@ class APIResponseOfContact < Sentdm::Internal::Type::BaseModel
3636
#
3737
# @param data [Sentdm::Models::ContactResponse, nil] Contact response for v3 API
3838
#
39-
# @param error [Sentdm::Models::APIError, nil] Error information
39+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
4040
#
4141
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
4242
#

lib/sentdm/models/api_response_of_profile_detail.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class APIResponseOfProfileDetail < Sentdm::Internal::Type::BaseModel
1313
# @!attribute error
1414
# Error information
1515
#
16-
# @return [Sentdm::Models::APIError, nil]
17-
optional :error, -> { Sentdm::APIError }, nil?: true
16+
# @return [Sentdm::Models::ErrorDetail, nil]
17+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
1818

1919
# @!attribute meta
2020
# Request and response metadata
@@ -33,7 +33,7 @@ class APIResponseOfProfileDetail < Sentdm::Internal::Type::BaseModel
3333
#
3434
# @param data [Sentdm::Models::ProfileDetail, nil] Detailed profile response for v3 API
3535
#
36-
# @param error [Sentdm::Models::APIError, nil] Error information
36+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
3737
#
3838
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
3939
#

lib/sentdm/models/api_response_of_user.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class APIResponseOfUser < Sentdm::Internal::Type::BaseModel
1313
# @!attribute error
1414
# Error information
1515
#
16-
# @return [Sentdm::Models::APIError, nil]
17-
optional :error, -> { Sentdm::APIError }, nil?: true
16+
# @return [Sentdm::Models::ErrorDetail, nil]
17+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
1818

1919
# @!attribute meta
2020
# Request and response metadata
@@ -33,7 +33,7 @@ class APIResponseOfUser < Sentdm::Internal::Type::BaseModel
3333
#
3434
# @param data [Sentdm::Models::UserResponse, nil] User response for v3 API
3535
#
36-
# @param error [Sentdm::Models::APIError, nil] Error information
36+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
3737
#
3838
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
3939
#

lib/sentdm/models/api_response_template.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class APIResponseTemplate < Sentdm::Internal::Type::BaseModel
1313
# @!attribute error
1414
# Error information
1515
#
16-
# @return [Sentdm::Models::APIError, nil]
17-
optional :error, -> { Sentdm::APIError }, nil?: true
16+
# @return [Sentdm::Models::ErrorDetail, nil]
17+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
1818

1919
# @!attribute meta
2020
# Request and response metadata
@@ -33,7 +33,7 @@ class APIResponseTemplate < Sentdm::Internal::Type::BaseModel
3333
#
3434
# @param data [Sentdm::Models::Template, nil] Template response for v3 API
3535
#
36-
# @param error [Sentdm::Models::APIError, nil] Error information
36+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
3737
#
3838
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
3939
#

lib/sentdm/models/api_response_webhook.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class APIResponseWebhook < Sentdm::Internal::Type::BaseModel
1313
# @!attribute error
1414
# Error information
1515
#
16-
# @return [Sentdm::Models::APIError, nil]
17-
optional :error, -> { Sentdm::APIError }, nil?: true
16+
# @return [Sentdm::Models::ErrorDetail, nil]
17+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
1818

1919
# @!attribute meta
2020
# Request and response metadata
@@ -33,7 +33,7 @@ class APIResponseWebhook < Sentdm::Internal::Type::BaseModel
3333
#
3434
# @param data [Sentdm::Models::WebhookResponse, nil] The response data (null if error)
3535
#
36-
# @param error [Sentdm::Models::APIError, nil] Error information
36+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
3737
#
3838
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
3939
#

lib/sentdm/models/contact_list_response.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ class ContactListResponse < Sentdm::Internal::Type::BaseModel
1313
# @!attribute error
1414
# Error information
1515
#
16-
# @return [Sentdm::Models::APIError, nil]
17-
optional :error, -> { Sentdm::APIError }, nil?: true
16+
# @return [Sentdm::Models::ErrorDetail, nil]
17+
optional :error, -> { Sentdm::ErrorDetail }, nil?: true
1818

1919
# @!attribute meta
2020
# Request and response metadata
@@ -33,7 +33,7 @@ class ContactListResponse < Sentdm::Internal::Type::BaseModel
3333
#
3434
# @param data [Sentdm::Models::ContactListResponse::Data, nil] Paginated list of contacts response
3535
#
36-
# @param error [Sentdm::Models::APIError, nil] Error information
36+
# @param error [Sentdm::Models::ErrorDetail, nil] Error information
3737
#
3838
# @param meta [Sentdm::Models::APIMeta] Request and response metadata
3939
#

0 commit comments

Comments
 (0)