notte-sdk 0.0.3 → 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.js CHANGED
@@ -44,6 +44,7 @@ __export(index_exports, {
44
44
  client: () => client,
45
45
  createClient: () => createClient2,
46
46
  default: () => NotteClient,
47
+ deleteSecret: () => deleteSecret,
47
48
  fileDownload: () => fileDownload,
48
49
  fileListDownloads: () => fileListDownloads,
49
50
  fileListUploads: () => fileListUploads,
@@ -61,6 +62,7 @@ __export(index_exports, {
61
62
  functionScheduleSet: () => functionScheduleSet,
62
63
  functionUpdate: () => functionUpdate,
63
64
  getScript: () => getScript,
65
+ getSecret: () => getSecret,
64
66
  getSessionScript: () => getSessionScript,
65
67
  getUsage: () => getUsage,
66
68
  getUsageLogs: () => getUsageLogs,
@@ -70,6 +72,7 @@ __export(index_exports, {
70
72
  listFunctionRunsByFunctionId: () => listFunctionRunsByFunctionId,
71
73
  listFunctions: () => listFunctions,
72
74
  listPersonas: () => listPersonas,
75
+ listSecrets: () => listSecrets,
73
76
  listSessions: () => listSessions,
74
77
  listVaults: () => listVaults,
75
78
  nudgePrompt: () => nudgePrompt,
@@ -88,6 +91,7 @@ __export(index_exports, {
88
91
  profileList: () => profileList,
89
92
  scrapeFromHtml: () => scrapeFromHtml,
90
93
  scrapeWebpage: () => scrapeWebpage,
94
+ searchWeb: () => searchWeb,
91
95
  sessionCookiesGet: () => sessionCookiesGet,
92
96
  sessionCookiesSet: () => sessionCookiesSet,
93
97
  sessionDebugInfo: () => sessionDebugInfo,
@@ -97,6 +101,7 @@ __export(index_exports, {
97
101
  sessionStart: () => sessionStart,
98
102
  sessionStatus: () => sessionStatus,
99
103
  sessionStop: () => sessionStop,
104
+ storeSecret: () => storeSecret,
100
105
  vaultCreate: () => vaultCreate,
101
106
  vaultCredentialsAdd: () => vaultCredentialsAdd,
102
107
  vaultCredentialsDelete: () => vaultCredentialsDelete,
@@ -1354,6 +1359,30 @@ var anythingStart = (options) => (options.client ?? client).post({
1354
1359
  ...options.headers
1355
1360
  }
1356
1361
  });
1362
+ var listSecrets = (options) => (options?.client ?? client).get({
1363
+ security: [{ scheme: "bearer", type: "http" }],
1364
+ url: "/secrets",
1365
+ ...options
1366
+ });
1367
+ var storeSecret = (options) => (options.client ?? client).post({
1368
+ security: [{ scheme: "bearer", type: "http" }],
1369
+ url: "/secrets",
1370
+ ...options,
1371
+ headers: {
1372
+ "Content-Type": "application/json",
1373
+ ...options.headers
1374
+ }
1375
+ });
1376
+ var getSecret = (options) => (options.client ?? client).get({
1377
+ security: [{ scheme: "bearer", type: "http" }],
1378
+ url: "/secrets/{name}",
1379
+ ...options
1380
+ });
1381
+ var deleteSecret = (options) => (options.client ?? client).delete({
1382
+ security: [{ scheme: "bearer", type: "http" }],
1383
+ url: "/secrets/{secret_id}",
1384
+ ...options
1385
+ });
1357
1386
  var healthCheck = (options) => (options?.client ?? client).get({ url: "/health", ...options });
1358
1387
  var scrapeWebpage = (options) => (options.client ?? client).post({
1359
1388
  security: [{ scheme: "bearer", type: "http" }],
@@ -1364,6 +1393,15 @@ var scrapeWebpage = (options) => (options.client ?? client).post({
1364
1393
  ...options.headers
1365
1394
  }
1366
1395
  });
1396
+ var searchWeb = (options) => (options.client ?? client).post({
1397
+ security: [{ scheme: "bearer", type: "http" }],
1398
+ url: "/search",
1399
+ ...options,
1400
+ headers: {
1401
+ "Content-Type": "application/json",
1402
+ ...options.headers
1403
+ }
1404
+ });
1367
1405
  var scrapeFromHtml = (options) => (options.client ?? client).post({
1368
1406
  security: [{ scheme: "bearer", type: "http" }],
1369
1407
  url: "/scrape_from_html",
@@ -2587,7 +2625,7 @@ var NottePersona = class {
2587
2625
  };
2588
2626
 
2589
2627
  // src/version.ts
2590
- var SDK_VERSION = true ? "0.0.3" : "dev";
2628
+ var SDK_VERSION = true ? "0.0.5" : "dev";
2591
2629
 
2592
2630
  // src/functions.ts
2593
2631
  var NotteFunction = class {
@@ -2846,6 +2884,7 @@ var createClient2 = (config) => {
2846
2884
  anythingStart,
2847
2885
  client,
2848
2886
  createClient,
2887
+ deleteSecret,
2849
2888
  fileDownload,
2850
2889
  fileListDownloads,
2851
2890
  fileListUploads,
@@ -2863,6 +2902,7 @@ var createClient2 = (config) => {
2863
2902
  functionScheduleSet,
2864
2903
  functionUpdate,
2865
2904
  getScript,
2905
+ getSecret,
2866
2906
  getSessionScript,
2867
2907
  getUsage,
2868
2908
  getUsageLogs,
@@ -2872,6 +2912,7 @@ var createClient2 = (config) => {
2872
2912
  listFunctionRunsByFunctionId,
2873
2913
  listFunctions,
2874
2914
  listPersonas,
2915
+ listSecrets,
2875
2916
  listSessions,
2876
2917
  listVaults,
2877
2918
  nudgePrompt,
@@ -2890,6 +2931,7 @@ var createClient2 = (config) => {
2890
2931
  profileList,
2891
2932
  scrapeFromHtml,
2892
2933
  scrapeWebpage,
2934
+ searchWeb,
2893
2935
  sessionCookiesGet,
2894
2936
  sessionCookiesSet,
2895
2937
  sessionDebugInfo,
@@ -2899,6 +2941,7 @@ var createClient2 = (config) => {
2899
2941
  sessionStart,
2900
2942
  sessionStatus,
2901
2943
  sessionStop,
2944
+ storeSecret,
2902
2945
  vaultCreate,
2903
2946
  vaultCredentialsAdd,
2904
2947
  vaultCredentialsDelete,