@proteos/sdk 0.84.0 → 0.85.0
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/dist/index.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +96 -6
- package/dist/index.d.ts +96 -6
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/discovery/index.ts +35 -3
- package/src/discovery/types.ts +84 -2
- package/src/index.ts +8 -0
package/dist/index.cjs
CHANGED
|
@@ -3249,9 +3249,11 @@ var DISCOVERY_BASE_PATH = "/discovery/v1";
|
|
|
3249
3249
|
var encode = encodeURIComponent;
|
|
3250
3250
|
var DiscoveryClient = class {
|
|
3251
3251
|
evidence;
|
|
3252
|
+
narrations;
|
|
3252
3253
|
platform;
|
|
3253
3254
|
constructor(client) {
|
|
3254
3255
|
this.evidence = new DiscoveryEvidenceServiceImpl(client);
|
|
3256
|
+
this.narrations = new DiscoveryEvidenceNarrationServiceImpl(client);
|
|
3255
3257
|
this.platform = new PlatformDiscoveryEvidenceServiceImpl(client);
|
|
3256
3258
|
}
|
|
3257
3259
|
};
|
|
@@ -3282,6 +3284,21 @@ var DiscoveryEvidenceServiceImpl = class {
|
|
|
3282
3284
|
);
|
|
3283
3285
|
}
|
|
3284
3286
|
};
|
|
3287
|
+
var DiscoveryEvidenceNarrationServiceImpl = class {
|
|
3288
|
+
constructor(client) {
|
|
3289
|
+
this.client = client;
|
|
3290
|
+
}
|
|
3291
|
+
client;
|
|
3292
|
+
create(request) {
|
|
3293
|
+
return this.client.request("POST", `${DISCOVERY_BASE_PATH}/evidence-narrations`, request);
|
|
3294
|
+
}
|
|
3295
|
+
get(id) {
|
|
3296
|
+
return this.client.request("GET", `${DISCOVERY_BASE_PATH}/evidence-narrations/${encode(id)}`);
|
|
3297
|
+
}
|
|
3298
|
+
async delete(id) {
|
|
3299
|
+
await this.client.request("DELETE", `${DISCOVERY_BASE_PATH}/evidence-narrations/${encode(id)}`);
|
|
3300
|
+
}
|
|
3301
|
+
};
|
|
3285
3302
|
var PlatformDiscoveryEvidenceServiceImpl = class {
|
|
3286
3303
|
constructor(client) {
|
|
3287
3304
|
this.client = client;
|