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.js
CHANGED
|
@@ -76,27 +76,6 @@ __export(index_exports, {
|
|
|
76
76
|
listSecrets: () => listSecrets,
|
|
77
77
|
listSessions: () => listSessions,
|
|
78
78
|
listVaults: () => listVaults,
|
|
79
|
-
managedAuthAdminTemplatesList: () => managedAuthAdminTemplatesList,
|
|
80
|
-
managedAuthConnectionCheck: () => managedAuthConnectionCheck,
|
|
81
|
-
managedAuthConnectionCreate: () => managedAuthConnectionCreate,
|
|
82
|
-
managedAuthConnectionDiagnosticsGet: () => managedAuthConnectionDiagnosticsGet,
|
|
83
|
-
managedAuthConnectionDisconnect: () => managedAuthConnectionDisconnect,
|
|
84
|
-
managedAuthConnectionFunctionGet: () => managedAuthConnectionFunctionGet,
|
|
85
|
-
managedAuthConnectionFunctionUpdate: () => managedAuthConnectionFunctionUpdate,
|
|
86
|
-
managedAuthConnectionGet: () => managedAuthConnectionGet,
|
|
87
|
-
managedAuthConnectionProfileReset: () => managedAuthConnectionProfileReset,
|
|
88
|
-
managedAuthConnectionPromote: () => managedAuthConnectionPromote,
|
|
89
|
-
managedAuthConnectionReauthenticate: () => managedAuthConnectionReauthenticate,
|
|
90
|
-
managedAuthConnectionUpdate: () => managedAuthConnectionUpdate,
|
|
91
|
-
managedAuthConnectionsList: () => managedAuthConnectionsList,
|
|
92
|
-
managedAuthFunctionTemplatesGet: () => managedAuthFunctionTemplatesGet,
|
|
93
|
-
managedAuthTemplateCreate: () => managedAuthTemplateCreate,
|
|
94
|
-
managedAuthTemplateExport: () => managedAuthTemplateExport,
|
|
95
|
-
managedAuthTemplateFunctionsUnlink: () => managedAuthTemplateFunctionsUnlink,
|
|
96
|
-
managedAuthTemplateImport: () => managedAuthTemplateImport,
|
|
97
|
-
managedAuthTemplatePublish: () => managedAuthTemplatePublish,
|
|
98
|
-
managedAuthTemplateUpdate: () => managedAuthTemplateUpdate,
|
|
99
|
-
managedAuthTemplatesList: () => managedAuthTemplatesList,
|
|
100
79
|
nudgePrompt: () => nudgePrompt,
|
|
101
80
|
pageExecute: () => pageExecute,
|
|
102
81
|
pageObserve: () => pageObserve,
|
|
@@ -142,7 +121,7 @@ __export(index_exports, {
|
|
|
142
121
|
module.exports = __toCommonJS(index_exports);
|
|
143
122
|
|
|
144
123
|
// src/version.ts
|
|
145
|
-
var SDK_VERSION = true ? "0.0.
|
|
124
|
+
var SDK_VERSION = true ? "0.0.18" : "dev";
|
|
146
125
|
var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
|
|
147
126
|
|
|
148
127
|
// src/version-check.ts
|
|
@@ -1418,143 +1397,6 @@ var personaSmsList = (options) => (options.client ?? client).get({
|
|
|
1418
1397
|
url: "/personas/{persona_id}/sms",
|
|
1419
1398
|
...options
|
|
1420
1399
|
});
|
|
1421
|
-
var managedAuthTemplatesList = (options) => (options?.client ?? client).get({
|
|
1422
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1423
|
-
url: "/managed-auth/templates",
|
|
1424
|
-
...options
|
|
1425
|
-
});
|
|
1426
|
-
var managedAuthTemplateCreate = (options) => (options.client ?? client).post({
|
|
1427
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1428
|
-
url: "/managed-auth/templates",
|
|
1429
|
-
...options,
|
|
1430
|
-
headers: {
|
|
1431
|
-
"Content-Type": "application/json",
|
|
1432
|
-
...options.headers
|
|
1433
|
-
}
|
|
1434
|
-
});
|
|
1435
|
-
var managedAuthAdminTemplatesList = (options) => (options?.client ?? client).get({
|
|
1436
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1437
|
-
url: "/managed-auth/templates/admin",
|
|
1438
|
-
...options
|
|
1439
|
-
});
|
|
1440
|
-
var managedAuthTemplateExport = (options) => (options.client ?? client).get({
|
|
1441
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1442
|
-
url: "/managed-auth/templates/{slug}/export",
|
|
1443
|
-
...options
|
|
1444
|
-
});
|
|
1445
|
-
var managedAuthTemplateImport = (options) => (options.client ?? client).post({
|
|
1446
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1447
|
-
url: "/managed-auth/templates/import",
|
|
1448
|
-
...options,
|
|
1449
|
-
headers: {
|
|
1450
|
-
"Content-Type": "application/json",
|
|
1451
|
-
...options.headers
|
|
1452
|
-
}
|
|
1453
|
-
});
|
|
1454
|
-
var managedAuthTemplateUpdate = (options) => (options.client ?? client).patch({
|
|
1455
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1456
|
-
url: "/managed-auth/templates/{template_id}",
|
|
1457
|
-
...options,
|
|
1458
|
-
headers: {
|
|
1459
|
-
"Content-Type": "application/json",
|
|
1460
|
-
...options.headers
|
|
1461
|
-
}
|
|
1462
|
-
});
|
|
1463
|
-
var managedAuthConnectionsList = (options) => (options?.client ?? client).get({
|
|
1464
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1465
|
-
url: "/managed-auth/connections",
|
|
1466
|
-
...options
|
|
1467
|
-
});
|
|
1468
|
-
var managedAuthConnectionCreate = (options) => (options.client ?? client).post({
|
|
1469
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1470
|
-
url: "/managed-auth/connections",
|
|
1471
|
-
...options,
|
|
1472
|
-
headers: {
|
|
1473
|
-
"Content-Type": "application/json",
|
|
1474
|
-
...options.headers
|
|
1475
|
-
}
|
|
1476
|
-
});
|
|
1477
|
-
var managedAuthFunctionTemplatesGet = (options) => (options?.client ?? client).get({
|
|
1478
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1479
|
-
url: "/managed-auth/function-templates",
|
|
1480
|
-
...options
|
|
1481
|
-
});
|
|
1482
|
-
var managedAuthConnectionPromote = (options) => (options.client ?? client).post({
|
|
1483
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1484
|
-
url: "/managed-auth/connections/{connection_id}/promote",
|
|
1485
|
-
...options,
|
|
1486
|
-
headers: {
|
|
1487
|
-
"Content-Type": "application/json",
|
|
1488
|
-
...options.headers
|
|
1489
|
-
}
|
|
1490
|
-
});
|
|
1491
|
-
var managedAuthConnectionDisconnect = (options) => (options.client ?? client).delete({
|
|
1492
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1493
|
-
url: "/managed-auth/connections/{connection_id}",
|
|
1494
|
-
...options
|
|
1495
|
-
});
|
|
1496
|
-
var managedAuthConnectionGet = (options) => (options.client ?? client).get({
|
|
1497
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1498
|
-
url: "/managed-auth/connections/{connection_id}",
|
|
1499
|
-
...options
|
|
1500
|
-
});
|
|
1501
|
-
var managedAuthConnectionUpdate = (options) => (options.client ?? client).patch({
|
|
1502
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1503
|
-
url: "/managed-auth/connections/{connection_id}",
|
|
1504
|
-
...options,
|
|
1505
|
-
headers: {
|
|
1506
|
-
"Content-Type": "application/json",
|
|
1507
|
-
...options.headers
|
|
1508
|
-
}
|
|
1509
|
-
});
|
|
1510
|
-
var managedAuthConnectionDiagnosticsGet = (options) => (options.client ?? client).get({
|
|
1511
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1512
|
-
url: "/managed-auth/connections/{connection_id}/diagnostics",
|
|
1513
|
-
...options
|
|
1514
|
-
});
|
|
1515
|
-
var managedAuthConnectionFunctionGet = (options) => (options.client ?? client).get({
|
|
1516
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1517
|
-
url: "/managed-auth/connections/{connection_id}/functions/{role}",
|
|
1518
|
-
...options
|
|
1519
|
-
});
|
|
1520
|
-
var managedAuthConnectionFunctionUpdate = (options) => (options.client ?? client).put({
|
|
1521
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1522
|
-
url: "/managed-auth/connections/{connection_id}/functions/{role}",
|
|
1523
|
-
...options,
|
|
1524
|
-
headers: {
|
|
1525
|
-
"Content-Type": "application/json",
|
|
1526
|
-
...options.headers
|
|
1527
|
-
}
|
|
1528
|
-
});
|
|
1529
|
-
var managedAuthConnectionProfileReset = (options) => (options.client ?? client).post({
|
|
1530
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1531
|
-
url: "/managed-auth/connections/{connection_id}/reset-profile",
|
|
1532
|
-
...options
|
|
1533
|
-
});
|
|
1534
|
-
var managedAuthConnectionCheck = (options) => (options.client ?? client).post({
|
|
1535
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1536
|
-
url: "/managed-auth/connections/{connection_id}/check",
|
|
1537
|
-
...options
|
|
1538
|
-
});
|
|
1539
|
-
var managedAuthConnectionReauthenticate = (options) => (options.client ?? client).post({
|
|
1540
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1541
|
-
url: "/managed-auth/connections/{connection_id}/reauthenticate",
|
|
1542
|
-
...options
|
|
1543
|
-
});
|
|
1544
|
-
var managedAuthTemplateFunctionsUnlink = (options) => (options.client ?? client).delete({
|
|
1545
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1546
|
-
url: "/managed-auth/templates/{template_id}/publish",
|
|
1547
|
-
...options
|
|
1548
|
-
});
|
|
1549
|
-
var managedAuthTemplatePublish = (options) => (options.client ?? client).post({
|
|
1550
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
1551
|
-
url: "/managed-auth/templates/{template_id}/publish",
|
|
1552
|
-
...options,
|
|
1553
|
-
headers: {
|
|
1554
|
-
"Content-Type": "application/json",
|
|
1555
|
-
...options.headers
|
|
1556
|
-
}
|
|
1557
|
-
});
|
|
1558
1400
|
var improvePrompt = (options) => (options.client ?? client).post({
|
|
1559
1401
|
url: "/prompts/improve",
|
|
1560
1402
|
...options,
|
|
@@ -2428,11 +2270,12 @@ var NotteVault = class {
|
|
|
2428
2270
|
constructor(client2, options = {}) {
|
|
2429
2271
|
this._vaultId = null;
|
|
2430
2272
|
this.initPromise = null;
|
|
2273
|
+
this.createData = null;
|
|
2431
2274
|
this.client = client2;
|
|
2432
2275
|
if (options && "vault_id" in options && options.vault_id) {
|
|
2433
2276
|
this.initPromise = this.initExistingVault(options.vault_id);
|
|
2434
2277
|
} else {
|
|
2435
|
-
this.
|
|
2278
|
+
this.createData = options || {};
|
|
2436
2279
|
}
|
|
2437
2280
|
}
|
|
2438
2281
|
async initExistingVault(vaultId) {
|
|
@@ -2474,6 +2317,12 @@ var NotteVault = class {
|
|
|
2474
2317
|
if (this.initPromise) {
|
|
2475
2318
|
return await this.initPromise;
|
|
2476
2319
|
}
|
|
2320
|
+
if (this.createData) {
|
|
2321
|
+
const createData = this.createData;
|
|
2322
|
+
this.createData = null;
|
|
2323
|
+
this.initPromise = this.initNewVault(createData);
|
|
2324
|
+
return await this.initPromise;
|
|
2325
|
+
}
|
|
2477
2326
|
throw new Error("Vault not initialized");
|
|
2478
2327
|
}
|
|
2479
2328
|
get vaultId() {
|
|
@@ -3246,27 +3095,6 @@ var createClient2 = (config) => {
|
|
|
3246
3095
|
listSecrets,
|
|
3247
3096
|
listSessions,
|
|
3248
3097
|
listVaults,
|
|
3249
|
-
managedAuthAdminTemplatesList,
|
|
3250
|
-
managedAuthConnectionCheck,
|
|
3251
|
-
managedAuthConnectionCreate,
|
|
3252
|
-
managedAuthConnectionDiagnosticsGet,
|
|
3253
|
-
managedAuthConnectionDisconnect,
|
|
3254
|
-
managedAuthConnectionFunctionGet,
|
|
3255
|
-
managedAuthConnectionFunctionUpdate,
|
|
3256
|
-
managedAuthConnectionGet,
|
|
3257
|
-
managedAuthConnectionProfileReset,
|
|
3258
|
-
managedAuthConnectionPromote,
|
|
3259
|
-
managedAuthConnectionReauthenticate,
|
|
3260
|
-
managedAuthConnectionUpdate,
|
|
3261
|
-
managedAuthConnectionsList,
|
|
3262
|
-
managedAuthFunctionTemplatesGet,
|
|
3263
|
-
managedAuthTemplateCreate,
|
|
3264
|
-
managedAuthTemplateExport,
|
|
3265
|
-
managedAuthTemplateFunctionsUnlink,
|
|
3266
|
-
managedAuthTemplateImport,
|
|
3267
|
-
managedAuthTemplatePublish,
|
|
3268
|
-
managedAuthTemplateUpdate,
|
|
3269
|
-
managedAuthTemplatesList,
|
|
3270
3098
|
nudgePrompt,
|
|
3271
3099
|
pageExecute,
|
|
3272
3100
|
pageObserve,
|