Skip to content

Commit

Permalink
Update OpenAPI Specification (#10)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
konfig-bot[bot] and konfig-publisher authored Mar 15, 2024
1 parent 7c7113b commit 59f5766
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .konfig/changesets/clean-tables-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
python: patch
typescript: patch
---

Regenerate SDKs
4 changes: 2 additions & 2 deletions STATISTICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

| SDK Name | Lines of Code |
| -------- | ------------- |
| python | 14981 |
| python | 15017 |
| typescript | 8883 |
| **Total** | 23864 |
| **Total** | 23900 |
8 changes: 6 additions & 2 deletions api-fixed.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@
"enum": [
"completed",
"running",
"failed"
"failed",
"queued",
"cancelled"
]
},
"created_at": {
Expand Down Expand Up @@ -340,7 +342,9 @@
"enum": [
"completed",
"running",
"failed"
"failed",
"queued",
"cancelled"
]
},
"created_at": {
Expand Down
8 changes: 6 additions & 2 deletions api.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@
"enum": [
"completed",
"running",
"failed"
"failed",
"queued",
"cancelled"
]
},
"created_at": {
Expand Down Expand Up @@ -334,7 +336,9 @@
"enum": [
"completed",
"running",
"failed"
"failed",
"queued",
"cancelled"
]
},
"created_at": {
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1f606cce-19ef-450a-b1da-7e5060f92d35
a43486cf-a53a-4e76-95bf-66d51d790fde
2 changes: 1 addition & 1 deletion sdks/python/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div align="center">
<div align="left">

[![Visit Leap Workflows](https://raw.githubusercontent.com/leap-ai/workflows-sdks/HEAD/sdks/python/header.png)](https://www.tryleap.ai/)

Expand Down
10 changes: 10 additions & 0 deletions sdks/python/leap_workflows/model/bulk_run_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class MetaOapg:
"completed": "COMPLETED",
"running": "RUNNING",
"failed": "FAILED",
"queued": "QUEUED",
"cancelled": "CANCELLED",
}

@schemas.classproperty
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions sdks/python/leap_workflows/model/bulk_run_schema.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions sdks/python/leap_workflows/model/workflow_run_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class MetaOapg:
"completed": "COMPLETED",
"running": "RUNNING",
"failed": "FAILED",
"queued": "QUEUED",
"cancelled": "CANCELLED",
}

@schemas.classproperty
Expand All @@ -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


Expand Down
8 changes: 8 additions & 0 deletions sdks/python/leap_workflows/model/workflow_run_schema.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion sdks/python/leap_workflows/pydantic/bulk_run_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion sdks/python/leap_workflows/pydantic/workflow_run_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
2 changes: 1 addition & 1 deletion sdks/typescript/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1f606cce-19ef-450a-b1da-7e5060f92d35
a43486cf-a53a-4e76-95bf-66d51d790fde
2 changes: 1 addition & 1 deletion sdks/typescript/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div align="center">
<div align="left">

[![Visit Leap Workflows](./header.png)](https://www.tryleap.ai/)

Expand Down
2 changes: 1 addition & 1 deletion sdks/typescript/models/bulk-run-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ export interface BulkRunSchema {
'row_count': number;
}

type BulkRunSchemaStatusEnum = 'completed' | 'running' | 'failed'
type BulkRunSchemaStatusEnum = 'completed' | 'running' | 'failed' | 'queued' | 'cancelled'


2 changes: 1 addition & 1 deletion sdks/typescript/models/workflow-run-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ export interface WorkflowRunSchema {
'output': object | null;
}

type WorkflowRunSchemaStatusEnum = 'completed' | 'running' | 'failed'
type WorkflowRunSchemaStatusEnum = 'completed' | 'running' | 'failed' | 'queued' | 'cancelled'


0 comments on commit 59f5766

Please sign in to comment.