Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f5bbcb0

Browse files
committedFeb 15, 2025·
SDK regeneration
1 parent b850281 commit f5bbcb0

File tree

16 files changed

+188
-167
lines changed

16 files changed

+188
-167
lines changed
 

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@credal/sdk",
3-
"version": "0.0.21",
3+
"version": "0.0.22",
44
"private": false,
55
"repository": "https://github.com/credal-ai/credal-typescript-sdk",
66
"main": "./index.js",

‎src/api/resources/actions/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export class Actions {
6666
Authorization: await this._getAuthorizationHeader(),
6767
"X-Fern-Language": "JavaScript",
6868
"X-Fern-SDK-Name": "@credal/sdk",
69-
"X-Fern-SDK-Version": "0.0.21",
70-
"User-Agent": "@credal/sdk/0.0.21",
69+
"X-Fern-SDK-Version": "0.0.22",
70+
"User-Agent": "@credal/sdk/0.0.22",
7171
"X-Fern-Runtime": core.RUNTIME.type,
7272
"X-Fern-Runtime-Version": core.RUNTIME.version,
7373
},

‎src/api/resources/copilots/client/Client.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export class Copilots {
6060
Authorization: await this._getAuthorizationHeader(),
6161
"X-Fern-Language": "JavaScript",
6262
"X-Fern-SDK-Name": "@credal/sdk",
63-
"X-Fern-SDK-Version": "0.0.21",
64-
"User-Agent": "@credal/sdk/0.0.21",
63+
"X-Fern-SDK-Version": "0.0.22",
64+
"User-Agent": "@credal/sdk/0.0.22",
6565
"X-Fern-Runtime": core.RUNTIME.type,
6666
"X-Fern-Runtime-Version": core.RUNTIME.version,
6767
},
@@ -129,8 +129,8 @@ export class Copilots {
129129
Authorization: await this._getAuthorizationHeader(),
130130
"X-Fern-Language": "JavaScript",
131131
"X-Fern-SDK-Name": "@credal/sdk",
132-
"X-Fern-SDK-Version": "0.0.21",
133-
"User-Agent": "@credal/sdk/0.0.21",
132+
"X-Fern-SDK-Version": "0.0.22",
133+
"User-Agent": "@credal/sdk/0.0.22",
134134
"X-Fern-Runtime": core.RUNTIME.type,
135135
"X-Fern-Runtime-Version": core.RUNTIME.version,
136136
},
@@ -202,8 +202,8 @@ export class Copilots {
202202
Authorization: await this._getAuthorizationHeader(),
203203
"X-Fern-Language": "JavaScript",
204204
"X-Fern-SDK-Name": "@credal/sdk",
205-
"X-Fern-SDK-Version": "0.0.21",
206-
"User-Agent": "@credal/sdk/0.0.21",
205+
"X-Fern-SDK-Version": "0.0.22",
206+
"User-Agent": "@credal/sdk/0.0.22",
207207
"X-Fern-Runtime": core.RUNTIME.type,
208208
"X-Fern-Runtime-Version": core.RUNTIME.version,
209209
},
@@ -272,8 +272,8 @@ export class Copilots {
272272
Authorization: await this._getAuthorizationHeader(),
273273
"X-Fern-Language": "JavaScript",
274274
"X-Fern-SDK-Name": "@credal/sdk",
275-
"X-Fern-SDK-Version": "0.0.21",
276-
"User-Agent": "@credal/sdk/0.0.21",
275+
"X-Fern-SDK-Version": "0.0.22",
276+
"User-Agent": "@credal/sdk/0.0.22",
277277
"X-Fern-Runtime": core.RUNTIME.type,
278278
"X-Fern-Runtime-Version": core.RUNTIME.version,
279279
},
@@ -332,8 +332,8 @@ export class Copilots {
332332
Authorization: await this._getAuthorizationHeader(),
333333
"X-Fern-Language": "JavaScript",
334334
"X-Fern-SDK-Name": "@credal/sdk",
335-
"X-Fern-SDK-Version": "0.0.21",
336-
"User-Agent": "@credal/sdk/0.0.21",
335+
"X-Fern-SDK-Version": "0.0.22",
336+
"User-Agent": "@credal/sdk/0.0.22",
337337
"X-Fern-Runtime": core.RUNTIME.type,
338338
"X-Fern-Runtime-Version": core.RUNTIME.version,
339339
},
@@ -412,8 +412,8 @@ export class Copilots {
412412
Authorization: await this._getAuthorizationHeader(),
413413
"X-Fern-Language": "JavaScript",
414414
"X-Fern-SDK-Name": "@credal/sdk",
415-
"X-Fern-SDK-Version": "0.0.21",
416-
"User-Agent": "@credal/sdk/0.0.21",
415+
"X-Fern-SDK-Version": "0.0.22",
416+
"User-Agent": "@credal/sdk/0.0.22",
417417
"X-Fern-Runtime": core.RUNTIME.type,
418418
"X-Fern-Runtime-Version": core.RUNTIME.version,
419419
},
@@ -476,8 +476,8 @@ export class Copilots {
476476
Authorization: await this._getAuthorizationHeader(),
477477
"X-Fern-Language": "JavaScript",
478478
"X-Fern-SDK-Name": "@credal/sdk",
479-
"X-Fern-SDK-Version": "0.0.21",
480-
"User-Agent": "@credal/sdk/0.0.21",
479+
"X-Fern-SDK-Version": "0.0.22",
480+
"User-Agent": "@credal/sdk/0.0.22",
481481
"X-Fern-Runtime": core.RUNTIME.type,
482482
"X-Fern-Runtime-Version": core.RUNTIME.version,
483483
},
@@ -550,8 +550,8 @@ export class Copilots {
550550
Authorization: await this._getAuthorizationHeader(),
551551
"X-Fern-Language": "JavaScript",
552552
"X-Fern-SDK-Name": "@credal/sdk",
553-
"X-Fern-SDK-Version": "0.0.21",
554-
"User-Agent": "@credal/sdk/0.0.21",
553+
"X-Fern-SDK-Version": "0.0.22",
554+
"User-Agent": "@credal/sdk/0.0.22",
555555
"X-Fern-Runtime": core.RUNTIME.type,
556556
"X-Fern-Runtime-Version": core.RUNTIME.version,
557557
},
@@ -611,8 +611,8 @@ export class Copilots {
611611
Authorization: await this._getAuthorizationHeader(),
612612
"X-Fern-Language": "JavaScript",
613613
"X-Fern-SDK-Name": "@credal/sdk",
614-
"X-Fern-SDK-Version": "0.0.21",
615-
"User-Agent": "@credal/sdk/0.0.21",
614+
"X-Fern-SDK-Version": "0.0.22",
615+
"User-Agent": "@credal/sdk/0.0.22",
616616
"X-Fern-Runtime": core.RUNTIME.type,
617617
"X-Fern-Runtime-Version": core.RUNTIME.version,
618618
},
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface EndOfMessageChunk {}

‎src/api/resources/copilots/types/StreamingChunk.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as Credal from "../../../index";
77
export type StreamingChunk =
88
| Credal.StreamingChunk.Initial
99
| Credal.StreamingChunk.DataChunk
10+
| Credal.StreamingChunk.EndOfMessage
1011
| Credal.StreamingChunk.FinalChunk
1112
| Credal.StreamingChunk.Blocked;
1213

@@ -19,6 +20,10 @@ export declare namespace StreamingChunk {
1920
event: "data_chunk";
2021
}
2122

23+
interface EndOfMessage extends Credal.EndOfMessageChunk {
24+
event: "end_of_message";
25+
}
26+
2227
interface FinalChunk extends Credal.FinalChunk {
2328
event: "final_chunk";
2429
}

‎src/api/resources/copilots/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ export * from "./DataFilter";
2525
export * from "./InitialChunk";
2626
export * from "./DataChunk";
2727
export * from "./FinalChunk";
28+
export * from "./EndOfMessageChunk";
2829
export * from "./BlockedChunk";
2930
export * from "./StreamingChunk";

‎src/api/resources/documentCatalog/client/Client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export class DocumentCatalog {
5656
Authorization: await this._getAuthorizationHeader(),
5757
"X-Fern-Language": "JavaScript",
5858
"X-Fern-SDK-Name": "@credal/sdk",
59-
"X-Fern-SDK-Version": "0.0.21",
60-
"User-Agent": "@credal/sdk/0.0.21",
59+
"X-Fern-SDK-Version": "0.0.22",
60+
"User-Agent": "@credal/sdk/0.0.22",
6161
"X-Fern-Runtime": core.RUNTIME.type,
6262
"X-Fern-Runtime-Version": core.RUNTIME.version,
6363
},
@@ -125,8 +125,8 @@ export class DocumentCatalog {
125125
Authorization: await this._getAuthorizationHeader(),
126126
"X-Fern-Language": "JavaScript",
127127
"X-Fern-SDK-Name": "@credal/sdk",
128-
"X-Fern-SDK-Version": "0.0.21",
129-
"User-Agent": "@credal/sdk/0.0.21",
128+
"X-Fern-SDK-Version": "0.0.22",
129+
"User-Agent": "@credal/sdk/0.0.22",
130130
"X-Fern-Runtime": core.RUNTIME.type,
131131
"X-Fern-Runtime-Version": core.RUNTIME.version,
132132
},
@@ -214,8 +214,8 @@ export class DocumentCatalog {
214214
Authorization: await this._getAuthorizationHeader(),
215215
"X-Fern-Language": "JavaScript",
216216
"X-Fern-SDK-Name": "@credal/sdk",
217-
"X-Fern-SDK-Version": "0.0.21",
218-
"User-Agent": "@credal/sdk/0.0.21",
217+
"X-Fern-SDK-Version": "0.0.22",
218+
"User-Agent": "@credal/sdk/0.0.22",
219219
"X-Fern-Runtime": core.RUNTIME.type,
220220
"X-Fern-Runtime-Version": core.RUNTIME.version,
221221
},

‎src/api/resources/documentCollections/client/Client.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export class DocumentCollections {
6363
Authorization: await this._getAuthorizationHeader(),
6464
"X-Fern-Language": "JavaScript",
6565
"X-Fern-SDK-Name": "@credal/sdk",
66-
"X-Fern-SDK-Version": "0.0.21",
67-
"User-Agent": "@credal/sdk/0.0.21",
66+
"X-Fern-SDK-Version": "0.0.22",
67+
"User-Agent": "@credal/sdk/0.0.22",
6868
"X-Fern-Runtime": core.RUNTIME.type,
6969
"X-Fern-Runtime-Version": core.RUNTIME.version,
7070
},
@@ -135,8 +135,8 @@ export class DocumentCollections {
135135
Authorization: await this._getAuthorizationHeader(),
136136
"X-Fern-Language": "JavaScript",
137137
"X-Fern-SDK-Name": "@credal/sdk",
138-
"X-Fern-SDK-Version": "0.0.21",
139-
"User-Agent": "@credal/sdk/0.0.21",
138+
"X-Fern-SDK-Version": "0.0.22",
139+
"User-Agent": "@credal/sdk/0.0.22",
140140
"X-Fern-Runtime": core.RUNTIME.type,
141141
"X-Fern-Runtime-Version": core.RUNTIME.version,
142142
},
@@ -205,8 +205,8 @@ export class DocumentCollections {
205205
Authorization: await this._getAuthorizationHeader(),
206206
"X-Fern-Language": "JavaScript",
207207
"X-Fern-SDK-Name": "@credal/sdk",
208-
"X-Fern-SDK-Version": "0.0.21",
209-
"User-Agent": "@credal/sdk/0.0.21",
208+
"X-Fern-SDK-Version": "0.0.22",
209+
"User-Agent": "@credal/sdk/0.0.22",
210210
"X-Fern-Runtime": core.RUNTIME.type,
211211
"X-Fern-Runtime-Version": core.RUNTIME.version,
212212
},
@@ -273,8 +273,8 @@ export class DocumentCollections {
273273
Authorization: await this._getAuthorizationHeader(),
274274
"X-Fern-Language": "JavaScript",
275275
"X-Fern-SDK-Name": "@credal/sdk",
276-
"X-Fern-SDK-Version": "0.0.21",
277-
"User-Agent": "@credal/sdk/0.0.21",
276+
"X-Fern-SDK-Version": "0.0.22",
277+
"User-Agent": "@credal/sdk/0.0.22",
278278
"X-Fern-Runtime": core.RUNTIME.type,
279279
"X-Fern-Runtime-Version": core.RUNTIME.version,
280280
},
@@ -357,8 +357,8 @@ export class DocumentCollections {
357357
Authorization: await this._getAuthorizationHeader(),
358358
"X-Fern-Language": "JavaScript",
359359
"X-Fern-SDK-Name": "@credal/sdk",
360-
"X-Fern-SDK-Version": "0.0.21",
361-
"User-Agent": "@credal/sdk/0.0.21",
360+
"X-Fern-SDK-Version": "0.0.22",
361+
"User-Agent": "@credal/sdk/0.0.22",
362362
"X-Fern-Runtime": core.RUNTIME.type,
363363
"X-Fern-Runtime-Version": core.RUNTIME.version,
364364
},
@@ -443,8 +443,8 @@ export class DocumentCollections {
443443
Authorization: await this._getAuthorizationHeader(),
444444
"X-Fern-Language": "JavaScript",
445445
"X-Fern-SDK-Name": "@credal/sdk",
446-
"X-Fern-SDK-Version": "0.0.21",
447-
"User-Agent": "@credal/sdk/0.0.21",
446+
"X-Fern-SDK-Version": "0.0.22",
447+
"User-Agent": "@credal/sdk/0.0.22",
448448
"X-Fern-Runtime": core.RUNTIME.type,
449449
"X-Fern-Runtime-Version": core.RUNTIME.version,
450450
},

‎src/api/resources/permissionsService/client/Client.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ export class PermissionsService {
5959
Authorization: await this._getAuthorizationHeader(),
6060
"X-Fern-Language": "JavaScript",
6161
"X-Fern-SDK-Name": "@credal/sdk",
62-
"X-Fern-SDK-Version": "0.0.21",
63-
"User-Agent": "@credal/sdk/0.0.21",
62+
"X-Fern-SDK-Version": "0.0.22",
63+
"User-Agent": "@credal/sdk/0.0.22",
6464
"X-Fern-Runtime": core.RUNTIME.type,
6565
"X-Fern-Runtime-Version": core.RUNTIME.version,
6666
},
@@ -137,8 +137,8 @@ export class PermissionsService {
137137
Authorization: await this._getAuthorizationHeader(),
138138
"X-Fern-Language": "JavaScript",
139139
"X-Fern-SDK-Name": "@credal/sdk",
140-
"X-Fern-SDK-Version": "0.0.21",
141-
"User-Agent": "@credal/sdk/0.0.21",
140+
"X-Fern-SDK-Version": "0.0.22",
141+
"User-Agent": "@credal/sdk/0.0.22",
142142
"X-Fern-Runtime": core.RUNTIME.type,
143143
"X-Fern-Runtime-Version": core.RUNTIME.version,
144144
},
@@ -207,8 +207,8 @@ export class PermissionsService {
207207
Authorization: await this._getAuthorizationHeader(),
208208
"X-Fern-Language": "JavaScript",
209209
"X-Fern-SDK-Name": "@credal/sdk",
210-
"X-Fern-SDK-Version": "0.0.21",
211-
"User-Agent": "@credal/sdk/0.0.21",
210+
"X-Fern-SDK-Version": "0.0.22",
211+
"User-Agent": "@credal/sdk/0.0.22",
212212
"X-Fern-Runtime": core.RUNTIME.type,
213213
"X-Fern-Runtime-Version": core.RUNTIME.version,
214214
},

‎src/api/resources/search/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export class Search {
6969
Authorization: await this._getAuthorizationHeader(),
7070
"X-Fern-Language": "JavaScript",
7171
"X-Fern-SDK-Name": "@credal/sdk",
72-
"X-Fern-SDK-Version": "0.0.21",
73-
"User-Agent": "@credal/sdk/0.0.21",
72+
"X-Fern-SDK-Version": "0.0.22",
73+
"User-Agent": "@credal/sdk/0.0.22",
7474
"X-Fern-Runtime": core.RUNTIME.type,
7575
"X-Fern-Runtime-Version": core.RUNTIME.version,
7676
},

‎src/api/resources/users/client/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ export class Users {
6161
Authorization: await this._getAuthorizationHeader(),
6262
"X-Fern-Language": "JavaScript",
6363
"X-Fern-SDK-Name": "@credal/sdk",
64-
"X-Fern-SDK-Version": "0.0.21",
65-
"User-Agent": "@credal/sdk/0.0.21",
64+
"X-Fern-SDK-Version": "0.0.22",
65+
"User-Agent": "@credal/sdk/0.0.22",
6666
"X-Fern-Runtime": core.RUNTIME.type,
6767
"X-Fern-Runtime-Version": core.RUNTIME.version,
6868
},
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as serializers from "../../../index";
6+
import * as Credal from "../../../../api/index";
7+
import * as core from "../../../../core";
8+
9+
export const EndOfMessageChunk: core.serialization.ObjectSchema<
10+
serializers.EndOfMessageChunk.Raw,
11+
Credal.EndOfMessageChunk
12+
> = core.serialization.object({});
13+
14+
export declare namespace EndOfMessageChunk {
15+
interface Raw {}
16+
}

‎src/serialization/resources/copilots/types/StreamingChunk.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as Credal from "../../../../api/index";
77
import * as core from "../../../../core";
88
import { InitialChunk } from "./InitialChunk";
99
import { DataChunk } from "./DataChunk";
10+
import { EndOfMessageChunk } from "./EndOfMessageChunk";
1011
import { FinalChunk } from "./FinalChunk";
1112
import { BlockedChunk } from "./BlockedChunk";
1213

@@ -15,6 +16,7 @@ export const StreamingChunk: core.serialization.Schema<serializers.StreamingChun
1516
.union("event", {
1617
initial: InitialChunk,
1718
data_chunk: DataChunk,
19+
end_of_message: EndOfMessageChunk,
1820
final_chunk: FinalChunk,
1921
blocked: BlockedChunk,
2022
})
@@ -24,7 +26,12 @@ export const StreamingChunk: core.serialization.Schema<serializers.StreamingChun
2426
});
2527

2628
export declare namespace StreamingChunk {
27-
type Raw = StreamingChunk.Initial | StreamingChunk.DataChunk | StreamingChunk.FinalChunk | StreamingChunk.Blocked;
29+
type Raw =
30+
| StreamingChunk.Initial
31+
| StreamingChunk.DataChunk
32+
| StreamingChunk.EndOfMessage
33+
| StreamingChunk.FinalChunk
34+
| StreamingChunk.Blocked;
2835

2936
interface Initial extends InitialChunk.Raw {
3037
event: "initial";
@@ -34,6 +41,10 @@ export declare namespace StreamingChunk {
3441
event: "data_chunk";
3542
}
3643

44+
interface EndOfMessage extends EndOfMessageChunk.Raw {
45+
event: "end_of_message";
46+
}
47+
3748
interface FinalChunk extends FinalChunk.Raw {
3849
event: "final_chunk";
3950
}

‎src/serialization/resources/copilots/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ export * from "./DataFilter";
2525
export * from "./InitialChunk";
2626
export * from "./DataChunk";
2727
export * from "./FinalChunk";
28+
export * from "./EndOfMessageChunk";
2829
export * from "./BlockedChunk";
2930
export * from "./StreamingChunk";

‎src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "0.0.21";
1+
export const SDK_VERSION = "0.0.22";
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Please sign in to comment.