Skip to content

Commit cb80f56

Browse files
feat(api): api update
1 parent b6df2d5 commit cb80f56

7 files changed

Lines changed: 218 additions & 14 deletions

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-07c25c9b6caa6cb9574ec9cb16fc8ccb422b71823509b3374060fd1234e8dc25.yml
3-
openapi_spec_hash: 7a8c1d27fa0f72a0c35e642ca97d5832
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-795a81d4c022b9fa5ca31d453fb55d7b75c0b2424f9f4bda5a75762cbb1f9418.yml
3+
openapi_spec_hash: eeb4b6592caa69691a5acfa24b571daa
44
config_hash: 682b89b02a20f5d1c13e2c91ecbcf5ce

‎src/context/dev/types/brand_identify_from_transaction_response.py‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,42 @@ class BrandLogo(BaseModel):
415415

416416

417417
class BrandSocial(BaseModel):
418-
type: Optional[str] = None
419-
"""Type of social media, e.g., 'facebook', 'twitter'"""
418+
type: Optional[
419+
Literal[
420+
"x",
421+
"facebook",
422+
"instagram",
423+
"linkedin",
424+
"youtube",
425+
"pinterest",
426+
"tiktok",
427+
"dribbble",
428+
"github",
429+
"behance",
430+
"snapchat",
431+
"whatsapp",
432+
"telegram",
433+
"line",
434+
"discord",
435+
"twitch",
436+
"vimeo",
437+
"imdb",
438+
"tumblr",
439+
"flickr",
440+
"giphy",
441+
"medium",
442+
"spotify",
443+
"soundcloud",
444+
"tripadvisor",
445+
"yelp",
446+
"producthunt",
447+
"reddit",
448+
"crunchbase",
449+
"appstore",
450+
"playstore",
451+
]
452+
] = None
453+
"""Type of social media platform"""
420454

421455
url: Optional[str] = None
422456
"""URL of the social media page"""

‎src/context/dev/types/brand_retrieve_by_email_response.py‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,42 @@ class BrandLogo(BaseModel):
415415

416416

417417
class BrandSocial(BaseModel):
418-
type: Optional[str] = None
419-
"""Type of social media, e.g., 'facebook', 'twitter'"""
418+
type: Optional[
419+
Literal[
420+
"x",
421+
"facebook",
422+
"instagram",
423+
"linkedin",
424+
"youtube",
425+
"pinterest",
426+
"tiktok",
427+
"dribbble",
428+
"github",
429+
"behance",
430+
"snapchat",
431+
"whatsapp",
432+
"telegram",
433+
"line",
434+
"discord",
435+
"twitch",
436+
"vimeo",
437+
"imdb",
438+
"tumblr",
439+
"flickr",
440+
"giphy",
441+
"medium",
442+
"spotify",
443+
"soundcloud",
444+
"tripadvisor",
445+
"yelp",
446+
"producthunt",
447+
"reddit",
448+
"crunchbase",
449+
"appstore",
450+
"playstore",
451+
]
452+
] = None
453+
"""Type of social media platform"""
420454

421455
url: Optional[str] = None
422456
"""URL of the social media page"""

‎src/context/dev/types/brand_retrieve_by_isin_response.py‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,42 @@ class BrandLogo(BaseModel):
415415

416416

417417
class BrandSocial(BaseModel):
418-
type: Optional[str] = None
419-
"""Type of social media, e.g., 'facebook', 'twitter'"""
418+
type: Optional[
419+
Literal[
420+
"x",
421+
"facebook",
422+
"instagram",
423+
"linkedin",
424+
"youtube",
425+
"pinterest",
426+
"tiktok",
427+
"dribbble",
428+
"github",
429+
"behance",
430+
"snapchat",
431+
"whatsapp",
432+
"telegram",
433+
"line",
434+
"discord",
435+
"twitch",
436+
"vimeo",
437+
"imdb",
438+
"tumblr",
439+
"flickr",
440+
"giphy",
441+
"medium",
442+
"spotify",
443+
"soundcloud",
444+
"tripadvisor",
445+
"yelp",
446+
"producthunt",
447+
"reddit",
448+
"crunchbase",
449+
"appstore",
450+
"playstore",
451+
]
452+
] = None
453+
"""Type of social media platform"""
420454

421455
url: Optional[str] = None
422456
"""URL of the social media page"""

‎src/context/dev/types/brand_retrieve_by_name_response.py‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,42 @@ class BrandLogo(BaseModel):
415415

416416

417417
class BrandSocial(BaseModel):
418-
type: Optional[str] = None
419-
"""Type of social media, e.g., 'facebook', 'twitter'"""
418+
type: Optional[
419+
Literal[
420+
"x",
421+
"facebook",
422+
"instagram",
423+
"linkedin",
424+
"youtube",
425+
"pinterest",
426+
"tiktok",
427+
"dribbble",
428+
"github",
429+
"behance",
430+
"snapchat",
431+
"whatsapp",
432+
"telegram",
433+
"line",
434+
"discord",
435+
"twitch",
436+
"vimeo",
437+
"imdb",
438+
"tumblr",
439+
"flickr",
440+
"giphy",
441+
"medium",
442+
"spotify",
443+
"soundcloud",
444+
"tripadvisor",
445+
"yelp",
446+
"producthunt",
447+
"reddit",
448+
"crunchbase",
449+
"appstore",
450+
"playstore",
451+
]
452+
] = None
453+
"""Type of social media platform"""
420454

421455
url: Optional[str] = None
422456
"""URL of the social media page"""

‎src/context/dev/types/brand_retrieve_by_ticker_response.py‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,42 @@ class BrandLogo(BaseModel):
415415

416416

417417
class BrandSocial(BaseModel):
418-
type: Optional[str] = None
419-
"""Type of social media, e.g., 'facebook', 'twitter'"""
418+
type: Optional[
419+
Literal[
420+
"x",
421+
"facebook",
422+
"instagram",
423+
"linkedin",
424+
"youtube",
425+
"pinterest",
426+
"tiktok",
427+
"dribbble",
428+
"github",
429+
"behance",
430+
"snapchat",
431+
"whatsapp",
432+
"telegram",
433+
"line",
434+
"discord",
435+
"twitch",
436+
"vimeo",
437+
"imdb",
438+
"tumblr",
439+
"flickr",
440+
"giphy",
441+
"medium",
442+
"spotify",
443+
"soundcloud",
444+
"tripadvisor",
445+
"yelp",
446+
"producthunt",
447+
"reddit",
448+
"crunchbase",
449+
"appstore",
450+
"playstore",
451+
]
452+
] = None
453+
"""Type of social media platform"""
420454

421455
url: Optional[str] = None
422456
"""URL of the social media page"""

‎src/context/dev/types/brand_retrieve_response.py‎

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,42 @@ class BrandLogo(BaseModel):
415415

416416

417417
class BrandSocial(BaseModel):
418-
type: Optional[str] = None
419-
"""Type of social media, e.g., 'facebook', 'twitter'"""
418+
type: Optional[
419+
Literal[
420+
"x",
421+
"facebook",
422+
"instagram",
423+
"linkedin",
424+
"youtube",
425+
"pinterest",
426+
"tiktok",
427+
"dribbble",
428+
"github",
429+
"behance",
430+
"snapchat",
431+
"whatsapp",
432+
"telegram",
433+
"line",
434+
"discord",
435+
"twitch",
436+
"vimeo",
437+
"imdb",
438+
"tumblr",
439+
"flickr",
440+
"giphy",
441+
"medium",
442+
"spotify",
443+
"soundcloud",
444+
"tripadvisor",
445+
"yelp",
446+
"producthunt",
447+
"reddit",
448+
"crunchbase",
449+
"appstore",
450+
"playstore",
451+
]
452+
] = None
453+
"""Type of social media platform"""
420454

421455
url: Optional[str] = None
422456
"""URL of the social media page"""

0 commit comments

Comments
 (0)