Skip to content

Commit 8b611d1

Browse files
feat(api): api update
1 parent a0e254f commit 8b611d1

4 files changed

Lines changed: 12 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-5280c0f42603633a06d2404b120b98d0d9aa43256d13680bbdead7579a90452a.yml
3-
openapi_spec_hash: 34869d638c12bf076949bb7e050dd634
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-7dbd739a81e6aaf7fc7ef1858606e7d572d309af55082a66431d9292e655e66f.yml
3+
openapi_spec_hash: a6374d5d718a7bd9d3d54fb657e2bd9d
44
config_hash: ff35e224e809656528c44163aa41bebd

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ context-dev [resource] <command> [flags...]
5050
```sh
5151
context-dev brand retrieve \
5252
--api-key 'My API Key' \
53-
--domain REPLACE_ME
53+
--domain REPLACE_ME \
54+
--type by_domain
5455
```
5556

5657
For details about specific commands, use the `--help` flag.

‎pkg/cmd/brand.go‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ var brandRetrieve = cli.Command{
2424
Usage: "Domain name to retrieve brand data for (e.g., 'stripe.com').",
2525
BodyPath: "domain",
2626
},
27+
&requestflag.Flag[string]{
28+
Name: "type",
29+
Usage: "Discriminator for domain-based brand retrieval.",
30+
Required: true,
31+
BodyPath: "type",
32+
},
2733
&requestflag.Flag[string]{
2834
Name: "force-language",
2935
Usage: `Allowed values: "afrikaans", "albanian", "amharic", "arabic", "armenian", "assamese", "aymara", "azeri", "basque", "belarusian", "bengali", "bosnian", "bulgarian", "burmese", "cantonese", "catalan", "cebuano", "chinese", "corsican", "croatian", "czech", "danish", "dutch", "english", "esperanto", "estonian", "farsi", "fijian", "finnish", "french", "galician", "georgian", "german", "greek", "guarani", "gujarati", "haitian-creole", "hausa", "hawaiian", "hebrew", "hindi", "hmong", "hungarian", "icelandic", "igbo", "indonesian", "irish", "italian", "japanese", "javanese", "kannada", "kazakh", "khmer", "kinyarwanda", "korean", "kurdish", "kyrgyz", "lao", "latin", "latvian", "lingala", "lithuanian", "luxembourgish", "macedonian", "malagasy", "malay", "malayalam", "maltese", "maori", "marathi", "mongolian", "nepali", "norwegian", "odia", "oromo", "pashto", "pidgin", "polish", "portuguese", "punjabi", "quechua", "romanian", "russian", "samoan", "scottish-gaelic", "serbian", "sesotho", "shona", "sindhi", "sinhala", "slovak", "slovene", "somali", "spanish", "sundanese", "swahili", "swedish", "tagalog", "tajik", "tamil", "tatar", "telugu", "thai", "tibetan", "tigrinya", "tongan", "tswana", "turkish", "turkmen", "ukrainian", "urdu", "uyghur", "uzbek", "vietnamese", "welsh", "wolof", "xhosa", "yiddish", "yoruba", "zulu".`,

‎pkg/cmd/brand_test.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func TestBrandRetrieve(t *testing.T) {
1616
"--api-key", "string",
1717
"brand", "retrieve",
1818
"--domain", "domain",
19+
"--type", "by_domain",
1920
"--force-language", "afrikaans",
2021
"--max-age-ms", "0",
2122
"--max-speed=true",
@@ -27,6 +28,7 @@ func TestBrandRetrieve(t *testing.T) {
2728
// Test piping YAML data over stdin
2829
pipeData := []byte("" +
2930
"domain: domain\n" +
31+
"type: by_domain\n" +
3032
"force_language: afrikaans\n" +
3133
"maxAgeMs: 0\n" +
3234
"maxSpeed: true\n" +

0 commit comments

Comments
 (0)