@shipdit/cli 0.1.2 → 0.2.1
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 +251 -130
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -367,18 +367,21 @@ const o$1 = (...t) => hc(...t);
|
|
|
367
367
|
const s$1 = (...t) => hc(...t);
|
|
368
368
|
const c$1 = (...t) => hc(...t);
|
|
369
369
|
const l$1 = (...t) => hc(...t);
|
|
370
|
-
const u$
|
|
370
|
+
const u$1 = (...t) => hc(...t);
|
|
371
371
|
const d$2 = (...t) => hc(...t);
|
|
372
|
-
const f$
|
|
372
|
+
const f$2 = (...t) => hc(...t);
|
|
373
373
|
const p$1 = (...t) => hc(...t);
|
|
374
374
|
const m$1 = (...t) => hc(...t);
|
|
375
375
|
const h$1 = (...t) => hc(...t);
|
|
376
376
|
const g$1 = (...t) => hc(...t);
|
|
377
377
|
const _$1 = (...t) => hc(...t);
|
|
378
|
-
|
|
378
|
+
const v$1 = (...t) => hc(...t);
|
|
379
|
+
const y$1 = (...t) => hc(...t);
|
|
380
|
+
const b$1 = (...t) => hc(...t);
|
|
381
|
+
function x$1(e) {
|
|
379
382
|
return `${e.replace(/\/+$/, ``)}/api/v1/rpc`;
|
|
380
383
|
}
|
|
381
|
-
function
|
|
384
|
+
function S$1(e) {
|
|
382
385
|
return {
|
|
383
386
|
...e.fetch ? { fetch: e.fetch } : {},
|
|
384
387
|
init: { credentials: e.client === `dashboard` ? `include` : `same-origin` },
|
|
@@ -388,100 +391,135 @@ function y$1(e) {
|
|
|
388
391
|
}
|
|
389
392
|
};
|
|
390
393
|
}
|
|
391
|
-
async function
|
|
394
|
+
async function C$1(e, t) {
|
|
392
395
|
return i$1(await e({ json: t }));
|
|
393
396
|
}
|
|
394
|
-
function
|
|
395
|
-
let t =
|
|
397
|
+
function w$1(e) {
|
|
398
|
+
let t = x$1(e.baseUrl), n = S$1(e), r = a$1(t, n), i = o$1(t, n), w = s$1(t, n), T = c$1(t, n), E = l$1(t, n), D = u$1(t, n), O = d$2(t, n), k = f$2(t, n), A = h$1(t, n), j = p$1(t, n), M = m$1(t, n), N = g$1(t, n), P = _$1(t, n), F = v$1(t, n), I = y$1(t, n), L = b$1(t, n);
|
|
396
399
|
return {
|
|
397
400
|
me: {
|
|
398
|
-
get: (e = {}) =>
|
|
399
|
-
feedback: (e) =>
|
|
401
|
+
get: (e = {}) => C$1(r.me.$post, e),
|
|
402
|
+
feedback: (e) => C$1(r.me.feedback.$post, e)
|
|
400
403
|
},
|
|
401
404
|
project: {
|
|
402
|
-
list: (e = {}) =>
|
|
403
|
-
create: (e) =>
|
|
404
|
-
update: (e) =>
|
|
405
|
-
archive: (e) =>
|
|
405
|
+
list: (e = {}) => C$1(i.project.list.$post, e),
|
|
406
|
+
create: (e) => C$1(i.project.create.$post, e),
|
|
407
|
+
update: (e) => C$1(i.project.update.$post, e),
|
|
408
|
+
archive: (e) => C$1(i.project.archive.$post, e),
|
|
409
|
+
listTeams: (e) => C$1(i.project.listTeams.$post, e),
|
|
410
|
+
setTeams: (e) => C$1(i.project.setTeams.$post, e)
|
|
406
411
|
},
|
|
412
|
+
team: { listMembers: (e) => C$1(I.team.listMembers.$post, e) },
|
|
407
413
|
environment: {
|
|
408
|
-
list: (e) =>
|
|
409
|
-
create: (e) =>
|
|
410
|
-
update: (e) =>
|
|
411
|
-
archive: (e) =>
|
|
414
|
+
list: (e) => C$1(w.environment.list.$post, e),
|
|
415
|
+
create: (e) => C$1(w.environment.create.$post, e),
|
|
416
|
+
update: (e) => C$1(w.environment.update.$post, e),
|
|
417
|
+
archive: (e) => C$1(w.environment.archive.$post, e)
|
|
412
418
|
},
|
|
413
419
|
flag: {
|
|
414
|
-
list: (e) =>
|
|
415
|
-
get: (e) =>
|
|
416
|
-
create: (e) =>
|
|
417
|
-
update: (e) =>
|
|
418
|
-
archive: (e) =>
|
|
419
|
-
updateEnvironment: (e) =>
|
|
420
|
-
toggleEnvironment: (e) =>
|
|
421
|
-
listEnvironmentStates: (e) =>
|
|
422
|
-
pull: (e) =>
|
|
423
|
-
diff: (e) =>
|
|
424
|
-
push: (e) =>
|
|
420
|
+
list: (e) => C$1(T.flag.list.$post, e),
|
|
421
|
+
get: (e) => C$1(T.flag.get.$post, e),
|
|
422
|
+
create: (e) => C$1(T.flag.create.$post, e),
|
|
423
|
+
update: (e) => C$1(T.flag.update.$post, e),
|
|
424
|
+
archive: (e) => C$1(T.flag.archive.$post, e),
|
|
425
|
+
updateEnvironment: (e) => C$1(T.flag.updateEnvironment.$post, e),
|
|
426
|
+
toggleEnvironment: (e) => C$1(T.flag.toggleEnvironment.$post, e),
|
|
427
|
+
listEnvironmentStates: (e) => C$1(T.flag.listEnvironmentStates.$post, e),
|
|
428
|
+
pull: (e) => C$1(T.flag.pull.$post, e),
|
|
429
|
+
diff: (e) => C$1(T.flag.diff.$post, e),
|
|
430
|
+
push: (e) => C$1(T.flag.push.$post, e)
|
|
425
431
|
},
|
|
426
432
|
apiKey: {
|
|
427
|
-
list: (e = {}) =>
|
|
428
|
-
create: (e) =>
|
|
429
|
-
revoke: (e) =>
|
|
433
|
+
list: (e = {}) => C$1(E.apiKey.list.$post, e),
|
|
434
|
+
create: (e) => C$1(E.apiKey.create.$post, e),
|
|
435
|
+
revoke: (e) => C$1(E.apiKey.revoke.$post, e)
|
|
430
436
|
},
|
|
431
437
|
sdkKey: {
|
|
432
|
-
list: (e = {}) =>
|
|
433
|
-
create: (e) =>
|
|
434
|
-
revoke: (e) =>
|
|
438
|
+
list: (e = {}) => C$1(k.sdkKey.list.$post, e),
|
|
439
|
+
create: (e) => C$1(k.sdkKey.create.$post, e),
|
|
440
|
+
revoke: (e) => C$1(k.sdkKey.revoke.$post, e)
|
|
435
441
|
},
|
|
436
442
|
segment: {
|
|
437
|
-
list: (e) =>
|
|
438
|
-
get: (e) =>
|
|
439
|
-
create: (e) =>
|
|
440
|
-
update: (e) =>
|
|
441
|
-
archive: (e) =>
|
|
442
|
-
listEnvironmentStates: (e) =>
|
|
443
|
-
updateEnvironment: (e) =>
|
|
443
|
+
list: (e) => C$1(A.segment.list.$post, e),
|
|
444
|
+
get: (e) => C$1(A.segment.get.$post, e),
|
|
445
|
+
create: (e) => C$1(A.segment.create.$post, e),
|
|
446
|
+
update: (e) => C$1(A.segment.update.$post, e),
|
|
447
|
+
archive: (e) => C$1(A.segment.archive.$post, e),
|
|
448
|
+
listEnvironmentStates: (e) => C$1(A.segment.listEnvironmentStates.$post, e),
|
|
449
|
+
updateEnvironment: (e) => C$1(A.segment.updateEnvironment.$post, e)
|
|
444
450
|
},
|
|
445
451
|
evaluatedEntity: {
|
|
446
|
-
list: (e) =>
|
|
447
|
-
get: (e) =>
|
|
448
|
-
delete: (e) =>
|
|
452
|
+
list: (e) => C$1(j.evaluatedEntity.list.$post, e),
|
|
453
|
+
get: (e) => C$1(j.evaluatedEntity.get.$post, e),
|
|
454
|
+
delete: (e) => C$1(j.evaluatedEntity.delete.$post, e)
|
|
449
455
|
},
|
|
450
456
|
evaluationFact: {
|
|
451
|
-
list: (e) =>
|
|
452
|
-
byRule: (e) =>
|
|
453
|
-
orgSummary: (e = {}) =>
|
|
454
|
-
projectSummary: (e) =>
|
|
455
|
-
simulate: (e) =>
|
|
457
|
+
list: (e) => C$1(M.evaluationFact.list.$post, e),
|
|
458
|
+
byRule: (e) => C$1(M.evaluationFact.byRule.$post, e),
|
|
459
|
+
orgSummary: (e = {}) => C$1(M.evaluationFact.orgSummary.$post, e),
|
|
460
|
+
projectSummary: (e) => C$1(M.evaluationFact.projectSummary.$post, e),
|
|
461
|
+
simulate: (e) => C$1(M.evaluationFact.simulate.$post, e)
|
|
456
462
|
},
|
|
457
|
-
snapshot: { publish: (e) =>
|
|
458
|
-
device: { authorize: (e) =>
|
|
463
|
+
snapshot: { publish: (e) => C$1(N.snapshot.publish.$post, e) },
|
|
464
|
+
device: { authorize: (e) => C$1(P.device.authorize.$post, e) },
|
|
459
465
|
billing: {
|
|
460
|
-
get: (e = {}) =>
|
|
461
|
-
attach: (e) =>
|
|
462
|
-
openPortal: (e) =>
|
|
466
|
+
get: (e = {}) => C$1(F.billing.get.$post, e),
|
|
467
|
+
attach: (e) => C$1(F.billing.attach.$post, e),
|
|
468
|
+
openPortal: (e) => C$1(F.billing.openPortal.$post, e)
|
|
469
|
+
},
|
|
470
|
+
approval: {
|
|
471
|
+
listPolicies: (e = {}) => C$1(D.approval.listPolicies.$post, e),
|
|
472
|
+
createPolicy: (e) => C$1(D.approval.createPolicy.$post, e),
|
|
473
|
+
updatePolicy: (e) => C$1(D.approval.updatePolicy.$post, e),
|
|
474
|
+
deletePolicy: (e) => C$1(D.approval.deletePolicy.$post, e),
|
|
475
|
+
listRequests: (e = {}) => C$1(D.approval.listRequests.$post, e),
|
|
476
|
+
get: (e) => C$1(D.approval.get.$post, e),
|
|
477
|
+
approve: (e) => C$1(D.approval.approve.$post, e),
|
|
478
|
+
reject: (e) => C$1(D.approval.reject.$post, e),
|
|
479
|
+
cancel: (e) => C$1(D.approval.cancel.$post, e)
|
|
480
|
+
},
|
|
481
|
+
audit: {
|
|
482
|
+
list: (e = {}) => C$1(O.audit.list.$post, e),
|
|
483
|
+
get: (e) => C$1(O.audit.get.$post, e),
|
|
484
|
+
actions: (e = {}) => C$1(O.audit.actions.$post, e),
|
|
485
|
+
export: (e) => C$1(O.audit.export.$post, e),
|
|
486
|
+
getSettings: (e = {}) => C$1(O.audit.getSettings.$post, e),
|
|
487
|
+
updateSettings: (e) => C$1(O.audit.updateSettings.$post, e),
|
|
488
|
+
listDestinations: (e = {}) => C$1(O.audit.listDestinations.$post, e),
|
|
489
|
+
createDestination: (e) => C$1(O.audit.createDestination.$post, e),
|
|
490
|
+
updateDestination: (e) => C$1(O.audit.updateDestination.$post, e),
|
|
491
|
+
deleteDestination: (e) => C$1(O.audit.deleteDestination.$post, e),
|
|
492
|
+
testDestination: (e) => C$1(O.audit.testDestination.$post, e)
|
|
493
|
+
},
|
|
494
|
+
sso: {
|
|
495
|
+
getSettings: (e = {}) => C$1(L.sso.getSettings.$post, e),
|
|
496
|
+
listProviders: (e = {}) => C$1(L.sso.listProviders.$post, e),
|
|
497
|
+
updateAllowedDomains: (e) => C$1(L.sso.updateAllowedDomains.$post, e),
|
|
498
|
+
setEnforcement: (e) => C$1(L.sso.setEnforcement.$post, e)
|
|
463
499
|
},
|
|
464
|
-
audit: { list: (e = {}) => b$1(w.audit.list.$post, e) },
|
|
465
500
|
raw: {
|
|
466
501
|
me: r,
|
|
467
502
|
project: i,
|
|
468
|
-
environment:
|
|
469
|
-
flag:
|
|
470
|
-
apiKey:
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
503
|
+
environment: w,
|
|
504
|
+
flag: T,
|
|
505
|
+
apiKey: E,
|
|
506
|
+
approval: D,
|
|
507
|
+
audit: O,
|
|
508
|
+
sdkKey: k,
|
|
509
|
+
segment: A,
|
|
510
|
+
evaluatedEntity: j,
|
|
511
|
+
evaluationFact: M,
|
|
512
|
+
snapshot: N,
|
|
513
|
+
device: P,
|
|
514
|
+
billing: F,
|
|
515
|
+
team: I,
|
|
516
|
+
sso: L
|
|
479
517
|
}
|
|
480
518
|
};
|
|
481
519
|
}
|
|
482
520
|
|
|
483
521
|
//#endregion
|
|
484
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
522
|
+
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@opentelemet_2e71ba5b354a0fbab5c1bdc9f6326b28/node_modules/@better-auth/core/dist/utils/error-codes.mjs
|
|
485
523
|
function defineErrorCodes(codes) {
|
|
486
524
|
return Object.fromEntries(Object.entries(codes).map(([key, value]) => [key, {
|
|
487
525
|
code: key,
|
|
@@ -608,7 +646,7 @@ var InternalAPIError = class extends Error {
|
|
|
608
646
|
const APIError = makeErrorForHideStackFrame(InternalAPIError, Error);
|
|
609
647
|
|
|
610
648
|
//#endregion
|
|
611
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
649
|
+
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@opentelemet_2e71ba5b354a0fbab5c1bdc9f6326b28/node_modules/@better-auth/core/dist/error/index.mjs
|
|
612
650
|
var BetterAuthError = class extends Error {
|
|
613
651
|
constructor(message, options) {
|
|
614
652
|
super(message, options);
|
|
@@ -619,7 +657,7 @@ var BetterAuthError = class extends Error {
|
|
|
619
657
|
};
|
|
620
658
|
|
|
621
659
|
//#endregion
|
|
622
|
-
//#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.
|
|
660
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/access/access.mjs
|
|
623
661
|
function unknownResourceResponse(requestedResource) {
|
|
624
662
|
return {
|
|
625
663
|
success: false,
|
|
@@ -696,7 +734,7 @@ function createAccessControl(s) {
|
|
|
696
734
|
}
|
|
697
735
|
|
|
698
736
|
//#endregion
|
|
699
|
-
//#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.
|
|
737
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/two-factor/error-code.mjs
|
|
700
738
|
const TWO_FACTOR_ERROR_CODES = defineErrorCodes({
|
|
701
739
|
OTP_NOT_ENABLED: "OTP not enabled",
|
|
702
740
|
OTP_NOT_CONFIGURED: "OTP is not available",
|
|
@@ -713,15 +751,15 @@ const TWO_FACTOR_ERROR_CODES = defineErrorCodes({
|
|
|
713
751
|
});
|
|
714
752
|
|
|
715
753
|
//#endregion
|
|
716
|
-
//#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.
|
|
754
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/package.mjs
|
|
717
755
|
var version = "1.7.1";
|
|
718
756
|
|
|
719
757
|
//#endregion
|
|
720
|
-
//#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.
|
|
721
|
-
const PACKAGE_VERSION$
|
|
758
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/version.mjs
|
|
759
|
+
const PACKAGE_VERSION$3 = version;
|
|
722
760
|
|
|
723
761
|
//#endregion
|
|
724
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
762
|
+
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@opentelemet_2e71ba5b354a0fbab5c1bdc9f6326b28/node_modules/@better-auth/core/dist/utils/url.mjs
|
|
725
763
|
/**
|
|
726
764
|
* Schemes that execute or embed code when navigated to or accepted as a
|
|
727
765
|
* redirect target. These are never safe as an OAuth `redirect_uri` or as a
|
|
@@ -753,11 +791,11 @@ function isSafeUrlScheme(value) {
|
|
|
753
791
|
}
|
|
754
792
|
|
|
755
793
|
//#endregion
|
|
756
|
-
//#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.
|
|
794
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/two-factor/client.mjs
|
|
757
795
|
const twoFactorClient = (options) => {
|
|
758
796
|
return {
|
|
759
797
|
id: "two-factor",
|
|
760
|
-
version: PACKAGE_VERSION$
|
|
798
|
+
version: PACKAGE_VERSION$3,
|
|
761
799
|
$InferServerPlugin: {},
|
|
762
800
|
atomListeners: [{
|
|
763
801
|
matcher: (path) => path.startsWith("/two-factor/"),
|
|
@@ -791,7 +829,7 @@ const twoFactorClient = (options) => {
|
|
|
791
829
|
};
|
|
792
830
|
|
|
793
831
|
//#endregion
|
|
794
|
-
//#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.
|
|
832
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/admin/access/statement.mjs
|
|
795
833
|
const defaultStatements$1 = {
|
|
796
834
|
user: [
|
|
797
835
|
"create",
|
|
@@ -842,7 +880,7 @@ const defaultRoles$1 = {
|
|
|
842
880
|
};
|
|
843
881
|
|
|
844
882
|
//#endregion
|
|
845
|
-
//#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.
|
|
883
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/admin/error-codes.mjs
|
|
846
884
|
const ADMIN_ERROR_CODES = defineErrorCodes({
|
|
847
885
|
FAILED_TO_CREATE_USER: "Failed to create user",
|
|
848
886
|
USER_ALREADY_EXISTS: "User already exists.",
|
|
@@ -870,7 +908,7 @@ const ADMIN_ERROR_CODES = defineErrorCodes({
|
|
|
870
908
|
});
|
|
871
909
|
|
|
872
910
|
//#endregion
|
|
873
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
911
|
+
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@opentelemet_2e71ba5b354a0fbab5c1bdc9f6326b28/node_modules/@better-auth/core/dist/env/env-impl.mjs
|
|
874
912
|
const _envShim = Object.create(null);
|
|
875
913
|
const _getEnv = (useShim) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (useShim ? _envShim : globalThis);
|
|
876
914
|
const env = new Proxy(_envShim, {
|
|
@@ -934,7 +972,7 @@ const ENV = Object.freeze({
|
|
|
934
972
|
});
|
|
935
973
|
|
|
936
974
|
//#endregion
|
|
937
|
-
//#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.
|
|
975
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/utils/url.mjs
|
|
938
976
|
const SLASH_CHAR_CODE = "/".charCodeAt(0);
|
|
939
977
|
function trimTrailingSlashes(value) {
|
|
940
978
|
let end = value.length;
|
|
@@ -1013,7 +1051,7 @@ function getOrigin(url) {
|
|
|
1013
1051
|
}
|
|
1014
1052
|
|
|
1015
1053
|
//#endregion
|
|
1016
|
-
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/admin/has-permission.mjs
|
|
1017
1055
|
const hasPermission = (input) => {
|
|
1018
1056
|
if (input.userId && input.options?.adminUserIds?.includes(input.userId)) return true;
|
|
1019
1057
|
if (!input.permissions) return false;
|
|
@@ -1542,7 +1580,7 @@ var betterFetch = async (url, options) => {
|
|
|
1542
1580
|
};
|
|
1543
1581
|
|
|
1544
1582
|
//#endregion
|
|
1545
|
-
//#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.
|
|
1583
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/parser.mjs
|
|
1546
1584
|
const PROTO_POLLUTION_PATTERNS = {
|
|
1547
1585
|
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*:/,
|
|
1548
1586
|
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*:/,
|
|
@@ -1612,7 +1650,7 @@ function parseJSON(value, options = { strict: true }) {
|
|
|
1612
1650
|
}
|
|
1613
1651
|
|
|
1614
1652
|
//#endregion
|
|
1615
|
-
//#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.
|
|
1653
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/organization/access/statement.mjs
|
|
1616
1654
|
const defaultStatements = {
|
|
1617
1655
|
organization: ["update", "delete"],
|
|
1618
1656
|
member: [
|
|
@@ -1688,7 +1726,7 @@ const defaultRoles = {
|
|
|
1688
1726
|
};
|
|
1689
1727
|
|
|
1690
1728
|
//#endregion
|
|
1691
|
-
//#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.
|
|
1729
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/organization/permission.mjs
|
|
1692
1730
|
const hasPermissionFn = (input, acRoles) => {
|
|
1693
1731
|
if (!input.permissions) return false;
|
|
1694
1732
|
const roles = input.role.split(",");
|
|
@@ -1701,7 +1739,7 @@ const hasPermissionFn = (input, acRoles) => {
|
|
|
1701
1739
|
};
|
|
1702
1740
|
|
|
1703
1741
|
//#endregion
|
|
1704
|
-
//#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.
|
|
1742
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/organization/error-codes.mjs
|
|
1705
1743
|
const ORGANIZATION_ERROR_CODES = defineErrorCodes({
|
|
1706
1744
|
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization",
|
|
1707
1745
|
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations",
|
|
@@ -1774,12 +1812,22 @@ const t$1 = createAccessControl({
|
|
|
1774
1812
|
`update`,
|
|
1775
1813
|
`delete`
|
|
1776
1814
|
],
|
|
1815
|
+
invitation: [`create`, `cancel`],
|
|
1816
|
+
team: [
|
|
1817
|
+
`create`,
|
|
1818
|
+
`read`,
|
|
1819
|
+
`update`,
|
|
1820
|
+
`delete`
|
|
1821
|
+
],
|
|
1777
1822
|
audit: [`read`],
|
|
1823
|
+
approval_policy: [`update`],
|
|
1824
|
+
approval_request: [`review`],
|
|
1778
1825
|
project: [
|
|
1779
1826
|
`create`,
|
|
1780
1827
|
`read`,
|
|
1781
1828
|
`update`,
|
|
1782
|
-
`archive
|
|
1829
|
+
`archive`,
|
|
1830
|
+
`assign_teams`
|
|
1783
1831
|
],
|
|
1784
1832
|
environment: [
|
|
1785
1833
|
`create`,
|
|
@@ -1807,11 +1855,17 @@ const t$1 = createAccessControl({
|
|
|
1807
1855
|
`revoke`
|
|
1808
1856
|
],
|
|
1809
1857
|
evaluated_entity: [`read`, `delete`],
|
|
1810
|
-
billing: [`read`, `manage`]
|
|
1858
|
+
billing: [`read`, `manage`],
|
|
1859
|
+
sso: [
|
|
1860
|
+
`read`,
|
|
1861
|
+
`manage`,
|
|
1862
|
+
`enforce`
|
|
1863
|
+
]
|
|
1811
1864
|
});
|
|
1812
1865
|
const n$1 = {
|
|
1813
1866
|
viewer: t$1.newRole({
|
|
1814
1867
|
member: [`read`],
|
|
1868
|
+
team: [`read`],
|
|
1815
1869
|
project: [`read`],
|
|
1816
1870
|
environment: [`read`],
|
|
1817
1871
|
flag: [`read`],
|
|
@@ -1820,6 +1874,7 @@ const n$1 = {
|
|
|
1820
1874
|
}),
|
|
1821
1875
|
editor: t$1.newRole({
|
|
1822
1876
|
member: [`read`],
|
|
1877
|
+
team: [`read`],
|
|
1823
1878
|
project: [`read`, `update`],
|
|
1824
1879
|
environment: [`read`],
|
|
1825
1880
|
flag: [
|
|
@@ -1829,8 +1884,12 @@ const n$1 = {
|
|
|
1829
1884
|
`archive`
|
|
1830
1885
|
],
|
|
1831
1886
|
flag_state: [`update`],
|
|
1832
|
-
apiKey: [`read`],
|
|
1833
|
-
sdk_key: [
|
|
1887
|
+
apiKey: [`create`, `read`],
|
|
1888
|
+
sdk_key: [
|
|
1889
|
+
`create`,
|
|
1890
|
+
`read`,
|
|
1891
|
+
`revoke`
|
|
1892
|
+
],
|
|
1834
1893
|
evaluated_entity: [`read`],
|
|
1835
1894
|
billing: [`read`]
|
|
1836
1895
|
}),
|
|
@@ -1841,12 +1900,22 @@ const n$1 = {
|
|
|
1841
1900
|
`read`,
|
|
1842
1901
|
`update`
|
|
1843
1902
|
],
|
|
1903
|
+
invitation: [`create`, `cancel`],
|
|
1904
|
+
team: [
|
|
1905
|
+
`create`,
|
|
1906
|
+
`read`,
|
|
1907
|
+
`update`,
|
|
1908
|
+
`delete`
|
|
1909
|
+
],
|
|
1844
1910
|
audit: [`read`],
|
|
1911
|
+
approval_policy: [`update`],
|
|
1912
|
+
approval_request: [`review`],
|
|
1845
1913
|
project: [
|
|
1846
1914
|
`create`,
|
|
1847
1915
|
`read`,
|
|
1848
1916
|
`update`,
|
|
1849
|
-
`archive
|
|
1917
|
+
`archive`,
|
|
1918
|
+
`assign_teams`
|
|
1850
1919
|
],
|
|
1851
1920
|
environment: [
|
|
1852
1921
|
`create`,
|
|
@@ -1874,7 +1943,8 @@ const n$1 = {
|
|
|
1874
1943
|
`revoke`
|
|
1875
1944
|
],
|
|
1876
1945
|
evaluated_entity: [`read`, `delete`],
|
|
1877
|
-
billing: [`read`, `manage`]
|
|
1946
|
+
billing: [`read`, `manage`],
|
|
1947
|
+
sso: [`read`, `manage`]
|
|
1878
1948
|
}),
|
|
1879
1949
|
owner: t$1.newRole({
|
|
1880
1950
|
organization: [`update`, `delete`],
|
|
@@ -1884,12 +1954,22 @@ const n$1 = {
|
|
|
1884
1954
|
`update`,
|
|
1885
1955
|
`delete`
|
|
1886
1956
|
],
|
|
1957
|
+
invitation: [`create`, `cancel`],
|
|
1958
|
+
team: [
|
|
1959
|
+
`create`,
|
|
1960
|
+
`read`,
|
|
1961
|
+
`update`,
|
|
1962
|
+
`delete`
|
|
1963
|
+
],
|
|
1887
1964
|
audit: [`read`],
|
|
1965
|
+
approval_policy: [`update`],
|
|
1966
|
+
approval_request: [`review`],
|
|
1888
1967
|
project: [
|
|
1889
1968
|
`create`,
|
|
1890
1969
|
`read`,
|
|
1891
1970
|
`update`,
|
|
1892
|
-
`archive
|
|
1971
|
+
`archive`,
|
|
1972
|
+
`assign_teams`
|
|
1893
1973
|
],
|
|
1894
1974
|
environment: [
|
|
1895
1975
|
`create`,
|
|
@@ -1917,12 +1997,17 @@ const n$1 = {
|
|
|
1917
1997
|
`revoke`
|
|
1918
1998
|
],
|
|
1919
1999
|
evaluated_entity: [`read`, `delete`],
|
|
1920
|
-
billing: [`read`, `manage`]
|
|
2000
|
+
billing: [`read`, `manage`],
|
|
2001
|
+
sso: [
|
|
2002
|
+
`read`,
|
|
2003
|
+
`manage`,
|
|
2004
|
+
`enforce`
|
|
2005
|
+
]
|
|
1921
2006
|
})
|
|
1922
2007
|
};
|
|
1923
2008
|
|
|
1924
2009
|
//#endregion
|
|
1925
|
-
//#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.
|
|
2010
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/broadcast-channel.mjs
|
|
1926
2011
|
const kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
1927
2012
|
const now$1 = () => Math.floor(Date.now() / 1e3);
|
|
1928
2013
|
var WindowBroadcastChannel = class {
|
|
@@ -2146,7 +2231,7 @@ let onMount = ($store, initialize) => {
|
|
|
2146
2231
|
};
|
|
2147
2232
|
|
|
2148
2233
|
//#endregion
|
|
2149
|
-
//#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.
|
|
2234
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/equality.mjs
|
|
2150
2235
|
function isPlainObject(value) {
|
|
2151
2236
|
if (typeof value !== "object" || value === null) return false;
|
|
2152
2237
|
const prototype = Object.getPrototypeOf(value);
|
|
@@ -2187,7 +2272,7 @@ function withEquality(store, isEqual) {
|
|
|
2187
2272
|
}
|
|
2188
2273
|
|
|
2189
2274
|
//#endregion
|
|
2190
|
-
//#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.
|
|
2275
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/focus-manager.mjs
|
|
2191
2276
|
const kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
2192
2277
|
var WindowFocusManager = class {
|
|
2193
2278
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -2217,7 +2302,7 @@ function getGlobalFocusManager() {
|
|
|
2217
2302
|
}
|
|
2218
2303
|
|
|
2219
2304
|
//#endregion
|
|
2220
|
-
//#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.
|
|
2305
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/online-manager.mjs
|
|
2221
2306
|
const kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
2222
2307
|
var WindowOnlineManager = class {
|
|
2223
2308
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -2250,7 +2335,7 @@ function getGlobalOnlineManager() {
|
|
|
2250
2335
|
}
|
|
2251
2336
|
|
|
2252
2337
|
//#endregion
|
|
2253
|
-
//#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.
|
|
2338
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/query.mjs
|
|
2254
2339
|
const isServer$1 = () => typeof window === "undefined";
|
|
2255
2340
|
function isAuthQueryStateEqual(a, b) {
|
|
2256
2341
|
return isJsonEqual(a.data, b.data) && a.error === b.error && a.isPending === b.isPending && a.isRefetching === b.isRefetching && a.refetch === b.refetch;
|
|
@@ -2372,7 +2457,7 @@ const useAuthQuery = (initializedAtom, path, $fetch, options) => {
|
|
|
2372
2457
|
};
|
|
2373
2458
|
|
|
2374
2459
|
//#endregion
|
|
2375
|
-
//#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.
|
|
2460
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/session-refresh.mjs
|
|
2376
2461
|
const now = () => Math.floor(Date.now() / 1e3);
|
|
2377
2462
|
/**
|
|
2378
2463
|
* Rate limit: don't refetch on focus if a session request was made within this many seconds
|
|
@@ -2500,7 +2585,7 @@ function createSessionRefreshManager(opts) {
|
|
|
2500
2585
|
}
|
|
2501
2586
|
|
|
2502
2587
|
//#endregion
|
|
2503
|
-
//#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.
|
|
2588
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/fetch-plugins.mjs
|
|
2504
2589
|
const redirectPlugin = {
|
|
2505
2590
|
id: "redirect",
|
|
2506
2591
|
name: "Redirect",
|
|
@@ -2516,7 +2601,7 @@ const redirectPlugin = {
|
|
|
2516
2601
|
};
|
|
2517
2602
|
|
|
2518
2603
|
//#endregion
|
|
2519
|
-
//#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.
|
|
2604
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/session-atom.mjs
|
|
2520
2605
|
const isServer = () => typeof window === "undefined";
|
|
2521
2606
|
const SESSION_MOUNT_DEDUPE_INTERVAL = STORE_UNMOUNT_DELAY;
|
|
2522
2607
|
function hydrateSessionAtom(sessionAtom, session) {
|
|
@@ -2691,7 +2776,7 @@ function getSessionAtom($fetch, options) {
|
|
|
2691
2776
|
}
|
|
2692
2777
|
|
|
2693
2778
|
//#endregion
|
|
2694
|
-
//#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.
|
|
2779
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/config.mjs
|
|
2695
2780
|
const resolvePublicAuthUrl = (basePath) => {
|
|
2696
2781
|
if (typeof process === "undefined") return void 0;
|
|
2697
2782
|
const path = basePath ?? "/api/auth";
|
|
@@ -2797,13 +2882,13 @@ const getClientConfig = (options, loadEnv) => {
|
|
|
2797
2882
|
};
|
|
2798
2883
|
|
|
2799
2884
|
//#endregion
|
|
2800
|
-
//#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.
|
|
2885
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/utils/is-atom.mjs
|
|
2801
2886
|
function isAtom(value) {
|
|
2802
2887
|
return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
|
|
2803
2888
|
}
|
|
2804
2889
|
|
|
2805
2890
|
//#endregion
|
|
2806
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
2891
|
+
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@opentelemet_2e71ba5b354a0fbab5c1bdc9f6326b28/node_modules/@better-auth/core/dist/utils/string.mjs
|
|
2807
2892
|
function capitalizeFirstLetter(str) {
|
|
2808
2893
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
2809
2894
|
}
|
|
@@ -2817,7 +2902,7 @@ function toKebabCase(input) {
|
|
|
2817
2902
|
}
|
|
2818
2903
|
|
|
2819
2904
|
//#endregion
|
|
2820
|
-
//#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.
|
|
2905
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/proxy.mjs
|
|
2821
2906
|
function getMethod(path, knownPathMethods, args) {
|
|
2822
2907
|
const method = knownPathMethods[path];
|
|
2823
2908
|
const { fetchOptions, query: _query, ...body } = args || {};
|
|
@@ -2893,7 +2978,7 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
|
|
|
2893
2978
|
}
|
|
2894
2979
|
|
|
2895
2980
|
//#endregion
|
|
2896
|
-
//#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.
|
|
2981
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/client/vanilla.mjs
|
|
2897
2982
|
function createAuthClient(options) {
|
|
2898
2983
|
const { pluginPathMethods, pluginsActions, pluginsAtoms, hydrateSession, $fetch, atomListeners, $store } = getClientConfig(options);
|
|
2899
2984
|
const resolvedHooks = {};
|
|
@@ -2908,17 +2993,17 @@ function createAuthClient(options) {
|
|
|
2908
2993
|
}
|
|
2909
2994
|
|
|
2910
2995
|
//#endregion
|
|
2911
|
-
//#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.
|
|
2996
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/additional-fields/client.mjs
|
|
2912
2997
|
const inferAdditionalFields = (schema) => {
|
|
2913
2998
|
return {
|
|
2914
2999
|
id: "additional-fields-client",
|
|
2915
|
-
version: PACKAGE_VERSION$
|
|
3000
|
+
version: PACKAGE_VERSION$3,
|
|
2916
3001
|
$InferServerPlugin: {}
|
|
2917
3002
|
};
|
|
2918
3003
|
};
|
|
2919
3004
|
|
|
2920
3005
|
//#endregion
|
|
2921
|
-
//#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.
|
|
3006
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/admin/client.mjs
|
|
2922
3007
|
const adminClient = (options) => {
|
|
2923
3008
|
const roles = {
|
|
2924
3009
|
admin: adminAc$1,
|
|
@@ -2927,7 +3012,7 @@ const adminClient = (options) => {
|
|
|
2927
3012
|
};
|
|
2928
3013
|
return {
|
|
2929
3014
|
id: "admin-client",
|
|
2930
|
-
version: PACKAGE_VERSION$
|
|
3015
|
+
version: PACKAGE_VERSION$3,
|
|
2931
3016
|
$InferServerPlugin: {},
|
|
2932
3017
|
getActions: () => ({ admin: { checkRolePermission: (data) => {
|
|
2933
3018
|
return hasPermission({
|
|
@@ -2953,11 +3038,11 @@ const adminClient = (options) => {
|
|
|
2953
3038
|
};
|
|
2954
3039
|
|
|
2955
3040
|
//#endregion
|
|
2956
|
-
//#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.
|
|
3041
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/device-authorization/client.mjs
|
|
2957
3042
|
const deviceAuthorizationClient = () => {
|
|
2958
3043
|
return {
|
|
2959
3044
|
id: "device-authorization",
|
|
2960
|
-
version: PACKAGE_VERSION$
|
|
3045
|
+
version: PACKAGE_VERSION$3,
|
|
2961
3046
|
$InferServerPlugin: {},
|
|
2962
3047
|
pathMethods: {
|
|
2963
3048
|
"/device/code": "POST",
|
|
@@ -2970,7 +3055,7 @@ const deviceAuthorizationClient = () => {
|
|
|
2970
3055
|
};
|
|
2971
3056
|
|
|
2972
3057
|
//#endregion
|
|
2973
|
-
//#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.
|
|
3058
|
+
//#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._0f4663e1f35d01509eefb20039600143/node_modules/better-auth/dist/plugins/organization/client.mjs
|
|
2974
3059
|
/**
|
|
2975
3060
|
* Using the same `hasPermissionFn` function, but without the need for a `ctx` parameter or the `organizationId` parameter.
|
|
2976
3061
|
*/
|
|
@@ -2990,7 +3075,7 @@ const organizationClient = (options) => {
|
|
|
2990
3075
|
};
|
|
2991
3076
|
return {
|
|
2992
3077
|
id: "organization",
|
|
2993
|
-
version: PACKAGE_VERSION$
|
|
3078
|
+
version: PACKAGE_VERSION$3,
|
|
2994
3079
|
$InferServerPlugin: {},
|
|
2995
3080
|
getActions: ($fetch, _$store, co) => ({
|
|
2996
3081
|
$Infer: {
|
|
@@ -3065,7 +3150,7 @@ const organizationClient = (options) => {
|
|
|
3065
3150
|
};
|
|
3066
3151
|
|
|
3067
3152
|
//#endregion
|
|
3068
|
-
//#region ../../node_modules/.pnpm/@better-auth+api-key@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-
|
|
3153
|
+
//#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_2568c45b7ee73e55b396faf3d8bd3e1a/node_modules/@better-auth/api-key/dist/version-D365O1mH.mjs
|
|
3069
3154
|
const API_KEY_ERROR_CODES = defineErrorCodes({
|
|
3070
3155
|
INVALID_METADATA_TYPE: "metadata must be an object or undefined",
|
|
3071
3156
|
REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided",
|
|
@@ -3099,14 +3184,14 @@ const API_KEY_ERROR_CODES = defineErrorCodes({
|
|
|
3099
3184
|
NO_DEFAULT_API_KEY_CONFIGURATION_FOUND: "No default api-key configuration found.",
|
|
3100
3185
|
ORGANIZATION_PLUGIN_REQUIRED: "Organization plugin is required for organization-owned API keys. Please install and configure the organization plugin."
|
|
3101
3186
|
});
|
|
3102
|
-
const PACKAGE_VERSION$
|
|
3187
|
+
const PACKAGE_VERSION$2 = "1.7.1";
|
|
3103
3188
|
|
|
3104
3189
|
//#endregion
|
|
3105
|
-
//#region ../../node_modules/.pnpm/@better-auth+api-key@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-
|
|
3190
|
+
//#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_2568c45b7ee73e55b396faf3d8bd3e1a/node_modules/@better-auth/api-key/dist/client.mjs
|
|
3106
3191
|
const apiKeyClient = () => {
|
|
3107
3192
|
return {
|
|
3108
3193
|
id: "api-key",
|
|
3109
|
-
version: PACKAGE_VERSION$
|
|
3194
|
+
version: PACKAGE_VERSION$2,
|
|
3110
3195
|
$InferServerPlugin: {},
|
|
3111
3196
|
pathMethods: {
|
|
3112
3197
|
"/api-key/create": "POST",
|
|
@@ -3118,7 +3203,7 @@ const apiKeyClient = () => {
|
|
|
3118
3203
|
};
|
|
3119
3204
|
|
|
3120
3205
|
//#endregion
|
|
3121
|
-
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.
|
|
3206
|
+
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fet_3e5015565ab35cd7b806fd7cb64ff2ec/node_modules/@better-auth/passkey/dist/version-CNE1I0BY.mjs
|
|
3122
3207
|
const PASSKEY_ERROR_CODES = defineErrorCodes({
|
|
3123
3208
|
CHALLENGE_NOT_FOUND: "Challenge not found",
|
|
3124
3209
|
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: "You are not allowed to register this passkey",
|
|
@@ -3136,7 +3221,7 @@ const PASSKEY_ERROR_CODES = defineErrorCodes({
|
|
|
3136
3221
|
RESOLVE_USER_REQUIRED: "Passkey registration requires either an authenticated session or a resolveUser callback when requireSession is false",
|
|
3137
3222
|
RESOLVED_USER_INVALID: "Resolved user is invalid"
|
|
3138
3223
|
});
|
|
3139
|
-
const PACKAGE_VERSION = "1.7.1";
|
|
3224
|
+
const PACKAGE_VERSION$1 = "1.7.1";
|
|
3140
3225
|
|
|
3141
3226
|
//#endregion
|
|
3142
3227
|
//#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/bufferToBase64URLString.js
|
|
@@ -3608,7 +3693,7 @@ async function startAuthentication(options) {
|
|
|
3608
3693
|
}
|
|
3609
3694
|
|
|
3610
3695
|
//#endregion
|
|
3611
|
-
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.
|
|
3696
|
+
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.1_@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fet_3e5015565ab35cd7b806fd7cb64ff2ec/node_modules/@better-auth/passkey/dist/client.mjs
|
|
3612
3697
|
const getPasskeyActions = ($fetch, { $listPasskeys, $store }) => {
|
|
3613
3698
|
const signInPasskey = async (opts, options) => {
|
|
3614
3699
|
const response = await $fetch("/passkey/generate-authenticate-options", {
|
|
@@ -3780,7 +3865,7 @@ const passkeyClient = () => {
|
|
|
3780
3865
|
const $listPasskeys = /* @__PURE__ */ atom();
|
|
3781
3866
|
return {
|
|
3782
3867
|
id: "passkey",
|
|
3783
|
-
version: PACKAGE_VERSION,
|
|
3868
|
+
version: PACKAGE_VERSION$1,
|
|
3784
3869
|
$InferServerPlugin: {},
|
|
3785
3870
|
getActions: ($fetch, $store) => getPasskeyActions($fetch, {
|
|
3786
3871
|
$listPasskeys,
|
|
@@ -3809,27 +3894,59 @@ const passkeyClient = () => {
|
|
|
3809
3894
|
};
|
|
3810
3895
|
};
|
|
3811
3896
|
|
|
3897
|
+
//#endregion
|
|
3898
|
+
//#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_ab392d2d19ca264106fdcee67033c1f1/node_modules/@better-auth/sso/dist/version-BbG1DbY-.mjs
|
|
3899
|
+
const PACKAGE_VERSION = "1.7.1";
|
|
3900
|
+
|
|
3901
|
+
//#endregion
|
|
3902
|
+
//#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_ab392d2d19ca264106fdcee67033c1f1/node_modules/@better-auth/sso/dist/client.mjs
|
|
3903
|
+
const ssoClient = (options) => {
|
|
3904
|
+
return {
|
|
3905
|
+
id: "sso-client",
|
|
3906
|
+
version: PACKAGE_VERSION,
|
|
3907
|
+
$InferServerPlugin: {},
|
|
3908
|
+
pathMethods: {
|
|
3909
|
+
"/sso/providers": "GET",
|
|
3910
|
+
"/sso/get-provider": "GET"
|
|
3911
|
+
}
|
|
3912
|
+
};
|
|
3913
|
+
};
|
|
3914
|
+
|
|
3812
3915
|
//#endregion
|
|
3813
3916
|
//#region ../auth/dist/client.mjs
|
|
3814
|
-
function
|
|
3917
|
+
function d$1(n) {
|
|
3815
3918
|
return [
|
|
3816
3919
|
apiKeyClient(),
|
|
3817
3920
|
adminClient(),
|
|
3818
3921
|
deviceAuthorizationClient(),
|
|
3819
3922
|
twoFactorClient({ twoFactorPage: n?.twoFactorPage ?? `/auth/two-factor` }),
|
|
3820
3923
|
passkeyClient(),
|
|
3924
|
+
ssoClient({
|
|
3925
|
+
domainVerification: { enabled: !0 },
|
|
3926
|
+
schema: { ssoProvider: { additionalFields: {
|
|
3927
|
+
displayName: {
|
|
3928
|
+
type: `string`,
|
|
3929
|
+
required: !1
|
|
3930
|
+
},
|
|
3931
|
+
enabled: {
|
|
3932
|
+
type: `boolean`,
|
|
3933
|
+
required: !1
|
|
3934
|
+
}
|
|
3935
|
+
} } }
|
|
3936
|
+
}),
|
|
3821
3937
|
organizationClient({
|
|
3822
3938
|
ac: t$1,
|
|
3823
|
-
roles: n$1
|
|
3939
|
+
roles: n$1,
|
|
3940
|
+
teams: { enabled: !0 }
|
|
3824
3941
|
}),
|
|
3825
3942
|
inferAdditionalFields()
|
|
3826
3943
|
];
|
|
3827
3944
|
}
|
|
3828
|
-
const
|
|
3945
|
+
const f$1 = (e) => createAuthClient({
|
|
3829
3946
|
baseURL: e.baseURL,
|
|
3830
3947
|
basePath: e.basePath,
|
|
3831
3948
|
fetchOptions: e.fetchOptions,
|
|
3832
|
-
plugins:
|
|
3949
|
+
plugins: d$1(e)
|
|
3833
3950
|
});
|
|
3834
3951
|
|
|
3835
3952
|
//#endregion
|
|
@@ -3855,7 +3972,7 @@ function exitCodeForError(error) {
|
|
|
3855
3972
|
//#region src/lib/client.ts
|
|
3856
3973
|
const AUTH_BASE_PATH = "/api/v1/auth";
|
|
3857
3974
|
function createCliAuthClient(apiUrl) {
|
|
3858
|
-
return
|
|
3975
|
+
return f$1({
|
|
3859
3976
|
baseURL: apiUrl,
|
|
3860
3977
|
basePath: AUTH_BASE_PATH
|
|
3861
3978
|
});
|
|
@@ -3919,7 +4036,7 @@ async function createCliApiClient(runtime) {
|
|
|
3919
4036
|
sessionToken,
|
|
3920
4037
|
orgSlug: runtime.org
|
|
3921
4038
|
});
|
|
3922
|
-
const client =
|
|
4039
|
+
const client = w$1({
|
|
3923
4040
|
baseUrl: runtime.apiUrl,
|
|
3924
4041
|
client: "cli",
|
|
3925
4042
|
getHeaders: () => {
|
|
@@ -4411,7 +4528,8 @@ const K = z.object({
|
|
|
4411
4528
|
changes: z.array(U),
|
|
4412
4529
|
remoteOnly: z.array(L).default([]),
|
|
4413
4530
|
forced: z.boolean().default(!1),
|
|
4414
|
-
adopted: z.boolean().default(!1)
|
|
4531
|
+
adopted: z.boolean().default(!1),
|
|
4532
|
+
approvalRequests: z.array(z.string()).default([])
|
|
4415
4533
|
});
|
|
4416
4534
|
|
|
4417
4535
|
//#endregion
|
|
@@ -4901,13 +5019,16 @@ function registerPushCommand(program) {
|
|
|
4901
5019
|
}).catch(mapApiError);
|
|
4902
5020
|
const appliedPlan = buildSyncPlan(applied.changes);
|
|
4903
5021
|
const types = await runTypegen(runtime);
|
|
5022
|
+
const approvalRequests = applied.approvalRequests ?? [];
|
|
4904
5023
|
printResult(runtime, {
|
|
4905
5024
|
plan: appliedPlan,
|
|
4906
5025
|
remoteOnly,
|
|
4907
5026
|
forced: applied.forced === true,
|
|
5027
|
+
approvalRequests,
|
|
4908
5028
|
types
|
|
4909
5029
|
}, [
|
|
4910
|
-
`Applied ${applied.changes.length} change(s)
|
|
5030
|
+
applied.changes.length > 0 ? `Applied ${applied.changes.length} change(s).` : null,
|
|
5031
|
+
approvalRequests.length > 0 ? `${approvalRequests.length} environment change(s) queued for approval.` : null,
|
|
4911
5032
|
applied.forced ? "Forced through version conflicts (audited)." : null,
|
|
4912
5033
|
`Wrote types for ${types.flagCount} flag(s) to ${types.written}`
|
|
4913
5034
|
].filter(Boolean).join("\n"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipdit/cli",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "shipd's command-line interface",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"commander": "^14.0.0",
|
|
21
21
|
"jiti": "^2.5.1",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"shipdit": "0.2.3",
|
|
23
|
+
"zod": "^4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
+
"@shipd/api-client": "0.0.1",
|
|
27
|
+
"@shipd/auth": "0.0.1",
|
|
28
|
+
"@shipd/contracts": "0.0.1",
|
|
26
29
|
"@types/node": "^24.13.3",
|
|
27
30
|
"tsdown": "0.22.14",
|
|
28
31
|
"typescript": "^7.0.2",
|
|
29
|
-
"vitest": "^4"
|
|
30
|
-
"@shipd/api-client": "0.0.1",
|
|
31
|
-
"@shipd/auth": "0.0.1",
|
|
32
|
-
"@shipd/contracts": "0.0.1"
|
|
32
|
+
"vitest": "^4"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=20"
|