@metorial-services/shuttle-client 1.0.7 → 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<{
@@ -806,6 +813,7 @@ declare let rootController: {
806
813
  type: ServerType;
807
814
  name: string;
808
815
  description: string | null;
816
+ metadata: {};
809
817
  currentVersionId: string | null;
810
818
  draft: {
811
819
  repositoryTag: {
@@ -951,6 +959,7 @@ declare let rootController: {
951
959
  }> | undefined;
952
960
  name: string;
953
961
  description: string | undefined;
962
+ metadata: Record<string, any> | undefined;
954
963
  }>, {
955
964
  server: {
956
965
  object: string;
@@ -958,6 +967,7 @@ declare let rootController: {
958
967
  type: ServerType;
959
968
  name: string;
960
969
  description: string | null;
970
+ metadata: {};
961
971
  currentVersionId: string | null;
962
972
  draft: {
963
973
  repositoryTag: {
@@ -1068,6 +1078,8 @@ declare let rootController: {
1068
1078
  endedAt: Date | null;
1069
1079
  };
1070
1080
  }, {
1081
+ tenant: undefined;
1082
+ } | {
1071
1083
  tenant: {
1072
1084
  name: string;
1073
1085
  oid: bigint;
@@ -1139,6 +1151,7 @@ declare let rootController: {
1139
1151
  type: ServerType;
1140
1152
  name: string;
1141
1153
  description: string | null;
1154
+ metadata: {};
1142
1155
  currentVersionId: string | null;
1143
1156
  draft: {
1144
1157
  repositoryTag: {
@@ -1325,6 +1338,9 @@ declare let rootController: {
1325
1338
  configTransformer: string;
1326
1339
  remoteUrl: string | null;
1327
1340
  remoteProtocol: ServerRemoteProtocol | null;
1341
+ originalRemoteProtocol: ServerRemoteProtocol | null;
1342
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
1343
+ remoteServerNeedsManualAuthentication: boolean;
1328
1344
  repositoryTagOid: bigint | null;
1329
1345
  repositoryVersionOid: bigint | null;
1330
1346
  functionServerOid: bigint | null;
@@ -1367,6 +1383,7 @@ declare let rootController: {
1367
1383
  type: ServerType;
1368
1384
  createdAt: Date;
1369
1385
  description: string | null;
1386
+ metadata: unknown | null;
1370
1387
  draftConfigSchema: PrismaJson.ServerConfigSchema;
1371
1388
  draftConfigTransformer: string;
1372
1389
  draftRemoteUrl: string | null;
@@ -1390,6 +1407,7 @@ declare let rootController: {
1390
1407
  type: ServerType;
1391
1408
  name: string;
1392
1409
  description: string | null;
1410
+ metadata: {};
1393
1411
  currentVersionId: string | null;
1394
1412
  draft: {
1395
1413
  repositoryTag: {
@@ -1576,6 +1594,9 @@ declare let rootController: {
1576
1594
  configTransformer: string;
1577
1595
  remoteUrl: string | null;
1578
1596
  remoteProtocol: ServerRemoteProtocol | null;
1597
+ originalRemoteProtocol: ServerRemoteProtocol | null;
1598
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
1599
+ remoteServerNeedsManualAuthentication: boolean;
1579
1600
  repositoryTagOid: bigint | null;
1580
1601
  repositoryVersionOid: bigint | null;
1581
1602
  functionServerOid: bigint | null;
@@ -1618,6 +1639,7 @@ declare let rootController: {
1618
1639
  type: ServerType;
1619
1640
  createdAt: Date;
1620
1641
  description: string | null;
1642
+ metadata: unknown | null;
1621
1643
  draftConfigSchema: PrismaJson.ServerConfigSchema;
1622
1644
  draftConfigTransformer: string;
1623
1645
  draftRemoteUrl: string | null;
@@ -1727,6 +1749,16 @@ declare let rootController: {
1727
1749
  configTransformer: string;
1728
1750
  remoteUrl: string | null;
1729
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;
1730
1762
  serverId: string;
1731
1763
  tenantId: string | undefined;
1732
1764
  deploymentId: string;
@@ -1832,6 +1864,16 @@ declare let rootController: {
1832
1864
  configTransformer: string;
1833
1865
  remoteUrl: string | null;
1834
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;
1835
1877
  serverId: string;
1836
1878
  tenantId: string | undefined;
1837
1879
  deploymentId: string;
@@ -1854,6 +1896,7 @@ declare let rootController: {
1854
1896
  type: ServerType;
1855
1897
  createdAt: Date;
1856
1898
  description: string | null;
1899
+ metadata: unknown | null;
1857
1900
  draftConfigSchema: PrismaJson.ServerConfigSchema;
1858
1901
  draftConfigTransformer: string;
1859
1902
  draftRemoteUrl: string | null;
@@ -1999,6 +2042,9 @@ declare let rootController: {
1999
2042
  configTransformer: string;
2000
2043
  remoteUrl: string | null;
2001
2044
  remoteProtocol: ServerRemoteProtocol | null;
2045
+ originalRemoteProtocol: ServerRemoteProtocol | null;
2046
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
2047
+ remoteServerNeedsManualAuthentication: boolean;
2002
2048
  repositoryTagOid: bigint | null;
2003
2049
  repositoryVersionOid: bigint | null;
2004
2050
  functionServerOid: bigint | null;
@@ -2016,8 +2062,10 @@ declare let rootController: {
2016
2062
  object: string;
2017
2063
  id: string;
2018
2064
  status: ServerDiscoveryStatus;
2065
+ error: PrismaJson.ServerDiscoveryError;
2066
+ warnings: PrismaJson.ServerDiscoveryWarning[];
2019
2067
  authConfigSchema: Record<string, any> | null;
2020
- configSchema: any;
2068
+ configSchema: Record<string, any> | null;
2021
2069
  capabilities: {
2022
2070
  experimental?: {
2023
2071
  [x: string]: object;
@@ -2162,8 +2210,10 @@ declare let rootController: {
2162
2210
  object: string;
2163
2211
  id: string;
2164
2212
  status: ServerDiscoveryStatus;
2213
+ error: PrismaJson.ServerDiscoveryError;
2214
+ warnings: PrismaJson.ServerDiscoveryWarning[];
2165
2215
  authConfigSchema: Record<string, any> | null;
2166
- configSchema: any;
2216
+ configSchema: Record<string, any> | null;
2167
2217
  capabilities: {
2168
2218
  experimental?: {
2169
2219
  [x: string]: object;
@@ -2385,6 +2435,7 @@ declare let rootController: {
2385
2435
  type: ServerType;
2386
2436
  createdAt: Date;
2387
2437
  description: string | null;
2438
+ metadata: unknown | null;
2388
2439
  draftConfigSchema: PrismaJson.ServerConfigSchema;
2389
2440
  draftConfigTransformer: string;
2390
2441
  draftRemoteUrl: string | null;
@@ -2486,6 +2537,7 @@ declare let rootController: {
2486
2537
  type: ServerType;
2487
2538
  createdAt: Date;
2488
2539
  description: string | null;
2540
+ metadata: unknown | null;
2489
2541
  draftConfigSchema: PrismaJson.ServerConfigSchema;
2490
2542
  draftConfigTransformer: string;
2491
2543
  draftRemoteUrl: string | null;
@@ -2518,6 +2570,9 @@ declare let rootController: {
2518
2570
  configTransformer: string;
2519
2571
  remoteUrl: string | null;
2520
2572
  remoteProtocol: ServerRemoteProtocol | null;
2573
+ originalRemoteProtocol: ServerRemoteProtocol | null;
2574
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
2575
+ remoteServerNeedsManualAuthentication: boolean;
2521
2576
  repositoryTagOid: bigint | null;
2522
2577
  repositoryVersionOid: bigint | null;
2523
2578
  functionServerOid: bigint | null;
@@ -2602,6 +2657,7 @@ declare let rootController: {
2602
2657
  type: ServerType;
2603
2658
  createdAt: Date;
2604
2659
  description: string | null;
2660
+ metadata: unknown | null;
2605
2661
  draftConfigSchema: PrismaJson.ServerConfigSchema;
2606
2662
  draftConfigTransformer: string;
2607
2663
  draftRemoteUrl: string | null;
@@ -2634,6 +2690,9 @@ declare let rootController: {
2634
2690
  configTransformer: string;
2635
2691
  remoteUrl: string | null;
2636
2692
  remoteProtocol: ServerRemoteProtocol | null;
2693
+ originalRemoteProtocol: ServerRemoteProtocol | null;
2694
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
2695
+ remoteServerNeedsManualAuthentication: boolean;
2637
2696
  repositoryTagOid: bigint | null;
2638
2697
  repositoryVersionOid: bigint | null;
2639
2698
  functionServerOid: bigint | null;
@@ -2916,6 +2975,9 @@ declare let rootController: {
2916
2975
  configTransformer: string;
2917
2976
  remoteUrl: string | null;
2918
2977
  remoteProtocol: ServerRemoteProtocol | null;
2978
+ originalRemoteProtocol: ServerRemoteProtocol | null;
2979
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
2980
+ remoteServerNeedsManualAuthentication: boolean;
2919
2981
  repositoryTagOid: bigint | null;
2920
2982
  repositoryVersionOid: bigint | null;
2921
2983
  functionServerOid: bigint | null;
@@ -2990,6 +3052,9 @@ declare let rootController: {
2990
3052
  configTransformer: string;
2991
3053
  remoteUrl: string | null;
2992
3054
  remoteProtocol: ServerRemoteProtocol | null;
3055
+ originalRemoteProtocol: ServerRemoteProtocol | null;
3056
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
3057
+ remoteServerNeedsManualAuthentication: boolean;
2993
3058
  repositoryTagOid: bigint | null;
2994
3059
  repositoryVersionOid: bigint | null;
2995
3060
  functionServerOid: bigint | null;
@@ -3338,6 +3403,7 @@ declare let rootController: {
3338
3403
  type: ServerType;
3339
3404
  createdAt: Date;
3340
3405
  description: string | null;
3406
+ metadata: unknown | null;
3341
3407
  draftConfigSchema: PrismaJson.ServerConfigSchema;
3342
3408
  draftConfigTransformer: string;
3343
3409
  draftRemoteUrl: string | null;
@@ -3641,6 +3707,7 @@ declare let rootController: {
3641
3707
  type: ServerType;
3642
3708
  createdAt: Date;
3643
3709
  description: string | null;
3710
+ metadata: unknown | null;
3644
3711
  draftConfigSchema: PrismaJson.ServerConfigSchema;
3645
3712
  draftConfigTransformer: string;
3646
3713
  draftRemoteUrl: string | null;
@@ -4366,6 +4433,7 @@ declare let rootController: {
4366
4433
  type: ServerType;
4367
4434
  createdAt: Date;
4368
4435
  description: string | null;
4436
+ metadata: unknown | null;
4369
4437
  draftConfigSchema: PrismaJson.ServerConfigSchema;
4370
4438
  draftConfigTransformer: string;
4371
4439
  draftRemoteUrl: string | null;
@@ -4835,6 +4903,7 @@ declare let rootController: {
4835
4903
  type: ServerType;
4836
4904
  createdAt: Date;
4837
4905
  description: string | null;
4906
+ metadata: unknown | null;
4838
4907
  draftConfigSchema: PrismaJson.ServerConfigSchema;
4839
4908
  draftConfigTransformer: string;
4840
4909
  draftRemoteUrl: string | null;
@@ -5019,6 +5088,7 @@ declare let rootController: {
5019
5088
  type: ServerType;
5020
5089
  createdAt: Date;
5021
5090
  description: string | null;
5091
+ metadata: unknown | null;
5022
5092
  draftConfigSchema: PrismaJson.ServerConfigSchema;
5023
5093
  draftConfigTransformer: string;
5024
5094
  draftRemoteUrl: string | null;
@@ -5043,6 +5113,9 @@ declare let rootController: {
5043
5113
  configTransformer: string;
5044
5114
  remoteUrl: string | null;
5045
5115
  remoteProtocol: ServerRemoteProtocol | null;
5116
+ originalRemoteProtocol: ServerRemoteProtocol | null;
5117
+ remoteProtocolAutoSwitchStatus: RemoteProtocolAutoSwitchStatus;
5118
+ remoteServerNeedsManualAuthentication: boolean;
5046
5119
  repositoryTagOid: bigint | null;
5047
5120
  repositoryVersionOid: bigint | null;
5048
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.7",
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';