@shipdit/cli 0.3.0 → 0.3.2
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 +266 -180
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -77,7 +77,7 @@ function resolveRuntimeConfig(flags, options) {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
//#endregion
|
|
80
|
-
//#region ../../node_modules/.pnpm/hono@4.13.
|
|
80
|
+
//#region ../../node_modules/.pnpm/hono@4.13.5/node_modules/hono/dist/utils/cookie.js
|
|
81
81
|
var validCookieNameRegEx = /^[\w!#$%&'*.^`|~+-]+$/;
|
|
82
82
|
var _serialize = (name, value, opt = {}) => {
|
|
83
83
|
if (!validCookieNameRegEx.test(name)) throw new Error("Invalid cookie name");
|
|
@@ -120,7 +120,7 @@ var serialize = (name, value, opt) => {
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/hono@4.13.
|
|
123
|
+
//#region ../../node_modules/.pnpm/hono@4.13.5/node_modules/hono/dist/client/utils.js
|
|
124
124
|
var mergePath = (base, path) => {
|
|
125
125
|
base = base.replace(/\/+$/, "");
|
|
126
126
|
base = base + "/";
|
|
@@ -130,7 +130,7 @@ var mergePath = (base, path) => {
|
|
|
130
130
|
var replaceUrlParam = (urlString, params) => {
|
|
131
131
|
for (const [k, v] of Object.entries(params)) {
|
|
132
132
|
const reg = new RegExp("/:" + k + "(?:{[^/]+})?\\??(?=/|$)");
|
|
133
|
-
urlString = urlString.replace(reg, v ? `/${v}` : "");
|
|
133
|
+
urlString = urlString.replace(reg, () => v ? `/${v}` : "");
|
|
134
134
|
}
|
|
135
135
|
return urlString;
|
|
136
136
|
};
|
|
@@ -138,7 +138,10 @@ var buildSearchParams = (query) => {
|
|
|
138
138
|
const searchParams = new URLSearchParams();
|
|
139
139
|
for (const [k, v] of Object.entries(query)) {
|
|
140
140
|
if (v === void 0) continue;
|
|
141
|
-
if (Array.isArray(v)) for (const v2 of v)
|
|
141
|
+
if (Array.isArray(v)) for (const v2 of v) {
|
|
142
|
+
if (v2 === void 0) continue;
|
|
143
|
+
searchParams.append(k, v2);
|
|
144
|
+
}
|
|
142
145
|
else searchParams.set(k, v);
|
|
143
146
|
}
|
|
144
147
|
return searchParams;
|
|
@@ -168,7 +171,7 @@ function deepMerge(target, source) {
|
|
|
168
171
|
}
|
|
169
172
|
|
|
170
173
|
//#endregion
|
|
171
|
-
//#region ../../node_modules/.pnpm/hono@4.13.
|
|
174
|
+
//#region ../../node_modules/.pnpm/hono@4.13.5/node_modules/hono/dist/client/client.js
|
|
172
175
|
var createProxy = (callback, path) => {
|
|
173
176
|
return new Proxy(() => {}, {
|
|
174
177
|
get(_obj, key) {
|
|
@@ -183,6 +186,10 @@ var createProxy = (callback, path) => {
|
|
|
183
186
|
}
|
|
184
187
|
});
|
|
185
188
|
};
|
|
189
|
+
var appendQueryParams = (url, searchParams) => {
|
|
190
|
+
const queryString = searchParams.toString();
|
|
191
|
+
return queryString ? `${url}?${queryString}` : url;
|
|
192
|
+
};
|
|
186
193
|
var ClientRequestImpl = class {
|
|
187
194
|
url;
|
|
188
195
|
method;
|
|
@@ -203,12 +210,15 @@ var ClientRequestImpl = class {
|
|
|
203
210
|
const form = new FormData();
|
|
204
211
|
for (const [k, v] of Object.entries(args.form)) {
|
|
205
212
|
if (v === void 0) continue;
|
|
206
|
-
if (Array.isArray(v)) for (const v2 of v)
|
|
213
|
+
if (Array.isArray(v)) for (const v2 of v) {
|
|
214
|
+
if (v2 === void 0) continue;
|
|
215
|
+
form.append(k, v2);
|
|
216
|
+
}
|
|
207
217
|
else form.append(k, v);
|
|
208
218
|
}
|
|
209
219
|
this.rBody = form;
|
|
210
220
|
}
|
|
211
|
-
if (args.json) {
|
|
221
|
+
if (args.json !== void 0) {
|
|
212
222
|
this.rBody = JSON.stringify(args.json);
|
|
213
223
|
this.cType = "application/json";
|
|
214
224
|
}
|
|
@@ -221,15 +231,19 @@ var ClientRequestImpl = class {
|
|
|
221
231
|
};
|
|
222
232
|
if (args?.cookie) {
|
|
223
233
|
const cookies = [];
|
|
224
|
-
for (const [key, value] of Object.entries(args.cookie))
|
|
225
|
-
|
|
234
|
+
for (const [key, value] of Object.entries(args.cookie)) {
|
|
235
|
+
if (value === void 0) continue;
|
|
236
|
+
cookies.push(serialize(key, value));
|
|
237
|
+
}
|
|
238
|
+
if (cookies.length > 0) headerValues["Cookie"] = cookies.join("; ");
|
|
226
239
|
}
|
|
227
240
|
if (this.cType) headerValues["Content-Type"] = this.cType;
|
|
228
|
-
const headers = new Headers(
|
|
241
|
+
const headers = new Headers();
|
|
242
|
+
for (const [key, value] of Object.entries(headerValues)) if (value !== void 0) headers.set(key, value);
|
|
229
243
|
let url = this.url;
|
|
230
244
|
url = removeIndexString(url);
|
|
231
245
|
url = replaceUrlParam(url, this.pathParams);
|
|
232
|
-
if (this.queryParams) url = url
|
|
246
|
+
if (this.queryParams) url = appendQueryParams(url, this.queryParams);
|
|
233
247
|
methodUpperCase = this.method.toUpperCase();
|
|
234
248
|
const setBody = !(methodUpperCase === "GET" || methodUpperCase === "HEAD");
|
|
235
249
|
return (opt?.fetch || fetch)(url, {
|
|
@@ -263,19 +277,18 @@ var hc = (baseUrl, options) => createProxy(function proxyCallback(opts) {
|
|
|
263
277
|
let result = url;
|
|
264
278
|
if (opts.args[0]) {
|
|
265
279
|
if (opts.args[0].param) result = replaceUrlParam(url, opts.args[0].param);
|
|
266
|
-
if (opts.args[0].query) result = result
|
|
280
|
+
if (opts.args[0].query) result = appendQueryParams(result, buildSearchParamsOption(opts.args[0].query));
|
|
267
281
|
}
|
|
268
282
|
result = removeIndexString(result);
|
|
269
283
|
if (method === "url") return new URL(result);
|
|
270
284
|
return result.slice(baseUrl.replace(/\/+$/, "").length).replace(/^\/?/, "/");
|
|
271
285
|
}
|
|
272
286
|
if (method === "ws") {
|
|
273
|
-
const webSocketUrl = replaceUrlProtocol(opts.args[0]
|
|
287
|
+
const webSocketUrl = replaceUrlProtocol(opts.args[0]?.param ? replaceUrlParam(url, opts.args[0].param) : url, "ws");
|
|
274
288
|
const targetUrl = new URL(webSocketUrl);
|
|
275
289
|
const queryParams = opts.args[0]?.query;
|
|
276
|
-
if (queryParams)
|
|
277
|
-
|
|
278
|
-
else targetUrl.searchParams.set(key, value);
|
|
290
|
+
if (queryParams) buildSearchParamsOption(queryParams).forEach((value, key) => {
|
|
291
|
+
targetUrl.searchParams.append(key, value);
|
|
279
292
|
});
|
|
280
293
|
const establishWebSocket = (...args) => {
|
|
281
294
|
if (options?.webSocket !== void 0 && typeof options.webSocket === "function") return options.webSocket(...args);
|
|
@@ -307,7 +320,12 @@ const t$2 = [
|
|
|
307
320
|
`not_found`,
|
|
308
321
|
`conflict`,
|
|
309
322
|
`validation_error`,
|
|
310
|
-
`
|
|
323
|
+
`payload_too_large`,
|
|
324
|
+
`quota_exceeded`,
|
|
325
|
+
`rate_limited`,
|
|
326
|
+
`internal`,
|
|
327
|
+
`tenant_migrating`,
|
|
328
|
+
`tenant_unavailable`
|
|
311
329
|
];
|
|
312
330
|
function n$2(e) {
|
|
313
331
|
if (typeof e != `object` || !e || !(`error` in e)) return !1;
|
|
@@ -321,26 +339,33 @@ var r$1 = class e extends Error {
|
|
|
321
339
|
status;
|
|
322
340
|
requestId;
|
|
323
341
|
details;
|
|
342
|
+
retryAfterSeconds;
|
|
324
343
|
constructor(e) {
|
|
325
|
-
super(e.message), this.name = `ShipdApiError`, this.code = e.code, this.status = e.status, this.requestId = e.requestId, this.details = e.details;
|
|
344
|
+
super(e.message), this.name = `ShipdApiError`, this.code = e.code, this.status = e.status, this.requestId = e.requestId, this.details = e.details, this.retryAfterSeconds = e.retryAfterSeconds;
|
|
326
345
|
}
|
|
327
|
-
static fromResponse(r, i) {
|
|
346
|
+
static fromResponse(r, i, a) {
|
|
347
|
+
let o = a == null ? NaN : Number(a), s = Number.isFinite(o) && o >= 0 ? o : void 0;
|
|
328
348
|
return n$2(i) ? new e({
|
|
329
349
|
code: t$2.includes(i.error.code) ? i.error.code : `unknown`,
|
|
330
350
|
message: i.error.message,
|
|
331
351
|
status: r,
|
|
332
352
|
requestId: i.error.requestId,
|
|
333
|
-
details: i.error.details
|
|
353
|
+
details: i.error.details,
|
|
354
|
+
retryAfterSeconds: s
|
|
334
355
|
}) : new e({
|
|
335
356
|
code: `unknown`,
|
|
336
357
|
message: `Request failed with status ${r}`,
|
|
337
358
|
status: r,
|
|
338
359
|
requestId: `unknown`,
|
|
339
|
-
details: i
|
|
360
|
+
details: i,
|
|
361
|
+
retryAfterSeconds: s
|
|
340
362
|
});
|
|
341
363
|
}
|
|
364
|
+
get isServerFailure() {
|
|
365
|
+
return this.status >= 500 || this.code === `internal` && this.status < 400;
|
|
366
|
+
}
|
|
342
367
|
};
|
|
343
|
-
async function
|
|
368
|
+
async function a$1(e) {
|
|
344
369
|
let t;
|
|
345
370
|
try {
|
|
346
371
|
t = await e.json();
|
|
@@ -352,7 +377,7 @@ async function i$1(e) {
|
|
|
352
377
|
requestId: `unknown`
|
|
353
378
|
});
|
|
354
379
|
}
|
|
355
|
-
if (!e.ok) throw r$1.fromResponse(e.status, t);
|
|
380
|
+
if (!e.ok) throw r$1.fromResponse(e.status, t, e.headers.get(`retry-after`));
|
|
356
381
|
if (typeof t != `object` || !t || !(`data` in t)) throw new r$1({
|
|
357
382
|
code: `internal`,
|
|
358
383
|
message: `Malformed success response`,
|
|
@@ -362,7 +387,6 @@ async function i$1(e) {
|
|
|
362
387
|
});
|
|
363
388
|
return t.data;
|
|
364
389
|
}
|
|
365
|
-
const a$1 = (...t) => hc(...t);
|
|
366
390
|
const o$1 = (...t) => hc(...t);
|
|
367
391
|
const s$1 = (...t) => hc(...t);
|
|
368
392
|
const c$1 = (...t) => hc(...t);
|
|
@@ -379,10 +403,14 @@ const v$1 = (...t) => hc(...t);
|
|
|
379
403
|
const y$1 = (...t) => hc(...t);
|
|
380
404
|
const b$1 = (...t) => hc(...t);
|
|
381
405
|
const x$1 = (...t) => hc(...t);
|
|
382
|
-
|
|
406
|
+
const S$1 = (...t) => hc(...t);
|
|
407
|
+
const C$1 = (...t) => hc(...t);
|
|
408
|
+
const w$1 = (...t) => hc(...t);
|
|
409
|
+
const T$1 = (...t) => hc(...t);
|
|
410
|
+
function E$1(e) {
|
|
383
411
|
return `${e.replace(/\/+$/, ``)}/api/v1/rpc`;
|
|
384
412
|
}
|
|
385
|
-
function
|
|
413
|
+
function D$1(e) {
|
|
386
414
|
return {
|
|
387
415
|
...e.fetch ? { fetch: e.fetch } : {},
|
|
388
416
|
init: { credentials: e.client === `dashboard` ? `include` : `same-origin` },
|
|
@@ -392,148 +420,179 @@ function C$1(e) {
|
|
|
392
420
|
}
|
|
393
421
|
};
|
|
394
422
|
}
|
|
395
|
-
async function
|
|
396
|
-
return
|
|
423
|
+
async function O$1(e, t) {
|
|
424
|
+
return a$1(await e({ json: t }));
|
|
397
425
|
}
|
|
398
|
-
function
|
|
399
|
-
let
|
|
426
|
+
async function k$1(e, t) {
|
|
427
|
+
let n = await e({ json: t });
|
|
428
|
+
return {
|
|
429
|
+
items: await a$1(n),
|
|
430
|
+
nextCursor: n.headers.get(`next-cursor`)
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
function A$1(e) {
|
|
434
|
+
let t = E$1(e.baseUrl), n = D$1(e), r = o$1(t, n), i = s$1(t, n), a = c$1(t, n), A = l$1(t, n), j = u$1(t, n), M = d$2(t, n), N = f$2(t, n), P = p$1(t, n), F = _$1(t, n), I = g$1(t, n), L = m$1(t, n), R = h$1(t, n), z = v$1(t, n), B = y$1(t, n), V = b$1(t, n), H = x$1(t, n), U = T$1(t, n), W = S$1(t, n), G = C$1(t, n), K = w$1(t, n);
|
|
400
435
|
return {
|
|
401
436
|
me: {
|
|
402
|
-
get: (e = {}) =>
|
|
403
|
-
feedback: (e) =>
|
|
437
|
+
get: (e = {}) => O$1(r.me.$post, e),
|
|
438
|
+
feedback: (e) => O$1(r.me.feedback.$post, e)
|
|
404
439
|
},
|
|
405
440
|
project: {
|
|
406
|
-
list: (e = {}) =>
|
|
407
|
-
create: (e) =>
|
|
408
|
-
update: (e) =>
|
|
409
|
-
archive: (e) =>
|
|
410
|
-
listTeams: (e) =>
|
|
411
|
-
setTeams: (e) =>
|
|
441
|
+
list: (e = {}) => O$1(i.project.list.$post, e),
|
|
442
|
+
create: (e) => O$1(i.project.create.$post, e),
|
|
443
|
+
update: (e) => O$1(i.project.update.$post, e),
|
|
444
|
+
archive: (e) => O$1(i.project.archive.$post, e),
|
|
445
|
+
listTeams: (e) => O$1(i.project.listTeams.$post, e),
|
|
446
|
+
setTeams: (e) => O$1(i.project.setTeams.$post, e)
|
|
412
447
|
},
|
|
413
|
-
team: { listMembers: (e) =>
|
|
448
|
+
team: { listMembers: (e) => O$1(W.team.listMembers.$post, e) },
|
|
414
449
|
environment: {
|
|
415
|
-
list: (e) =>
|
|
416
|
-
create: (e) =>
|
|
417
|
-
update: (e) =>
|
|
418
|
-
archive: (e) =>
|
|
450
|
+
list: (e) => O$1(a.environment.list.$post, e),
|
|
451
|
+
create: (e) => O$1(a.environment.create.$post, e),
|
|
452
|
+
update: (e) => O$1(a.environment.update.$post, e),
|
|
453
|
+
archive: (e) => O$1(a.environment.archive.$post, e)
|
|
419
454
|
},
|
|
420
455
|
flag: {
|
|
421
|
-
list: (e) =>
|
|
422
|
-
get: (e) =>
|
|
423
|
-
create: (e) =>
|
|
424
|
-
update: (e) =>
|
|
425
|
-
archive: (e) =>
|
|
426
|
-
updateEnvironment: (e) =>
|
|
427
|
-
toggleEnvironment: (e) =>
|
|
428
|
-
listEnvironmentStates: (e) =>
|
|
429
|
-
pull: (e) =>
|
|
430
|
-
diff: (e) =>
|
|
431
|
-
push: (e) =>
|
|
456
|
+
list: (e) => O$1(A.flag.list.$post, e),
|
|
457
|
+
get: (e) => O$1(A.flag.get.$post, e),
|
|
458
|
+
create: (e) => O$1(A.flag.create.$post, e),
|
|
459
|
+
update: (e) => O$1(A.flag.update.$post, e),
|
|
460
|
+
archive: (e) => O$1(A.flag.archive.$post, e),
|
|
461
|
+
updateEnvironment: (e) => O$1(A.flag.updateEnvironment.$post, e),
|
|
462
|
+
toggleEnvironment: (e) => O$1(A.flag.toggleEnvironment.$post, e),
|
|
463
|
+
listEnvironmentStates: (e) => O$1(A.flag.listEnvironmentStates.$post, e),
|
|
464
|
+
pull: (e) => O$1(A.flag.pull.$post, e),
|
|
465
|
+
diff: (e) => O$1(A.flag.diff.$post, e),
|
|
466
|
+
push: (e) => O$1(A.flag.push.$post, e)
|
|
432
467
|
},
|
|
433
468
|
apiKey: {
|
|
434
|
-
list: (e = {}) =>
|
|
435
|
-
create: (e) =>
|
|
436
|
-
revoke: (e) =>
|
|
469
|
+
list: (e = {}) => O$1(j.apiKey.list.$post, e),
|
|
470
|
+
create: (e) => O$1(j.apiKey.create.$post, e),
|
|
471
|
+
revoke: (e) => O$1(j.apiKey.revoke.$post, e)
|
|
437
472
|
},
|
|
438
473
|
sdkKey: {
|
|
439
|
-
list: (e = {}) =>
|
|
440
|
-
create: (e) =>
|
|
441
|
-
revoke: (e) =>
|
|
474
|
+
list: (e = {}) => O$1(P.sdkKey.list.$post, e),
|
|
475
|
+
create: (e) => O$1(P.sdkKey.create.$post, e),
|
|
476
|
+
revoke: (e) => O$1(P.sdkKey.revoke.$post, e)
|
|
442
477
|
},
|
|
443
478
|
serviceAccount: {
|
|
444
|
-
list: (e = {}) =>
|
|
445
|
-
get: (e) =>
|
|
446
|
-
create: (e) =>
|
|
447
|
-
update: (e) =>
|
|
448
|
-
disable: (e) =>
|
|
449
|
-
enable: (e) =>
|
|
450
|
-
delete: (e) =>
|
|
451
|
-
createToken: (e) =>
|
|
452
|
-
listTokens: (e) =>
|
|
453
|
-
revokeToken: (e) =>
|
|
479
|
+
list: (e = {}) => O$1(F.serviceAccount.list.$post, e),
|
|
480
|
+
get: (e) => O$1(F.serviceAccount.get.$post, e),
|
|
481
|
+
create: (e) => O$1(F.serviceAccount.create.$post, e),
|
|
482
|
+
update: (e) => O$1(F.serviceAccount.update.$post, e),
|
|
483
|
+
disable: (e) => O$1(F.serviceAccount.disable.$post, e),
|
|
484
|
+
enable: (e) => O$1(F.serviceAccount.enable.$post, e),
|
|
485
|
+
delete: (e) => O$1(F.serviceAccount.delete.$post, e),
|
|
486
|
+
createToken: (e) => O$1(F.serviceAccount.createToken.$post, e),
|
|
487
|
+
listTokens: (e) => O$1(F.serviceAccount.listTokens.$post, e),
|
|
488
|
+
revokeToken: (e) => O$1(F.serviceAccount.revokeToken.$post, e),
|
|
489
|
+
rotateToken: (e) => O$1(F.serviceAccount.rotateToken.$post, e)
|
|
454
490
|
},
|
|
455
491
|
segment: {
|
|
456
|
-
list: (e) =>
|
|
457
|
-
get: (e) =>
|
|
458
|
-
create: (e) =>
|
|
459
|
-
update: (e) =>
|
|
460
|
-
archive: (e) =>
|
|
461
|
-
listEnvironmentStates: (e) =>
|
|
462
|
-
updateEnvironment: (e) =>
|
|
492
|
+
list: (e) => O$1(I.segment.list.$post, e),
|
|
493
|
+
get: (e) => O$1(I.segment.get.$post, e),
|
|
494
|
+
create: (e) => O$1(I.segment.create.$post, e),
|
|
495
|
+
update: (e) => O$1(I.segment.update.$post, e),
|
|
496
|
+
archive: (e) => O$1(I.segment.archive.$post, e),
|
|
497
|
+
listEnvironmentStates: (e) => O$1(I.segment.listEnvironmentStates.$post, e),
|
|
498
|
+
updateEnvironment: (e) => O$1(I.segment.updateEnvironment.$post, e)
|
|
463
499
|
},
|
|
464
500
|
evaluatedEntity: {
|
|
465
|
-
list: (e) =>
|
|
466
|
-
|
|
467
|
-
|
|
501
|
+
list: (e) => O$1(L.evaluatedEntity.list.$post, e),
|
|
502
|
+
listPage: (e) => k$1(L.evaluatedEntity.list.$post, e),
|
|
503
|
+
get: (e) => O$1(L.evaluatedEntity.get.$post, e),
|
|
504
|
+
delete: (e) => O$1(L.evaluatedEntity.delete.$post, e)
|
|
468
505
|
},
|
|
469
506
|
evaluationFact: {
|
|
470
|
-
list: (e) =>
|
|
471
|
-
byRule: (e) =>
|
|
472
|
-
orgSummary: (e = {}) =>
|
|
473
|
-
projectSummary: (e) =>
|
|
474
|
-
simulate: (e) =>
|
|
507
|
+
list: (e) => O$1(R.evaluationFact.list.$post, e),
|
|
508
|
+
byRule: (e) => O$1(R.evaluationFact.byRule.$post, e),
|
|
509
|
+
orgSummary: (e = {}) => O$1(R.evaluationFact.orgSummary.$post, e),
|
|
510
|
+
projectSummary: (e) => O$1(R.evaluationFact.projectSummary.$post, e),
|
|
511
|
+
simulate: (e) => O$1(R.evaluationFact.simulate.$post, e)
|
|
475
512
|
},
|
|
476
513
|
snapshot: {
|
|
477
|
-
publish: (e) =>
|
|
478
|
-
listOutbox: (e = {}) =>
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
514
|
+
publish: (e) => O$1(z.snapshot.publish.$post, e),
|
|
515
|
+
listOutbox: (e = {}) => O$1(z.snapshot.outbox.list.$post, e),
|
|
516
|
+
listOutboxPage: (e = {}) => k$1(z.snapshot.outbox.list.$post, e),
|
|
517
|
+
requeue: (e) => O$1(z.snapshot.outbox.requeue.$post, e),
|
|
518
|
+
rebuild: (e) => O$1(z.snapshot.rebuild.$post, e),
|
|
519
|
+
listPublications: (e) => O$1(z.snapshot.publications.list.$post, e),
|
|
520
|
+
listPublicationsPage: (e) => k$1(z.snapshot.publications.list.$post, e)
|
|
521
|
+
},
|
|
522
|
+
snapshotWebhook: {
|
|
523
|
+
list: (e) => O$1(B.snapshotWebhook.list.$post, e),
|
|
524
|
+
create: (e) => O$1(B.snapshotWebhook.create.$post, e),
|
|
525
|
+
update: (e) => O$1(B.snapshotWebhook.update.$post, e),
|
|
526
|
+
delete: (e) => O$1(B.snapshotWebhook.delete.$post, e),
|
|
527
|
+
test: (e) => O$1(B.snapshotWebhook.test.$post, e)
|
|
482
528
|
},
|
|
483
|
-
device: { authorize: (e) =>
|
|
529
|
+
device: { authorize: (e) => O$1(V.device.authorize.$post, e) },
|
|
484
530
|
billing: {
|
|
485
|
-
get: (e = {}) =>
|
|
486
|
-
attach: (e) =>
|
|
487
|
-
openPortal: (e) =>
|
|
531
|
+
get: (e = {}) => O$1(H.billing.get.$post, e),
|
|
532
|
+
attach: (e) => O$1(H.billing.attach.$post, e),
|
|
533
|
+
openPortal: (e) => O$1(H.billing.openPortal.$post, e)
|
|
488
534
|
},
|
|
535
|
+
usage: { get: (e = {}) => O$1(U.usage.get.$post, e) },
|
|
489
536
|
approval: {
|
|
490
|
-
listPolicies: (e = {}) =>
|
|
491
|
-
createPolicy: (e) =>
|
|
492
|
-
updatePolicy: (e) =>
|
|
493
|
-
deletePolicy: (e) =>
|
|
494
|
-
listRequests: (e = {}) =>
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
537
|
+
listPolicies: (e = {}) => O$1(M.approval.listPolicies.$post, e),
|
|
538
|
+
createPolicy: (e) => O$1(M.approval.createPolicy.$post, e),
|
|
539
|
+
updatePolicy: (e) => O$1(M.approval.updatePolicy.$post, e),
|
|
540
|
+
deletePolicy: (e) => O$1(M.approval.deletePolicy.$post, e),
|
|
541
|
+
listRequests: (e = {}) => O$1(M.approval.listRequests.$post, e),
|
|
542
|
+
listRequestsPage: (e = {}) => k$1(M.approval.listRequests.$post, e),
|
|
543
|
+
get: (e) => O$1(M.approval.get.$post, e),
|
|
544
|
+
approve: (e) => O$1(M.approval.approve.$post, e),
|
|
545
|
+
reject: (e) => O$1(M.approval.reject.$post, e),
|
|
546
|
+
cancel: (e) => O$1(M.approval.cancel.$post, e)
|
|
499
547
|
},
|
|
500
548
|
audit: {
|
|
501
|
-
list: (e = {}) =>
|
|
502
|
-
get: (e) =>
|
|
503
|
-
actions: (e = {}) =>
|
|
504
|
-
export: (e) =>
|
|
505
|
-
getSettings: (e = {}) =>
|
|
506
|
-
updateSettings: (e) =>
|
|
507
|
-
listDestinations: (e = {}) =>
|
|
508
|
-
createDestination: (e) =>
|
|
509
|
-
updateDestination: (e) =>
|
|
510
|
-
deleteDestination: (e) =>
|
|
511
|
-
testDestination: (e) =>
|
|
549
|
+
list: (e = {}) => O$1(N.audit.list.$post, e),
|
|
550
|
+
get: (e) => O$1(N.audit.get.$post, e),
|
|
551
|
+
actions: (e = {}) => O$1(N.audit.actions.$post, e),
|
|
552
|
+
export: (e) => O$1(N.audit.export.$post, e),
|
|
553
|
+
getSettings: (e = {}) => O$1(N.audit.getSettings.$post, e),
|
|
554
|
+
updateSettings: (e) => O$1(N.audit.updateSettings.$post, e),
|
|
555
|
+
listDestinations: (e = {}) => O$1(N.audit.listDestinations.$post, e),
|
|
556
|
+
createDestination: (e) => O$1(N.audit.createDestination.$post, e),
|
|
557
|
+
updateDestination: (e) => O$1(N.audit.updateDestination.$post, e),
|
|
558
|
+
deleteDestination: (e) => O$1(N.audit.deleteDestination.$post, e),
|
|
559
|
+
testDestination: (e) => O$1(N.audit.testDestination.$post, e)
|
|
512
560
|
},
|
|
513
561
|
sso: {
|
|
514
|
-
getSettings: (e = {}) =>
|
|
515
|
-
listProviders: (e = {}) =>
|
|
516
|
-
updateAllowedDomains: (e) =>
|
|
517
|
-
setEnforcement: (e) =>
|
|
562
|
+
getSettings: (e = {}) => O$1(G.sso.getSettings.$post, e),
|
|
563
|
+
listProviders: (e = {}) => O$1(G.sso.listProviders.$post, e),
|
|
564
|
+
updateAllowedDomains: (e) => O$1(G.sso.updateAllowedDomains.$post, e),
|
|
565
|
+
setEnforcement: (e) => O$1(G.sso.setEnforcement.$post, e),
|
|
566
|
+
setRequireTwoFactor: (e) => O$1(G.sso.setRequireTwoFactor.$post, e)
|
|
567
|
+
},
|
|
568
|
+
scim: {
|
|
569
|
+
getConnection: (e = {}) => O$1(K.scim.getConnection.$post, e),
|
|
570
|
+
createConnection: (e = { creationRequestId: crypto.randomUUID() }) => O$1(K.scim.createConnection.$post, e),
|
|
571
|
+
rotateCredential: (e) => O$1(K.scim.rotateCredential.$post, e),
|
|
572
|
+
revokeCredential: (e) => O$1(K.scim.revokeCredential.$post, e),
|
|
573
|
+
decommissionConnection: (e) => O$1(K.scim.decommissionConnection.$post, e)
|
|
518
574
|
},
|
|
519
575
|
raw: {
|
|
520
576
|
me: r,
|
|
521
577
|
project: i,
|
|
522
|
-
environment:
|
|
523
|
-
flag:
|
|
524
|
-
apiKey:
|
|
525
|
-
approval:
|
|
526
|
-
audit:
|
|
527
|
-
sdkKey:
|
|
528
|
-
serviceAccount:
|
|
529
|
-
segment:
|
|
530
|
-
evaluatedEntity:
|
|
531
|
-
evaluationFact:
|
|
532
|
-
snapshot:
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
578
|
+
environment: a,
|
|
579
|
+
flag: A,
|
|
580
|
+
apiKey: j,
|
|
581
|
+
approval: M,
|
|
582
|
+
audit: N,
|
|
583
|
+
sdkKey: P,
|
|
584
|
+
serviceAccount: F,
|
|
585
|
+
segment: I,
|
|
586
|
+
evaluatedEntity: L,
|
|
587
|
+
evaluationFact: R,
|
|
588
|
+
snapshot: z,
|
|
589
|
+
snapshotWebhook: B,
|
|
590
|
+
device: V,
|
|
591
|
+
billing: H,
|
|
592
|
+
usage: U,
|
|
593
|
+
team: W,
|
|
594
|
+
sso: G,
|
|
595
|
+
scim: K
|
|
537
596
|
}
|
|
538
597
|
};
|
|
539
598
|
}
|
|
@@ -677,7 +736,7 @@ var BetterAuthError = class extends Error {
|
|
|
677
736
|
};
|
|
678
737
|
|
|
679
738
|
//#endregion
|
|
680
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
739
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/access/access.mjs
|
|
681
740
|
function unknownResourceResponse(requestedResource) {
|
|
682
741
|
return {
|
|
683
742
|
success: false,
|
|
@@ -754,7 +813,7 @@ function createAccessControl(s) {
|
|
|
754
813
|
}
|
|
755
814
|
|
|
756
815
|
//#endregion
|
|
757
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
816
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/two-factor/error-code.mjs
|
|
758
817
|
const TWO_FACTOR_ERROR_CODES = defineErrorCodes({
|
|
759
818
|
OTP_NOT_ENABLED: "OTP not enabled",
|
|
760
819
|
OTP_NOT_CONFIGURED: "OTP is not available",
|
|
@@ -771,11 +830,11 @@ const TWO_FACTOR_ERROR_CODES = defineErrorCodes({
|
|
|
771
830
|
});
|
|
772
831
|
|
|
773
832
|
//#endregion
|
|
774
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
833
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/package.mjs
|
|
775
834
|
var version = "1.7.1";
|
|
776
835
|
|
|
777
836
|
//#endregion
|
|
778
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
837
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/version.mjs
|
|
779
838
|
const PACKAGE_VERSION$3 = version;
|
|
780
839
|
|
|
781
840
|
//#endregion
|
|
@@ -811,7 +870,7 @@ function isSafeUrlScheme(value) {
|
|
|
811
870
|
}
|
|
812
871
|
|
|
813
872
|
//#endregion
|
|
814
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
873
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/two-factor/client.mjs
|
|
815
874
|
const twoFactorClient = (options) => {
|
|
816
875
|
return {
|
|
817
876
|
id: "two-factor",
|
|
@@ -849,7 +908,7 @@ const twoFactorClient = (options) => {
|
|
|
849
908
|
};
|
|
850
909
|
|
|
851
910
|
//#endregion
|
|
852
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
911
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/admin/access/statement.mjs
|
|
853
912
|
const defaultStatements$1 = {
|
|
854
913
|
user: [
|
|
855
914
|
"create",
|
|
@@ -900,7 +959,7 @@ const defaultRoles$1 = {
|
|
|
900
959
|
};
|
|
901
960
|
|
|
902
961
|
//#endregion
|
|
903
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
962
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/admin/error-codes.mjs
|
|
904
963
|
const ADMIN_ERROR_CODES = defineErrorCodes({
|
|
905
964
|
FAILED_TO_CREATE_USER: "Failed to create user",
|
|
906
965
|
USER_ALREADY_EXISTS: "User already exists.",
|
|
@@ -992,7 +1051,7 @@ const ENV = Object.freeze({
|
|
|
992
1051
|
});
|
|
993
1052
|
|
|
994
1053
|
//#endregion
|
|
995
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
1054
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/utils/url.mjs
|
|
996
1055
|
const SLASH_CHAR_CODE = "/".charCodeAt(0);
|
|
997
1056
|
function trimTrailingSlashes(value) {
|
|
998
1057
|
let end = value.length;
|
|
@@ -1071,7 +1130,7 @@ function getOrigin(url) {
|
|
|
1071
1130
|
}
|
|
1072
1131
|
|
|
1073
1132
|
//#endregion
|
|
1074
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
1133
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/admin/has-permission.mjs
|
|
1075
1134
|
const hasPermission = (input) => {
|
|
1076
1135
|
if (input.userId && input.options?.adminUserIds?.includes(input.userId)) return true;
|
|
1077
1136
|
if (!input.permissions) return false;
|
|
@@ -1600,7 +1659,7 @@ var betterFetch = async (url, options) => {
|
|
|
1600
1659
|
};
|
|
1601
1660
|
|
|
1602
1661
|
//#endregion
|
|
1603
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
1662
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/parser.mjs
|
|
1604
1663
|
const PROTO_POLLUTION_PATTERNS = {
|
|
1605
1664
|
proto: /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,
|
|
1606
1665
|
constructor: /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
|
|
@@ -1670,7 +1729,7 @@ function parseJSON(value, options = { strict: true }) {
|
|
|
1670
1729
|
}
|
|
1671
1730
|
|
|
1672
1731
|
//#endregion
|
|
1673
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
1732
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/organization/access/statement.mjs
|
|
1674
1733
|
const defaultStatements = {
|
|
1675
1734
|
organization: ["update", "delete"],
|
|
1676
1735
|
member: [
|
|
@@ -1746,7 +1805,7 @@ const defaultRoles = {
|
|
|
1746
1805
|
};
|
|
1747
1806
|
|
|
1748
1807
|
//#endregion
|
|
1749
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
1808
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/organization/permission.mjs
|
|
1750
1809
|
const hasPermissionFn = (input, acRoles) => {
|
|
1751
1810
|
if (!input.permissions) return false;
|
|
1752
1811
|
const roles = input.role.split(",");
|
|
@@ -1759,7 +1818,7 @@ const hasPermissionFn = (input, acRoles) => {
|
|
|
1759
1818
|
};
|
|
1760
1819
|
|
|
1761
1820
|
//#endregion
|
|
1762
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
1821
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/organization/error-codes.mjs
|
|
1763
1822
|
const ORGANIZATION_ERROR_CODES = defineErrorCodes({
|
|
1764
1823
|
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization",
|
|
1765
1824
|
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations",
|
|
@@ -1840,8 +1899,12 @@ const t$1 = createAccessControl({
|
|
|
1840
1899
|
`delete`
|
|
1841
1900
|
],
|
|
1842
1901
|
audit: [`read`],
|
|
1843
|
-
approval_policy: [`update`],
|
|
1844
|
-
approval_request: [
|
|
1902
|
+
approval_policy: [`read`, `update`],
|
|
1903
|
+
approval_request: [
|
|
1904
|
+
`read`,
|
|
1905
|
+
`review`,
|
|
1906
|
+
`cancel`
|
|
1907
|
+
],
|
|
1845
1908
|
project: [
|
|
1846
1909
|
`create`,
|
|
1847
1910
|
`read`,
|
|
@@ -1875,6 +1938,8 @@ const t$1 = createAccessControl({
|
|
|
1875
1938
|
`revoke`
|
|
1876
1939
|
],
|
|
1877
1940
|
evaluated_entity: [`read`, `delete`],
|
|
1941
|
+
snapshot: [`read`],
|
|
1942
|
+
snapshot_webhook: [`read`, `manage`],
|
|
1878
1943
|
billing: [`read`, `manage`],
|
|
1879
1944
|
sso: [
|
|
1880
1945
|
`read`,
|
|
@@ -1902,7 +1967,10 @@ const n$1 = {
|
|
|
1902
1967
|
environment: [`read`],
|
|
1903
1968
|
flag: [`read`],
|
|
1904
1969
|
evaluated_entity: [`read`],
|
|
1905
|
-
|
|
1970
|
+
snapshot_webhook: [`read`],
|
|
1971
|
+
billing: [`read`],
|
|
1972
|
+
approval_policy: [`read`],
|
|
1973
|
+
approval_request: [`read`]
|
|
1906
1974
|
}),
|
|
1907
1975
|
editor: t$1.newRole({
|
|
1908
1976
|
member: [`read`],
|
|
@@ -1923,14 +1991,18 @@ const n$1 = {
|
|
|
1923
1991
|
`revoke`
|
|
1924
1992
|
],
|
|
1925
1993
|
evaluated_entity: [`read`],
|
|
1926
|
-
|
|
1994
|
+
snapshot_webhook: [`read`],
|
|
1995
|
+
billing: [`read`],
|
|
1996
|
+
approval_policy: [`read`],
|
|
1997
|
+
approval_request: [`read`]
|
|
1927
1998
|
}),
|
|
1928
1999
|
admin: t$1.newRole({
|
|
1929
2000
|
organization: [`update`],
|
|
1930
2001
|
member: [
|
|
1931
2002
|
`create`,
|
|
1932
2003
|
`read`,
|
|
1933
|
-
`update
|
|
2004
|
+
`update`,
|
|
2005
|
+
`delete`
|
|
1934
2006
|
],
|
|
1935
2007
|
invitation: [`create`, `cancel`],
|
|
1936
2008
|
team: [
|
|
@@ -1940,8 +2012,12 @@ const n$1 = {
|
|
|
1940
2012
|
`delete`
|
|
1941
2013
|
],
|
|
1942
2014
|
audit: [`read`],
|
|
1943
|
-
approval_policy: [`update`],
|
|
1944
|
-
approval_request: [
|
|
2015
|
+
approval_policy: [`read`, `update`],
|
|
2016
|
+
approval_request: [
|
|
2017
|
+
`read`,
|
|
2018
|
+
`review`,
|
|
2019
|
+
`cancel`
|
|
2020
|
+
],
|
|
1945
2021
|
project: [
|
|
1946
2022
|
`create`,
|
|
1947
2023
|
`read`,
|
|
@@ -1975,6 +2051,8 @@ const n$1 = {
|
|
|
1975
2051
|
`revoke`
|
|
1976
2052
|
],
|
|
1977
2053
|
evaluated_entity: [`read`, `delete`],
|
|
2054
|
+
snapshot: [`read`],
|
|
2055
|
+
snapshot_webhook: [`read`, `manage`],
|
|
1978
2056
|
billing: [`read`, `manage`],
|
|
1979
2057
|
sso: [`read`, `manage`],
|
|
1980
2058
|
service_account: [
|
|
@@ -2006,8 +2084,12 @@ const n$1 = {
|
|
|
2006
2084
|
`delete`
|
|
2007
2085
|
],
|
|
2008
2086
|
audit: [`read`],
|
|
2009
|
-
approval_policy: [`update`],
|
|
2010
|
-
approval_request: [
|
|
2087
|
+
approval_policy: [`read`, `update`],
|
|
2088
|
+
approval_request: [
|
|
2089
|
+
`read`,
|
|
2090
|
+
`review`,
|
|
2091
|
+
`cancel`
|
|
2092
|
+
],
|
|
2011
2093
|
project: [
|
|
2012
2094
|
`create`,
|
|
2013
2095
|
`read`,
|
|
@@ -2041,6 +2123,8 @@ const n$1 = {
|
|
|
2041
2123
|
`revoke`
|
|
2042
2124
|
],
|
|
2043
2125
|
evaluated_entity: [`read`, `delete`],
|
|
2126
|
+
snapshot: [`read`],
|
|
2127
|
+
snapshot_webhook: [`read`, `manage`],
|
|
2044
2128
|
billing: [`read`, `manage`],
|
|
2045
2129
|
sso: [
|
|
2046
2130
|
`read`,
|
|
@@ -2063,7 +2147,7 @@ const n$1 = {
|
|
|
2063
2147
|
};
|
|
2064
2148
|
|
|
2065
2149
|
//#endregion
|
|
2066
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2150
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/broadcast-channel.mjs
|
|
2067
2151
|
const kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
2068
2152
|
const now$1 = () => Math.floor(Date.now() / 1e3);
|
|
2069
2153
|
var WindowBroadcastChannel = class {
|
|
@@ -2287,7 +2371,7 @@ let onMount = ($store, initialize) => {
|
|
|
2287
2371
|
};
|
|
2288
2372
|
|
|
2289
2373
|
//#endregion
|
|
2290
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2374
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/equality.mjs
|
|
2291
2375
|
function isPlainObject(value) {
|
|
2292
2376
|
if (typeof value !== "object" || value === null) return false;
|
|
2293
2377
|
const prototype = Object.getPrototypeOf(value);
|
|
@@ -2328,7 +2412,7 @@ function withEquality(store, isEqual) {
|
|
|
2328
2412
|
}
|
|
2329
2413
|
|
|
2330
2414
|
//#endregion
|
|
2331
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2415
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/focus-manager.mjs
|
|
2332
2416
|
const kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
2333
2417
|
var WindowFocusManager = class {
|
|
2334
2418
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -2358,7 +2442,7 @@ function getGlobalFocusManager() {
|
|
|
2358
2442
|
}
|
|
2359
2443
|
|
|
2360
2444
|
//#endregion
|
|
2361
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2445
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/online-manager.mjs
|
|
2362
2446
|
const kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
2363
2447
|
var WindowOnlineManager = class {
|
|
2364
2448
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -2391,7 +2475,7 @@ function getGlobalOnlineManager() {
|
|
|
2391
2475
|
}
|
|
2392
2476
|
|
|
2393
2477
|
//#endregion
|
|
2394
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2478
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/query.mjs
|
|
2395
2479
|
const isServer$1 = () => typeof window === "undefined";
|
|
2396
2480
|
function isAuthQueryStateEqual(a, b) {
|
|
2397
2481
|
return isJsonEqual(a.data, b.data) && a.error === b.error && a.isPending === b.isPending && a.isRefetching === b.isRefetching && a.refetch === b.refetch;
|
|
@@ -2513,7 +2597,7 @@ const useAuthQuery = (initializedAtom, path, $fetch, options) => {
|
|
|
2513
2597
|
};
|
|
2514
2598
|
|
|
2515
2599
|
//#endregion
|
|
2516
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2600
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/session-refresh.mjs
|
|
2517
2601
|
const now = () => Math.floor(Date.now() / 1e3);
|
|
2518
2602
|
/**
|
|
2519
2603
|
* Rate limit: don't refetch on focus if a session request was made within this many seconds
|
|
@@ -2641,7 +2725,7 @@ function createSessionRefreshManager(opts) {
|
|
|
2641
2725
|
}
|
|
2642
2726
|
|
|
2643
2727
|
//#endregion
|
|
2644
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2728
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/fetch-plugins.mjs
|
|
2645
2729
|
const redirectPlugin = {
|
|
2646
2730
|
id: "redirect",
|
|
2647
2731
|
name: "Redirect",
|
|
@@ -2657,7 +2741,7 @@ const redirectPlugin = {
|
|
|
2657
2741
|
};
|
|
2658
2742
|
|
|
2659
2743
|
//#endregion
|
|
2660
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2744
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/session-atom.mjs
|
|
2661
2745
|
const isServer = () => typeof window === "undefined";
|
|
2662
2746
|
const SESSION_MOUNT_DEDUPE_INTERVAL = STORE_UNMOUNT_DELAY;
|
|
2663
2747
|
function hydrateSessionAtom(sessionAtom, session) {
|
|
@@ -2832,7 +2916,7 @@ function getSessionAtom($fetch, options) {
|
|
|
2832
2916
|
}
|
|
2833
2917
|
|
|
2834
2918
|
//#endregion
|
|
2835
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
2919
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/config.mjs
|
|
2836
2920
|
const resolvePublicAuthUrl = (basePath) => {
|
|
2837
2921
|
if (typeof process === "undefined") return void 0;
|
|
2838
2922
|
const path = basePath ?? "/api/auth";
|
|
@@ -2938,7 +3022,7 @@ const getClientConfig = (options, loadEnv) => {
|
|
|
2938
3022
|
};
|
|
2939
3023
|
|
|
2940
3024
|
//#endregion
|
|
2941
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
3025
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/utils/is-atom.mjs
|
|
2942
3026
|
function isAtom(value) {
|
|
2943
3027
|
return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
|
|
2944
3028
|
}
|
|
@@ -2958,7 +3042,7 @@ function toKebabCase(input) {
|
|
|
2958
3042
|
}
|
|
2959
3043
|
|
|
2960
3044
|
//#endregion
|
|
2961
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
3045
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/proxy.mjs
|
|
2962
3046
|
function getMethod(path, knownPathMethods, args) {
|
|
2963
3047
|
const method = knownPathMethods[path];
|
|
2964
3048
|
const { fetchOptions, query: _query, ...body } = args || {};
|
|
@@ -3034,7 +3118,7 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
|
|
|
3034
3118
|
}
|
|
3035
3119
|
|
|
3036
3120
|
//#endregion
|
|
3037
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
3121
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/client/vanilla.mjs
|
|
3038
3122
|
function createAuthClient(options) {
|
|
3039
3123
|
const { pluginPathMethods, pluginsActions, pluginsAtoms, hydrateSession, $fetch, atomListeners, $store } = getClientConfig(options);
|
|
3040
3124
|
const resolvedHooks = {};
|
|
@@ -3049,7 +3133,7 @@ function createAuthClient(options) {
|
|
|
3049
3133
|
}
|
|
3050
3134
|
|
|
3051
3135
|
//#endregion
|
|
3052
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
3136
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/additional-fields/client.mjs
|
|
3053
3137
|
const inferAdditionalFields = (schema) => {
|
|
3054
3138
|
return {
|
|
3055
3139
|
id: "additional-fields-client",
|
|
@@ -3059,7 +3143,7 @@ const inferAdditionalFields = (schema) => {
|
|
|
3059
3143
|
};
|
|
3060
3144
|
|
|
3061
3145
|
//#endregion
|
|
3062
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
3146
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/admin/client.mjs
|
|
3063
3147
|
const adminClient = (options) => {
|
|
3064
3148
|
const roles = {
|
|
3065
3149
|
admin: adminAc$1,
|
|
@@ -3094,7 +3178,7 @@ const adminClient = (options) => {
|
|
|
3094
3178
|
};
|
|
3095
3179
|
|
|
3096
3180
|
//#endregion
|
|
3097
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
3181
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/device-authorization/client.mjs
|
|
3098
3182
|
const deviceAuthorizationClient = () => {
|
|
3099
3183
|
return {
|
|
3100
3184
|
id: "device-authorization",
|
|
@@ -3111,7 +3195,7 @@ const deviceAuthorizationClient = () => {
|
|
|
3111
3195
|
};
|
|
3112
3196
|
|
|
3113
3197
|
//#endregion
|
|
3114
|
-
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc.
|
|
3198
|
+
//#region ../../node_modules/.pnpm/better-auth@1.7.1_@opentelemetry+api@1.9.1_drizzle-kit@1.0.0-rc.4_drizzle-orm@1.0.0-rc._29983ac85a08632d26ca60fb0be17581/node_modules/better-auth/dist/plugins/organization/client.mjs
|
|
3115
3199
|
/**
|
|
3116
3200
|
* Using the same `hasPermissionFn` function, but without the need for a `ctx` parameter or the `organizationId` parameter.
|
|
3117
3201
|
*/
|
|
@@ -3206,7 +3290,7 @@ const organizationClient = (options) => {
|
|
|
3206
3290
|
};
|
|
3207
3291
|
|
|
3208
3292
|
//#endregion
|
|
3209
|
-
//#region ../../node_modules/.pnpm/@better-auth+api-key@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-
|
|
3293
|
+
//#region ../../node_modules/.pnpm/@better-auth+api-key@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fet_a4fe5759ddb57f435137bfe015134721/node_modules/@better-auth/api-key/dist/version-D365O1mH.mjs
|
|
3210
3294
|
const API_KEY_ERROR_CODES = defineErrorCodes({
|
|
3211
3295
|
INVALID_METADATA_TYPE: "metadata must be an object or undefined",
|
|
3212
3296
|
REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided",
|
|
@@ -3243,7 +3327,7 @@ const API_KEY_ERROR_CODES = defineErrorCodes({
|
|
|
3243
3327
|
const PACKAGE_VERSION$2 = "1.7.1";
|
|
3244
3328
|
|
|
3245
3329
|
//#endregion
|
|
3246
|
-
//#region ../../node_modules/.pnpm/@better-auth+api-key@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-
|
|
3330
|
+
//#region ../../node_modules/.pnpm/@better-auth+api-key@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fet_a4fe5759ddb57f435137bfe015134721/node_modules/@better-auth/api-key/dist/client.mjs
|
|
3247
3331
|
const apiKeyClient = () => {
|
|
3248
3332
|
return {
|
|
3249
3333
|
id: "api-key",
|
|
@@ -3259,7 +3343,7 @@ const apiKeyClient = () => {
|
|
|
3259
3343
|
};
|
|
3260
3344
|
|
|
3261
3345
|
//#endregion
|
|
3262
|
-
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-
|
|
3346
|
+
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fet_670374e089e097efe27e0c3a48cf5b4e/node_modules/@better-auth/passkey/dist/version-CNE1I0BY.mjs
|
|
3263
3347
|
const PASSKEY_ERROR_CODES = defineErrorCodes({
|
|
3264
3348
|
CHALLENGE_NOT_FOUND: "Challenge not found",
|
|
3265
3349
|
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: "You are not allowed to register this passkey",
|
|
@@ -3749,7 +3833,7 @@ async function startAuthentication(options) {
|
|
|
3749
3833
|
}
|
|
3750
3834
|
|
|
3751
3835
|
//#endregion
|
|
3752
|
-
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-
|
|
3836
|
+
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fet_670374e089e097efe27e0c3a48cf5b4e/node_modules/@better-auth/passkey/dist/client.mjs
|
|
3753
3837
|
const getPasskeyActions = ($fetch, { $listPasskeys, $store }) => {
|
|
3754
3838
|
const signInPasskey = async (opts, options) => {
|
|
3755
3839
|
const response = await $fetch("/passkey/generate-authenticate-options", {
|
|
@@ -3951,11 +4035,11 @@ const passkeyClient = () => {
|
|
|
3951
4035
|
};
|
|
3952
4036
|
|
|
3953
4037
|
//#endregion
|
|
3954
|
-
//#region ../../node_modules/.pnpm/@better-auth+sso@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+
|
|
4038
|
+
//#region ../../node_modules/.pnpm/@better-auth+sso@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+f_f113731728b549e501373576d6a425b0/node_modules/@better-auth/sso/dist/version-BbG1DbY-.mjs
|
|
3955
4039
|
const PACKAGE_VERSION = "1.7.1";
|
|
3956
4040
|
|
|
3957
4041
|
//#endregion
|
|
3958
|
-
//#region ../../node_modules/.pnpm/@better-auth+sso@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+
|
|
4042
|
+
//#region ../../node_modules/.pnpm/@better-auth+sso@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+f_f113731728b549e501373576d6a425b0/node_modules/@better-auth/sso/dist/client.mjs
|
|
3959
4043
|
const ssoClient = (options) => {
|
|
3960
4044
|
return {
|
|
3961
4045
|
id: "sso-client",
|
|
@@ -4092,7 +4176,7 @@ async function createCliApiClient(runtime) {
|
|
|
4092
4176
|
sessionToken,
|
|
4093
4177
|
orgSlug: runtime.org
|
|
4094
4178
|
});
|
|
4095
|
-
const client =
|
|
4179
|
+
const client = A$1({
|
|
4096
4180
|
baseUrl: runtime.apiUrl,
|
|
4097
4181
|
client: "cli",
|
|
4098
4182
|
getHeaders: () => {
|
|
@@ -4548,7 +4632,7 @@ function V(e, t) {
|
|
|
4548
4632
|
const H = z.object({
|
|
4549
4633
|
projectId: z.string().min(1),
|
|
4550
4634
|
environmentId: z.string().min(1),
|
|
4551
|
-
flags: z.array(I)
|
|
4635
|
+
flags: z.array(I).max(500)
|
|
4552
4636
|
}).superRefine((e, t) => V(e.flags, t));
|
|
4553
4637
|
const U = z.object({
|
|
4554
4638
|
key: z.string(),
|
|
@@ -4571,7 +4655,7 @@ const W = z.object({
|
|
|
4571
4655
|
const G = z.object({
|
|
4572
4656
|
projectId: z.string().min(1),
|
|
4573
4657
|
environmentId: z.string().min(1),
|
|
4574
|
-
flags: z.array(I),
|
|
4658
|
+
flags: z.array(I).max(500),
|
|
4575
4659
|
apply: z.boolean().default(!1),
|
|
4576
4660
|
prune: z.boolean().default(!1),
|
|
4577
4661
|
force: z.boolean().default(!1),
|
|
@@ -5082,6 +5166,7 @@ function registerPushCommand(program) {
|
|
|
5082
5166
|
remoteOnly,
|
|
5083
5167
|
forced: applied.forced === true,
|
|
5084
5168
|
approvalRequests,
|
|
5169
|
+
outcome: approvalRequests.length > 0 ? "pending_approval" : "applied",
|
|
5085
5170
|
types
|
|
5086
5171
|
}, [
|
|
5087
5172
|
applied.changes.length > 0 ? `Applied ${applied.changes.length} change(s).` : null,
|
|
@@ -5089,6 +5174,7 @@ function registerPushCommand(program) {
|
|
|
5089
5174
|
applied.forced ? "Forced through version conflicts (audited)." : null,
|
|
5090
5175
|
`Wrote types for ${types.flagCount} flag(s) to ${types.written}`
|
|
5091
5176
|
].filter(Boolean).join("\n"));
|
|
5177
|
+
if (approvalRequests.length > 0) process.exitCode = 5;
|
|
5092
5178
|
});
|
|
5093
5179
|
}
|
|
5094
5180
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipdit/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "shipd's command-line interface",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"commander": "^14.0.0",
|
|
21
21
|
"jiti": "^2.5.1",
|
|
22
|
-
"shipdit": "0.
|
|
22
|
+
"shipdit": "0.3.0",
|
|
23
23
|
"zod": "^4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|