From 59f576679bc31c66deea09f73be2bb81969b0aef Mon Sep 17 00:00:00 2001 From: "konfig-bot[bot]" <121480725+konfig-bot[bot]@users.noreply.github.com> Date: Fri, 15 Mar 2024 01:34:06 +0000 Subject: [PATCH] Update OpenAPI Specification (#10) * Update OpenAPI Specification (api.json) * Regenerate SDKs --------- Co-authored-by: konfig-bot[bot] <121480725+konfig-bot[bot]@users.noreply.github.com> Co-authored-by: konfig-publisher --- .konfig/changesets/clean-tables-burn.md | 6 ++++++ STATISTICS.md | 4 ++-- api-fixed.json | 8 ++++++-- api.json | 8 ++++++-- sdks/python/.konfig/generate-id.txt | 2 +- sdks/python/README.md | 2 +- sdks/python/leap_workflows/model/bulk_run_schema.py | 10 ++++++++++ sdks/python/leap_workflows/model/bulk_run_schema.pyi | 8 ++++++++ .../python/leap_workflows/model/workflow_run_schema.py | 10 ++++++++++ .../leap_workflows/model/workflow_run_schema.pyi | 8 ++++++++ sdks/python/leap_workflows/pydantic/bulk_run_schema.py | 2 +- .../leap_workflows/pydantic/workflow_run_schema.py | 2 +- sdks/typescript/.konfig/generate-id.txt | 2 +- sdks/typescript/README.md | 2 +- sdks/typescript/models/bulk-run-schema.ts | 2 +- sdks/typescript/models/workflow-run-schema.ts | 2 +- 16 files changed, 64 insertions(+), 14 deletions(-) create mode 100644 .konfig/changesets/clean-tables-burn.md diff --git a/.konfig/changesets/clean-tables-burn.md b/.konfig/changesets/clean-tables-burn.md new file mode 100644 index 0000000..aa661f6 --- /dev/null +++ b/.konfig/changesets/clean-tables-burn.md @@ -0,0 +1,6 @@ +--- +python: patch +typescript: patch +--- + +Regenerate SDKs diff --git a/STATISTICS.md b/STATISTICS.md index 5ef8336..c70f31e 100644 --- a/STATISTICS.md +++ b/STATISTICS.md @@ -2,6 +2,6 @@ | SDK Name | Lines of Code | | -------- | ------------- | -| python | 14981 | +| python | 15017 | | typescript | 8883 | -| **Total** | 23864 | +| **Total** | 23900 | diff --git a/api-fixed.json b/api-fixed.json index 8d3f21a..119b15d 100644 --- a/api-fixed.json +++ b/api-fixed.json @@ -252,7 +252,9 @@ "enum": [ "completed", "running", - "failed" + "failed", + "queued", + "cancelled" ] }, "created_at": { @@ -340,7 +342,9 @@ "enum": [ "completed", "running", - "failed" + "failed", + "queued", + "cancelled" ] }, "created_at": { diff --git a/api.json b/api.json index 9710f72..b166f80 100644 --- a/api.json +++ b/api.json @@ -246,7 +246,9 @@ "enum": [ "completed", "running", - "failed" + "failed", + "queued", + "cancelled" ] }, "created_at": { @@ -334,7 +336,9 @@ "enum": [ "completed", "running", - "failed" + "failed", + "queued", + "cancelled" ] }, "created_at": { diff --git a/sdks/python/.konfig/generate-id.txt b/sdks/python/.konfig/generate-id.txt index a195a2b..d1e62ab 100644 --- a/sdks/python/.konfig/generate-id.txt +++ b/sdks/python/.konfig/generate-id.txt @@ -1 +1 @@ -1f606cce-19ef-450a-b1da-7e5060f92d35 \ No newline at end of file +a43486cf-a53a-4e76-95bf-66d51d790fde \ No newline at end of file diff --git a/sdks/python/README.md b/sdks/python/README.md index 3d2a1cf..be83e8e 100644 --- a/sdks/python/README.md +++ b/sdks/python/README.md @@ -1,4 +1,4 @@ -
+
[![Visit Leap Workflows](https://raw.githubusercontent.com/leap-ai/workflows-sdks/HEAD/sdks/python/header.png)](https://www.tryleap.ai/) diff --git a/sdks/python/leap_workflows/model/bulk_run_schema.py b/sdks/python/leap_workflows/model/bulk_run_schema.py index 9cdb52b..dddbf52 100644 --- a/sdks/python/leap_workflows/model/bulk_run_schema.py +++ b/sdks/python/leap_workflows/model/bulk_run_schema.py @@ -61,6 +61,8 @@ class MetaOapg: "completed": "COMPLETED", "running": "RUNNING", "failed": "FAILED", + "queued": "QUEUED", + "cancelled": "CANCELLED", } @schemas.classproperty @@ -74,6 +76,14 @@ def RUNNING(cls): @schemas.classproperty def FAILED(cls): return cls("failed") + + @schemas.classproperty + def QUEUED(cls): + return cls("queued") + + @schemas.classproperty + def CANCELLED(cls): + return cls("cancelled") created_at = schemas.StrSchema workflow_id = schemas.StrSchema input_csv_url = schemas.StrSchema diff --git a/sdks/python/leap_workflows/model/bulk_run_schema.pyi b/sdks/python/leap_workflows/model/bulk_run_schema.pyi index bdbb768..dc231eb 100644 --- a/sdks/python/leap_workflows/model/bulk_run_schema.pyi +++ b/sdks/python/leap_workflows/model/bulk_run_schema.pyi @@ -66,6 +66,14 @@ class BulkRunSchema( @schemas.classproperty def FAILED(cls): return cls("failed") + + @schemas.classproperty + def QUEUED(cls): + return cls("queued") + + @schemas.classproperty + def CANCELLED(cls): + return cls("cancelled") created_at = schemas.StrSchema workflow_id = schemas.StrSchema input_csv_url = schemas.StrSchema diff --git a/sdks/python/leap_workflows/model/workflow_run_schema.py b/sdks/python/leap_workflows/model/workflow_run_schema.py index 4303c44..3187043 100644 --- a/sdks/python/leap_workflows/model/workflow_run_schema.py +++ b/sdks/python/leap_workflows/model/workflow_run_schema.py @@ -62,6 +62,8 @@ class MetaOapg: "completed": "COMPLETED", "running": "RUNNING", "failed": "FAILED", + "queued": "QUEUED", + "cancelled": "CANCELLED", } @schemas.classproperty @@ -75,6 +77,14 @@ def RUNNING(cls): @schemas.classproperty def FAILED(cls): return cls("failed") + + @schemas.classproperty + def QUEUED(cls): + return cls("queued") + + @schemas.classproperty + def CANCELLED(cls): + return cls("cancelled") created_at = schemas.StrSchema diff --git a/sdks/python/leap_workflows/model/workflow_run_schema.pyi b/sdks/python/leap_workflows/model/workflow_run_schema.pyi index e950b8d..7258e8b 100644 --- a/sdks/python/leap_workflows/model/workflow_run_schema.pyi +++ b/sdks/python/leap_workflows/model/workflow_run_schema.pyi @@ -67,6 +67,14 @@ class WorkflowRunSchema( @schemas.classproperty def FAILED(cls): return cls("failed") + + @schemas.classproperty + def QUEUED(cls): + return cls("queued") + + @schemas.classproperty + def CANCELLED(cls): + return cls("cancelled") created_at = schemas.StrSchema diff --git a/sdks/python/leap_workflows/pydantic/bulk_run_schema.py b/sdks/python/leap_workflows/pydantic/bulk_run_schema.py index 632d01e..9e56e64 100644 --- a/sdks/python/leap_workflows/pydantic/bulk_run_schema.py +++ b/sdks/python/leap_workflows/pydantic/bulk_run_schema.py @@ -22,7 +22,7 @@ class BulkRunSchema(BaseModel): version_id: str = Field(alias='version_id') - status: Literal["completed", "running", "failed"] = Field(alias='status') + status: Literal["completed", "running", "failed", "queued", "cancelled"] = Field(alias='status') created_at: str = Field(alias='created_at') diff --git a/sdks/python/leap_workflows/pydantic/workflow_run_schema.py b/sdks/python/leap_workflows/pydantic/workflow_run_schema.py index 3515c53..8e15fe4 100644 --- a/sdks/python/leap_workflows/pydantic/workflow_run_schema.py +++ b/sdks/python/leap_workflows/pydantic/workflow_run_schema.py @@ -22,7 +22,7 @@ class WorkflowRunSchema(BaseModel): version_id: str = Field(alias='version_id') - status: Literal["completed", "running", "failed"] = Field(alias='status') + status: Literal["completed", "running", "failed", "queued", "cancelled"] = Field(alias='status') created_at: str = Field(alias='created_at') diff --git a/sdks/typescript/.konfig/generate-id.txt b/sdks/typescript/.konfig/generate-id.txt index a195a2b..d1e62ab 100644 --- a/sdks/typescript/.konfig/generate-id.txt +++ b/sdks/typescript/.konfig/generate-id.txt @@ -1 +1 @@ -1f606cce-19ef-450a-b1da-7e5060f92d35 \ No newline at end of file +a43486cf-a53a-4e76-95bf-66d51d790fde \ No newline at end of file diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 6a6bb00..9e8e982 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -1,4 +1,4 @@ -
+
[![Visit Leap Workflows](./header.png)](https://www.tryleap.ai/) diff --git a/sdks/typescript/models/bulk-run-schema.ts b/sdks/typescript/models/bulk-run-schema.ts index fa598e7..8bb6983 100644 --- a/sdks/typescript/models/bulk-run-schema.ts +++ b/sdks/typescript/models/bulk-run-schema.ts @@ -73,6 +73,6 @@ export interface BulkRunSchema { 'row_count': number; } -type BulkRunSchemaStatusEnum = 'completed' | 'running' | 'failed' +type BulkRunSchemaStatusEnum = 'completed' | 'running' | 'failed' | 'queued' | 'cancelled' diff --git a/sdks/typescript/models/workflow-run-schema.ts b/sdks/typescript/models/workflow-run-schema.ts index 658b9f7..7060414 100644 --- a/sdks/typescript/models/workflow-run-schema.ts +++ b/sdks/typescript/models/workflow-run-schema.ts @@ -79,6 +79,6 @@ export interface WorkflowRunSchema { 'output': object | null; } -type WorkflowRunSchemaStatusEnum = 'completed' | 'running' | 'failed' +type WorkflowRunSchemaStatusEnum = 'completed' | 'running' | 'failed' | 'queued' | 'cancelled'