notte-sdk 0.0.17 → 0.0.19

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
@@ -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.17" : "dev";
9
+ var SDK_VERSION = true ? "0.0.19" : "dev";
10
10
  var SDK_PACKAGE_NAME = true ? "notte-sdk" : "notte-sdk";
11
11
 
12
12
  // src/version-check.ts
@@ -1267,152 +1267,66 @@ var personaGet = (options) => (options.client ?? client).get({
1267
1267
  url: "/personas/{persona_id}",
1268
1268
  ...options
1269
1269
  });
1270
- var personaEmailsList = (options) => (options.client ?? client).get({
1271
- security: [{ scheme: "bearer", type: "http" }],
1272
- url: "/personas/{persona_id}/emails",
1273
- ...options
1274
- });
1275
- var listPersonas = (options) => (options?.client ?? client).get({
1276
- security: [{ scheme: "bearer", type: "http" }],
1277
- url: "/personas",
1278
- ...options
1279
- });
1280
- var personaSmsList = (options) => (options.client ?? client).get({
1281
- security: [{ scheme: "bearer", type: "http" }],
1282
- url: "/personas/{persona_id}/sms",
1283
- ...options
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({
1270
+ var personaUpdate = (options) => (options.client ?? client).patch({
1328
1271
  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",
1272
+ url: "/personas/{persona_id}",
1335
1273
  ...options,
1336
1274
  headers: {
1337
1275
  "Content-Type": "application/json",
1338
1276
  ...options.headers
1339
1277
  }
1340
1278
  });
1341
- var managedAuthFunctionTemplatesGet = (options) => (options?.client ?? client).get({
1279
+ var personaEmailsList = (options) => (options.client ?? client).get({
1342
1280
  security: [{ scheme: "bearer", type: "http" }],
1343
- url: "/managed-auth/function-templates",
1281
+ url: "/personas/{persona_id}/emails",
1344
1282
  ...options
1345
1283
  });
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({
1284
+ var listPersonas = (options) => (options?.client ?? client).get({
1356
1285
  security: [{ scheme: "bearer", type: "http" }],
1357
- url: "/managed-auth/connections/{connection_id}",
1286
+ url: "/personas",
1358
1287
  ...options
1359
1288
  });
1360
- var managedAuthConnectionGet = (options) => (options.client ?? client).get({
1289
+ var personaSmsList = (options) => (options.client ?? client).get({
1361
1290
  security: [{ scheme: "bearer", type: "http" }],
1362
- url: "/managed-auth/connections/{connection_id}",
1291
+ url: "/personas/{persona_id}/sms",
1363
1292
  ...options
1364
1293
  });
1365
- var managedAuthConnectionUpdate = (options) => (options.client ?? client).patch({
1294
+ var mailboxConnectToken = (options) => (options.client ?? client).post({
1366
1295
  security: [{ scheme: "bearer", type: "http" }],
1367
- url: "/managed-auth/connections/{connection_id}",
1296
+ url: "/mailboxes/connect-token",
1368
1297
  ...options,
1369
1298
  headers: {
1370
1299
  "Content-Type": "application/json",
1371
1300
  ...options.headers
1372
1301
  }
1373
1302
  });
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({
1303
+ var mailboxSync = (options) => (options?.client ?? client).post({
1380
1304
  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}",
1305
+ url: "/mailboxes/sync",
1387
1306
  ...options,
1388
1307
  headers: {
1389
1308
  "Content-Type": "application/json",
1390
- ...options.headers
1309
+ ...options?.headers
1391
1310
  }
1392
1311
  });
1393
- var managedAuthConnectionProfileReset = (options) => (options.client ?? client).post({
1312
+ var mailboxList = (options) => (options?.client ?? client).get({
1394
1313
  security: [{ scheme: "bearer", type: "http" }],
1395
- url: "/managed-auth/connections/{connection_id}/reset-profile",
1314
+ url: "/mailboxes",
1396
1315
  ...options
1397
1316
  });
1398
- var managedAuthConnectionCheck = (options) => (options.client ?? client).post({
1317
+ var mailboxDelete = (options) => (options.client ?? client).delete({
1399
1318
  security: [{ scheme: "bearer", type: "http" }],
1400
- url: "/managed-auth/connections/{connection_id}/check",
1319
+ url: "/mailboxes/{mailbox_id}",
1401
1320
  ...options
1402
1321
  });
1403
- var managedAuthConnectionReauthenticate = (options) => (options.client ?? client).post({
1322
+ var mailboxGet = (options) => (options.client ?? client).get({
1404
1323
  security: [{ scheme: "bearer", type: "http" }],
1405
- url: "/managed-auth/connections/{connection_id}/reauthenticate",
1324
+ url: "/mailboxes/{mailbox_id}",
1406
1325
  ...options
1407
1326
  });
1408
- var managedAuthTemplateFunctionsUnlink = (options) => (options.client ?? client).delete({
1327
+ var mailboxUpdate = (options) => (options.client ?? client).patch({
1409
1328
  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",
1329
+ url: "/mailboxes/{mailbox_id}",
1416
1330
  ...options,
1417
1331
  headers: {
1418
1332
  "Content-Type": "application/json",
@@ -2292,11 +2206,12 @@ var NotteVault = class {
2292
2206
  constructor(client2, options = {}) {
2293
2207
  this._vaultId = null;
2294
2208
  this.initPromise = null;
2209
+ this.createData = null;
2295
2210
  this.client = client2;
2296
2211
  if (options && "vault_id" in options && options.vault_id) {
2297
2212
  this.initPromise = this.initExistingVault(options.vault_id);
2298
2213
  } else {
2299
- this.initPromise = this.initNewVault(options || {});
2214
+ this.createData = options || {};
2300
2215
  }
2301
2216
  }
2302
2217
  async initExistingVault(vaultId) {
@@ -2338,6 +2253,12 @@ var NotteVault = class {
2338
2253
  if (this.initPromise) {
2339
2254
  return await this.initPromise;
2340
2255
  }
2256
+ if (this.createData) {
2257
+ const createData = this.createData;
2258
+ this.createData = null;
2259
+ this.initPromise = this.initNewVault(createData);
2260
+ return await this.initPromise;
2261
+ }
2341
2262
  throw new Error("Vault not initialized");
2342
2263
  }
2343
2264
  get vaultId() {
@@ -3110,27 +3031,12 @@ export {
3110
3031
  listSecrets,
3111
3032
  listSessions,
3112
3033
  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,
3034
+ mailboxConnectToken,
3035
+ mailboxDelete,
3036
+ mailboxGet,
3037
+ mailboxList,
3038
+ mailboxSync,
3039
+ mailboxUpdate,
3134
3040
  nudgePrompt,
3135
3041
  pageExecute,
3136
3042
  pageObserve,
@@ -3141,6 +3047,7 @@ export {
3141
3047
  personaEmailsList,
3142
3048
  personaGet,
3143
3049
  personaSmsList,
3050
+ personaUpdate,
3144
3051
  profileCookiesGet,
3145
3052
  profileCookiesSet,
3146
3053
  profileCreate,