casualos 3.3.8-alpha.10219756290 → 3.3.9-alpha.10457223672

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.
Files changed (2) hide show
  1. package/dist/cli.js +36 -33
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -94691,7 +94691,7 @@ var trace = TraceAPI.getInstance();
94691
94691
  function hashLowEntropyPasswordWithSalt2(password, salt) {
94692
94692
  const tracer = trace.getTracer(
94693
94693
  "InstrumentedHashHelpers",
94694
- false ? void 0 : "v3.3.8-alpha.10219756290"
94694
+ false ? void 0 : "v3.3.9-alpha.10457223672"
94695
94695
  );
94696
94696
  return tracer.startActiveSpan(
94697
94697
  "hashLowEntropyPasswordWithSalt",
@@ -94709,7 +94709,7 @@ function hashLowEntropyPasswordWithSalt2(password, salt) {
94709
94709
  function hashHighEntropyPasswordWithSalt2(password, salt) {
94710
94710
  const tracer = trace.getTracer(
94711
94711
  "InstrumentedHashHelpers",
94712
- false ? void 0 : "v3.3.8-alpha.10219756290"
94712
+ false ? void 0 : "v3.3.9-alpha.10457223672"
94713
94713
  );
94714
94714
  return tracer.startActiveSpan(
94715
94715
  "hashHighEntropyPasswordWithSalt",
@@ -94727,7 +94727,7 @@ function hashHighEntropyPasswordWithSalt2(password, salt) {
94727
94727
  function verifyPasswordAgainstHashes2(password, salt, hashes) {
94728
94728
  const tracer = trace.getTracer(
94729
94729
  "InstrumentedHashHelpers",
94730
- false ? void 0 : "v3.3.8-alpha.10219756290"
94730
+ false ? void 0 : "v3.3.9-alpha.10457223672"
94731
94731
  );
94732
94732
  return tracer.startActiveSpan(
94733
94733
  "verifyPasswordAgainstHashes",
@@ -101321,7 +101321,7 @@ var import_semantic_conventions = __toESM(require_src3());
101321
101321
  function traced(tracerName, options = {}, metricOptions = {}) {
101322
101322
  const tracer = trace.getTracer(
101323
101323
  tracerName,
101324
- false ? void 0 : "v3.3.8-alpha.10219756290"
101324
+ false ? void 0 : "v3.3.9-alpha.10457223672"
101325
101325
  );
101326
101326
  return function(target, propertyKey, descriptor) {
101327
101327
  const originalMethod = descriptor.value;
@@ -101399,7 +101399,7 @@ function getHistogram(meter) {
101399
101399
  }
101400
101400
  return metrics.getMeter(
101401
101401
  meter.meter,
101402
- false ? void 0 : "v3.3.8-alpha.10219756290"
101402
+ false ? void 0 : "v3.3.9-alpha.10457223672"
101403
101403
  ).createHistogram(meter.name, meter.options);
101404
101404
  }
101405
101405
  function getCounter(meter) {
@@ -101408,7 +101408,7 @@ function getCounter(meter) {
101408
101408
  }
101409
101409
  return metrics.getMeter(
101410
101410
  meter.meter,
101411
- false ? void 0 : "v3.3.8-alpha.10219756290"
101411
+ false ? void 0 : "v3.3.9-alpha.10457223672"
101412
101412
  ).createCounter(meter.name, meter.options);
101413
101413
  }
101414
101414
  function traceHttpResponse(options = {}) {
@@ -109065,30 +109065,33 @@ var PolicyController = class {
109065
109065
  },
109066
109066
  explanation: "User is an admin in the record's studio."
109067
109067
  };
109068
- } else if (member.role === "member" && isAllowedStudioMemberResource(
109069
- request.resourceKind,
109070
- request.action
109071
- )) {
109072
- return {
109073
- success: true,
109074
- recordName,
109075
- permission: {
109076
- id: null,
109068
+ } else if (member.role === "member") {
109069
+ let isAssigningDefaultMarker = request.resourceKind === "marker" && request.resourceId === PUBLIC_READ_MARKER || request.resourceId === PRIVATE_MARKER;
109070
+ if (isAssigningDefaultMarker || isAllowedStudioMemberResource(
109071
+ request.resourceKind,
109072
+ request.action
109073
+ )) {
109074
+ return {
109075
+ success: true,
109077
109076
  recordName,
109078
- // Members in a studio are treated as if they are granted direct access to most resources
109079
- // in the record.
109080
- userId: subjectId,
109081
- subjectType: "user",
109082
- subjectId,
109083
- // Not all actions or resources are granted though
109084
- resourceKind: request.resourceKind,
109085
- action: request.action,
109086
- marker: markers[0],
109087
- options: {},
109088
- expireTimeMs: null
109089
- },
109090
- explanation: "User is a member in the record's studio."
109091
- };
109077
+ permission: {
109078
+ id: null,
109079
+ recordName,
109080
+ // Members in a studio are treated as if they are granted direct access to most resources
109081
+ // in the record.
109082
+ userId: subjectId,
109083
+ subjectType: "user",
109084
+ subjectId,
109085
+ // Not all actions or resources are granted though
109086
+ resourceKind: request.resourceKind,
109087
+ action: request.action,
109088
+ marker: markers[0],
109089
+ options: {},
109090
+ expireTimeMs: null
109091
+ },
109092
+ explanation: "User is a member in the record's studio."
109093
+ };
109094
+ }
109092
109095
  }
109093
109096
  }
109094
109097
  }
@@ -111900,7 +111903,7 @@ var RecordsServer = class {
111900
111903
  this._loomController = loomController;
111901
111904
  this._tracer = trace.getTracer(
111902
111905
  "RecordsServer",
111903
- false ? void 0 : "v3.3.8-alpha.10219756290"
111906
+ false ? void 0 : "v3.3.9-alpha.10457223672"
111904
111907
  );
111905
111908
  this._procedures = this._createProcedures();
111906
111909
  this._setupRoutes();
@@ -113782,8 +113785,8 @@ var RecordsServer = class {
113782
113785
  return {
113783
113786
  success: true,
113784
113787
  ...metadata,
113785
- version: true ? "v3.3.8-alpha.10219756290" : void 0,
113786
- versionHash: true ? "48e3565793af23f13e1446478b29e6e0f00af843" : void 0
113788
+ version: true ? "v3.3.9-alpha.10457223672" : void 0,
113789
+ versionHash: true ? "6bcd0adf3291b87222cd4022df2e487b62394c64" : void 0
113787
113790
  };
113788
113791
  })
113789
113792
  };
@@ -128415,7 +128418,7 @@ var config = new Conf({
128415
128418
  projectName: "casualos-cli"
128416
128419
  });
128417
128420
  var program2 = new Command();
128418
- program2.name("casualos").description("A CLI for CasualOS").version("v3.3.8-alpha.10219756290").option(
128421
+ program2.name("casualos").description("A CLI for CasualOS").version("v3.3.9-alpha.10457223672").option(
128419
128422
  "-e, --endpoint <url>",
128420
128423
  "The endpoint to use for queries. Can be used to override the current endpoint."
128421
128424
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "casualos",
3
- "version": "3.3.8-alpha.10219756290",
3
+ "version": "3.3.9-alpha.10457223672",
4
4
  "description": "Command line interface for CasualOS.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "index.d.ts",
@@ -35,8 +35,8 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@casual-simulation/aux-common": "^3.3.8-alpha.10219756290",
39
- "@casual-simulation/aux-records": "^3.3.8-alpha.10219756290",
38
+ "@casual-simulation/aux-common": "^3.3.8",
39
+ "@casual-simulation/aux-records": "^3.3.9-alpha.10457223672",
40
40
  "axios": "1.6.2",
41
41
  "commander": "12.0.0",
42
42
  "conf": "12.0.0",
@@ -54,5 +54,5 @@
54
54
  "**/*.d.ts",
55
55
  "**/*.def"
56
56
  ],
57
- "gitHead": "48e3565793af23f13e1446478b29e6e0f00af843"
57
+ "gitHead": "6bcd0adf3291b87222cd4022df2e487b62394c64"
58
58
  }