@tinycloud/sdk-core 2.4.0-beta.16 → 2.4.0-beta.19

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/index.cjs CHANGED
@@ -94,6 +94,7 @@ __export(index_exports, {
94
94
  SpaceErrorCodes: () => SpaceErrorCodes,
95
95
  SpaceService: () => SpaceService,
96
96
  TinyCloud: () => TinyCloud,
97
+ TinyCloudDebugLogger: () => import_sdk_services7.TinyCloudDebugLogger,
97
98
  UnsupportedFeatureError: () => UnsupportedFeatureError,
98
99
  VAULT_PERMISSION_SERVICE: () => VAULT_PERMISSION_SERVICE,
99
100
  VaultHeaders: () => import_sdk_services7.VaultHeaders,
@@ -119,6 +120,7 @@ __export(index_exports, {
119
120
  canonicalizeSecretScope: () => import_sdk_services7.canonicalizeSecretScope,
120
121
  checkDecryptInvocationInput: () => import_sdk_services7.checkDecryptInvocationInput,
121
122
  checkNodeInfo: () => checkNodeInfo,
123
+ clearTinyCloudDebugLogs: () => import_sdk_services7.clearTinyCloudDebugLogs,
122
124
  composeManifestRequest: () => composeManifestRequest,
123
125
  createCapabilityKeyRegistry: () => createCapabilityKeyRegistry,
124
126
  createSharingService: () => createSharingService,
@@ -131,7 +133,9 @@ __export(index_exports, {
131
133
  deriveSignedReceiverKey: () => import_sdk_services7.deriveSignedReceiverKey,
132
134
  didCacheKey: () => didCacheKey,
133
135
  didEquals: () => didEquals,
136
+ disableTinyCloudDebug: () => import_sdk_services7.disableTinyCloudDebug,
134
137
  discoverNetwork: () => import_sdk_services7.discoverNetwork,
138
+ enableTinyCloudDebug: () => import_sdk_services7.enableTinyCloudDebug,
135
139
  encryptToNetwork: () => import_sdk_services7.encryptToNetwork,
136
140
  encryptionBase64Decode: () => import_sdk_services7.base64Decode,
137
141
  encryptionBase64Encode: () => import_sdk_services7.base64Encode,
@@ -146,9 +150,11 @@ __export(index_exports, {
146
150
  fetchLocationRecord: () => fetchLocationRecord,
147
151
  fetchPeerId: () => fetchPeerId,
148
152
  generateRandomReceiverKey: () => import_sdk_services7.generateRandomReceiverKey,
153
+ getTinyCloudDebugLogs: () => import_sdk_services7.getTinyCloudDebugLogs,
149
154
  hexDecode: () => import_sdk_services7.hexDecode,
150
155
  hexEncode: () => import_sdk_services7.hexEncode,
151
156
  httpUrlToMultiaddr: () => httpUrlToMultiaddr,
157
+ installTinyCloudDebugGlobals: () => import_sdk_services7.installTinyCloudDebugGlobals,
152
158
  isCapabilitySubset: () => isCapabilitySubset,
153
159
  isEvmAddress: () => isEvmAddress,
154
160
  isNetworkId: () => import_sdk_services7.isNetworkId,
@@ -182,6 +188,7 @@ __export(index_exports, {
182
188
  serviceError: () => import_sdk_services7.serviceError,
183
189
  signLocationRecord: () => signLocationRecord,
184
190
  submitHostDelegation: () => submitHostDelegation,
191
+ tinyCloudDebugLogger: () => import_sdk_services7.tinyCloudDebugLogger,
185
192
  validateClientSession: () => validateClientSession,
186
193
  validateEnvelope: () => import_sdk_services7.validateEnvelope,
187
194
  validateLocationRecord: () => validateLocationRecord,
@@ -3324,6 +3331,13 @@ var AccountService = class {
3324
3331
  }
3325
3332
  };
3326
3333
  this.index = {
3334
+ ensure: async () => {
3335
+ const dbResult = this.accountDb();
3336
+ if (!dbResult.ok) return dbResult;
3337
+ const schema = await this.ensureAccountIndex(dbResult.data);
3338
+ if (!schema.ok) return schema;
3339
+ return (0, import_sdk_services5.ok)({ database: ACCOUNT_INDEX_DB });
3340
+ },
3327
3341
  rebuild: async () => {
3328
3342
  const dbResult = this.accountDb();
3329
3343
  if (!dbResult.ok) return dbResult;
@@ -6355,6 +6369,7 @@ function parseRecapCapabilities(parseWasm, siwe) {
6355
6369
  SpaceErrorCodes,
6356
6370
  SpaceService,
6357
6371
  TinyCloud,
6372
+ TinyCloudDebugLogger,
6358
6373
  UnsupportedFeatureError,
6359
6374
  VAULT_PERMISSION_SERVICE,
6360
6375
  VaultHeaders,
@@ -6380,6 +6395,7 @@ function parseRecapCapabilities(parseWasm, siwe) {
6380
6395
  canonicalizeSecretScope,
6381
6396
  checkDecryptInvocationInput,
6382
6397
  checkNodeInfo,
6398
+ clearTinyCloudDebugLogs,
6383
6399
  composeManifestRequest,
6384
6400
  createCapabilityKeyRegistry,
6385
6401
  createSharingService,
@@ -6392,7 +6408,9 @@ function parseRecapCapabilities(parseWasm, siwe) {
6392
6408
  deriveSignedReceiverKey,
6393
6409
  didCacheKey,
6394
6410
  didEquals,
6411
+ disableTinyCloudDebug,
6395
6412
  discoverNetwork,
6413
+ enableTinyCloudDebug,
6396
6414
  encryptToNetwork,
6397
6415
  encryptionBase64Decode,
6398
6416
  encryptionBase64Encode,
@@ -6407,9 +6425,11 @@ function parseRecapCapabilities(parseWasm, siwe) {
6407
6425
  fetchLocationRecord,
6408
6426
  fetchPeerId,
6409
6427
  generateRandomReceiverKey,
6428
+ getTinyCloudDebugLogs,
6410
6429
  hexDecode,
6411
6430
  hexEncode,
6412
6431
  httpUrlToMultiaddr,
6432
+ installTinyCloudDebugGlobals,
6413
6433
  isCapabilitySubset,
6414
6434
  isEvmAddress,
6415
6435
  isNetworkId,
@@ -6443,6 +6463,7 @@ function parseRecapCapabilities(parseWasm, siwe) {
6443
6463
  serviceError,
6444
6464
  signLocationRecord,
6445
6465
  submitHostDelegation,
6466
+ tinyCloudDebugLogger,
6446
6467
  validateClientSession,
6447
6468
  validateEnvelope,
6448
6469
  validateLocationRecord,