Skip to content

Commit 30a8a21

Browse files
committed
feat: Update prompt-registry specification to java-sdk version
1 parent 4be7379 commit 30a8a21

File tree

76 files changed

+7917
-117
lines changed

Some content is hidden

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

76 files changed

+7917
-117
lines changed

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export default [
5555
'@typescript-eslint/explicit-module-boundary-types': 'off',
5656
'import/no-internal-modules': 'off',
5757
'no-unused-expressions': 'off',
58-
'jsdoc/require-jsdoc': 'off'
58+
'jsdoc/require-jsdoc': 'off',
59+
'no-useless-escape': 'off'
5960
}
6061
}
6162
];

packages/prompt-registry/src/client/prompt-registry/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
55
*/
66
export * from './prompt-templates-api.js';
7+
export * from './orchestration-configs-api.js';
78
export * from './schema/index.js';
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
/*
2+
* Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved.
3+
*
4+
* This is a generated file powered by the SAP Cloud SDK for JavaScript.
5+
*/
6+
import { OpenApiRequestBuilder } from '@sap-ai-sdk/core';
7+
import type {
8+
OrchestrationConfigListResponse,
9+
OrchestrationConfigPostRequest,
10+
OrchestrationConfigPostResponse,
11+
OrchestrationConfigGetResponse,
12+
OrchestrationConfigDeleteResponse
13+
} from './schema/index.js';
14+
/**
15+
* Representation of the 'OrchestrationConfigsApi'.
16+
* This API is part of the 'prompt-registry' service.
17+
*/
18+
export const OrchestrationConfigsApi = {
19+
_defaultBasePath: undefined,
20+
/**
21+
* List orchestration configs
22+
* @param queryParameters - Object containing the following keys: scenario, name, version, retrieve, include_spec, resolve_template_ref.
23+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
24+
* @returns The request builder, use the `execute()` method to trigger the request.
25+
*/
26+
listOrchestrationConfigs: (
27+
queryParameters?: {
28+
scenario?: string;
29+
name?: string;
30+
version?: string;
31+
retrieve?: 'both' | 'imperative' | 'declarative';
32+
include_spec?: boolean;
33+
resolve_template_ref?: boolean;
34+
},
35+
headerParameters?: { 'AI-Resource-Group'?: string }
36+
) =>
37+
new OpenApiRequestBuilder<OrchestrationConfigListResponse>(
38+
'get',
39+
'/registry/v2/orchestrationConfigs',
40+
{
41+
queryParameters,
42+
headerParameters
43+
},
44+
OrchestrationConfigsApi._defaultBasePath
45+
),
46+
/**
47+
* Create or update an orchestration config
48+
* @param body - Request body.
49+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
50+
* @returns The request builder, use the `execute()` method to trigger the request.
51+
*/
52+
createUpdateOrchestrationConfig: (
53+
body: OrchestrationConfigPostRequest,
54+
headerParameters?: { 'AI-Resource-Group'?: string }
55+
) =>
56+
new OpenApiRequestBuilder<OrchestrationConfigPostResponse>(
57+
'post',
58+
'/registry/v2/orchestrationConfigs',
59+
{
60+
body,
61+
headerParameters
62+
},
63+
OrchestrationConfigsApi._defaultBasePath
64+
),
65+
/**
66+
* List orchestration config history
67+
* @param scenario - Path parameter.
68+
* @param version - Path parameter.
69+
* @param name - Path parameter.
70+
* @param queryParameters - Object containing the following keys: include_spec, resolve_template_ref.
71+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
72+
* @returns The request builder, use the `execute()` method to trigger the request.
73+
*/
74+
listOrchestrationConfigHistory: (
75+
scenario: string,
76+
version: string,
77+
name: string,
78+
queryParameters?: {
79+
include_spec?: boolean;
80+
resolve_template_ref?: boolean;
81+
},
82+
headerParameters?: { 'AI-Resource-Group'?: string }
83+
) =>
84+
new OpenApiRequestBuilder<OrchestrationConfigListResponse>(
85+
'get',
86+
'/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/history',
87+
{
88+
pathParameters: { scenario, version, name },
89+
queryParameters,
90+
headerParameters
91+
},
92+
OrchestrationConfigsApi._defaultBasePath
93+
),
94+
/**
95+
* Get orchestration config by UUID
96+
* @param orchestrationConfigId - Path parameter.
97+
* @param queryParameters - Object containing the following keys: resolve_template_ref.
98+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
99+
* @returns The request builder, use the `execute()` method to trigger the request.
100+
*/
101+
getOrchestrationConfigByUuid: (
102+
orchestrationConfigId: string,
103+
queryParameters?: { resolve_template_ref?: boolean },
104+
headerParameters?: { 'AI-Resource-Group'?: string }
105+
) =>
106+
new OpenApiRequestBuilder<OrchestrationConfigGetResponse>(
107+
'get',
108+
'/registry/v2/orchestrationConfigs/{orchestrationConfigId}',
109+
{
110+
pathParameters: { orchestrationConfigId },
111+
queryParameters,
112+
headerParameters
113+
},
114+
OrchestrationConfigsApi._defaultBasePath
115+
),
116+
/**
117+
* Delete orchestration config
118+
* @param orchestrationConfigId - Path parameter.
119+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
120+
* @returns The request builder, use the `execute()` method to trigger the request.
121+
*/
122+
deleteOrchestrationConfig: (
123+
orchestrationConfigId: string,
124+
headerParameters?: { 'AI-Resource-Group'?: string }
125+
) =>
126+
new OpenApiRequestBuilder<OrchestrationConfigDeleteResponse>(
127+
'delete',
128+
'/registry/v2/orchestrationConfigs/{orchestrationConfigId}',
129+
{
130+
pathParameters: { orchestrationConfigId },
131+
headerParameters
132+
},
133+
OrchestrationConfigsApi._defaultBasePath
134+
),
135+
/**
136+
* Import orchestration config
137+
* @param body - Request body.
138+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
139+
* @returns The request builder, use the `execute()` method to trigger the request.
140+
*/
141+
importOrchestrationConfig: (
142+
body: any | undefined,
143+
headerParameters?: { 'AI-Resource-Group'?: string }
144+
) =>
145+
new OpenApiRequestBuilder<OrchestrationConfigPostResponse>(
146+
'post',
147+
'/registry/v2/orchestrationConfigs/import',
148+
{
149+
body,
150+
headerParameters
151+
},
152+
OrchestrationConfigsApi._defaultBasePath
153+
),
154+
/**
155+
* Export orchestration config
156+
* @param orchestrationConfigId - Path parameter.
157+
* @param headerParameters - Object containing the following keys: AI-Resource-Group.
158+
* @returns The request builder, use the `execute()` method to trigger the request.
159+
*/
160+
exportOrchestrationConfig: (
161+
orchestrationConfigId: string,
162+
headerParameters?: { 'AI-Resource-Group'?: string }
163+
) =>
164+
new OpenApiRequestBuilder<string>(
165+
'get',
166+
'/registry/v2/orchestrationConfigs/{orchestrationConfigId}/export',
167+
{
168+
pathParameters: { orchestrationConfigId },
169+
headerParameters
170+
},
171+
OrchestrationConfigsApi._defaultBasePath
172+
)
173+
};

0 commit comments

Comments
 (0)