Skip to content

Commit 0bf4b7d

Browse files
Merge pull request #27 from prompt-foundry/release-please--branches--main--changes--next--components--typescript-sdk
release: 1.5.0
2 parents 1afab53 + c973744 commit 0bf4b7d

File tree

9 files changed

+80
-51
lines changed

9 files changed

+80
-51
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.4.0"
2+
".": "1.5.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 21
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-e2cae3fe1d0a839dbd41f4120ff919c13c241c083c00c50f9ce005f8709bd447.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-f5886a3736b6bd1bfb39dfe79ed98e15ca62147af86bc8dcbffb6106877c6b95.yml

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## 1.5.0 (2024-06-16)
4+
5+
Full Changelog: [v1.4.0...v1.5.0](https://github.com/prompt-foundry/typescript-sdk/compare/v1.4.0...v1.5.0)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update via Stainless API ([#26](https://github.com/prompt-foundry/typescript-sdk/issues/26)) ([779e665](https://github.com/prompt-foundry/typescript-sdk/commit/779e66597e79a6c2b09f6158af285c71ce2a3f78))
10+
* **api:** OpenAPI spec update via Stainless API ([#28](https://github.com/prompt-foundry/typescript-sdk/issues/28)) ([26bce7f](https://github.com/prompt-foundry/typescript-sdk/commit/26bce7fb09559f2f1122fda6aca8e137666f71dd))
11+
* **api:** OpenAPI spec update via Stainless API ([#29](https://github.com/prompt-foundry/typescript-sdk/issues/29)) ([0e5cd4c](https://github.com/prompt-foundry/typescript-sdk/commit/0e5cd4cd6eea9b2163dda9e1b5bfe94622f6ed50))
12+
* **api:** OpenAPI spec update via Stainless API ([#30](https://github.com/prompt-foundry/typescript-sdk/issues/30)) ([b421ceb](https://github.com/prompt-foundry/typescript-sdk/commit/b421ceb13bcc430792da099c8df5ac472a52943f))
13+
* **api:** OpenAPI spec update via Stainless API ([#31](https://github.com/prompt-foundry/typescript-sdk/issues/31)) ([c0c12ac](https://github.com/prompt-foundry/typescript-sdk/commit/c0c12acc81462901689883d05f9b9b3fe04e6f8e))
14+
* **api:** OpenAPI spec update via Stainless API ([#32](https://github.com/prompt-foundry/typescript-sdk/issues/32)) ([ffa0e45](https://github.com/prompt-foundry/typescript-sdk/commit/ffa0e45fb343b88108c9cfeea75ea126d688ad26))
15+
* **api:** OpenAPI spec update via Stainless API ([#34](https://github.com/prompt-foundry/typescript-sdk/issues/34)) ([d861801](https://github.com/prompt-foundry/typescript-sdk/commit/d8618015c4dc4f9d0c403ade5b9ea738241710af))
16+
* **api:** OpenAPI spec update via Stainless API ([#35](https://github.com/prompt-foundry/typescript-sdk/issues/35)) ([ec115a7](https://github.com/prompt-foundry/typescript-sdk/commit/ec115a710be77e75883c792b3e71292d9851e53a))
17+
* **api:** OpenAPI spec update via Stainless API ([#36](https://github.com/prompt-foundry/typescript-sdk/issues/36)) ([31babcf](https://github.com/prompt-foundry/typescript-sdk/commit/31babcf0f9c48f186bc3903a15c8720a8b242360))
18+
* **api:** OpenAPI spec update via Stainless API ([#37](https://github.com/prompt-foundry/typescript-sdk/issues/37)) ([bd3daa3](https://github.com/prompt-foundry/typescript-sdk/commit/bd3daa3304f861ea3c50d6875c85b1c591a6122c))
19+
* **api:** OpenAPI spec update via Stainless API ([#38](https://github.com/prompt-foundry/typescript-sdk/issues/38)) ([1402f2f](https://github.com/prompt-foundry/typescript-sdk/commit/1402f2f161db75c70d52c678598a8250fe47660a))
20+
* **api:** OpenAPI spec update via Stainless API ([#39](https://github.com/prompt-foundry/typescript-sdk/issues/39)) ([c90c017](https://github.com/prompt-foundry/typescript-sdk/commit/c90c0179d866de0bdaee46b8dfbb7c21b64ba45c))
21+
* **api:** OpenAPI spec update via Stainless API ([#40](https://github.com/prompt-foundry/typescript-sdk/issues/40)) ([440a1ef](https://github.com/prompt-foundry/typescript-sdk/commit/440a1efbf06b08f14cbc6a18310557c0d51f6c78))
22+
* **api:** OpenAPI spec update via Stainless API ([#41](https://github.com/prompt-foundry/typescript-sdk/issues/41)) ([a179686](https://github.com/prompt-foundry/typescript-sdk/commit/a179686ebdfd5e4a7f44ce6eb8095f45de4c8602))
23+
* **api:** OpenAPI spec update via Stainless API ([#42](https://github.com/prompt-foundry/typescript-sdk/issues/42)) ([656da5d](https://github.com/prompt-foundry/typescript-sdk/commit/656da5d02c88ed2274a629950b79e5ca82440854))
24+
* **api:** OpenAPI spec update via Stainless API ([#43](https://github.com/prompt-foundry/typescript-sdk/issues/43)) ([1d62298](https://github.com/prompt-foundry/typescript-sdk/commit/1d6229875603fd3f4d593d0842e36d996646062e))
25+
* **api:** OpenAPI spec update via Stainless API ([#44](https://github.com/prompt-foundry/typescript-sdk/issues/44)) ([a06c11e](https://github.com/prompt-foundry/typescript-sdk/commit/a06c11e65c29567fd4422913c37a286459933cd1))
26+
* **api:** OpenAPI spec update via Stainless API ([#45](https://github.com/prompt-foundry/typescript-sdk/issues/45)) ([03801e8](https://github.com/prompt-foundry/typescript-sdk/commit/03801e88e3037bfcbe1ae2346aed19905399602b))
27+
* **api:** OpenAPI spec update via Stainless API ([#46](https://github.com/prompt-foundry/typescript-sdk/issues/46)) ([45c2688](https://github.com/prompt-foundry/typescript-sdk/commit/45c2688bc4892d68e4677d44e0d6e956607b7ba7))
28+
* **api:** OpenAPI spec update via Stainless API ([#47](https://github.com/prompt-foundry/typescript-sdk/issues/47)) ([09b0213](https://github.com/prompt-foundry/typescript-sdk/commit/09b021396337afc3ac65ab8909fb5adb777f0c26))
29+
* **api:** update via SDK Studio ([#33](https://github.com/prompt-foundry/typescript-sdk/issues/33)) ([713c110](https://github.com/prompt-foundry/typescript-sdk/commit/713c110d476a85e3e96f85502a68c6690f299f7f))
30+
331
## 1.4.0 (2024-06-14)
432

533
Full Changelog: [v1.3.0...v1.4.0](https://github.com/prompt-foundry/typescript-sdk/compare/v1.3.0...v1.4.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@prompt-foundry/typescript-sdk",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "The official TypeScript library for the Prompt Foundry API",
55
"author": "Prompt Foundry <dev-feedback@promptfoundry.ai>",
66
"types": "dist/index.d.ts",

src/resources/evaluations.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export namespace Evaluation {
7171
*/
7272
content: string | null;
7373

74-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
74+
role: 'user' | 'assistant' | 'system' | 'tool';
7575

7676
toolCallId: string | null;
7777

@@ -142,7 +142,7 @@ export namespace EvaluationCreateParams {
142142
*/
143143
content: string | null;
144144

145-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
145+
role: 'user' | 'assistant' | 'system' | 'tool';
146146

147147
toolCallId: string | null;
148148

@@ -207,7 +207,7 @@ export namespace EvaluationUpdateParams {
207207
*/
208208
content: string | null;
209209

210-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
210+
role: 'user' | 'assistant' | 'system' | 'tool';
211211

212212
toolCallId: string | null;
213213

src/resources/prompts.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export namespace PromptConfiguration {
291291
*/
292292
content: string | null;
293293

294-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
294+
role: 'user' | 'assistant' | 'system' | 'tool';
295295

296296
toolCallId: string | null;
297297

@@ -362,14 +362,13 @@ export namespace PromptConfiguration {
362362
*/
363363
seed: number | null;
364364

365+
stream: boolean;
366+
365367
/**
366368
* Example: 1
367369
*/
368370
temperature: number;
369371

370-
/**
371-
* Example: "checkWeather"
372-
*/
373372
toolChoice: string | null;
374373

375374
/**
@@ -431,7 +430,7 @@ export namespace PromptCreateParams {
431430
*/
432431
content: string | null;
433432

434-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
433+
role: 'user' | 'assistant' | 'system' | 'tool';
435434

436435
toolCallId: string | null;
437436

@@ -502,14 +501,13 @@ export namespace PromptCreateParams {
502501
*/
503502
seed: number | null;
504503

504+
stream: boolean;
505+
505506
/**
506507
* Example: 1
507508
*/
508509
temperature: number;
509510

510-
/**
511-
* Example: "checkWeather"
512-
*/
513511
toolChoice: string | null;
514512

515513
/**
@@ -543,7 +541,7 @@ export namespace PromptUpdateParams {
543541
*/
544542
content: string | null;
545543

546-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
544+
role: 'user' | 'assistant' | 'system' | 'tool';
547545

548546
toolCallId: string | null;
549547

@@ -614,14 +612,13 @@ export namespace PromptUpdateParams {
614612
*/
615613
seed: number | null;
616614

615+
stream: boolean;
616+
617617
/**
618618
* Example: 1
619619
*/
620620
temperature: number;
621621

622-
/**
623-
* Example: "checkWeather"
624-
*/
625622
toolChoice: string | null;
626623

627624
/**
@@ -669,7 +666,7 @@ export namespace PromptGetParametersParams {
669666
*/
670667
content: string | null;
671668

672-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
669+
role: 'user' | 'assistant' | 'system' | 'tool';
673670

674671
toolCallId: string | null;
675672

@@ -718,7 +715,7 @@ export namespace PromptGetParametersParams {
718715
*/
719716
content: string | null;
720717

721-
role: 'USER' | 'ASSISTANT' | 'SYSTEM' | 'TOOL';
718+
role: 'user' | 'assistant' | 'system' | 'tool';
722719

723720
toolCallId: string | null;
724721

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '1.4.0'; // x-release-please-version
1+
export const VERSION = '1.5.0'; // x-release-please-version

tests/api-resources/evaluations.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('resource evaluations', () => {
1414
appendedMessages: [
1515
{
1616
content: 'string',
17-
role: 'USER',
17+
role: 'user',
1818
toolCallId: 'string',
1919
toolCalls: [
2020
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -24,7 +24,7 @@ describe('resource evaluations', () => {
2424
},
2525
{
2626
content: 'string',
27-
role: 'USER',
27+
role: 'user',
2828
toolCallId: 'string',
2929
toolCalls: [
3030
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -34,7 +34,7 @@ describe('resource evaluations', () => {
3434
},
3535
{
3636
content: 'string',
37-
role: 'USER',
37+
role: 'user',
3838
toolCallId: 'string',
3939
toolCalls: [
4040
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -60,7 +60,7 @@ describe('resource evaluations', () => {
6060
appendedMessages: [
6161
{
6262
content: 'string',
63-
role: 'USER',
63+
role: 'user',
6464
toolCallId: 'string',
6565
toolCalls: [
6666
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -70,7 +70,7 @@ describe('resource evaluations', () => {
7070
},
7171
{
7272
content: 'string',
73-
role: 'USER',
73+
role: 'user',
7474
toolCallId: 'string',
7575
toolCalls: [
7676
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -80,7 +80,7 @@ describe('resource evaluations', () => {
8080
},
8181
{
8282
content: 'string',
83-
role: 'USER',
83+
role: 'user',
8484
toolCallId: 'string',
8585
toolCalls: [
8686
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -99,7 +99,7 @@ describe('resource evaluations', () => {
9999
appendedMessages: [
100100
{
101101
content: 'string',
102-
role: 'USER',
102+
role: 'user',
103103
toolCallId: 'string',
104104
toolCalls: [
105105
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -109,7 +109,7 @@ describe('resource evaluations', () => {
109109
},
110110
{
111111
content: 'string',
112-
role: 'USER',
112+
role: 'user',
113113
toolCallId: 'string',
114114
toolCalls: [
115115
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -119,7 +119,7 @@ describe('resource evaluations', () => {
119119
},
120120
{
121121
content: 'string',
122-
role: 'USER',
122+
role: 'user',
123123
toolCallId: 'string',
124124
toolCalls: [
125125
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -145,7 +145,7 @@ describe('resource evaluations', () => {
145145
appendedMessages: [
146146
{
147147
content: 'string',
148-
role: 'USER',
148+
role: 'user',
149149
toolCallId: 'string',
150150
toolCalls: [
151151
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -155,7 +155,7 @@ describe('resource evaluations', () => {
155155
},
156156
{
157157
content: 'string',
158-
role: 'USER',
158+
role: 'user',
159159
toolCallId: 'string',
160160
toolCalls: [
161161
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },
@@ -165,7 +165,7 @@ describe('resource evaluations', () => {
165165
},
166166
{
167167
content: 'string',
168-
role: 'USER',
168+
role: 'user',
169169
toolCallId: 'string',
170170
toolCalls: [
171171
{ toolCallId: 'string', type: 'function', function: { arguments: 'string', name: 'string' } },

0 commit comments

Comments
 (0)