Skip to content

Commit 487caec

Browse files
feat(api): api update
1 parent f17c68f commit 487caec

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-6fd8cb15c904d1befd41a85ef8ffa3dfda11e60d560e466857e331e177e0c1e1.yml
3-
openapi_spec_hash: 0f969f518e16e4fc41d00a5229705f5f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-fa5c7cd62da1c7cb2eddf8c6bb1f32ca7f958be5c3c315ade6ca0a669814d75a.yml
3+
openapi_spec_hash: 8358c1a467ab971afd59d615d1e731ee
44
config_hash: ff35e224e809656528c44163aa41bebd

‎pkg/cmd/brand.go‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
var brandRetrieve = cli.Command{
1818
Name: "retrieve",
19-
Usage: "Retrieve logos, backdrops, colors, industry, description, and more. Provide\nexactly one lookup identifier in the request body: a domain, company name, email\naddress, stock ticker, or transaction descriptor.",
19+
Usage: "Retrieve logos, backdrops, colors, industry, description, and more. Provide\nexactly one lookup identifier in the request body: a domain, company name, email\naddress, stock ticker, transaction descriptor, or direct URL. Note:\n`by_direct_url` fetches brand data only from the provided URL — not from the\nentire internet.",
2020
Suggest: true,
2121
Flags: []cli.Flag{
2222
&requestflag.Flag[string]{
@@ -75,6 +75,11 @@ var brandRetrieve = cli.Command{
7575
Usage: "Optional stock exchange for the ticker. Defaults to NASDAQ if not specified.",
7676
BodyPath: "ticker_exchange",
7777
},
78+
&requestflag.Flag[string]{
79+
Name: "direct-url",
80+
Usage: "Full http(s) URL to fetch brand data from (e.g., 'https://stripe.com/enterprise'). Only this URL is fetched — not the entire internet.",
81+
BodyPath: "direct_url",
82+
},
7883
&requestflag.Flag[string]{
7984
Name: "transaction-info",
8085
Usage: "Transaction information to identify the brand.",

0 commit comments

Comments
 (0)