harperdb 4.7.0-beta.2 → 4.7.0-beta.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.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/bin/harperdb.js +79 -79
  3. package/bin/lite.js +77 -77
  4. package/config/yaml/defaultConfig.yaml +1 -1
  5. package/json/systemSchema.json +30 -0
  6. package/launchServiceScripts/launchNatsIngestService.js +77 -77
  7. package/launchServiceScripts/launchNatsReplyService.js +77 -77
  8. package/launchServiceScripts/launchUpdateNodes4-0-0.js +77 -77
  9. package/npm-shrinkwrap.json +302 -294
  10. package/package.json +3 -1
  11. package/resources/RequestTarget.d.ts +2 -0
  12. package/resources/Table.d.ts +34 -34
  13. package/resources/analytics/hostnames.d.ts +5 -477
  14. package/resources/blob.d.ts +6 -3
  15. package/resources/databases.d.ts +1 -478
  16. package/resources/openApi.d.ts +27 -0
  17. package/security/certificateVerification/certificateVerificationSource.d.ts +18 -0
  18. package/security/certificateVerification/configValidation.d.ts +14 -0
  19. package/security/certificateVerification/crlVerification.d.ts +29 -0
  20. package/security/certificateVerification/index.d.ts +31 -0
  21. package/security/certificateVerification/ocspVerification.d.ts +23 -0
  22. package/security/certificateVerification/types.d.ts +105 -0
  23. package/security/certificateVerification/verificationConfig.d.ts +29 -0
  24. package/security/certificateVerification/verificationUtils.d.ts +79 -0
  25. package/server/jobs/jobProcess.js +77 -77
  26. package/server/operationsServer.d.ts +13 -3
  27. package/server/replication/replicator.d.ts +6 -0
  28. package/server/threads/threadServer.js +77 -77
  29. package/studio/web/assets/index-BsZJSz4i.js +1 -0
  30. package/studio/web/assets/index-BwVqw4zI.js +453 -0
  31. package/studio/web/assets/index-OpljqLtb.css +4 -0
  32. package/studio/web/assets/profiler-CW5dV_9B.js +1 -0
  33. package/studio/web/assets/startRecording--YUj61DT.js +2 -0
  34. package/studio/web/index.html +2 -2
  35. package/studio/web/running.html +90 -0
  36. package/utility/hdbTerms.d.ts +22 -3
  37. package/utility/scripts/restartHdb.js +77 -77
  38. package/security/certificateVerification.d.ts +0 -87
  39. package/studio/web/assets/index-B797owPM.js +0 -1
  40. package/studio/web/assets/index-CXaPu3wc.js +0 -445
  41. package/studio/web/assets/index-Dj8x6atJ.css +0 -4
  42. package/studio/web/assets/profiler-CgmzpljF.js +0 -1
  43. package/studio/web/assets/startRecording-DiD-ht9H.js +0 -2
  44. /package/security/{pkijs-ed25519-patch.d.ts → certificateVerification/pkijs-ed25519-patch.d.ts} +0 -0
@@ -2,29 +2,39 @@ import { type ServerOptions } from '../server/Server.ts';
2
2
  import type { OperationFunctionName } from './serverHelpers/serverUtilities.ts';
3
3
  import type { ParsedSqlObject } from '../sqlTranslator/index.js';
4
4
  import type { User } from '../resources/ResourceInterface.ts';
5
+ import { Resources } from '../resources/Resources.ts';
5
6
  export { operationsServer as hdbServer };
6
7
  export { operationsServer as start };
7
8
  /**
8
9
  * Builds a HarperDB server.
9
10
  */
10
- declare function operationsServer(options: ServerOptions): Promise<void>;
11
+ declare function operationsServer(options: ServerOptions & {
12
+ resources?: Resources;
13
+ }): Promise<void>;
11
14
  interface BaseOperationRequestBody {
12
15
  operation: OperationFunctionName;
13
16
  bypassAuth: boolean;
14
17
  hdb_user?: User;
18
+ hdbAuthHeader?: unknown;
19
+ bypass_auth?: boolean;
15
20
  password?: string;
16
21
  payload?: string;
17
22
  sql?: string;
18
23
  parsedSqlObject?: ParsedSqlObject;
24
+ [key: string]: unknown;
19
25
  }
20
26
  type SearchOperation = BaseOperationRequestBody;
21
27
  interface SearchOperationRequestBody {
22
- searchOperation: SearchOperation;
28
+ search_operation: SearchOperation;
23
29
  }
24
- export type OperationRequestBody = BaseOperationRequestBody & SearchOperationRequestBody;
30
+ export type OperationRequestBody = BaseOperationRequestBody & Partial<SearchOperationRequestBody>;
25
31
  export interface OperationRequest {
26
32
  body: OperationRequestBody;
27
33
  }
28
34
  export interface OperationResult {
29
35
  message?: any;
30
36
  }
37
+ export declare function calculateRestHttpURL(httpPort: string | undefined, httpSecurePort: string | undefined, req: {
38
+ hostname: string;
39
+ protocol: string;
40
+ }): string;
@@ -12,6 +12,12 @@ export { startOnMainThread } from './subscriptionManager.ts';
12
12
  import type { Database } from 'lmdb';
13
13
  export declare const servers: any[];
14
14
  export declare const replicationCertificateAuthorities: Set<unknown>;
15
+ /**
16
+ * Build mTLS configuration for replication server with certificate verification support
17
+ * @param replicationOptions - Replication configuration options
18
+ * @returns mTLS configuration object (always enabled for replication)
19
+ */
20
+ export declare function buildReplicationMtlsConfig(replicationOptions: any): any;
15
21
  /**
16
22
  * Start the replication server. This will start a WebSocket server that will accept replication requests from other nodes.
17
23
  * @param options