@credal/sdk 0.0.21 → 0.0.23
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.
- package/api/resources/actions/client/Client.js +2 -2
- package/api/resources/actions/client/requests/InvokeActionRequest.d.ts +2 -2
- package/api/resources/copilots/client/Client.js +18 -18
- package/api/resources/copilots/types/EndOfMessageChunk.d.ts +5 -0
- package/api/resources/copilots/types/EndOfMessageChunk.js +5 -0
- package/api/resources/copilots/types/StreamingChunk.d.ts +4 -1
- package/api/resources/copilots/types/index.d.ts +1 -0
- package/api/resources/copilots/types/index.js +1 -0
- package/api/resources/documentCatalog/client/Client.js +6 -6
- package/api/resources/documentCollections/client/Client.js +12 -12
- package/api/resources/permissionsService/client/Client.js +6 -6
- package/api/resources/search/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +2 -2
- package/dist/api/resources/actions/client/Client.js +2 -2
- package/dist/api/resources/actions/client/requests/InvokeActionRequest.d.ts +2 -2
- package/dist/api/resources/copilots/client/Client.js +18 -18
- package/dist/api/resources/copilots/types/EndOfMessageChunk.d.ts +5 -0
- package/dist/api/resources/copilots/types/EndOfMessageChunk.js +5 -0
- package/dist/api/resources/copilots/types/StreamingChunk.d.ts +4 -1
- package/dist/api/resources/copilots/types/index.d.ts +1 -0
- package/dist/api/resources/copilots/types/index.js +1 -0
- package/dist/api/resources/documentCatalog/client/Client.js +6 -6
- package/dist/api/resources/documentCollections/client/Client.js +12 -12
- package/dist/api/resources/permissionsService/client/Client.js +6 -6
- package/dist/api/resources/search/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +2 -2
- package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +2 -2
- package/dist/serialization/resources/actions/client/requests/InvokeActionRequest.js +2 -2
- package/dist/serialization/resources/copilots/types/EndOfMessageChunk.d.ts +11 -0
- package/dist/serialization/resources/copilots/types/EndOfMessageChunk.js +31 -0
- package/dist/serialization/resources/copilots/types/StreamingChunk.d.ts +5 -1
- package/dist/serialization/resources/copilots/types/StreamingChunk.js +2 -0
- package/dist/serialization/resources/copilots/types/index.d.ts +1 -0
- package/dist/serialization/resources/copilots/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/actions/client/requests/InvokeActionRequest.d.ts +2 -2
- package/serialization/resources/actions/client/requests/InvokeActionRequest.js +2 -2
- package/serialization/resources/copilots/types/EndOfMessageChunk.d.ts +11 -0
- package/serialization/resources/copilots/types/EndOfMessageChunk.js +31 -0
- package/serialization/resources/copilots/types/StreamingChunk.d.ts +5 -1
- package/serialization/resources/copilots/types/StreamingChunk.js +2 -0
- package/serialization/resources/copilots/types/index.d.ts +1 -0
- package/serialization/resources/copilots/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -81,8 +81,8 @@ class Actions {
|
|
|
81
81
|
Authorization: yield this._getAuthorizationHeader(),
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
84
|
-
"X-Fern-SDK-Version": "0.0.
|
|
85
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
84
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
85
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -36,12 +36,12 @@ export interface InvokeActionRequest {
|
|
|
36
36
|
* If true, then before executing the action we will ask for a human confirmation in Slack. If false, we may still ask for human confirmation if it's required by your organization admin.
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
|
-
requireHumanConfirmation
|
|
39
|
+
requireHumanConfirmation: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* Where we should ask for human confirmation if necessary
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
humanConfirmationChannel
|
|
44
|
+
humanConfirmationChannel?: Credal.HumanConfirmationChannel;
|
|
45
45
|
/**
|
|
46
46
|
* The justification for requesting this action. This is likely generated by the LLM that requested the action.
|
|
47
47
|
*
|
|
@@ -74,8 +74,8 @@ class Copilots {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
77
|
-
"X-Fern-SDK-Version": "0.0.
|
|
78
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
77
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
78
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -137,8 +137,8 @@ class Copilots {
|
|
|
137
137
|
Authorization: yield this._getAuthorizationHeader(),
|
|
138
138
|
"X-Fern-Language": "JavaScript",
|
|
139
139
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
140
|
-
"X-Fern-SDK-Version": "0.0.
|
|
141
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
140
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
141
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
142
142
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
143
143
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
144
144
|
},
|
|
@@ -204,8 +204,8 @@ class Copilots {
|
|
|
204
204
|
Authorization: yield this._getAuthorizationHeader(),
|
|
205
205
|
"X-Fern-Language": "JavaScript",
|
|
206
206
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
207
|
-
"X-Fern-SDK-Version": "0.0.
|
|
208
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
207
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
208
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
209
209
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
210
210
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
211
211
|
},
|
|
@@ -268,8 +268,8 @@ class Copilots {
|
|
|
268
268
|
Authorization: yield this._getAuthorizationHeader(),
|
|
269
269
|
"X-Fern-Language": "JavaScript",
|
|
270
270
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
271
|
-
"X-Fern-SDK-Version": "0.0.
|
|
272
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
271
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
272
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
273
273
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
274
274
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
275
275
|
},
|
|
@@ -322,8 +322,8 @@ class Copilots {
|
|
|
322
322
|
Authorization: yield this._getAuthorizationHeader(),
|
|
323
323
|
"X-Fern-Language": "JavaScript",
|
|
324
324
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
325
|
-
"X-Fern-SDK-Version": "0.0.
|
|
326
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
325
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
326
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
327
327
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
328
328
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
329
329
|
},
|
|
@@ -396,8 +396,8 @@ class Copilots {
|
|
|
396
396
|
Authorization: yield this._getAuthorizationHeader(),
|
|
397
397
|
"X-Fern-Language": "JavaScript",
|
|
398
398
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
399
|
-
"X-Fern-SDK-Version": "0.0.
|
|
400
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
399
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
400
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
401
401
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
402
402
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
403
403
|
},
|
|
@@ -454,8 +454,8 @@ class Copilots {
|
|
|
454
454
|
Authorization: yield this._getAuthorizationHeader(),
|
|
455
455
|
"X-Fern-Language": "JavaScript",
|
|
456
456
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
457
|
-
"X-Fern-SDK-Version": "0.0.
|
|
458
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
457
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
458
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
459
459
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
460
460
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
461
461
|
},
|
|
@@ -522,8 +522,8 @@ class Copilots {
|
|
|
522
522
|
Authorization: yield this._getAuthorizationHeader(),
|
|
523
523
|
"X-Fern-Language": "JavaScript",
|
|
524
524
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
525
|
-
"X-Fern-SDK-Version": "0.0.
|
|
526
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
525
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
526
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
527
527
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
528
528
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
529
529
|
},
|
|
@@ -577,8 +577,8 @@ class Copilots {
|
|
|
577
577
|
Authorization: yield this._getAuthorizationHeader(),
|
|
578
578
|
"X-Fern-Language": "JavaScript",
|
|
579
579
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
580
|
-
"X-Fern-SDK-Version": "0.0.
|
|
581
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
580
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
581
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
582
582
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
583
583
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
584
584
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Credal from "../../../index";
|
|
5
|
-
export declare type StreamingChunk = Credal.StreamingChunk.Initial | Credal.StreamingChunk.DataChunk | Credal.StreamingChunk.FinalChunk | Credal.StreamingChunk.Blocked;
|
|
5
|
+
export declare type StreamingChunk = Credal.StreamingChunk.Initial | Credal.StreamingChunk.DataChunk | Credal.StreamingChunk.EndOfMessage | Credal.StreamingChunk.FinalChunk | Credal.StreamingChunk.Blocked;
|
|
6
6
|
export declare namespace StreamingChunk {
|
|
7
7
|
interface Initial extends Credal.InitialChunk {
|
|
8
8
|
event: "initial";
|
|
@@ -10,6 +10,9 @@ export declare namespace StreamingChunk {
|
|
|
10
10
|
interface DataChunk extends Credal.DataChunk {
|
|
11
11
|
event: "data_chunk";
|
|
12
12
|
}
|
|
13
|
+
interface EndOfMessage extends Credal.EndOfMessageChunk {
|
|
14
|
+
event: "end_of_message";
|
|
15
|
+
}
|
|
13
16
|
interface FinalChunk extends Credal.FinalChunk {
|
|
14
17
|
event: "final_chunk";
|
|
15
18
|
}
|
|
@@ -41,5 +41,6 @@ __exportStar(require("./DataFilter"), exports);
|
|
|
41
41
|
__exportStar(require("./InitialChunk"), exports);
|
|
42
42
|
__exportStar(require("./DataChunk"), exports);
|
|
43
43
|
__exportStar(require("./FinalChunk"), exports);
|
|
44
|
+
__exportStar(require("./EndOfMessageChunk"), exports);
|
|
44
45
|
__exportStar(require("./BlockedChunk"), exports);
|
|
45
46
|
__exportStar(require("./StreamingChunk"), exports);
|
|
@@ -71,8 +71,8 @@ class DocumentCatalog {
|
|
|
71
71
|
Authorization: yield this._getAuthorizationHeader(),
|
|
72
72
|
"X-Fern-Language": "JavaScript",
|
|
73
73
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
74
|
-
"X-Fern-SDK-Version": "0.0.
|
|
75
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
74
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
75
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
},
|
|
@@ -134,8 +134,8 @@ class DocumentCatalog {
|
|
|
134
134
|
Authorization: yield this._getAuthorizationHeader(),
|
|
135
135
|
"X-Fern-Language": "JavaScript",
|
|
136
136
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
137
|
-
"X-Fern-SDK-Version": "0.0.
|
|
138
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
137
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
138
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
139
139
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
140
140
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
141
141
|
},
|
|
@@ -217,8 +217,8 @@ class DocumentCatalog {
|
|
|
217
217
|
Authorization: yield this._getAuthorizationHeader(),
|
|
218
218
|
"X-Fern-Language": "JavaScript",
|
|
219
219
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
220
|
-
"X-Fern-SDK-Version": "0.0.
|
|
221
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
220
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
221
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
222
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
224
|
},
|
|
@@ -78,8 +78,8 @@ class DocumentCollections {
|
|
|
78
78
|
Authorization: yield this._getAuthorizationHeader(),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
81
|
-
"X-Fern-SDK-Version": "0.0.
|
|
82
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
81
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
82
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
83
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
85
|
},
|
|
@@ -144,8 +144,8 @@ class DocumentCollections {
|
|
|
144
144
|
Authorization: yield this._getAuthorizationHeader(),
|
|
145
145
|
"X-Fern-Language": "JavaScript",
|
|
146
146
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
147
|
-
"X-Fern-SDK-Version": "0.0.
|
|
148
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
147
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
148
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
149
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
151
|
},
|
|
@@ -208,8 +208,8 @@ class DocumentCollections {
|
|
|
208
208
|
Authorization: yield this._getAuthorizationHeader(),
|
|
209
209
|
"X-Fern-Language": "JavaScript",
|
|
210
210
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
211
|
-
"X-Fern-SDK-Version": "0.0.
|
|
212
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
211
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
212
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
213
213
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
214
214
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
215
215
|
},
|
|
@@ -270,8 +270,8 @@ class DocumentCollections {
|
|
|
270
270
|
Authorization: yield this._getAuthorizationHeader(),
|
|
271
271
|
"X-Fern-Language": "JavaScript",
|
|
272
272
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
273
|
-
"X-Fern-SDK-Version": "0.0.
|
|
274
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
273
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
274
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
275
275
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
276
276
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
277
277
|
},
|
|
@@ -348,8 +348,8 @@ class DocumentCollections {
|
|
|
348
348
|
Authorization: yield this._getAuthorizationHeader(),
|
|
349
349
|
"X-Fern-Language": "JavaScript",
|
|
350
350
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
351
|
-
"X-Fern-SDK-Version": "0.0.
|
|
352
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
351
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
352
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
353
353
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
354
354
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
355
355
|
},
|
|
@@ -428,8 +428,8 @@ class DocumentCollections {
|
|
|
428
428
|
Authorization: yield this._getAuthorizationHeader(),
|
|
429
429
|
"X-Fern-Language": "JavaScript",
|
|
430
430
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
431
|
-
"X-Fern-SDK-Version": "0.0.
|
|
432
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
431
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
432
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
433
433
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
434
434
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
435
435
|
},
|
|
@@ -74,8 +74,8 @@ class PermissionsService {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
77
|
-
"X-Fern-SDK-Version": "0.0.
|
|
78
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
77
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
78
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -146,8 +146,8 @@ class PermissionsService {
|
|
|
146
146
|
Authorization: yield this._getAuthorizationHeader(),
|
|
147
147
|
"X-Fern-Language": "JavaScript",
|
|
148
148
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
149
|
-
"X-Fern-SDK-Version": "0.0.
|
|
150
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
149
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
150
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
151
151
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
152
152
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
153
153
|
},
|
|
@@ -210,8 +210,8 @@ class PermissionsService {
|
|
|
210
210
|
Authorization: yield this._getAuthorizationHeader(),
|
|
211
211
|
"X-Fern-Language": "JavaScript",
|
|
212
212
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
213
|
-
"X-Fern-SDK-Version": "0.0.
|
|
214
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
213
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
214
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
215
215
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
216
216
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
217
217
|
},
|
|
@@ -84,8 +84,8 @@ class Search {
|
|
|
84
84
|
Authorization: yield this._getAuthorizationHeader(),
|
|
85
85
|
"X-Fern-Language": "JavaScript",
|
|
86
86
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
87
|
-
"X-Fern-SDK-Version": "0.0.
|
|
88
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
87
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
88
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
91
91
|
},
|
|
@@ -79,8 +79,8 @@ class Users {
|
|
|
79
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
82
|
-
"X-Fern-SDK-Version": "0.0.
|
|
83
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
82
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
83
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
84
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
86
|
},
|
|
@@ -81,8 +81,8 @@ class Actions {
|
|
|
81
81
|
Authorization: yield this._getAuthorizationHeader(),
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
84
|
-
"X-Fern-SDK-Version": "0.0.
|
|
85
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
84
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
85
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -36,12 +36,12 @@ export interface InvokeActionRequest {
|
|
|
36
36
|
* If true, then before executing the action we will ask for a human confirmation in Slack. If false, we may still ask for human confirmation if it's required by your organization admin.
|
|
37
37
|
*
|
|
38
38
|
*/
|
|
39
|
-
requireHumanConfirmation
|
|
39
|
+
requireHumanConfirmation: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* Where we should ask for human confirmation if necessary
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
humanConfirmationChannel
|
|
44
|
+
humanConfirmationChannel?: Credal.HumanConfirmationChannel;
|
|
45
45
|
/**
|
|
46
46
|
* The justification for requesting this action. This is likely generated by the LLM that requested the action.
|
|
47
47
|
*
|
|
@@ -74,8 +74,8 @@ class Copilots {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
77
|
-
"X-Fern-SDK-Version": "0.0.
|
|
78
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
77
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
78
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -137,8 +137,8 @@ class Copilots {
|
|
|
137
137
|
Authorization: yield this._getAuthorizationHeader(),
|
|
138
138
|
"X-Fern-Language": "JavaScript",
|
|
139
139
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
140
|
-
"X-Fern-SDK-Version": "0.0.
|
|
141
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
140
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
141
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
142
142
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
143
143
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
144
144
|
},
|
|
@@ -204,8 +204,8 @@ class Copilots {
|
|
|
204
204
|
Authorization: yield this._getAuthorizationHeader(),
|
|
205
205
|
"X-Fern-Language": "JavaScript",
|
|
206
206
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
207
|
-
"X-Fern-SDK-Version": "0.0.
|
|
208
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
207
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
208
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
209
209
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
210
210
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
211
211
|
},
|
|
@@ -268,8 +268,8 @@ class Copilots {
|
|
|
268
268
|
Authorization: yield this._getAuthorizationHeader(),
|
|
269
269
|
"X-Fern-Language": "JavaScript",
|
|
270
270
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
271
|
-
"X-Fern-SDK-Version": "0.0.
|
|
272
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
271
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
272
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
273
273
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
274
274
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
275
275
|
},
|
|
@@ -322,8 +322,8 @@ class Copilots {
|
|
|
322
322
|
Authorization: yield this._getAuthorizationHeader(),
|
|
323
323
|
"X-Fern-Language": "JavaScript",
|
|
324
324
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
325
|
-
"X-Fern-SDK-Version": "0.0.
|
|
326
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
325
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
326
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
327
327
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
328
328
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
329
329
|
},
|
|
@@ -396,8 +396,8 @@ class Copilots {
|
|
|
396
396
|
Authorization: yield this._getAuthorizationHeader(),
|
|
397
397
|
"X-Fern-Language": "JavaScript",
|
|
398
398
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
399
|
-
"X-Fern-SDK-Version": "0.0.
|
|
400
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
399
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
400
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
401
401
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
402
402
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
403
403
|
},
|
|
@@ -454,8 +454,8 @@ class Copilots {
|
|
|
454
454
|
Authorization: yield this._getAuthorizationHeader(),
|
|
455
455
|
"X-Fern-Language": "JavaScript",
|
|
456
456
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
457
|
-
"X-Fern-SDK-Version": "0.0.
|
|
458
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
457
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
458
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
459
459
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
460
460
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
461
461
|
},
|
|
@@ -522,8 +522,8 @@ class Copilots {
|
|
|
522
522
|
Authorization: yield this._getAuthorizationHeader(),
|
|
523
523
|
"X-Fern-Language": "JavaScript",
|
|
524
524
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
525
|
-
"X-Fern-SDK-Version": "0.0.
|
|
526
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
525
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
526
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
527
527
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
528
528
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
529
529
|
},
|
|
@@ -577,8 +577,8 @@ class Copilots {
|
|
|
577
577
|
Authorization: yield this._getAuthorizationHeader(),
|
|
578
578
|
"X-Fern-Language": "JavaScript",
|
|
579
579
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
580
|
-
"X-Fern-SDK-Version": "0.0.
|
|
581
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
580
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
581
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
582
582
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
583
583
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
584
584
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Credal from "../../../index";
|
|
5
|
-
export declare type StreamingChunk = Credal.StreamingChunk.Initial | Credal.StreamingChunk.DataChunk | Credal.StreamingChunk.FinalChunk | Credal.StreamingChunk.Blocked;
|
|
5
|
+
export declare type StreamingChunk = Credal.StreamingChunk.Initial | Credal.StreamingChunk.DataChunk | Credal.StreamingChunk.EndOfMessage | Credal.StreamingChunk.FinalChunk | Credal.StreamingChunk.Blocked;
|
|
6
6
|
export declare namespace StreamingChunk {
|
|
7
7
|
interface Initial extends Credal.InitialChunk {
|
|
8
8
|
event: "initial";
|
|
@@ -10,6 +10,9 @@ export declare namespace StreamingChunk {
|
|
|
10
10
|
interface DataChunk extends Credal.DataChunk {
|
|
11
11
|
event: "data_chunk";
|
|
12
12
|
}
|
|
13
|
+
interface EndOfMessage extends Credal.EndOfMessageChunk {
|
|
14
|
+
event: "end_of_message";
|
|
15
|
+
}
|
|
13
16
|
interface FinalChunk extends Credal.FinalChunk {
|
|
14
17
|
event: "final_chunk";
|
|
15
18
|
}
|
|
@@ -41,5 +41,6 @@ __exportStar(require("./DataFilter"), exports);
|
|
|
41
41
|
__exportStar(require("./InitialChunk"), exports);
|
|
42
42
|
__exportStar(require("./DataChunk"), exports);
|
|
43
43
|
__exportStar(require("./FinalChunk"), exports);
|
|
44
|
+
__exportStar(require("./EndOfMessageChunk"), exports);
|
|
44
45
|
__exportStar(require("./BlockedChunk"), exports);
|
|
45
46
|
__exportStar(require("./StreamingChunk"), exports);
|
|
@@ -71,8 +71,8 @@ class DocumentCatalog {
|
|
|
71
71
|
Authorization: yield this._getAuthorizationHeader(),
|
|
72
72
|
"X-Fern-Language": "JavaScript",
|
|
73
73
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
74
|
-
"X-Fern-SDK-Version": "0.0.
|
|
75
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
74
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
75
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
},
|
|
@@ -134,8 +134,8 @@ class DocumentCatalog {
|
|
|
134
134
|
Authorization: yield this._getAuthorizationHeader(),
|
|
135
135
|
"X-Fern-Language": "JavaScript",
|
|
136
136
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
137
|
-
"X-Fern-SDK-Version": "0.0.
|
|
138
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
137
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
138
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
139
139
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
140
140
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
141
141
|
},
|
|
@@ -217,8 +217,8 @@ class DocumentCatalog {
|
|
|
217
217
|
Authorization: yield this._getAuthorizationHeader(),
|
|
218
218
|
"X-Fern-Language": "JavaScript",
|
|
219
219
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
220
|
-
"X-Fern-SDK-Version": "0.0.
|
|
221
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
220
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
221
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
222
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
224
|
},
|
|
@@ -78,8 +78,8 @@ class DocumentCollections {
|
|
|
78
78
|
Authorization: yield this._getAuthorizationHeader(),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
81
|
-
"X-Fern-SDK-Version": "0.0.
|
|
82
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
81
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
82
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
83
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
85
|
},
|
|
@@ -144,8 +144,8 @@ class DocumentCollections {
|
|
|
144
144
|
Authorization: yield this._getAuthorizationHeader(),
|
|
145
145
|
"X-Fern-Language": "JavaScript",
|
|
146
146
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
147
|
-
"X-Fern-SDK-Version": "0.0.
|
|
148
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
147
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
148
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
149
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
151
|
},
|
|
@@ -208,8 +208,8 @@ class DocumentCollections {
|
|
|
208
208
|
Authorization: yield this._getAuthorizationHeader(),
|
|
209
209
|
"X-Fern-Language": "JavaScript",
|
|
210
210
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
211
|
-
"X-Fern-SDK-Version": "0.0.
|
|
212
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
211
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
212
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
213
213
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
214
214
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
215
215
|
},
|
|
@@ -270,8 +270,8 @@ class DocumentCollections {
|
|
|
270
270
|
Authorization: yield this._getAuthorizationHeader(),
|
|
271
271
|
"X-Fern-Language": "JavaScript",
|
|
272
272
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
273
|
-
"X-Fern-SDK-Version": "0.0.
|
|
274
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
273
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
274
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
275
275
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
276
276
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
277
277
|
},
|
|
@@ -348,8 +348,8 @@ class DocumentCollections {
|
|
|
348
348
|
Authorization: yield this._getAuthorizationHeader(),
|
|
349
349
|
"X-Fern-Language": "JavaScript",
|
|
350
350
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
351
|
-
"X-Fern-SDK-Version": "0.0.
|
|
352
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
351
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
352
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
353
353
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
354
354
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
355
355
|
},
|
|
@@ -428,8 +428,8 @@ class DocumentCollections {
|
|
|
428
428
|
Authorization: yield this._getAuthorizationHeader(),
|
|
429
429
|
"X-Fern-Language": "JavaScript",
|
|
430
430
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
431
|
-
"X-Fern-SDK-Version": "0.0.
|
|
432
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
431
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
432
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
433
433
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
434
434
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
435
435
|
},
|
|
@@ -74,8 +74,8 @@ class PermissionsService {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
77
|
-
"X-Fern-SDK-Version": "0.0.
|
|
78
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
77
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
78
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -146,8 +146,8 @@ class PermissionsService {
|
|
|
146
146
|
Authorization: yield this._getAuthorizationHeader(),
|
|
147
147
|
"X-Fern-Language": "JavaScript",
|
|
148
148
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
149
|
-
"X-Fern-SDK-Version": "0.0.
|
|
150
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
149
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
150
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
151
151
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
152
152
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
153
153
|
},
|
|
@@ -210,8 +210,8 @@ class PermissionsService {
|
|
|
210
210
|
Authorization: yield this._getAuthorizationHeader(),
|
|
211
211
|
"X-Fern-Language": "JavaScript",
|
|
212
212
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
213
|
-
"X-Fern-SDK-Version": "0.0.
|
|
214
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
213
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
214
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
215
215
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
216
216
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
217
217
|
},
|
|
@@ -84,8 +84,8 @@ class Search {
|
|
|
84
84
|
Authorization: yield this._getAuthorizationHeader(),
|
|
85
85
|
"X-Fern-Language": "JavaScript",
|
|
86
86
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
87
|
-
"X-Fern-SDK-Version": "0.0.
|
|
88
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
87
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
88
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
89
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
90
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
91
91
|
},
|
|
@@ -79,8 +79,8 @@ class Users {
|
|
|
79
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "@credal/sdk",
|
|
82
|
-
"X-Fern-SDK-Version": "0.0.
|
|
83
|
-
"User-Agent": "@credal/sdk/0.0.
|
|
82
|
+
"X-Fern-SDK-Version": "0.0.23",
|
|
83
|
+
"User-Agent": "@credal/sdk/0.0.23",
|
|
84
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
86
|
},
|
|
@@ -11,8 +11,8 @@ export declare namespace InvokeActionRequest {
|
|
|
11
11
|
actionId: string;
|
|
12
12
|
actionInputs?: unknown;
|
|
13
13
|
userEmail: string;
|
|
14
|
-
requireHumanConfirmation
|
|
15
|
-
humanConfirmationChannel
|
|
14
|
+
requireHumanConfirmation: boolean;
|
|
15
|
+
humanConfirmationChannel?: HumanConfirmationChannel.Raw | null;
|
|
16
16
|
justification: string;
|
|
17
17
|
auditLogId: string;
|
|
18
18
|
}
|
|
@@ -33,8 +33,8 @@ exports.InvokeActionRequest = core.serialization.object({
|
|
|
33
33
|
actionId: core.serialization.string(),
|
|
34
34
|
actionInputs: core.serialization.unknown(),
|
|
35
35
|
userEmail: core.serialization.string(),
|
|
36
|
-
requireHumanConfirmation: core.serialization.boolean()
|
|
37
|
-
humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel,
|
|
36
|
+
requireHumanConfirmation: core.serialization.boolean(),
|
|
37
|
+
humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel.optional(),
|
|
38
38
|
justification: core.serialization.string(),
|
|
39
39
|
auditLogId: core.serialization.string(),
|
|
40
40
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Credal from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const EndOfMessageChunk: core.serialization.ObjectSchema<serializers.EndOfMessageChunk.Raw, Credal.EndOfMessageChunk>;
|
|
8
|
+
export declare namespace EndOfMessageChunk {
|
|
9
|
+
interface Raw {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.EndOfMessageChunk = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.EndOfMessageChunk = core.serialization.object({});
|
|
@@ -6,17 +6,21 @@ import * as Credal from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { InitialChunk } from "./InitialChunk";
|
|
8
8
|
import { DataChunk } from "./DataChunk";
|
|
9
|
+
import { EndOfMessageChunk } from "./EndOfMessageChunk";
|
|
9
10
|
import { FinalChunk } from "./FinalChunk";
|
|
10
11
|
import { BlockedChunk } from "./BlockedChunk";
|
|
11
12
|
export declare const StreamingChunk: core.serialization.Schema<serializers.StreamingChunk.Raw, Credal.StreamingChunk>;
|
|
12
13
|
export declare namespace StreamingChunk {
|
|
13
|
-
type Raw = StreamingChunk.Initial | StreamingChunk.DataChunk | StreamingChunk.FinalChunk | StreamingChunk.Blocked;
|
|
14
|
+
type Raw = StreamingChunk.Initial | StreamingChunk.DataChunk | StreamingChunk.EndOfMessage | StreamingChunk.FinalChunk | StreamingChunk.Blocked;
|
|
14
15
|
interface Initial extends InitialChunk.Raw {
|
|
15
16
|
event: "initial";
|
|
16
17
|
}
|
|
17
18
|
interface DataChunk extends DataChunk.Raw {
|
|
18
19
|
event: "data_chunk";
|
|
19
20
|
}
|
|
21
|
+
interface EndOfMessage extends EndOfMessageChunk.Raw {
|
|
22
|
+
event: "end_of_message";
|
|
23
|
+
}
|
|
20
24
|
interface FinalChunk extends FinalChunk.Raw {
|
|
21
25
|
event: "final_chunk";
|
|
22
26
|
}
|
|
@@ -30,12 +30,14 @@ exports.StreamingChunk = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const InitialChunk_1 = require("./InitialChunk");
|
|
32
32
|
const DataChunk_1 = require("./DataChunk");
|
|
33
|
+
const EndOfMessageChunk_1 = require("./EndOfMessageChunk");
|
|
33
34
|
const FinalChunk_1 = require("./FinalChunk");
|
|
34
35
|
const BlockedChunk_1 = require("./BlockedChunk");
|
|
35
36
|
exports.StreamingChunk = core.serialization
|
|
36
37
|
.union("event", {
|
|
37
38
|
initial: InitialChunk_1.InitialChunk,
|
|
38
39
|
data_chunk: DataChunk_1.DataChunk,
|
|
40
|
+
end_of_message: EndOfMessageChunk_1.EndOfMessageChunk,
|
|
39
41
|
final_chunk: FinalChunk_1.FinalChunk,
|
|
40
42
|
blocked: BlockedChunk_1.BlockedChunk,
|
|
41
43
|
})
|
|
@@ -41,5 +41,6 @@ __exportStar(require("./DataFilter"), exports);
|
|
|
41
41
|
__exportStar(require("./InitialChunk"), exports);
|
|
42
42
|
__exportStar(require("./DataChunk"), exports);
|
|
43
43
|
__exportStar(require("./FinalChunk"), exports);
|
|
44
|
+
__exportStar(require("./EndOfMessageChunk"), exports);
|
|
44
45
|
__exportStar(require("./BlockedChunk"), exports);
|
|
45
46
|
__exportStar(require("./StreamingChunk"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.23";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@ export declare namespace InvokeActionRequest {
|
|
|
11
11
|
actionId: string;
|
|
12
12
|
actionInputs?: unknown;
|
|
13
13
|
userEmail: string;
|
|
14
|
-
requireHumanConfirmation
|
|
15
|
-
humanConfirmationChannel
|
|
14
|
+
requireHumanConfirmation: boolean;
|
|
15
|
+
humanConfirmationChannel?: HumanConfirmationChannel.Raw | null;
|
|
16
16
|
justification: string;
|
|
17
17
|
auditLogId: string;
|
|
18
18
|
}
|
|
@@ -33,8 +33,8 @@ exports.InvokeActionRequest = core.serialization.object({
|
|
|
33
33
|
actionId: core.serialization.string(),
|
|
34
34
|
actionInputs: core.serialization.unknown(),
|
|
35
35
|
userEmail: core.serialization.string(),
|
|
36
|
-
requireHumanConfirmation: core.serialization.boolean()
|
|
37
|
-
humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel,
|
|
36
|
+
requireHumanConfirmation: core.serialization.boolean(),
|
|
37
|
+
humanConfirmationChannel: HumanConfirmationChannel_1.HumanConfirmationChannel.optional(),
|
|
38
38
|
justification: core.serialization.string(),
|
|
39
39
|
auditLogId: core.serialization.string(),
|
|
40
40
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as Credal from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const EndOfMessageChunk: core.serialization.ObjectSchema<serializers.EndOfMessageChunk.Raw, Credal.EndOfMessageChunk>;
|
|
8
|
+
export declare namespace EndOfMessageChunk {
|
|
9
|
+
interface Raw {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.EndOfMessageChunk = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.EndOfMessageChunk = core.serialization.object({});
|
|
@@ -6,17 +6,21 @@ import * as Credal from "../../../../api/index";
|
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { InitialChunk } from "./InitialChunk";
|
|
8
8
|
import { DataChunk } from "./DataChunk";
|
|
9
|
+
import { EndOfMessageChunk } from "./EndOfMessageChunk";
|
|
9
10
|
import { FinalChunk } from "./FinalChunk";
|
|
10
11
|
import { BlockedChunk } from "./BlockedChunk";
|
|
11
12
|
export declare const StreamingChunk: core.serialization.Schema<serializers.StreamingChunk.Raw, Credal.StreamingChunk>;
|
|
12
13
|
export declare namespace StreamingChunk {
|
|
13
|
-
type Raw = StreamingChunk.Initial | StreamingChunk.DataChunk | StreamingChunk.FinalChunk | StreamingChunk.Blocked;
|
|
14
|
+
type Raw = StreamingChunk.Initial | StreamingChunk.DataChunk | StreamingChunk.EndOfMessage | StreamingChunk.FinalChunk | StreamingChunk.Blocked;
|
|
14
15
|
interface Initial extends InitialChunk.Raw {
|
|
15
16
|
event: "initial";
|
|
16
17
|
}
|
|
17
18
|
interface DataChunk extends DataChunk.Raw {
|
|
18
19
|
event: "data_chunk";
|
|
19
20
|
}
|
|
21
|
+
interface EndOfMessage extends EndOfMessageChunk.Raw {
|
|
22
|
+
event: "end_of_message";
|
|
23
|
+
}
|
|
20
24
|
interface FinalChunk extends FinalChunk.Raw {
|
|
21
25
|
event: "final_chunk";
|
|
22
26
|
}
|
|
@@ -30,12 +30,14 @@ exports.StreamingChunk = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../../../core"));
|
|
31
31
|
const InitialChunk_1 = require("./InitialChunk");
|
|
32
32
|
const DataChunk_1 = require("./DataChunk");
|
|
33
|
+
const EndOfMessageChunk_1 = require("./EndOfMessageChunk");
|
|
33
34
|
const FinalChunk_1 = require("./FinalChunk");
|
|
34
35
|
const BlockedChunk_1 = require("./BlockedChunk");
|
|
35
36
|
exports.StreamingChunk = core.serialization
|
|
36
37
|
.union("event", {
|
|
37
38
|
initial: InitialChunk_1.InitialChunk,
|
|
38
39
|
data_chunk: DataChunk_1.DataChunk,
|
|
40
|
+
end_of_message: EndOfMessageChunk_1.EndOfMessageChunk,
|
|
39
41
|
final_chunk: FinalChunk_1.FinalChunk,
|
|
40
42
|
blocked: BlockedChunk_1.BlockedChunk,
|
|
41
43
|
})
|
|
@@ -41,5 +41,6 @@ __exportStar(require("./DataFilter"), exports);
|
|
|
41
41
|
__exportStar(require("./InitialChunk"), exports);
|
|
42
42
|
__exportStar(require("./DataChunk"), exports);
|
|
43
43
|
__exportStar(require("./FinalChunk"), exports);
|
|
44
|
+
__exportStar(require("./EndOfMessageChunk"), exports);
|
|
44
45
|
__exportStar(require("./BlockedChunk"), exports);
|
|
45
46
|
__exportStar(require("./StreamingChunk"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.23";
|
package/version.js
CHANGED