@meetploy/types 1.18.0 → 1.19.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/db.d.ts CHANGED
@@ -2,9 +2,9 @@ export interface DBResultMeta {
2
2
  duration: number;
3
3
  rows_read: number;
4
4
  rows_written: number;
5
- changes?: number;
6
- last_row_id?: number | bigint;
7
- changed_db?: boolean;
5
+ changes: number;
6
+ last_row_id: number | bigint;
7
+ changed_db: boolean;
8
8
  size_after?: number;
9
9
  served_by?: string;
10
10
  }
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export type { CacheBinding, CacheSetOptions } from "./cache.js";
7
7
  export type { KVNamespace, KVNamespaceGetOptions, KVNamespaceGetMethodOptions, KVNamespaceGetWithMetadataResult, KVNamespaceListKey, KVNamespaceListOptions, KVNamespaceListResult, KVNamespacePutOptions, StateBinding, StateUpdateDoc, } from "./state.js";
8
8
  export type { FileStorageBinding, FileStorageObject, FileStorageKey, FileStorageListResult, FileStoragePutOptions, FileStorageListOptions, } from "./fs.js";
9
9
  export type { SandboxBinding, SandboxClient, SandboxSession, SandboxSessionOptions, SandboxExecResult, SandboxExecOptions, SandboxFileEntry, SandboxGitCheckoutOptions, SandboxProcessInfo, } from "./sandbox.js";
10
+ export type { ServiceBinding } from "./service.js";
10
11
  export type { ScheduledEvent, ScheduledHandler } from "./scheduled.js";
11
12
  export type { PloyAuth, PloyUser } from "./auth.js";
12
13
  export type { Ai, AiGateway, AiGatewayOptions, AiGatewayRetries, AiRunOptions, } from "./ai.js";
@@ -0,0 +1,3 @@
1
+ export interface ServiceBinding {
2
+ fetch: (input: Request | URL | string, init?: RequestInit) => Promise<Response>;
3
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":""}
package/globals.d.ts CHANGED
@@ -42,6 +42,7 @@ declare global {
42
42
  type FileStorageBinding = import("@meetploy/types").FileStorageBinding;
43
43
  type TimerBinding = import("@meetploy/types").TimerBinding;
44
44
  type SandboxBinding = import("@meetploy/types").SandboxBinding;
45
+ type ServiceBinding = import("@meetploy/types").ServiceBinding;
45
46
  type SandboxClient = import("@meetploy/types").SandboxClient;
46
47
  type SandboxSession = import("@meetploy/types").SandboxSession;
47
48
  type PloyAuth = import("@meetploy/types").PloyAuth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetploy/types",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",