terse-types 0.6.4 → 0.8.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.
@@ -1,4 +1,5 @@
1
1
  export declare const ACTOR_ENTRY_FILE = "src/actor.ts";
2
2
  export declare const LEGACY_ACTOR_ENTRY_FILE = "src/actors.ts";
3
+ export declare const PYTHON_ACTOR_ENTRY_FILES: readonly ["src/actor.py", "src/actors.py", "actor.py", "actors.py"];
3
4
  /** Share discovery between the local CLI and uploaded deployment archives. */
4
5
  export declare function findActorEntryFile(hasFile: (file: string) => boolean): string | undefined;
@@ -1,6 +1,7 @@
1
1
  export const ACTOR_ENTRY_FILE = "src/actor.ts";
2
2
  export const LEGACY_ACTOR_ENTRY_FILE = "src/actors.ts";
3
+ export const PYTHON_ACTOR_ENTRY_FILES = ["src/actor.py", "src/actors.py", "actor.py", "actors.py"];
3
4
  /** Share discovery between the local CLI and uploaded deployment archives. */
4
5
  export function findActorEntryFile(hasFile) {
5
- return [ACTOR_ENTRY_FILE, LEGACY_ACTOR_ENTRY_FILE].find(hasFile);
6
+ return [ACTOR_ENTRY_FILE, LEGACY_ACTOR_ENTRY_FILE, ...PYTHON_ACTOR_ENTRY_FILES].find(hasFile);
6
7
  }
@@ -196,7 +196,7 @@ export declare const ApiRoutes: {
196
196
  CREATE_PROJECT: string;
197
197
  ACTOR_CONTRACT: string;
198
198
  ACTOR_CONNECT: string;
199
- ACTOR_INVOKE: string;
199
+ ACTOR_ACCESS: string;
200
200
  DEPLOY: string;
201
201
  IDENTIFY: string;
202
202
  DEVICE_TOKEN_EXCHANGE: string;
@@ -196,7 +196,7 @@
196
196
  "CREATE_PROJECT": "/sdk/projects",
197
197
  "ACTOR_CONTRACT": "/sdk/projects/:projectId/actors/contract",
198
198
  "ACTOR_CONNECT": "/:projectId/actors",
199
- "ACTOR_INVOKE": "/:projectId/actors/invoke",
199
+ "ACTOR_ACCESS": "/:projectId/actors/access",
200
200
  "DEPLOY": "/sdk/deploy",
201
201
  "IDENTIFY": "/sdk/auth/identify",
202
202
  "DEVICE_TOKEN_EXCHANGE": "/sdk/auth/device-token-exchange",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.6.4",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",