@asaidimu/hestia 1.4.2 → 1.4.4

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/index.d.cts CHANGED
@@ -2,8 +2,8 @@ import { QueryDSL, QueryFilter, SortConfiguration } from "@asaidimu/query";
2
2
  import { ApiResponse } from "@asaidimu/network-client";
3
3
  import { Issue, SystemError } from "@asaidimu/utils-error";
4
4
  import { DataStore, ReactiveDataStore } from "@asaidimu/utils-store";
5
- import { SchemaDefinition } from "@asaidimu/utils-schema";
6
5
  import { SimplePersistence } from "@asaidimu/utils-persistence";
6
+ import { SchemaDefinition } from "@asaidimu/utils-schema";
7
7
  //#region core/types.d.ts
8
8
  interface DocumentMetadata$1 {
9
9
  checksum: string;
@@ -240,10 +240,11 @@ interface UserData {
240
240
  verified: boolean;
241
241
  permissions: string[];
242
242
  tenant_id: string;
243
+ password?: string;
243
244
  deleted?: string | null;
244
245
  }
245
246
  type UserIdentity = Document<UserData>;
246
- interface CreateUserRequest {
247
+ interface CreateUserRequest extends Record<string, unknown> {
247
248
  email: string;
248
249
  password: string;
249
250
  name: string;
@@ -338,6 +339,26 @@ declare const ROUTE_TABLE$1: {
338
339
  readonly route: "/system/auth/token/elevate";
339
340
  readonly arguments: readonly [];
340
341
  };
342
+ readonly "system:blobs:blob:abort": {
343
+ readonly method: "POST";
344
+ readonly route: "/system/blobs/blob/abort/{ns}";
345
+ readonly arguments: readonly ["ns"];
346
+ };
347
+ readonly "system:blobs:blob:begin": {
348
+ readonly method: "POST";
349
+ readonly route: "/system/blobs/blob/begin/{ns}";
350
+ readonly arguments: readonly ["ns"];
351
+ };
352
+ readonly "system:blobs:blob:chunk": {
353
+ readonly method: "POST";
354
+ readonly route: "/system/blobs/blob/chunk/{ns}";
355
+ readonly arguments: readonly ["ns"];
356
+ };
357
+ readonly "system:blobs:blob:complete": {
358
+ readonly method: "POST";
359
+ readonly route: "/system/blobs/blob/complete/{ns}";
360
+ readonly arguments: readonly ["ns"];
361
+ };
341
362
  readonly "system:blobs:blob:delete": {
342
363
  readonly method: "DELETE";
343
364
  readonly route: "/system/blobs/blob/delete/{ns}/{key}";
@@ -358,6 +379,11 @@ declare const ROUTE_TABLE$1: {
358
379
  readonly route: "/system/blobs/blob/list/{ns}";
359
380
  readonly arguments: readonly ["ns"];
360
381
  };
382
+ readonly "system:blobs:blob:progress": {
383
+ readonly method: "POST";
384
+ readonly route: "/system/blobs/blob/progress/{ns}";
385
+ readonly arguments: readonly ["ns"];
386
+ };
361
387
  readonly "system:blobs:blob:update": {
362
388
  readonly method: "PATCH";
363
389
  readonly route: "/system/blobs/blob/update/{ns}/{key}";
@@ -858,7 +884,7 @@ declare class HestiaUsers implements DocumentStore<UserData, QueryDSL<UserData>,
858
884
  options?: string;
859
885
  }): Promise<Document<UserData> | undefined>;
860
886
  delete(id: string): Promise<void>;
861
- create(_props: {
887
+ create({ data: payload }: {
862
888
  data: Partial<UserData>;
863
889
  }): Promise<Document<UserData> | undefined>;
864
890
  upload(_props: {
@@ -1201,18 +1227,281 @@ interface CreateNamespaceRequest {
1201
1227
  display_name?: string;
1202
1228
  ns?: string;
1203
1229
  }
1230
+ interface UploadBeginResult {
1231
+ session_id: string;
1232
+ key: string;
1233
+ offset: number;
1234
+ block_size: number;
1235
+ }
1236
+ interface UploadProgressResult {
1237
+ total: number;
1238
+ ranges: {
1239
+ start: number;
1240
+ end: number;
1241
+ }[];
1242
+ block_size: number;
1243
+ expected_size: number;
1244
+ }
1245
+ type UploadPhase = "hash" | "upload";
1246
+ interface UploadProgressInfo {
1247
+ /** Current phase: hashing blocks or uploading chunks. */
1248
+ phase: UploadPhase;
1249
+ /** Bytes pre-hashed during the hash phase. */
1250
+ hashed: number;
1251
+ /** Total bytes to pre-hash (== total). */
1252
+ hashTotal: number;
1253
+ /** Bytes persisted on the server. */
1254
+ uploaded: number;
1255
+ /** Total file size in bytes. */
1256
+ total: number;
1257
+ /** Overall progress in [0, 1]. */
1258
+ percent: number;
1259
+ /** EWMA-smoothed upload throughput in bytes/second. */
1260
+ bytesPerSecond: number;
1261
+ /** Estimated seconds remaining (0 when idle or done). */
1262
+ etaSeconds: number;
1263
+ /** SHA-256 of the concatenated block hashes, set once hashing completes. */
1264
+ fingerprint?: string;
1265
+ }
1266
+ type UploadStatus = "queued" | "hashing" | "uploading" | "paused" | "completing" | "completed" | "error" | "cancelled";
1267
+ interface UploadOptions {
1268
+ key?: string;
1269
+ contentType?: string;
1270
+ overwrite?: boolean;
1271
+ /** Preferred block size in bytes; the server may override it. */
1272
+ blockSize?: number;
1273
+ /** Files at or below this size use the direct single-shot upload. */
1274
+ threshold?: number;
1275
+ /** Initial max in-flight chunk concurrency (default 4, AIMD-adjustable). */
1276
+ concurrency?: number;
1277
+ /** Per-chunk retry count (default 3). */
1278
+ retries?: number;
1279
+ onProgress?: (info: UploadProgressInfo) => void;
1280
+ /** Aborts/cancels the upload (best-effort server session abort). */
1281
+ signal?: AbortSignal;
1282
+ /** Force the resumable/staged protocol even for small files. */
1283
+ forceStaged?: boolean;
1284
+ }
1285
+ /**
1286
+ * Serializable snapshot of an in-flight upload, used by the persistence
1287
+ * layer so an interrupted upload can be restored and resumed later. The
1288
+ * `file` reference is only preserved by structured-clone capable adapters
1289
+ * (e.g. IndexedDBPersistence); JSON-based adapters drop it, in which case
1290
+ * the caller must supply the same File again when resuming.
1291
+ */
1292
+ interface UploadJobSnapshot {
1293
+ id: string;
1294
+ key: string;
1295
+ name: string;
1296
+ size: number;
1297
+ type: string;
1298
+ file?: File;
1299
+ sessionId: string | null;
1300
+ blockSize: number;
1301
+ blockHashes: string[];
1302
+ fingerprint: string;
1303
+ uploadedBytes: number;
1304
+ status: UploadStatus;
1305
+ error: string | null;
1306
+ }
1307
+ interface UploadJobsState {
1308
+ jobs: Record<string, UploadJobSnapshot>;
1309
+ }
1310
+ /** Minimal persistence abstraction the upload engine writes snapshots to. */
1311
+ interface UploadPersistence {
1312
+ save(snapshot: UploadJobSnapshot): Promise<void> | void;
1313
+ load(): Promise<UploadJobSnapshot[]> | UploadJobSnapshot[];
1314
+ remove(id: string): Promise<void> | void;
1315
+ }
1316
+ interface UploadQueueOptions {
1317
+ /** Maximum concurrently running uploads (default 3). */
1318
+ maxConcurrent?: number;
1319
+ persistence?: UploadPersistence;
1320
+ }
1204
1321
  //#endregion
1205
1322
  //#region blobs/store.d.ts
1323
+ declare function getMissingRanges(ranges: {
1324
+ start: number;
1325
+ end: number;
1326
+ }[], fileSize: number): {
1327
+ start: number;
1328
+ end: number;
1329
+ }[];
1330
+ declare class AimdController {
1331
+ maxConcurrency: number;
1332
+ consecutiveSuccesses: number;
1333
+ lastBackoff: number;
1334
+ throughputEstimate: number;
1335
+ constructor(maxConcurrency: number, initialThroughput?: number);
1336
+ estThroughput(): number;
1337
+ recordThroughput(bps: number): void;
1338
+ recordSuccess(): void;
1339
+ recordFailure(): void;
1340
+ }
1341
+ /**
1342
+ * UploadJobStore adapts a `SimplePersistence<UploadJobsState>` into the
1343
+ * engine's `UploadPersistence` interface. Snapshots are stored keyed by
1344
+ * upload id; the backing store is optional and defaults to memory-only
1345
+ * (uploads are not resumed across sessions when omitted).
1346
+ */
1347
+ declare class UploadJobStore implements UploadPersistence {
1348
+ private readonly backing?;
1349
+ private state;
1350
+ private readonly instanceId;
1351
+ private readonly ready;
1352
+ constructor(backing?: SimplePersistence<UploadJobsState> | undefined);
1353
+ private hydrate;
1354
+ save(snapshot: UploadJobSnapshot): Promise<void>;
1355
+ load(): Promise<UploadJobSnapshot[]>;
1356
+ remove(id: string): Promise<void>;
1357
+ }
1358
+ /** The staged-upload transport methods ResumableUpload drives. */
1359
+ interface UploadTransport {
1360
+ beginUpload(props: {
1361
+ key: string;
1362
+ size: number;
1363
+ contentType?: string;
1364
+ blockSize?: number;
1365
+ overwrite?: boolean;
1366
+ }): Promise<UploadBeginResult>;
1367
+ uploadChunk(props: {
1368
+ sessionId: string;
1369
+ offset: number;
1370
+ data: Blob;
1371
+ sha256?: string;
1372
+ signal?: AbortSignal;
1373
+ }): Promise<number>;
1374
+ completeUpload(props: {
1375
+ sessionId: string;
1376
+ overwrite?: boolean;
1377
+ }): Promise<Document<BlobMeta> | undefined>;
1378
+ progress(sessionId: string): Promise<UploadProgressResult>;
1379
+ abort(sessionId: string): Promise<void>;
1380
+ }
1381
+ /**
1382
+ * ResumableUpload drives one staged blob upload end-to-end: streaming
1383
+ * pre-hash, session begin, missing-range resume, AIMD-bounded worker pool,
1384
+ * and completion. It is a faithful port of the prototype's job object.
1385
+ *
1386
+ * Lifecycle is explicit: construct in "queued", call `start()` to begin;
1387
+ * `pause()`/`resume()`/`cancel()`/`retry()` control it from there.
1388
+ *
1389
+ * `done` resolves when the *current attempt* reaches a terminal state
1390
+ * (completed → document, cancelled → undefined, error → rejection). It is a
1391
+ * getter over the live attempt, so after `retry()`/`resume()` from an error,
1392
+ * re-awaiting `done` yields the outcome of the new attempt instead of the
1393
+ * stale rejected promise.
1394
+ */
1395
+ declare class ResumableUpload {
1396
+ readonly id: string;
1397
+ status: UploadStatus;
1398
+ blockSize: number;
1399
+ sessionId: string | null;
1400
+ uploaded: number;
1401
+ hashed: number;
1402
+ hashTotal: number;
1403
+ bytesPerSecond: number;
1404
+ etaSeconds: number;
1405
+ fingerprint: string;
1406
+ error: Error | null;
1407
+ /** Internal hook (set by UploadQueue) fired on every status change. */
1408
+ onStatusChange?: (status: UploadStatus) => void;
1409
+ /**
1410
+ * Promise for the current attempt. Re-read after `retry()`/`resume()` to
1411
+ * await the restarted attempt rather than the settled one from before.
1412
+ */
1413
+ get done(): Promise<Document<BlobMeta> | undefined>;
1414
+ readonly total: number;
1415
+ private readonly key;
1416
+ private readonly file;
1417
+ private readonly options;
1418
+ private readonly transport;
1419
+ private readonly persistence?;
1420
+ private readonly aimd;
1421
+ private readonly startedAt;
1422
+ private blockHashes;
1423
+ private pauseRequested;
1424
+ private cancelRequested;
1425
+ private abortControllers;
1426
+ private running;
1427
+ private lastProgressTime;
1428
+ private lastProgressBytes;
1429
+ private speedSamples;
1430
+ private lastReportAt;
1431
+ private attempt;
1432
+ private resolveDone;
1433
+ private rejectDone;
1434
+ constructor(transport: UploadTransport, file: File, key: string, options: UploadOptions, persistence?: UploadPersistence, resumeFrom?: UploadJobSnapshot);
1435
+ private newAttempt;
1436
+ start(): void;
1437
+ resume(): void;
1438
+ retry(): void;
1439
+ pause(): void;
1440
+ cancel(): Promise<void>;
1441
+ private run;
1442
+ private finishCancelled;
1443
+ private chooseBlockSize;
1444
+ private hashBlocks;
1445
+ private runUploadPool;
1446
+ private failPool;
1447
+ private uploadOneChunk;
1448
+ private onChunkUploaded;
1449
+ private report;
1450
+ private snapshot;
1451
+ private persist;
1452
+ private setStatus;
1453
+ }
1454
+ /**
1455
+ * UploadQueue schedules multiple ResumableUploads with a concurrency cap,
1456
+ * mirroring the prototype's job queue (MAX_CONCURRENT_JOBS = 3).
1457
+ */
1458
+ declare class UploadQueue {
1459
+ private jobs;
1460
+ private queue;
1461
+ private active;
1462
+ private runningJobs;
1463
+ private readonly maxConcurrent;
1464
+ private readonly persistence?;
1465
+ private readonly transport;
1466
+ private readonly ns;
1467
+ constructor(transport: UploadTransport, ns: string, options?: UploadQueueOptions);
1468
+ enqueue(file: File, options: UploadOptions): ResumableUpload;
1469
+ private pump;
1470
+ /** Reconstruct uploads from persisted snapshots, paused and ready to resume. */
1471
+ restore(fileProvider?: (snapshot: UploadJobSnapshot) => File | undefined): ResumableUpload[];
1472
+ restoreAsync(fileProvider?: (snapshot: UploadJobSnapshot) => File | undefined): Promise<ResumableUpload[]>;
1473
+ pause(id: string): void;
1474
+ resume(id: string): void;
1475
+ retry(id: string): void;
1476
+ cancel(id: string): Promise<void>;
1477
+ pauseAll(): void;
1478
+ resumeAll(): void;
1479
+ clearCompleted(): void;
1480
+ all(): ResumableUpload[];
1481
+ summary(): {
1482
+ active: number;
1483
+ paused: number;
1484
+ done: number;
1485
+ cancelled: number;
1486
+ failed: number;
1487
+ totalBytes: number;
1488
+ uploadedBytes: number;
1489
+ bytesPerSecond: number;
1490
+ etaSeconds: number;
1491
+ };
1492
+ }
1206
1493
  declare class BlobNamespace implements DocumentStore<BlobMeta, QueryDSL<BlobMeta>, string, QueryDSL<BlobMeta>, Record<string, unknown>, string, Record<string, any>, Record<string, unknown>, {
1207
1494
  key: string;
1208
1495
  contentType?: string;
1209
1496
  }, Record<string, unknown>> {
1210
1497
  private client;
1211
1498
  private ns;
1499
+ private persistence?;
1212
1500
  private pagerOptions;
1213
1501
  private pager;
1214
1502
  private prefixFilter;
1215
- constructor(client: Transport, ns: string);
1503
+ private _queue?;
1504
+ constructor(client: Transport, ns: string, persistence?: UploadPersistence | undefined);
1216
1505
  name(): string;
1217
1506
  setPrefix(prefix: string): void;
1218
1507
  find(query?: QueryDSL<BlobMeta>): Promise<Page<BlobMeta>>;
@@ -1228,11 +1517,33 @@ declare class BlobNamespace implements DocumentStore<BlobMeta, QueryDSL<BlobMeta
1228
1517
  list(options?: QueryDSL<BlobMeta>): Promise<Page<BlobMeta>>;
1229
1518
  upload(props: {
1230
1519
  file: File;
1231
- options?: {
1232
- key?: string;
1233
- contentType?: string;
1234
- };
1520
+ options?: UploadOptions;
1235
1521
  }): Promise<Document<BlobMeta> | undefined>;
1522
+ /** Create a ResumableUpload controller without starting it. */
1523
+ createUpload(file: File, options?: UploadOptions): ResumableUpload;
1524
+ /** Namespace-scoped queue (created lazily). */
1525
+ queue(options?: UploadQueueOptions): UploadQueue;
1526
+ private uploadDirect;
1527
+ beginUpload(props: {
1528
+ key: string;
1529
+ size: number;
1530
+ contentType?: string;
1531
+ blockSize?: number;
1532
+ overwrite?: boolean;
1533
+ }): Promise<UploadBeginResult>;
1534
+ uploadChunk(props: {
1535
+ sessionId: string;
1536
+ offset: number;
1537
+ data: Blob;
1538
+ sha256?: string;
1539
+ signal?: AbortSignal;
1540
+ }): Promise<number>;
1541
+ completeUpload(props: {
1542
+ sessionId: string;
1543
+ overwrite?: boolean;
1544
+ }): Promise<Document<BlobMeta> | undefined>;
1545
+ progress(sessionId: string): Promise<UploadProgressResult>;
1546
+ abort(sessionId: string): Promise<void>;
1236
1547
  subscribe(_scope: string, _callback: (event: StoreEvent) => void): Promise<() => void>;
1237
1548
  notify(_event: StoreEvent): Promise<void>;
1238
1549
  stream(_options: Record<string, unknown>, _onStreamChange: () => void): {
@@ -1248,8 +1559,9 @@ declare class BlobNamespace implements DocumentStore<BlobMeta, QueryDSL<BlobMeta
1248
1559
  }
1249
1560
  declare class HestiaBlobClient {
1250
1561
  private client;
1562
+ private uploadPersistence?;
1251
1563
  private apiPrefix;
1252
- constructor(client: Transport, apiPrefix?: string);
1564
+ constructor(client: Transport, apiPrefix?: string, uploadPersistence?: UploadPersistence | undefined);
1253
1565
  namespaces(): Promise<NamespaceInfo[]>;
1254
1566
  createNamespace(data: CreateNamespaceRequest): Promise<NamespaceInfo>;
1255
1567
  deleteNamespace(ns: string): Promise<void>;
@@ -1704,6 +2016,26 @@ declare const ROUTE_TABLE: {
1704
2016
  readonly route: "/system/auth/token/elevate";
1705
2017
  readonly arguments: readonly [];
1706
2018
  };
2019
+ readonly "system:blobs:blob:abort": {
2020
+ readonly method: "POST";
2021
+ readonly route: "/system/blobs/blob/abort/{ns}";
2022
+ readonly arguments: readonly ["ns"];
2023
+ };
2024
+ readonly "system:blobs:blob:begin": {
2025
+ readonly method: "POST";
2026
+ readonly route: "/system/blobs/blob/begin/{ns}";
2027
+ readonly arguments: readonly ["ns"];
2028
+ };
2029
+ readonly "system:blobs:blob:chunk": {
2030
+ readonly method: "POST";
2031
+ readonly route: "/system/blobs/blob/chunk/{ns}";
2032
+ readonly arguments: readonly ["ns"];
2033
+ };
2034
+ readonly "system:blobs:blob:complete": {
2035
+ readonly method: "POST";
2036
+ readonly route: "/system/blobs/blob/complete/{ns}";
2037
+ readonly arguments: readonly ["ns"];
2038
+ };
1707
2039
  readonly "system:blobs:blob:delete": {
1708
2040
  readonly method: "DELETE";
1709
2041
  readonly route: "/system/blobs/blob/delete/{ns}/{key}";
@@ -1724,6 +2056,11 @@ declare const ROUTE_TABLE: {
1724
2056
  readonly route: "/system/blobs/blob/list/{ns}";
1725
2057
  readonly arguments: readonly ["ns"];
1726
2058
  };
2059
+ readonly "system:blobs:blob:progress": {
2060
+ readonly method: "POST";
2061
+ readonly route: "/system/blobs/blob/progress/{ns}";
2062
+ readonly arguments: readonly ["ns"];
2063
+ };
1727
2064
  readonly "system:blobs:blob:update": {
1728
2065
  readonly method: "PATCH";
1729
2066
  readonly route: "/system/blobs/blob/update/{ns}/{key}";
@@ -2112,6 +2449,7 @@ interface HestiaConfig {
2112
2449
  baseUrl: string;
2113
2450
  apiPrefix?: string;
2114
2451
  persistence?: SimplePersistence<AuthState>;
2452
+ uploadPersistence?: UploadPersistence;
2115
2453
  transport?: Transport;
2116
2454
  }
2117
2455
  interface AuthState {
@@ -2163,4 +2501,4 @@ interface ArrayPagerOptions<T extends Record<string, any>, F = any> {
2163
2501
  }
2164
2502
  declare function createArrayPager<T extends Record<string, any>, F = any>(options: ArrayPagerOptions<T, F>): PagedData<T>;
2165
2503
  //#endregion
2166
- export { APIKey, APIKeyWithSecret, ArrayPagerOptions, AuditEntry, Binding, BlobDocument, BlobMeta, BlobNamespace, BootstrapPasswordRequest, ChangePasswordRequest, CollectionDocument, CollectionMeta, CreateKeyRequest, CreateNamespaceRequest, CreatePolicyRequest, CreateRuleRequest, CreateSchedulePayload, CreateUserRequest, DispatchInput, Document, DocumentStore, FetchResult, HestiaAuth, HestiaBlobClient, HestiaClient, HestiaCollection, HestiaCollections, HestiaKeyStore, HestiaLogs, HestiaNetworkClient, HestiaNotificationStore, HestiaOperations, HestiaPolicies, HestiaResponse, HestiaRules, HestiaScheduleStore, HestiaSettingStore, HestiaUsers, HttpTransport, IdentityProvider, ListBlobsRequest, LogFilter, LoginRequest, LoginResult, NamespaceInfo, Notification, Page, PagedData, PagerRefreshOptions, PaginationInfo, Policy, PolicyRule, RateLimitConfig, RegisterRequest, ReloadResult, RequestLogEntry, RequestOptions, RuleNode, Schedule, ServerHealth, SetPolicyEnabledRequest, SettingDocument, StoreEvent, StreamHandlers, StreamOptions, ThrottleAction, ThrottleConfig, Transport, UnreadCount, UpdateKeyRequest, UpdatePolicyRequest, UpdatePolicyRuleRequest, UpdateRuleRequest, UpdateSchedulePayload, UpdateUserRequest, UserData, UserIdentity, ValidateRuleRequest, ValidateRuleResult, WailsTransport, createArrayPager, createPagedController, internalError, notFound, parseErrorBody, permissionDenied, toSystemError };
2504
+ export { APIKey, APIKeyWithSecret, AimdController, ArrayPagerOptions, AuditEntry, Binding, BlobDocument, BlobMeta, BlobNamespace, BootstrapPasswordRequest, ChangePasswordRequest, CollectionDocument, CollectionMeta, CreateKeyRequest, CreateNamespaceRequest, CreatePolicyRequest, CreateRuleRequest, CreateSchedulePayload, CreateUserRequest, DispatchInput, Document, DocumentStore, FetchResult, HestiaAuth, HestiaBlobClient, HestiaClient, HestiaCollection, HestiaCollections, HestiaKeyStore, HestiaLogs, HestiaNetworkClient, HestiaNotificationStore, HestiaOperations, HestiaPolicies, HestiaResponse, HestiaRules, HestiaScheduleStore, HestiaSettingStore, HestiaUsers, HttpTransport, IdentityProvider, ListBlobsRequest, LogFilter, LoginRequest, LoginResult, NamespaceInfo, Notification, Page, PagedData, PagerRefreshOptions, PaginationInfo, Policy, PolicyRule, RateLimitConfig, RegisterRequest, ReloadResult, RequestLogEntry, RequestOptions, ResumableUpload, RuleNode, Schedule, ServerHealth, SetPolicyEnabledRequest, SettingDocument, StoreEvent, StreamHandlers, StreamOptions, ThrottleAction, ThrottleConfig, Transport, UnreadCount, UpdateKeyRequest, UpdatePolicyRequest, UpdatePolicyRuleRequest, UpdateRuleRequest, UpdateSchedulePayload, UpdateUserRequest, UploadBeginResult, UploadJobSnapshot, UploadJobStore, UploadJobsState, UploadOptions, UploadPersistence, UploadPhase, UploadProgressInfo, UploadProgressResult, UploadQueue, UploadQueueOptions, UploadStatus, UploadTransport, UserData, UserIdentity, ValidateRuleRequest, ValidateRuleResult, WailsTransport, createArrayPager, createPagedController, getMissingRanges, internalError, notFound, parseErrorBody, permissionDenied, toSystemError };