@metorial-services/shuttle-client 1.0.8 → 1.0.9

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,2 @@
1
+ import '../../../service/src/db';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -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;
@@ -2024,8 +2062,10 @@ declare let rootController: {
2024
2062
  object: string;
2025
2063
  id: string;
2026
2064
  status: ServerDiscoveryStatus;
2065
+ error: PrismaJson.ServerDiscoveryError;
2066
+ warnings: PrismaJson.ServerDiscoveryWarning[];
2027
2067
  authConfigSchema: Record<string, any> | null;
2028
- configSchema: any;
2068
+ configSchema: Record<string, any> | null;
2029
2069
  capabilities: {
2030
2070
  experimental?: {
2031
2071
  [x: string]: object;
@@ -2170,8 +2210,10 @@ declare let rootController: {
2170
2210
  object: string;
2171
2211
  id: string;
2172
2212
  status: ServerDiscoveryStatus;
2213
+ error: PrismaJson.ServerDiscoveryError;
2214
+ warnings: PrismaJson.ServerDiscoveryWarning[];
2173
2215
  authConfigSchema: Record<string, any> | null;
2174
- configSchema: any;
2216
+ configSchema: Record<string, any> | null;
2175
2217
  capabilities: {
2176
2218
  experimental?: {
2177
2219
  [x: string]: object;
@@ -2528,6 +2570,9 @@ declare let rootController: {
2528
2570
  configTransformer: string;
2529
2571
  remoteUrl: string | null;
2530
2572
  remoteProtocol: ServerRemoteProtocol | null;
2573
+ originalRemoteProtocol: ServerRemoteProtocol | null;
2574
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
2575
+ remoteServerNeedsManualAuthentication: boolean;
2531
2576
  repositoryTagOid: bigint | null;
2532
2577
  repositoryVersionOid: bigint | null;
2533
2578
  functionServerOid: bigint | null;
@@ -2645,6 +2690,9 @@ declare let rootController: {
2645
2690
  configTransformer: string;
2646
2691
  remoteUrl: string | null;
2647
2692
  remoteProtocol: ServerRemoteProtocol | null;
2693
+ originalRemoteProtocol: ServerRemoteProtocol | null;
2694
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
2695
+ remoteServerNeedsManualAuthentication: boolean;
2648
2696
  repositoryTagOid: bigint | null;
2649
2697
  repositoryVersionOid: bigint | null;
2650
2698
  functionServerOid: bigint | null;
@@ -2927,6 +2975,9 @@ declare let rootController: {
2927
2975
  configTransformer: string;
2928
2976
  remoteUrl: string | null;
2929
2977
  remoteProtocol: ServerRemoteProtocol | null;
2978
+ originalRemoteProtocol: ServerRemoteProtocol | null;
2979
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
2980
+ remoteServerNeedsManualAuthentication: boolean;
2930
2981
  repositoryTagOid: bigint | null;
2931
2982
  repositoryVersionOid: bigint | null;
2932
2983
  functionServerOid: bigint | null;
@@ -3001,6 +3052,9 @@ declare let rootController: {
3001
3052
  configTransformer: string;
3002
3053
  remoteUrl: string | null;
3003
3054
  remoteProtocol: ServerRemoteProtocol | null;
3055
+ originalRemoteProtocol: ServerRemoteProtocol | null;
3056
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
3057
+ remoteServerNeedsManualAuthentication: boolean;
3004
3058
  repositoryTagOid: bigint | null;
3005
3059
  repositoryVersionOid: bigint | null;
3006
3060
  functionServerOid: bigint | null;
@@ -5059,6 +5113,9 @@ declare let rootController: {
5059
5113
  configTransformer: string;
5060
5114
  remoteUrl: string | null;
5061
5115
  remoteProtocol: ServerRemoteProtocol | null;
5116
+ originalRemoteProtocol: ServerRemoteProtocol | null;
5117
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
5118
+ remoteServerNeedsManualAuthentication: boolean;
5062
5119
  repositoryTagOid: bigint | null;
5063
5120
  repositoryVersionOid: bigint | null;
5064
5121
  functionServerOid: bigint | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metorial-services/shuttle-client",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
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.2",
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';