brand.dev 0.0.1.pre.alpha.0

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.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +229 -0
  3. data/SECURITY.md +23 -0
  4. data/lib/brand_dev/client.rb +74 -0
  5. data/lib/brand_dev/errors.rb +192 -0
  6. data/lib/brand_dev/file_part.rb +55 -0
  7. data/lib/brand_dev/internal/transport/base_client.rb +555 -0
  8. data/lib/brand_dev/internal/transport/pooled_net_requester.rb +209 -0
  9. data/lib/brand_dev/internal/type/array_of.rb +162 -0
  10. data/lib/brand_dev/internal/type/base_model.rb +484 -0
  11. data/lib/brand_dev/internal/type/base_page.rb +55 -0
  12. data/lib/brand_dev/internal/type/boolean.rb +71 -0
  13. data/lib/brand_dev/internal/type/converter.rb +292 -0
  14. data/lib/brand_dev/internal/type/enum.rb +120 -0
  15. data/lib/brand_dev/internal/type/file_input.rb +103 -0
  16. data/lib/brand_dev/internal/type/hash_of.rb +182 -0
  17. data/lib/brand_dev/internal/type/request_parameters.rb +42 -0
  18. data/lib/brand_dev/internal/type/union.rb +227 -0
  19. data/lib/brand_dev/internal/type/unknown.rb +75 -0
  20. data/lib/brand_dev/internal/util.rb +915 -0
  21. data/lib/brand_dev/internal.rb +20 -0
  22. data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +22 -0
  23. data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +435 -0
  24. data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +22 -0
  25. data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +432 -0
  26. data/lib/brand_dev/models/brand_retrieve_naics_params.rb +27 -0
  27. data/lib/brand_dev/models/brand_retrieve_naics_response.rb +61 -0
  28. data/lib/brand_dev/models/brand_retrieve_params.rb +91 -0
  29. data/lib/brand_dev/models/brand_retrieve_response.rb +432 -0
  30. data/lib/brand_dev/models/brand_search_params.rb +22 -0
  31. data/lib/brand_dev/models/brand_search_response.rb +35 -0
  32. data/lib/brand_dev/models.rb +51 -0
  33. data/lib/brand_dev/request_options.rb +77 -0
  34. data/lib/brand_dev/resources/brand.rb +130 -0
  35. data/lib/brand_dev/version.rb +5 -0
  36. data/lib/brand_dev.rb +64 -0
  37. data/manifest.yaml +15 -0
  38. data/rbi/brand_dev/client.rbi +49 -0
  39. data/rbi/brand_dev/errors.rbi +162 -0
  40. data/rbi/brand_dev/file_part.rbi +37 -0
  41. data/rbi/brand_dev/internal/transport/base_client.rbi +293 -0
  42. data/rbi/brand_dev/internal/transport/pooled_net_requester.rbi +79 -0
  43. data/rbi/brand_dev/internal/type/array_of.rbi +104 -0
  44. data/rbi/brand_dev/internal/type/base_model.rbi +302 -0
  45. data/rbi/brand_dev/internal/type/base_page.rbi +42 -0
  46. data/rbi/brand_dev/internal/type/boolean.rbi +56 -0
  47. data/rbi/brand_dev/internal/type/converter.rbi +162 -0
  48. data/rbi/brand_dev/internal/type/enum.rbi +82 -0
  49. data/rbi/brand_dev/internal/type/file_input.rbi +59 -0
  50. data/rbi/brand_dev/internal/type/hash_of.rbi +104 -0
  51. data/rbi/brand_dev/internal/type/request_parameters.rbi +29 -0
  52. data/rbi/brand_dev/internal/type/union.rbi +116 -0
  53. data/rbi/brand_dev/internal/type/unknown.rbi +56 -0
  54. data/rbi/brand_dev/internal/util.rbi +485 -0
  55. data/rbi/brand_dev/internal.rbi +16 -0
  56. data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +46 -0
  57. data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +981 -0
  58. data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +43 -0
  59. data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +976 -0
  60. data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +44 -0
  61. data/rbi/brand_dev/models/brand_retrieve_naics_response.rbi +127 -0
  62. data/rbi/brand_dev/models/brand_retrieve_params.rbi +344 -0
  63. data/rbi/brand_dev/models/brand_retrieve_response.rbi +949 -0
  64. data/rbi/brand_dev/models/brand_search_params.rbi +40 -0
  65. data/rbi/brand_dev/models/brand_search_response.rbi +63 -0
  66. data/rbi/brand_dev/models.rbi +14 -0
  67. data/rbi/brand_dev/request_options.rbi +59 -0
  68. data/rbi/brand_dev/resources/brand.rbi +89 -0
  69. data/rbi/brand_dev/version.rbi +5 -0
  70. data/sig/brand_dev/client.rbs +26 -0
  71. data/sig/brand_dev/errors.rbs +101 -0
  72. data/sig/brand_dev/file_part.rbs +21 -0
  73. data/sig/brand_dev/internal/transport/base_client.rbs +131 -0
  74. data/sig/brand_dev/internal/transport/pooled_net_requester.rbs +45 -0
  75. data/sig/brand_dev/internal/type/array_of.rbs +48 -0
  76. data/sig/brand_dev/internal/type/base_model.rbs +102 -0
  77. data/sig/brand_dev/internal/type/base_page.rbs +24 -0
  78. data/sig/brand_dev/internal/type/boolean.rbs +26 -0
  79. data/sig/brand_dev/internal/type/converter.rbs +56 -0
  80. data/sig/brand_dev/internal/type/enum.rbs +32 -0
  81. data/sig/brand_dev/internal/type/file_input.rbs +25 -0
  82. data/sig/brand_dev/internal/type/hash_of.rbs +48 -0
  83. data/sig/brand_dev/internal/type/request_parameters.rbs +17 -0
  84. data/sig/brand_dev/internal/type/union.rbs +52 -0
  85. data/sig/brand_dev/internal/type/unknown.rbs +26 -0
  86. data/sig/brand_dev/internal/util.rbs +185 -0
  87. data/sig/brand_dev/internal.rbs +9 -0
  88. data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +24 -0
  89. data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +418 -0
  90. data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +23 -0
  91. data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +418 -0
  92. data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +23 -0
  93. data/sig/brand_dev/models/brand_retrieve_naics_response.rbs +61 -0
  94. data/sig/brand_dev/models/brand_retrieve_params.rbs +148 -0
  95. data/sig/brand_dev/models/brand_retrieve_response.rbs +418 -0
  96. data/sig/brand_dev/models/brand_search_params.rbs +23 -0
  97. data/sig/brand_dev/models/brand_search_response.rbs +29 -0
  98. data/sig/brand_dev/models.rbs +11 -0
  99. data/sig/brand_dev/request_options.rbs +34 -0
  100. data/sig/brand_dev/resources/brand.rbs +33 -0
  101. data/sig/brand_dev/version.rbs +3 -0
  102. metadata +160 -0
@@ -0,0 +1,102 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ class BaseModel
5
+ extend BrandDev::Internal::Type::Converter
6
+ extend BrandDev::Internal::Util::SorbetRuntimeSupport
7
+
8
+ type known_field =
9
+ { mode: (:coerce | :dump)?, required: bool, nilable: bool }
10
+
11
+ def self.inherited: (self child) -> void
12
+
13
+ def self.known_fields: -> ::Hash[Symbol, (BrandDev::Internal::Type::BaseModel::known_field
14
+ & { type_fn: (^-> BrandDev::Internal::Type::Converter::input) })]
15
+
16
+ def self.fields: -> ::Hash[Symbol, (BrandDev::Internal::Type::BaseModel::known_field
17
+ & { type: BrandDev::Internal::Type::Converter::input })]
18
+
19
+ private def self.add_field: (
20
+ Symbol name_sym,
21
+ required: bool,
22
+ type_info: {
23
+ const: (nil | bool | Integer | Float | Symbol)?,
24
+ enum: ^-> BrandDev::Internal::Type::Converter::input?,
25
+ union: ^-> BrandDev::Internal::Type::Converter::input?,
26
+ api_name: Symbol
27
+ }
28
+ | ^-> BrandDev::Internal::Type::Converter::input
29
+ | BrandDev::Internal::Type::Converter::input,
30
+ spec: ::Hash[Symbol, top]
31
+ ) -> void
32
+
33
+ def self.required: (
34
+ Symbol name_sym,
35
+ ::Hash[Symbol, top]
36
+ | ^-> BrandDev::Internal::Type::Converter::input
37
+ | BrandDev::Internal::Type::Converter::input type_info,
38
+ ?::Hash[Symbol, top] spec
39
+ ) -> void
40
+
41
+ def self.optional: (
42
+ Symbol name_sym,
43
+ ::Hash[Symbol, top]
44
+ | ^-> BrandDev::Internal::Type::Converter::input
45
+ | BrandDev::Internal::Type::Converter::input type_info,
46
+ ?::Hash[Symbol, top] spec
47
+ ) -> void
48
+
49
+ private def self.request_only: { -> void } -> void
50
+
51
+ private def self.response_only: { -> void } -> void
52
+
53
+ def self.==: (top other) -> bool
54
+
55
+ def self.hash: -> Integer
56
+
57
+ def ==: (top other) -> bool
58
+
59
+ def hash: -> Integer
60
+
61
+ def self.coerce: (
62
+ BrandDev::Internal::Type::BaseModel | ::Hash[top, top] | top value,
63
+ state: BrandDev::Internal::Type::Converter::coerce_state
64
+ ) -> (instance | top)
65
+
66
+ def self.dump: (
67
+ instance | top value,
68
+ state: BrandDev::Internal::Type::Converter::dump_state
69
+ ) -> (::Hash[top, top] | top)
70
+
71
+ def self.to_sorbet_type: -> top
72
+
73
+ def self.recursively_to_h: (
74
+ BrandDev::Internal::Type::BaseModel model,
75
+ convert: bool
76
+ ) -> ::Hash[Symbol, top]
77
+
78
+ def []: (Symbol key) -> top?
79
+
80
+ def to_h: -> ::Hash[Symbol, top]
81
+
82
+ alias to_hash to_h
83
+
84
+ def deep_to_h: -> ::Hash[Symbol, top]
85
+
86
+ def deconstruct_keys: (::Array[Symbol]? keys) -> ::Hash[Symbol, top]
87
+
88
+ def to_json: (*top a) -> String
89
+
90
+ def to_yaml: (*top a) -> String
91
+
92
+ def initialize: (?::Hash[Symbol, top] | instance data) -> void
93
+
94
+ def self.inspect: (?depth: Integer) -> String
95
+
96
+ def to_s: -> String
97
+
98
+ def inspect: -> String
99
+ end
100
+ end
101
+ end
102
+ end
@@ -0,0 +1,24 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ module BasePage[Elem]
5
+ def next_page?: -> bool
6
+
7
+ def next_page: -> instance
8
+
9
+ def auto_paging_each: { (Elem arg0) -> void } -> void
10
+
11
+ def to_enum: -> Enumerable[Elem]
12
+
13
+ alias enum_for to_enum
14
+
15
+ def initialize: (
16
+ client: BrandDev::Internal::Transport::BaseClient,
17
+ req: BrandDev::Internal::Transport::BaseClient::request_components,
18
+ headers: ::Hash[String, String],
19
+ page_data: top
20
+ ) -> void
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,26 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ class Boolean
5
+ extend BrandDev::Internal::Type::Converter
6
+ extend BrandDev::Internal::Util::SorbetRuntimeSupport
7
+
8
+ def self.===: (top other) -> bool
9
+
10
+ def self.==: (top other) -> bool
11
+
12
+ def self.coerce: (
13
+ bool | top value,
14
+ state: BrandDev::Internal::Type::Converter::coerce_state
15
+ ) -> (bool | top)
16
+
17
+ def self.dump: (
18
+ bool | top value,
19
+ state: BrandDev::Internal::Type::Converter::dump_state
20
+ ) -> (bool | top)
21
+
22
+ def self.to_sorbet_type: -> top
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,56 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ module Converter
5
+ extend BrandDev::Internal::Util::SorbetRuntimeSupport
6
+
7
+ type input = BrandDev::Internal::Type::Converter | Class
8
+
9
+ type coerce_state =
10
+ {
11
+ strictness: bool | :strong,
12
+ exactness: { yes: Integer, no: Integer, maybe: Integer },
13
+ branched: Integer
14
+ }
15
+
16
+ type dump_state = { can_retry: bool }
17
+
18
+ def coerce: (
19
+ top value,
20
+ state: BrandDev::Internal::Type::Converter::coerce_state
21
+ ) -> top
22
+
23
+ def dump: (
24
+ top value,
25
+ state: BrandDev::Internal::Type::Converter::dump_state
26
+ ) -> top
27
+
28
+ def inspect: (?depth: Integer) -> String
29
+
30
+ def self.type_info: (
31
+ {
32
+ const: (nil | bool | Integer | Float | Symbol)?,
33
+ enum: ^-> BrandDev::Internal::Type::Converter::input?,
34
+ union: ^-> BrandDev::Internal::Type::Converter::input?
35
+ }
36
+ | ^-> BrandDev::Internal::Type::Converter::input
37
+ | BrandDev::Internal::Type::Converter::input spec
38
+ ) -> (^-> top)
39
+
40
+ def self.coerce: (
41
+ BrandDev::Internal::Type::Converter::input target,
42
+ top value,
43
+ ?state: BrandDev::Internal::Type::Converter::coerce_state
44
+ ) -> top
45
+
46
+ def self.dump: (
47
+ BrandDev::Internal::Type::Converter::input target,
48
+ top value,
49
+ ?state: BrandDev::Internal::Type::Converter::dump_state
50
+ ) -> top
51
+
52
+ def self.inspect: (top target, depth: Integer) -> String
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,32 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ module Enum
5
+ include BrandDev::Internal::Type::Converter
6
+ include BrandDev::Internal::Util::SorbetRuntimeSupport
7
+
8
+ def self.values: -> ::Array[(nil | bool | Integer | Float | Symbol)]
9
+
10
+ def ===: (top other) -> bool
11
+
12
+ def ==: (top other) -> bool
13
+
14
+ def hash: -> Integer
15
+
16
+ def coerce: (
17
+ String | Symbol | top value,
18
+ state: BrandDev::Internal::Type::Converter::coerce_state
19
+ ) -> (Symbol | top)
20
+
21
+ def dump: (
22
+ Symbol | top value,
23
+ state: BrandDev::Internal::Type::Converter::dump_state
24
+ ) -> (Symbol | top)
25
+
26
+ def to_sorbet_type: -> top
27
+
28
+ def inspect: (?depth: Integer) -> String
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,25 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ class FileInput
5
+ extend BrandDev::Internal::Type::Converter
6
+
7
+ def self.===: (top other) -> bool
8
+
9
+ def self.==: (top other) -> bool
10
+
11
+ def self.coerce: (
12
+ StringIO | String | top value,
13
+ state: BrandDev::Internal::Type::Converter::coerce_state
14
+ ) -> (StringIO | top)
15
+
16
+ def self.dump: (
17
+ Pathname | StringIO | IO | String | top value,
18
+ state: BrandDev::Internal::Type::Converter::dump_state
19
+ ) -> (Pathname | StringIO | IO | String | top)
20
+
21
+ def self.to_sorbet_type: -> top
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,48 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ class HashOf[Elem]
5
+ include BrandDev::Internal::Type::Converter
6
+ include BrandDev::Internal::Util::SorbetRuntimeSupport
7
+
8
+ def self.[]: (
9
+ ::Hash[Symbol, top]
10
+ | ^-> BrandDev::Internal::Type::Converter::input
11
+ | BrandDev::Internal::Type::Converter::input type_info,
12
+ ?::Hash[Symbol, top] spec
13
+ ) -> instance
14
+
15
+ def ===: (top other) -> bool
16
+
17
+ def ==: (top other) -> bool
18
+
19
+ def hash: -> Integer
20
+
21
+ def coerce: (
22
+ ::Hash[top, top] | top value,
23
+ state: BrandDev::Internal::Type::Converter::coerce_state
24
+ ) -> (::Hash[Symbol, top] | top)
25
+
26
+ def dump: (
27
+ ::Hash[top, top] | top value,
28
+ state: BrandDev::Internal::Type::Converter::dump_state
29
+ ) -> (::Hash[Symbol, top] | top)
30
+
31
+ def to_sorbet_type: -> top
32
+
33
+ def item_type: -> Elem
34
+
35
+ def nilable?: -> bool
36
+
37
+ def initialize: (
38
+ ::Hash[Symbol, top]
39
+ | ^-> BrandDev::Internal::Type::Converter::input
40
+ | BrandDev::Internal::Type::Converter::input type_info,
41
+ ?::Hash[Symbol, top] spec
42
+ ) -> void
43
+
44
+ def inspect: (?depth: Integer) -> String
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,17 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ type request_parameters = { request_options: BrandDev::request_opts }
5
+
6
+ module RequestParameters
7
+ attr_reader request_options: BrandDev::request_opts
8
+
9
+ def request_options=: (BrandDev::request_opts) -> BrandDev::request_opts
10
+
11
+ module Converter
12
+ def dump_request: (top params) -> [top, ::Hash[Symbol, top]]
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,52 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ module Union
5
+ include BrandDev::Internal::Type::Converter
6
+ include BrandDev::Internal::Util::SorbetRuntimeSupport
7
+
8
+ private def self.known_variants: -> ::Array[[Symbol?, (^-> BrandDev::Internal::Type::Converter::input)]]
9
+
10
+ def self.derefed_variants: -> ::Array[[Symbol?, top]]
11
+
12
+ def self.variants: -> ::Array[top]
13
+
14
+ private def self.discriminator: (Symbol property) -> void
15
+
16
+ private def self.variant: (
17
+ Symbol
18
+ | ::Hash[Symbol, top]
19
+ | ^-> BrandDev::Internal::Type::Converter::input
20
+ | BrandDev::Internal::Type::Converter::input key,
21
+ ?::Hash[Symbol, top]
22
+ | ^-> BrandDev::Internal::Type::Converter::input
23
+ | BrandDev::Internal::Type::Converter::input spec
24
+ ) -> void
25
+
26
+ private def self.resolve_variant: (
27
+ top value
28
+ ) -> BrandDev::Internal::Type::Converter::input?
29
+
30
+ def ===: (top other) -> bool
31
+
32
+ def ==: (top other) -> bool
33
+
34
+ def hash: -> Integer
35
+
36
+ def coerce: (
37
+ top value,
38
+ state: BrandDev::Internal::Type::Converter::coerce_state
39
+ ) -> top
40
+
41
+ def dump: (
42
+ top value,
43
+ state: BrandDev::Internal::Type::Converter::dump_state
44
+ ) -> top
45
+
46
+ def to_sorbet_type: -> top
47
+
48
+ def inspect: (?depth: Integer) -> String
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,26 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Type
4
+ class Unknown
5
+ extend BrandDev::Internal::Type::Converter
6
+ extend BrandDev::Internal::Util::SorbetRuntimeSupport
7
+
8
+ def self.===: (top other) -> bool
9
+
10
+ def self.==: (top other) -> bool
11
+
12
+ def self.coerce: (
13
+ top value,
14
+ state: BrandDev::Internal::Type::Converter::coerce_state
15
+ ) -> top
16
+
17
+ def self.dump: (
18
+ top value,
19
+ state: BrandDev::Internal::Type::Converter::dump_state
20
+ ) -> top
21
+
22
+ def self.to_sorbet_type: -> top
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,185 @@
1
+ module BrandDev
2
+ module Internal
3
+ module Util
4
+ extend BrandDev::Internal::Util::SorbetRuntimeSupport
5
+
6
+ def self?.monotonic_secs: -> Float
7
+
8
+ def self?.walk_namespaces: (
9
+ Module | Class ns
10
+ ) -> Enumerable[(Module | Class)]
11
+
12
+ def self?.arch: -> String
13
+
14
+ def self?.os: -> String
15
+
16
+ def self?.primitive?: (top input) -> bool
17
+
18
+ def self?.coerce_boolean: (String | bool input) -> (bool | top)
19
+
20
+ def self?.coerce_boolean!: (String | bool input) -> bool?
21
+
22
+ def self?.coerce_integer: (String | Integer input) -> (Integer | top)
23
+
24
+ def self?.coerce_float: (String | Integer | Float input) -> (Float | top)
25
+
26
+ def self?.coerce_hash: (top input) -> (::Hash[top, top] | top)
27
+
28
+ def self?.coerce_hash!: (top input) -> ::Hash[top, top]?
29
+
30
+ def self?.deep_merge_lr: (top lhs, top rhs, ?concat: bool) -> top
31
+
32
+ def self?.deep_merge: (
33
+ *::Array[top] values,
34
+ ?sentinel: top?,
35
+ ?concat: bool
36
+ ) -> top
37
+
38
+ def self?.dig: (
39
+ ::Hash[Symbol, top] | ::Array[top] | top data,
40
+ (Symbol
41
+ | Integer
42
+ | ::Array[(Symbol | Integer)]
43
+ | (^(top arg0) -> top))? pick
44
+ ) {
45
+ -> top?
46
+ } -> top?
47
+
48
+ def self?.uri_origin: (URI::Generic uri) -> String
49
+
50
+ def self?.interpolate_path: (String | ::Array[String] path) -> String
51
+
52
+ def self?.decode_query: (String? query) -> ::Hash[String, ::Array[String]]
53
+
54
+ def self?.encode_query: (
55
+ ::Hash[String, (::Array[String] | String)?]? query
56
+ ) -> String?
57
+
58
+ type parsed_uri =
59
+ {
60
+ scheme: String?,
61
+ host: String?,
62
+ port: Integer?,
63
+ path: String?,
64
+ query: ::Hash[String, ::Array[String]]
65
+ }
66
+
67
+ def self?.parse_uri: (
68
+ URI::Generic | String url
69
+ ) -> BrandDev::Internal::Util::parsed_uri
70
+
71
+ def self?.unparse_uri: (
72
+ BrandDev::Internal::Util::parsed_uri parsed
73
+ ) -> URI::Generic
74
+
75
+ def self?.join_parsed_uri: (
76
+ BrandDev::Internal::Util::parsed_uri lhs,
77
+ BrandDev::Internal::Util::parsed_uri rhs
78
+ ) -> URI::Generic
79
+
80
+ def self?.normalized_headers: (
81
+ *::Hash[String, (String
82
+ | Integer
83
+ | ::Array[(String | Integer)?])?] headers
84
+ ) -> ::Hash[String, String]
85
+
86
+ class ReadIOAdapter
87
+ def close?: -> bool?
88
+
89
+ def close: -> void
90
+
91
+ private def read_enum: (Integer? max_len) -> String
92
+
93
+ def read: (?Integer? max_len, ?String? out_string) -> String?
94
+
95
+ def initialize: (
96
+ String | Pathname | StringIO | Enumerable[String] src
97
+ ) {
98
+ (String arg0) -> void
99
+ } -> void
100
+ end
101
+
102
+ def self?.writable_enum: {
103
+ (Enumerator::Yielder y) -> void
104
+ } -> Enumerable[String]
105
+
106
+ JSON_CONTENT: Regexp
107
+ JSONL_CONTENT: Regexp
108
+
109
+ def self?.write_multipart_content: (
110
+ Enumerator::Yielder y,
111
+ val: top,
112
+ closing: ::Array[^-> void],
113
+ ?content_type: String?
114
+ ) -> void
115
+
116
+ def self?.write_multipart_chunk: (
117
+ Enumerator::Yielder y,
118
+ boundary: String,
119
+ key: Symbol | String,
120
+ val: top,
121
+ closing: ::Array[^-> void]
122
+ ) -> void
123
+
124
+ def self?.encode_multipart_streaming: (
125
+ top body
126
+ ) -> [String, Enumerable[String]]
127
+
128
+ def self?.encode_content: (
129
+ ::Hash[String, String] headers,
130
+ top body
131
+ ) -> top
132
+
133
+ def self?.force_charset!: (String content_type, text: String) -> void
134
+
135
+ def self?.decode_content: (
136
+ ::Hash[String, String] headers,
137
+ stream: Enumerable[String],
138
+ ?suppress_error: bool
139
+ ) -> top
140
+
141
+ def self?.fused_enum: (
142
+ Enumerable[top] enum,
143
+ ?external: bool
144
+ ) {
145
+ -> void
146
+ } -> Enumerable[top]
147
+
148
+ def self?.close_fused!: (Enumerable[top]? enum) -> void
149
+
150
+ def self?.chain_fused: (
151
+ Enumerable[top]? enum
152
+ ) {
153
+ (Enumerator::Yielder arg0) -> void
154
+ } -> Enumerable[top]
155
+
156
+ type server_sent_event =
157
+ { event: String?, data: String?, id: String?, retry: Integer? }
158
+
159
+ def self?.decode_lines: (Enumerable[String] enum) -> Enumerable[String]
160
+
161
+ def self?.decode_sse: (
162
+ Enumerable[String] lines
163
+ ) -> Enumerable[BrandDev::Internal::Util::server_sent_event]
164
+
165
+ module SorbetRuntimeSupport
166
+ class MissingSorbetRuntimeError < ::RuntimeError
167
+ end
168
+
169
+ private def sorbet_runtime_constants: -> ::Hash[Symbol, top]
170
+
171
+ def const_missing: (Symbol name) -> void
172
+
173
+ def sorbet_constant_defined?: (Symbol name) -> bool
174
+
175
+ def define_sorbet_constant!: (Symbol name) { -> top } -> void
176
+
177
+ def to_sorbet_type: -> top
178
+
179
+ def self.to_sorbet_type: (
180
+ BrandDev::Internal::Util::SorbetRuntimeSupport | top `type`
181
+ ) -> top
182
+ end
183
+ end
184
+ end
185
+ end
@@ -0,0 +1,9 @@
1
+ module BrandDev
2
+ module Internal
3
+ extend BrandDev::Internal::Util::SorbetRuntimeSupport
4
+
5
+ type file_input = Pathname | StringIO | IO | String | BrandDev::FilePart
6
+
7
+ OMIT: Object
8
+ end
9
+ end
@@ -0,0 +1,24 @@
1
+ module BrandDev
2
+ module Models
3
+ type brand_identify_from_transaction_params =
4
+ { transaction_info: String }
5
+ & BrandDev::Internal::Type::request_parameters
6
+
7
+ class BrandIdentifyFromTransactionParams < BrandDev::Internal::Type::BaseModel
8
+ extend BrandDev::Internal::Type::RequestParameters::Converter
9
+ include BrandDev::Internal::Type::RequestParameters
10
+
11
+ attr_accessor transaction_info: String
12
+
13
+ def initialize: (
14
+ transaction_info: String,
15
+ ?request_options: BrandDev::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ transaction_info: String,
20
+ request_options: BrandDev::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end