@metorial-services/shuttle-client 1.0.8 → 1.0.10
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -243,6 +243,13 @@ declare const ServerRemoteProtocol: {
|
|
|
243
243
|
readonly streamable_http: "streamable_http";
|
|
244
244
|
};
|
|
245
245
|
export type ServerRemoteProtocol = (typeof ServerRemoteProtocol)[keyof typeof ServerRemoteProtocol];
|
|
246
|
+
declare const RemoteProtocolAutoSwitchStatus: {
|
|
247
|
+
readonly none: "none";
|
|
248
|
+
readonly attempting: "attempting";
|
|
249
|
+
readonly succeeded: "succeeded";
|
|
250
|
+
readonly failed: "failed";
|
|
251
|
+
};
|
|
252
|
+
export type RemoteProtocolAutoSwitchStatus = (typeof RemoteProtocolAutoSwitchStatus)[keyof typeof RemoteProtocolAutoSwitchStatus];
|
|
246
253
|
declare let rootController: {
|
|
247
254
|
tenant: {
|
|
248
255
|
upsert: Handler<UndefinedIsOptional<{
|
|
@@ -1071,6 +1078,8 @@ declare let rootController: {
|
|
|
1071
1078
|
endedAt: Date | null;
|
|
1072
1079
|
};
|
|
1073
1080
|
}, {
|
|
1081
|
+
tenant: undefined;
|
|
1082
|
+
} | {
|
|
1074
1083
|
tenant: {
|
|
1075
1084
|
name: string;
|
|
1076
1085
|
oid: bigint;
|
|
@@ -1329,6 +1338,9 @@ declare let rootController: {
|
|
|
1329
1338
|
configTransformer: string;
|
|
1330
1339
|
remoteUrl: string | null;
|
|
1331
1340
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
1341
|
+
originalRemoteProtocol: ServerRemoteProtocol | null;
|
|
1342
|
+
remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
|
|
1343
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
1332
1344
|
repositoryTagOid: bigint | null;
|
|
1333
1345
|
repositoryVersionOid: bigint | null;
|
|
1334
1346
|
functionServerOid: bigint | null;
|
|
@@ -1582,6 +1594,9 @@ declare let rootController: {
|
|
|
1582
1594
|
configTransformer: string;
|
|
1583
1595
|
remoteUrl: string | null;
|
|
1584
1596
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
1597
|
+
originalRemoteProtocol: ServerRemoteProtocol | null;
|
|
1598
|
+
remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
|
|
1599
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
1585
1600
|
repositoryTagOid: bigint | null;
|
|
1586
1601
|
repositoryVersionOid: bigint | null;
|
|
1587
1602
|
functionServerOid: bigint | null;
|
|
@@ -1734,6 +1749,16 @@ declare let rootController: {
|
|
|
1734
1749
|
configTransformer: string;
|
|
1735
1750
|
remoteUrl: string | null;
|
|
1736
1751
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
1752
|
+
remote: {
|
|
1753
|
+
url: string;
|
|
1754
|
+
protocol: ServerRemoteProtocol;
|
|
1755
|
+
autoSwitch: {
|
|
1756
|
+
status: string;
|
|
1757
|
+
from: ServerRemoteProtocol;
|
|
1758
|
+
to: ServerRemoteProtocol;
|
|
1759
|
+
} | null;
|
|
1760
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
1761
|
+
} | null;
|
|
1737
1762
|
serverId: string;
|
|
1738
1763
|
tenantId: string | undefined;
|
|
1739
1764
|
deploymentId: string;
|
|
@@ -1839,6 +1864,16 @@ declare let rootController: {
|
|
|
1839
1864
|
configTransformer: string;
|
|
1840
1865
|
remoteUrl: string | null;
|
|
1841
1866
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
1867
|
+
remote: {
|
|
1868
|
+
url: string;
|
|
1869
|
+
protocol: ServerRemoteProtocol;
|
|
1870
|
+
autoSwitch: {
|
|
1871
|
+
status: string;
|
|
1872
|
+
from: ServerRemoteProtocol;
|
|
1873
|
+
to: ServerRemoteProtocol;
|
|
1874
|
+
} | null;
|
|
1875
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
1876
|
+
} | null;
|
|
1842
1877
|
serverId: string;
|
|
1843
1878
|
tenantId: string | undefined;
|
|
1844
1879
|
deploymentId: string;
|
|
@@ -2007,6 +2042,9 @@ declare let rootController: {
|
|
|
2007
2042
|
configTransformer: string;
|
|
2008
2043
|
remoteUrl: string | null;
|
|
2009
2044
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
2045
|
+
originalRemoteProtocol: ServerRemoteProtocol | null;
|
|
2046
|
+
remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
|
|
2047
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
2010
2048
|
repositoryTagOid: bigint | null;
|
|
2011
2049
|
repositoryVersionOid: bigint | null;
|
|
2012
2050
|
functionServerOid: bigint | null;
|
|
@@ -2020,12 +2058,163 @@ declare let rootController: {
|
|
|
2020
2058
|
serverConfigId: string;
|
|
2021
2059
|
serverVersionId: string;
|
|
2022
2060
|
serverAuthConfigId: string | undefined;
|
|
2061
|
+
waitForCompletion: boolean | undefined;
|
|
2062
|
+
}>, {
|
|
2063
|
+
object: string;
|
|
2064
|
+
id: string;
|
|
2065
|
+
status: ServerDiscoveryStatus;
|
|
2066
|
+
error: PrismaJson.ServerDiscoveryError;
|
|
2067
|
+
warnings: PrismaJson.ServerDiscoveryWarning[];
|
|
2068
|
+
authConfigSchema: Record<string, any> | null;
|
|
2069
|
+
configSchema: Record<string, any> | null;
|
|
2070
|
+
capabilities: {
|
|
2071
|
+
experimental?: {
|
|
2072
|
+
[x: string]: object;
|
|
2073
|
+
} | undefined;
|
|
2074
|
+
logging?: object | undefined;
|
|
2075
|
+
completions?: object | undefined;
|
|
2076
|
+
prompts?: {
|
|
2077
|
+
listChanged?: boolean | undefined;
|
|
2078
|
+
} | undefined;
|
|
2079
|
+
resources?: {
|
|
2080
|
+
subscribe?: boolean | undefined;
|
|
2081
|
+
listChanged?: boolean | undefined;
|
|
2082
|
+
} | undefined;
|
|
2083
|
+
tools?: {
|
|
2084
|
+
listChanged?: boolean | undefined;
|
|
2085
|
+
} | undefined;
|
|
2086
|
+
tasks?: {
|
|
2087
|
+
[x: string]: unknown;
|
|
2088
|
+
list?: object | undefined;
|
|
2089
|
+
cancel?: object | undefined;
|
|
2090
|
+
requests?: {
|
|
2091
|
+
[x: string]: unknown;
|
|
2092
|
+
tools?: {
|
|
2093
|
+
[x: string]: unknown;
|
|
2094
|
+
call?: object | undefined;
|
|
2095
|
+
} | undefined;
|
|
2096
|
+
} | undefined;
|
|
2097
|
+
} | undefined;
|
|
2098
|
+
};
|
|
2099
|
+
instructions: string | null;
|
|
2100
|
+
prompts: {
|
|
2101
|
+
name: string;
|
|
2102
|
+
description?: string | undefined;
|
|
2103
|
+
arguments?: {
|
|
2104
|
+
name: string;
|
|
2105
|
+
description?: string | undefined;
|
|
2106
|
+
required?: boolean | undefined;
|
|
2107
|
+
}[] | undefined;
|
|
2108
|
+
_meta?: {
|
|
2109
|
+
[x: string]: unknown;
|
|
2110
|
+
} | undefined;
|
|
2111
|
+
icons?: {
|
|
2112
|
+
src: string;
|
|
2113
|
+
mimeType?: string | undefined;
|
|
2114
|
+
sizes?: string[] | undefined;
|
|
2115
|
+
theme?: "light" | "dark" | undefined;
|
|
2116
|
+
}[] | undefined;
|
|
2117
|
+
title?: string | undefined;
|
|
2118
|
+
}[];
|
|
2119
|
+
resourceTemplates: {
|
|
2120
|
+
uriTemplate: string;
|
|
2121
|
+
name: string;
|
|
2122
|
+
description?: string | undefined;
|
|
2123
|
+
mimeType?: string | undefined;
|
|
2124
|
+
annotations?: {
|
|
2125
|
+
audience?: ("user" | "assistant")[] | undefined;
|
|
2126
|
+
priority?: number | undefined;
|
|
2127
|
+
lastModified?: string | undefined;
|
|
2128
|
+
} | undefined;
|
|
2129
|
+
_meta?: {
|
|
2130
|
+
[x: string]: unknown;
|
|
2131
|
+
} | undefined;
|
|
2132
|
+
icons?: {
|
|
2133
|
+
src: string;
|
|
2134
|
+
mimeType?: string | undefined;
|
|
2135
|
+
sizes?: string[] | undefined;
|
|
2136
|
+
theme?: "light" | "dark" | undefined;
|
|
2137
|
+
}[] | undefined;
|
|
2138
|
+
title?: string | undefined;
|
|
2139
|
+
}[];
|
|
2140
|
+
tools: {
|
|
2141
|
+
inputSchema: {
|
|
2142
|
+
[x: string]: unknown;
|
|
2143
|
+
type: "object";
|
|
2144
|
+
properties?: {
|
|
2145
|
+
[x: string]: object;
|
|
2146
|
+
} | undefined;
|
|
2147
|
+
required?: string[] | undefined;
|
|
2148
|
+
};
|
|
2149
|
+
name: string;
|
|
2150
|
+
description?: string | undefined;
|
|
2151
|
+
outputSchema?: {
|
|
2152
|
+
[x: string]: unknown;
|
|
2153
|
+
type: "object";
|
|
2154
|
+
properties?: {
|
|
2155
|
+
[x: string]: object;
|
|
2156
|
+
} | undefined;
|
|
2157
|
+
required?: string[] | undefined;
|
|
2158
|
+
} | undefined;
|
|
2159
|
+
annotations?: {
|
|
2160
|
+
title?: string | undefined;
|
|
2161
|
+
readOnlyHint?: boolean | undefined;
|
|
2162
|
+
destructiveHint?: boolean | undefined;
|
|
2163
|
+
idempotentHint?: boolean | undefined;
|
|
2164
|
+
openWorldHint?: boolean | undefined;
|
|
2165
|
+
} | undefined;
|
|
2166
|
+
execution?: {
|
|
2167
|
+
taskSupport?: "optional" | "required" | "forbidden" | undefined;
|
|
2168
|
+
} | undefined;
|
|
2169
|
+
_meta?: {
|
|
2170
|
+
[x: string]: unknown;
|
|
2171
|
+
} | undefined;
|
|
2172
|
+
icons?: {
|
|
2173
|
+
src: string;
|
|
2174
|
+
mimeType?: string | undefined;
|
|
2175
|
+
sizes?: string[] | undefined;
|
|
2176
|
+
theme?: "light" | "dark" | undefined;
|
|
2177
|
+
}[] | undefined;
|
|
2178
|
+
title?: string | undefined;
|
|
2179
|
+
}[];
|
|
2180
|
+
info: {
|
|
2181
|
+
version: string;
|
|
2182
|
+
name: string;
|
|
2183
|
+
websiteUrl?: string | undefined;
|
|
2184
|
+
description?: string | undefined;
|
|
2185
|
+
icons?: {
|
|
2186
|
+
src: string;
|
|
2187
|
+
mimeType?: string | undefined;
|
|
2188
|
+
sizes?: string[] | undefined;
|
|
2189
|
+
theme?: "light" | "dark" | undefined;
|
|
2190
|
+
}[] | undefined;
|
|
2191
|
+
title?: string | undefined;
|
|
2192
|
+
};
|
|
2193
|
+
serverConfigId: string;
|
|
2194
|
+
serverVersionId: string;
|
|
2195
|
+
serverAuthConfigId: string | undefined;
|
|
2196
|
+
createdAt: Date;
|
|
2197
|
+
}, {
|
|
2198
|
+
tenant: {
|
|
2199
|
+
name: string;
|
|
2200
|
+
oid: bigint;
|
|
2201
|
+
id: string;
|
|
2202
|
+
createdAt: Date;
|
|
2203
|
+
identifier: string;
|
|
2204
|
+
functionBayTenantId: string | null;
|
|
2205
|
+
};
|
|
2206
|
+
}>;
|
|
2207
|
+
get: Handler<UndefinedIsOptional<{
|
|
2208
|
+
tenantId: string;
|
|
2209
|
+
serverDiscoveryId: string;
|
|
2023
2210
|
}>, {
|
|
2024
2211
|
object: string;
|
|
2025
2212
|
id: string;
|
|
2026
2213
|
status: ServerDiscoveryStatus;
|
|
2214
|
+
error: PrismaJson.ServerDiscoveryError;
|
|
2215
|
+
warnings: PrismaJson.ServerDiscoveryWarning[];
|
|
2027
2216
|
authConfigSchema: Record<string, any> | null;
|
|
2028
|
-
configSchema: any;
|
|
2217
|
+
configSchema: Record<string, any> | null;
|
|
2029
2218
|
capabilities: {
|
|
2030
2219
|
experimental?: {
|
|
2031
2220
|
[x: string]: object;
|
|
@@ -2170,8 +2359,10 @@ declare let rootController: {
|
|
|
2170
2359
|
object: string;
|
|
2171
2360
|
id: string;
|
|
2172
2361
|
status: ServerDiscoveryStatus;
|
|
2362
|
+
error: PrismaJson.ServerDiscoveryError;
|
|
2363
|
+
warnings: PrismaJson.ServerDiscoveryWarning[];
|
|
2173
2364
|
authConfigSchema: Record<string, any> | null;
|
|
2174
|
-
configSchema: any;
|
|
2365
|
+
configSchema: Record<string, any> | null;
|
|
2175
2366
|
capabilities: {
|
|
2176
2367
|
experimental?: {
|
|
2177
2368
|
[x: string]: object;
|
|
@@ -2528,6 +2719,9 @@ declare let rootController: {
|
|
|
2528
2719
|
configTransformer: string;
|
|
2529
2720
|
remoteUrl: string | null;
|
|
2530
2721
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
2722
|
+
originalRemoteProtocol: ServerRemoteProtocol | null;
|
|
2723
|
+
remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
|
|
2724
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
2531
2725
|
repositoryTagOid: bigint | null;
|
|
2532
2726
|
repositoryVersionOid: bigint | null;
|
|
2533
2727
|
functionServerOid: bigint | null;
|
|
@@ -2645,6 +2839,9 @@ declare let rootController: {
|
|
|
2645
2839
|
configTransformer: string;
|
|
2646
2840
|
remoteUrl: string | null;
|
|
2647
2841
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
2842
|
+
originalRemoteProtocol: ServerRemoteProtocol | null;
|
|
2843
|
+
remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
|
|
2844
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
2648
2845
|
repositoryTagOid: bigint | null;
|
|
2649
2846
|
repositoryVersionOid: bigint | null;
|
|
2650
2847
|
functionServerOid: bigint | null;
|
|
@@ -2927,6 +3124,9 @@ declare let rootController: {
|
|
|
2927
3124
|
configTransformer: string;
|
|
2928
3125
|
remoteUrl: string | null;
|
|
2929
3126
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
3127
|
+
originalRemoteProtocol: ServerRemoteProtocol | null;
|
|
3128
|
+
remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
|
|
3129
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
2930
3130
|
repositoryTagOid: bigint | null;
|
|
2931
3131
|
repositoryVersionOid: bigint | null;
|
|
2932
3132
|
functionServerOid: bigint | null;
|
|
@@ -3001,6 +3201,9 @@ declare let rootController: {
|
|
|
3001
3201
|
configTransformer: string;
|
|
3002
3202
|
remoteUrl: string | null;
|
|
3003
3203
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
3204
|
+
originalRemoteProtocol: ServerRemoteProtocol | null;
|
|
3205
|
+
remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
|
|
3206
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
3004
3207
|
repositoryTagOid: bigint | null;
|
|
3005
3208
|
repositoryVersionOid: bigint | null;
|
|
3006
3209
|
functionServerOid: bigint | null;
|
|
@@ -5059,6 +5262,9 @@ declare let rootController: {
|
|
|
5059
5262
|
configTransformer: string;
|
|
5060
5263
|
remoteUrl: string | null;
|
|
5061
5264
|
remoteProtocol: ServerRemoteProtocol | null;
|
|
5265
|
+
originalRemoteProtocol: ServerRemoteProtocol | null;
|
|
5266
|
+
remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
|
|
5267
|
+
remoteServerNeedsManualAuthentication: boolean;
|
|
5062
5268
|
repositoryTagOid: bigint | null;
|
|
5063
5269
|
repositoryVersionOid: bigint | null;
|
|
5064
5270
|
functionServerOid: bigint | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metorial-services/shuttle-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"prepublish": "bun run build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@lowerdeck/rpc-client": "^1.0
|
|
34
|
+
"@lowerdeck/rpc-client": "^1.1.0",
|
|
35
35
|
"@metorial/util-websocket": "^1.0.0",
|
|
36
36
|
"@types/bun": "^1.3.7"
|
|
37
37
|
},
|
package/src/types.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../../../service/src/db';
|