harperdb 4.5.7 → 4.6.0-alpha.1
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/README.md +22 -22
- package/bin/harperdb.js +79 -80
- package/bin/lite.js +77 -78
- package/config/yaml/defaultConfig.yaml +1 -0
- package/index.d.ts +8 -8
- package/index.js +5 -5
- package/json/systemSchema.json +13 -1
- package/launchServiceScripts/launchInstallNATSServer.js +2 -2
- package/launchServiceScripts/launchNatsIngestService.js +77 -78
- package/launchServiceScripts/launchNatsReplyService.js +77 -78
- package/launchServiceScripts/launchUpdateNodes4-0-0.js +77 -78
- package/npm-shrinkwrap.json +40 -40
- package/package.json +2 -2
- package/resources/DatabaseTransaction.d.ts +8 -8
- package/resources/ErrorResource.d.ts +2 -2
- package/resources/IterableEventQueue.d.ts +1 -1
- package/resources/RecordEncoder.d.ts +6 -6
- package/resources/Resource.d.ts +16 -16
- package/resources/ResourceInterface.d.ts +27 -12
- package/resources/Resources.d.ts +5 -5
- package/resources/Table.d.ts +72 -72
- package/resources/analytics/hostnames.d.ts +483 -0
- package/resources/analytics/metadata.d.ts +9 -0
- package/resources/analytics/read.d.ts +26 -0
- package/resources/{analytics.d.ts → analytics/write.d.ts} +33 -27
- package/resources/auditStore.d.ts +15 -15
- package/resources/crdt.d.ts +4 -4
- package/resources/databases.d.ts +99 -99
- package/resources/search.d.ts +8 -8
- package/resources/tracked.d.ts +6 -6
- package/resources/transaction.d.ts +3 -3
- package/resources/transactionBroadcast.d.ts +5 -5
- package/security/auth.d.ts +9 -0
- package/security/tokenAuthentication.d.ts +35 -0
- package/server/Server.d.ts +3 -2
- package/server/jobs/jobProcess.js +77 -78
- package/server/operationsServer.d.ts +30 -0
- package/server/replication/knownNodes.d.ts +35 -0
- package/server/replication/nodeIdMapping.d.ts +6 -0
- package/server/replication/replicationConnection.d.ts +58 -0
- package/server/replication/replicator.d.ts +65 -0
- package/server/replication/setNode.d.ts +15 -0
- package/server/replication/subscriptionManager.d.ts +13 -0
- package/server/serverHelpers/Headers.d.ts +2 -2
- package/server/serverHelpers/OperationFunctionObject.d.ts +8 -0
- package/server/serverHelpers/contentTypes.d.ts +7 -7
- package/server/serverHelpers/serverUtilities.d.ts +23 -0
- package/server/status.d.ts +12 -0
- package/server/threads/threadServer.js +78 -79
- package/studio/build-local/asset-manifest.json +33 -33
- package/studio/build-local/index.html +1 -1
- package/studio/build-local/static/js/{153.4789ff87.chunk.js → 101.de926db6.chunk.js} +2 -2
- package/studio/build-local/static/js/{833.52829e9a.chunk.js → 833.475ee615.chunk.js} +1 -1
- package/studio/build-local/static/js/{browse-csvupload.952e3db5.chunk.js → browse-csvupload.cfcf1c79.chunk.js} +1 -1
- package/studio/build-local/static/js/{browse-datatable.571e41b5.chunk.js → browse-datatable.85de5169.chunk.js} +1 -1
- package/studio/build-local/static/js/{browse-entitymanager.f32bbc12.chunk.js → browse-entitymanager.dddb5da8.chunk.js} +1 -1
- package/studio/build-local/static/js/{browse-jsonviewer.f7c88853.chunk.js → browse-jsonviewer.059b4189.chunk.js} +1 -1
- package/studio/build-local/static/js/{custom-functions.fce857f6.chunk.js → custom-functions.2c2e634c.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-cluster.989f54d0.chunk.js → instance-cluster.daef89d8.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-config.41346a1c.chunk.js → instance-config.ba645bea.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-logs.70be591c.chunk.js → instance-logs.33ace406.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-roles.00c558b1.chunk.js → instance-roles.0276d83f.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-status.3e2a5f15.chunk.js → instance-status.2f3aaaf7.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-users-datatable.536f91b4.chunk.js → instance-users-datatable.f75cf637.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-users-edit.4d42f079.chunk.js → instance-users-edit.3a3bc76f.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance-users.c8146c89.chunk.js → instance-users.70ee5db2.chunk.js} +1 -1
- package/studio/build-local/static/js/{instance.25742318.chunk.js → instance.0bbb9d0e.chunk.js} +1 -1
- package/studio/build-local/static/js/{instances.a3850b41.chunk.js → instances.e86d288b.chunk.js} +1 -1
- package/studio/build-local/static/js/main.24eae3d8.js +2 -0
- package/studio/build-local/static/js/{offline-app.ac5f38b0.chunk.js → offline-app.edb4be85.chunk.js} +1 -1
- package/studio/build-local/static/js/{online-app.3d563d0e.chunk.js → online-app.45440c0e.chunk.js} +1 -1
- package/studio/build-local/static/js/{organization-billing.8a2cd6ec.chunk.js → organization-billing.3ff0b995.chunk.js} +1 -1
- package/studio/build-local/static/js/{organization-users.138f50eb.chunk.js → organization-users.710f96e7.chunk.js} +1 -1
- package/studio/build-local/static/js/{organization.000a9206.chunk.js → organization.1aa3da8e.chunk.js} +1 -1
- package/studio/build-local/static/js/{organizations.73f9a526.chunk.js → organizations.259e09d3.chunk.js} +1 -1
- package/studio/build-local/static/js/{profile.9dc96422.chunk.js → profile.c1840496.chunk.js} +1 -1
- package/studio/build-local/static/js/{resetPassword.6198e026.chunk.js → resetPassword.37769fbe.chunk.js} +1 -1
- package/studio/build-local/static/js/{roles-jsonviewer.7ad3544a.chunk.js → roles-jsonviewer.b8cc0628.chunk.js} +1 -1
- package/studio/build-local/static/js/{signIn.c7a547bb.chunk.js → signIn.061b438e.chunk.js} +1 -1
- package/studio/build-local/static/js/{signUp.9c346cab.chunk.js → signUp.cabe1d80.chunk.js} +1 -1
- package/studio/build-local/static/js/{structure-reloader.71285544.chunk.js → structure-reloader.fd360bad.chunk.js} +1 -1
- package/studio/build-local/static/js/{topnav.491ca3cb.chunk.js → topnav.1fce7836.chunk.js} +1 -1
- package/studio/build-local/static/js/{updatePassword.452f5cbc.chunk.js → updatePassword.dc41627a.chunk.js} +1 -1
- package/utility/hdbTerms.d.ts +7 -0
- package/utility/password.d.ts +20 -0
- package/utility/scripts/restartHdb.js +77 -78
- package/studio/build-local/static/js/main.4ff4a176.js +0 -2
- /package/studio/build-local/static/js/{153.4789ff87.chunk.js.LICENSE.txt → 101.de926db6.chunk.js.LICENSE.txt} +0 -0
- /package/studio/build-local/static/js/{main.4ff4a176.js.LICENSE.txt → main.24eae3d8.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
interface JWTRSAKeys {
|
|
2
|
+
publicKey: string;
|
|
3
|
+
privateKey: string;
|
|
4
|
+
passphrase: string;
|
|
5
|
+
}
|
|
6
|
+
interface AuthObject {
|
|
7
|
+
username?: string;
|
|
8
|
+
password?: string;
|
|
9
|
+
role?: string;
|
|
10
|
+
expires_in?: string | number;
|
|
11
|
+
}
|
|
12
|
+
interface TokenObject {
|
|
13
|
+
refresh_token: string;
|
|
14
|
+
}
|
|
15
|
+
interface JWTTokens {
|
|
16
|
+
operation_token: string;
|
|
17
|
+
refresh_token?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function getJWTRSAKeys(): Promise<JWTRSAKeys>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates a new operation token and refresh token.
|
|
22
|
+
* If there is no username and password, the hdb_user making the request is used in the token.
|
|
23
|
+
* An optional role can be provided which will be saved in the token payload.
|
|
24
|
+
* The token expires in the time specified in the expires_in field or the default time.
|
|
25
|
+
* @param authObj
|
|
26
|
+
*/
|
|
27
|
+
export declare function createTokens(authObj: AuthObject): Promise<JWTTokens>;
|
|
28
|
+
/**
|
|
29
|
+
* Refreshes the operation token using the refresh token.
|
|
30
|
+
* @param tokenObj
|
|
31
|
+
*/
|
|
32
|
+
export declare function refreshOperationToken(tokenObj: TokenObject): Promise<JWTTokens>;
|
|
33
|
+
export declare function validateOperationToken(token: string): Promise<any>;
|
|
34
|
+
export declare function validateRefreshToken(token: string): Promise<any>;
|
|
35
|
+
export {};
|
package/server/Server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Socket } from 'net';
|
|
2
|
-
import type { Value } from '../resources/analytics';
|
|
2
|
+
import type { Value } from '../resources/analytics/write.ts';
|
|
3
3
|
/**
|
|
4
4
|
* This is the central interface by which we define entry points for different server protocol plugins to listen for
|
|
5
5
|
* incoming connections and requests.
|
|
@@ -18,9 +18,10 @@ interface Server {
|
|
|
18
18
|
shards: Map<number, string[]>;
|
|
19
19
|
hostname: string;
|
|
20
20
|
}
|
|
21
|
-
interface ServerOptions {
|
|
21
|
+
export interface ServerOptions {
|
|
22
22
|
port?: number;
|
|
23
23
|
securePort?: number;
|
|
24
|
+
isOperationsServer?: boolean;
|
|
24
25
|
}
|
|
25
26
|
interface WebSocketOptions extends ServerOptions {
|
|
26
27
|
subProtocol: string;
|