Skip to content

Commit ba768fe

Browse files
authored
Codegen updates for 2025-10 (#526)
## Problem Need to generate files off the updated spec ### Generated code: API updates - Admin API: Enhanced API keys and projects endpoints; added update operations - DB Control API: Updated index management with new read capacity support - DB Data API: Enhanced vector operations, namespace operations, and bulk operations - Inference API: Updated embedding and reranking models - OAuth API: Updated token request/response models ### Test updates - Made a few fixes in wrapper code to account for changes to generated names and shapes - Fixed integration tests for admin, control, and data operations - Updated unit tests for model changes - Fixed namespace-related tests - Updated index configuration tests
1 parent 7f96c60 commit ba768fe

File tree

191 files changed

+10073
-2296
lines changed

Some content is hidden

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

191 files changed

+10073
-2296
lines changed

codegen/build-oas.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ update_apis_repo() {
1818
git fetch
1919
git checkout main
2020
git pull
21+
just clean
2122
just build
2223
popd
2324
}

pinecone/__init__.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ from pinecone.db_control.models import (
7878
PodSpec,
7979
PodSpecDefinition,
8080
)
81-
from pinecone.db_control.types import (
82-
ConfigureIndexEmbed,
83-
CreateIndexForModelEmbedTypedDict,
84-
)
81+
from pinecone.db_control.types import ConfigureIndexEmbed, CreateIndexForModelEmbedTypedDict
8582
from pinecone.pinecone import Pinecone
8683
from pinecone.pinecone_asyncio import PineconeAsyncio
8784

pinecone/admin/resources/api_key.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def list(self, project_id: str):
6666
print(api_key.description)
6767
print(api_key.roles)
6868
"""
69-
return self._api_keys_api.list_api_keys(project_id=project_id)
69+
return self._api_keys_api.list_project_api_keys(project_id=project_id)
7070

7171
@require_kwargs
7272
def fetch(self, api_key_id: str):

pinecone/config/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
from .openapi_configuration import Configuration as OpenApiConfiguration
66
from .pinecone_config import PineconeConfig
77

8-
__all__ = [
9-
"ConfigBuilder",
10-
"Config",
11-
"OpenApiConfiguration",
12-
"PineconeConfig",
13-
]
8+
__all__ = ["ConfigBuilder", "Config", "OpenApiConfiguration", "PineconeConfig"]
149

1510
if os.getenv("PINECONE_DEBUG") is not None:
1611
logging.getLogger("pinecone").setLevel(level=logging.DEBUG)

pinecone/core/openapi/admin/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
This file is @generated using OpenAPI.
99
10-
The version of the OpenAPI document: 2025-04
10+
The version of the OpenAPI document: 2025-10
1111
Contact: support@pinecone.io
1212
"""
1313

@@ -27,4 +27,4 @@
2727
from pinecone.openapi_support.exceptions import PineconeApiKeyError
2828
from pinecone.openapi_support.exceptions import PineconeApiException
2929

30-
API_VERSION = "2025-04"
30+
API_VERSION = "2025-10"

pinecone/core/openapi/admin/api/api_keys_api.py

Lines changed: 306 additions & 63 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)