brand.dev 0.0.1.pre.alpha.0 → 0.0.2

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 (89) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +188 -0
  3. data/README.md +7 -3
  4. data/lib/brand_dev/errors.rb +22 -0
  5. data/lib/brand_dev/internal/transport/base_client.rb +10 -2
  6. data/lib/brand_dev/internal/type/array_of.rb +6 -1
  7. data/lib/brand_dev/internal/type/base_model.rb +77 -25
  8. data/lib/brand_dev/internal/type/boolean.rb +7 -1
  9. data/lib/brand_dev/internal/type/converter.rb +42 -34
  10. data/lib/brand_dev/internal/type/enum.rb +16 -5
  11. data/lib/brand_dev/internal/type/file_input.rb +6 -1
  12. data/lib/brand_dev/internal/type/hash_of.rb +6 -1
  13. data/lib/brand_dev/internal/type/union.rb +17 -9
  14. data/lib/brand_dev/internal/type/unknown.rb +7 -1
  15. data/lib/brand_dev/internal/util.rb +8 -9
  16. data/lib/brand_dev/models/brand_ai_query_params.rb +173 -0
  17. data/lib/brand_dev/models/brand_ai_query_response.rb +80 -0
  18. data/lib/brand_dev/models/brand_identify_from_transaction_params.rb +14 -1
  19. data/lib/brand_dev/models/brand_identify_from_transaction_response.rb +1 -29
  20. data/lib/brand_dev/models/brand_prefetch_params.rb +35 -0
  21. data/lib/brand_dev/models/brand_prefetch_response.rb +33 -0
  22. data/lib/brand_dev/models/brand_retrieve_by_ticker_params.rb +14 -1
  23. data/lib/brand_dev/models/brand_retrieve_by_ticker_response.rb +1 -29
  24. data/lib/brand_dev/models/brand_retrieve_naics_params.rb +11 -1
  25. data/lib/brand_dev/models/brand_retrieve_params.rb +24 -1
  26. data/lib/brand_dev/models/brand_retrieve_response.rb +1 -29
  27. data/lib/brand_dev/models/brand_retrieve_simplified_params.rb +35 -0
  28. data/lib/brand_dev/models/brand_retrieve_simplified_response.rb +280 -0
  29. data/lib/brand_dev/models/brand_screenshot_params.rb +49 -0
  30. data/lib/brand_dev/models/brand_screenshot_response.rb +64 -0
  31. data/lib/brand_dev/models/brand_styleguide_params.rb +36 -0
  32. data/lib/brand_dev/models/brand_styleguide_response.rb +769 -0
  33. data/lib/brand_dev/models.rb +13 -5
  34. data/lib/brand_dev/resources/brand.rb +165 -18
  35. data/lib/brand_dev/version.rb +1 -1
  36. data/lib/brand_dev.rb +10 -2
  37. data/rbi/brand_dev/errors.rbi +16 -0
  38. data/rbi/brand_dev/internal/type/boolean.rbi +2 -0
  39. data/rbi/brand_dev/internal/type/converter.rbi +15 -15
  40. data/rbi/brand_dev/internal/type/union.rbi +5 -0
  41. data/rbi/brand_dev/internal/type/unknown.rbi +2 -0
  42. data/rbi/brand_dev/internal/util.rbi +2 -0
  43. data/rbi/brand_dev/models/brand_ai_query_params.rbi +319 -0
  44. data/rbi/brand_dev/models/brand_ai_query_response.rbi +182 -0
  45. data/rbi/brand_dev/models/brand_identify_from_transaction_params.rbi +15 -0
  46. data/rbi/brand_dev/models/brand_identify_from_transaction_response.rbi +0 -69
  47. data/rbi/brand_dev/models/brand_prefetch_params.rbi +58 -0
  48. data/rbi/brand_dev/models/brand_prefetch_response.rbi +57 -0
  49. data/rbi/brand_dev/models/brand_retrieve_by_ticker_params.rbi +19 -1
  50. data/rbi/brand_dev/models/brand_retrieve_by_ticker_response.rbi +0 -69
  51. data/rbi/brand_dev/models/brand_retrieve_naics_params.rbi +19 -1
  52. data/rbi/brand_dev/models/brand_retrieve_params.rbi +30 -0
  53. data/rbi/brand_dev/models/brand_retrieve_response.rbi +0 -65
  54. data/rbi/brand_dev/models/brand_retrieve_simplified_params.rbi +61 -0
  55. data/rbi/brand_dev/models/brand_retrieve_simplified_response.rbi +667 -0
  56. data/rbi/brand_dev/models/brand_screenshot_params.rbi +105 -0
  57. data/rbi/brand_dev/models/brand_screenshot_response.rbi +135 -0
  58. data/rbi/brand_dev/models/brand_styleguide_params.rbi +60 -0
  59. data/rbi/brand_dev/models/brand_styleguide_response.rbi +1648 -0
  60. data/rbi/brand_dev/models.rbi +10 -1
  61. data/rbi/brand_dev/resources/brand.rbi +133 -6
  62. data/sig/brand_dev/errors.rbs +9 -0
  63. data/sig/brand_dev/internal/type/converter.rbs +7 -1
  64. data/sig/brand_dev/models/brand_ai_query_params.rbs +162 -0
  65. data/sig/brand_dev/models/brand_ai_query_response.rbs +79 -0
  66. data/sig/brand_dev/models/brand_identify_from_transaction_params.rbs +7 -1
  67. data/sig/brand_dev/models/brand_identify_from_transaction_response.rbs +0 -25
  68. data/sig/brand_dev/models/brand_prefetch_params.rbs +30 -0
  69. data/sig/brand_dev/models/brand_prefetch_response.rbs +28 -0
  70. data/sig/brand_dev/models/brand_retrieve_by_ticker_params.rbs +8 -1
  71. data/sig/brand_dev/models/brand_retrieve_by_ticker_response.rbs +0 -25
  72. data/sig/brand_dev/models/brand_retrieve_naics_params.rbs +8 -1
  73. data/sig/brand_dev/models/brand_retrieve_params.rbs +15 -1
  74. data/sig/brand_dev/models/brand_retrieve_response.rbs +0 -25
  75. data/sig/brand_dev/models/brand_retrieve_simplified_params.rbs +30 -0
  76. data/sig/brand_dev/models/brand_retrieve_simplified_response.rbs +292 -0
  77. data/sig/brand_dev/models/brand_screenshot_params.rbs +46 -0
  78. data/sig/brand_dev/models/brand_screenshot_response.rbs +63 -0
  79. data/sig/brand_dev/models/brand_styleguide_params.rbs +30 -0
  80. data/sig/brand_dev/models/brand_styleguide_response.rbs +925 -0
  81. data/sig/brand_dev/models.rbs +9 -1
  82. data/sig/brand_dev/resources/brand.rbs +35 -3
  83. metadata +46 -22
  84. data/lib/brand_dev/models/brand_search_params.rb +0 -22
  85. data/lib/brand_dev/models/brand_search_response.rb +0 -35
  86. data/rbi/brand_dev/models/brand_search_params.rbi +0 -40
  87. data/rbi/brand_dev/models/brand_search_response.rbi +0 -63
  88. data/sig/brand_dev/models/brand_search_params.rbs +0 -23
  89. data/sig/brand_dev/models/brand_search_response.rbs +0 -29
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BrandDev
4
+ module Models
5
+ # @see BrandDev::Resources::Brand#screenshot
6
+ class BrandScreenshotParams < BrandDev::Internal::Type::BaseModel
7
+ extend BrandDev::Internal::Type::RequestParameters::Converter
8
+ include BrandDev::Internal::Type::RequestParameters
9
+
10
+ # @!attribute domain
11
+ # Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The
12
+ # domain will be automatically normalized and validated.
13
+ #
14
+ # @return [String]
15
+ required :domain, String
16
+
17
+ # @!attribute full_screenshot
18
+ # Optional parameter to determine screenshot type. If 'true', takes a full page
19
+ # screenshot capturing all content. If 'false' or not provided, takes a viewport
20
+ # screenshot (standard browser view).
21
+ #
22
+ # @return [Symbol, BrandDev::Models::BrandScreenshotParams::FullScreenshot, nil]
23
+ optional :full_screenshot, enum: -> { BrandDev::BrandScreenshotParams::FullScreenshot }
24
+
25
+ # @!method initialize(domain:, full_screenshot: nil, request_options: {})
26
+ # Some parameter documentations has been truncated, see
27
+ # {BrandDev::Models::BrandScreenshotParams} for more details.
28
+ #
29
+ # @param domain [String] Domain name to take screenshot of (e.g., 'example.com', 'google.com'). The domai
30
+ #
31
+ # @param full_screenshot [Symbol, BrandDev::Models::BrandScreenshotParams::FullScreenshot] Optional parameter to determine screenshot type. If 'true', takes a full page sc
32
+ #
33
+ # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
34
+
35
+ # Optional parameter to determine screenshot type. If 'true', takes a full page
36
+ # screenshot capturing all content. If 'false' or not provided, takes a viewport
37
+ # screenshot (standard browser view).
38
+ module FullScreenshot
39
+ extend BrandDev::Internal::Type::Enum
40
+
41
+ TRUE = :true
42
+ FALSE = :false
43
+
44
+ # @!method self.values
45
+ # @return [Array<Symbol>]
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BrandDev
4
+ module Models
5
+ # @see BrandDev::Resources::Brand#screenshot
6
+ class BrandScreenshotResponse < BrandDev::Internal::Type::BaseModel
7
+ # @!attribute code
8
+ # HTTP status code
9
+ #
10
+ # @return [Integer, nil]
11
+ optional :code, Integer
12
+
13
+ # @!attribute domain
14
+ # The normalized domain that was processed
15
+ #
16
+ # @return [String, nil]
17
+ optional :domain, String
18
+
19
+ # @!attribute screenshot
20
+ # Public URL of the uploaded screenshot image
21
+ #
22
+ # @return [String, nil]
23
+ optional :screenshot, String
24
+
25
+ # @!attribute screenshot_type
26
+ # Type of screenshot that was captured
27
+ #
28
+ # @return [Symbol, BrandDev::Models::BrandScreenshotResponse::ScreenshotType, nil]
29
+ optional :screenshot_type,
30
+ enum: -> { BrandDev::Models::BrandScreenshotResponse::ScreenshotType },
31
+ api_name: :screenshotType
32
+
33
+ # @!attribute status
34
+ # Status of the response, e.g., 'ok'
35
+ #
36
+ # @return [String, nil]
37
+ optional :status, String
38
+
39
+ # @!method initialize(code: nil, domain: nil, screenshot: nil, screenshot_type: nil, status: nil)
40
+ # @param code [Integer] HTTP status code
41
+ #
42
+ # @param domain [String] The normalized domain that was processed
43
+ #
44
+ # @param screenshot [String] Public URL of the uploaded screenshot image
45
+ #
46
+ # @param screenshot_type [Symbol, BrandDev::Models::BrandScreenshotResponse::ScreenshotType] Type of screenshot that was captured
47
+ #
48
+ # @param status [String] Status of the response, e.g., 'ok'
49
+
50
+ # Type of screenshot that was captured
51
+ #
52
+ # @see BrandDev::Models::BrandScreenshotResponse#screenshot_type
53
+ module ScreenshotType
54
+ extend BrandDev::Internal::Type::Enum
55
+
56
+ VIEWPORT = :viewport
57
+ FULL_PAGE = :fullPage
58
+
59
+ # @!method self.values
60
+ # @return [Array<Symbol>]
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BrandDev
4
+ module Models
5
+ # @see BrandDev::Resources::Brand#styleguide
6
+ class BrandStyleguideParams < BrandDev::Internal::Type::BaseModel
7
+ extend BrandDev::Internal::Type::RequestParameters::Converter
8
+ include BrandDev::Internal::Type::RequestParameters
9
+
10
+ # @!attribute domain
11
+ # Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
12
+ # domain will be automatically normalized and validated.
13
+ #
14
+ # @return [String]
15
+ required :domain, String
16
+
17
+ # @!attribute timeout_ms
18
+ # Optional timeout in milliseconds for the request. If the request takes longer
19
+ # than this value, it will be aborted with a 408 status code. Maximum allowed
20
+ # value is 300000ms (5 minutes).
21
+ #
22
+ # @return [Integer, nil]
23
+ optional :timeout_ms, Integer
24
+
25
+ # @!method initialize(domain:, timeout_ms: nil, request_options: {})
26
+ # Some parameter documentations has been truncated, see
27
+ # {BrandDev::Models::BrandStyleguideParams} for more details.
28
+ #
29
+ # @param domain [String] Domain name to extract styleguide from (e.g., 'example.com', 'google.com'). The
30
+ #
31
+ # @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
32
+ #
33
+ # @param request_options [BrandDev::RequestOptions, Hash{Symbol=>Object}]
34
+ end
35
+ end
36
+ end