@compilot/js-sdk 2.122.0-dev → 2.124.0-dev

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.
@@ -10,47 +10,77 @@ import { Webhook } from 'svix';
10
10
 
11
11
  function _regeneratorRuntime() {
12
12
  _regeneratorRuntime = function () {
13
- return e;
13
+ return r;
14
14
  };
15
15
  var t,
16
- e = {},
17
- r = Object.prototype,
18
- n = r.hasOwnProperty,
19
- o = Object.defineProperty || function (t, e, r) {
20
- t[e] = r.value;
21
- },
22
- i = "function" == typeof Symbol ? Symbol : {},
23
- a = i.iterator || "@@iterator",
24
- c = i.asyncIterator || "@@asyncIterator",
25
- u = i.toStringTag || "@@toStringTag";
26
- function define(t, e, r) {
27
- return Object.defineProperty(t, e, {
28
- value: r,
29
- enumerable: !0,
30
- configurable: !0,
31
- writable: !0
32
- }), t[e];
16
+ r = {},
17
+ e = Object.prototype,
18
+ n = e.hasOwnProperty,
19
+ o = "function" == typeof Symbol ? Symbol : {},
20
+ i = o.iterator || "@@iterator",
21
+ a = o.asyncIterator || "@@asyncIterator",
22
+ u = o.toStringTag || "@@toStringTag";
23
+ function c(t, r, e, n) {
24
+ return Object.defineProperty(t, r, {
25
+ value: e,
26
+ enumerable: !n,
27
+ configurable: !n,
28
+ writable: !n
29
+ });
33
30
  }
34
31
  try {
35
- define({}, "");
32
+ c({}, "");
36
33
  } catch (t) {
37
- define = function (t, e, r) {
38
- return t[e] = r;
34
+ c = function (t, r, e) {
35
+ return t[r] = e;
39
36
  };
40
37
  }
41
- function wrap(t, e, r, n) {
38
+ function h(r, e, n, o) {
42
39
  var i = e && e.prototype instanceof Generator ? e : Generator,
43
- a = Object.create(i.prototype),
44
- c = new Context(n || []);
45
- return o(a, "_invoke", {
46
- value: makeInvokeMethod(t, r, c)
47
- }), a;
40
+ a = Object.create(i.prototype);
41
+ return c(a, "_invoke", function (r, e, n) {
42
+ var o = 1;
43
+ return function (i, a) {
44
+ if (3 === o) throw Error("Generator is already running");
45
+ if (4 === o) {
46
+ if ("throw" === i) throw a;
47
+ return {
48
+ value: t,
49
+ done: !0
50
+ };
51
+ }
52
+ for (n.method = i, n.arg = a;;) {
53
+ var u = n.delegate;
54
+ if (u) {
55
+ var c = d(u, n);
56
+ if (c) {
57
+ if (c === f) continue;
58
+ return c;
59
+ }
60
+ }
61
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
62
+ if (1 === o) throw o = 4, n.arg;
63
+ n.dispatchException(n.arg);
64
+ } else "return" === n.method && n.abrupt("return", n.arg);
65
+ o = 3;
66
+ var h = s(r, e, n);
67
+ if ("normal" === h.type) {
68
+ if (o = n.done ? 4 : 2, h.arg === f) continue;
69
+ return {
70
+ value: h.arg,
71
+ done: n.done
72
+ };
73
+ }
74
+ "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
75
+ }
76
+ };
77
+ }(r, n, new Context(o || [])), !0), a;
48
78
  }
49
- function tryCatch(t, e, r) {
79
+ function s(t, r, e) {
50
80
  try {
51
81
  return {
52
82
  type: "normal",
53
- arg: t.call(e, r)
83
+ arg: t.call(r, e)
54
84
  };
55
85
  } catch (t) {
56
86
  return {
@@ -59,255 +89,193 @@ function _regeneratorRuntime() {
59
89
  };
60
90
  }
61
91
  }
62
- e.wrap = wrap;
63
- var h = "suspendedStart",
64
- l = "suspendedYield",
65
- f = "executing",
66
- s = "completed",
67
- y = {};
92
+ r.wrap = h;
93
+ var f = {};
68
94
  function Generator() {}
69
95
  function GeneratorFunction() {}
70
96
  function GeneratorFunctionPrototype() {}
71
- var p = {};
72
- define(p, a, function () {
97
+ var l = {};
98
+ c(l, i, function () {
73
99
  return this;
74
100
  });
75
- var d = Object.getPrototypeOf,
76
- v = d && d(d(values([])));
77
- v && v !== r && n.call(v, a) && (p = v);
78
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
79
- function defineIteratorMethods(t) {
80
- ["next", "throw", "return"].forEach(function (e) {
81
- define(t, e, function (t) {
82
- return this._invoke(e, t);
101
+ var p = Object.getPrototypeOf,
102
+ y = p && p(p(x([])));
103
+ y && y !== e && n.call(y, i) && (l = y);
104
+ var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
105
+ function g(t) {
106
+ ["next", "throw", "return"].forEach(function (r) {
107
+ c(t, r, function (t) {
108
+ return this._invoke(r, t);
83
109
  });
84
110
  });
85
111
  }
86
- function AsyncIterator(t, e) {
87
- function invoke(r, o, i, a) {
88
- var c = tryCatch(t[r], t, o);
112
+ function AsyncIterator(t, r) {
113
+ function e(o, i, a, u) {
114
+ var c = s(t[o], t, i);
89
115
  if ("throw" !== c.type) {
90
- var u = c.arg,
91
- h = u.value;
92
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
93
- invoke("next", t, i, a);
116
+ var h = c.arg,
117
+ f = h.value;
118
+ return f && "object" == typeof f && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
119
+ e("next", t, a, u);
94
120
  }, function (t) {
95
- invoke("throw", t, i, a);
96
- }) : e.resolve(h).then(function (t) {
97
- u.value = t, i(u);
121
+ e("throw", t, a, u);
122
+ }) : r.resolve(f).then(function (t) {
123
+ h.value = t, a(h);
98
124
  }, function (t) {
99
- return invoke("throw", t, i, a);
125
+ return e("throw", t, a, u);
100
126
  });
101
127
  }
102
- a(c.arg);
128
+ u(c.arg);
103
129
  }
104
- var r;
105
- o(this, "_invoke", {
106
- value: function (t, n) {
107
- function callInvokeWithMethodAndArg() {
108
- return new e(function (e, r) {
109
- invoke(t, n, e, r);
110
- });
111
- }
112
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
113
- }
114
- });
115
- }
116
- function makeInvokeMethod(e, r, n) {
117
- var o = h;
118
- return function (i, a) {
119
- if (o === f) throw Error("Generator is already running");
120
- if (o === s) {
121
- if ("throw" === i) throw a;
122
- return {
123
- value: t,
124
- done: !0
125
- };
126
- }
127
- for (n.method = i, n.arg = a;;) {
128
- var c = n.delegate;
129
- if (c) {
130
- var u = maybeInvokeDelegate(c, n);
131
- if (u) {
132
- if (u === y) continue;
133
- return u;
134
- }
135
- }
136
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
137
- if (o === h) throw o = s, n.arg;
138
- n.dispatchException(n.arg);
139
- } else "return" === n.method && n.abrupt("return", n.arg);
140
- o = f;
141
- var p = tryCatch(e, r, n);
142
- if ("normal" === p.type) {
143
- if (o = n.done ? s : l, p.arg === y) continue;
144
- return {
145
- value: p.arg,
146
- done: n.done
147
- };
148
- }
149
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
130
+ var o;
131
+ c(this, "_invoke", function (t, n) {
132
+ function i() {
133
+ return new r(function (r, o) {
134
+ e(t, n, r, o);
135
+ });
150
136
  }
151
- };
137
+ return o = o ? o.then(i, i) : i();
138
+ }, !0);
152
139
  }
153
- function maybeInvokeDelegate(e, r) {
154
- var n = r.method,
155
- o = e.iterator[n];
156
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
157
- var i = tryCatch(o, e.iterator, r.arg);
158
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
140
+ function d(r, e) {
141
+ var n = e.method,
142
+ o = r.i[n];
143
+ if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
144
+ var i = s(o, r.i, e.arg);
145
+ if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
159
146
  var a = i.arg;
160
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
147
+ return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
161
148
  }
162
- function pushTryEntry(t) {
163
- var e = {
164
- tryLoc: t[0]
165
- };
166
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
149
+ function w(t) {
150
+ this.tryEntries.push(t);
167
151
  }
168
- function resetTryEntry(t) {
169
- var e = t.completion || {};
170
- e.type = "normal", delete e.arg, t.completion = e;
152
+ function m(r) {
153
+ var e = r[4] || {};
154
+ e.type = "normal", e.arg = t, r[4] = e;
171
155
  }
172
156
  function Context(t) {
173
- this.tryEntries = [{
174
- tryLoc: "root"
175
- }], t.forEach(pushTryEntry, this), this.reset(!0);
157
+ this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
176
158
  }
177
- function values(e) {
178
- if (e || "" === e) {
179
- var r = e[a];
180
- if (r) return r.call(e);
181
- if ("function" == typeof e.next) return e;
182
- if (!isNaN(e.length)) {
159
+ function x(r) {
160
+ if (null != r) {
161
+ var e = r[i];
162
+ if (e) return e.call(r);
163
+ if ("function" == typeof r.next) return r;
164
+ if (!isNaN(r.length)) {
183
165
  var o = -1,
184
- i = function next() {
185
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
186
- return next.value = t, next.done = !0, next;
166
+ a = function e() {
167
+ for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
168
+ return e.value = t, e.done = !0, e;
187
169
  };
188
- return i.next = i;
170
+ return a.next = a;
189
171
  }
190
172
  }
191
- throw new TypeError(typeof e + " is not iterable");
173
+ throw new TypeError(typeof r + " is not iterable");
192
174
  }
193
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
194
- value: GeneratorFunctionPrototype,
195
- configurable: !0
196
- }), o(GeneratorFunctionPrototype, "constructor", {
197
- value: GeneratorFunction,
198
- configurable: !0
199
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
200
- var e = "function" == typeof t && t.constructor;
201
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
202
- }, e.mark = function (t) {
203
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
204
- }, e.awrap = function (t) {
175
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) {
176
+ var r = "function" == typeof t && t.constructor;
177
+ return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
178
+ }, r.mark = function (t) {
179
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
180
+ }, r.awrap = function (t) {
205
181
  return {
206
182
  __await: t
207
183
  };
208
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
184
+ }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
209
185
  return this;
210
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
186
+ }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
211
187
  void 0 === i && (i = Promise);
212
- var a = new AsyncIterator(wrap(t, r, n, o), i);
213
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
188
+ var a = new AsyncIterator(h(t, e, n, o), i);
189
+ return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
214
190
  return t.done ? t.value : a.next();
215
191
  });
216
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
192
+ }, g(v), c(v, u, "Generator"), c(v, i, function () {
217
193
  return this;
218
- }), define(g, "toString", function () {
194
+ }), c(v, "toString", function () {
219
195
  return "[object Generator]";
220
- }), e.keys = function (t) {
221
- var e = Object(t),
222
- r = [];
223
- for (var n in e) r.push(n);
224
- return r.reverse(), function next() {
225
- for (; r.length;) {
226
- var t = r.pop();
227
- if (t in e) return next.value = t, next.done = !1, next;
228
- }
229
- return next.done = !0, next;
196
+ }), r.keys = function (t) {
197
+ var r = Object(t),
198
+ e = [];
199
+ for (var n in r) e.unshift(n);
200
+ return function t() {
201
+ for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
202
+ return t.done = !0, t;
230
203
  };
231
- }, e.values = values, Context.prototype = {
204
+ }, r.values = x, Context.prototype = {
232
205
  constructor: Context,
233
- reset: function (e) {
234
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
206
+ reset: function (r) {
207
+ if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
235
208
  },
236
209
  stop: function () {
237
210
  this.done = !0;
238
- var t = this.tryEntries[0].completion;
211
+ var t = this.tryEntries[0][4];
239
212
  if ("throw" === t.type) throw t.arg;
240
213
  return this.rval;
241
214
  },
242
- dispatchException: function (e) {
243
- if (this.done) throw e;
244
- var r = this;
245
- function handle(n, o) {
246
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
215
+ dispatchException: function (r) {
216
+ if (this.done) throw r;
217
+ var e = this;
218
+ function n(t) {
219
+ a.type = "throw", a.arg = r, e.next = t;
247
220
  }
248
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
221
+ for (var o = e.tryEntries.length - 1; o >= 0; --o) {
249
222
  var i = this.tryEntries[o],
250
- a = i.completion;
251
- if ("root" === i.tryLoc) return handle("end");
252
- if (i.tryLoc <= this.prev) {
253
- var c = n.call(i, "catchLoc"),
254
- u = n.call(i, "finallyLoc");
255
- if (c && u) {
256
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
257
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
258
- } else if (c) {
259
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
260
- } else {
261
- if (!u) throw Error("try statement without catch or finally");
262
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
263
- }
223
+ a = i[4],
224
+ u = this.prev,
225
+ c = i[1],
226
+ h = i[2];
227
+ if (-1 === i[0]) return n("end"), !1;
228
+ if (!c && !h) throw Error("try statement without catch or finally");
229
+ if (null != i[0] && i[0] <= u) {
230
+ if (u < c) return this.method = "next", this.arg = t, n(c), !0;
231
+ if (u < h) return n(h), !1;
264
232
  }
265
233
  }
266
234
  },
267
- abrupt: function (t, e) {
268
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
269
- var o = this.tryEntries[r];
270
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
271
- var i = o;
235
+ abrupt: function (t, r) {
236
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
237
+ var n = this.tryEntries[e];
238
+ if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
239
+ var o = n;
272
240
  break;
273
241
  }
274
242
  }
275
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
276
- var a = i ? i.completion : {};
277
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
243
+ o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
244
+ var i = o ? o[4] : {};
245
+ return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
278
246
  },
279
- complete: function (t, e) {
247
+ complete: function (t, r) {
280
248
  if ("throw" === t.type) throw t.arg;
281
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
249
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
282
250
  },
283
251
  finish: function (t) {
284
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
285
- var r = this.tryEntries[e];
286
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
252
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
253
+ var e = this.tryEntries[r];
254
+ if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
287
255
  }
288
256
  },
289
257
  catch: function (t) {
290
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
291
- var r = this.tryEntries[e];
292
- if (r.tryLoc === t) {
293
- var n = r.completion;
258
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
259
+ var e = this.tryEntries[r];
260
+ if (e[0] === t) {
261
+ var n = e[4];
294
262
  if ("throw" === n.type) {
295
263
  var o = n.arg;
296
- resetTryEntry(r);
264
+ m(e);
297
265
  }
298
266
  return o;
299
267
  }
300
268
  }
301
269
  throw Error("illegal catch attempt");
302
270
  },
303
- delegateYield: function (e, r, n) {
271
+ delegateYield: function (r, e, n) {
304
272
  return this.delegate = {
305
- iterator: values(e),
306
- resultName: r,
307
- nextLoc: n
308
- }, "next" === this.method && (this.arg = t), y;
273
+ i: x(r),
274
+ r: e,
275
+ n: n
276
+ }, "next" === this.method && (this.arg = t), f;
309
277
  }
310
- }, e;
278
+ }, r;
311
279
  }
312
280
 
313
281
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/js-sdk",
3
- "version": "2.122.0",
3
+ "version": "2.124.0",
4
4
  "description": "ComPilot JS SDK",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -49,9 +49,9 @@
49
49
  "@nexeraid/identity-api-client": "workspace:*",
50
50
  "@nexeraid/identity-schemas": "workspace:*",
51
51
  "@nexeraid/logger": "workspace:*",
52
- "pino": "^9.6.0",
52
+ "pino": "^9.7.0",
53
53
  "svix": "1.21.0",
54
- "zod": "^3.24.3"
54
+ "zod": "^3.24.4"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@unblokttechnology/eslint-config": "workspace:*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compilot/js-sdk",
3
- "version": "2.122.0-dev",
3
+ "version": "2.124.0-dev",
4
4
  "description": "ComPilot JS SDK",
5
5
  "keywords": [],
6
6
  "license": "ISC",
@@ -32,13 +32,13 @@
32
32
  "root": true
33
33
  },
34
34
  "dependencies": {
35
- "pino": "^9.6.0",
35
+ "pino": "^9.7.0",
36
36
  "svix": "1.21.0",
37
- "zod": "^3.24.3",
38
- "@nexeraid/identity-api-client": "2.35.1-dev",
37
+ "zod": "^3.24.4",
39
38
  "@nexeraid/api-client": "2.35.1-dev",
40
- "@nexeraid/logger": "2.35.1-dev",
41
- "@nexeraid/identity-schemas": "2.141.0-dev"
39
+ "@nexeraid/identity-api-client": "2.35.1-dev",
40
+ "@nexeraid/identity-schemas": "2.143.0-dev",
41
+ "@nexeraid/logger": "2.35.1-dev"
42
42
  },
43
43
  "devDependencies": {
44
44
  "eslint": "^8.57.1",