@credal/sdk 0.0.18 → 0.0.19

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 (26) hide show
  1. package/README.md +6 -17
  2. package/api/resources/actions/client/Client.js +2 -2
  3. package/api/resources/copilots/client/Client.js +18 -18
  4. package/api/resources/documentCatalog/client/Client.js +6 -6
  5. package/api/resources/documentCollections/client/Client.js +12 -12
  6. package/api/resources/permissionsService/client/Client.js +6 -6
  7. package/api/resources/search/client/Client.js +2 -2
  8. package/api/resources/search/types/DocumentCollectionSearchResult.d.ts +2 -0
  9. package/api/resources/users/client/Client.js +2 -2
  10. package/dist/api/resources/actions/client/Client.js +2 -2
  11. package/dist/api/resources/copilots/client/Client.js +18 -18
  12. package/dist/api/resources/documentCatalog/client/Client.js +6 -6
  13. package/dist/api/resources/documentCollections/client/Client.js +12 -12
  14. package/dist/api/resources/permissionsService/client/Client.js +6 -6
  15. package/dist/api/resources/search/client/Client.js +2 -2
  16. package/dist/api/resources/search/types/DocumentCollectionSearchResult.d.ts +2 -0
  17. package/dist/api/resources/users/client/Client.js +2 -2
  18. package/dist/serialization/resources/search/types/DocumentCollectionSearchResult.d.ts +2 -0
  19. package/dist/serialization/resources/search/types/DocumentCollectionSearchResult.js +2 -0
  20. package/dist/version.d.ts +1 -1
  21. package/dist/version.js +1 -1
  22. package/package.json +1 -1
  23. package/serialization/resources/search/types/DocumentCollectionSearchResult.d.ts +2 -0
  24. package/serialization/resources/search/types/DocumentCollectionSearchResult.js +2 -0
  25. package/version.d.ts +1 -1
  26. package/version.js +1 -1
package/README.md CHANGED
@@ -1,17 +1,13 @@
1
1
  <div align="center">
2
2
  <img src="./credal-dark-logo.svg" width="400" />
3
- <h1>Credal Typescript SDK</h1>
3
+ </div>
4
4
 
5
- <p>
6
- <strong>The Credal Typescript Library provides convenient access to the Credal API from applications written in Typescript.</strong>
7
- </p>
5
+ # Credal Typescript Library
8
6
 
9
- <br>
10
- <div>
11
- <a href="https://buildwithfern.com/"><img src="https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen">
12
- </div>
13
- <br>
14
- </div>
7
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](/?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fcredal-ai%2Fcredal-typescript-sdk)
8
+ [![npm shield](https://img.shields.io/npm/v/@credal/sdk)](https://www.npmjs.com/package/@credal/sdk)
9
+
10
+ The Credal TypeScript library provides convenient access to the Credal API from TypeScript/JavaScript.
15
11
 
16
12
  # Documentation
17
13
 
@@ -159,10 +155,3 @@ const credal = new CredalClient({
159
155
  fetcher: // provide your implementation here
160
156
  });
161
157
  ```
162
-
163
-
164
- # Beta Status
165
-
166
- This SDK is in beta, and there may be breaking changes between versions without a major
167
- version update. Therefore, we recommend pinning the package version to a specific version.
168
- This way, you can install the same version each time without breaking changes.
@@ -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.18",
85
- "User-Agent": "@credal/sdk/0.0.18",
84
+ "X-Fern-SDK-Version": "0.0.19",
85
+ "User-Agent": "@credal/sdk/0.0.19",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },
@@ -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.18",
78
- "User-Agent": "@credal/sdk/0.0.18",
77
+ "X-Fern-SDK-Version": "0.0.19",
78
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
141
- "User-Agent": "@credal/sdk/0.0.18",
140
+ "X-Fern-SDK-Version": "0.0.19",
141
+ "User-Agent": "@credal/sdk/0.0.19",
142
142
  "X-Fern-Runtime": core.RUNTIME.type,
143
143
  "X-Fern-Runtime-Version": core.RUNTIME.version,
144
144
  },
@@ -203,8 +203,8 @@ class Copilots {
203
203
  Authorization: yield this._getAuthorizationHeader(),
204
204
  "X-Fern-Language": "JavaScript",
205
205
  "X-Fern-SDK-Name": "@credal/sdk",
206
- "X-Fern-SDK-Version": "0.0.18",
207
- "User-Agent": "@credal/sdk/0.0.18",
206
+ "X-Fern-SDK-Version": "0.0.19",
207
+ "User-Agent": "@credal/sdk/0.0.19",
208
208
  "X-Fern-Runtime": core.RUNTIME.type,
209
209
  "X-Fern-Runtime-Version": core.RUNTIME.version,
210
210
  },
@@ -267,8 +267,8 @@ class Copilots {
267
267
  Authorization: yield this._getAuthorizationHeader(),
268
268
  "X-Fern-Language": "JavaScript",
269
269
  "X-Fern-SDK-Name": "@credal/sdk",
270
- "X-Fern-SDK-Version": "0.0.18",
271
- "User-Agent": "@credal/sdk/0.0.18",
270
+ "X-Fern-SDK-Version": "0.0.19",
271
+ "User-Agent": "@credal/sdk/0.0.19",
272
272
  "X-Fern-Runtime": core.RUNTIME.type,
273
273
  "X-Fern-Runtime-Version": core.RUNTIME.version,
274
274
  },
@@ -321,8 +321,8 @@ class Copilots {
321
321
  Authorization: yield this._getAuthorizationHeader(),
322
322
  "X-Fern-Language": "JavaScript",
323
323
  "X-Fern-SDK-Name": "@credal/sdk",
324
- "X-Fern-SDK-Version": "0.0.18",
325
- "User-Agent": "@credal/sdk/0.0.18",
324
+ "X-Fern-SDK-Version": "0.0.19",
325
+ "User-Agent": "@credal/sdk/0.0.19",
326
326
  "X-Fern-Runtime": core.RUNTIME.type,
327
327
  "X-Fern-Runtime-Version": core.RUNTIME.version,
328
328
  },
@@ -395,8 +395,8 @@ class Copilots {
395
395
  Authorization: yield this._getAuthorizationHeader(),
396
396
  "X-Fern-Language": "JavaScript",
397
397
  "X-Fern-SDK-Name": "@credal/sdk",
398
- "X-Fern-SDK-Version": "0.0.18",
399
- "User-Agent": "@credal/sdk/0.0.18",
398
+ "X-Fern-SDK-Version": "0.0.19",
399
+ "User-Agent": "@credal/sdk/0.0.19",
400
400
  "X-Fern-Runtime": core.RUNTIME.type,
401
401
  "X-Fern-Runtime-Version": core.RUNTIME.version,
402
402
  },
@@ -453,8 +453,8 @@ class Copilots {
453
453
  Authorization: yield this._getAuthorizationHeader(),
454
454
  "X-Fern-Language": "JavaScript",
455
455
  "X-Fern-SDK-Name": "@credal/sdk",
456
- "X-Fern-SDK-Version": "0.0.18",
457
- "User-Agent": "@credal/sdk/0.0.18",
456
+ "X-Fern-SDK-Version": "0.0.19",
457
+ "User-Agent": "@credal/sdk/0.0.19",
458
458
  "X-Fern-Runtime": core.RUNTIME.type,
459
459
  "X-Fern-Runtime-Version": core.RUNTIME.version,
460
460
  },
@@ -521,8 +521,8 @@ class Copilots {
521
521
  Authorization: yield this._getAuthorizationHeader(),
522
522
  "X-Fern-Language": "JavaScript",
523
523
  "X-Fern-SDK-Name": "@credal/sdk",
524
- "X-Fern-SDK-Version": "0.0.18",
525
- "User-Agent": "@credal/sdk/0.0.18",
524
+ "X-Fern-SDK-Version": "0.0.19",
525
+ "User-Agent": "@credal/sdk/0.0.19",
526
526
  "X-Fern-Runtime": core.RUNTIME.type,
527
527
  "X-Fern-Runtime-Version": core.RUNTIME.version,
528
528
  },
@@ -576,8 +576,8 @@ class Copilots {
576
576
  Authorization: yield this._getAuthorizationHeader(),
577
577
  "X-Fern-Language": "JavaScript",
578
578
  "X-Fern-SDK-Name": "@credal/sdk",
579
- "X-Fern-SDK-Version": "0.0.18",
580
- "User-Agent": "@credal/sdk/0.0.18",
579
+ "X-Fern-SDK-Version": "0.0.19",
580
+ "User-Agent": "@credal/sdk/0.0.19",
581
581
  "X-Fern-Runtime": core.RUNTIME.type,
582
582
  "X-Fern-Runtime-Version": core.RUNTIME.version,
583
583
  },
@@ -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.18",
75
- "User-Agent": "@credal/sdk/0.0.18",
74
+ "X-Fern-SDK-Version": "0.0.19",
75
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
138
- "User-Agent": "@credal/sdk/0.0.18",
137
+ "X-Fern-SDK-Version": "0.0.19",
138
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
221
- "User-Agent": "@credal/sdk/0.0.18",
220
+ "X-Fern-SDK-Version": "0.0.19",
221
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
82
- "User-Agent": "@credal/sdk/0.0.18",
81
+ "X-Fern-SDK-Version": "0.0.19",
82
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
148
- "User-Agent": "@credal/sdk/0.0.18",
147
+ "X-Fern-SDK-Version": "0.0.19",
148
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
212
- "User-Agent": "@credal/sdk/0.0.18",
211
+ "X-Fern-SDK-Version": "0.0.19",
212
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
274
- "User-Agent": "@credal/sdk/0.0.18",
273
+ "X-Fern-SDK-Version": "0.0.19",
274
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
352
- "User-Agent": "@credal/sdk/0.0.18",
351
+ "X-Fern-SDK-Version": "0.0.19",
352
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
432
- "User-Agent": "@credal/sdk/0.0.18",
431
+ "X-Fern-SDK-Version": "0.0.19",
432
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
78
- "User-Agent": "@credal/sdk/0.0.18",
77
+ "X-Fern-SDK-Version": "0.0.19",
78
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
150
- "User-Agent": "@credal/sdk/0.0.18",
149
+ "X-Fern-SDK-Version": "0.0.19",
150
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
214
- "User-Agent": "@credal/sdk/0.0.18",
213
+ "X-Fern-SDK-Version": "0.0.19",
214
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
88
- "User-Agent": "@credal/sdk/0.0.18",
87
+ "X-Fern-SDK-Version": "0.0.19",
88
+ "User-Agent": "@credal/sdk/0.0.19",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -5,6 +5,8 @@ import * as Credal from "../../../index";
5
5
  export interface DocumentCollectionSearchResult {
6
6
  documentId: string;
7
7
  documentName: string;
8
+ documentUrl: string;
9
+ documentExternalId: string;
8
10
  documentMetadata: Record<string, string>;
9
11
  chunks: Credal.SearchResultChunk[];
10
12
  mergedContents?: string;
@@ -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.18",
83
- "User-Agent": "@credal/sdk/0.0.18",
82
+ "X-Fern-SDK-Version": "0.0.19",
83
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
85
- "User-Agent": "@credal/sdk/0.0.18",
84
+ "X-Fern-SDK-Version": "0.0.19",
85
+ "User-Agent": "@credal/sdk/0.0.19",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },
@@ -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.18",
78
- "User-Agent": "@credal/sdk/0.0.18",
77
+ "X-Fern-SDK-Version": "0.0.19",
78
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
141
- "User-Agent": "@credal/sdk/0.0.18",
140
+ "X-Fern-SDK-Version": "0.0.19",
141
+ "User-Agent": "@credal/sdk/0.0.19",
142
142
  "X-Fern-Runtime": core.RUNTIME.type,
143
143
  "X-Fern-Runtime-Version": core.RUNTIME.version,
144
144
  },
@@ -203,8 +203,8 @@ class Copilots {
203
203
  Authorization: yield this._getAuthorizationHeader(),
204
204
  "X-Fern-Language": "JavaScript",
205
205
  "X-Fern-SDK-Name": "@credal/sdk",
206
- "X-Fern-SDK-Version": "0.0.18",
207
- "User-Agent": "@credal/sdk/0.0.18",
206
+ "X-Fern-SDK-Version": "0.0.19",
207
+ "User-Agent": "@credal/sdk/0.0.19",
208
208
  "X-Fern-Runtime": core.RUNTIME.type,
209
209
  "X-Fern-Runtime-Version": core.RUNTIME.version,
210
210
  },
@@ -267,8 +267,8 @@ class Copilots {
267
267
  Authorization: yield this._getAuthorizationHeader(),
268
268
  "X-Fern-Language": "JavaScript",
269
269
  "X-Fern-SDK-Name": "@credal/sdk",
270
- "X-Fern-SDK-Version": "0.0.18",
271
- "User-Agent": "@credal/sdk/0.0.18",
270
+ "X-Fern-SDK-Version": "0.0.19",
271
+ "User-Agent": "@credal/sdk/0.0.19",
272
272
  "X-Fern-Runtime": core.RUNTIME.type,
273
273
  "X-Fern-Runtime-Version": core.RUNTIME.version,
274
274
  },
@@ -321,8 +321,8 @@ class Copilots {
321
321
  Authorization: yield this._getAuthorizationHeader(),
322
322
  "X-Fern-Language": "JavaScript",
323
323
  "X-Fern-SDK-Name": "@credal/sdk",
324
- "X-Fern-SDK-Version": "0.0.18",
325
- "User-Agent": "@credal/sdk/0.0.18",
324
+ "X-Fern-SDK-Version": "0.0.19",
325
+ "User-Agent": "@credal/sdk/0.0.19",
326
326
  "X-Fern-Runtime": core.RUNTIME.type,
327
327
  "X-Fern-Runtime-Version": core.RUNTIME.version,
328
328
  },
@@ -395,8 +395,8 @@ class Copilots {
395
395
  Authorization: yield this._getAuthorizationHeader(),
396
396
  "X-Fern-Language": "JavaScript",
397
397
  "X-Fern-SDK-Name": "@credal/sdk",
398
- "X-Fern-SDK-Version": "0.0.18",
399
- "User-Agent": "@credal/sdk/0.0.18",
398
+ "X-Fern-SDK-Version": "0.0.19",
399
+ "User-Agent": "@credal/sdk/0.0.19",
400
400
  "X-Fern-Runtime": core.RUNTIME.type,
401
401
  "X-Fern-Runtime-Version": core.RUNTIME.version,
402
402
  },
@@ -453,8 +453,8 @@ class Copilots {
453
453
  Authorization: yield this._getAuthorizationHeader(),
454
454
  "X-Fern-Language": "JavaScript",
455
455
  "X-Fern-SDK-Name": "@credal/sdk",
456
- "X-Fern-SDK-Version": "0.0.18",
457
- "User-Agent": "@credal/sdk/0.0.18",
456
+ "X-Fern-SDK-Version": "0.0.19",
457
+ "User-Agent": "@credal/sdk/0.0.19",
458
458
  "X-Fern-Runtime": core.RUNTIME.type,
459
459
  "X-Fern-Runtime-Version": core.RUNTIME.version,
460
460
  },
@@ -521,8 +521,8 @@ class Copilots {
521
521
  Authorization: yield this._getAuthorizationHeader(),
522
522
  "X-Fern-Language": "JavaScript",
523
523
  "X-Fern-SDK-Name": "@credal/sdk",
524
- "X-Fern-SDK-Version": "0.0.18",
525
- "User-Agent": "@credal/sdk/0.0.18",
524
+ "X-Fern-SDK-Version": "0.0.19",
525
+ "User-Agent": "@credal/sdk/0.0.19",
526
526
  "X-Fern-Runtime": core.RUNTIME.type,
527
527
  "X-Fern-Runtime-Version": core.RUNTIME.version,
528
528
  },
@@ -576,8 +576,8 @@ class Copilots {
576
576
  Authorization: yield this._getAuthorizationHeader(),
577
577
  "X-Fern-Language": "JavaScript",
578
578
  "X-Fern-SDK-Name": "@credal/sdk",
579
- "X-Fern-SDK-Version": "0.0.18",
580
- "User-Agent": "@credal/sdk/0.0.18",
579
+ "X-Fern-SDK-Version": "0.0.19",
580
+ "User-Agent": "@credal/sdk/0.0.19",
581
581
  "X-Fern-Runtime": core.RUNTIME.type,
582
582
  "X-Fern-Runtime-Version": core.RUNTIME.version,
583
583
  },
@@ -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.18",
75
- "User-Agent": "@credal/sdk/0.0.18",
74
+ "X-Fern-SDK-Version": "0.0.19",
75
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
138
- "User-Agent": "@credal/sdk/0.0.18",
137
+ "X-Fern-SDK-Version": "0.0.19",
138
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
221
- "User-Agent": "@credal/sdk/0.0.18",
220
+ "X-Fern-SDK-Version": "0.0.19",
221
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
82
- "User-Agent": "@credal/sdk/0.0.18",
81
+ "X-Fern-SDK-Version": "0.0.19",
82
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
148
- "User-Agent": "@credal/sdk/0.0.18",
147
+ "X-Fern-SDK-Version": "0.0.19",
148
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
212
- "User-Agent": "@credal/sdk/0.0.18",
211
+ "X-Fern-SDK-Version": "0.0.19",
212
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
274
- "User-Agent": "@credal/sdk/0.0.18",
273
+ "X-Fern-SDK-Version": "0.0.19",
274
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
352
- "User-Agent": "@credal/sdk/0.0.18",
351
+ "X-Fern-SDK-Version": "0.0.19",
352
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
432
- "User-Agent": "@credal/sdk/0.0.18",
431
+ "X-Fern-SDK-Version": "0.0.19",
432
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
78
- "User-Agent": "@credal/sdk/0.0.18",
77
+ "X-Fern-SDK-Version": "0.0.19",
78
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
150
- "User-Agent": "@credal/sdk/0.0.18",
149
+ "X-Fern-SDK-Version": "0.0.19",
150
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
214
- "User-Agent": "@credal/sdk/0.0.18",
213
+ "X-Fern-SDK-Version": "0.0.19",
214
+ "User-Agent": "@credal/sdk/0.0.19",
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.18",
88
- "User-Agent": "@credal/sdk/0.0.18",
87
+ "X-Fern-SDK-Version": "0.0.19",
88
+ "User-Agent": "@credal/sdk/0.0.19",
89
89
  "X-Fern-Runtime": core.RUNTIME.type,
90
90
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
91
  },
@@ -5,6 +5,8 @@ import * as Credal from "../../../index";
5
5
  export interface DocumentCollectionSearchResult {
6
6
  documentId: string;
7
7
  documentName: string;
8
+ documentUrl: string;
9
+ documentExternalId: string;
8
10
  documentMetadata: Record<string, string>;
9
11
  chunks: Credal.SearchResultChunk[];
10
12
  mergedContents?: string;
@@ -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.18",
83
- "User-Agent": "@credal/sdk/0.0.18",
82
+ "X-Fern-SDK-Version": "0.0.19",
83
+ "User-Agent": "@credal/sdk/0.0.19",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -10,6 +10,8 @@ export declare namespace DocumentCollectionSearchResult {
10
10
  interface Raw {
11
11
  documentId: string;
12
12
  documentName: string;
13
+ documentUrl: string;
14
+ documentExternalId: string;
13
15
  documentMetadata: Record<string, string>;
14
16
  chunks: SearchResultChunk.Raw[];
15
17
  mergedContents?: string | null;
@@ -32,6 +32,8 @@ const SearchResultChunk_1 = require("./SearchResultChunk");
32
32
  exports.DocumentCollectionSearchResult = core.serialization.object({
33
33
  documentId: core.serialization.string(),
34
34
  documentName: core.serialization.string(),
35
+ documentUrl: core.serialization.string(),
36
+ documentExternalId: core.serialization.string(),
35
37
  documentMetadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
36
38
  chunks: core.serialization.list(SearchResultChunk_1.SearchResultChunk),
37
39
  mergedContents: core.serialization.string().optional(),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.18";
1
+ export declare const SDK_VERSION = "0.0.19";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.18";
4
+ exports.SDK_VERSION = "0.0.19";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/sdk",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "private": false,
5
5
  "repository": "https://github.com/credal-ai/credal-typescript-sdk",
6
6
  "main": "./index.js",
@@ -10,6 +10,8 @@ export declare namespace DocumentCollectionSearchResult {
10
10
  interface Raw {
11
11
  documentId: string;
12
12
  documentName: string;
13
+ documentUrl: string;
14
+ documentExternalId: string;
13
15
  documentMetadata: Record<string, string>;
14
16
  chunks: SearchResultChunk.Raw[];
15
17
  mergedContents?: string | null;
@@ -32,6 +32,8 @@ const SearchResultChunk_1 = require("./SearchResultChunk");
32
32
  exports.DocumentCollectionSearchResult = core.serialization.object({
33
33
  documentId: core.serialization.string(),
34
34
  documentName: core.serialization.string(),
35
+ documentUrl: core.serialization.string(),
36
+ documentExternalId: core.serialization.string(),
35
37
  documentMetadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
36
38
  chunks: core.serialization.list(SearchResultChunk_1.SearchResultChunk),
37
39
  mergedContents: core.serialization.string().optional(),
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.18";
1
+ export declare const SDK_VERSION = "0.0.19";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.18";
4
+ exports.SDK_VERSION = "0.0.19";