Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nexeraid/identity-api-client

Package Overview
Dependencies
Maintainers
0
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexeraid/identity-api-client - npm Package Compare versions

Comparing version 1.3.215 to 2.1.0-dev

2

dist/declarations/src/createIdentityApiClient.d.ts

@@ -1,2 +0,2 @@

import type { Environment } from "@unblokttechnology/nexera-id-schemas/identity.schema";
import type { Environment } from "@nexeraid/identity-schemas";
import { ApiClient } from "./generated/index.js";

@@ -3,0 +3,0 @@ /**

@@ -14,7 +14,7 @@ import type { CancelablePromise } from "../core/CancelablePromise.js";

namespace: 'tezos' | 'eip155' | 'aptos' | 'polkadot' | 'starknet' | 'cosmos' | 'solana' | 'cardano';
blockchainId?: ('1' | '137' | '80002' | '43114' | '43113' | '42161' | '421614' | '11155111' | '8453' | '84532' | '56' | '97' | '1284' | '1285' | '10' | '11155420' | 'NetXdQprcVkpaWU' | 'NetXnHfVqm9iesp' | 'cosmoshub-4' | 'theta-testnet-001' | '0x534e5f4d41494e' | '0x534e5f5345504f4c4941');
blockchainId?: ('1' | '137' | '80002' | '43114' | '43113' | '42161' | '421614' | '11155111' | '8453' | '84532' | '56' | '97' | '1284' | '1285' | '10' | '11155420' | '1291' | 'NetXdQprcVkpaWU' | 'NetXnHfVqm9iesp' | 'cosmoshub-4' | 'theta-testnet-001' | '0x534e5f4d41494e' | '0x534e5f5345504f4c4941');
origin: string;
workflowId: string;
externalUserId?: string;
additionalInformations?: {
externalCustomerId?: string;
additionalInformation?: {
email?: string;

@@ -38,4 +38,4 @@ phone?: string;

workflowId: string;
externalUserId: string;
additionalInformations?: {
externalCustomerId: string;
additionalInformation?: {
email?: string;

@@ -66,3 +66,3 @@ phone?: string;

namespace: 'tezos' | 'eip155' | 'aptos' | 'polkadot' | 'starknet' | 'cosmos' | 'solana' | 'cardano';
blockchainId?: ('1' | '137' | '80002' | '43114' | '43113' | '42161' | '421614' | '11155111' | '8453' | '84532' | '56' | '97' | '1284' | '1285' | '10' | '11155420' | 'NetXdQprcVkpaWU' | 'NetXnHfVqm9iesp' | 'cosmoshub-4' | 'theta-testnet-001' | '0x534e5f4d41494e' | '0x534e5f5345504f4c4941');
blockchainId?: ('1' | '137' | '80002' | '43114' | '43113' | '42161' | '421614' | '11155111' | '8453' | '84532' | '56' | '97' | '1284' | '1285' | '10' | '11155420' | '1291' | 'NetXdQprcVkpaWU' | 'NetXnHfVqm9iesp' | 'cosmoshub-4' | 'theta-testnet-001' | '0x534e5f4d41494e' | '0x534e5f5345504f4c4941');
});

@@ -69,0 +69,0 @@ }): CancelablePromise<{

@@ -20,3 +20,3 @@ import type { CancelablePromise } from "../core/CancelablePromise.js";

namespace: 'tezos' | 'eip155' | 'aptos' | 'polkadot' | 'starknet' | 'cosmos' | 'solana' | 'cardano';
blockchainId?: ('1' | '137' | '80002' | '43114' | '43113' | '42161' | '421614' | '11155111' | '8453' | '84532' | '56' | '97' | '1284' | '1285' | '10' | '11155420' | 'NetXdQprcVkpaWU' | 'NetXnHfVqm9iesp' | 'cosmoshub-4' | 'theta-testnet-001' | '0x534e5f4d41494e' | '0x534e5f5345504f4c4941');
blockchainId?: ('1' | '137' | '80002' | '43114' | '43113' | '42161' | '421614' | '11155111' | '8453' | '84532' | '56' | '97' | '1284' | '1285' | '10' | '11155420' | '1291' | 'NetXdQprcVkpaWU' | 'NetXnHfVqm9iesp' | 'cosmoshub-4' | 'theta-testnet-001' | '0x534e5f4d41494e' | '0x534e5f5345504f4c4941');
});

@@ -23,0 +23,0 @@ }): CancelablePromise<{

@@ -5,3 +5,3 @@ 'use strict';

var nexeraIdSchemas = require('@unblokttechnology/nexera-id-schemas');
var identitySchemas = require('@nexeraid/identity-schemas');

@@ -24,31 +24,22 @@ function _toPrimitive(t, r) {

function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
function _defineProperties(e, r) {
for (var t = 0; t < r.length; t++) {
var o = r[t];
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
function _createClass(e, r, t) {
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
function _classCallCheck(a, n) {
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
function _getPrototypeOf(t) {
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
}, _getPrototypeOf(t);
}

@@ -65,16 +56,11 @@

function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
function _assertThisInitialized(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
function _possibleConstructorReturn(self, call) {
if (call && (typeof call === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return _assertThisInitialized(self);
function _possibleConstructorReturn(t, e) {
if (e && ("object" == typeof e || "function" == typeof e)) return e;
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
return _assertThisInitialized(t);
}

@@ -86,25 +72,19 @@

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
function _setPrototypeOf(t, e) {
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
return t.__proto__ = e, t;
}, _setPrototypeOf(t, e);
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
function _inherits(t, e) {
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
value: t,
writable: !0,
configurable: !0
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);
}), Object.defineProperty(t, "prototype", {
writable: !1
}), e && _setPrototypeOf(t, e);
}

@@ -122,15 +102,9 @@

function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
function _defineProperty(e, r, t) {
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[r] = t, e;
}

@@ -462,29 +436,24 @@

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
function asyncGeneratorStep(n, t, e, r, o, a, c) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
var i = n[a](c),
u = i.value;
} catch (n) {
return void e(n);
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
i.done ? t(u) : Promise.resolve(u).then(r, o);
}
function _asyncToGenerator(fn) {
function _asyncToGenerator(n) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
var t = this,
e = arguments;
return new Promise(function (r, o) {
var a = n.apply(t, e);
function _next(n) {
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
function _throw(n) {
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
}
_next(undefined);
_next(void 0);
});

@@ -494,4 +463,4 @@ };

function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
function _arrayWithHoles(r) {
if (Array.isArray(r)) return r;
}

@@ -527,15 +496,14 @@

function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
function _arrayLikeToArray(r, a) {
(null == a || a > r.length) && (a = r.length);
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
return n;
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return _arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
}
}

@@ -547,4 +515,4 @@

function _slicedToArray(arr, i) {
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
function _slicedToArray(r, e) {
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
}

@@ -562,7 +530,7 @@

function _isNativeFunction(fn) {
function _isNativeFunction(t) {
try {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
} catch (e) {
return typeof fn === "function";
return -1 !== Function.toString.call(t).indexOf("[native code]");
} catch (n) {
return "function" == typeof t;
}

@@ -579,27 +547,23 @@ }

function _wrapNativeSuper(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (Class === null || !_isNativeFunction(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
function _wrapNativeSuper(t) {
var r = "function" == typeof Map ? new Map() : void 0;
return _wrapNativeSuper = function (t) {
if (null === t || !_isNativeFunction(t)) return t;
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
if (void 0 !== r) {
if (r.has(t)) return r.get(t);
r.set(t, Wrapper);
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
return _construct(t, arguments, _getPrototypeOf(this).constructor);
}
Wrapper.prototype = Object.create(Class.prototype, {
return Wrapper.prototype = Object.create(t.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
enumerable: !1,
writable: !0,
configurable: !0
}
});
return _setPrototypeOf(Wrapper, Class);
};
return _wrapNativeSuper(Class);
}), _setPrototypeOf(Wrapper, t);
}, _wrapNativeSuper(t);
}

@@ -627,24 +591,23 @@

return _createClass(ApiError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
}(/*#__PURE__*/_wrapNativeSuper(Error));
function _createForOfIteratorHelper(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
var F = function () {};
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
t && (r = t);
var n = 0,
F = function () {};
return {
s: F,
n: function () {
if (i >= o.length) return {
done: true
return n >= r.length ? {
done: !0
} : {
done: !1,
value: r[n++]
};
return {
done: false,
value: o[i++]
};
},
e: function (e) {
throw e;
e: function (r) {
throw r;
},

@@ -656,23 +619,21 @@ f: F

}
var normalCompletion = true,
didErr = false,
err;
var o,
a = !0,
u = !1;
return {
s: function () {
it = it.call(o);
t = t.call(r);
},
n: function () {
var step = it.next();
normalCompletion = step.done;
return step;
var r = t.next();
return a = r.done, r;
},
e: function (e) {
didErr = true;
err = e;
e: function (r) {
u = !0, o = r;
},
f: function () {
try {
if (!normalCompletion && it.return != null) it.return();
a || null == t.return || t.return();
} finally {
if (didErr) throw err;
if (u) throw o;
}

@@ -683,11 +644,8 @@ }

function _checkPrivateRedeclaration(obj, privateCollection) {
if (privateCollection.has(obj)) {
throw new TypeError("Cannot initialize the same private elements twice on an object");
}
function _checkPrivateRedeclaration(e, t) {
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
}
function _classPrivateFieldInitSpec(obj, privateMap, value) {
_checkPrivateRedeclaration(obj, privateMap);
privateMap.set(obj, value);
function _classPrivateFieldInitSpec(e, t, a) {
_checkPrivateRedeclaration(e, t), t.set(e, a);
}

@@ -727,3 +685,3 @@

}]);
}( /*#__PURE__*/_wrapNativeSuper(Error));
}(/*#__PURE__*/_wrapNativeSuper(Error));
var _isResolved = /*#__PURE__*/new WeakMap();

@@ -877,7 +835,7 @@ var _isRejected = /*#__PURE__*/new WeakMap();

};
var process = function process(key, value) {
var _process = function process(key, value) {
if (isDefined(value)) {
if (Array.isArray(value)) {
value.forEach(function (v) {
process(key, v);
_process(key, v);
});

@@ -889,3 +847,3 @@ } else if (_typeof(value) === 'object') {

v = _ref2[1];
process("".concat(key, "[").concat(k, "]"), v);
_process("".concat(key, "[").concat(k, "]"), v);
});

@@ -901,3 +859,3 @@ } else {

value = _ref4[1];
process(key, value);
_process(key, value);
});

@@ -956,3 +914,3 @@ if (qs.length > 0) {

var resolve = /*#__PURE__*/function () {
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options, resolver) {
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(options, resolver) {
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -979,3 +937,3 @@ while (1) switch (_context.prev = _context.next) {

var getHeaders = /*#__PURE__*/function () {
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(config, options) {
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(config, options) {
var _yield$Promise$all, _yield$Promise$all2, token, username, password, additionalHeaders, headers, credentials;

@@ -1050,3 +1008,3 @@ return _regeneratorRuntime().wrap(function _callee2$(_context2) {

var sendRequest = /*#__PURE__*/function () {
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(config, options, url, body, formData, headers, onCancel) {
var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(config, options, url, body, formData, headers, onCancel) {
var controller, request;

@@ -1093,3 +1051,3 @@ return _regeneratorRuntime().wrap(function _callee3$(_context3) {

var getResponseBody = /*#__PURE__*/function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(response) {
var _ref16 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(response) {
var contentType, jsonTypes, isJSON;

@@ -1182,4 +1140,4 @@ return _regeneratorRuntime().wrap(function _callee4$(_context4) {

var request = function request(config, options) {
return new CancelablePromise( /*#__PURE__*/function () {
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(resolve, reject, onCancel) {
return new CancelablePromise(/*#__PURE__*/function () {
var _ref17 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(resolve, reject, onCancel) {
var url, formData, body, headers, response, responseBody, responseHeader, result;

@@ -1472,3 +1430,3 @@ return _regeneratorRuntime().wrap(function _callee5$(_context5) {

return new ApiClient({
BASE: (_props$url = props === null || props === void 0 ? void 0 : props.url) !== null && _props$url !== void 0 ? _props$url : nexeraIdSchemas.SERVICES_SCHEMA_MAP.identity_api[env],
BASE: (_props$url = props === null || props === void 0 ? void 0 : props.url) !== null && _props$url !== void 0 ? _props$url : identitySchemas.PUBLIC_SERVICES_SCHEMA_MAP.identity_api[env],
HEADERS: _objectSpread2(_objectSpread2({}, authheader), {}, {

@@ -1475,0 +1433,0 @@ "Content-Type": "application/json"

@@ -5,3 +5,3 @@ 'use strict';

var nexeraIdSchemas = require('@unblokttechnology/nexera-id-schemas');
var identitySchemas = require('@nexeraid/identity-schemas');

@@ -24,31 +24,22 @@ function _toPrimitive(t, r) {

function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
function _defineProperties(e, r) {
for (var t = 0; t < r.length; t++) {
var o = r[t];
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
function _createClass(e, r, t) {
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
function _classCallCheck(a, n) {
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
function _getPrototypeOf(t) {
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
}, _getPrototypeOf(t);
}

@@ -65,16 +56,11 @@

function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
function _assertThisInitialized(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
function _possibleConstructorReturn(self, call) {
if (call && (typeof call === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return _assertThisInitialized(self);
function _possibleConstructorReturn(t, e) {
if (e && ("object" == typeof e || "function" == typeof e)) return e;
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
return _assertThisInitialized(t);
}

@@ -86,25 +72,19 @@

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
function _setPrototypeOf(t, e) {
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
return t.__proto__ = e, t;
}, _setPrototypeOf(t, e);
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
function _inherits(t, e) {
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
value: t,
writable: !0,
configurable: !0
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);
}), Object.defineProperty(t, "prototype", {
writable: !1
}), e && _setPrototypeOf(t, e);
}

@@ -122,15 +102,9 @@

function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
function _defineProperty(e, r, t) {
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[r] = t, e;
}

@@ -462,29 +436,24 @@

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
function asyncGeneratorStep(n, t, e, r, o, a, c) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
var i = n[a](c),
u = i.value;
} catch (n) {
return void e(n);
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
i.done ? t(u) : Promise.resolve(u).then(r, o);
}
function _asyncToGenerator(fn) {
function _asyncToGenerator(n) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
var t = this,
e = arguments;
return new Promise(function (r, o) {
var a = n.apply(t, e);
function _next(n) {
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
function _throw(n) {
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
}
_next(undefined);
_next(void 0);
});

@@ -494,4 +463,4 @@ };

function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
function _arrayWithHoles(r) {
if (Array.isArray(r)) return r;
}

@@ -527,15 +496,14 @@

function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
function _arrayLikeToArray(r, a) {
(null == a || a > r.length) && (a = r.length);
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
return n;
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return _arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
}
}

@@ -547,4 +515,4 @@

function _slicedToArray(arr, i) {
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
function _slicedToArray(r, e) {
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
}

@@ -562,7 +530,7 @@

function _isNativeFunction(fn) {
function _isNativeFunction(t) {
try {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
} catch (e) {
return typeof fn === "function";
return -1 !== Function.toString.call(t).indexOf("[native code]");
} catch (n) {
return "function" == typeof t;
}

@@ -579,27 +547,23 @@ }

function _wrapNativeSuper(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (Class === null || !_isNativeFunction(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
function _wrapNativeSuper(t) {
var r = "function" == typeof Map ? new Map() : void 0;
return _wrapNativeSuper = function (t) {
if (null === t || !_isNativeFunction(t)) return t;
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
if (void 0 !== r) {
if (r.has(t)) return r.get(t);
r.set(t, Wrapper);
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
return _construct(t, arguments, _getPrototypeOf(this).constructor);
}
Wrapper.prototype = Object.create(Class.prototype, {
return Wrapper.prototype = Object.create(t.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
enumerable: !1,
writable: !0,
configurable: !0
}
});
return _setPrototypeOf(Wrapper, Class);
};
return _wrapNativeSuper(Class);
}), _setPrototypeOf(Wrapper, t);
}, _wrapNativeSuper(t);
}

@@ -627,24 +591,23 @@

return _createClass(ApiError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
}(/*#__PURE__*/_wrapNativeSuper(Error));
function _createForOfIteratorHelper(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
var F = function () {};
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
t && (r = t);
var n = 0,
F = function () {};
return {
s: F,
n: function () {
if (i >= o.length) return {
done: true
return n >= r.length ? {
done: !0
} : {
done: !1,
value: r[n++]
};
return {
done: false,
value: o[i++]
};
},
e: function (e) {
throw e;
e: function (r) {
throw r;
},

@@ -656,23 +619,21 @@ f: F

}
var normalCompletion = true,
didErr = false,
err;
var o,
a = !0,
u = !1;
return {
s: function () {
it = it.call(o);
t = t.call(r);
},
n: function () {
var step = it.next();
normalCompletion = step.done;
return step;
var r = t.next();
return a = r.done, r;
},
e: function (e) {
didErr = true;
err = e;
e: function (r) {
u = !0, o = r;
},
f: function () {
try {
if (!normalCompletion && it.return != null) it.return();
a || null == t.return || t.return();
} finally {
if (didErr) throw err;
if (u) throw o;
}

@@ -683,11 +644,8 @@ }

function _checkPrivateRedeclaration(obj, privateCollection) {
if (privateCollection.has(obj)) {
throw new TypeError("Cannot initialize the same private elements twice on an object");
}
function _checkPrivateRedeclaration(e, t) {
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
}
function _classPrivateFieldInitSpec(obj, privateMap, value) {
_checkPrivateRedeclaration(obj, privateMap);
privateMap.set(obj, value);
function _classPrivateFieldInitSpec(e, t, a) {
_checkPrivateRedeclaration(e, t), t.set(e, a);
}

@@ -727,3 +685,3 @@

}]);
}( /*#__PURE__*/_wrapNativeSuper(Error));
}(/*#__PURE__*/_wrapNativeSuper(Error));
var _isResolved = /*#__PURE__*/new WeakMap();

@@ -877,7 +835,7 @@ var _isRejected = /*#__PURE__*/new WeakMap();

};
var process = function process(key, value) {
var _process = function process(key, value) {
if (isDefined(value)) {
if (Array.isArray(value)) {
value.forEach(function (v) {
process(key, v);
_process(key, v);
});

@@ -889,3 +847,3 @@ } else if (_typeof(value) === 'object') {

v = _ref2[1];
process("".concat(key, "[").concat(k, "]"), v);
_process("".concat(key, "[").concat(k, "]"), v);
});

@@ -901,3 +859,3 @@ } else {

value = _ref4[1];
process(key, value);
_process(key, value);
});

@@ -956,3 +914,3 @@ if (qs.length > 0) {

var resolve = /*#__PURE__*/function () {
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options, resolver) {
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(options, resolver) {
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -979,3 +937,3 @@ while (1) switch (_context.prev = _context.next) {

var getHeaders = /*#__PURE__*/function () {
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(config, options) {
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(config, options) {
var _yield$Promise$all, _yield$Promise$all2, token, username, password, additionalHeaders, headers, credentials;

@@ -1050,3 +1008,3 @@ return _regeneratorRuntime().wrap(function _callee2$(_context2) {

var sendRequest = /*#__PURE__*/function () {
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(config, options, url, body, formData, headers, onCancel) {
var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(config, options, url, body, formData, headers, onCancel) {
var controller, request;

@@ -1093,3 +1051,3 @@ return _regeneratorRuntime().wrap(function _callee3$(_context3) {

var getResponseBody = /*#__PURE__*/function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(response) {
var _ref16 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(response) {
var contentType, jsonTypes, isJSON;

@@ -1182,4 +1140,4 @@ return _regeneratorRuntime().wrap(function _callee4$(_context4) {

var request = function request(config, options) {
return new CancelablePromise( /*#__PURE__*/function () {
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(resolve, reject, onCancel) {
return new CancelablePromise(/*#__PURE__*/function () {
var _ref17 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(resolve, reject, onCancel) {
var url, formData, body, headers, response, responseBody, responseHeader, result;

@@ -1472,3 +1430,3 @@ return _regeneratorRuntime().wrap(function _callee5$(_context5) {

return new ApiClient({
BASE: (_props$url = props === null || props === void 0 ? void 0 : props.url) !== null && _props$url !== void 0 ? _props$url : nexeraIdSchemas.SERVICES_SCHEMA_MAP.identity_api[env],
BASE: (_props$url = props === null || props === void 0 ? void 0 : props.url) !== null && _props$url !== void 0 ? _props$url : identitySchemas.PUBLIC_SERVICES_SCHEMA_MAP.identity_api[env],
HEADERS: _objectSpread2(_objectSpread2({}, authheader), {}, {

@@ -1475,0 +1433,0 @@ "Content-Type": "application/json"

@@ -1,2 +0,2 @@

import { SERVICES_SCHEMA_MAP } from '@unblokttechnology/nexera-id-schemas';
import { PUBLIC_SERVICES_SCHEMA_MAP } from '@nexeraid/identity-schemas';

@@ -19,31 +19,22 @@ function _toPrimitive(t, r) {

function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
function _defineProperties(e, r) {
for (var t = 0; t < r.length; t++) {
var o = r[t];
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
function _createClass(e, r, t) {
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
writable: !1
}), e;
}
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
function _classCallCheck(a, n) {
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
function _getPrototypeOf(t) {
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
return t.__proto__ || Object.getPrototypeOf(t);
}, _getPrototypeOf(t);
}

@@ -60,16 +51,11 @@

function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
function _assertThisInitialized(e) {
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return e;
}
function _possibleConstructorReturn(self, call) {
if (call && (typeof call === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return _assertThisInitialized(self);
function _possibleConstructorReturn(t, e) {
if (e && ("object" == typeof e || "function" == typeof e)) return e;
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
return _assertThisInitialized(t);
}

@@ -81,25 +67,19 @@

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
function _setPrototypeOf(t, e) {
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
return t.__proto__ = e, t;
}, _setPrototypeOf(t, e);
}
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
function _inherits(t, e) {
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
t.prototype = Object.create(e && e.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
value: t,
writable: !0,
configurable: !0
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) _setPrototypeOf(subClass, superClass);
}), Object.defineProperty(t, "prototype", {
writable: !1
}), e && _setPrototypeOf(t, e);
}

@@ -117,15 +97,9 @@

function _defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
function _defineProperty(e, r, t) {
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[r] = t, e;
}

@@ -457,29 +431,24 @@

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
function asyncGeneratorStep(n, t, e, r, o, a, c) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
var i = n[a](c),
u = i.value;
} catch (n) {
return void e(n);
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
i.done ? t(u) : Promise.resolve(u).then(r, o);
}
function _asyncToGenerator(fn) {
function _asyncToGenerator(n) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
var t = this,
e = arguments;
return new Promise(function (r, o) {
var a = n.apply(t, e);
function _next(n) {
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
function _throw(n) {
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
}
_next(undefined);
_next(void 0);
});

@@ -489,4 +458,4 @@ };

function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
function _arrayWithHoles(r) {
if (Array.isArray(r)) return r;
}

@@ -522,15 +491,14 @@

function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
function _arrayLikeToArray(r, a) {
(null == a || a > r.length) && (a = r.length);
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
return n;
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
function _unsupportedIterableToArray(r, a) {
if (r) {
if ("string" == typeof r) return _arrayLikeToArray(r, a);
var t = {}.toString.call(r).slice(8, -1);
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
}
}

@@ -542,4 +510,4 @@

function _slicedToArray(arr, i) {
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
function _slicedToArray(r, e) {
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
}

@@ -557,7 +525,7 @@

function _isNativeFunction(fn) {
function _isNativeFunction(t) {
try {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
} catch (e) {
return typeof fn === "function";
return -1 !== Function.toString.call(t).indexOf("[native code]");
} catch (n) {
return "function" == typeof t;
}

@@ -574,27 +542,23 @@ }

function _wrapNativeSuper(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (Class === null || !_isNativeFunction(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
function _wrapNativeSuper(t) {
var r = "function" == typeof Map ? new Map() : void 0;
return _wrapNativeSuper = function (t) {
if (null === t || !_isNativeFunction(t)) return t;
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
if (void 0 !== r) {
if (r.has(t)) return r.get(t);
r.set(t, Wrapper);
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
return _construct(t, arguments, _getPrototypeOf(this).constructor);
}
Wrapper.prototype = Object.create(Class.prototype, {
return Wrapper.prototype = Object.create(t.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
enumerable: !1,
writable: !0,
configurable: !0
}
});
return _setPrototypeOf(Wrapper, Class);
};
return _wrapNativeSuper(Class);
}), _setPrototypeOf(Wrapper, t);
}, _wrapNativeSuper(t);
}

@@ -622,24 +586,23 @@

return _createClass(ApiError);
}( /*#__PURE__*/_wrapNativeSuper(Error));
}(/*#__PURE__*/_wrapNativeSuper(Error));
function _createForOfIteratorHelper(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
var F = function () {};
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
t && (r = t);
var n = 0,
F = function () {};
return {
s: F,
n: function () {
if (i >= o.length) return {
done: true
return n >= r.length ? {
done: !0
} : {
done: !1,
value: r[n++]
};
return {
done: false,
value: o[i++]
};
},
e: function (e) {
throw e;
e: function (r) {
throw r;
},

@@ -651,23 +614,21 @@ f: F

}
var normalCompletion = true,
didErr = false,
err;
var o,
a = !0,
u = !1;
return {
s: function () {
it = it.call(o);
t = t.call(r);
},
n: function () {
var step = it.next();
normalCompletion = step.done;
return step;
var r = t.next();
return a = r.done, r;
},
e: function (e) {
didErr = true;
err = e;
e: function (r) {
u = !0, o = r;
},
f: function () {
try {
if (!normalCompletion && it.return != null) it.return();
a || null == t.return || t.return();
} finally {
if (didErr) throw err;
if (u) throw o;
}

@@ -678,11 +639,8 @@ }

function _checkPrivateRedeclaration(obj, privateCollection) {
if (privateCollection.has(obj)) {
throw new TypeError("Cannot initialize the same private elements twice on an object");
}
function _checkPrivateRedeclaration(e, t) {
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
}
function _classPrivateFieldInitSpec(obj, privateMap, value) {
_checkPrivateRedeclaration(obj, privateMap);
privateMap.set(obj, value);
function _classPrivateFieldInitSpec(e, t, a) {
_checkPrivateRedeclaration(e, t), t.set(e, a);
}

@@ -722,3 +680,3 @@

}]);
}( /*#__PURE__*/_wrapNativeSuper(Error));
}(/*#__PURE__*/_wrapNativeSuper(Error));
var _isResolved = /*#__PURE__*/new WeakMap();

@@ -872,7 +830,7 @@ var _isRejected = /*#__PURE__*/new WeakMap();

};
var process = function process(key, value) {
var _process = function process(key, value) {
if (isDefined(value)) {
if (Array.isArray(value)) {
value.forEach(function (v) {
process(key, v);
_process(key, v);
});

@@ -884,3 +842,3 @@ } else if (_typeof(value) === 'object') {

v = _ref2[1];
process("".concat(key, "[").concat(k, "]"), v);
_process("".concat(key, "[").concat(k, "]"), v);
});

@@ -896,3 +854,3 @@ } else {

value = _ref4[1];
process(key, value);
_process(key, value);
});

@@ -951,3 +909,3 @@ if (qs.length > 0) {

var resolve = /*#__PURE__*/function () {
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options, resolver) {
var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(options, resolver) {
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -974,3 +932,3 @@ while (1) switch (_context.prev = _context.next) {

var getHeaders = /*#__PURE__*/function () {
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(config, options) {
var _ref10 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(config, options) {
var _yield$Promise$all, _yield$Promise$all2, token, username, password, additionalHeaders, headers, credentials;

@@ -1045,3 +1003,3 @@ return _regeneratorRuntime().wrap(function _callee2$(_context2) {

var sendRequest = /*#__PURE__*/function () {
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(config, options, url, body, formData, headers, onCancel) {
var _ref15 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(config, options, url, body, formData, headers, onCancel) {
var controller, request;

@@ -1088,3 +1046,3 @@ return _regeneratorRuntime().wrap(function _callee3$(_context3) {

var getResponseBody = /*#__PURE__*/function () {
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(response) {
var _ref16 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(response) {
var contentType, jsonTypes, isJSON;

@@ -1177,4 +1135,4 @@ return _regeneratorRuntime().wrap(function _callee4$(_context4) {

var request = function request(config, options) {
return new CancelablePromise( /*#__PURE__*/function () {
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(resolve, reject, onCancel) {
return new CancelablePromise(/*#__PURE__*/function () {
var _ref17 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(resolve, reject, onCancel) {
var url, formData, body, headers, response, responseBody, responseHeader, result;

@@ -1467,3 +1425,3 @@ return _regeneratorRuntime().wrap(function _callee5$(_context5) {

return new ApiClient({
BASE: (_props$url = props === null || props === void 0 ? void 0 : props.url) !== null && _props$url !== void 0 ? _props$url : SERVICES_SCHEMA_MAP.identity_api[env],
BASE: (_props$url = props === null || props === void 0 ? void 0 : props.url) !== null && _props$url !== void 0 ? _props$url : PUBLIC_SERVICES_SCHEMA_MAP.identity_api[env],
HEADERS: _objectSpread2(_objectSpread2({}, authheader), {}, {

@@ -1470,0 +1428,0 @@ "Content-Type": "application/json"

{
"name": "@nexeraid/identity-api-client",
"version": "1.3.215",
"version": "2.1.0",
"description": "",

@@ -28,2 +28,4 @@ "keywords": [],

"lint:fix": "pnpm lint --fix",
"prepare:release": "sed -i 's/.*\"postinstall\":.*//' package.json",
"prepare:release:mac": "sed -i '' 's/.*\"postinstall\":.*//' package.json",
"prettier": "prettier 'src/' --check",

@@ -43,5 +45,5 @@ "prettier:fix": "prettier 'src/' --write",

"dependencies": {
"@unblokttechnology/nexera-id-schemas": "workspace:*",
"@nexeraid/identity-schemas": "workspace:*",
"zod": "3.22.4",
"zod-validation-error": "^3.3.1"
"zod-validation-error": "^3.4.0"
},

@@ -51,3 +53,3 @@ "devDependencies": {

"openapi-typescript-codegen": "^0.29.0",
"typescript": "5.4.5"
"typescript": "^5.6.2"
},

@@ -54,0 +56,0 @@ "preconstruct": {

{
"name": "@nexeraid/identity-api-client",
"version": "1.3.215",
"version": "2.1.0-dev",
"description": "",

@@ -31,8 +31,8 @@ "keywords": [],

"zod": "3.22.4",
"zod-validation-error": "^3.3.1",
"@unblokttechnology/nexera-id-schemas": "1.12.6-feature-web3-457-remove-identity-app-mapping-to-legacy-react-context-last-1724140630191"
"zod-validation-error": "^3.4.0",
"@nexeraid/identity-schemas": "2.1.1-dev"
},
"devDependencies": {
"openapi-typescript-codegen": "^0.29.0",
"typescript": "5.4.5",
"typescript": "^5.6.2",
"@unblokttechnology/eslint-config": "0.1.1"

@@ -50,5 +50,6 @@ },

"generate": "pnpm run fetch-schema && openapi --input openapi.json --output ./src/generated --useUnionTypes --useOptions --name ApiClient",
"postinstall": "if [ \"$BUILDING_IN_DOCKER\" != \"true\" ]; then preconstruct dev; fi",
"lint": "eslint .",
"lint:fix": "pnpm lint --fix",
"prepare:release": "sed -i 's/.*\"postinstall\":.*//' package.json",
"prepare:release:mac": "sed -i '' 's/.*\"postinstall\":.*//' package.json",
"prettier": "prettier 'src/' --check",

@@ -55,0 +56,0 @@ "prettier:fix": "prettier 'src/' --write",

@@ -17,3 +17,2 @@ # Overview

- [generate-api-client.yml](..%2F..%2F..%2F.github%2Fworkflows%2Fgenerate-api-client.yml)
- For more information about CI see [CI.md](..%2F..%2F..%2Fdev-docs%2FCI.md)
- [generate-api-client.yml](..%2F..%2F..%2F.github%2Fworkflows%2Fgenerate-api-client.yml)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc