notte-sdk 0.0.17 → 0.0.18
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.d.mts +2655 -4202
- package/dist/index.d.ts +2655 -4202
- package/dist/index.js +9 -181
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -160
- package/dist/index.mjs.map +1 -1
- package/dist/proxy/core.js +0 -31
- package/dist/proxy/core.js.map +1 -1
- package/dist/proxy/core.mjs +0 -31
- package/dist/proxy/core.mjs.map +1 -1
- package/dist/proxy/next.js +0 -31
- package/dist/proxy/next.js.map +1 -1
- package/dist/proxy/next.mjs +0 -31
- package/dist/proxy/next.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
// src/version.ts
|
|
9
|
-
var SDK_VERSION = true ? "0.0.
|
|
9
|
+
var SDK_VERSION = true ? "0.0.18" : "dev";
|
|
10
10
|
var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
|
|
11
11
|
|
|
12
12
|
// src/version-check.ts
|
|
@@ -1282,143 +1282,6 @@ var personaSmsList = (options) => (options.client ?? client).get({
|
|
|
1282
1282
|
url: "/personas/{persona_id}/sms",
|
|
1283
1283
|
...options
|
|
1284
1284
|
});
|
|
1285
|
-
var managedAuthTemplatesList = (options) => (options?.client ?? client).get({
|
|
1286
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1287
|
-
url: "/managed-auth/templates",
|
|
1288
|
-
...options
|
|
1289
|
-
});
|
|
1290
|
-
var managedAuthTemplateCreate = (options) => (options.client ?? client).post({
|
|
1291
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1292
|
-
url: "/managed-auth/templates",
|
|
1293
|
-
...options,
|
|
1294
|
-
headers: {
|
|
1295
|
-
"Content-Type": "application/json",
|
|
1296
|
-
...options.headers
|
|
1297
|
-
}
|
|
1298
|
-
});
|
|
1299
|
-
var managedAuthAdminTemplatesList = (options) => (options?.client ?? client).get({
|
|
1300
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1301
|
-
url: "/managed-auth/templates/admin",
|
|
1302
|
-
...options
|
|
1303
|
-
});
|
|
1304
|
-
var managedAuthTemplateExport = (options) => (options.client ?? client).get({
|
|
1305
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1306
|
-
url: "/managed-auth/templates/{slug}/export",
|
|
1307
|
-
...options
|
|
1308
|
-
});
|
|
1309
|
-
var managedAuthTemplateImport = (options) => (options.client ?? client).post({
|
|
1310
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1311
|
-
url: "/managed-auth/templates/import",
|
|
1312
|
-
...options,
|
|
1313
|
-
headers: {
|
|
1314
|
-
"Content-Type": "application/json",
|
|
1315
|
-
...options.headers
|
|
1316
|
-
}
|
|
1317
|
-
});
|
|
1318
|
-
var managedAuthTemplateUpdate = (options) => (options.client ?? client).patch({
|
|
1319
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1320
|
-
url: "/managed-auth/templates/{template_id}",
|
|
1321
|
-
...options,
|
|
1322
|
-
headers: {
|
|
1323
|
-
"Content-Type": "application/json",
|
|
1324
|
-
...options.headers
|
|
1325
|
-
}
|
|
1326
|
-
});
|
|
1327
|
-
var managedAuthConnectionsList = (options) => (options?.client ?? client).get({
|
|
1328
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1329
|
-
url: "/managed-auth/connections",
|
|
1330
|
-
...options
|
|
1331
|
-
});
|
|
1332
|
-
var managedAuthConnectionCreate = (options) => (options.client ?? client).post({
|
|
1333
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1334
|
-
url: "/managed-auth/connections",
|
|
1335
|
-
...options,
|
|
1336
|
-
headers: {
|
|
1337
|
-
"Content-Type": "application/json",
|
|
1338
|
-
...options.headers
|
|
1339
|
-
}
|
|
1340
|
-
});
|
|
1341
|
-
var managedAuthFunctionTemplatesGet = (options) => (options?.client ?? client).get({
|
|
1342
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1343
|
-
url: "/managed-auth/function-templates",
|
|
1344
|
-
...options
|
|
1345
|
-
});
|
|
1346
|
-
var managedAuthConnectionPromote = (options) => (options.client ?? client).post({
|
|
1347
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1348
|
-
url: "/managed-auth/connections/{connection_id}/promote",
|
|
1349
|
-
...options,
|
|
1350
|
-
headers: {
|
|
1351
|
-
"Content-Type": "application/json",
|
|
1352
|
-
...options.headers
|
|
1353
|
-
}
|
|
1354
|
-
});
|
|
1355
|
-
var managedAuthConnectionDisconnect = (options) => (options.client ?? client).delete({
|
|
1356
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1357
|
-
url: "/managed-auth/connections/{connection_id}",
|
|
1358
|
-
...options
|
|
1359
|
-
});
|
|
1360
|
-
var managedAuthConnectionGet = (options) => (options.client ?? client).get({
|
|
1361
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1362
|
-
url: "/managed-auth/connections/{connection_id}",
|
|
1363
|
-
...options
|
|
1364
|
-
});
|
|
1365
|
-
var managedAuthConnectionUpdate = (options) => (options.client ?? client).patch({
|
|
1366
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1367
|
-
url: "/managed-auth/connections/{connection_id}",
|
|
1368
|
-
...options,
|
|
1369
|
-
headers: {
|
|
1370
|
-
"Content-Type": "application/json",
|
|
1371
|
-
...options.headers
|
|
1372
|
-
}
|
|
1373
|
-
});
|
|
1374
|
-
var managedAuthConnectionDiagnosticsGet = (options) => (options.client ?? client).get({
|
|
1375
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1376
|
-
url: "/managed-auth/connections/{connection_id}/diagnostics",
|
|
1377
|
-
...options
|
|
1378
|
-
});
|
|
1379
|
-
var managedAuthConnectionFunctionGet = (options) => (options.client ?? client).get({
|
|
1380
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1381
|
-
url: "/managed-auth/connections/{connection_id}/functions/{role}",
|
|
1382
|
-
...options
|
|
1383
|
-
});
|
|
1384
|
-
var managedAuthConnectionFunctionUpdate = (options) => (options.client ?? client).put({
|
|
1385
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1386
|
-
url: "/managed-auth/connections/{connection_id}/functions/{role}",
|
|
1387
|
-
...options,
|
|
1388
|
-
headers: {
|
|
1389
|
-
"Content-Type": "application/json",
|
|
1390
|
-
...options.headers
|
|
1391
|
-
}
|
|
1392
|
-
});
|
|
1393
|
-
var managedAuthConnectionProfileReset = (options) => (options.client ?? client).post({
|
|
1394
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1395
|
-
url: "/managed-auth/connections/{connection_id}/reset-profile",
|
|
1396
|
-
...options
|
|
1397
|
-
});
|
|
1398
|
-
var managedAuthConnectionCheck = (options) => (options.client ?? client).post({
|
|
1399
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1400
|
-
url: "/managed-auth/connections/{connection_id}/check",
|
|
1401
|
-
...options
|
|
1402
|
-
});
|
|
1403
|
-
var managedAuthConnectionReauthenticate = (options) => (options.client ?? client).post({
|
|
1404
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1405
|
-
url: "/managed-auth/connections/{connection_id}/reauthenticate",
|
|
1406
|
-
...options
|
|
1407
|
-
});
|
|
1408
|
-
var managedAuthTemplateFunctionsUnlink = (options) => (options.client ?? client).delete({
|
|
1409
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1410
|
-
url: "/managed-auth/templates/{template_id}/publish",
|
|
1411
|
-
...options
|
|
1412
|
-
});
|
|
1413
|
-
var managedAuthTemplatePublish = (options) => (options.client ?? client).post({
|
|
1414
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1415
|
-
url: "/managed-auth/templates/{template_id}/publish",
|
|
1416
|
-
...options,
|
|
1417
|
-
headers: {
|
|
1418
|
-
"Content-Type": "application/json",
|
|
1419
|
-
...options.headers
|
|
1420
|
-
}
|
|
1421
|
-
});
|
|
1422
1285
|
var improvePrompt = (options) => (options.client ?? client).post({
|
|
1423
1286
|
url: "/prompts/improve",
|
|
1424
1287
|
...options,
|
|
@@ -2292,11 +2155,12 @@ var NotteVault = class {
|
|
|
2292
2155
|
constructor(client2, options = {}) {
|
|
2293
2156
|
this._vaultId = null;
|
|
2294
2157
|
this.initPromise = null;
|
|
2158
|
+
this.createData = null;
|
|
2295
2159
|
this.client = client2;
|
|
2296
2160
|
if (options && "vault_id" in options && options.vault_id) {
|
|
2297
2161
|
this.initPromise = this.initExistingVault(options.vault_id);
|
|
2298
2162
|
} else {
|
|
2299
|
-
this.
|
|
2163
|
+
this.createData = options || {};
|
|
2300
2164
|
}
|
|
2301
2165
|
}
|
|
2302
2166
|
async initExistingVault(vaultId) {
|
|
@@ -2338,6 +2202,12 @@ var NotteVault = class {
|
|
|
2338
2202
|
if (this.initPromise) {
|
|
2339
2203
|
return await this.initPromise;
|
|
2340
2204
|
}
|
|
2205
|
+
if (this.createData) {
|
|
2206
|
+
const createData = this.createData;
|
|
2207
|
+
this.createData = null;
|
|
2208
|
+
this.initPromise = this.initNewVault(createData);
|
|
2209
|
+
return await this.initPromise;
|
|
2210
|
+
}
|
|
2341
2211
|
throw new Error("Vault not initialized");
|
|
2342
2212
|
}
|
|
2343
2213
|
get vaultId() {
|
|
@@ -3110,27 +2980,6 @@ export {
|
|
|
3110
2980
|
listSecrets,
|
|
3111
2981
|
listSessions,
|
|
3112
2982
|
listVaults,
|
|
3113
|
-
managedAuthAdminTemplatesList,
|
|
3114
|
-
managedAuthConnectionCheck,
|
|
3115
|
-
managedAuthConnectionCreate,
|
|
3116
|
-
managedAuthConnectionDiagnosticsGet,
|
|
3117
|
-
managedAuthConnectionDisconnect,
|
|
3118
|
-
managedAuthConnectionFunctionGet,
|
|
3119
|
-
managedAuthConnectionFunctionUpdate,
|
|
3120
|
-
managedAuthConnectionGet,
|
|
3121
|
-
managedAuthConnectionProfileReset,
|
|
3122
|
-
managedAuthConnectionPromote,
|
|
3123
|
-
managedAuthConnectionReauthenticate,
|
|
3124
|
-
managedAuthConnectionUpdate,
|
|
3125
|
-
managedAuthConnectionsList,
|
|
3126
|
-
managedAuthFunctionTemplatesGet,
|
|
3127
|
-
managedAuthTemplateCreate,
|
|
3128
|
-
managedAuthTemplateExport,
|
|
3129
|
-
managedAuthTemplateFunctionsUnlink,
|
|
3130
|
-
managedAuthTemplateImport,
|
|
3131
|
-
managedAuthTemplatePublish,
|
|
3132
|
-
managedAuthTemplateUpdate,
|
|
3133
|
-
managedAuthTemplatesList,
|
|
3134
2983
|
nudgePrompt,
|
|
3135
2984
|
pageExecute,
|
|
3136
2985
|
pageObserve,
|