@sap-ai-sdk/prompt-registry 1.9.1-20250311013131.0

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.
Files changed (117) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +79 -0
  3. package/dist/client/prompt-registry/index.d.ts +3 -0
  4. package/dist/client/prompt-registry/index.d.ts.map +1 -0
  5. package/dist/client/prompt-registry/index.js +8 -0
  6. package/dist/client/prompt-registry/index.js.map +1 -0
  7. package/dist/client/prompt-registry/prompt-templates-api.d.ts +82 -0
  8. package/dist/client/prompt-registry/prompt-templates-api.d.ts.map +1 -0
  9. package/dist/client/prompt-registry/prompt-templates-api.js +98 -0
  10. package/dist/client/prompt-registry/prompt-templates-api.js.map +1 -0
  11. package/dist/client/prompt-registry/schema/chat-completion-tool.d.ts +12 -0
  12. package/dist/client/prompt-registry/schema/chat-completion-tool.d.ts.map +1 -0
  13. package/dist/client/prompt-registry/schema/chat-completion-tool.js +2 -0
  14. package/dist/client/prompt-registry/schema/chat-completion-tool.js.map +1 -0
  15. package/dist/client/prompt-registry/schema/error-response.d.ts +8 -0
  16. package/dist/client/prompt-registry/schema/error-response.d.ts.map +1 -0
  17. package/dist/client/prompt-registry/schema/error-response.js +7 -0
  18. package/dist/client/prompt-registry/schema/error-response.js.map +1 -0
  19. package/dist/client/prompt-registry/schema/function-object.d.ts +22 -0
  20. package/dist/client/prompt-registry/schema/function-object.d.ts.map +1 -0
  21. package/dist/client/prompt-registry/schema/function-object.js +2 -0
  22. package/dist/client/prompt-registry/schema/function-object.js.map +1 -0
  23. package/dist/client/prompt-registry/schema/function-parameters.d.ts +5 -0
  24. package/dist/client/prompt-registry/schema/function-parameters.d.ts.map +1 -0
  25. package/dist/client/prompt-registry/schema/function-parameters.js +7 -0
  26. package/dist/client/prompt-registry/schema/function-parameters.js.map +1 -0
  27. package/dist/client/prompt-registry/schema/image-content.d.ts +14 -0
  28. package/dist/client/prompt-registry/schema/image-content.d.ts.map +1 -0
  29. package/dist/client/prompt-registry/schema/image-content.js +7 -0
  30. package/dist/client/prompt-registry/schema/image-content.js.map +1 -0
  31. package/dist/client/prompt-registry/schema/index.d.ts +24 -0
  32. package/dist/client/prompt-registry/schema/index.d.ts.map +1 -0
  33. package/dist/client/prompt-registry/schema/index.js +29 -0
  34. package/dist/client/prompt-registry/schema/index.js.map +1 -0
  35. package/dist/client/prompt-registry/schema/multi-chat-content.d.ts +7 -0
  36. package/dist/client/prompt-registry/schema/multi-chat-content.d.ts.map +1 -0
  37. package/dist/client/prompt-registry/schema/multi-chat-content.js +2 -0
  38. package/dist/client/prompt-registry/schema/multi-chat-content.js.map +1 -0
  39. package/dist/client/prompt-registry/schema/multi-chat-template.d.ts +9 -0
  40. package/dist/client/prompt-registry/schema/multi-chat-template.d.ts.map +1 -0
  41. package/dist/client/prompt-registry/schema/multi-chat-template.js +2 -0
  42. package/dist/client/prompt-registry/schema/multi-chat-template.js.map +1 -0
  43. package/dist/client/prompt-registry/schema/prompt-template-delete-response.d.ts +7 -0
  44. package/dist/client/prompt-registry/schema/prompt-template-delete-response.d.ts.map +1 -0
  45. package/dist/client/prompt-registry/schema/prompt-template-delete-response.js +7 -0
  46. package/dist/client/prompt-registry/schema/prompt-template-delete-response.js.map +1 -0
  47. package/dist/client/prompt-registry/schema/prompt-template-get-response.d.ts +21 -0
  48. package/dist/client/prompt-registry/schema/prompt-template-get-response.d.ts.map +1 -0
  49. package/dist/client/prompt-registry/schema/prompt-template-get-response.js +2 -0
  50. package/dist/client/prompt-registry/schema/prompt-template-get-response.js.map +1 -0
  51. package/dist/client/prompt-registry/schema/prompt-template-list-response.d.ts +9 -0
  52. package/dist/client/prompt-registry/schema/prompt-template-list-response.d.ts.map +1 -0
  53. package/dist/client/prompt-registry/schema/prompt-template-list-response.js +2 -0
  54. package/dist/client/prompt-registry/schema/prompt-template-list-response.js.map +1 -0
  55. package/dist/client/prompt-registry/schema/prompt-template-post-request.d.ts +20 -0
  56. package/dist/client/prompt-registry/schema/prompt-template-post-request.d.ts.map +1 -0
  57. package/dist/client/prompt-registry/schema/prompt-template-post-request.js +2 -0
  58. package/dist/client/prompt-registry/schema/prompt-template-post-request.js.map +1 -0
  59. package/dist/client/prompt-registry/schema/prompt-template-post-response.d.ts +14 -0
  60. package/dist/client/prompt-registry/schema/prompt-template-post-response.d.ts.map +1 -0
  61. package/dist/client/prompt-registry/schema/prompt-template-post-response.js +7 -0
  62. package/dist/client/prompt-registry/schema/prompt-template-post-response.js.map +1 -0
  63. package/dist/client/prompt-registry/schema/prompt-template-spec.d.ts +25 -0
  64. package/dist/client/prompt-registry/schema/prompt-template-spec.d.ts.map +1 -0
  65. package/dist/client/prompt-registry/schema/prompt-template-spec.js +2 -0
  66. package/dist/client/prompt-registry/schema/prompt-template-spec.js.map +1 -0
  67. package/dist/client/prompt-registry/schema/prompt-template-substitution-request.d.ts +7 -0
  68. package/dist/client/prompt-registry/schema/prompt-template-substitution-request.d.ts.map +1 -0
  69. package/dist/client/prompt-registry/schema/prompt-template-substitution-request.js +7 -0
  70. package/dist/client/prompt-registry/schema/prompt-template-substitution-request.js.map +1 -0
  71. package/dist/client/prompt-registry/schema/prompt-template-substitution-response.d.ts +10 -0
  72. package/dist/client/prompt-registry/schema/prompt-template-substitution-response.d.ts.map +1 -0
  73. package/dist/client/prompt-registry/schema/prompt-template-substitution-response.js +2 -0
  74. package/dist/client/prompt-registry/schema/prompt-template-substitution-response.js.map +1 -0
  75. package/dist/client/prompt-registry/schema/response-format-json-object.d.ts +10 -0
  76. package/dist/client/prompt-registry/schema/response-format-json-object.d.ts.map +1 -0
  77. package/dist/client/prompt-registry/schema/response-format-json-object.js +7 -0
  78. package/dist/client/prompt-registry/schema/response-format-json-object.js.map +1 -0
  79. package/dist/client/prompt-registry/schema/response-format-json-schema-schema.d.ts +5 -0
  80. package/dist/client/prompt-registry/schema/response-format-json-schema-schema.d.ts.map +1 -0
  81. package/dist/client/prompt-registry/schema/response-format-json-schema-schema.js +7 -0
  82. package/dist/client/prompt-registry/schema/response-format-json-schema-schema.js.map +1 -0
  83. package/dist/client/prompt-registry/schema/response-format-json-schema.d.ts +28 -0
  84. package/dist/client/prompt-registry/schema/response-format-json-schema.d.ts.map +1 -0
  85. package/dist/client/prompt-registry/schema/response-format-json-schema.js +2 -0
  86. package/dist/client/prompt-registry/schema/response-format-json-schema.js.map +1 -0
  87. package/dist/client/prompt-registry/schema/response-format-text.d.ts +10 -0
  88. package/dist/client/prompt-registry/schema/response-format-text.d.ts.map +1 -0
  89. package/dist/client/prompt-registry/schema/response-format-text.js +7 -0
  90. package/dist/client/prompt-registry/schema/response-format-text.js.map +1 -0
  91. package/dist/client/prompt-registry/schema/runtime-prompt-template-file.d.ts +15 -0
  92. package/dist/client/prompt-registry/schema/runtime-prompt-template-file.d.ts.map +1 -0
  93. package/dist/client/prompt-registry/schema/runtime-prompt-template-file.js +2 -0
  94. package/dist/client/prompt-registry/schema/runtime-prompt-template-file.js.map +1 -0
  95. package/dist/client/prompt-registry/schema/single-chat-template.d.ts +8 -0
  96. package/dist/client/prompt-registry/schema/single-chat-template.d.ts.map +1 -0
  97. package/dist/client/prompt-registry/schema/single-chat-template.js +7 -0
  98. package/dist/client/prompt-registry/schema/single-chat-template.js.map +1 -0
  99. package/dist/client/prompt-registry/schema/template.d.ts +7 -0
  100. package/dist/client/prompt-registry/schema/template.d.ts.map +1 -0
  101. package/dist/client/prompt-registry/schema/template.js +2 -0
  102. package/dist/client/prompt-registry/schema/template.js.map +1 -0
  103. package/dist/client/prompt-registry/schema/text-content.d.ts +8 -0
  104. package/dist/client/prompt-registry/schema/text-content.d.ts.map +1 -0
  105. package/dist/client/prompt-registry/schema/text-content.js +7 -0
  106. package/dist/client/prompt-registry/schema/text-content.js.map +1 -0
  107. package/dist/index.d.ts +2 -0
  108. package/dist/index.d.ts.map +1 -0
  109. package/dist/index.js +2 -0
  110. package/dist/index.js.map +1 -0
  111. package/dist/internal.d.ts +2 -0
  112. package/dist/internal.d.ts.map +1 -0
  113. package/dist/internal.js +2 -0
  114. package/dist/internal.js.map +1 -0
  115. package/internal.d.ts +2 -0
  116. package/internal.js +2 -0
  117. package/package.json +34 -0
@@ -0,0 +1,24 @@
1
+ export * from './template.js';
2
+ export * from './single-chat-template.js';
3
+ export * from './multi-chat-template.js';
4
+ export * from './multi-chat-content.js';
5
+ export * from './text-content.js';
6
+ export * from './image-content.js';
7
+ export * from './prompt-template-spec.js';
8
+ export * from './response-format-text.js';
9
+ export * from './response-format-json-object.js';
10
+ export * from './response-format-json-schema.js';
11
+ export * from './response-format-json-schema-schema.js';
12
+ export * from './chat-completion-tool.js';
13
+ export * from './function-object.js';
14
+ export * from './function-parameters.js';
15
+ export * from './prompt-template-post-request.js';
16
+ export * from './prompt-template-post-response.js';
17
+ export * from './prompt-template-get-response.js';
18
+ export * from './prompt-template-list-response.js';
19
+ export * from './prompt-template-delete-response.js';
20
+ export * from './runtime-prompt-template-file.js';
21
+ export * from './prompt-template-substitution-request.js';
22
+ export * from './prompt-template-substitution-response.js';
23
+ export * from './error-response.js';
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/index.ts"],"names":[],"mappings":"AAKA,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,29 @@
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
+ export * from './template.js';
7
+ export * from './single-chat-template.js';
8
+ export * from './multi-chat-template.js';
9
+ export * from './multi-chat-content.js';
10
+ export * from './text-content.js';
11
+ export * from './image-content.js';
12
+ export * from './prompt-template-spec.js';
13
+ export * from './response-format-text.js';
14
+ export * from './response-format-json-object.js';
15
+ export * from './response-format-json-schema.js';
16
+ export * from './response-format-json-schema-schema.js';
17
+ export * from './chat-completion-tool.js';
18
+ export * from './function-object.js';
19
+ export * from './function-parameters.js';
20
+ export * from './prompt-template-post-request.js';
21
+ export * from './prompt-template-post-response.js';
22
+ export * from './prompt-template-get-response.js';
23
+ export * from './prompt-template-list-response.js';
24
+ export * from './prompt-template-delete-response.js';
25
+ export * from './runtime-prompt-template-file.js';
26
+ export * from './prompt-template-substitution-request.js';
27
+ export * from './prompt-template-substitution-response.js';
28
+ export * from './error-response.js';
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ImageContent } from './image-content.js';
2
+ import type { TextContent } from './text-content.js';
3
+ /**
4
+ * Representation of the 'MultiChatContent' schema.
5
+ */
6
+ export type MultiChatContent = ImageContent | TextContent;
7
+ //# sourceMappingURL=multi-chat-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-chat-content.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/multi-chat-content.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=multi-chat-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-chat-content.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/multi-chat-content.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import type { MultiChatContent } from './multi-chat-content.js';
2
+ /**
3
+ * Representation of the 'MultiChatTemplate' schema.
4
+ */
5
+ export type MultiChatTemplate = {
6
+ role: string;
7
+ content: MultiChatContent[];
8
+ };
9
+ //# sourceMappingURL=multi-chat-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-chat-template.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/multi-chat-template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=multi-chat-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi-chat-template.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/multi-chat-template.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Representation of the 'PromptTemplateDeleteResponse' schema.
3
+ */
4
+ export type PromptTemplateDeleteResponse = {
5
+ message: string;
6
+ } & Record<string, any>;
7
+ //# sourceMappingURL=prompt-template-delete-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-delete-response.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-delete-response.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=prompt-template-delete-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-delete-response.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-delete-response.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,21 @@
1
+ import type { PromptTemplateSpec } from './prompt-template-spec.js';
2
+ /**
3
+ * Representation of the 'PromptTemplateGetResponse' schema.
4
+ */
5
+ export type PromptTemplateGetResponse = {
6
+ /**
7
+ * Format: "uuid".
8
+ */
9
+ id?: string;
10
+ name?: string;
11
+ version?: string;
12
+ scenario?: string;
13
+ /**
14
+ * Format: "timestamp".
15
+ */
16
+ creationTimestamp?: string;
17
+ managedBy?: string;
18
+ isVersionHead?: boolean;
19
+ spec?: PromptTemplateSpec;
20
+ } & Record<string, any>;
21
+ //# sourceMappingURL=prompt-template-get-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-get-response.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-get-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=prompt-template-get-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-get-response.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-get-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import type { PromptTemplateGetResponse } from './prompt-template-get-response.js';
2
+ /**
3
+ * Representation of the 'PromptTemplateListResponse' schema.
4
+ */
5
+ export type PromptTemplateListResponse = {
6
+ count: number;
7
+ resources: PromptTemplateGetResponse[];
8
+ } & Record<string, any>;
9
+ //# sourceMappingURL=prompt-template-list-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-list-response.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-list-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,yBAAyB,EAAE,CAAC;CACxC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=prompt-template-list-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-list-response.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-list-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { PromptTemplateSpec } from './prompt-template-spec.js';
2
+ /**
3
+ * Representation of the 'PromptTemplatePostRequest' schema.
4
+ */
5
+ export type PromptTemplatePostRequest = {
6
+ /**
7
+ * Max Length: 120.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Max Length: 10.
12
+ */
13
+ version: string;
14
+ /**
15
+ * Max Length: 120.
16
+ */
17
+ scenario: string;
18
+ spec: PromptTemplateSpec;
19
+ } & Record<string, any>;
20
+ //# sourceMappingURL=prompt-template-post-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-post-request.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-post-request.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,kBAAkB,CAAC;CAC1B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=prompt-template-post-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-post-request.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-post-request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Representation of the 'PromptTemplatePostResponse' schema.
3
+ */
4
+ export type PromptTemplatePostResponse = {
5
+ message: string;
6
+ /**
7
+ * Format: "uuid".
8
+ */
9
+ id: string;
10
+ scenario: string;
11
+ name: string;
12
+ version: string;
13
+ } & Record<string, any>;
14
+ //# sourceMappingURL=prompt-template-post-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-post-response.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-post-response.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=prompt-template-post-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-post-response.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-post-response.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,25 @@
1
+ import type { Template } from './template.js';
2
+ import type { ResponseFormatText } from './response-format-text.js';
3
+ import type { ResponseFormatJsonObject } from './response-format-json-object.js';
4
+ import type { ResponseFormatJsonSchema } from './response-format-json-schema.js';
5
+ import type { ChatCompletionTool } from './chat-completion-tool.js';
6
+ /**
7
+ * Representation of the 'PromptTemplateSpec' schema.
8
+ */
9
+ export type PromptTemplateSpec = {
10
+ template: Template[];
11
+ defaults?: Record<string, any>;
12
+ additionalFields?: Record<string, any>;
13
+ /**
14
+ * Response format that the model output should adhere to. This is the same as the OpenAI definition.
15
+ * Compatible with GPT-4o, GPT-4o mini, GPT-4 (Turbo) and all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106.
16
+ *
17
+ */
18
+ response_format?: ResponseFormatText | ResponseFormatJsonObject | ResponseFormatJsonSchema;
19
+ /**
20
+ * A list of tools the model may call. Used to provide a list of functions the model may generate JSON inputs for. This is the same as the OpenAI definition.
21
+ *
22
+ */
23
+ tools?: ChatCompletionTool[];
24
+ } & Record<string, any>;
25
+ //# sourceMappingURL=prompt-template-spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-spec.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-spec.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC;;;;OAIG;IACH,eAAe,CAAC,EACZ,kBAAkB,GAClB,wBAAwB,GACxB,wBAAwB,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC9B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=prompt-template-spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-spec.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Representation of the 'PromptTemplateSubstitutionRequest' schema.
3
+ */
4
+ export type PromptTemplateSubstitutionRequest = {
5
+ inputParams?: Record<string, any>;
6
+ } & Record<string, any>;
7
+ //# sourceMappingURL=prompt-template-substitution-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-substitution-request.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-substitution-request.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=prompt-template-substitution-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-substitution-request.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-substitution-request.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,10 @@
1
+ import type { Template } from './template.js';
2
+ import type { PromptTemplateGetResponse } from './prompt-template-get-response.js';
3
+ /**
4
+ * Representation of the 'PromptTemplateSubstitutionResponse' schema.
5
+ */
6
+ export type PromptTemplateSubstitutionResponse = {
7
+ parsedPrompt?: Template[];
8
+ resource?: PromptTemplateGetResponse;
9
+ } & Record<string, any>;
10
+ //# sourceMappingURL=prompt-template-substitution-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-substitution-response.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-substitution-response.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACtC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=prompt-template-substitution-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-template-substitution-response.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/prompt-template-substitution-response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Representation of the 'ResponseFormatJsonObject' schema.
3
+ */
4
+ export type ResponseFormatJsonObject = {
5
+ /**
6
+ * The type of response format being defined: `json_object`
7
+ */
8
+ type: 'json_object';
9
+ };
10
+ //# sourceMappingURL=response-format-json-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-format-json-object.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/response-format-json-object.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB,CAAC"}
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=response-format-json-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-format-json-object.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/response-format-json-object.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The schema for the response format, described as a JSON Schema object.
3
+ */
4
+ export type ResponseFormatJsonSchemaSchema = Record<string, any>;
5
+ //# sourceMappingURL=response-format-json-schema-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-format-json-schema-schema.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/response-format-json-schema-schema.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=response-format-json-schema-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-format-json-schema-schema.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/response-format-json-schema-schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,28 @@
1
+ import type { ResponseFormatJsonSchemaSchema } from './response-format-json-schema-schema.js';
2
+ /**
3
+ * Representation of the 'ResponseFormatJsonSchema' schema.
4
+ */
5
+ export type ResponseFormatJsonSchema = {
6
+ /**
7
+ * The type of response format being defined: `json_schema`
8
+ */
9
+ type: 'json_schema';
10
+ json_schema: {
11
+ /**
12
+ * A description of what the response format is for, used by the model to determine how to respond in the format.
13
+ */
14
+ description?: string;
15
+ /**
16
+ * The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
17
+ * Max Length: 64.
18
+ * Pattern: "^[a-zA-Z0-9-_]+$".
19
+ */
20
+ name: string;
21
+ schema?: ResponseFormatJsonSchemaSchema;
22
+ /**
23
+ * Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. To learn more, read the [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
24
+ */
25
+ strict?: boolean | null;
26
+ };
27
+ };
28
+ //# sourceMappingURL=response-format-json-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-format-json-schema.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/response-format-json-schema.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAC9F;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,EAAE;QACX;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;;;WAIG;QACH,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,8BAA8B,CAAC;QACxC;;WAEG;QACH,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;KACzB,CAAC;CACH,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=response-format-json-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-format-json-schema.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/response-format-json-schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Representation of the 'ResponseFormatText' schema.
3
+ */
4
+ export type ResponseFormatText = {
5
+ /**
6
+ * The type of response format being defined: `text`
7
+ */
8
+ type: 'text';
9
+ };
10
+ //# sourceMappingURL=response-format-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-format-text.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/response-format-text.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=response-format-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-format-text.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/response-format-text.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,15 @@
1
+ import type { PromptTemplateSpec } from './prompt-template-spec.js';
2
+ /**
3
+ * Representation of the 'RuntimePromptTemplateFile' schema.
4
+ */
5
+ export type RuntimePromptTemplateFile = {
6
+ apiVersion?: string;
7
+ kind?: string;
8
+ metadata?: {
9
+ name?: string;
10
+ version?: string;
11
+ scenario?: string;
12
+ } & Record<string, any>;
13
+ spec?: PromptTemplateSpec;
14
+ } & Record<string, any>;
15
+ //# sourceMappingURL=runtime-prompt-template-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-prompt-template-file.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/runtime-prompt-template-file.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxB,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=runtime-prompt-template-file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-prompt-template-file.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/runtime-prompt-template-file.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Representation of the 'SingleChatTemplate' schema.
3
+ */
4
+ export type SingleChatTemplate = {
5
+ role: string;
6
+ content: string;
7
+ };
8
+ //# sourceMappingURL=single-chat-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-chat-template.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/single-chat-template.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=single-chat-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"single-chat-template.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/single-chat-template.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,7 @@
1
+ import type { SingleChatTemplate } from './single-chat-template.js';
2
+ import type { MultiChatTemplate } from './multi-chat-template.js';
3
+ /**
4
+ * Representation of the 'Template' schema.
5
+ */
6
+ export type Template = SingleChatTemplate | MultiChatTemplate;
7
+ //# sourceMappingURL=template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,kBAAkB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/template.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Representation of the 'TextContent' schema.
3
+ */
4
+ export type TextContent = {
5
+ type: 'text';
6
+ text: string;
7
+ };
8
+ //# sourceMappingURL=text-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-content.d.ts","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/text-content.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,7 @@
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
+ export {};
7
+ //# sourceMappingURL=text-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-content.js","sourceRoot":"","sources":["../../../../src/client/prompt-registry/schema/text-content.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,2 @@
1
+ export * from './client/prompt-registry/index.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './client/prompt-registry/index.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './client/prompt-registry/index.js';
2
+ //# sourceMappingURL=internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './client/prompt-registry/index.js';
2
+ //# sourceMappingURL=internal.js.map