@asaidimu/hestia 1.4.5 → 1.4.7
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.cjs +3 -3
- package/index.d.cts +118 -120
- package/index.d.mts +76 -78
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -233,7 +233,7 @@ interface DocumentStore<T extends Record<string, any>, TFindOptions = Record<str
|
|
|
233
233
|
page(options: TPageOptions): PagedData<T>;
|
|
234
234
|
}
|
|
235
235
|
//#endregion
|
|
236
|
-
//#region system/
|
|
236
|
+
//#region system/users/types.d.ts
|
|
237
237
|
interface UserData {
|
|
238
238
|
email: string;
|
|
239
239
|
name: string;
|
|
@@ -299,11 +299,6 @@ declare const ROUTE_TABLE$1: {
|
|
|
299
299
|
readonly route: "/system/audit/log/export";
|
|
300
300
|
readonly arguments: readonly [];
|
|
301
301
|
};
|
|
302
|
-
readonly "system:audit:log:query": {
|
|
303
|
-
readonly method: "POST";
|
|
304
|
-
readonly route: "/system/audit/log/query";
|
|
305
|
-
readonly arguments: readonly [];
|
|
306
|
-
};
|
|
307
302
|
readonly "system:audit:log:stream": {
|
|
308
303
|
readonly method: "GET";
|
|
309
304
|
readonly route: "/system/audit/log/stream";
|
|
@@ -396,8 +391,8 @@ declare const ROUTE_TABLE$1: {
|
|
|
396
391
|
};
|
|
397
392
|
readonly "system:blobs:namespace:create": {
|
|
398
393
|
readonly method: "POST";
|
|
399
|
-
readonly route: "/system/blobs/namespace/create";
|
|
400
|
-
readonly arguments: readonly [];
|
|
394
|
+
readonly route: "/system/blobs/namespace/create/{ns}";
|
|
395
|
+
readonly arguments: readonly ["ns"];
|
|
401
396
|
};
|
|
402
397
|
readonly "system:blobs:namespace:delete": {
|
|
403
398
|
readonly method: "DELETE";
|
|
@@ -409,6 +404,11 @@ declare const ROUTE_TABLE$1: {
|
|
|
409
404
|
readonly route: "/system/blobs/namespace/list";
|
|
410
405
|
readonly arguments: readonly [];
|
|
411
406
|
};
|
|
407
|
+
readonly "system:collections:audit_log:query": {
|
|
408
|
+
readonly method: "POST";
|
|
409
|
+
readonly route: "/system/collections/audit_log/query";
|
|
410
|
+
readonly arguments: readonly [];
|
|
411
|
+
};
|
|
412
412
|
readonly "system:collections:collection:create": {
|
|
413
413
|
readonly method: "POST";
|
|
414
414
|
readonly route: "/system/collections/collection/create";
|
|
@@ -454,6 +454,11 @@ declare const ROUTE_TABLE$1: {
|
|
|
454
454
|
readonly route: "/system/collections/document/update/{name}/{doc_id}";
|
|
455
455
|
readonly arguments: readonly ["name", "doc_id"];
|
|
456
456
|
};
|
|
457
|
+
readonly "system:collections:user:query": {
|
|
458
|
+
readonly method: "POST";
|
|
459
|
+
readonly route: "/system/collections/user/query";
|
|
460
|
+
readonly arguments: readonly [];
|
|
461
|
+
};
|
|
457
462
|
readonly "system:core:capability:list": {
|
|
458
463
|
readonly method: "GET";
|
|
459
464
|
readonly route: "/system/core/capability/list";
|
|
@@ -461,8 +466,8 @@ declare const ROUTE_TABLE$1: {
|
|
|
461
466
|
};
|
|
462
467
|
readonly "system:core:capability:set": {
|
|
463
468
|
readonly method: "PATCH";
|
|
464
|
-
readonly route: "/system/core/capability/set";
|
|
465
|
-
readonly arguments: readonly [];
|
|
469
|
+
readonly route: "/system/core/capability/set/{name}";
|
|
470
|
+
readonly arguments: readonly ["name"];
|
|
466
471
|
};
|
|
467
472
|
readonly "system:core:docs:list": {
|
|
468
473
|
readonly method: "GET";
|
|
@@ -591,8 +596,8 @@ declare const ROUTE_TABLE$1: {
|
|
|
591
596
|
};
|
|
592
597
|
readonly "system:schedules:schedule:update": {
|
|
593
598
|
readonly method: "PATCH";
|
|
594
|
-
readonly route: "/system/schedules/schedule/update";
|
|
595
|
-
readonly arguments: readonly [];
|
|
599
|
+
readonly route: "/system/schedules/schedule/update/{id}";
|
|
600
|
+
readonly arguments: readonly ["id"];
|
|
596
601
|
};
|
|
597
602
|
readonly "system:settings:delete": {
|
|
598
603
|
readonly method: "DELETE";
|
|
@@ -634,11 +639,6 @@ declare const ROUTE_TABLE$1: {
|
|
|
634
639
|
readonly route: "/system/users/user/get/{user_id}";
|
|
635
640
|
readonly arguments: readonly ["user_id"];
|
|
636
641
|
};
|
|
637
|
-
readonly "system:users:user:query": {
|
|
638
|
-
readonly method: "POST";
|
|
639
|
-
readonly route: "/system/users/user/query";
|
|
640
|
-
readonly arguments: readonly [];
|
|
641
|
-
};
|
|
642
642
|
readonly "system:users:user:update": {
|
|
643
643
|
readonly method: "PATCH";
|
|
644
644
|
readonly route: "/system/users/user/update/{user_id}";
|
|
@@ -829,7 +829,7 @@ interface PageOptions<T extends Record<string, any>> {
|
|
|
829
829
|
}
|
|
830
830
|
declare function createPagedController<T extends Record<string, any>>(collectionName: string, store: DataStore<any>, options: PageOptions<T>, find: (query: QueryDSL<T>) => Promise<Page<T>>): PagedData<T>;
|
|
831
831
|
//#endregion
|
|
832
|
-
//#region auth/types.d.ts
|
|
832
|
+
//#region system/auth/types.d.ts
|
|
833
833
|
interface LoginResult {
|
|
834
834
|
user: UserIdentity;
|
|
835
835
|
}
|
|
@@ -851,7 +851,7 @@ interface BootstrapPasswordRequest {
|
|
|
851
851
|
email: string;
|
|
852
852
|
}
|
|
853
853
|
//#endregion
|
|
854
|
-
//#region auth/store.d.ts
|
|
854
|
+
//#region system/auth/store.d.ts
|
|
855
855
|
declare class HestiaAuth {
|
|
856
856
|
private client;
|
|
857
857
|
private provider;
|
|
@@ -869,7 +869,7 @@ declare class HestiaAuth {
|
|
|
869
869
|
bootstrap(key: string, password: string, email: string): Promise<void>;
|
|
870
870
|
}
|
|
871
871
|
//#endregion
|
|
872
|
-
//#region system/
|
|
872
|
+
//#region system/users/store.d.ts
|
|
873
873
|
declare class HestiaUsers implements DocumentStore<UserData, QueryDSL<UserData>, string, QueryDSL<UserData>, Record<string, unknown>, string, string, Record<string, unknown>> {
|
|
874
874
|
private client;
|
|
875
875
|
private pagerOptions;
|
|
@@ -901,7 +901,7 @@ declare class HestiaUsers implements DocumentStore<UserData, QueryDSL<UserData>,
|
|
|
901
901
|
changePassword(userId: string, current: string, newPassword: string): Promise<void>;
|
|
902
902
|
}
|
|
903
903
|
//#endregion
|
|
904
|
-
//#region system/
|
|
904
|
+
//#region system/apikeys/types.d.ts
|
|
905
905
|
interface APIKey {
|
|
906
906
|
_id_: string;
|
|
907
907
|
name: string;
|
|
@@ -931,7 +931,7 @@ interface UpdateKeyRequest {
|
|
|
931
931
|
expiry?: string;
|
|
932
932
|
}
|
|
933
933
|
//#endregion
|
|
934
|
-
//#region system/
|
|
934
|
+
//#region system/apikeys/store.d.ts
|
|
935
935
|
declare class HestiaKeyStore implements DocumentStore<APIKey, QueryDSL<APIKey>, string, QueryDSL<APIKey>, Record<string, unknown>, string, string, Record<string, unknown>> {
|
|
936
936
|
private client;
|
|
937
937
|
private pager;
|
|
@@ -993,65 +993,31 @@ interface ThrottleConfig {
|
|
|
993
993
|
action?: ThrottleAction;
|
|
994
994
|
}
|
|
995
995
|
interface Policy {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
996
|
+
operation: string;
|
|
997
|
+
key: string;
|
|
998
|
+
rule: string;
|
|
999
999
|
enabled: boolean;
|
|
1000
1000
|
protected: boolean;
|
|
1001
1001
|
rateLimit?: RateLimitConfig;
|
|
1002
1002
|
throttle?: ThrottleConfig;
|
|
1003
1003
|
}
|
|
1004
1004
|
interface CreatePolicyRequest {
|
|
1005
|
-
|
|
1005
|
+
rule: string;
|
|
1006
1006
|
rateLimit?: RateLimitConfig;
|
|
1007
1007
|
throttle?: ThrottleConfig;
|
|
1008
1008
|
}
|
|
1009
1009
|
interface UpdatePolicyRuleRequest {
|
|
1010
|
-
|
|
1010
|
+
rule: string;
|
|
1011
1011
|
}
|
|
1012
1012
|
interface SetPolicyEnabledRequest {
|
|
1013
1013
|
enabled: boolean;
|
|
1014
1014
|
}
|
|
1015
1015
|
interface UpdatePolicyRequest {
|
|
1016
|
-
|
|
1016
|
+
rule?: string;
|
|
1017
1017
|
enabled?: boolean;
|
|
1018
1018
|
rateLimit?: RateLimitConfig | null;
|
|
1019
1019
|
throttle?: ThrottleConfig | null;
|
|
1020
1020
|
}
|
|
1021
|
-
//#endregion
|
|
1022
|
-
//#region system/policies/store.d.ts
|
|
1023
|
-
declare class HestiaPolicies implements DocumentStore<Policy, QueryDSL<Policy>, string, QueryDSL<Policy>, Record<string, unknown>, string, string, Record<string, unknown>> {
|
|
1024
|
-
private client;
|
|
1025
|
-
private pager;
|
|
1026
|
-
constructor(client: Transport);
|
|
1027
|
-
find(_query?: QueryDSL<Policy>): Promise<Page<Policy>>;
|
|
1028
|
-
query(qdsl: Record<string, unknown>): Promise<Page<Policy>>;
|
|
1029
|
-
list(_options?: QueryDSL<Policy>): Promise<Page<Policy>>;
|
|
1030
|
-
read(id: string): Promise<Document<Policy> | undefined>;
|
|
1031
|
-
create(props: {
|
|
1032
|
-
data: Partial<CreatePolicyRequest>;
|
|
1033
|
-
options?: string;
|
|
1034
|
-
}): Promise<Document<Policy> | undefined>;
|
|
1035
|
-
update(props: {
|
|
1036
|
-
data: UpdatePolicyRequest;
|
|
1037
|
-
options?: string;
|
|
1038
|
-
}): Promise<Document<Policy> | undefined>;
|
|
1039
|
-
setEnabled(name: string, enabled: boolean): Promise<Document<Policy>>;
|
|
1040
|
-
delete(_id: string): Promise<void>;
|
|
1041
|
-
upload(_props: {
|
|
1042
|
-
file: File;
|
|
1043
|
-
}): Promise<Document<Policy> | undefined>;
|
|
1044
|
-
subscribe(_scope: string, _callback: (event: StoreEvent) => void): Promise<() => void>;
|
|
1045
|
-
notify(_event: StoreEvent): Promise<void>;
|
|
1046
|
-
stream(_options: Record<string, unknown>, _onStreamChange: () => void): {
|
|
1047
|
-
stream: () => AsyncIterable<Document<Policy>>;
|
|
1048
|
-
cancel: () => void;
|
|
1049
|
-
status: () => "active" | "cancelled" | "completed";
|
|
1050
|
-
};
|
|
1051
|
-
page(_options?: Record<string, unknown>): PagedData<Policy>;
|
|
1052
|
-
}
|
|
1053
|
-
//#endregion
|
|
1054
|
-
//#region system/rules/types.d.ts
|
|
1055
1021
|
interface PolicyRule {
|
|
1056
1022
|
id: string;
|
|
1057
1023
|
name: string;
|
|
@@ -1066,14 +1032,14 @@ interface CreateRuleRequest {
|
|
|
1066
1032
|
ruleType?: string;
|
|
1067
1033
|
syntax?: string;
|
|
1068
1034
|
expression?: string;
|
|
1069
|
-
rules?:
|
|
1035
|
+
rules?: RuleNode;
|
|
1070
1036
|
description?: string;
|
|
1071
1037
|
}
|
|
1072
1038
|
interface UpdateRuleRequest {
|
|
1073
1039
|
ruleType?: string;
|
|
1074
1040
|
syntax?: string;
|
|
1075
1041
|
expression?: string;
|
|
1076
|
-
rules?:
|
|
1042
|
+
rules?: RuleNode;
|
|
1077
1043
|
description?: string;
|
|
1078
1044
|
protected?: boolean;
|
|
1079
1045
|
}
|
|
@@ -1102,8 +1068,40 @@ interface ReloadResult {
|
|
|
1102
1068
|
rules: number;
|
|
1103
1069
|
}
|
|
1104
1070
|
//#endregion
|
|
1105
|
-
//#region system/
|
|
1106
|
-
declare class
|
|
1071
|
+
//#region system/policies/store.d.ts
|
|
1072
|
+
declare class HestiaPolicies implements DocumentStore<Policy, QueryDSL<Policy>, string, QueryDSL<Policy>, Record<string, unknown>, string, string, string> {
|
|
1073
|
+
private client;
|
|
1074
|
+
private pager;
|
|
1075
|
+
constructor(client: Transport);
|
|
1076
|
+
find(_query?: QueryDSL<Policy>): Promise<Page<Policy>>;
|
|
1077
|
+
query(qdsl: QueryDSL<Policy>): Promise<Page<Policy>>;
|
|
1078
|
+
list(_options?: QueryDSL<Policy>): Promise<Page<Policy>>;
|
|
1079
|
+
read(id: string): Promise<Document<Policy> | undefined>;
|
|
1080
|
+
create(props: {
|
|
1081
|
+
data: Partial<CreatePolicyRequest>;
|
|
1082
|
+
options?: string;
|
|
1083
|
+
}): Promise<Document<Policy> | undefined>;
|
|
1084
|
+
update(props: {
|
|
1085
|
+
data: UpdatePolicyRequest;
|
|
1086
|
+
options?: string;
|
|
1087
|
+
}): Promise<Document<Policy> | undefined>;
|
|
1088
|
+
setEnabled(name: string, enabled: boolean): Promise<Document<Policy>>;
|
|
1089
|
+
delete(_id: string): Promise<void>;
|
|
1090
|
+
upload(_props: {
|
|
1091
|
+
file: File;
|
|
1092
|
+
}): Promise<Document<Policy> | undefined>;
|
|
1093
|
+
subscribe(_scope: string, _callback: (event: StoreEvent) => void): Promise<() => void>;
|
|
1094
|
+
notify(_event: StoreEvent): Promise<void>;
|
|
1095
|
+
stream(_options: Record<string, unknown>, _onStreamChange: () => void): {
|
|
1096
|
+
stream: () => AsyncIterable<Document<Policy>>;
|
|
1097
|
+
cancel: () => void;
|
|
1098
|
+
status: () => "active" | "cancelled" | "completed";
|
|
1099
|
+
};
|
|
1100
|
+
page(_options?: Record<string, unknown>): PagedData<Policy>;
|
|
1101
|
+
}
|
|
1102
|
+
//#endregion
|
|
1103
|
+
//#region system/policies/rules.d.ts
|
|
1104
|
+
declare class HestiaRules implements DocumentStore<PolicyRule, Record<string, unknown>, string, Record<string, unknown>, Record<string, unknown>, string, string, string> {
|
|
1107
1105
|
private client;
|
|
1108
1106
|
constructor(client: Transport);
|
|
1109
1107
|
find(_query?: Record<string, unknown>): Promise<Page<PolicyRule>>;
|
|
@@ -1133,7 +1131,7 @@ declare class HestiaRules implements DocumentStore<PolicyRule, Record<string, un
|
|
|
1133
1131
|
page(_options?: Record<string, unknown>): any;
|
|
1134
1132
|
}
|
|
1135
1133
|
//#endregion
|
|
1136
|
-
//#region system/
|
|
1134
|
+
//#region system/audit/types.d.ts
|
|
1137
1135
|
interface AuditEntry {
|
|
1138
1136
|
event_id: string;
|
|
1139
1137
|
occurred_at: string;
|
|
@@ -1171,7 +1169,7 @@ interface LogFilter {
|
|
|
1171
1169
|
end?: string;
|
|
1172
1170
|
}
|
|
1173
1171
|
//#endregion
|
|
1174
|
-
//#region system/
|
|
1172
|
+
//#region system/audit/store.d.ts
|
|
1175
1173
|
declare class HestiaLogs implements DocumentStore<AuditEntry, QueryDSL<AuditEntry>, string, QueryDSL<AuditEntry>, Record<string, unknown>, string, string, Record<string, unknown>> {
|
|
1176
1174
|
private client;
|
|
1177
1175
|
private baseUrl;
|
|
@@ -1204,7 +1202,7 @@ declare class HestiaLogs implements DocumentStore<AuditEntry, QueryDSL<AuditEntr
|
|
|
1204
1202
|
getStreamUrl(): string;
|
|
1205
1203
|
}
|
|
1206
1204
|
//#endregion
|
|
1207
|
-
//#region blobs/types.d.ts
|
|
1205
|
+
//#region system/blobs/types.d.ts
|
|
1208
1206
|
interface NamespaceInfo {
|
|
1209
1207
|
id: string;
|
|
1210
1208
|
display_name: string;
|
|
@@ -1225,7 +1223,7 @@ interface ListBlobsRequest {
|
|
|
1225
1223
|
}
|
|
1226
1224
|
interface CreateNamespaceRequest {
|
|
1227
1225
|
display_name?: string;
|
|
1228
|
-
ns
|
|
1226
|
+
ns: string;
|
|
1229
1227
|
}
|
|
1230
1228
|
interface UploadBeginResult {
|
|
1231
1229
|
session_id: string;
|
|
@@ -1319,7 +1317,7 @@ interface UploadQueueOptions {
|
|
|
1319
1317
|
persistence?: UploadPersistence;
|
|
1320
1318
|
}
|
|
1321
1319
|
//#endregion
|
|
1322
|
-
//#region blobs/store.d.ts
|
|
1320
|
+
//#region system/blobs/store.d.ts
|
|
1323
1321
|
declare function getMissingRanges(ranges: {
|
|
1324
1322
|
start: number;
|
|
1325
1323
|
end: number;
|
|
@@ -1569,7 +1567,7 @@ declare class HestiaBlobClient {
|
|
|
1569
1567
|
namespace(ns: string): BlobNamespace;
|
|
1570
1568
|
}
|
|
1571
1569
|
//#endregion
|
|
1572
|
-
//#region collections/types.d.ts
|
|
1570
|
+
//#region system/collections/types.d.ts
|
|
1573
1571
|
interface CollectionMeta {
|
|
1574
1572
|
name: string;
|
|
1575
1573
|
schema: SchemaDefinition;
|
|
@@ -1577,10 +1575,10 @@ interface CollectionMeta {
|
|
|
1577
1575
|
updated: string;
|
|
1578
1576
|
}
|
|
1579
1577
|
type CollectionDocument = Document<{
|
|
1580
|
-
schema:
|
|
1578
|
+
schema: SchemaDefinition;
|
|
1581
1579
|
}>;
|
|
1582
1580
|
//#endregion
|
|
1583
|
-
//#region collections/store.d.ts
|
|
1581
|
+
//#region system/collections/store.d.ts
|
|
1584
1582
|
declare class HestiaCollections implements DocumentStore<CollectionMeta, Record<string, unknown>, string, Record<string, unknown>, Record<string, unknown>, string, string, Record<string, unknown>> {
|
|
1585
1583
|
private client;
|
|
1586
1584
|
constructor(client: Transport);
|
|
@@ -1709,6 +1707,34 @@ declare class HestiaSettingStore {
|
|
|
1709
1707
|
delete(key: string): Promise<void>;
|
|
1710
1708
|
}
|
|
1711
1709
|
//#endregion
|
|
1710
|
+
//#region system/core/store.d.ts
|
|
1711
|
+
declare class HestiaCore implements DocumentStore<any, Record<string, unknown>, string, Record<string, unknown>, Record<string, unknown>, string, string, Record<string, unknown>> {
|
|
1712
|
+
private client;
|
|
1713
|
+
constructor(client: Transport);
|
|
1714
|
+
find(_query?: Record<string, unknown>): Promise<Page<any>>;
|
|
1715
|
+
read(_id: string): Promise<Document<any> | undefined>;
|
|
1716
|
+
create(_props: {
|
|
1717
|
+
data: Partial<any>;
|
|
1718
|
+
}): Promise<Document<any> | undefined>;
|
|
1719
|
+
update(_props: {
|
|
1720
|
+
data: Partial<any>;
|
|
1721
|
+
options?: string;
|
|
1722
|
+
}): Promise<Document<any> | undefined>;
|
|
1723
|
+
delete(_id: string): Promise<void>;
|
|
1724
|
+
list(_options?: Record<string, unknown>): Promise<Page<any>>;
|
|
1725
|
+
upload(_props: {
|
|
1726
|
+
file: File;
|
|
1727
|
+
}): Promise<Document<any> | undefined>;
|
|
1728
|
+
subscribe(_scope: string, _callback: (event: StoreEvent) => void): Promise<() => void>;
|
|
1729
|
+
notify(_event: StoreEvent): Promise<void>;
|
|
1730
|
+
stream(_options: Record<string, unknown>, _onStreamChange: () => void): {
|
|
1731
|
+
stream: () => AsyncIterable<Document<any>>;
|
|
1732
|
+
cancel: () => void;
|
|
1733
|
+
status: () => "active" | "cancelled" | "completed";
|
|
1734
|
+
};
|
|
1735
|
+
page(_options?: Record<string, unknown>): PagedData<any>;
|
|
1736
|
+
}
|
|
1737
|
+
//#endregion
|
|
1712
1738
|
//#region dist/index.d.mts
|
|
1713
1739
|
//#region core/types.d.ts
|
|
1714
1740
|
interface DocumentMetadata {
|
|
@@ -1976,11 +2002,6 @@ declare const ROUTE_TABLE: {
|
|
|
1976
2002
|
readonly route: "/system/audit/log/export";
|
|
1977
2003
|
readonly arguments: readonly [];
|
|
1978
2004
|
};
|
|
1979
|
-
readonly "system:audit:log:query": {
|
|
1980
|
-
readonly method: "POST";
|
|
1981
|
-
readonly route: "/system/audit/log/query";
|
|
1982
|
-
readonly arguments: readonly [];
|
|
1983
|
-
};
|
|
1984
2005
|
readonly "system:audit:log:stream": {
|
|
1985
2006
|
readonly method: "GET";
|
|
1986
2007
|
readonly route: "/system/audit/log/stream";
|
|
@@ -2073,8 +2094,8 @@ declare const ROUTE_TABLE: {
|
|
|
2073
2094
|
};
|
|
2074
2095
|
readonly "system:blobs:namespace:create": {
|
|
2075
2096
|
readonly method: "POST";
|
|
2076
|
-
readonly route: "/system/blobs/namespace/create";
|
|
2077
|
-
readonly arguments: readonly [];
|
|
2097
|
+
readonly route: "/system/blobs/namespace/create/{ns}";
|
|
2098
|
+
readonly arguments: readonly ["ns"];
|
|
2078
2099
|
};
|
|
2079
2100
|
readonly "system:blobs:namespace:delete": {
|
|
2080
2101
|
readonly method: "DELETE";
|
|
@@ -2086,6 +2107,11 @@ declare const ROUTE_TABLE: {
|
|
|
2086
2107
|
readonly route: "/system/blobs/namespace/list";
|
|
2087
2108
|
readonly arguments: readonly [];
|
|
2088
2109
|
};
|
|
2110
|
+
readonly "system:collections:audit_log:query": {
|
|
2111
|
+
readonly method: "POST";
|
|
2112
|
+
readonly route: "/system/collections/audit_log/query";
|
|
2113
|
+
readonly arguments: readonly [];
|
|
2114
|
+
};
|
|
2089
2115
|
readonly "system:collections:collection:create": {
|
|
2090
2116
|
readonly method: "POST";
|
|
2091
2117
|
readonly route: "/system/collections/collection/create";
|
|
@@ -2131,6 +2157,11 @@ declare const ROUTE_TABLE: {
|
|
|
2131
2157
|
readonly route: "/system/collections/document/update/{name}/{doc_id}";
|
|
2132
2158
|
readonly arguments: readonly ["name", "doc_id"];
|
|
2133
2159
|
};
|
|
2160
|
+
readonly "system:collections:user:query": {
|
|
2161
|
+
readonly method: "POST";
|
|
2162
|
+
readonly route: "/system/collections/user/query";
|
|
2163
|
+
readonly arguments: readonly [];
|
|
2164
|
+
};
|
|
2134
2165
|
readonly "system:core:capability:list": {
|
|
2135
2166
|
readonly method: "GET";
|
|
2136
2167
|
readonly route: "/system/core/capability/list";
|
|
@@ -2138,8 +2169,8 @@ declare const ROUTE_TABLE: {
|
|
|
2138
2169
|
};
|
|
2139
2170
|
readonly "system:core:capability:set": {
|
|
2140
2171
|
readonly method: "PATCH";
|
|
2141
|
-
readonly route: "/system/core/capability/set";
|
|
2142
|
-
readonly arguments: readonly [];
|
|
2172
|
+
readonly route: "/system/core/capability/set/{name}";
|
|
2173
|
+
readonly arguments: readonly ["name"];
|
|
2143
2174
|
};
|
|
2144
2175
|
readonly "system:core:docs:list": {
|
|
2145
2176
|
readonly method: "GET";
|
|
@@ -2268,8 +2299,8 @@ declare const ROUTE_TABLE: {
|
|
|
2268
2299
|
};
|
|
2269
2300
|
readonly "system:schedules:schedule:update": {
|
|
2270
2301
|
readonly method: "PATCH";
|
|
2271
|
-
readonly route: "/system/schedules/schedule/update";
|
|
2272
|
-
readonly arguments: readonly [];
|
|
2302
|
+
readonly route: "/system/schedules/schedule/update/{id}";
|
|
2303
|
+
readonly arguments: readonly ["id"];
|
|
2273
2304
|
};
|
|
2274
2305
|
readonly "system:settings:delete": {
|
|
2275
2306
|
readonly method: "DELETE";
|
|
@@ -2311,11 +2342,6 @@ declare const ROUTE_TABLE: {
|
|
|
2311
2342
|
readonly route: "/system/users/user/get/{user_id}";
|
|
2312
2343
|
readonly arguments: readonly ["user_id"];
|
|
2313
2344
|
};
|
|
2314
|
-
readonly "system:users:user:query": {
|
|
2315
|
-
readonly method: "POST";
|
|
2316
|
-
readonly route: "/system/users/user/query";
|
|
2317
|
-
readonly arguments: readonly [];
|
|
2318
|
-
};
|
|
2319
2345
|
readonly "system:users:user:update": {
|
|
2320
2346
|
readonly method: "PATCH";
|
|
2321
2347
|
readonly route: "/system/users/user/update/{user_id}";
|
|
@@ -2416,34 +2442,6 @@ declare class HestiaCollection$1<T extends Record<string, any>> implements Docum
|
|
|
2416
2442
|
page(_options?: Record<string, unknown>): PagedData$1<T>;
|
|
2417
2443
|
}
|
|
2418
2444
|
//#endregion
|
|
2419
|
-
//#region system/capabilities/store.d.ts
|
|
2420
|
-
declare class HestiaCapabilities implements DocumentStore<any, Record<string, unknown>, string, Record<string, unknown>, Record<string, unknown>, string, string, Record<string, unknown>> {
|
|
2421
|
-
private client;
|
|
2422
|
-
constructor(client: Transport);
|
|
2423
|
-
find(_query?: Record<string, unknown>): Promise<Page<any>>;
|
|
2424
|
-
read(_id: string): Promise<Document<any> | undefined>;
|
|
2425
|
-
create(_props: {
|
|
2426
|
-
data: Partial<any>;
|
|
2427
|
-
}): Promise<Document<any> | undefined>;
|
|
2428
|
-
update(_props: {
|
|
2429
|
-
data: Partial<any>;
|
|
2430
|
-
options?: string;
|
|
2431
|
-
}): Promise<Document<any> | undefined>;
|
|
2432
|
-
delete(_id: string): Promise<void>;
|
|
2433
|
-
list(_options?: Record<string, unknown>): Promise<Page<any>>;
|
|
2434
|
-
upload(_props: {
|
|
2435
|
-
file: File;
|
|
2436
|
-
}): Promise<Document<any> | undefined>;
|
|
2437
|
-
subscribe(_scope: string, _callback: (event: StoreEvent) => void): Promise<() => void>;
|
|
2438
|
-
notify(_event: StoreEvent): Promise<void>;
|
|
2439
|
-
stream(_options: Record<string, unknown>, _onStreamChange: () => void): {
|
|
2440
|
-
stream: () => AsyncIterable<Document<any>>;
|
|
2441
|
-
cancel: () => void;
|
|
2442
|
-
status: () => "active" | "cancelled" | "completed";
|
|
2443
|
-
};
|
|
2444
|
-
page(_options?: Record<string, unknown>): PagedData<any>;
|
|
2445
|
-
}
|
|
2446
|
-
//#endregion
|
|
2447
2445
|
//#region container.d.ts
|
|
2448
2446
|
interface HestiaConfig {
|
|
2449
2447
|
baseUrl: string;
|
|
@@ -2467,7 +2465,7 @@ declare class HestiaClient {
|
|
|
2467
2465
|
readonly logs: HestiaLogs;
|
|
2468
2466
|
readonly collections: HestiaCollections;
|
|
2469
2467
|
readonly blobs: HestiaBlobClient;
|
|
2470
|
-
readonly
|
|
2468
|
+
readonly core: HestiaCore;
|
|
2471
2469
|
readonly notifications: HestiaNotificationStore;
|
|
2472
2470
|
readonly schedules: HestiaScheduleStore;
|
|
2473
2471
|
readonly settings: HestiaSettingStore;
|
|
@@ -2501,4 +2499,4 @@ interface ArrayPagerOptions<T extends Record<string, any>, F = any> {
|
|
|
2501
2499
|
}
|
|
2502
2500
|
declare function createArrayPager<T extends Record<string, any>, F = any>(options: ArrayPagerOptions<T, F>): PagedData<T>;
|
|
2503
2501
|
//#endregion
|
|
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 };
|
|
2502
|
+
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, HestiaCore, 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 };
|