casedev 0.1.0__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- casedev/_base_client.py +140 -11
- casedev/_client.py +290 -119
- casedev/_models.py +16 -1
- casedev/_types.py +12 -2
- casedev/_version.py +1 -1
- casedev/resources/__init__.py +0 -70
- casedev/resources/compute/v1/__init__.py +0 -42
- casedev/resources/compute/v1/environments.py +16 -19
- casedev/resources/compute/v1/secrets.py +35 -41
- casedev/resources/compute/v1/v1.py +14 -276
- casedev/resources/format/v1/templates.py +11 -13
- casedev/resources/llm/llm.py +6 -7
- casedev/resources/llm/v1/v1.py +11 -13
- casedev/resources/ocr/v1.py +10 -13
- casedev/resources/search/v1.py +6 -7
- casedev/resources/vault/graphrag.py +11 -13
- casedev/resources/vault/objects.py +20 -25
- casedev/resources/vault/vault.py +64 -28
- casedev/resources/voice/streaming.py +6 -7
- casedev/resources/voice/transcription.py +82 -23
- casedev/resources/voice/v1/speak.py +1 -195
- casedev/resources/voice/v1/v1.py +6 -7
- casedev/types/__init__.py +2 -0
- casedev/types/compute/__init__.py +1 -2
- casedev/types/compute/v1/__init__.py +7 -5
- casedev/types/compute/v1/environment_list_response.py +40 -0
- casedev/types/compute/v1/environment_retrieve_response.py +36 -0
- casedev/types/compute/v1/environment_set_default_response.py +36 -0
- casedev/types/{convert/v1_webhook_response.py → compute/v1/secret_delete_group_response.py} +3 -3
- casedev/types/compute/v1/secret_list_response.py +31 -0
- casedev/types/compute/v1/secret_retrieve_group_response.py +38 -0
- casedev/types/compute/v1/secret_update_group_response.py +22 -0
- casedev/types/compute/v1_get_usage_response.py +51 -0
- casedev/types/format/v1/__init__.py +2 -0
- casedev/types/format/v1/template_list_response.py +40 -0
- casedev/types/format/v1/template_retrieve_response.py +33 -0
- casedev/types/llm/__init__.py +2 -0
- casedev/types/llm/v1_create_embedding_response.py +31 -0
- casedev/types/llm/v1_list_models_response.py +41 -0
- casedev/types/llm_get_config_response.py +33 -0
- casedev/types/ocr/__init__.py +2 -0
- casedev/types/ocr/v1_download_response.py +7 -0
- casedev/types/ocr/v1_process_params.py +2 -0
- casedev/types/ocr/v1_retrieve_response.py +32 -0
- casedev/types/search/__init__.py +1 -0
- casedev/types/search/v1_retrieve_research_response.py +74 -0
- casedev/types/vault/__init__.py +6 -0
- casedev/types/vault/graphrag_get_stats_response.py +31 -0
- casedev/types/{workflows/v1_delete_response.py → vault/graphrag_init_response.py} +6 -2
- casedev/types/vault/object_download_response.py +7 -0
- casedev/types/vault/object_get_text_response.py +35 -0
- casedev/types/vault/object_list_response.py +64 -0
- casedev/types/vault/object_retrieve_response.py +57 -0
- casedev/types/vault_create_params.py +16 -1
- casedev/types/vault_create_response.py +5 -2
- casedev/types/vault_ingest_response.py +15 -5
- casedev/types/vault_retrieve_response.py +76 -0
- casedev/types/vault_search_params.py +19 -5
- casedev/types/vault_search_response.py +25 -1
- casedev/types/vault_upload_params.py +7 -0
- casedev/types/vault_upload_response.py +6 -0
- casedev/types/voice/__init__.py +3 -0
- casedev/types/voice/streaming_get_url_response.py +44 -0
- casedev/types/voice/transcription_create_params.py +23 -3
- casedev/types/voice/transcription_create_response.py +22 -0
- casedev/types/voice/transcription_retrieve_response.py +19 -17
- casedev/types/voice/v1/__init__.py +0 -1
- casedev/types/voice/v1/speak_create_params.py +2 -0
- casedev/types/voice/v1_list_voices_response.py +40 -0
- casedev/types/webhooks/__init__.py +0 -3
- {casedev-0.1.0.dist-info → casedev-0.2.0.dist-info}/METADATA +10 -13
- casedev-0.2.0.dist-info/RECORD +149 -0
- {casedev-0.1.0.dist-info → casedev-0.2.0.dist-info}/licenses/LICENSE +1 -1
- casedev/resources/actions/__init__.py +0 -33
- casedev/resources/actions/actions.py +0 -102
- casedev/resources/actions/v1.py +0 -640
- casedev/resources/compute/v1/functions.py +0 -278
- casedev/resources/compute/v1/invoke.py +0 -216
- casedev/resources/compute/v1/runs.py +0 -290
- casedev/resources/convert/__init__.py +0 -33
- casedev/resources/convert/convert.py +0 -102
- casedev/resources/convert/v1/__init__.py +0 -33
- casedev/resources/convert/v1/jobs.py +0 -254
- casedev/resources/convert/v1/v1.py +0 -450
- casedev/resources/templates/__init__.py +0 -33
- casedev/resources/templates/templates.py +0 -102
- casedev/resources/templates/v1.py +0 -633
- casedev/resources/webhooks/__init__.py +0 -33
- casedev/resources/webhooks/v1.py +0 -447
- casedev/resources/webhooks/webhooks.py +0 -102
- casedev/resources/workflows/__init__.py +0 -33
- casedev/resources/workflows/v1.py +0 -1053
- casedev/resources/workflows/workflows.py +0 -102
- casedev/types/actions/__init__.py +0 -8
- casedev/types/actions/v1_create_params.py +0 -22
- casedev/types/actions/v1_create_response.py +0 -33
- casedev/types/actions/v1_execute_params.py +0 -16
- casedev/types/actions/v1_execute_response.py +0 -31
- casedev/types/compute/v1/function_get_logs_params.py +0 -12
- casedev/types/compute/v1/function_list_params.py +0 -12
- casedev/types/compute/v1/invoke_run_params.py +0 -21
- casedev/types/compute/v1/invoke_run_response.py +0 -39
- casedev/types/compute/v1/run_list_params.py +0 -18
- casedev/types/compute/v1_deploy_params.py +0 -114
- casedev/types/compute/v1_deploy_response.py +0 -30
- casedev/types/convert/__init__.py +0 -8
- casedev/types/convert/v1/__init__.py +0 -3
- casedev/types/convert/v1_process_params.py +0 -15
- casedev/types/convert/v1_process_response.py +0 -19
- casedev/types/convert/v1_webhook_params.py +0 -32
- casedev/types/templates/__init__.py +0 -8
- casedev/types/templates/v1_execute_params.py +0 -22
- casedev/types/templates/v1_execute_response.py +0 -31
- casedev/types/templates/v1_list_params.py +0 -32
- casedev/types/templates/v1_search_params.py +0 -18
- casedev/types/voice/v1/speak_stream_params.py +0 -58
- casedev/types/webhooks/v1_create_params.py +0 -20
- casedev/types/webhooks/v1_create_response.py +0 -33
- casedev/types/workflows/__init__.py +0 -19
- casedev/types/workflows/v1_create_params.py +0 -32
- casedev/types/workflows/v1_create_response.py +0 -29
- casedev/types/workflows/v1_deploy_response.py +0 -20
- casedev/types/workflows/v1_execute_params.py +0 -12
- casedev/types/workflows/v1_execute_response.py +0 -22
- casedev/types/workflows/v1_list_executions_params.py +0 -13
- casedev/types/workflows/v1_list_executions_response.py +0 -27
- casedev/types/workflows/v1_list_params.py +0 -18
- casedev/types/workflows/v1_list_response.py +0 -37
- casedev/types/workflows/v1_retrieve_execution_response.py +0 -31
- casedev/types/workflows/v1_retrieve_response.py +0 -35
- casedev/types/workflows/v1_undeploy_response.py +0 -13
- casedev/types/workflows/v1_update_params.py +0 -26
- casedev/types/workflows/v1_update_response.py +0 -17
- casedev-0.1.0.dist-info/RECORD +0 -185
- {casedev-0.1.0.dist-info → casedev-0.2.0.dist-info}/WHEEL +0 -0
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .v1 import (
|
|
6
|
-
V1Resource,
|
|
7
|
-
AsyncV1Resource,
|
|
8
|
-
V1ResourceWithRawResponse,
|
|
9
|
-
AsyncV1ResourceWithRawResponse,
|
|
10
|
-
V1ResourceWithStreamingResponse,
|
|
11
|
-
AsyncV1ResourceWithStreamingResponse,
|
|
12
|
-
)
|
|
13
|
-
from ..._compat import cached_property
|
|
14
|
-
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
-
|
|
16
|
-
__all__ = ["WorkflowsResource", "AsyncWorkflowsResource"]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class WorkflowsResource(SyncAPIResource):
|
|
20
|
-
@cached_property
|
|
21
|
-
def v1(self) -> V1Resource:
|
|
22
|
-
return V1Resource(self._client)
|
|
23
|
-
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> WorkflowsResourceWithRawResponse:
|
|
26
|
-
"""
|
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
-
the raw response object instead of the parsed content.
|
|
29
|
-
|
|
30
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
31
|
-
"""
|
|
32
|
-
return WorkflowsResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> WorkflowsResourceWithStreamingResponse:
|
|
36
|
-
"""
|
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
-
|
|
39
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
40
|
-
"""
|
|
41
|
-
return WorkflowsResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class AsyncWorkflowsResource(AsyncAPIResource):
|
|
45
|
-
@cached_property
|
|
46
|
-
def v1(self) -> AsyncV1Resource:
|
|
47
|
-
return AsyncV1Resource(self._client)
|
|
48
|
-
|
|
49
|
-
@cached_property
|
|
50
|
-
def with_raw_response(self) -> AsyncWorkflowsResourceWithRawResponse:
|
|
51
|
-
"""
|
|
52
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
53
|
-
the raw response object instead of the parsed content.
|
|
54
|
-
|
|
55
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#accessing-raw-response-data-eg-headers
|
|
56
|
-
"""
|
|
57
|
-
return AsyncWorkflowsResourceWithRawResponse(self)
|
|
58
|
-
|
|
59
|
-
@cached_property
|
|
60
|
-
def with_streaming_response(self) -> AsyncWorkflowsResourceWithStreamingResponse:
|
|
61
|
-
"""
|
|
62
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
63
|
-
|
|
64
|
-
For more information, see https://www.github.com/CaseMark/casedev-python#with_streaming_response
|
|
65
|
-
"""
|
|
66
|
-
return AsyncWorkflowsResourceWithStreamingResponse(self)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class WorkflowsResourceWithRawResponse:
|
|
70
|
-
def __init__(self, workflows: WorkflowsResource) -> None:
|
|
71
|
-
self._workflows = workflows
|
|
72
|
-
|
|
73
|
-
@cached_property
|
|
74
|
-
def v1(self) -> V1ResourceWithRawResponse:
|
|
75
|
-
return V1ResourceWithRawResponse(self._workflows.v1)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class AsyncWorkflowsResourceWithRawResponse:
|
|
79
|
-
def __init__(self, workflows: AsyncWorkflowsResource) -> None:
|
|
80
|
-
self._workflows = workflows
|
|
81
|
-
|
|
82
|
-
@cached_property
|
|
83
|
-
def v1(self) -> AsyncV1ResourceWithRawResponse:
|
|
84
|
-
return AsyncV1ResourceWithRawResponse(self._workflows.v1)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class WorkflowsResourceWithStreamingResponse:
|
|
88
|
-
def __init__(self, workflows: WorkflowsResource) -> None:
|
|
89
|
-
self._workflows = workflows
|
|
90
|
-
|
|
91
|
-
@cached_property
|
|
92
|
-
def v1(self) -> V1ResourceWithStreamingResponse:
|
|
93
|
-
return V1ResourceWithStreamingResponse(self._workflows.v1)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class AsyncWorkflowsResourceWithStreamingResponse:
|
|
97
|
-
def __init__(self, workflows: AsyncWorkflowsResource) -> None:
|
|
98
|
-
self._workflows = workflows
|
|
99
|
-
|
|
100
|
-
@cached_property
|
|
101
|
-
def v1(self) -> AsyncV1ResourceWithStreamingResponse:
|
|
102
|
-
return AsyncV1ResourceWithStreamingResponse(self._workflows.v1)
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .v1_create_params import V1CreateParams as V1CreateParams
|
|
6
|
-
from .v1_execute_params import V1ExecuteParams as V1ExecuteParams
|
|
7
|
-
from .v1_create_response import V1CreateResponse as V1CreateResponse
|
|
8
|
-
from .v1_execute_response import V1ExecuteResponse as V1ExecuteResponse
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Union
|
|
6
|
-
from typing_extensions import Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["V1CreateParams"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class V1CreateParams(TypedDict, total=False):
|
|
12
|
-
definition: Required[Union[str, object]]
|
|
13
|
-
"""Action definition in YAML string, JSON string, or JSON object format"""
|
|
14
|
-
|
|
15
|
-
name: Required[str]
|
|
16
|
-
"""Unique name for the action"""
|
|
17
|
-
|
|
18
|
-
description: str
|
|
19
|
-
"""Optional description of the action's purpose"""
|
|
20
|
-
|
|
21
|
-
webhook_id: str
|
|
22
|
-
"""Optional webhook endpoint ID for action completion notifications"""
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from pydantic import Field as FieldInfo
|
|
6
|
-
|
|
7
|
-
from ..._models import BaseModel
|
|
8
|
-
|
|
9
|
-
__all__ = ["V1CreateResponse"]
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class V1CreateResponse(BaseModel):
|
|
13
|
-
id: Optional[str] = None
|
|
14
|
-
|
|
15
|
-
created_at: Optional[str] = FieldInfo(alias="createdAt", default=None)
|
|
16
|
-
|
|
17
|
-
created_by: Optional[str] = FieldInfo(alias="createdBy", default=None)
|
|
18
|
-
|
|
19
|
-
definition: Optional[object] = None
|
|
20
|
-
|
|
21
|
-
description: Optional[str] = None
|
|
22
|
-
|
|
23
|
-
is_active: Optional[bool] = FieldInfo(alias="isActive", default=None)
|
|
24
|
-
|
|
25
|
-
name: Optional[str] = None
|
|
26
|
-
|
|
27
|
-
organization_id: Optional[str] = FieldInfo(alias="organizationId", default=None)
|
|
28
|
-
|
|
29
|
-
updated_at: Optional[str] = FieldInfo(alias="updatedAt", default=None)
|
|
30
|
-
|
|
31
|
-
version: Optional[float] = None
|
|
32
|
-
|
|
33
|
-
webhook_endpoint_id: Optional[str] = FieldInfo(alias="webhookEndpointId", default=None)
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Dict
|
|
6
|
-
from typing_extensions import Required, TypedDict
|
|
7
|
-
|
|
8
|
-
__all__ = ["V1ExecuteParams"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class V1ExecuteParams(TypedDict, total=False):
|
|
12
|
-
input: Required[Dict[str, object]]
|
|
13
|
-
"""Input data for the action execution"""
|
|
14
|
-
|
|
15
|
-
webhook_id: str
|
|
16
|
-
"""Optional webhook endpoint ID to override the action's default webhook"""
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Dict, List, Optional
|
|
4
|
-
from typing_extensions import Literal
|
|
5
|
-
|
|
6
|
-
from ..._models import BaseModel
|
|
7
|
-
|
|
8
|
-
__all__ = ["V1ExecuteResponse"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class V1ExecuteResponse(BaseModel):
|
|
12
|
-
duration_ms: Optional[float] = None
|
|
13
|
-
"""Execution duration in milliseconds (only for completed executions)"""
|
|
14
|
-
|
|
15
|
-
execution_id: Optional[str] = None
|
|
16
|
-
"""Unique identifier for this execution"""
|
|
17
|
-
|
|
18
|
-
message: Optional[str] = None
|
|
19
|
-
"""Human-readable status message"""
|
|
20
|
-
|
|
21
|
-
output: Optional[Dict[str, object]] = None
|
|
22
|
-
"""Final output (only for synchronous/completed executions)"""
|
|
23
|
-
|
|
24
|
-
status: Optional[Literal["completed", "running"]] = None
|
|
25
|
-
"""Current status of the execution"""
|
|
26
|
-
|
|
27
|
-
step_results: Optional[List[Dict[str, object]]] = None
|
|
28
|
-
"""Results from each step (only for synchronous/completed executions)"""
|
|
29
|
-
|
|
30
|
-
webhook_configured: Optional[bool] = None
|
|
31
|
-
"""Whether webhook notifications are configured"""
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["FunctionGetLogsParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class FunctionGetLogsParams(TypedDict, total=False):
|
|
11
|
-
tail: int
|
|
12
|
-
"""Number of log lines to retrieve (default 200, max 1000)"""
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["FunctionListParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class FunctionListParams(TypedDict, total=False):
|
|
11
|
-
env: str
|
|
12
|
-
"""Environment name. If not specified, uses the default environment."""
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Dict
|
|
6
|
-
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
|
-
|
|
8
|
-
from ...._utils import PropertyInfo
|
|
9
|
-
|
|
10
|
-
__all__ = ["InvokeRunParams"]
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class InvokeRunParams(TypedDict, total=False):
|
|
14
|
-
input: Required[Dict[str, object]]
|
|
15
|
-
"""Input data to pass to the function"""
|
|
16
|
-
|
|
17
|
-
async_: Annotated[bool, PropertyInfo(alias="async")]
|
|
18
|
-
"""If true, returns immediately with run ID for background execution"""
|
|
19
|
-
|
|
20
|
-
function_suffix: Annotated[Literal["_modal", "_task", "_web", "_server"], PropertyInfo(alias="functionSuffix")]
|
|
21
|
-
"""Override the auto-detected function suffix"""
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Union, Optional
|
|
4
|
-
from typing_extensions import Literal, TypeAlias
|
|
5
|
-
|
|
6
|
-
from pydantic import Field as FieldInfo
|
|
7
|
-
|
|
8
|
-
from ...._models import BaseModel
|
|
9
|
-
|
|
10
|
-
__all__ = ["InvokeRunResponse", "SynchronousResponse", "AsynchronousResponse"]
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class SynchronousResponse(BaseModel):
|
|
14
|
-
duration: Optional[float] = None
|
|
15
|
-
"""Execution duration in milliseconds"""
|
|
16
|
-
|
|
17
|
-
error: Optional[str] = None
|
|
18
|
-
"""Error message if status is failed"""
|
|
19
|
-
|
|
20
|
-
output: Optional[object] = None
|
|
21
|
-
"""Function return value"""
|
|
22
|
-
|
|
23
|
-
run_id: Optional[str] = FieldInfo(alias="runId", default=None)
|
|
24
|
-
"""Unique run identifier"""
|
|
25
|
-
|
|
26
|
-
status: Optional[Literal["completed", "failed"]] = None
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
class AsynchronousResponse(BaseModel):
|
|
30
|
-
logs_url: Optional[str] = FieldInfo(alias="logsUrl", default=None)
|
|
31
|
-
"""URL to check run status and logs"""
|
|
32
|
-
|
|
33
|
-
run_id: Optional[str] = FieldInfo(alias="runId", default=None)
|
|
34
|
-
"""Unique run identifier"""
|
|
35
|
-
|
|
36
|
-
status: Optional[Literal["running"]] = None
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
InvokeRunResponse: TypeAlias = Union[SynchronousResponse, AsynchronousResponse]
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["RunListParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class RunListParams(TypedDict, total=False):
|
|
11
|
-
env: str
|
|
12
|
-
"""Environment name to filter runs by"""
|
|
13
|
-
|
|
14
|
-
function: str
|
|
15
|
-
"""Function name to filter runs by"""
|
|
16
|
-
|
|
17
|
-
limit: int
|
|
18
|
-
"""Maximum number of runs to return (1-100, default: 50)"""
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Dict
|
|
6
|
-
from typing_extensions import Literal, Required, Annotated, TypedDict
|
|
7
|
-
|
|
8
|
-
from ..._types import SequenceNotStr
|
|
9
|
-
from ..._utils import PropertyInfo
|
|
10
|
-
|
|
11
|
-
__all__ = ["V1DeployParams", "Config"]
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class V1DeployParams(TypedDict, total=False):
|
|
15
|
-
entrypoint_name: Required[Annotated[str, PropertyInfo(alias="entrypointName")]]
|
|
16
|
-
"""Function/app name (used for domain: hello → hello.org.case.systems)"""
|
|
17
|
-
|
|
18
|
-
type: Required[Literal["task", "service"]]
|
|
19
|
-
"""Deployment type: task for batch jobs, service for web endpoints"""
|
|
20
|
-
|
|
21
|
-
code: str
|
|
22
|
-
"""Python code (required for python runtime)"""
|
|
23
|
-
|
|
24
|
-
config: Config
|
|
25
|
-
"""Runtime and resource configuration"""
|
|
26
|
-
|
|
27
|
-
dockerfile: str
|
|
28
|
-
"""Dockerfile content (required for dockerfile runtime)"""
|
|
29
|
-
|
|
30
|
-
entrypoint_file: Annotated[str, PropertyInfo(alias="entrypointFile")]
|
|
31
|
-
"""Python entrypoint file name"""
|
|
32
|
-
|
|
33
|
-
environment: str
|
|
34
|
-
"""Environment name (uses default if not specified)"""
|
|
35
|
-
|
|
36
|
-
image: str
|
|
37
|
-
"""
|
|
38
|
-
Container image name (required for image runtime, e.g.,
|
|
39
|
-
'nvidia/cuda:12.8.1-devel-ubuntu22.04')
|
|
40
|
-
"""
|
|
41
|
-
|
|
42
|
-
runtime: Literal["python", "dockerfile", "image"]
|
|
43
|
-
"""Runtime environment"""
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class Config(TypedDict, total=False):
|
|
47
|
-
add_python: Annotated[str, PropertyInfo(alias="addPython")]
|
|
48
|
-
"""Add Python to image (e.g., '3.12', for image runtime)"""
|
|
49
|
-
|
|
50
|
-
allow_network: Annotated[bool, PropertyInfo(alias="allowNetwork")]
|
|
51
|
-
"""Allow network access (default: false for Python, true for Docker)"""
|
|
52
|
-
|
|
53
|
-
cmd: SequenceNotStr[str]
|
|
54
|
-
"""Container command arguments"""
|
|
55
|
-
|
|
56
|
-
concurrency: int
|
|
57
|
-
"""Concurrent execution limit"""
|
|
58
|
-
|
|
59
|
-
cpu_count: Annotated[int, PropertyInfo(alias="cpuCount")]
|
|
60
|
-
"""CPU core count"""
|
|
61
|
-
|
|
62
|
-
cron_schedule: Annotated[str, PropertyInfo(alias="cronSchedule")]
|
|
63
|
-
"""Cron schedule for periodic execution"""
|
|
64
|
-
|
|
65
|
-
dependencies: SequenceNotStr[str]
|
|
66
|
-
"""Python package dependencies (python runtime)"""
|
|
67
|
-
|
|
68
|
-
entrypoint: SequenceNotStr[str]
|
|
69
|
-
"""Container entrypoint command"""
|
|
70
|
-
|
|
71
|
-
env: Dict[str, str]
|
|
72
|
-
"""Environment variables"""
|
|
73
|
-
|
|
74
|
-
gpu_count: Annotated[int, PropertyInfo(alias="gpuCount")]
|
|
75
|
-
"""Number of GPUs (for multi-GPU setups)"""
|
|
76
|
-
|
|
77
|
-
gpu_type: Annotated[
|
|
78
|
-
Literal["cpu", "T4", "L4", "A10G", "L40S", "A100", "A100-40GB", "A100-80GB", "H100", "H200", "B200"],
|
|
79
|
-
PropertyInfo(alias="gpuType"),
|
|
80
|
-
]
|
|
81
|
-
"""GPU type for acceleration"""
|
|
82
|
-
|
|
83
|
-
is_web_service: Annotated[bool, PropertyInfo(alias="isWebService")]
|
|
84
|
-
"""Deploy as web service (auto-set for service type)"""
|
|
85
|
-
|
|
86
|
-
memory_mb: Annotated[int, PropertyInfo(alias="memoryMb")]
|
|
87
|
-
"""Memory allocation in MB"""
|
|
88
|
-
|
|
89
|
-
pip_install: Annotated[SequenceNotStr[str], PropertyInfo(alias="pipInstall")]
|
|
90
|
-
"""Packages to pip install (image runtime)"""
|
|
91
|
-
|
|
92
|
-
port: int
|
|
93
|
-
"""Port for web services"""
|
|
94
|
-
|
|
95
|
-
python_version: Annotated[str, PropertyInfo(alias="pythonVersion")]
|
|
96
|
-
"""Python version (e.g., '3.11')"""
|
|
97
|
-
|
|
98
|
-
retries: int
|
|
99
|
-
"""Retry attempts on failure (Python only)"""
|
|
100
|
-
|
|
101
|
-
secret_groups: Annotated[SequenceNotStr[str], PropertyInfo(alias="secretGroups")]
|
|
102
|
-
"""Secret group names to inject"""
|
|
103
|
-
|
|
104
|
-
timeout_seconds: Annotated[int, PropertyInfo(alias="timeoutSeconds")]
|
|
105
|
-
"""Maximum execution time"""
|
|
106
|
-
|
|
107
|
-
use_uv: Annotated[bool, PropertyInfo(alias="useUv")]
|
|
108
|
-
"""Use uv for faster package installs"""
|
|
109
|
-
|
|
110
|
-
warm_instances: Annotated[int, PropertyInfo(alias="warmInstances")]
|
|
111
|
-
"""Number of warm instances to maintain"""
|
|
112
|
-
|
|
113
|
-
workdir: str
|
|
114
|
-
"""Working directory in container"""
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
from datetime import datetime
|
|
5
|
-
|
|
6
|
-
from pydantic import Field as FieldInfo
|
|
7
|
-
|
|
8
|
-
from ..._models import BaseModel
|
|
9
|
-
|
|
10
|
-
__all__ = ["V1DeployResponse"]
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class V1DeployResponse(BaseModel):
|
|
14
|
-
created_at: Optional[datetime] = FieldInfo(alias="createdAt", default=None)
|
|
15
|
-
"""Deployment timestamp"""
|
|
16
|
-
|
|
17
|
-
deployment_id: Optional[str] = FieldInfo(alias="deploymentId", default=None)
|
|
18
|
-
"""Unique deployment identifier"""
|
|
19
|
-
|
|
20
|
-
environment: Optional[str] = None
|
|
21
|
-
"""Environment name"""
|
|
22
|
-
|
|
23
|
-
runtime: Optional[str] = None
|
|
24
|
-
"""Runtime used"""
|
|
25
|
-
|
|
26
|
-
status: Optional[str] = None
|
|
27
|
-
"""Deployment status"""
|
|
28
|
-
|
|
29
|
-
url: Optional[str] = None
|
|
30
|
-
"""Service endpoint URL (for web services)"""
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .v1_process_params import V1ProcessParams as V1ProcessParams
|
|
6
|
-
from .v1_webhook_params import V1WebhookParams as V1WebhookParams
|
|
7
|
-
from .v1_process_response import V1ProcessResponse as V1ProcessResponse
|
|
8
|
-
from .v1_webhook_response import V1WebhookResponse as V1WebhookResponse
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Required, TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["V1ProcessParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class V1ProcessParams(TypedDict, total=False):
|
|
11
|
-
input_url: Required[str]
|
|
12
|
-
"""HTTPS URL to the FTR file (must be a valid S3 presigned URL)"""
|
|
13
|
-
|
|
14
|
-
callback_url: str
|
|
15
|
-
"""Optional webhook URL to receive conversion completion notification"""
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
from typing_extensions import Literal
|
|
5
|
-
|
|
6
|
-
from ..._models import BaseModel
|
|
7
|
-
|
|
8
|
-
__all__ = ["V1ProcessResponse"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class V1ProcessResponse(BaseModel):
|
|
12
|
-
job_id: Optional[str] = None
|
|
13
|
-
"""Unique identifier for the conversion job"""
|
|
14
|
-
|
|
15
|
-
message: Optional[str] = None
|
|
16
|
-
"""Instructions for checking job status"""
|
|
17
|
-
|
|
18
|
-
status: Optional[Literal["queued", "processing", "completed", "failed"]] = None
|
|
19
|
-
"""Current status of the conversion job"""
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Literal, Required, TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["V1WebhookParams", "Result"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class V1WebhookParams(TypedDict, total=False):
|
|
11
|
-
job_id: Required[str]
|
|
12
|
-
"""Unique identifier for the conversion job"""
|
|
13
|
-
|
|
14
|
-
status: Required[Literal["completed", "failed"]]
|
|
15
|
-
"""Status of the conversion job"""
|
|
16
|
-
|
|
17
|
-
error: str
|
|
18
|
-
"""Error message for failed jobs"""
|
|
19
|
-
|
|
20
|
-
result: Result
|
|
21
|
-
"""Result data for completed jobs"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class Result(TypedDict, total=False):
|
|
25
|
-
duration_seconds: float
|
|
26
|
-
"""Processing duration in seconds"""
|
|
27
|
-
|
|
28
|
-
file_size_bytes: int
|
|
29
|
-
"""Size of processed file in bytes"""
|
|
30
|
-
|
|
31
|
-
stored_filename: str
|
|
32
|
-
"""Filename where converted file is stored"""
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .v1_list_params import V1ListParams as V1ListParams
|
|
6
|
-
from .v1_search_params import V1SearchParams as V1SearchParams
|
|
7
|
-
from .v1_execute_params import V1ExecuteParams as V1ExecuteParams
|
|
8
|
-
from .v1_execute_response import V1ExecuteResponse as V1ExecuteResponse
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Literal, Required, TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["V1ExecuteParams", "Options"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class V1ExecuteParams(TypedDict, total=False):
|
|
11
|
-
input: Required[object]
|
|
12
|
-
"""Input data for the workflow (structure varies by workflow type)"""
|
|
13
|
-
|
|
14
|
-
options: Options
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
class Options(TypedDict, total=False):
|
|
18
|
-
format: Literal["json", "text"]
|
|
19
|
-
"""Output format preference"""
|
|
20
|
-
|
|
21
|
-
model: str
|
|
22
|
-
"""LLM model to use for processing"""
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
from typing_extensions import Literal
|
|
5
|
-
|
|
6
|
-
from ..._models import BaseModel
|
|
7
|
-
|
|
8
|
-
__all__ = ["V1ExecuteResponse", "Usage"]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class Usage(BaseModel):
|
|
12
|
-
completion_tokens: Optional[int] = None
|
|
13
|
-
|
|
14
|
-
cost: Optional[float] = None
|
|
15
|
-
"""Total cost in USD"""
|
|
16
|
-
|
|
17
|
-
prompt_tokens: Optional[int] = None
|
|
18
|
-
|
|
19
|
-
total_tokens: Optional[int] = None
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class V1ExecuteResponse(BaseModel):
|
|
23
|
-
result: Optional[object] = None
|
|
24
|
-
"""Workflow output (structure varies by workflow type)"""
|
|
25
|
-
|
|
26
|
-
status: Optional[Literal["completed", "failed"]] = None
|
|
27
|
-
|
|
28
|
-
usage: Optional[Usage] = None
|
|
29
|
-
|
|
30
|
-
workflow_name: Optional[str] = None
|
|
31
|
-
"""Name of the executed workflow"""
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["V1ListParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class V1ListParams(TypedDict, total=False):
|
|
11
|
-
category: str
|
|
12
|
-
"""Filter workflows by category (e.g., 'legal', 'compliance', 'contract')"""
|
|
13
|
-
|
|
14
|
-
limit: int
|
|
15
|
-
"""Maximum number of workflows to return"""
|
|
16
|
-
|
|
17
|
-
offset: int
|
|
18
|
-
"""Number of workflows to skip for pagination"""
|
|
19
|
-
|
|
20
|
-
published: bool
|
|
21
|
-
"""Include only published workflows"""
|
|
22
|
-
|
|
23
|
-
sub_category: str
|
|
24
|
-
"""
|
|
25
|
-
Filter workflows by subcategory (e.g., 'due-diligence', 'litigation', 'mergers')
|
|
26
|
-
"""
|
|
27
|
-
|
|
28
|
-
type: str
|
|
29
|
-
"""
|
|
30
|
-
Filter workflows by type (e.g., 'document-review', 'contract-analysis',
|
|
31
|
-
'compliance-check')
|
|
32
|
-
"""
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Required, TypedDict
|
|
6
|
-
|
|
7
|
-
__all__ = ["V1SearchParams"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class V1SearchParams(TypedDict, total=False):
|
|
11
|
-
query: Required[str]
|
|
12
|
-
"""Search query to find relevant workflows"""
|
|
13
|
-
|
|
14
|
-
category: str
|
|
15
|
-
"""Optional category filter to narrow results"""
|
|
16
|
-
|
|
17
|
-
limit: int
|
|
18
|
-
"""Maximum number of results to return (default: 10, max: 50)"""
|