@townco/apiclient 0.0.46 → 0.0.48
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/server.d.ts +169 -1
- package/package.json +2 -1
package/dist/server.d.ts
CHANGED
|
@@ -1,6 +1,174 @@
|
|
|
1
1
|
import type { FileObject } from "@supabase/storage-js";
|
|
2
|
+
import type { Database } from "@townco/supabase";
|
|
2
3
|
import type { z } from "zod";
|
|
3
|
-
export declare const createSupabaseClient: (tok?: string | undefined) => import("@supabase/supabase-js").SupabaseClient<
|
|
4
|
+
export declare const createSupabaseClient: (tok?: string | undefined) => import("@supabase/supabase-js").SupabaseClient<Database, "public", "public", {
|
|
5
|
+
Tables: {
|
|
6
|
+
agent_definitions: {
|
|
7
|
+
Row: {
|
|
8
|
+
agent_path: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
definition: import("@townco/supabase").Json;
|
|
11
|
+
id: string;
|
|
12
|
+
source_object_id: string | null;
|
|
13
|
+
user_id: string;
|
|
14
|
+
};
|
|
15
|
+
Insert: {
|
|
16
|
+
agent_path: string;
|
|
17
|
+
created_at?: string;
|
|
18
|
+
definition?: import("@townco/supabase").Json;
|
|
19
|
+
id?: string;
|
|
20
|
+
source_object_id?: string | null;
|
|
21
|
+
user_id: string;
|
|
22
|
+
};
|
|
23
|
+
Update: {
|
|
24
|
+
agent_path?: string;
|
|
25
|
+
created_at?: string;
|
|
26
|
+
definition?: import("@townco/supabase").Json;
|
|
27
|
+
id?: string;
|
|
28
|
+
source_object_id?: string | null;
|
|
29
|
+
user_id?: string;
|
|
30
|
+
};
|
|
31
|
+
Relationships: [];
|
|
32
|
+
};
|
|
33
|
+
agent_instances: {
|
|
34
|
+
Row: {
|
|
35
|
+
agent_definition_id: string | null;
|
|
36
|
+
created_at: string;
|
|
37
|
+
fly_app_name: string | null;
|
|
38
|
+
id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
user_id: string;
|
|
41
|
+
};
|
|
42
|
+
Insert: {
|
|
43
|
+
agent_definition_id?: string | null;
|
|
44
|
+
created_at?: string;
|
|
45
|
+
fly_app_name?: string | null;
|
|
46
|
+
id?: number;
|
|
47
|
+
name: string;
|
|
48
|
+
user_id: string;
|
|
49
|
+
};
|
|
50
|
+
Update: {
|
|
51
|
+
agent_definition_id?: string | null;
|
|
52
|
+
created_at?: string;
|
|
53
|
+
fly_app_name?: string | null;
|
|
54
|
+
id?: number;
|
|
55
|
+
name?: string;
|
|
56
|
+
user_id?: string;
|
|
57
|
+
};
|
|
58
|
+
Relationships: [
|
|
59
|
+
{
|
|
60
|
+
foreignKeyName: "agent_instances_agent_definition_id_fkey";
|
|
61
|
+
columns: ["agent_definition_id"];
|
|
62
|
+
isOneToOne: false;
|
|
63
|
+
referencedRelation: "agent_definitions";
|
|
64
|
+
referencedColumns: ["id"];
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
};
|
|
68
|
+
api_keys: {
|
|
69
|
+
Row: {
|
|
70
|
+
created_at: string;
|
|
71
|
+
hash: string;
|
|
72
|
+
id: string;
|
|
73
|
+
user_id: string;
|
|
74
|
+
};
|
|
75
|
+
Insert: {
|
|
76
|
+
created_at?: string;
|
|
77
|
+
hash: string;
|
|
78
|
+
id?: string;
|
|
79
|
+
user_id: string;
|
|
80
|
+
};
|
|
81
|
+
Update: {
|
|
82
|
+
created_at?: string;
|
|
83
|
+
hash?: string;
|
|
84
|
+
id?: string;
|
|
85
|
+
user_id?: string;
|
|
86
|
+
};
|
|
87
|
+
Relationships: [];
|
|
88
|
+
};
|
|
89
|
+
env_vars: {
|
|
90
|
+
Row: {
|
|
91
|
+
created_at: string;
|
|
92
|
+
id: number;
|
|
93
|
+
name: string;
|
|
94
|
+
user_id: string;
|
|
95
|
+
value: string;
|
|
96
|
+
};
|
|
97
|
+
Insert: {
|
|
98
|
+
created_at?: string;
|
|
99
|
+
id?: number;
|
|
100
|
+
name: string;
|
|
101
|
+
user_id: string;
|
|
102
|
+
value: string;
|
|
103
|
+
};
|
|
104
|
+
Update: {
|
|
105
|
+
created_at?: string;
|
|
106
|
+
id?: number;
|
|
107
|
+
name?: string;
|
|
108
|
+
user_id?: string;
|
|
109
|
+
value?: string;
|
|
110
|
+
};
|
|
111
|
+
Relationships: [];
|
|
112
|
+
};
|
|
113
|
+
library_collections: {
|
|
114
|
+
Row: {
|
|
115
|
+
created_at: string;
|
|
116
|
+
id: string;
|
|
117
|
+
library_api_key: string;
|
|
118
|
+
library_org_id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
user_id: string;
|
|
121
|
+
};
|
|
122
|
+
Insert: {
|
|
123
|
+
created_at?: string;
|
|
124
|
+
id?: string;
|
|
125
|
+
library_api_key: string;
|
|
126
|
+
library_org_id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
user_id: string;
|
|
129
|
+
};
|
|
130
|
+
Update: {
|
|
131
|
+
created_at?: string;
|
|
132
|
+
id?: string;
|
|
133
|
+
library_api_key?: string;
|
|
134
|
+
library_org_id?: string;
|
|
135
|
+
name?: string;
|
|
136
|
+
user_id?: string;
|
|
137
|
+
};
|
|
138
|
+
Relationships: [];
|
|
139
|
+
};
|
|
140
|
+
mcp_configs: {
|
|
141
|
+
Row: {
|
|
142
|
+
config: import("@townco/supabase").Json;
|
|
143
|
+
created_at: string;
|
|
144
|
+
id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
user_id: string;
|
|
147
|
+
};
|
|
148
|
+
Insert: {
|
|
149
|
+
config: import("@townco/supabase").Json;
|
|
150
|
+
created_at?: string;
|
|
151
|
+
id?: string;
|
|
152
|
+
name: string;
|
|
153
|
+
user_id: string;
|
|
154
|
+
};
|
|
155
|
+
Update: {
|
|
156
|
+
config?: import("@townco/supabase").Json;
|
|
157
|
+
created_at?: string;
|
|
158
|
+
id?: string;
|
|
159
|
+
name?: string;
|
|
160
|
+
user_id?: string;
|
|
161
|
+
};
|
|
162
|
+
Relationships: [];
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
Views: {};
|
|
166
|
+
Functions: {};
|
|
167
|
+
Enums: {};
|
|
168
|
+
CompositeTypes: {};
|
|
169
|
+
}, {
|
|
170
|
+
PostgrestVersion: "13.0.5";
|
|
171
|
+
}>;
|
|
4
172
|
export declare const createContext: ({ req }: {
|
|
5
173
|
req: Request;
|
|
6
174
|
}) => Promise<{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@townco/apiclient",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.48",
|
|
5
5
|
"description": "apiclient",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@supabase/storage-js": "^2.87.1",
|
|
25
|
+
"@townco/supabase": "workspace:*",
|
|
25
26
|
"@townco/tsconfig": "0.1.95",
|
|
26
27
|
"@trpc/server": "^11.7.2",
|
|
27
28
|
"@typescript/native-preview": "^7.0.0-dev.20251207.1"
|