Skip to content

Commit da121b5

Browse files
committed
[NA] [SDK] [DOCS] Update automatically OpenAPI spec and Fern code
1 parent aec1e2f commit da121b5

6 files changed

Lines changed: 46 additions & 14 deletions

File tree

apps/opik-documentation/documentation/fern/openapi/opik.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7032,7 +7032,11 @@ paths:
70327032
tags:
70337033
- Prompts
70347034
summary: Retrieve prompt version
7035-
description: Retrieve prompt version
7035+
description: "Retrieve prompt version. When project_name is supplied the lookup\
7036+
\ is scoped to that project: a prompt belonging to a different project is\
7037+
\ never matched, and an unknown project name returns 404. Legacy prompts with\
7038+
\ no project are still resolved as a deprecated fallback, signalled by the\
7039+
\ X-Opik-Deprecation response header."
70367040
operationId: retrievePromptVersion
70377041
requestBody:
70387042
content:
@@ -7042,6 +7046,14 @@ paths:
70427046
responses:
70437047
"200":
70447048
description: OK
7049+
headers:
7050+
X-Opik-Deprecation:
7051+
description: "Present only when the prompt was resolved through the\
7052+
\ deprecated workspace-wide fallback, i.e. it has no project. Absent\
7053+
\ for project-scoped prompts."
7054+
style: simple
7055+
schema:
7056+
type: string
70457057
content:
70467058
application/json:
70477059
schema:
@@ -20517,7 +20529,11 @@ components:
2051720529
project_name:
2051820530
pattern: (?s)^\s*(\S.*\S|\S)\s*$
2051920531
type: string
20520-
description: "If provided, scopes the search to the specified project"
20532+
description: "If provided, scopes the search to the specified project; prompts\
20533+
\ belonging to other projects are never matched, and an unknown project\
20534+
\ name returns 404. Legacy prompts that are not scoped to any project\
20535+
\ are still matched as a deprecated fallback, signalled by the X-Opik-Deprecation\
20536+
\ response header."
2052120537
PromptVersionIdsRequest_Detail:
2052220538
required:
2052320539
- ids

sdks/code_generation/fern/openapi/openapi.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7032,7 +7032,11 @@ paths:
70327032
tags:
70337033
- Prompts
70347034
summary: Retrieve prompt version
7035-
description: Retrieve prompt version
7035+
description: "Retrieve prompt version. When project_name is supplied the lookup\
7036+
\ is scoped to that project: a prompt belonging to a different project is\
7037+
\ never matched, and an unknown project name returns 404. Legacy prompts with\
7038+
\ no project are still resolved as a deprecated fallback, signalled by the\
7039+
\ X-Opik-Deprecation response header."
70367040
operationId: retrievePromptVersion
70377041
requestBody:
70387042
content:
@@ -7042,6 +7046,14 @@ paths:
70427046
responses:
70437047
"200":
70447048
description: OK
7049+
headers:
7050+
X-Opik-Deprecation:
7051+
description: "Present only when the prompt was resolved through the\
7052+
\ deprecated workspace-wide fallback, i.e. it has no project. Absent\
7053+
\ for project-scoped prompts."
7054+
style: simple
7055+
schema:
7056+
type: string
70457057
content:
70467058
application/json:
70477059
schema:
@@ -20517,7 +20529,11 @@ components:
2051720529
project_name:
2051820530
pattern: (?s)^\s*(\S.*\S|\S)\s*$
2051920531
type: string
20520-
description: "If provided, scopes the search to the specified project"
20532+
description: "If provided, scopes the search to the specified project; prompts\
20533+
\ belonging to other projects are never matched, and an unknown project\
20534+
\ name returns 404. Legacy prompts that are not scoped to any project\
20535+
\ are still matched as a deprecated fallback, signalled by the X-Opik-Deprecation\
20536+
\ response header."
2052120537
PromptVersionIdsRequest_Detail:
2052220538
required:
2052320539
- ids

sdks/python/src/opik/rest_api/prompts/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def retrieve_prompt_version(
597597
request_options: typing.Optional[RequestOptions] = None,
598598
) -> PromptVersionDetail:
599599
"""
600-
Retrieve prompt version
600+
Retrieve prompt version. When project_name is supplied the lookup is scoped to that project: a prompt belonging to a different project is never matched, and an unknown project name returns 404. Legacy prompts with no project are still resolved as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
601601
602602
Parameters
603603
----------
@@ -612,7 +612,7 @@ def retrieve_prompt_version(
612612
If provided, resolves to the version with this sequential number (e.g. v3); mutually exclusive with commit and environment
613613
614614
project_name : typing.Optional[str]
615-
If provided, scopes the search to the specified project
615+
If provided, scopes the search to the specified project; prompts belonging to other projects are never matched, and an unknown project name returns 404. Legacy prompts that are not scoped to any project are still matched as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
616616
617617
request_options : typing.Optional[RequestOptions]
618618
Request-specific configuration.
@@ -1325,7 +1325,7 @@ async def retrieve_prompt_version(
13251325
request_options: typing.Optional[RequestOptions] = None,
13261326
) -> PromptVersionDetail:
13271327
"""
1328-
Retrieve prompt version
1328+
Retrieve prompt version. When project_name is supplied the lookup is scoped to that project: a prompt belonging to a different project is never matched, and an unknown project name returns 404. Legacy prompts with no project are still resolved as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
13291329
13301330
Parameters
13311331
----------
@@ -1340,7 +1340,7 @@ async def retrieve_prompt_version(
13401340
If provided, resolves to the version with this sequential number (e.g. v3); mutually exclusive with commit and environment
13411341
13421342
project_name : typing.Optional[str]
1343-
If provided, scopes the search to the specified project
1343+
If provided, scopes the search to the specified project; prompts belonging to other projects are never matched, and an unknown project name returns 404. Legacy prompts that are not scoped to any project are still matched as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
13441344
13451345
request_options : typing.Optional[RequestOptions]
13461346
Request-specific configuration.

sdks/python/src/opik/rest_api/prompts/raw_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ def retrieve_prompt_version(
988988
request_options: typing.Optional[RequestOptions] = None,
989989
) -> HttpResponse[PromptVersionDetail]:
990990
"""
991-
Retrieve prompt version
991+
Retrieve prompt version. When project_name is supplied the lookup is scoped to that project: a prompt belonging to a different project is never matched, and an unknown project name returns 404. Legacy prompts with no project are still resolved as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
992992
993993
Parameters
994994
----------
@@ -1003,7 +1003,7 @@ def retrieve_prompt_version(
10031003
If provided, resolves to the version with this sequential number (e.g. v3); mutually exclusive with commit and environment
10041004
10051005
project_name : typing.Optional[str]
1006-
If provided, scopes the search to the specified project
1006+
If provided, scopes the search to the specified project; prompts belonging to other projects are never matched, and an unknown project name returns 404. Legacy prompts that are not scoped to any project are still matched as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
10071007
10081008
request_options : typing.Optional[RequestOptions]
10091009
Request-specific configuration.
@@ -2164,7 +2164,7 @@ async def retrieve_prompt_version(
21642164
request_options: typing.Optional[RequestOptions] = None,
21652165
) -> AsyncHttpResponse[PromptVersionDetail]:
21662166
"""
2167-
Retrieve prompt version
2167+
Retrieve prompt version. When project_name is supplied the lookup is scoped to that project: a prompt belonging to a different project is never matched, and an unknown project name returns 404. Legacy prompts with no project are still resolved as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
21682168
21692169
Parameters
21702170
----------
@@ -2179,7 +2179,7 @@ async def retrieve_prompt_version(
21792179
If provided, resolves to the version with this sequential number (e.g. v3); mutually exclusive with commit and environment
21802180
21812181
project_name : typing.Optional[str]
2182-
If provided, scopes the search to the specified project
2182+
If provided, scopes the search to the specified project; prompts belonging to other projects are never matched, and an unknown project name returns 404. Legacy prompts that are not scoped to any project are still matched as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
21832183
21842184
request_options : typing.Optional[RequestOptions]
21852185
Request-specific configuration.

sdks/typescript/src/opik/rest_api/api/resources/prompts/client/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ export class PromptsClient {
11851185
}
11861186

11871187
/**
1188-
* Retrieve prompt version
1188+
* Retrieve prompt version. When project_name is supplied the lookup is scoped to that project: a prompt belonging to a different project is never matched, and an unknown project name returns 404. Legacy prompts with no project are still resolved as a deprecated fallback, signalled by the X-Opik-Deprecation response header.
11891189
*
11901190
* @param {OpikApi.PromptVersionRetrieveDetail} request
11911191
* @param {PromptsClient.RequestOptions} requestOptions - Request-specific configuration.

sdks/typescript/src/opik/rest_api/api/resources/prompts/client/requests/PromptVersionRetrieveDetail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export interface PromptVersionRetrieveDetail {
1313
environment?: string;
1414
/** If provided, resolves to the version with this sequential number (e.g. v3); mutually exclusive with commit and environment */
1515
versionNumber?: string;
16-
/** If provided, scopes the search to the specified project */
16+
/** If provided, scopes the search to the specified project; prompts belonging to other projects are never matched, and an unknown project name returns 404. Legacy prompts that are not scoped to any project are still matched as a deprecated fallback, signalled by the X-Opik-Deprecation response header. */
1717
projectName?: string;
1818
}

0 commit comments

Comments
 (0)