@somewhere-cloud/cli 0.38.154 → 0.38.156

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.
@@ -17,6 +17,14 @@ export declare class UserSession {
17
17
  private refresh;
18
18
  private send;
19
19
  post(path: string, body: unknown): Promise<Response>;
20
+ /** Prove a refusal against a table or a METHOD /path endpoint. Use an allowed session
21
+ * as the positive control for hidden rows or a 404. */
22
+ expectRefused(table: string, request: DataRequest, options?: {
23
+ allowed?: UserSession;
24
+ }): Promise<void>;
25
+ expectRefused(endpoint: `${string} /${string}`, body?: unknown, options?: {
26
+ allowed?: UserSession;
27
+ }): Promise<void>;
20
28
  /** Use this session's cookies and the linked app's declared data contract. */
21
29
  data(table: string, request: DataRequest): Promise<Response>;
22
30
  data(table: string, contract: string, request: DataRequest): Promise<Response>;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@somewhere-cloud/cli",
3
- "version": "0.38.154",
3
+ "version": "0.38.156",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@somewhere-cloud/cli",
9
- "version": "0.38.154",
9
+ "version": "0.38.156",
10
10
  "license": "MIT",
11
11
  "bin": {
12
12
  "somewhere": "bin/somewhere.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@somewhere-cloud/cli",
3
- "version": "0.38.154",
3
+ "version": "0.38.156",
4
4
  "description": "CLI for somewhere.cloud — auth, projects, deploy, pull, promote, db, logs, env, MCP bridge.",
5
5
  "keywords": [
6
6
  "somewhere",
@@ -67,5 +67,5 @@
67
67
  },
68
68
  "bundleDependencies": [],
69
69
  "bundledDependencies": [],
70
- "gitHead": "dd332ef7dca4adf2cce29311573c9904b72e74e5"
70
+ "gitHead": "3975684f90e52f3d0c685e3de068f39756c5744b"
71
71
  }