@shipdit/cli 0.1.2 → 0.2.0
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 +182 -111
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -375,10 +375,12 @@ 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
|
+
function b$1(e) {
|
|
379
381
|
return `${e.replace(/\/+$/, ``)}/api/v1/rpc`;
|
|
380
382
|
}
|
|
381
|
-
function
|
|
383
|
+
function x$1(e) {
|
|
382
384
|
return {
|
|
383
385
|
...e.fetch ? { fetch: e.fetch } : {},
|
|
384
386
|
init: { credentials: e.client === `dashboard` ? `include` : `same-origin` },
|
|
@@ -388,100 +390,128 @@ function y$1(e) {
|
|
|
388
390
|
}
|
|
389
391
|
};
|
|
390
392
|
}
|
|
391
|
-
async function
|
|
393
|
+
async function S$1(e, t) {
|
|
392
394
|
return i$1(await e({ json: t }));
|
|
393
395
|
}
|
|
394
|
-
function
|
|
395
|
-
let t =
|
|
396
|
+
function C$1(e) {
|
|
397
|
+
let t = b$1(e.baseUrl), n = x$1(e), r = a$1(t, n), i = o$1(t, n), C = s$1(t, n), w = c$1(t, n), T = l$1(t, n), E = u$2(t, n), D = d$2(t, n), O = f$1(t, n), k = h$1(t, n), A = p$1(t, n), j = m$1(t, n), M = g$1(t, n), N = _$1(t, n), P = v$1(t, n), F = y$1(t, n);
|
|
396
398
|
return {
|
|
397
399
|
me: {
|
|
398
|
-
get: (e = {}) =>
|
|
399
|
-
feedback: (e) =>
|
|
400
|
+
get: (e = {}) => S$1(r.me.$post, e),
|
|
401
|
+
feedback: (e) => S$1(r.me.feedback.$post, e)
|
|
400
402
|
},
|
|
401
403
|
project: {
|
|
402
|
-
list: (e = {}) =>
|
|
403
|
-
create: (e) =>
|
|
404
|
-
update: (e) =>
|
|
405
|
-
archive: (e) =>
|
|
404
|
+
list: (e = {}) => S$1(i.project.list.$post, e),
|
|
405
|
+
create: (e) => S$1(i.project.create.$post, e),
|
|
406
|
+
update: (e) => S$1(i.project.update.$post, e),
|
|
407
|
+
archive: (e) => S$1(i.project.archive.$post, e),
|
|
408
|
+
listTeams: (e) => S$1(i.project.listTeams.$post, e),
|
|
409
|
+
setTeams: (e) => S$1(i.project.setTeams.$post, e)
|
|
406
410
|
},
|
|
411
|
+
team: { listMembers: (e) => S$1(F.team.listMembers.$post, e) },
|
|
407
412
|
environment: {
|
|
408
|
-
list: (e) =>
|
|
409
|
-
create: (e) =>
|
|
410
|
-
update: (e) =>
|
|
411
|
-
archive: (e) =>
|
|
413
|
+
list: (e) => S$1(C.environment.list.$post, e),
|
|
414
|
+
create: (e) => S$1(C.environment.create.$post, e),
|
|
415
|
+
update: (e) => S$1(C.environment.update.$post, e),
|
|
416
|
+
archive: (e) => S$1(C.environment.archive.$post, e)
|
|
412
417
|
},
|
|
413
418
|
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) =>
|
|
419
|
+
list: (e) => S$1(w.flag.list.$post, e),
|
|
420
|
+
get: (e) => S$1(w.flag.get.$post, e),
|
|
421
|
+
create: (e) => S$1(w.flag.create.$post, e),
|
|
422
|
+
update: (e) => S$1(w.flag.update.$post, e),
|
|
423
|
+
archive: (e) => S$1(w.flag.archive.$post, e),
|
|
424
|
+
updateEnvironment: (e) => S$1(w.flag.updateEnvironment.$post, e),
|
|
425
|
+
toggleEnvironment: (e) => S$1(w.flag.toggleEnvironment.$post, e),
|
|
426
|
+
listEnvironmentStates: (e) => S$1(w.flag.listEnvironmentStates.$post, e),
|
|
427
|
+
pull: (e) => S$1(w.flag.pull.$post, e),
|
|
428
|
+
diff: (e) => S$1(w.flag.diff.$post, e),
|
|
429
|
+
push: (e) => S$1(w.flag.push.$post, e)
|
|
425
430
|
},
|
|
426
431
|
apiKey: {
|
|
427
|
-
list: (e = {}) =>
|
|
428
|
-
create: (e) =>
|
|
429
|
-
revoke: (e) =>
|
|
432
|
+
list: (e = {}) => S$1(T.apiKey.list.$post, e),
|
|
433
|
+
create: (e) => S$1(T.apiKey.create.$post, e),
|
|
434
|
+
revoke: (e) => S$1(T.apiKey.revoke.$post, e)
|
|
430
435
|
},
|
|
431
436
|
sdkKey: {
|
|
432
|
-
list: (e = {}) =>
|
|
433
|
-
create: (e) =>
|
|
434
|
-
revoke: (e) =>
|
|
437
|
+
list: (e = {}) => S$1(O.sdkKey.list.$post, e),
|
|
438
|
+
create: (e) => S$1(O.sdkKey.create.$post, e),
|
|
439
|
+
revoke: (e) => S$1(O.sdkKey.revoke.$post, e)
|
|
435
440
|
},
|
|
436
441
|
segment: {
|
|
437
|
-
list: (e) =>
|
|
438
|
-
get: (e) =>
|
|
439
|
-
create: (e) =>
|
|
440
|
-
update: (e) =>
|
|
441
|
-
archive: (e) =>
|
|
442
|
-
listEnvironmentStates: (e) =>
|
|
443
|
-
updateEnvironment: (e) =>
|
|
442
|
+
list: (e) => S$1(k.segment.list.$post, e),
|
|
443
|
+
get: (e) => S$1(k.segment.get.$post, e),
|
|
444
|
+
create: (e) => S$1(k.segment.create.$post, e),
|
|
445
|
+
update: (e) => S$1(k.segment.update.$post, e),
|
|
446
|
+
archive: (e) => S$1(k.segment.archive.$post, e),
|
|
447
|
+
listEnvironmentStates: (e) => S$1(k.segment.listEnvironmentStates.$post, e),
|
|
448
|
+
updateEnvironment: (e) => S$1(k.segment.updateEnvironment.$post, e)
|
|
444
449
|
},
|
|
445
450
|
evaluatedEntity: {
|
|
446
|
-
list: (e) =>
|
|
447
|
-
get: (e) =>
|
|
448
|
-
delete: (e) =>
|
|
451
|
+
list: (e) => S$1(A.evaluatedEntity.list.$post, e),
|
|
452
|
+
get: (e) => S$1(A.evaluatedEntity.get.$post, e),
|
|
453
|
+
delete: (e) => S$1(A.evaluatedEntity.delete.$post, e)
|
|
449
454
|
},
|
|
450
455
|
evaluationFact: {
|
|
451
|
-
list: (e) =>
|
|
452
|
-
byRule: (e) =>
|
|
453
|
-
orgSummary: (e = {}) =>
|
|
454
|
-
projectSummary: (e) =>
|
|
455
|
-
simulate: (e) =>
|
|
456
|
+
list: (e) => S$1(j.evaluationFact.list.$post, e),
|
|
457
|
+
byRule: (e) => S$1(j.evaluationFact.byRule.$post, e),
|
|
458
|
+
orgSummary: (e = {}) => S$1(j.evaluationFact.orgSummary.$post, e),
|
|
459
|
+
projectSummary: (e) => S$1(j.evaluationFact.projectSummary.$post, e),
|
|
460
|
+
simulate: (e) => S$1(j.evaluationFact.simulate.$post, e)
|
|
456
461
|
},
|
|
457
|
-
snapshot: { publish: (e) =>
|
|
458
|
-
device: { authorize: (e) =>
|
|
462
|
+
snapshot: { publish: (e) => S$1(M.snapshot.publish.$post, e) },
|
|
463
|
+
device: { authorize: (e) => S$1(N.device.authorize.$post, e) },
|
|
459
464
|
billing: {
|
|
460
|
-
get: (e = {}) =>
|
|
461
|
-
attach: (e) =>
|
|
462
|
-
openPortal: (e) =>
|
|
465
|
+
get: (e = {}) => S$1(P.billing.get.$post, e),
|
|
466
|
+
attach: (e) => S$1(P.billing.attach.$post, e),
|
|
467
|
+
openPortal: (e) => S$1(P.billing.openPortal.$post, e)
|
|
468
|
+
},
|
|
469
|
+
approval: {
|
|
470
|
+
listPolicies: (e = {}) => S$1(E.approval.listPolicies.$post, e),
|
|
471
|
+
createPolicy: (e) => S$1(E.approval.createPolicy.$post, e),
|
|
472
|
+
updatePolicy: (e) => S$1(E.approval.updatePolicy.$post, e),
|
|
473
|
+
deletePolicy: (e) => S$1(E.approval.deletePolicy.$post, e),
|
|
474
|
+
listRequests: (e = {}) => S$1(E.approval.listRequests.$post, e),
|
|
475
|
+
get: (e) => S$1(E.approval.get.$post, e),
|
|
476
|
+
approve: (e) => S$1(E.approval.approve.$post, e),
|
|
477
|
+
reject: (e) => S$1(E.approval.reject.$post, e),
|
|
478
|
+
cancel: (e) => S$1(E.approval.cancel.$post, e)
|
|
479
|
+
},
|
|
480
|
+
audit: {
|
|
481
|
+
list: (e = {}) => S$1(D.audit.list.$post, e),
|
|
482
|
+
get: (e) => S$1(D.audit.get.$post, e),
|
|
483
|
+
actions: (e = {}) => S$1(D.audit.actions.$post, e),
|
|
484
|
+
export: (e) => S$1(D.audit.export.$post, e),
|
|
485
|
+
getSettings: (e = {}) => S$1(D.audit.getSettings.$post, e),
|
|
486
|
+
updateSettings: (e) => S$1(D.audit.updateSettings.$post, e),
|
|
487
|
+
listDestinations: (e = {}) => S$1(D.audit.listDestinations.$post, e),
|
|
488
|
+
createDestination: (e) => S$1(D.audit.createDestination.$post, e),
|
|
489
|
+
updateDestination: (e) => S$1(D.audit.updateDestination.$post, e),
|
|
490
|
+
deleteDestination: (e) => S$1(D.audit.deleteDestination.$post, e),
|
|
491
|
+
testDestination: (e) => S$1(D.audit.testDestination.$post, e)
|
|
463
492
|
},
|
|
464
|
-
audit: { list: (e = {}) => b$1(w.audit.list.$post, e) },
|
|
465
493
|
raw: {
|
|
466
494
|
me: r,
|
|
467
495
|
project: i,
|
|
468
|
-
environment:
|
|
469
|
-
flag:
|
|
470
|
-
apiKey:
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
496
|
+
environment: C,
|
|
497
|
+
flag: w,
|
|
498
|
+
apiKey: T,
|
|
499
|
+
approval: E,
|
|
500
|
+
audit: D,
|
|
501
|
+
sdkKey: O,
|
|
502
|
+
segment: k,
|
|
503
|
+
evaluatedEntity: A,
|
|
504
|
+
evaluationFact: j,
|
|
505
|
+
snapshot: M,
|
|
506
|
+
device: N,
|
|
507
|
+
billing: P,
|
|
508
|
+
team: F
|
|
479
509
|
}
|
|
480
510
|
};
|
|
481
511
|
}
|
|
482
512
|
|
|
483
513
|
//#endregion
|
|
484
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
514
|
+
//#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
515
|
function defineErrorCodes(codes) {
|
|
486
516
|
return Object.fromEntries(Object.entries(codes).map(([key, value]) => [key, {
|
|
487
517
|
code: key,
|
|
@@ -608,7 +638,7 @@ var InternalAPIError = class extends Error {
|
|
|
608
638
|
const APIError = makeErrorForHideStackFrame(InternalAPIError, Error);
|
|
609
639
|
|
|
610
640
|
//#endregion
|
|
611
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
641
|
+
//#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
642
|
var BetterAuthError = class extends Error {
|
|
613
643
|
constructor(message, options) {
|
|
614
644
|
super(message, options);
|
|
@@ -619,7 +649,7 @@ var BetterAuthError = class extends Error {
|
|
|
619
649
|
};
|
|
620
650
|
|
|
621
651
|
//#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.
|
|
652
|
+
//#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
653
|
function unknownResourceResponse(requestedResource) {
|
|
624
654
|
return {
|
|
625
655
|
success: false,
|
|
@@ -696,7 +726,7 @@ function createAccessControl(s) {
|
|
|
696
726
|
}
|
|
697
727
|
|
|
698
728
|
//#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.
|
|
729
|
+
//#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
730
|
const TWO_FACTOR_ERROR_CODES = defineErrorCodes({
|
|
701
731
|
OTP_NOT_ENABLED: "OTP not enabled",
|
|
702
732
|
OTP_NOT_CONFIGURED: "OTP is not available",
|
|
@@ -713,15 +743,15 @@ const TWO_FACTOR_ERROR_CODES = defineErrorCodes({
|
|
|
713
743
|
});
|
|
714
744
|
|
|
715
745
|
//#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.
|
|
746
|
+
//#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
747
|
var version = "1.7.1";
|
|
718
748
|
|
|
719
749
|
//#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.
|
|
750
|
+
//#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
|
|
721
751
|
const PACKAGE_VERSION$2 = version;
|
|
722
752
|
|
|
723
753
|
//#endregion
|
|
724
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
754
|
+
//#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
755
|
/**
|
|
726
756
|
* Schemes that execute or embed code when navigated to or accepted as a
|
|
727
757
|
* redirect target. These are never safe as an OAuth `redirect_uri` or as a
|
|
@@ -753,7 +783,7 @@ function isSafeUrlScheme(value) {
|
|
|
753
783
|
}
|
|
754
784
|
|
|
755
785
|
//#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.
|
|
786
|
+
//#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
787
|
const twoFactorClient = (options) => {
|
|
758
788
|
return {
|
|
759
789
|
id: "two-factor",
|
|
@@ -791,7 +821,7 @@ const twoFactorClient = (options) => {
|
|
|
791
821
|
};
|
|
792
822
|
|
|
793
823
|
//#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.
|
|
824
|
+
//#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
825
|
const defaultStatements$1 = {
|
|
796
826
|
user: [
|
|
797
827
|
"create",
|
|
@@ -842,7 +872,7 @@ const defaultRoles$1 = {
|
|
|
842
872
|
};
|
|
843
873
|
|
|
844
874
|
//#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.
|
|
875
|
+
//#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
876
|
const ADMIN_ERROR_CODES = defineErrorCodes({
|
|
847
877
|
FAILED_TO_CREATE_USER: "Failed to create user",
|
|
848
878
|
USER_ALREADY_EXISTS: "User already exists.",
|
|
@@ -870,7 +900,7 @@ const ADMIN_ERROR_CODES = defineErrorCodes({
|
|
|
870
900
|
});
|
|
871
901
|
|
|
872
902
|
//#endregion
|
|
873
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
903
|
+
//#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
904
|
const _envShim = Object.create(null);
|
|
875
905
|
const _getEnv = (useShim) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (useShim ? _envShim : globalThis);
|
|
876
906
|
const env = new Proxy(_envShim, {
|
|
@@ -934,7 +964,7 @@ const ENV = Object.freeze({
|
|
|
934
964
|
});
|
|
935
965
|
|
|
936
966
|
//#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.
|
|
967
|
+
//#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
968
|
const SLASH_CHAR_CODE = "/".charCodeAt(0);
|
|
939
969
|
function trimTrailingSlashes(value) {
|
|
940
970
|
let end = value.length;
|
|
@@ -1013,7 +1043,7 @@ function getOrigin(url) {
|
|
|
1013
1043
|
}
|
|
1014
1044
|
|
|
1015
1045
|
//#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.
|
|
1046
|
+
//#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
1047
|
const hasPermission = (input) => {
|
|
1018
1048
|
if (input.userId && input.options?.adminUserIds?.includes(input.userId)) return true;
|
|
1019
1049
|
if (!input.permissions) return false;
|
|
@@ -1542,7 +1572,7 @@ var betterFetch = async (url, options) => {
|
|
|
1542
1572
|
};
|
|
1543
1573
|
|
|
1544
1574
|
//#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.
|
|
1575
|
+
//#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
1576
|
const PROTO_POLLUTION_PATTERNS = {
|
|
1547
1577
|
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
1578
|
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 +1642,7 @@ function parseJSON(value, options = { strict: true }) {
|
|
|
1612
1642
|
}
|
|
1613
1643
|
|
|
1614
1644
|
//#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.
|
|
1645
|
+
//#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
1646
|
const defaultStatements = {
|
|
1617
1647
|
organization: ["update", "delete"],
|
|
1618
1648
|
member: [
|
|
@@ -1688,7 +1718,7 @@ const defaultRoles = {
|
|
|
1688
1718
|
};
|
|
1689
1719
|
|
|
1690
1720
|
//#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.
|
|
1721
|
+
//#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
1722
|
const hasPermissionFn = (input, acRoles) => {
|
|
1693
1723
|
if (!input.permissions) return false;
|
|
1694
1724
|
const roles = input.role.split(",");
|
|
@@ -1701,7 +1731,7 @@ const hasPermissionFn = (input, acRoles) => {
|
|
|
1701
1731
|
};
|
|
1702
1732
|
|
|
1703
1733
|
//#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.
|
|
1734
|
+
//#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
1735
|
const ORGANIZATION_ERROR_CODES = defineErrorCodes({
|
|
1706
1736
|
YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization",
|
|
1707
1737
|
YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS: "You have reached the maximum number of organizations",
|
|
@@ -1774,12 +1804,22 @@ const t$1 = createAccessControl({
|
|
|
1774
1804
|
`update`,
|
|
1775
1805
|
`delete`
|
|
1776
1806
|
],
|
|
1807
|
+
invitation: [`create`, `cancel`],
|
|
1808
|
+
team: [
|
|
1809
|
+
`create`,
|
|
1810
|
+
`read`,
|
|
1811
|
+
`update`,
|
|
1812
|
+
`delete`
|
|
1813
|
+
],
|
|
1777
1814
|
audit: [`read`],
|
|
1815
|
+
approval_policy: [`update`],
|
|
1816
|
+
approval_request: [`review`],
|
|
1778
1817
|
project: [
|
|
1779
1818
|
`create`,
|
|
1780
1819
|
`read`,
|
|
1781
1820
|
`update`,
|
|
1782
|
-
`archive
|
|
1821
|
+
`archive`,
|
|
1822
|
+
`assign_teams`
|
|
1783
1823
|
],
|
|
1784
1824
|
environment: [
|
|
1785
1825
|
`create`,
|
|
@@ -1812,6 +1852,7 @@ const t$1 = createAccessControl({
|
|
|
1812
1852
|
const n$1 = {
|
|
1813
1853
|
viewer: t$1.newRole({
|
|
1814
1854
|
member: [`read`],
|
|
1855
|
+
team: [`read`],
|
|
1815
1856
|
project: [`read`],
|
|
1816
1857
|
environment: [`read`],
|
|
1817
1858
|
flag: [`read`],
|
|
@@ -1820,6 +1861,7 @@ const n$1 = {
|
|
|
1820
1861
|
}),
|
|
1821
1862
|
editor: t$1.newRole({
|
|
1822
1863
|
member: [`read`],
|
|
1864
|
+
team: [`read`],
|
|
1823
1865
|
project: [`read`, `update`],
|
|
1824
1866
|
environment: [`read`],
|
|
1825
1867
|
flag: [
|
|
@@ -1829,8 +1871,12 @@ const n$1 = {
|
|
|
1829
1871
|
`archive`
|
|
1830
1872
|
],
|
|
1831
1873
|
flag_state: [`update`],
|
|
1832
|
-
apiKey: [`read`],
|
|
1833
|
-
sdk_key: [
|
|
1874
|
+
apiKey: [`create`, `read`],
|
|
1875
|
+
sdk_key: [
|
|
1876
|
+
`create`,
|
|
1877
|
+
`read`,
|
|
1878
|
+
`revoke`
|
|
1879
|
+
],
|
|
1834
1880
|
evaluated_entity: [`read`],
|
|
1835
1881
|
billing: [`read`]
|
|
1836
1882
|
}),
|
|
@@ -1841,12 +1887,22 @@ const n$1 = {
|
|
|
1841
1887
|
`read`,
|
|
1842
1888
|
`update`
|
|
1843
1889
|
],
|
|
1890
|
+
invitation: [`create`, `cancel`],
|
|
1891
|
+
team: [
|
|
1892
|
+
`create`,
|
|
1893
|
+
`read`,
|
|
1894
|
+
`update`,
|
|
1895
|
+
`delete`
|
|
1896
|
+
],
|
|
1844
1897
|
audit: [`read`],
|
|
1898
|
+
approval_policy: [`update`],
|
|
1899
|
+
approval_request: [`review`],
|
|
1845
1900
|
project: [
|
|
1846
1901
|
`create`,
|
|
1847
1902
|
`read`,
|
|
1848
1903
|
`update`,
|
|
1849
|
-
`archive
|
|
1904
|
+
`archive`,
|
|
1905
|
+
`assign_teams`
|
|
1850
1906
|
],
|
|
1851
1907
|
environment: [
|
|
1852
1908
|
`create`,
|
|
@@ -1884,12 +1940,22 @@ const n$1 = {
|
|
|
1884
1940
|
`update`,
|
|
1885
1941
|
`delete`
|
|
1886
1942
|
],
|
|
1943
|
+
invitation: [`create`, `cancel`],
|
|
1944
|
+
team: [
|
|
1945
|
+
`create`,
|
|
1946
|
+
`read`,
|
|
1947
|
+
`update`,
|
|
1948
|
+
`delete`
|
|
1949
|
+
],
|
|
1887
1950
|
audit: [`read`],
|
|
1951
|
+
approval_policy: [`update`],
|
|
1952
|
+
approval_request: [`review`],
|
|
1888
1953
|
project: [
|
|
1889
1954
|
`create`,
|
|
1890
1955
|
`read`,
|
|
1891
1956
|
`update`,
|
|
1892
|
-
`archive
|
|
1957
|
+
`archive`,
|
|
1958
|
+
`assign_teams`
|
|
1893
1959
|
],
|
|
1894
1960
|
environment: [
|
|
1895
1961
|
`create`,
|
|
@@ -1922,7 +1988,7 @@ const n$1 = {
|
|
|
1922
1988
|
};
|
|
1923
1989
|
|
|
1924
1990
|
//#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.
|
|
1991
|
+
//#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
1992
|
const kBroadcastChannel = Symbol.for("better-auth:broadcast-channel");
|
|
1927
1993
|
const now$1 = () => Math.floor(Date.now() / 1e3);
|
|
1928
1994
|
var WindowBroadcastChannel = class {
|
|
@@ -2146,7 +2212,7 @@ let onMount = ($store, initialize) => {
|
|
|
2146
2212
|
};
|
|
2147
2213
|
|
|
2148
2214
|
//#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.
|
|
2215
|
+
//#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
2216
|
function isPlainObject(value) {
|
|
2151
2217
|
if (typeof value !== "object" || value === null) return false;
|
|
2152
2218
|
const prototype = Object.getPrototypeOf(value);
|
|
@@ -2187,7 +2253,7 @@ function withEquality(store, isEqual) {
|
|
|
2187
2253
|
}
|
|
2188
2254
|
|
|
2189
2255
|
//#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.
|
|
2256
|
+
//#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
2257
|
const kFocusManager = Symbol.for("better-auth:focus-manager");
|
|
2192
2258
|
var WindowFocusManager = class {
|
|
2193
2259
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -2217,7 +2283,7 @@ function getGlobalFocusManager() {
|
|
|
2217
2283
|
}
|
|
2218
2284
|
|
|
2219
2285
|
//#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.
|
|
2286
|
+
//#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
2287
|
const kOnlineManager = Symbol.for("better-auth:online-manager");
|
|
2222
2288
|
var WindowOnlineManager = class {
|
|
2223
2289
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -2250,7 +2316,7 @@ function getGlobalOnlineManager() {
|
|
|
2250
2316
|
}
|
|
2251
2317
|
|
|
2252
2318
|
//#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.
|
|
2319
|
+
//#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
2320
|
const isServer$1 = () => typeof window === "undefined";
|
|
2255
2321
|
function isAuthQueryStateEqual(a, b) {
|
|
2256
2322
|
return isJsonEqual(a.data, b.data) && a.error === b.error && a.isPending === b.isPending && a.isRefetching === b.isRefetching && a.refetch === b.refetch;
|
|
@@ -2372,7 +2438,7 @@ const useAuthQuery = (initializedAtom, path, $fetch, options) => {
|
|
|
2372
2438
|
};
|
|
2373
2439
|
|
|
2374
2440
|
//#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.
|
|
2441
|
+
//#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
2442
|
const now = () => Math.floor(Date.now() / 1e3);
|
|
2377
2443
|
/**
|
|
2378
2444
|
* Rate limit: don't refetch on focus if a session request was made within this many seconds
|
|
@@ -2500,7 +2566,7 @@ function createSessionRefreshManager(opts) {
|
|
|
2500
2566
|
}
|
|
2501
2567
|
|
|
2502
2568
|
//#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.
|
|
2569
|
+
//#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
2570
|
const redirectPlugin = {
|
|
2505
2571
|
id: "redirect",
|
|
2506
2572
|
name: "Redirect",
|
|
@@ -2516,7 +2582,7 @@ const redirectPlugin = {
|
|
|
2516
2582
|
};
|
|
2517
2583
|
|
|
2518
2584
|
//#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.
|
|
2585
|
+
//#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
2586
|
const isServer = () => typeof window === "undefined";
|
|
2521
2587
|
const SESSION_MOUNT_DEDUPE_INTERVAL = STORE_UNMOUNT_DELAY;
|
|
2522
2588
|
function hydrateSessionAtom(sessionAtom, session) {
|
|
@@ -2691,7 +2757,7 @@ function getSessionAtom($fetch, options) {
|
|
|
2691
2757
|
}
|
|
2692
2758
|
|
|
2693
2759
|
//#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.
|
|
2760
|
+
//#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
2761
|
const resolvePublicAuthUrl = (basePath) => {
|
|
2696
2762
|
if (typeof process === "undefined") return void 0;
|
|
2697
2763
|
const path = basePath ?? "/api/auth";
|
|
@@ -2797,13 +2863,13 @@ const getClientConfig = (options, loadEnv) => {
|
|
|
2797
2863
|
};
|
|
2798
2864
|
|
|
2799
2865
|
//#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.
|
|
2866
|
+
//#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
2867
|
function isAtom(value) {
|
|
2802
2868
|
return typeof value === "object" && value !== null && "get" in value && typeof value.get === "function" && "lc" in value && typeof value.lc === "number";
|
|
2803
2869
|
}
|
|
2804
2870
|
|
|
2805
2871
|
//#endregion
|
|
2806
|
-
//#region ../../node_modules/.pnpm/@better-auth+core@1.7.1_@better-auth+utils@0.4.2_@better-fetch+fetch@1.3.1_@
|
|
2872
|
+
//#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
2873
|
function capitalizeFirstLetter(str) {
|
|
2808
2874
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
2809
2875
|
}
|
|
@@ -2817,7 +2883,7 @@ function toKebabCase(input) {
|
|
|
2817
2883
|
}
|
|
2818
2884
|
|
|
2819
2885
|
//#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.
|
|
2886
|
+
//#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
2887
|
function getMethod(path, knownPathMethods, args) {
|
|
2822
2888
|
const method = knownPathMethods[path];
|
|
2823
2889
|
const { fetchOptions, query: _query, ...body } = args || {};
|
|
@@ -2893,7 +2959,7 @@ function createDynamicPathProxy(routes, client, knownPathMethods, atoms, atomLis
|
|
|
2893
2959
|
}
|
|
2894
2960
|
|
|
2895
2961
|
//#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.
|
|
2962
|
+
//#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
2963
|
function createAuthClient(options) {
|
|
2898
2964
|
const { pluginPathMethods, pluginsActions, pluginsAtoms, hydrateSession, $fetch, atomListeners, $store } = getClientConfig(options);
|
|
2899
2965
|
const resolvedHooks = {};
|
|
@@ -2908,7 +2974,7 @@ function createAuthClient(options) {
|
|
|
2908
2974
|
}
|
|
2909
2975
|
|
|
2910
2976
|
//#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.
|
|
2977
|
+
//#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
2978
|
const inferAdditionalFields = (schema) => {
|
|
2913
2979
|
return {
|
|
2914
2980
|
id: "additional-fields-client",
|
|
@@ -2918,7 +2984,7 @@ const inferAdditionalFields = (schema) => {
|
|
|
2918
2984
|
};
|
|
2919
2985
|
|
|
2920
2986
|
//#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.
|
|
2987
|
+
//#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
2988
|
const adminClient = (options) => {
|
|
2923
2989
|
const roles = {
|
|
2924
2990
|
admin: adminAc$1,
|
|
@@ -2953,7 +3019,7 @@ const adminClient = (options) => {
|
|
|
2953
3019
|
};
|
|
2954
3020
|
|
|
2955
3021
|
//#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.
|
|
3022
|
+
//#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
3023
|
const deviceAuthorizationClient = () => {
|
|
2958
3024
|
return {
|
|
2959
3025
|
id: "device-authorization",
|
|
@@ -2970,7 +3036,7 @@ const deviceAuthorizationClient = () => {
|
|
|
2970
3036
|
};
|
|
2971
3037
|
|
|
2972
3038
|
//#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.
|
|
3039
|
+
//#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
3040
|
/**
|
|
2975
3041
|
* Using the same `hasPermissionFn` function, but without the need for a `ctx` parameter or the `organizationId` parameter.
|
|
2976
3042
|
*/
|
|
@@ -3065,7 +3131,7 @@ const organizationClient = (options) => {
|
|
|
3065
3131
|
};
|
|
3066
3132
|
|
|
3067
3133
|
//#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-
|
|
3134
|
+
//#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
3135
|
const API_KEY_ERROR_CODES = defineErrorCodes({
|
|
3070
3136
|
INVALID_METADATA_TYPE: "metadata must be an object or undefined",
|
|
3071
3137
|
REFILL_AMOUNT_AND_INTERVAL_REQUIRED: "refillAmount is required when refillInterval is provided",
|
|
@@ -3102,7 +3168,7 @@ const API_KEY_ERROR_CODES = defineErrorCodes({
|
|
|
3102
3168
|
const PACKAGE_VERSION$1 = "1.7.1";
|
|
3103
3169
|
|
|
3104
3170
|
//#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-
|
|
3171
|
+
//#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
3172
|
const apiKeyClient = () => {
|
|
3107
3173
|
return {
|
|
3108
3174
|
id: "api-key",
|
|
@@ -3118,7 +3184,7 @@ const apiKeyClient = () => {
|
|
|
3118
3184
|
};
|
|
3119
3185
|
|
|
3120
3186
|
//#endregion
|
|
3121
|
-
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.
|
|
3187
|
+
//#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
3188
|
const PASSKEY_ERROR_CODES = defineErrorCodes({
|
|
3123
3189
|
CHALLENGE_NOT_FOUND: "Challenge not found",
|
|
3124
3190
|
YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY: "You are not allowed to register this passkey",
|
|
@@ -3608,7 +3674,7 @@ async function startAuthentication(options) {
|
|
|
3608
3674
|
}
|
|
3609
3675
|
|
|
3610
3676
|
//#endregion
|
|
3611
|
-
//#region ../../node_modules/.pnpm/@better-auth+passkey@1.7.
|
|
3677
|
+
//#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
3678
|
const getPasskeyActions = ($fetch, { $listPasskeys, $store }) => {
|
|
3613
3679
|
const signInPasskey = async (opts, options) => {
|
|
3614
3680
|
const response = await $fetch("/passkey/generate-authenticate-options", {
|
|
@@ -3820,7 +3886,8 @@ function u$1(n) {
|
|
|
3820
3886
|
passkeyClient(),
|
|
3821
3887
|
organizationClient({
|
|
3822
3888
|
ac: t$1,
|
|
3823
|
-
roles: n$1
|
|
3889
|
+
roles: n$1,
|
|
3890
|
+
teams: { enabled: !0 }
|
|
3824
3891
|
}),
|
|
3825
3892
|
inferAdditionalFields()
|
|
3826
3893
|
];
|
|
@@ -3919,7 +3986,7 @@ async function createCliApiClient(runtime) {
|
|
|
3919
3986
|
sessionToken,
|
|
3920
3987
|
orgSlug: runtime.org
|
|
3921
3988
|
});
|
|
3922
|
-
const client =
|
|
3989
|
+
const client = C$1({
|
|
3923
3990
|
baseUrl: runtime.apiUrl,
|
|
3924
3991
|
client: "cli",
|
|
3925
3992
|
getHeaders: () => {
|
|
@@ -4411,7 +4478,8 @@ const K = z.object({
|
|
|
4411
4478
|
changes: z.array(U),
|
|
4412
4479
|
remoteOnly: z.array(L).default([]),
|
|
4413
4480
|
forced: z.boolean().default(!1),
|
|
4414
|
-
adopted: z.boolean().default(!1)
|
|
4481
|
+
adopted: z.boolean().default(!1),
|
|
4482
|
+
approvalRequests: z.array(z.string()).default([])
|
|
4415
4483
|
});
|
|
4416
4484
|
|
|
4417
4485
|
//#endregion
|
|
@@ -4901,13 +4969,16 @@ function registerPushCommand(program) {
|
|
|
4901
4969
|
}).catch(mapApiError);
|
|
4902
4970
|
const appliedPlan = buildSyncPlan(applied.changes);
|
|
4903
4971
|
const types = await runTypegen(runtime);
|
|
4972
|
+
const approvalRequests = applied.approvalRequests ?? [];
|
|
4904
4973
|
printResult(runtime, {
|
|
4905
4974
|
plan: appliedPlan,
|
|
4906
4975
|
remoteOnly,
|
|
4907
4976
|
forced: applied.forced === true,
|
|
4977
|
+
approvalRequests,
|
|
4908
4978
|
types
|
|
4909
4979
|
}, [
|
|
4910
|
-
`Applied ${applied.changes.length} change(s)
|
|
4980
|
+
applied.changes.length > 0 ? `Applied ${applied.changes.length} change(s).` : null,
|
|
4981
|
+
approvalRequests.length > 0 ? `${approvalRequests.length} environment change(s) queued for approval.` : null,
|
|
4911
4982
|
applied.forced ? "Forced through version conflicts (audited)." : null,
|
|
4912
4983
|
`Wrote types for ${types.flagCount} flag(s) to ${types.written}`
|
|
4913
4984
|
].filter(Boolean).join("\n"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipdit/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
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.2",
|
|
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"
|