ding_sdk 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e2e93ec03a8ccf31d0082500dff4f6a8bdba325c7ee1a0061a7807f5f3580db
4
- data.tar.gz: c1c0c9cde43626975915d86e0f483df69ddc993a32a3102b87def52b264d29c6
3
+ metadata.gz: e3fa0fffb175780eaa14a7e91a67a335d623301179b6742fc98517fe12e6ca2f
4
+ data.tar.gz: 874a0bb8b6b492bb354608afad2b1e82cc0c3a1ebca80479b82a3aaddc614d5f
5
5
  SHA512:
6
- metadata.gz: bfbd812f466eabdd0bdf1dd0eafc5dff958df5a885da44a15897107a0d077b89515293f58a600b0d5c303e771b15478480e0a89124ce508b34d3aeefb69126ce
7
- data.tar.gz: efcf327b99b4c1fb7545eafad803ffa7aff79c70157c66c6c9c93371038a386627643078d723e8a3451f7638a94750542331b7d2bb2e2c0b7527877ee94ca3b2
6
+ metadata.gz: 674f3b8b8523ec8f86bf5e1e61e55efdbcfb3c46f5d47c0f6c7b95a3683fa82fed50106d0f2e0953dc68c059c41f5827b4243739cb3e9841c793aef20e65720d
7
+ data.tar.gz: e62158237b42c75a7fb5af77f9cb577b56b478f0215508c66a4180c209631a3969fd96640c9a17cb2384f203b9ce2755a0cb590a68297af0d64f5273f793436a
@@ -25,6 +25,7 @@ module DingSDK
25
25
  # * `duplicated_feedback_status` - Duplicated feedback status has found.
26
26
  # * `invalid_feedback_status` - The provided feedback status is invalid.
27
27
  # * `invalid_template_id` - The provided template ID is invalid.
28
+ # * `suspended_account` - Your account has been suspended.
28
29
  #
29
30
  class Code < T::Enum
30
31
  enums do
@@ -48,6 +49,7 @@ module DingSDK
48
49
  DUPLICATED_FEEDBACK_STATUS = new('duplicated_feedback_status')
49
50
  INVALID_FEEDBACK_STATUS = new('invalid_feedback_status')
50
51
  INVALID_TEMPLATE_ID = new('invalid_template_id')
52
+ SUSPENDED_ACCOUNT = new('suspended_account')
51
53
  end
52
54
  end
53
55
 
@@ -29,6 +29,7 @@ module DingSDK
29
29
  # * `duplicated_feedback_status` - Duplicated feedback status has found.
30
30
  # * `invalid_feedback_status` - The provided feedback status is invalid.
31
31
  # * `invalid_template_id` - The provided template ID is invalid.
32
+ # * `suspended_account` - Your account has been suspended.
32
33
  #
33
34
  field :code, T.nilable(::DingSDK::Shared::Code), { 'format_json': { 'letter_case': ::DingSDK::Utils.field_name('code'), 'decoder': Utils.enum_from_string(::DingSDK::Shared::Code, true) } }
34
35
  # A link to the documentation that describes the error.
@@ -38,9 +38,9 @@ module DingSDK
38
38
  @security = security
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '1.0.0'
41
- @sdk_version = '0.8.6'
42
- @gen_version = '2.286.4'
43
- @user_agent = 'speakeasy-sdk/ruby 0.8.6 2.286.4 1.0.0 ding_sdk'
41
+ @sdk_version = '0.8.7'
42
+ @gen_version = '2.312.1'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.8.7 2.312.1 1.0.0 ding_sdk'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -29,8 +29,8 @@ module DingSDK
29
29
  end
30
30
  end
31
31
 
32
- sig { params(headers_params: FieldAugmented).returns(T::Hash[Symbol, String]) }
33
- def self.get_headers(headers_params)
32
+ sig { params(headers_params: FieldAugmented, gbls: T.nilable(T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]])).returns(T::Hash[Symbol, String]) }
33
+ def self.get_headers(headers_params, gbls = nil)
34
34
  return {} if headers_params.nil?
35
35
 
36
36
  headers = {}
@@ -39,7 +39,8 @@ module DingSDK
39
39
  metadata = f.metadata[:header]
40
40
  next if metadata.nil?
41
41
 
42
- value = _serialize_header(metadata.fetch(:explode, false), headers_params.send(f.name))
42
+ value = _populate_from_globals(f.name, headers_params&.send(f.name), 'header', gbls)
43
+ value = _serialize_header(metadata.fetch(:explode, false), value)
43
44
  headers[metadata.fetch(:field_name, f.name)] = value if !value.empty?
44
45
  end
45
46
  headers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ding_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-21 00:00:00.000000000 Z
11
+ date: 2024-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday