@niledatabase/server 3.0.0-alpha.30 → 3.0.0-alpha.32

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.ts CHANGED
@@ -1,4 +1,7 @@
1
1
  export * from './types';
2
+ export * from './users/types';
3
+ export * from './tenants/types';
4
+ export { JWT, ActiveSession } from './api/utils/auth';
2
5
  import create from './Server';
3
6
  export { default as Nile } from './Server';
4
7
  export { Server } from './Server';
@@ -6,6 +6,12 @@ require('dotenv/config');
6
6
  var pg = require('pg');
7
7
  var jose = require('jose');
8
8
 
9
+ var LoginUserResponseTokenTypeEnum = {
10
+ AccessToken: 'ACCESS_TOKEN',
11
+ RefreshToken: 'REFRESH_TOKEN',
12
+ IdToken: 'ID_TOKEN'
13
+ };
14
+
9
15
  function _arrayLikeToArray(r, a) {
10
16
  (null == a || a > r.length) && (a = r.length);
11
17
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -4156,6 +4162,7 @@ var Api = /*#__PURE__*/function () {
4156
4162
  set: function set(headers) {
4157
4163
  this.users = new Users(this.config, headers);
4158
4164
  this.tenants = new Tenants(this.config, headers);
4165
+ this.auth = new Auth(this.config, headers);
4159
4166
  }
4160
4167
  }]);
4161
4168
  }();
@@ -4313,6 +4320,7 @@ function _create() {
4313
4320
  return _create.apply(this, arguments);
4314
4321
  }
4315
4322
 
4323
+ exports.LoginUserResponseTokenTypeEnum = LoginUserResponseTokenTypeEnum;
4316
4324
  exports.Nile = create;
4317
4325
  exports.Server = Server;
4318
4326
  exports.default = create;