@blocklet/server-js 1.17.7-beta-20251225-073259-cb6ecf68 → 1.17.7-beta-20251229-085620-84f09930

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/browser.d.ts CHANGED
@@ -93,12 +93,6 @@ declare class ABTNodeClient {
93
93
  getRoutingSites(
94
94
  params: PartialDeep<ABTNodeClient.GetRoutingSitesParams>
95
95
  ): Promise<ABTNodeClient.ResponseGetRoutingSites>;
96
- getRoutingSnapshots(
97
- params: PartialDeep<ABTNodeClient.GetRoutingSnapshotsParams>
98
- ): Promise<ABTNodeClient.ResponseGetRoutingSnapshots>;
99
- getSnapshotSites(
100
- params: PartialDeep<ABTNodeClient.GetSnapshotSitesParams>
101
- ): Promise<ABTNodeClient.ResponseGetSnapshotSites>;
102
96
  getRoutingProviders(): Promise<ABTNodeClient.ResponseGetRoutingProviders>;
103
97
  isDidDomain(params: PartialDeep<ABTNodeClient.IsDidDomainParams>): Promise<ABTNodeClient.ResponseIsDidDomain>;
104
98
  getCertificates(): Promise<ABTNodeClient.ResponseGetCertificates>;
@@ -262,7 +256,10 @@ declare class ABTNodeClient {
262
256
  configNavigations(
263
257
  params: PartialDeep<ABTNodeClient.ConfigNavigationsParams>
264
258
  ): Promise<ABTNodeClient.ResponseBlocklet>;
265
- configOAuth(params: PartialDeep<ABTNodeClient.ConfigOAuthParams>): Promise<ABTNodeClient.ResponseBlocklet>;
259
+ configAuthentication(
260
+ params: PartialDeep<ABTNodeClient.ConfigAuthenticationParams>
261
+ ): Promise<ABTNodeClient.ResponseBlocklet>;
262
+ configDidConnect(params: PartialDeep<ABTNodeClient.ConfigDidConnectParams>): Promise<ABTNodeClient.ResponseBlocklet>;
266
263
  configNotification(
267
264
  params: PartialDeep<ABTNodeClient.ConfigNotificationParams>
268
265
  ): Promise<ABTNodeClient.ResponseBlocklet>;
@@ -327,9 +324,6 @@ declare class ABTNodeClient {
327
324
  params: PartialDeep<ABTNodeClient.UpdateBlockletSettingsParams>
328
325
  ): Promise<ABTNodeClient.GeneralResponse>;
329
326
  updateNodeInfo(params: PartialDeep<ABTNodeClient.UpdateNodeInfoParams>): Promise<ABTNodeClient.ResponseGetNodeInfo>;
330
- updateNodeRouting(
331
- params: PartialDeep<ABTNodeClient.UpdateNodeRoutingParams>
332
- ): Promise<ABTNodeClient.ResponseGetNodeInfo>;
333
327
  upgradeNodeVersion(
334
328
  params: PartialDeep<ABTNodeClient.UpgradeNodeVersionParams>
335
329
  ): Promise<ABTNodeClient.ResponseUpgradeNodeVersion>;
@@ -427,9 +421,6 @@ declare class ABTNodeClient {
427
421
  deleteRoutingRule(
428
422
  params: PartialDeep<ABTNodeClient.DeleteRoutingRuleParams>
429
423
  ): Promise<ABTNodeClient.ResponseRoutingSite>;
430
- takeRoutingSnapshot(
431
- params: PartialDeep<ABTNodeClient.TakeRoutingSnapshotParams>
432
- ): Promise<ABTNodeClient.ResponseTakeRoutingSnapshot>;
433
424
  updateCertificate(
434
425
  params: PartialDeep<ABTNodeClient.UpdateCertificateParams>
435
426
  ): Promise<ABTNodeClient.ResponseUpdateNginxHttpsCert>;
@@ -1260,11 +1251,22 @@ declare namespace ABTNodeClient {
1260
1251
  componentDids: string[];
1261
1252
  }
1262
1253
 
1254
+ interface RequestConfigAuthenticationInput {
1255
+ did: string;
1256
+ authentication: string;
1257
+ oauth: string;
1258
+ }
1259
+
1263
1260
  interface RequestConfigBlockletInput {
1264
1261
  did: string[];
1265
1262
  configs: ABTNodeClient.ConfigEntryInput[];
1266
1263
  }
1267
1264
 
1265
+ interface RequestConfigDidConnectInput {
1266
+ did: string;
1267
+ didConnect: string;
1268
+ }
1269
+
1268
1270
  interface RequestConfigNavigationsInput {
1269
1271
  did: string;
1270
1272
  navigations: ABTNodeClient.ConfigNavigationInput[];
@@ -1275,11 +1277,6 @@ declare namespace ABTNodeClient {
1275
1277
  notification: string;
1276
1278
  }
1277
1279
 
1278
- interface RequestConfigOAuthInput {
1279
- did: string;
1280
- oauth: string;
1281
- }
1282
-
1283
1280
  interface RequestConfigPassportIssuanceInput {
1284
1281
  teamDid: string;
1285
1282
  enable: boolean;
@@ -1647,6 +1644,10 @@ declare namespace ABTNodeClient {
1647
1644
  interface RequestGetBlockletsInput {
1648
1645
  useCache: boolean;
1649
1646
  includeRuntimeInfo: boolean;
1647
+ paging: ABTNodeClient.PagingInput;
1648
+ search: string;
1649
+ external: boolean;
1650
+ sort: ABTNodeClient.SortInput;
1650
1651
  }
1651
1652
 
1652
1653
  interface RequestGetDynamicComponentsInput {
@@ -1729,10 +1730,6 @@ declare namespace ABTNodeClient {
1729
1730
  snapshotHash: string;
1730
1731
  }
1731
1732
 
1732
- interface RequestGetRoutingSnapshotsInput {
1733
- limit: number;
1734
- }
1735
-
1736
1733
  interface RequestGetSelectedResourcesInput {
1737
1734
  did: string;
1738
1735
  projectId: string;
@@ -1744,10 +1741,6 @@ declare namespace ABTNodeClient {
1744
1741
  id: string;
1745
1742
  }
1746
1743
 
1747
- interface RequestGetSnapshotSitesInput {
1748
- hash: string;
1749
- }
1750
-
1751
1744
  interface RequestGetTrafficInsightsInput {
1752
1745
  did: string;
1753
1746
  startDate: string;
@@ -1783,6 +1776,21 @@ declare namespace ABTNodeClient {
1783
1776
  permission: string;
1784
1777
  }
1785
1778
 
1779
+ interface RequestInstallBlockletInput {
1780
+ type: string;
1781
+ did: string;
1782
+ storeUrl: string;
1783
+ url: string;
1784
+ file: undefined;
1785
+ diffVersion: string;
1786
+ deleteSet: string[];
1787
+ title: string;
1788
+ description: string;
1789
+ startImmediately: boolean;
1790
+ appSk: string;
1791
+ downloadTokenList: ABTNodeClient.DownloadTokenInput[];
1792
+ }
1793
+
1786
1794
  interface RequestInstallComponentInput {
1787
1795
  rootDid: string;
1788
1796
  mountPoint: string;
@@ -1895,12 +1903,6 @@ declare namespace ABTNodeClient {
1895
1903
  resourceIds: string[];
1896
1904
  }
1897
1905
 
1898
- interface RequestNodeRoutingInput {
1899
- provider: string;
1900
- snapshotHash: string;
1901
- forceRepopulate: boolean;
1902
- }
1903
-
1904
1906
  interface RequestNodeRuntimeHistoryInput {
1905
1907
  hours: number;
1906
1908
  }
@@ -2087,11 +2089,6 @@ declare namespace ABTNodeClient {
2087
2089
  paging: ABTNodeClient.PagingInput;
2088
2090
  }
2089
2091
 
2090
- interface RequestTakeRoutingSnapshotInput {
2091
- dryRun: boolean;
2092
- message: string;
2093
- }
2094
-
2095
2092
  interface RequestTeamPermissionInput {
2096
2093
  teamDid: string;
2097
2094
  permission: ABTNodeClient.PermissionInput;
@@ -2317,20 +2314,6 @@ declare namespace ABTNodeClient {
2317
2314
  did: string;
2318
2315
  }
2319
2316
 
2320
- interface RequestVersionedBlockletInput {
2321
- type: string;
2322
- did: string;
2323
- storeUrl: string;
2324
- url: string;
2325
- file: undefined;
2326
- diffVersion: string;
2327
- deleteSet: string[];
2328
- title: string;
2329
- description: string;
2330
- startImmediately: boolean;
2331
- downloadTokenList: ABTNodeClient.DownloadTokenInput[];
2332
- }
2333
-
2334
2317
  interface RoleUpdateInput {
2335
2318
  name: string;
2336
2319
  title: string;
@@ -2383,6 +2366,11 @@ declare namespace ABTNodeClient {
2383
2366
  enableBlacklist: boolean;
2384
2367
  }
2385
2368
 
2369
+ interface SortInput {
2370
+ field: string;
2371
+ direction: string;
2372
+ }
2373
+
2386
2374
  interface SpaceGatewayInput {
2387
2375
  name: string;
2388
2376
  url: string;
@@ -2997,7 +2985,7 @@ declare namespace ABTNodeClient {
2997
2985
  publicToStore: boolean;
2998
2986
  storeList: ABTNodeClient.BlockletStore[];
2999
2987
  navigations: ABTNodeClient.ConfigNavigation[];
3000
- oauth: Record<string, any>;
2988
+ authentication: Record<string, any>;
3001
2989
  trustedFactories: ABTNodeClient.TrustedFactory[];
3002
2990
  notification: Record<string, any>;
3003
2991
  session: ABTNodeClient.SessionConfig;
@@ -3011,6 +2999,8 @@ declare namespace ABTNodeClient {
3011
2999
  enableSessionHardening: boolean;
3012
3000
  aigne: ABTNodeClient.AigneConfig;
3013
3001
  org: ABTNodeClient.OrgSettings;
3002
+ didConnect: Record<string, any>;
3003
+ oauth: Record<string, any>;
3014
3004
  }
3015
3005
 
3016
3006
  interface BlockletState {
@@ -3460,7 +3450,8 @@ declare namespace ABTNodeClient {
3460
3450
  configBlocklet: ABTNodeClient.ResponseBlocklet;
3461
3451
  configPublicToStore: ABTNodeClient.ResponseBlocklet;
3462
3452
  configNavigations: ABTNodeClient.ResponseBlocklet;
3463
- configOAuth: ABTNodeClient.ResponseBlocklet;
3453
+ configAuthentication: ABTNodeClient.ResponseBlocklet;
3454
+ configDidConnect: ABTNodeClient.ResponseBlocklet;
3464
3455
  configNotification: ABTNodeClient.ResponseBlocklet;
3465
3456
  configVault: ABTNodeClient.ResponseConfigVault;
3466
3457
  sendEmail: ABTNodeClient.GeneralResponse;
@@ -3487,7 +3478,6 @@ declare namespace ABTNodeClient {
3487
3478
  updateAutoCheckUpdate: ABTNodeClient.GeneralResponse;
3488
3479
  updateBlockletSettings: ABTNodeClient.GeneralResponse;
3489
3480
  updateNodeInfo: ABTNodeClient.ResponseGetNodeInfo;
3490
- updateNodeRouting: ABTNodeClient.ResponseGetNodeInfo;
3491
3481
  upgradeNodeVersion: ABTNodeClient.ResponseUpgradeNodeVersion;
3492
3482
  restartServer: ABTNodeClient.ResponseRestartServer;
3493
3483
  resetNode: ABTNodeClient.ResponseResetNode;
@@ -3541,7 +3531,6 @@ declare namespace ABTNodeClient {
3541
3531
  addRoutingRule: ABTNodeClient.ResponseRoutingSite;
3542
3532
  updateRoutingRule: ABTNodeClient.ResponseRoutingSite;
3543
3533
  deleteRoutingRule: ABTNodeClient.ResponseRoutingSite;
3544
- takeRoutingSnapshot: ABTNodeClient.ResponseTakeRoutingSnapshot;
3545
3534
  updateCertificate: ABTNodeClient.ResponseUpdateNginxHttpsCert;
3546
3535
  addCertificate: ABTNodeClient.ResponseAddNginxHttpsCert;
3547
3536
  deleteCertificate: ABTNodeClient.ResponseDeleteNginxHttpsCert;
@@ -3958,8 +3947,6 @@ declare namespace ABTNodeClient {
3958
3947
  getNotificationComponents: ABTNodeClient.ResponseNotificationComponents;
3959
3948
  resendNotification: ABTNodeClient.ResponseResendNotification;
3960
3949
  getRoutingSites: ABTNodeClient.ResponseGetRoutingSites;
3961
- getRoutingSnapshots: ABTNodeClient.ResponseGetRoutingSnapshots;
3962
- getSnapshotSites: ABTNodeClient.ResponseGetSnapshotSites;
3963
3950
  getRoutingProviders: ABTNodeClient.ResponseGetRoutingProviders;
3964
3951
  isDidDomain: ABTNodeClient.ResponseIsDidDomain;
3965
3952
  getCertificates: ABTNodeClient.ResponseGetCertificates;
@@ -4321,6 +4308,7 @@ declare namespace ABTNodeClient {
4321
4308
  interface ResponseGetBlocklets {
4322
4309
  code: ABTNodeClient.StatusCode;
4323
4310
  blocklets: ABTNodeClient.BlockletState[];
4311
+ paging: ABTNodeClient.Paging;
4324
4312
  }
4325
4313
 
4326
4314
  interface ResponseGetCertificates {
@@ -4419,11 +4407,6 @@ declare namespace ABTNodeClient {
4419
4407
  sites: ABTNodeClient.RoutingSite[];
4420
4408
  }
4421
4409
 
4422
- interface ResponseGetRoutingSnapshots {
4423
- code: ABTNodeClient.StatusCode;
4424
- snapshots: ABTNodeClient.RoutingSnapshot[];
4425
- }
4426
-
4427
4410
  interface ResponseGetSelectedResources {
4428
4411
  code: ABTNodeClient.StatusCode;
4429
4412
  resources: string[];
@@ -4434,11 +4417,6 @@ declare namespace ABTNodeClient {
4434
4417
  session: Record<string, any>;
4435
4418
  }
4436
4419
 
4437
- interface ResponseGetSnapshotSites {
4438
- code: ABTNodeClient.StatusCode;
4439
- sites: ABTNodeClient.RoutingSite[];
4440
- }
4441
-
4442
4420
  interface ResponseGetTrafficInsights {
4443
4421
  code: ABTNodeClient.StatusCode;
4444
4422
  list: ABTNodeClient.TrafficInsight[];
@@ -4644,11 +4622,6 @@ declare namespace ABTNodeClient {
4644
4622
  paging: ABTNodeClient.Paging;
4645
4623
  }
4646
4624
 
4647
- interface ResponseTakeRoutingSnapshot {
4648
- code: ABTNodeClient.StatusCode;
4649
- hash: string;
4650
- }
4651
-
4652
4625
  interface ResponseUpdateAccessKey {
4653
4626
  code: ABTNodeClient.StatusCode;
4654
4627
  data: ABTNodeClient.AccessKey;
@@ -4768,14 +4741,6 @@ declare namespace ABTNodeClient {
4768
4741
  corsAllowedOrigins: string[];
4769
4742
  }
4770
4743
 
4771
- interface RoutingSnapshot {
4772
- hash: string;
4773
- tree: string;
4774
- message: string;
4775
- author: string;
4776
- createdAt: number;
4777
- }
4778
-
4779
4744
  interface RuntimeInfo {
4780
4745
  pid: string;
4781
4746
  port: string;
@@ -5188,14 +5153,6 @@ declare namespace ABTNodeClient {
5188
5153
  input: ABTNodeClient.RequestGetRoutingSitesInput;
5189
5154
  }
5190
5155
 
5191
- interface GetRoutingSnapshotsParams {
5192
- input: ABTNodeClient.RequestGetRoutingSnapshotsInput;
5193
- }
5194
-
5195
- interface GetSnapshotSitesParams {
5196
- input: ABTNodeClient.RequestGetSnapshotSitesInput;
5197
- }
5198
-
5199
5156
  interface IsDidDomainParams {
5200
5157
  input: ABTNodeClient.RequestIsDidDomainInput;
5201
5158
  }
@@ -5457,7 +5414,7 @@ declare namespace ABTNodeClient {
5457
5414
  }
5458
5415
 
5459
5416
  interface InstallBlockletParams {
5460
- input: ABTNodeClient.RequestVersionedBlockletInput;
5417
+ input: ABTNodeClient.RequestInstallBlockletInput;
5461
5418
  }
5462
5419
 
5463
5420
  interface InstallComponentParams {
@@ -5512,8 +5469,12 @@ declare namespace ABTNodeClient {
5512
5469
  input: ABTNodeClient.RequestConfigNavigationsInput;
5513
5470
  }
5514
5471
 
5515
- interface ConfigOAuthParams {
5516
- input: ABTNodeClient.RequestConfigOAuthInput;
5472
+ interface ConfigAuthenticationParams {
5473
+ input: ABTNodeClient.RequestConfigAuthenticationInput;
5474
+ }
5475
+
5476
+ interface ConfigDidConnectParams {
5477
+ input: ABTNodeClient.RequestConfigDidConnectInput;
5517
5478
  }
5518
5479
 
5519
5480
  interface ConfigNotificationParams {
@@ -5620,10 +5581,6 @@ declare namespace ABTNodeClient {
5620
5581
  input: ABTNodeClient.NodeInfoInput;
5621
5582
  }
5622
5583
 
5623
- interface UpdateNodeRoutingParams {
5624
- input: ABTNodeClient.RequestNodeRoutingInput;
5625
- }
5626
-
5627
5584
  interface UpgradeNodeVersionParams {
5628
5585
  input: ABTNodeClient.RequestUpgradeNodeVersionInput;
5629
5586
  }
@@ -5832,10 +5789,6 @@ declare namespace ABTNodeClient {
5832
5789
  input: ABTNodeClient.RequestDeleteRoutingRuleInput;
5833
5790
  }
5834
5791
 
5835
- interface TakeRoutingSnapshotParams {
5836
- input: ABTNodeClient.RequestTakeRoutingSnapshotInput;
5837
- }
5838
-
5839
5792
  interface UpdateCertificateParams {
5840
5793
  input: ABTNodeClient.RequestUpdateNginxHttpsCertInput;
5841
5794
  }