Skip to content

Commit 9cd002d

Browse files
feat(specs): push source type (generated)
algolia/api-clients-automation#3600 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 6504adc commit 9cd002d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

algoliasearch/ingestion/models/source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Source(BaseModel):
2626
)
2727
type: SourceType
2828
name: StrictStr
29-
input: SourceInput
29+
input: Optional[SourceInput] = None
3030
authentication_id: Optional[StrictStr] = Field(
3131
default=None,
3232
description="Universally unique identifier (UUID) of an authentication resource.",

algoliasearch/ingestion/models/source_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SourceCreate(BaseModel):
2222

2323
type: SourceType
2424
name: StrictStr = Field(description="Descriptive name of the source.")
25-
input: SourceInput
25+
input: Optional[SourceInput] = None
2626
authentication_id: Optional[StrictStr] = Field(
2727
default=None,
2828
description="Universally unique identifier (UUID) of an authentication resource.",

algoliasearch/ingestion/models/source_type.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class SourceType(str, Enum):
2828
JSON = "json"
2929
SHOPIFY = "shopify"
3030
SFCC = "sfcc"
31+
PUSH = "push"
3132

3233
@classmethod
3334
def from_json(cls, json_str: str) -> Self:

0 commit comments

Comments
 (0)