notte-sdk 0.0.4 → 0.0.5

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.mjs CHANGED
@@ -1249,6 +1249,30 @@ var anythingStart = (options) => (options.client ?? client).post({
1249
1249
  ...options.headers
1250
1250
  }
1251
1251
  });
1252
+ var listSecrets = (options) => (options?.client ?? client).get({
1253
+ security: [{ scheme: "bearer", type: "http" }],
1254
+ url: "/secrets",
1255
+ ...options
1256
+ });
1257
+ var storeSecret = (options) => (options.client ?? client).post({
1258
+ security: [{ scheme: "bearer", type: "http" }],
1259
+ url: "/secrets",
1260
+ ...options,
1261
+ headers: {
1262
+ "Content-Type": "application/json",
1263
+ ...options.headers
1264
+ }
1265
+ });
1266
+ var getSecret = (options) => (options.client ?? client).get({
1267
+ security: [{ scheme: "bearer", type: "http" }],
1268
+ url: "/secrets/{name}",
1269
+ ...options
1270
+ });
1271
+ var deleteSecret = (options) => (options.client ?? client).delete({
1272
+ security: [{ scheme: "bearer", type: "http" }],
1273
+ url: "/secrets/{secret_id}",
1274
+ ...options
1275
+ });
1252
1276
  var healthCheck = (options) => (options?.client ?? client).get({ url: "/health", ...options });
1253
1277
  var scrapeWebpage = (options) => (options.client ?? client).post({
1254
1278
  security: [{ scheme: "bearer", type: "http" }],
@@ -2491,7 +2515,7 @@ var NottePersona = class {
2491
2515
  };
2492
2516
 
2493
2517
  // src/version.ts
2494
- var SDK_VERSION = true ? "0.0.4" : "dev";
2518
+ var SDK_VERSION = true ? "0.0.5" : "dev";
2495
2519
 
2496
2520
  // src/functions.ts
2497
2521
  var NotteFunction = class {
@@ -2750,6 +2774,7 @@ export {
2750
2774
  client,
2751
2775
  createClient2 as createClient,
2752
2776
  NotteClient as default,
2777
+ deleteSecret,
2753
2778
  fileDownload,
2754
2779
  fileListDownloads,
2755
2780
  fileListUploads,
@@ -2767,6 +2792,7 @@ export {
2767
2792
  functionScheduleSet,
2768
2793
  functionUpdate,
2769
2794
  getScript,
2795
+ getSecret,
2770
2796
  getSessionScript,
2771
2797
  getUsage,
2772
2798
  getUsageLogs,
@@ -2776,6 +2802,7 @@ export {
2776
2802
  listFunctionRunsByFunctionId,
2777
2803
  listFunctions,
2778
2804
  listPersonas,
2805
+ listSecrets,
2779
2806
  listSessions,
2780
2807
  listVaults,
2781
2808
  nudgePrompt,
@@ -2804,6 +2831,7 @@ export {
2804
2831
  sessionStart,
2805
2832
  sessionStatus,
2806
2833
  sessionStop,
2834
+ storeSecret,
2807
2835
  vaultCreate,
2808
2836
  vaultCredentialsAdd,
2809
2837
  vaultCredentialsDelete,