Skip to content

Commit 57e602e

Browse files
committed
copy changes from stainless
1 parent 28d5d4a commit 57e602e

File tree

107 files changed

+1054
-1970
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1054
-1970
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cleanlab%2Fcodex-5691cf2ac1617d7acc6532acfb2c08e151b48e6b045cdaf1715ff3843f611eb0.yml
1+
configured_endpoints: 25
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cleanlab%2Falpha-aef0028b8a92dfd0898b6a9871f84d11c768b0e449fc3ab9d7d4a3442f738e07.yml

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ pip install -r requirements-dev.lock
3737

3838
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
3939
result in merge conflicts between manual patches and changes from the generator. The generator will never
40-
modify the contents of the `src/codex/lib/` and `examples/` directories.
40+
modify the contents of the `src/alpha/lib/` and `examples/` directories.
4141

4242
## Adding and running examples
4343

@@ -63,7 +63,7 @@ If you’d like to use the repository from source, you can either install from g
6363
To install via git:
6464

6565
```sh
66-
$ pip install git+ssh://[email protected]/stainless-sdks/codex-python.git
66+
$ pip install git+ssh://[email protected]/stainless-sdks/alpha-python.git
6767
```
6868

6969
Alternatively, you can build from source and install the wheel file:
@@ -121,7 +121,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
121121

122122
### Publish with a GitHub workflow
123123

124-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/codex-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
124+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/alpha-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
125125

126126
### Publish manually
127127

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2025 Codex
189+
Copyright 2025 Alpha
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

SECURITY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ before making any information public.
1616
## Reporting Non-SDK Related Security Issues
1717

1818
If you encounter security issues that are not directly related to SDKs but pertain to the services
19-
or products provided by Codex please follow the respective company's security reporting guidelines.
19+
or products provided by Alpha please follow the respective company's security reporting guidelines.
2020

21-
### Codex Terms and Policies
21+
### Alpha Terms and Policies
2222

23-
Please contact [email protected] for any questions or concerns regarding security of our services.
23+
Please contact [email protected] for any questions or concerns regarding security of our services.
2424

2525
---
2626

api.md

Lines changed: 34 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,38 @@
33
Types:
44

55
```python
6-
from codex.types import HealthCheckResponse
6+
from alpha.types import Healthcheckresponse
77
```
88

99
Methods:
1010

11-
- <code title="get /api/health/">client.health.<a href="./src/codex/resources/health.py">check</a>() -> <a href="./src/codex/types/health_check_response.py">HealthCheckResponse</a></code>
12-
- <code title="get /api/health/db">client.health.<a href="./src/codex/resources/health.py">db</a>() -> <a href="./src/codex/types/health_check_response.py">HealthCheckResponse</a></code>
13-
- <code title="get /api/health/weaviate">client.health.<a href="./src/codex/resources/health.py">weaviate</a>() -> <a href="./src/codex/types/health_check_response.py">HealthCheckResponse</a></code>
11+
- <code title="get /api/health/">client.health.<a href="./src/alpha/resources/health.py">check</a>() -> <a href="./src/alpha/types/healthcheckresponse.py">Healthcheckresponse</a></code>
12+
- <code title="get /api/health/db">client.health.<a href="./src/alpha/resources/health.py">db</a>() -> <a href="./src/alpha/types/healthcheckresponse.py">Healthcheckresponse</a></code>
13+
- <code title="get /api/health/weaviate">client.health.<a href="./src/alpha/resources/health.py">weaviate</a>() -> <a href="./src/alpha/types/healthcheckresponse.py">Healthcheckresponse</a></code>
1414

1515
# Organizations
1616

1717
Types:
1818

1919
```python
20-
from codex.types import OrganizationSchemaPublic
20+
from alpha.types import Organizationschema
2121
```
2222

2323
Methods:
2424

25-
- <code title="get /api/organizations/{organization_id}">client.organizations.<a href="./src/codex/resources/organizations/organizations.py">retrieve</a>(organization_id) -> <a href="./src/codex/types/organization_schema_public.py">OrganizationSchemaPublic</a></code>
25+
- <code title="get /api/organizations/{organization_id}">client.organizations.<a href="./src/alpha/resources/organizations/organizations.py">retrieve</a>(organization_id) -> <a href="./src/alpha/types/organizationschema.py">Organizationschema</a></code>
2626

27-
## Billing
27+
## Users
2828

2929
Types:
3030

3131
```python
32-
from codex.types.organizations import (
33-
OrganizationBillingInvoicesSchema,
34-
OrganizationBillingUsageSchema,
35-
)
32+
from alpha.types.organizations import Organizationusersschema
3633
```
3734

3835
Methods:
3936

40-
- <code title="get /api/organizations/{organization_id}/billing/invoices">client.organizations.billing.<a href="./src/codex/resources/organizations/billing.py">invoices</a>(organization_id) -> <a href="./src/codex/types/organizations/organization_billing_invoices_schema.py">OrganizationBillingInvoicesSchema</a></code>
41-
- <code title="get /api/organizations/{organization_id}/billing/usage">client.organizations.billing.<a href="./src/codex/resources/organizations/billing.py">usage</a>(organization_id) -> <a href="./src/codex/types/organizations/organization_billing_usage_schema.py">OrganizationBillingUsageSchema</a></code>
37+
- <code title="get /api/organizations/{organization_id}/users">client.organizations.users.<a href="./src/alpha/resources/organizations/users.py">list</a>(organization_id) -> <a href="./src/alpha/types/organizations/organizationusersschema.py">Organizationusersschema</a></code>
4238

4339
# Users
4440

@@ -47,84 +43,72 @@ Methods:
4743
Types:
4844

4945
```python
50-
from codex.types.users import UserSchema, UserSchemaPublic
46+
from alpha.types.users import Userschemapublic
5147
```
5248

5349
Methods:
5450

55-
- <code title="get /api/users/myself">client.users.myself.<a href="./src/codex/resources/users/myself/myself.py">retrieve</a>() -> <a href="./src/codex/types/users/user_schema_public.py">UserSchemaPublic</a></code>
51+
- <code title="get /api/users/myself">client.users.myself.<a href="./src/alpha/resources/users/myself/myself.py">retrieve</a>() -> <a href="./src/alpha/types/users/userschemapublic.py">Userschemapublic</a></code>
5652

5753
### APIKey
5854

59-
Methods:
60-
61-
- <code title="post /api/users/myself/api-key/refresh">client.users.myself.api_key.<a href="./src/codex/resources/users/myself/api_key.py">refresh</a>() -> <a href="./src/codex/types/users/user_schema.py">UserSchema</a></code>
62-
63-
### Organizations
64-
6555
Types:
6656

6757
```python
68-
from codex.types.users.myself import UserOrganizationsSchema
58+
from alpha.types.users.myself import Userschema
6959
```
7060

7161
Methods:
7262

73-
- <code title="get /api/users/myself/organizations">client.users.myself.organizations.<a href="./src/codex/resources/users/myself/organizations.py">list</a>() -> <a href="./src/codex/types/users/myself/user_organizations_schema.py">UserOrganizationsSchema</a></code>
63+
- <code title="post /api/users/myself/api-key/refresh">client.users.myself.api_key.<a href="./src/alpha/resources/users/myself/api_key.py">refresh</a>() -> <a href="./src/alpha/types/users/myself/userschema.py">Userschema</a></code>
7464

7565
# Projects
7666

7767
Types:
7868

7969
```python
80-
from codex.types import ProjectReturnSchema, ProjectListResponse, ProjectExportResponse
70+
from alpha.types import Projectreturnschema, ProjectListResponse
8171
```
8272

8373
Methods:
8474

85-
- <code title="post /api/projects/">client.projects.<a href="./src/codex/resources/projects/projects.py">create</a>(\*\*<a href="src/codex/types/project_create_params.py">params</a>) -> <a href="./src/codex/types/project_return_schema.py">ProjectReturnSchema</a></code>
86-
- <code title="get /api/projects/{project_id}">client.projects.<a href="./src/codex/resources/projects/projects.py">retrieve</a>(project_id) -> <a href="./src/codex/types/project_return_schema.py">ProjectReturnSchema</a></code>
87-
- <code title="put /api/projects/{project_id}">client.projects.<a href="./src/codex/resources/projects/projects.py">update</a>(project_id, \*\*<a href="src/codex/types/project_update_params.py">params</a>) -> <a href="./src/codex/types/project_return_schema.py">ProjectReturnSchema</a></code>
88-
- <code title="get /api/projects/">client.projects.<a href="./src/codex/resources/projects/projects.py">list</a>(\*\*<a href="src/codex/types/project_list_params.py">params</a>) -> <a href="./src/codex/types/project_list_response.py">ProjectListResponse</a></code>
89-
- <code title="delete /api/projects/{project_id}">client.projects.<a href="./src/codex/resources/projects/projects.py">delete</a>(project_id) -> None</code>
90-
- <code title="get /api/projects/{project_id}/export">client.projects.<a href="./src/codex/resources/projects/projects.py">export</a>(project_id) -> <a href="./src/codex/types/project_export_response.py">object</a></code>
75+
- <code title="post /api/projects/">client.projects.<a href="./src/alpha/resources/projects/projects.py">create</a>(\*\*<a href="src/alpha/types/project_create_params.py">params</a>) -> <a href="./src/alpha/types/projectreturnschema.py">Projectreturnschema</a></code>
76+
- <code title="get /api/projects/{project_id}">client.projects.<a href="./src/alpha/resources/projects/projects.py">retrieve</a>(project_id) -> <a href="./src/alpha/types/projectreturnschema.py">Projectreturnschema</a></code>
77+
- <code title="put /api/projects/{project_id}">client.projects.<a href="./src/alpha/resources/projects/projects.py">update</a>(project_id, \*\*<a href="src/alpha/types/project_update_params.py">params</a>) -> <a href="./src/alpha/types/projectreturnschema.py">Projectreturnschema</a></code>
78+
- <code title="get /api/projects/">client.projects.<a href="./src/alpha/resources/projects/projects.py">list</a>() -> <a href="./src/alpha/types/project_list_response.py">ProjectListResponse</a></code>
79+
- <code title="delete /api/projects/{project_id}">client.projects.<a href="./src/alpha/resources/projects/projects.py">delete</a>(project_id) -> None</code>
9180

9281
## AccessKeys
9382

9483
Types:
9584

9685
```python
97-
from codex.types.projects import (
98-
AccessKeySchema,
99-
AccessKeyListResponse,
100-
AccessKeyRetrieveProjectIDResponse,
101-
)
86+
from alpha.types.projects import Accesskeyschema, AccessKeyListResponse
10287
```
10388

10489
Methods:
10590

106-
- <code title="post /api/projects/{project_id}/access_keys/">client.projects.access_keys.<a href="./src/codex/resources/projects/access_keys.py">create</a>(project_id, \*\*<a href="src/codex/types/projects/access_key_create_params.py">params</a>) -> <a href="./src/codex/types/projects/access_key_schema.py">AccessKeySchema</a></code>
107-
- <code title="get /api/projects/{project_id}/access_keys/{access_key_id}">client.projects.access_keys.<a href="./src/codex/resources/projects/access_keys.py">retrieve</a>(access_key_id, \*, project_id) -> <a href="./src/codex/types/projects/access_key_schema.py">AccessKeySchema</a></code>
108-
- <code title="put /api/projects/{project_id}/access_keys/{access_key_id}">client.projects.access_keys.<a href="./src/codex/resources/projects/access_keys.py">update</a>(access_key_id, \*, project_id, \*\*<a href="src/codex/types/projects/access_key_update_params.py">params</a>) -> <a href="./src/codex/types/projects/access_key_schema.py">AccessKeySchema</a></code>
109-
- <code title="get /api/projects/{project_id}/access_keys/">client.projects.access_keys.<a href="./src/codex/resources/projects/access_keys.py">list</a>(project_id) -> <a href="./src/codex/types/projects/access_key_list_response.py">AccessKeyListResponse</a></code>
110-
- <code title="delete /api/projects/{project_id}/access_keys/{access_key_id}">client.projects.access_keys.<a href="./src/codex/resources/projects/access_keys.py">delete</a>(access_key_id, \*, project_id) -> None</code>
111-
- <code title="get /api/projects/id_from_access_key">client.projects.access_keys.<a href="./src/codex/resources/projects/access_keys.py">retrieve_project_id</a>() -> <a href="./src/codex/types/projects/access_key_retrieve_project_id_response.py">AccessKeyRetrieveProjectIDResponse</a></code>
112-
- <code title="post /api/projects/{project_id}/access_keys/{access_key_id}/revoke">client.projects.access_keys.<a href="./src/codex/resources/projects/access_keys.py">revoke</a>(access_key_id, \*, project_id) -> None</code>
91+
- <code title="post /api/projects/{project_id}/access_keys/">client.projects.access_keys.<a href="./src/alpha/resources/projects/access_keys.py">create</a>(project_id, \*\*<a href="src/alpha/types/projects/access_key_create_params.py">params</a>) -> <a href="./src/alpha/types/projects/accesskeyschema.py">Accesskeyschema</a></code>
92+
- <code title="get /api/projects/{project_id}/access_keys/{access_key_id}">client.projects.access_keys.<a href="./src/alpha/resources/projects/access_keys.py">retrieve</a>(access_key_id, \*, project_id) -> <a href="./src/alpha/types/projects/accesskeyschema.py">Accesskeyschema</a></code>
93+
- <code title="put /api/projects/{project_id}/access_keys/{access_key_id}">client.projects.access_keys.<a href="./src/alpha/resources/projects/access_keys.py">update</a>(access_key_id, \*, project_id, \*\*<a href="src/alpha/types/projects/access_key_update_params.py">params</a>) -> <a href="./src/alpha/types/projects/accesskeyschema.py">Accesskeyschema</a></code>
94+
- <code title="get /api/projects/{project_id}/access_keys/">client.projects.access_keys.<a href="./src/alpha/resources/projects/access_keys.py">list</a>(project_id) -> <a href="./src/alpha/types/projects/access_key_list_response.py">AccessKeyListResponse</a></code>
95+
- <code title="delete /api/projects/{project_id}/access_keys/{access_key_id}">client.projects.access_keys.<a href="./src/alpha/resources/projects/access_keys.py">delete</a>(access_key_id, \*, project_id) -> None</code>
96+
- <code title="post /api/projects/{project_id}/access_keys/{access_key_id}/revoke">client.projects.access_keys.<a href="./src/alpha/resources/projects/access_keys.py">revoke</a>(access_key_id, \*, project_id) -> None</code>
11397

11498
## Knowledge
11599

116100
Types:
117101

118102
```python
119-
from codex.types.projects import Entry, ListKnowledgeResponse
103+
from alpha.types.projects import Entry, KnowledgeListResponse
120104
```
121105

122106
Methods:
123107

124-
- <code title="post /api/projects/{project_id}/knowledge/">client.projects.knowledge.<a href="./src/codex/resources/projects/knowledge.py">create</a>(project_id, \*\*<a href="src/codex/types/projects/knowledge_create_params.py">params</a>) -> <a href="./src/codex/types/projects/entry.py">Entry</a></code>
125-
- <code title="get /api/projects/{project_id}/knowledge/{entry_id}">client.projects.knowledge.<a href="./src/codex/resources/projects/knowledge.py">retrieve</a>(entry_id, \*, project_id) -> <a href="./src/codex/types/projects/entry.py">Entry</a></code>
126-
- <code title="put /api/projects/{project_id}/knowledge/{entry_id}">client.projects.knowledge.<a href="./src/codex/resources/projects/knowledge.py">update</a>(entry_id, \*, project_id, \*\*<a href="src/codex/types/projects/knowledge_update_params.py">params</a>) -> <a href="./src/codex/types/projects/entry.py">Entry</a></code>
127-
- <code title="get /api/projects/{project_id}/knowledge/">client.projects.knowledge.<a href="./src/codex/resources/projects/knowledge.py">list</a>(project_id, \*\*<a href="src/codex/types/projects/knowledge_list_params.py">params</a>) -> <a href="./src/codex/types/projects/list_knowledge_response.py">ListKnowledgeResponse</a></code>
128-
- <code title="delete /api/projects/{project_id}/knowledge/{entry_id}">client.projects.knowledge.<a href="./src/codex/resources/projects/knowledge.py">delete</a>(entry_id, \*, project_id) -> None</code>
129-
- <code title="post /api/projects/{project_id}/knowledge/add_question">client.projects.knowledge.<a href="./src/codex/resources/projects/knowledge.py">add_question</a>(project_id, \*\*<a href="src/codex/types/projects/knowledge_add_question_params.py">params</a>) -> <a href="./src/codex/types/projects/entry.py">Entry</a></code>
130-
- <code title="post /api/projects/{project_id}/knowledge/query">client.projects.knowledge.<a href="./src/codex/resources/projects/knowledge.py">query</a>(project_id, \*\*<a href="src/codex/types/projects/knowledge_query_params.py">params</a>) -> <a href="./src/codex/types/projects/entry.py">Optional[Entry]</a></code>
108+
- <code title="post /api/projects/{project_id}/knowledge/">client.projects.knowledge.<a href="./src/alpha/resources/projects/knowledge.py">create</a>(project_id, \*\*<a href="src/alpha/types/projects/knowledge_create_params.py">params</a>) -> <a href="./src/alpha/types/projects/entry.py">Entry</a></code>
109+
- <code title="get /api/projects/{project_id}/knowledge/{entry_id}">client.projects.knowledge.<a href="./src/alpha/resources/projects/knowledge.py">retrieve</a>(entry_id, \*, project_id) -> <a href="./src/alpha/types/projects/entry.py">Entry</a></code>
110+
- <code title="put /api/projects/{project_id}/knowledge/{entry_id}">client.projects.knowledge.<a href="./src/alpha/resources/projects/knowledge.py">update</a>(entry_id, \*, project_id, \*\*<a href="src/alpha/types/projects/knowledge_update_params.py">params</a>) -> <a href="./src/alpha/types/projects/entry.py">Entry</a></code>
111+
- <code title="get /api/projects/{project_id}/knowledge/">client.projects.knowledge.<a href="./src/alpha/resources/projects/knowledge.py">list</a>(project_id, \*\*<a href="src/alpha/types/projects/knowledge_list_params.py">params</a>) -> <a href="./src/alpha/types/projects/knowledge_list_response.py">KnowledgeListResponse</a></code>
112+
- <code title="delete /api/projects/{project_id}/knowledge/{entry_id}">client.projects.knowledge.<a href="./src/alpha/resources/projects/knowledge.py">delete</a>(entry_id, \*, project_id) -> None</code>
113+
- <code title="post /api/projects/{project_id}/knowledge/add_question">client.projects.knowledge.<a href="./src/alpha/resources/projects/knowledge.py">add_question</a>(project_id, \*\*<a href="src/alpha/types/projects/knowledge_add_question_params.py">params</a>) -> <a href="./src/alpha/types/projects/entry.py">Entry</a></code>
114+
- <code title="post /api/projects/{project_id}/knowledge/query">client.projects.knowledge.<a href="./src/alpha/resources/projects/knowledge.py">query</a>(project_id, \*\*<a href="src/alpha/types/projects/knowledge_query_params.py">params</a>) -> <a href="./src/alpha/types/projects/entry.py">Optional[Entry]</a></code>

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ show_error_codes = True
88
#
99
# We also exclude our `tests` as mypy doesn't always infer
1010
# types correctly and Pyright will still catch any type errors.
11-
exclude = ^(src/codex/_files\.py|_dev/.*\.py|tests/.*)$
11+
exclude = ^(src/alpha/_files\.py|_dev/.*\.py|tests/.*)$
1212

1313
strict_equality = True
1414
implicit_reexport = True

0 commit comments

Comments
 (0)