@shipdit/cli 0.2.0 → 0.2.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 +211 -110
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -367,9 +367,9 @@ 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);
|
|
@@ -377,10 +377,12 @@ const g$1 = (...t) => hc(...t);
|
|
|
377
377
|
const _$1 = (...t) => hc(...t);
|
|
378
378
|
const v$1 = (...t) => hc(...t);
|
|
379
379
|
const y$1 = (...t) => hc(...t);
|
|
380
|
-
|
|
380
|
+
const b$1 = (...t) => hc(...t);
|
|
381
|
+
const x$1 = (...t) => hc(...t);
|
|
382
|
+
function S$1(e) {
|
|
381
383
|
return `${e.replace(/\/+$/, ``)}/api/v1/rpc`;
|
|
382
384
|
}
|
|
383
|
-
function
|
|
385
|
+
function C$1(e) {
|
|
384
386
|
return {
|
|
385
387
|
...e.fetch ? { fetch: e.fetch } : {},
|
|
386
388
|
init: { credentials: e.client === `dashboard` ? `include` : `same-origin` },
|
|
@@ -390,122 +392,142 @@ function x$1(e) {
|
|
|
390
392
|
}
|
|
391
393
|
};
|
|
392
394
|
}
|
|
393
|
-
async function
|
|
395
|
+
async function w$1(e, t) {
|
|
394
396
|
return i$1(await e({ json: t }));
|
|
395
397
|
}
|
|
396
|
-
function
|
|
397
|
-
let t =
|
|
398
|
+
function T$1(e) {
|
|
399
|
+
let t = S$1(e.baseUrl), n = C$1(e), r = a$1(t, n), i = o$1(t, n), T = s$1(t, n), E = c$1(t, n), D = l$1(t, n), O = u$1(t, n), k = d$2(t, n), A = f$2(t, n), j = g$1(t, n), M = h$1(t, n), N = p$1(t, n), P = m$1(t, n), F = _$1(t, n), I = v$1(t, n), L = y$1(t, n), R = b$1(t, n), z = x$1(t, n);
|
|
398
400
|
return {
|
|
399
401
|
me: {
|
|
400
|
-
get: (e = {}) =>
|
|
401
|
-
feedback: (e) =>
|
|
402
|
+
get: (e = {}) => w$1(r.me.$post, e),
|
|
403
|
+
feedback: (e) => w$1(r.me.feedback.$post, e)
|
|
402
404
|
},
|
|
403
405
|
project: {
|
|
404
|
-
list: (e = {}) =>
|
|
405
|
-
create: (e) =>
|
|
406
|
-
update: (e) =>
|
|
407
|
-
archive: (e) =>
|
|
408
|
-
listTeams: (e) =>
|
|
409
|
-
setTeams: (e) =>
|
|
406
|
+
list: (e = {}) => w$1(i.project.list.$post, e),
|
|
407
|
+
create: (e) => w$1(i.project.create.$post, e),
|
|
408
|
+
update: (e) => w$1(i.project.update.$post, e),
|
|
409
|
+
archive: (e) => w$1(i.project.archive.$post, e),
|
|
410
|
+
listTeams: (e) => w$1(i.project.listTeams.$post, e),
|
|
411
|
+
setTeams: (e) => w$1(i.project.setTeams.$post, e)
|
|
410
412
|
},
|
|
411
|
-
team: { listMembers: (e) =>
|
|
413
|
+
team: { listMembers: (e) => w$1(R.team.listMembers.$post, e) },
|
|
412
414
|
environment: {
|
|
413
|
-
list: (e) =>
|
|
414
|
-
create: (e) =>
|
|
415
|
-
update: (e) =>
|
|
416
|
-
archive: (e) =>
|
|
415
|
+
list: (e) => w$1(T.environment.list.$post, e),
|
|
416
|
+
create: (e) => w$1(T.environment.create.$post, e),
|
|
417
|
+
update: (e) => w$1(T.environment.update.$post, e),
|
|
418
|
+
archive: (e) => w$1(T.environment.archive.$post, e)
|
|
417
419
|
},
|
|
418
420
|
flag: {
|
|
419
|
-
list: (e) =>
|
|
420
|
-
get: (e) =>
|
|
421
|
-
create: (e) =>
|
|
422
|
-
update: (e) =>
|
|
423
|
-
archive: (e) =>
|
|
424
|
-
updateEnvironment: (e) =>
|
|
425
|
-
toggleEnvironment: (e) =>
|
|
426
|
-
listEnvironmentStates: (e) =>
|
|
427
|
-
pull: (e) =>
|
|
428
|
-
diff: (e) =>
|
|
429
|
-
push: (e) =>
|
|
421
|
+
list: (e) => w$1(E.flag.list.$post, e),
|
|
422
|
+
get: (e) => w$1(E.flag.get.$post, e),
|
|
423
|
+
create: (e) => w$1(E.flag.create.$post, e),
|
|
424
|
+
update: (e) => w$1(E.flag.update.$post, e),
|
|
425
|
+
archive: (e) => w$1(E.flag.archive.$post, e),
|
|
426
|
+
updateEnvironment: (e) => w$1(E.flag.updateEnvironment.$post, e),
|
|
427
|
+
toggleEnvironment: (e) => w$1(E.flag.toggleEnvironment.$post, e),
|
|
428
|
+
listEnvironmentStates: (e) => w$1(E.flag.listEnvironmentStates.$post, e),
|
|
429
|
+
pull: (e) => w$1(E.flag.pull.$post, e),
|
|
430
|
+
diff: (e) => w$1(E.flag.diff.$post, e),
|
|
431
|
+
push: (e) => w$1(E.flag.push.$post, e)
|
|
430
432
|
},
|
|
431
433
|
apiKey: {
|
|
432
|
-
list: (e = {}) =>
|
|
433
|
-
create: (e) =>
|
|
434
|
-
revoke: (e) =>
|
|
434
|
+
list: (e = {}) => w$1(D.apiKey.list.$post, e),
|
|
435
|
+
create: (e) => w$1(D.apiKey.create.$post, e),
|
|
436
|
+
revoke: (e) => w$1(D.apiKey.revoke.$post, e)
|
|
435
437
|
},
|
|
436
438
|
sdkKey: {
|
|
437
|
-
list: (e = {}) =>
|
|
438
|
-
create: (e) =>
|
|
439
|
-
revoke: (e) =>
|
|
439
|
+
list: (e = {}) => w$1(A.sdkKey.list.$post, e),
|
|
440
|
+
create: (e) => w$1(A.sdkKey.create.$post, e),
|
|
441
|
+
revoke: (e) => w$1(A.sdkKey.revoke.$post, e)
|
|
442
|
+
},
|
|
443
|
+
serviceAccount: {
|
|
444
|
+
list: (e = {}) => w$1(j.serviceAccount.list.$post, e),
|
|
445
|
+
get: (e) => w$1(j.serviceAccount.get.$post, e),
|
|
446
|
+
create: (e) => w$1(j.serviceAccount.create.$post, e),
|
|
447
|
+
update: (e) => w$1(j.serviceAccount.update.$post, e),
|
|
448
|
+
disable: (e) => w$1(j.serviceAccount.disable.$post, e),
|
|
449
|
+
enable: (e) => w$1(j.serviceAccount.enable.$post, e),
|
|
450
|
+
delete: (e) => w$1(j.serviceAccount.delete.$post, e),
|
|
451
|
+
createToken: (e) => w$1(j.serviceAccount.createToken.$post, e),
|
|
452
|
+
listTokens: (e) => w$1(j.serviceAccount.listTokens.$post, e),
|
|
453
|
+
revokeToken: (e) => w$1(j.serviceAccount.revokeToken.$post, e)
|
|
440
454
|
},
|
|
441
455
|
segment: {
|
|
442
|
-
list: (e) =>
|
|
443
|
-
get: (e) =>
|
|
444
|
-
create: (e) =>
|
|
445
|
-
update: (e) =>
|
|
446
|
-
archive: (e) =>
|
|
447
|
-
listEnvironmentStates: (e) =>
|
|
448
|
-
updateEnvironment: (e) =>
|
|
456
|
+
list: (e) => w$1(M.segment.list.$post, e),
|
|
457
|
+
get: (e) => w$1(M.segment.get.$post, e),
|
|
458
|
+
create: (e) => w$1(M.segment.create.$post, e),
|
|
459
|
+
update: (e) => w$1(M.segment.update.$post, e),
|
|
460
|
+
archive: (e) => w$1(M.segment.archive.$post, e),
|
|
461
|
+
listEnvironmentStates: (e) => w$1(M.segment.listEnvironmentStates.$post, e),
|
|
462
|
+
updateEnvironment: (e) => w$1(M.segment.updateEnvironment.$post, e)
|
|
449
463
|
},
|
|
450
464
|
evaluatedEntity: {
|
|
451
|
-
list: (e) =>
|
|
452
|
-
get: (e) =>
|
|
453
|
-
delete: (e) =>
|
|
465
|
+
list: (e) => w$1(N.evaluatedEntity.list.$post, e),
|
|
466
|
+
get: (e) => w$1(N.evaluatedEntity.get.$post, e),
|
|
467
|
+
delete: (e) => w$1(N.evaluatedEntity.delete.$post, e)
|
|
454
468
|
},
|
|
455
469
|
evaluationFact: {
|
|
456
|
-
list: (e) =>
|
|
457
|
-
byRule: (e) =>
|
|
458
|
-
orgSummary: (e = {}) =>
|
|
459
|
-
projectSummary: (e) =>
|
|
460
|
-
simulate: (e) =>
|
|
470
|
+
list: (e) => w$1(P.evaluationFact.list.$post, e),
|
|
471
|
+
byRule: (e) => w$1(P.evaluationFact.byRule.$post, e),
|
|
472
|
+
orgSummary: (e = {}) => w$1(P.evaluationFact.orgSummary.$post, e),
|
|
473
|
+
projectSummary: (e) => w$1(P.evaluationFact.projectSummary.$post, e),
|
|
474
|
+
simulate: (e) => w$1(P.evaluationFact.simulate.$post, e)
|
|
461
475
|
},
|
|
462
|
-
snapshot: { publish: (e) =>
|
|
463
|
-
device: { authorize: (e) =>
|
|
476
|
+
snapshot: { publish: (e) => w$1(F.snapshot.publish.$post, e) },
|
|
477
|
+
device: { authorize: (e) => w$1(I.device.authorize.$post, e) },
|
|
464
478
|
billing: {
|
|
465
|
-
get: (e = {}) =>
|
|
466
|
-
attach: (e) =>
|
|
467
|
-
openPortal: (e) =>
|
|
479
|
+
get: (e = {}) => w$1(L.billing.get.$post, e),
|
|
480
|
+
attach: (e) => w$1(L.billing.attach.$post, e),
|
|
481
|
+
openPortal: (e) => w$1(L.billing.openPortal.$post, e)
|
|
468
482
|
},
|
|
469
483
|
approval: {
|
|
470
|
-
listPolicies: (e = {}) =>
|
|
471
|
-
createPolicy: (e) =>
|
|
472
|
-
updatePolicy: (e) =>
|
|
473
|
-
deletePolicy: (e) =>
|
|
474
|
-
listRequests: (e = {}) =>
|
|
475
|
-
get: (e) =>
|
|
476
|
-
approve: (e) =>
|
|
477
|
-
reject: (e) =>
|
|
478
|
-
cancel: (e) =>
|
|
484
|
+
listPolicies: (e = {}) => w$1(O.approval.listPolicies.$post, e),
|
|
485
|
+
createPolicy: (e) => w$1(O.approval.createPolicy.$post, e),
|
|
486
|
+
updatePolicy: (e) => w$1(O.approval.updatePolicy.$post, e),
|
|
487
|
+
deletePolicy: (e) => w$1(O.approval.deletePolicy.$post, e),
|
|
488
|
+
listRequests: (e = {}) => w$1(O.approval.listRequests.$post, e),
|
|
489
|
+
get: (e) => w$1(O.approval.get.$post, e),
|
|
490
|
+
approve: (e) => w$1(O.approval.approve.$post, e),
|
|
491
|
+
reject: (e) => w$1(O.approval.reject.$post, e),
|
|
492
|
+
cancel: (e) => w$1(O.approval.cancel.$post, e)
|
|
479
493
|
},
|
|
480
494
|
audit: {
|
|
481
|
-
list: (e = {}) =>
|
|
482
|
-
get: (e) =>
|
|
483
|
-
actions: (e = {}) =>
|
|
484
|
-
export: (e) =>
|
|
485
|
-
getSettings: (e = {}) =>
|
|
486
|
-
updateSettings: (e) =>
|
|
487
|
-
listDestinations: (e = {}) =>
|
|
488
|
-
createDestination: (e) =>
|
|
489
|
-
updateDestination: (e) =>
|
|
490
|
-
deleteDestination: (e) =>
|
|
491
|
-
testDestination: (e) =>
|
|
495
|
+
list: (e = {}) => w$1(k.audit.list.$post, e),
|
|
496
|
+
get: (e) => w$1(k.audit.get.$post, e),
|
|
497
|
+
actions: (e = {}) => w$1(k.audit.actions.$post, e),
|
|
498
|
+
export: (e) => w$1(k.audit.export.$post, e),
|
|
499
|
+
getSettings: (e = {}) => w$1(k.audit.getSettings.$post, e),
|
|
500
|
+
updateSettings: (e) => w$1(k.audit.updateSettings.$post, e),
|
|
501
|
+
listDestinations: (e = {}) => w$1(k.audit.listDestinations.$post, e),
|
|
502
|
+
createDestination: (e) => w$1(k.audit.createDestination.$post, e),
|
|
503
|
+
updateDestination: (e) => w$1(k.audit.updateDestination.$post, e),
|
|
504
|
+
deleteDestination: (e) => w$1(k.audit.deleteDestination.$post, e),
|
|
505
|
+
testDestination: (e) => w$1(k.audit.testDestination.$post, e)
|
|
506
|
+
},
|
|
507
|
+
sso: {
|
|
508
|
+
getSettings: (e = {}) => w$1(z.sso.getSettings.$post, e),
|
|
509
|
+
listProviders: (e = {}) => w$1(z.sso.listProviders.$post, e),
|
|
510
|
+
updateAllowedDomains: (e) => w$1(z.sso.updateAllowedDomains.$post, e),
|
|
511
|
+
setEnforcement: (e) => w$1(z.sso.setEnforcement.$post, e)
|
|
492
512
|
},
|
|
493
513
|
raw: {
|
|
494
514
|
me: r,
|
|
495
515
|
project: i,
|
|
496
|
-
environment:
|
|
497
|
-
flag:
|
|
498
|
-
apiKey:
|
|
499
|
-
approval:
|
|
500
|
-
audit:
|
|
501
|
-
sdkKey:
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
516
|
+
environment: T,
|
|
517
|
+
flag: E,
|
|
518
|
+
apiKey: D,
|
|
519
|
+
approval: O,
|
|
520
|
+
audit: k,
|
|
521
|
+
sdkKey: A,
|
|
522
|
+
serviceAccount: j,
|
|
523
|
+
segment: M,
|
|
524
|
+
evaluatedEntity: N,
|
|
525
|
+
evaluationFact: P,
|
|
526
|
+
snapshot: F,
|
|
527
|
+
device: I,
|
|
528
|
+
billing: L,
|
|
529
|
+
team: R,
|
|
530
|
+
sso: z
|
|
509
531
|
}
|
|
510
532
|
};
|
|
511
533
|
}
|
|
@@ -748,7 +770,7 @@ var version = "1.7.1";
|
|
|
748
770
|
|
|
749
771
|
//#endregion
|
|
750
772
|
//#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
|
|
751
|
-
const PACKAGE_VERSION$
|
|
773
|
+
const PACKAGE_VERSION$3 = version;
|
|
752
774
|
|
|
753
775
|
//#endregion
|
|
754
776
|
//#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
|
|
@@ -787,7 +809,7 @@ function isSafeUrlScheme(value) {
|
|
|
787
809
|
const twoFactorClient = (options) => {
|
|
788
810
|
return {
|
|
789
811
|
id: "two-factor",
|
|
790
|
-
version: PACKAGE_VERSION$
|
|
812
|
+
version: PACKAGE_VERSION$3,
|
|
791
813
|
$InferServerPlugin: {},
|
|
792
814
|
atomListeners: [{
|
|
793
815
|
matcher: (path) => path.startsWith("/two-factor/"),
|
|
@@ -1847,7 +1869,24 @@ const t$1 = createAccessControl({
|
|
|
1847
1869
|
`revoke`
|
|
1848
1870
|
],
|
|
1849
1871
|
evaluated_entity: [`read`, `delete`],
|
|
1850
|
-
billing: [`read`, `manage`]
|
|
1872
|
+
billing: [`read`, `manage`],
|
|
1873
|
+
sso: [
|
|
1874
|
+
`read`,
|
|
1875
|
+
`manage`,
|
|
1876
|
+
`enforce`
|
|
1877
|
+
],
|
|
1878
|
+
service_account: [
|
|
1879
|
+
`create`,
|
|
1880
|
+
`read`,
|
|
1881
|
+
`update`,
|
|
1882
|
+
`disable`,
|
|
1883
|
+
`delete`
|
|
1884
|
+
],
|
|
1885
|
+
service_account_token: [
|
|
1886
|
+
`create`,
|
|
1887
|
+
`read`,
|
|
1888
|
+
`revoke`
|
|
1889
|
+
]
|
|
1851
1890
|
});
|
|
1852
1891
|
const n$1 = {
|
|
1853
1892
|
viewer: t$1.newRole({
|
|
@@ -1930,7 +1969,20 @@ const n$1 = {
|
|
|
1930
1969
|
`revoke`
|
|
1931
1970
|
],
|
|
1932
1971
|
evaluated_entity: [`read`, `delete`],
|
|
1933
|
-
billing: [`read`, `manage`]
|
|
1972
|
+
billing: [`read`, `manage`],
|
|
1973
|
+
sso: [`read`, `manage`],
|
|
1974
|
+
service_account: [
|
|
1975
|
+
`create`,
|
|
1976
|
+
`read`,
|
|
1977
|
+
`update`,
|
|
1978
|
+
`disable`,
|
|
1979
|
+
`delete`
|
|
1980
|
+
],
|
|
1981
|
+
service_account_token: [
|
|
1982
|
+
`create`,
|
|
1983
|
+
`read`,
|
|
1984
|
+
`revoke`
|
|
1985
|
+
]
|
|
1934
1986
|
}),
|
|
1935
1987
|
owner: t$1.newRole({
|
|
1936
1988
|
organization: [`update`, `delete`],
|
|
@@ -1983,7 +2035,24 @@ const n$1 = {
|
|
|
1983
2035
|
`revoke`
|
|
1984
2036
|
],
|
|
1985
2037
|
evaluated_entity: [`read`, `delete`],
|
|
1986
|
-
billing: [`read`, `manage`]
|
|
2038
|
+
billing: [`read`, `manage`],
|
|
2039
|
+
sso: [
|
|
2040
|
+
`read`,
|
|
2041
|
+
`manage`,
|
|
2042
|
+
`enforce`
|
|
2043
|
+
],
|
|
2044
|
+
service_account: [
|
|
2045
|
+
`create`,
|
|
2046
|
+
`read`,
|
|
2047
|
+
`update`,
|
|
2048
|
+
`disable`,
|
|
2049
|
+
`delete`
|
|
2050
|
+
],
|
|
2051
|
+
service_account_token: [
|
|
2052
|
+
`create`,
|
|
2053
|
+
`read`,
|
|
2054
|
+
`revoke`
|
|
2055
|
+
]
|
|
1987
2056
|
})
|
|
1988
2057
|
};
|
|
1989
2058
|
|
|
@@ -2978,7 +3047,7 @@ function createAuthClient(options) {
|
|
|
2978
3047
|
const inferAdditionalFields = (schema) => {
|
|
2979
3048
|
return {
|
|
2980
3049
|
id: "additional-fields-client",
|
|
2981
|
-
version: PACKAGE_VERSION$
|
|
3050
|
+
version: PACKAGE_VERSION$3,
|
|
2982
3051
|
$InferServerPlugin: {}
|
|
2983
3052
|
};
|
|
2984
3053
|
};
|
|
@@ -2993,7 +3062,7 @@ const adminClient = (options) => {
|
|
|
2993
3062
|
};
|
|
2994
3063
|
return {
|
|
2995
3064
|
id: "admin-client",
|
|
2996
|
-
version: PACKAGE_VERSION$
|
|
3065
|
+
version: PACKAGE_VERSION$3,
|
|
2997
3066
|
$InferServerPlugin: {},
|
|
2998
3067
|
getActions: () => ({ admin: { checkRolePermission: (data) => {
|
|
2999
3068
|
return hasPermission({
|
|
@@ -3023,7 +3092,7 @@ const adminClient = (options) => {
|
|
|
3023
3092
|
const deviceAuthorizationClient = () => {
|
|
3024
3093
|
return {
|
|
3025
3094
|
id: "device-authorization",
|
|
3026
|
-
version: PACKAGE_VERSION$
|
|
3095
|
+
version: PACKAGE_VERSION$3,
|
|
3027
3096
|
$InferServerPlugin: {},
|
|
3028
3097
|
pathMethods: {
|
|
3029
3098
|
"/device/code": "POST",
|
|
@@ -3056,7 +3125,7 @@ const organizationClient = (options) => {
|
|
|
3056
3125
|
};
|
|
3057
3126
|
return {
|
|
3058
3127
|
id: "organization",
|
|
3059
|
-
version: PACKAGE_VERSION$
|
|
3128
|
+
version: PACKAGE_VERSION$3,
|
|
3060
3129
|
$InferServerPlugin: {},
|
|
3061
3130
|
getActions: ($fetch, _$store, co) => ({
|
|
3062
3131
|
$Infer: {
|
|
@@ -3165,14 +3234,14 @@ const API_KEY_ERROR_CODES = defineErrorCodes({
|
|
|
3165
3234
|
NO_DEFAULT_API_KEY_CONFIGURATION_FOUND: "No default api-key configuration found.",
|
|
3166
3235
|
ORGANIZATION_PLUGIN_REQUIRED: "Organization plugin is required for organization-owned API keys. Please install and configure the organization plugin."
|
|
3167
3236
|
});
|
|
3168
|
-
const PACKAGE_VERSION$
|
|
3237
|
+
const PACKAGE_VERSION$2 = "1.7.1";
|
|
3169
3238
|
|
|
3170
3239
|
//#endregion
|
|
3171
3240
|
//#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
|
|
3172
3241
|
const apiKeyClient = () => {
|
|
3173
3242
|
return {
|
|
3174
3243
|
id: "api-key",
|
|
3175
|
-
version: PACKAGE_VERSION$
|
|
3244
|
+
version: PACKAGE_VERSION$2,
|
|
3176
3245
|
$InferServerPlugin: {},
|
|
3177
3246
|
pathMethods: {
|
|
3178
3247
|
"/api-key/create": "POST",
|
|
@@ -3202,7 +3271,7 @@ const PASSKEY_ERROR_CODES = defineErrorCodes({
|
|
|
3202
3271
|
RESOLVE_USER_REQUIRED: "Passkey registration requires either an authenticated session or a resolveUser callback when requireSession is false",
|
|
3203
3272
|
RESOLVED_USER_INVALID: "Resolved user is invalid"
|
|
3204
3273
|
});
|
|
3205
|
-
const PACKAGE_VERSION = "1.7.1";
|
|
3274
|
+
const PACKAGE_VERSION$1 = "1.7.1";
|
|
3206
3275
|
|
|
3207
3276
|
//#endregion
|
|
3208
3277
|
//#region ../../node_modules/.pnpm/@simplewebauthn+browser@13.3.0/node_modules/@simplewebauthn/browser/esm/helpers/bufferToBase64URLString.js
|
|
@@ -3846,7 +3915,7 @@ const passkeyClient = () => {
|
|
|
3846
3915
|
const $listPasskeys = /* @__PURE__ */ atom();
|
|
3847
3916
|
return {
|
|
3848
3917
|
id: "passkey",
|
|
3849
|
-
version: PACKAGE_VERSION,
|
|
3918
|
+
version: PACKAGE_VERSION$1,
|
|
3850
3919
|
$InferServerPlugin: {},
|
|
3851
3920
|
getActions: ($fetch, $store) => getPasskeyActions($fetch, {
|
|
3852
3921
|
$listPasskeys,
|
|
@@ -3875,15 +3944,46 @@ const passkeyClient = () => {
|
|
|
3875
3944
|
};
|
|
3876
3945
|
};
|
|
3877
3946
|
|
|
3947
|
+
//#endregion
|
|
3948
|
+
//#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
|
|
3949
|
+
const PACKAGE_VERSION = "1.7.1";
|
|
3950
|
+
|
|
3951
|
+
//#endregion
|
|
3952
|
+
//#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
|
|
3953
|
+
const ssoClient = (options) => {
|
|
3954
|
+
return {
|
|
3955
|
+
id: "sso-client",
|
|
3956
|
+
version: PACKAGE_VERSION,
|
|
3957
|
+
$InferServerPlugin: {},
|
|
3958
|
+
pathMethods: {
|
|
3959
|
+
"/sso/providers": "GET",
|
|
3960
|
+
"/sso/get-provider": "GET"
|
|
3961
|
+
}
|
|
3962
|
+
};
|
|
3963
|
+
};
|
|
3964
|
+
|
|
3878
3965
|
//#endregion
|
|
3879
3966
|
//#region ../auth/dist/client.mjs
|
|
3880
|
-
function
|
|
3967
|
+
function d$1(n) {
|
|
3881
3968
|
return [
|
|
3882
3969
|
apiKeyClient(),
|
|
3883
3970
|
adminClient(),
|
|
3884
3971
|
deviceAuthorizationClient(),
|
|
3885
3972
|
twoFactorClient({ twoFactorPage: n?.twoFactorPage ?? `/auth/two-factor` }),
|
|
3886
3973
|
passkeyClient(),
|
|
3974
|
+
ssoClient({
|
|
3975
|
+
domainVerification: { enabled: !0 },
|
|
3976
|
+
schema: { ssoProvider: { additionalFields: {
|
|
3977
|
+
displayName: {
|
|
3978
|
+
type: `string`,
|
|
3979
|
+
required: !1
|
|
3980
|
+
},
|
|
3981
|
+
enabled: {
|
|
3982
|
+
type: `boolean`,
|
|
3983
|
+
required: !1
|
|
3984
|
+
}
|
|
3985
|
+
} } }
|
|
3986
|
+
}),
|
|
3887
3987
|
organizationClient({
|
|
3888
3988
|
ac: t$1,
|
|
3889
3989
|
roles: n$1,
|
|
@@ -3892,11 +3992,11 @@ function u$1(n) {
|
|
|
3892
3992
|
inferAdditionalFields()
|
|
3893
3993
|
];
|
|
3894
3994
|
}
|
|
3895
|
-
const
|
|
3995
|
+
const f$1 = (e) => createAuthClient({
|
|
3896
3996
|
baseURL: e.baseURL,
|
|
3897
3997
|
basePath: e.basePath,
|
|
3898
3998
|
fetchOptions: e.fetchOptions,
|
|
3899
|
-
plugins:
|
|
3999
|
+
plugins: d$1(e)
|
|
3900
4000
|
});
|
|
3901
4001
|
|
|
3902
4002
|
//#endregion
|
|
@@ -3922,7 +4022,7 @@ function exitCodeForError(error) {
|
|
|
3922
4022
|
//#region src/lib/client.ts
|
|
3923
4023
|
const AUTH_BASE_PATH = "/api/v1/auth";
|
|
3924
4024
|
function createCliAuthClient(apiUrl) {
|
|
3925
|
-
return
|
|
4025
|
+
return f$1({
|
|
3926
4026
|
baseURL: apiUrl,
|
|
3927
4027
|
basePath: AUTH_BASE_PATH
|
|
3928
4028
|
});
|
|
@@ -3986,7 +4086,7 @@ async function createCliApiClient(runtime) {
|
|
|
3986
4086
|
sessionToken,
|
|
3987
4087
|
orgSlug: runtime.org
|
|
3988
4088
|
});
|
|
3989
|
-
const client =
|
|
4089
|
+
const client = T$1({
|
|
3990
4090
|
baseUrl: runtime.apiUrl,
|
|
3991
4091
|
client: "cli",
|
|
3992
4092
|
getHeaders: () => {
|
|
@@ -4023,7 +4123,7 @@ async function resolveProjectId(client, runtime) {
|
|
|
4023
4123
|
if (!match) throw new CliError("not_found", `Project not found: ${runtime.project}`);
|
|
4024
4124
|
projectId = match.id;
|
|
4025
4125
|
}
|
|
4026
|
-
if (!projectId) throw new CliError("validation_error", "Project is required. Pass --project, set SHIPD_PROJECT, or use
|
|
4126
|
+
if (!projectId) throw new CliError("validation_error", "Project is required. Pass --project, set SHIPD_PROJECT, or use a management key / service-account token bound to a project.");
|
|
4027
4127
|
return {
|
|
4028
4128
|
organizationId: me.organization.id,
|
|
4029
4129
|
projectId
|
|
@@ -4037,7 +4137,7 @@ async function resolveIds(client, runtime) {
|
|
|
4037
4137
|
if (!match) throw new CliError("not_found", `Environment not found: ${runtime.env}`);
|
|
4038
4138
|
environmentId = match.id;
|
|
4039
4139
|
}
|
|
4040
|
-
if (!environmentId) throw new CliError("validation_error", "Environment is required. Pass --env, set SHIPD_ENV, or use
|
|
4140
|
+
if (!environmentId) throw new CliError("validation_error", "Environment is required. Pass --env, set SHIPD_ENV, or use a management key / service-account token bound to an environment.");
|
|
4041
4141
|
return {
|
|
4042
4142
|
organizationId,
|
|
4043
4143
|
projectId,
|
|
@@ -4163,6 +4263,7 @@ function registerAuthCommands(program) {
|
|
|
4163
4263
|
return;
|
|
4164
4264
|
}
|
|
4165
4265
|
if (me.auth.type === "user") console.log(`User: ${me.auth.name} <${me.auth.email}>`);
|
|
4266
|
+
else if (me.auth.type === "service_account") console.log(`Service account: ${me.auth.serviceAccountId} (token ${me.auth.tokenId})`);
|
|
4166
4267
|
else console.log(`API key: ${me.auth.keyId}`);
|
|
4167
4268
|
console.log(`Organization: ${me.organization.slug} (${me.organization.id})`);
|
|
4168
4269
|
if (me.project) console.log(`Project: ${me.project.slug} (${me.project.id})`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipdit/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.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.2.
|
|
22
|
+
"shipdit": "0.2.3",
|
|
23
23
|
"zod": "^4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|