Skip to content

Commit 8df8425

Browse files
SDK regeneration (#30)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 90db402 commit 8df8425

File tree

17 files changed

+151
-90
lines changed

17 files changed

+151
-90
lines changed

Diff for: package.json

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

Diff for: reference.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,19 @@ Invoke an action, asking for human confirmation if necessary
3131

3232
```typescript
3333
await client.actions.invokeAction({
34-
actionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
35-
userEmail: "string",
34+
actionId: "2b5cf2b8-3df3-11ef-9a96-332d4470d189",
35+
actionInputs: {
36+
textToAppend: "If you need more help, please contact your direct manager.",
37+
},
38+
userEmail: "[email protected]",
3639
requireHumanConfirmation: true,
3740
humanConfirmationChannel: {
38-
type: "directMessage",
39-
channelId: "string",
41+
type: "slackThread",
42+
channelId: "ABC123",
43+
threadTimestamp: "123456789",
4044
},
41-
justification: "string",
42-
auditLogId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
45+
justification: "The user directly asked to update the Relocations Confluence document with this text.",
46+
auditLogId: "3df3f2b8-3df3-11ef-9a96-332d447011ef",
4347
});
4448
```
4549

Diff for: src/api/resources/actions/client/Client.ts

+12-8
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,19 @@ export class Actions {
3737
*
3838
* @example
3939
* await client.actions.invokeAction({
40-
* actionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
41-
* userEmail: "string",
40+
* actionId: "2b5cf2b8-3df3-11ef-9a96-332d4470d189",
41+
* actionInputs: {
42+
* "textToAppend": "If you need more help, please contact your direct manager."
43+
* },
44+
* userEmail: "[email protected]",
4245
* requireHumanConfirmation: true,
4346
* humanConfirmationChannel: {
44-
* type: "directMessage",
45-
* channelId: "string"
47+
* type: "slackThread",
48+
* channelId: "ABC123",
49+
* threadTimestamp: "123456789"
4650
* },
47-
* justification: "string",
48-
* auditLogId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
51+
* justification: "The user directly asked to update the Relocations Confluence document with this text.",
52+
* auditLogId: "3df3f2b8-3df3-11ef-9a96-332d447011ef"
4953
* })
5054
*/
5155
public async invokeAction(
@@ -62,8 +66,8 @@ export class Actions {
6266
Authorization: await this._getAuthorizationHeader(),
6367
"X-Fern-Language": "JavaScript",
6468
"X-Fern-SDK-Name": "@credal/sdk",
65-
"X-Fern-SDK-Version": "0.0.17",
66-
"User-Agent": "@credal/sdk/0.0.17",
69+
"X-Fern-SDK-Version": "0.0.18",
70+
"User-Agent": "@credal/sdk/0.0.18",
6771
"X-Fern-Runtime": core.RUNTIME.type,
6872
"X-Fern-Runtime-Version": core.RUNTIME.version,
6973
},

Diff for: src/api/resources/actions/client/requests/InvokeActionRequest.ts

+15-6
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,28 @@ import * as Credal from "../../../../index";
77
/**
88
* @example
99
* {
10-
* actionId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
11-
* userEmail: "string",
10+
* actionId: "2b5cf2b8-3df3-11ef-9a96-332d4470d189",
11+
* actionInputs: {
12+
* "textToAppend": "If you need more help, please contact your direct manager."
13+
* },
14+
* userEmail: "[email protected]",
1215
* requireHumanConfirmation: true,
1316
* humanConfirmationChannel: {
14-
* type: "directMessage",
15-
* channelId: "string"
17+
* type: "slackThread",
18+
* channelId: "ABC123",
19+
* threadTimestamp: "123456789"
1620
* },
17-
* justification: "string",
18-
* auditLogId: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
21+
* justification: "The user directly asked to update the Relocations Confluence document with this text.",
22+
* auditLogId: "3df3f2b8-3df3-11ef-9a96-332d447011ef"
1923
* }
2024
*/
2125
export interface InvokeActionRequest {
2226
actionId: string;
27+
/**
28+
* The inputs needed to execute the action
29+
*
30+
*/
31+
actionInputs?: unknown;
2332
/**
2433
* The user who we should take the action on behalf of
2534
*

Diff for: src/api/resources/actions/types/ActionStatus.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44

55
export type ActionStatus =
66
| "PENDING_APPROVAL"
7-
| "IN_PROGRESS"
7+
| "APPROVED_IN_PROGRESS"
8+
| "NO_APPROVAL_NEEDED_IN_PROGRESS"
89
| "APPROVED_SUCCEEDED"
910
| "APPROVED_FAILED"
1011
| "NO_APPROVAL_NEEDED_SUCCEEDED"
1112
| "NO_APPROVAL_NEEDED_FAILED";
1213

1314
export const ActionStatus = {
1415
PendingApproval: "PENDING_APPROVAL",
15-
InProgress: "IN_PROGRESS",
16+
ApprovedInProgress: "APPROVED_IN_PROGRESS",
17+
NoApprovalNeededInProgress: "NO_APPROVAL_NEEDED_IN_PROGRESS",
1618
ApprovedSucceeded: "APPROVED_SUCCEEDED",
1719
ApprovedFailed: "APPROVED_FAILED",
1820
NoApprovalNeededSucceeded: "NO_APPROVAL_NEEDED_SUCCEEDED",

Diff for: src/api/resources/actions/types/SlackThread.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44

55
export interface SlackThread {
66
channelId: string;
7-
threadTimestamp: number;
7+
threadTimestamp: string;
88
}

Diff for: src/api/resources/copilots/client/Client.ts

+18-18
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.17",
64-
"User-Agent": "@credal/sdk/0.0.17",
63+
"X-Fern-SDK-Version": "0.0.18",
64+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
133-
"User-Agent": "@credal/sdk/0.0.17",
132+
"X-Fern-SDK-Version": "0.0.18",
133+
"User-Agent": "@credal/sdk/0.0.18",
134134
"X-Fern-Runtime": core.RUNTIME.type,
135135
"X-Fern-Runtime-Version": core.RUNTIME.version,
136136
},
@@ -201,8 +201,8 @@ export class Copilots {
201201
Authorization: await this._getAuthorizationHeader(),
202202
"X-Fern-Language": "JavaScript",
203203
"X-Fern-SDK-Name": "@credal/sdk",
204-
"X-Fern-SDK-Version": "0.0.17",
205-
"User-Agent": "@credal/sdk/0.0.17",
204+
"X-Fern-SDK-Version": "0.0.18",
205+
"User-Agent": "@credal/sdk/0.0.18",
206206
"X-Fern-Runtime": core.RUNTIME.type,
207207
"X-Fern-Runtime-Version": core.RUNTIME.version,
208208
},
@@ -271,8 +271,8 @@ export class Copilots {
271271
Authorization: await this._getAuthorizationHeader(),
272272
"X-Fern-Language": "JavaScript",
273273
"X-Fern-SDK-Name": "@credal/sdk",
274-
"X-Fern-SDK-Version": "0.0.17",
275-
"User-Agent": "@credal/sdk/0.0.17",
274+
"X-Fern-SDK-Version": "0.0.18",
275+
"User-Agent": "@credal/sdk/0.0.18",
276276
"X-Fern-Runtime": core.RUNTIME.type,
277277
"X-Fern-Runtime-Version": core.RUNTIME.version,
278278
},
@@ -331,8 +331,8 @@ export class Copilots {
331331
Authorization: await this._getAuthorizationHeader(),
332332
"X-Fern-Language": "JavaScript",
333333
"X-Fern-SDK-Name": "@credal/sdk",
334-
"X-Fern-SDK-Version": "0.0.17",
335-
"User-Agent": "@credal/sdk/0.0.17",
334+
"X-Fern-SDK-Version": "0.0.18",
335+
"User-Agent": "@credal/sdk/0.0.18",
336336
"X-Fern-Runtime": core.RUNTIME.type,
337337
"X-Fern-Runtime-Version": core.RUNTIME.version,
338338
},
@@ -411,8 +411,8 @@ export class Copilots {
411411
Authorization: await this._getAuthorizationHeader(),
412412
"X-Fern-Language": "JavaScript",
413413
"X-Fern-SDK-Name": "@credal/sdk",
414-
"X-Fern-SDK-Version": "0.0.17",
415-
"User-Agent": "@credal/sdk/0.0.17",
414+
"X-Fern-SDK-Version": "0.0.18",
415+
"User-Agent": "@credal/sdk/0.0.18",
416416
"X-Fern-Runtime": core.RUNTIME.type,
417417
"X-Fern-Runtime-Version": core.RUNTIME.version,
418418
},
@@ -475,8 +475,8 @@ export class Copilots {
475475
Authorization: await this._getAuthorizationHeader(),
476476
"X-Fern-Language": "JavaScript",
477477
"X-Fern-SDK-Name": "@credal/sdk",
478-
"X-Fern-SDK-Version": "0.0.17",
479-
"User-Agent": "@credal/sdk/0.0.17",
478+
"X-Fern-SDK-Version": "0.0.18",
479+
"User-Agent": "@credal/sdk/0.0.18",
480480
"X-Fern-Runtime": core.RUNTIME.type,
481481
"X-Fern-Runtime-Version": core.RUNTIME.version,
482482
},
@@ -549,8 +549,8 @@ export class Copilots {
549549
Authorization: await this._getAuthorizationHeader(),
550550
"X-Fern-Language": "JavaScript",
551551
"X-Fern-SDK-Name": "@credal/sdk",
552-
"X-Fern-SDK-Version": "0.0.17",
553-
"User-Agent": "@credal/sdk/0.0.17",
552+
"X-Fern-SDK-Version": "0.0.18",
553+
"User-Agent": "@credal/sdk/0.0.18",
554554
"X-Fern-Runtime": core.RUNTIME.type,
555555
"X-Fern-Runtime-Version": core.RUNTIME.version,
556556
},
@@ -610,8 +610,8 @@ export class Copilots {
610610
Authorization: await this._getAuthorizationHeader(),
611611
"X-Fern-Language": "JavaScript",
612612
"X-Fern-SDK-Name": "@credal/sdk",
613-
"X-Fern-SDK-Version": "0.0.17",
614-
"User-Agent": "@credal/sdk/0.0.17",
613+
"X-Fern-SDK-Version": "0.0.18",
614+
"User-Agent": "@credal/sdk/0.0.18",
615615
"X-Fern-Runtime": core.RUNTIME.type,
616616
"X-Fern-Runtime-Version": core.RUNTIME.version,
617617
},

Diff for: src/api/resources/documentCatalog/client/Client.ts

+6-6
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.17",
60-
"User-Agent": "@credal/sdk/0.0.17",
59+
"X-Fern-SDK-Version": "0.0.18",
60+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
129-
"User-Agent": "@credal/sdk/0.0.17",
128+
"X-Fern-SDK-Version": "0.0.18",
129+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
218-
"User-Agent": "@credal/sdk/0.0.17",
217+
"X-Fern-SDK-Version": "0.0.18",
218+
"User-Agent": "@credal/sdk/0.0.18",
219219
"X-Fern-Runtime": core.RUNTIME.type,
220220
"X-Fern-Runtime-Version": core.RUNTIME.version,
221221
},

Diff for: src/api/resources/documentCollections/client/Client.ts

+12-12
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.17",
67-
"User-Agent": "@credal/sdk/0.0.17",
66+
"X-Fern-SDK-Version": "0.0.18",
67+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
139-
"User-Agent": "@credal/sdk/0.0.17",
138+
"X-Fern-SDK-Version": "0.0.18",
139+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
209-
"User-Agent": "@credal/sdk/0.0.17",
208+
"X-Fern-SDK-Version": "0.0.18",
209+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
277-
"User-Agent": "@credal/sdk/0.0.17",
276+
"X-Fern-SDK-Version": "0.0.18",
277+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
361-
"User-Agent": "@credal/sdk/0.0.17",
360+
"X-Fern-SDK-Version": "0.0.18",
361+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
447-
"User-Agent": "@credal/sdk/0.0.17",
446+
"X-Fern-SDK-Version": "0.0.18",
447+
"User-Agent": "@credal/sdk/0.0.18",
448448
"X-Fern-Runtime": core.RUNTIME.type,
449449
"X-Fern-Runtime-Version": core.RUNTIME.version,
450450
},

Diff for: src/api/resources/permissionsService/client/Client.ts

+6-6
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.17",
63-
"User-Agent": "@credal/sdk/0.0.17",
62+
"X-Fern-SDK-Version": "0.0.18",
63+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
141-
"User-Agent": "@credal/sdk/0.0.17",
140+
"X-Fern-SDK-Version": "0.0.18",
141+
"User-Agent": "@credal/sdk/0.0.18",
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.17",
211-
"User-Agent": "@credal/sdk/0.0.17",
210+
"X-Fern-SDK-Version": "0.0.18",
211+
"User-Agent": "@credal/sdk/0.0.18",
212212
"X-Fern-Runtime": core.RUNTIME.type,
213213
"X-Fern-Runtime-Version": core.RUNTIME.version,
214214
},

Diff for: src/api/resources/search/client/Client.ts

+2-2
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.17",
73-
"User-Agent": "@credal/sdk/0.0.17",
72+
"X-Fern-SDK-Version": "0.0.18",
73+
"User-Agent": "@credal/sdk/0.0.18",
7474
"X-Fern-Runtime": core.RUNTIME.type,
7575
"X-Fern-Runtime-Version": core.RUNTIME.version,
7676
},

Diff for: src/api/resources/users/client/Client.ts

+2-2
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.17",
65-
"User-Agent": "@credal/sdk/0.0.17",
64+
"X-Fern-SDK-Version": "0.0.18",
65+
"User-Agent": "@credal/sdk/0.0.18",
6666
"X-Fern-Runtime": core.RUNTIME.type,
6767
"X-Fern-Runtime-Version": core.RUNTIME.version,
6868
},

0 commit comments

Comments
 (0)