@thingd/sdk 0.72.0 → 0.74.2
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/__type-tests__/exports.d.ts +178 -0
- package/dist/__type-tests__/exports.d.ts.map +1 -0
- package/dist/__type-tests__/exports.js +87 -0
- package/dist/client/http-thing-store.d.ts +55 -0
- package/dist/client/http-thing-store.d.ts.map +1 -0
- package/dist/client/http-thing-store.js +233 -0
- package/dist/client/in-memory-thing-store.d.ts +41 -0
- package/dist/client/in-memory-thing-store.d.ts.map +1 -0
- package/dist/client/in-memory-thing-store.js +292 -0
- package/dist/client/index.d.ts +5 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +3 -0
- package/dist/client/thingd.d.ts +24 -0
- package/dist/client/thingd.d.ts.map +1 -0
- package/dist/client/thingd.js +27 -0
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +3 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/mcp/audit.d.ts +27 -0
- package/dist/mcp/audit.d.ts.map +1 -0
- package/dist/mcp/audit.js +36 -0
- package/dist/mcp/config.d.ts +22 -0
- package/dist/mcp/config.d.ts.map +1 -0
- package/dist/mcp/config.js +52 -0
- package/dist/mcp/index.d.ts +6 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +5 -0
- package/dist/mcp/result.d.ts +3 -0
- package/dist/mcp/result.d.ts.map +1 -0
- package/dist/mcp/result.js +10 -0
- package/dist/mcp/server.d.ts +19 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +51 -0
- package/dist/mcp/tools.d.ts +10 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +1033 -0
- package/dist/memory/index.d.ts +7 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +7 -0
- package/dist/rest/helpers.d.ts +17 -0
- package/dist/rest/helpers.d.ts.map +1 -0
- package/dist/rest/helpers.js +60 -0
- package/dist/rest/index.d.ts +3 -0
- package/dist/rest/index.d.ts.map +1 -0
- package/dist/rest/index.js +2 -0
- package/dist/rest/server.d.ts +4 -0
- package/dist/rest/server.d.ts.map +1 -0
- package/dist/rest/server.js +472 -0
- package/dist/scheduler.d.ts +28 -0
- package/dist/scheduler.d.ts.map +1 -0
- package/dist/scheduler.js +451 -0
- package/dist/stores/cloud-thing-store.d.ts +60 -0
- package/dist/stores/cloud-thing-store.d.ts.map +1 -0
- package/dist/stores/cloud-thing-store.js +396 -0
- package/dist/stores/in-memory-thing-store.d.ts +59 -0
- package/dist/stores/in-memory-thing-store.d.ts.map +1 -0
- package/dist/stores/in-memory-thing-store.js +709 -0
- package/dist/stores/native-thing-store.d.ts +62 -0
- package/dist/stores/native-thing-store.d.ts.map +1 -0
- package/dist/stores/native-thing-store.js +374 -0
- package/dist/thingd.d.ts +84 -0
- package/dist/thingd.d.ts.map +1 -0
- package/dist/thingd.js +236 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types.d.ts +448 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/version.d.ts +6 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +5 -0
- package/package.json +8 -7
- package/LICENSE +0 -201
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compile-time type tests for the SDK public type surface.
|
|
3
|
+
* This file is only checked by tsc — it produces no runtime output.
|
|
4
|
+
*
|
|
5
|
+
* If any import fails to resolve, the build will break, catching missing
|
|
6
|
+
* barrel exports automatically.
|
|
7
|
+
*/
|
|
8
|
+
import type { AggregateFunction as CAggregateFunction, AggregateGroupResult as CAggregateGroupResult, AggregateOptions as CAggregateOptions, AggregateResult as CAggregateResult, BackupCapableThingStore as CBackupCapableThingStore, CollectionSchema as CCollectionSchema, ConnectorAuth as CConnectorAuth, ConnectorSchema as CConnectorSchema, ConnectorSyncOptions as CConnectorSyncOptions, ConnectorSyncResult as CConnectorSyncResult, FieldSchema as CFieldSchema, FilterOperator as CFilterOperator, Link as CLink, LinkDirection as CLinkDirection, LinkQueryOptions as CLinkQueryOptions, ListEventsOptions as CListEventsOptions, ListObjectsOptions as CListObjectsOptions, LocalThingDConnection as CLocalThingDConnection, MemoryEvent as CMemoryEvent, MemoryObject as CMemoryObject, MemoryQueue as CMemoryQueue, MemorySearchOptions as CMemorySearchOptions, MemorySearchResult as CMemorySearchResult, NlqIntent as CNlqIntent, NlqOptions as CNlqOptions, NlqResult as CNlqResult, PutOptions as CPutOptions, QueueClaimOptions as CQueueClaimOptions, QueueJob as CQueueJob, QueueJobOptions as CQueueJobOptions, QueueJobPayload as CQueueJobPayload, QueueJobResult as CQueueJobResult, QueueJobStatus as CQueueJobStatus, QueueNackOptions as CQueueNackOptions, ReconnectableThingStore as CReconnectableThingStore, SchemaOptions as CSchemaOptions, SortBy as CSortBy, SortDirection as CSortDirection, StoredMemoryEvent as CStoredMemoryEvent, StoredMemoryObject as CStoredMemoryObject, ThingDConnection as CThingDConnection, ThingDeleteResult as CThingDeleteResult, ThingStore as CThingStore, TimeBucket as CTimeBucket, TimeSeriesBucket as CTimeSeriesBucket, TimeSeriesOptions as CTimeSeriesOptions, TimeSeriesResult as CTimeSeriesResult, VectorSearchHit as CVectorSearchHit, VectorSearchOptions as CVectorSearchOptions, WalCheckpointResult as CWalCheckpointResult } from "../client/index.js";
|
|
9
|
+
import type { AggregateFunction, AggregateGroupResult, AggregateOptions, AggregateResult, BackupCapableThingStore, CollectionSchema, ConnectorAuth, ConnectorSchema, ConnectorSyncOptions, ConnectorSyncResult, FieldSchema, FilterOperator, Link, LinkDirection, LinkQueryOptions, ListEventsOptions, ListObjectsOptions, LocalThingDConnection, MemoryEvent, MemoryObject, MemoryQueue, MemorySearchOptions, MemorySearchResult, NlqIntent, NlqOptions, NlqResult, PutOptions, QueueClaimOptions, QueueJob, QueueJobOptions, QueueJobPayload, QueueJobResult, QueueJobStatus, QueueNackOptions, ReconnectableThingStore, Schedule, ScheduleContext, ScheduleEvent, ScheduleHandler, ScheduleIntervalOptions, ScheduleOnceOptions, ScheduleOptions, SchedulerEventType, SchedulerFacade, SchedulerListener, SchedulerStats, SchemaOptions, SortBy, SortDirection, StoredMemoryEvent, StoredMemoryObject, ThingDConnection, ThingDeleteResult, ThingStore, TimeBucket, TimeSeriesBucket, TimeSeriesOptions, TimeSeriesResult, VectorSearchHit, VectorSearchOptions, WalCheckpointResult } from "../index.js";
|
|
10
|
+
import type { AggregateFunction as TAggregateFunction, AggregateGroupResult as TAggregateGroupResult, AggregateOptions as TAggregateOptions, AggregateResult as TAggregateResult, BackupCapableThingStore as TBackupCapableThingStore, CollectionSchema as TCollectionSchema, ConnectorAuth as TConnectorAuth, ConnectorSchema as TConnectorSchema, ConnectorSyncOptions as TConnectorSyncOptions, ConnectorSyncResult as TConnectorSyncResult, FieldSchema as TFieldSchema, FilterOperator as TFilterOperator, Link as TLink, LinkDirection as TLinkDirection, LinkQueryOptions as TLinkQueryOptions, ListEventsOptions as TListEventsOptions, ListObjectsOptions as TListObjectsOptions, LocalThingDConnection as TLocalThingDConnection, MemoryEvent as TMemoryEvent, MemoryObject as TMemoryObject, MemoryQueue as TMemoryQueue, MemorySearchOptions as TMemorySearchOptions, MemorySearchResult as TMemorySearchResult, NlqIntent as TNlqIntent, NlqOptions as TNlqOptions, NlqResult as TNlqResult, PutOptions as TPutOptions, QueueClaimOptions as TQueueClaimOptions, QueueJob as TQueueJob, QueueJobOptions as TQueueJobOptions, QueueJobPayload as TQueueJobPayload, QueueJobResult as TQueueJobResult, QueueJobStatus as TQueueJobStatus, QueueNackOptions as TQueueNackOptions, ReconnectableThingStore as TReconnectableThingStore, SchemaOptions as TSchemaOptions, SortBy as TSortBy, SortDirection as TSortDirection, StoredMemoryEvent as TStoredMemoryEvent, StoredMemoryObject as TStoredMemoryObject, ThingDConnection as TThingDConnection, ThingDeleteResult as TThingDeleteResult, ThingStore as TThingStore, TimeBucket as TTimeBucket, TimeSeriesBucket as TTimeSeriesBucket, TimeSeriesOptions as TTimeSeriesOptions, TimeSeriesResult as TTimeSeriesResult, VectorSearchHit as TVectorSearchHit, VectorSearchOptions as TVectorSearchOptions, WalCheckpointResult as TWalCheckpointResult } from "../types/index.js";
|
|
11
|
+
export type _MainExports = {
|
|
12
|
+
_af: AggregateFunction;
|
|
13
|
+
_agr: AggregateGroupResult;
|
|
14
|
+
_ao: AggregateOptions;
|
|
15
|
+
_ar: AggregateResult;
|
|
16
|
+
_bcts: BackupCapableThingStore;
|
|
17
|
+
_cs: CollectionSchema;
|
|
18
|
+
_ca: ConnectorAuth;
|
|
19
|
+
_cs2: ConnectorSchema;
|
|
20
|
+
_cso: ConnectorSyncOptions;
|
|
21
|
+
_csr: ConnectorSyncResult;
|
|
22
|
+
_fs: FieldSchema;
|
|
23
|
+
_fo: FilterOperator;
|
|
24
|
+
_l: Link;
|
|
25
|
+
_ld: LinkDirection;
|
|
26
|
+
_lqo: LinkQueryOptions;
|
|
27
|
+
_leo: ListEventsOptions;
|
|
28
|
+
_loo: ListObjectsOptions;
|
|
29
|
+
_me: MemoryEvent;
|
|
30
|
+
_mo: MemoryObject;
|
|
31
|
+
_mq: MemoryQueue;
|
|
32
|
+
_mso: MemorySearchOptions;
|
|
33
|
+
_msr: MemorySearchResult;
|
|
34
|
+
_ni: NlqIntent;
|
|
35
|
+
_no: NlqOptions;
|
|
36
|
+
_nr: NlqResult;
|
|
37
|
+
_po: PutOptions;
|
|
38
|
+
_qco: QueueClaimOptions;
|
|
39
|
+
_qj: QueueJob;
|
|
40
|
+
_qjo: QueueJobOptions;
|
|
41
|
+
_qjp: QueueJobPayload;
|
|
42
|
+
_qjr: QueueJobResult;
|
|
43
|
+
_qjs: QueueJobStatus;
|
|
44
|
+
_qno: QueueNackOptions;
|
|
45
|
+
_rcts: ReconnectableThingStore;
|
|
46
|
+
_s: Schedule;
|
|
47
|
+
_sc: ScheduleContext;
|
|
48
|
+
_se: ScheduleEvent;
|
|
49
|
+
_sh: ScheduleHandler;
|
|
50
|
+
_sio: ScheduleIntervalOptions;
|
|
51
|
+
_so2: ScheduleOnceOptions;
|
|
52
|
+
_so3: ScheduleOptions;
|
|
53
|
+
_set: SchedulerEventType;
|
|
54
|
+
_sf: SchedulerFacade;
|
|
55
|
+
_sl: SchedulerListener;
|
|
56
|
+
_ss: SchedulerStats;
|
|
57
|
+
_so4: SchemaOptions;
|
|
58
|
+
_sb: SortBy;
|
|
59
|
+
_sd: SortDirection;
|
|
60
|
+
_sme: StoredMemoryEvent;
|
|
61
|
+
_smo: StoredMemoryObject;
|
|
62
|
+
_tdc: ThingDConnection;
|
|
63
|
+
_ltdc: LocalThingDConnection;
|
|
64
|
+
_tdr: ThingDeleteResult;
|
|
65
|
+
_ts: ThingStore;
|
|
66
|
+
_tb: TimeBucket;
|
|
67
|
+
_tsb: TimeSeriesBucket;
|
|
68
|
+
_tso: TimeSeriesOptions;
|
|
69
|
+
_tsr: TimeSeriesResult;
|
|
70
|
+
_vsh: VectorSearchHit;
|
|
71
|
+
_vso: VectorSearchOptions;
|
|
72
|
+
_wcr: WalCheckpointResult;
|
|
73
|
+
};
|
|
74
|
+
export type _TypeExports = {
|
|
75
|
+
_af: TAggregateFunction;
|
|
76
|
+
_agr: TAggregateGroupResult;
|
|
77
|
+
_ao: TAggregateOptions;
|
|
78
|
+
_ar: TAggregateResult;
|
|
79
|
+
_bcts: TBackupCapableThingStore;
|
|
80
|
+
_cs: TCollectionSchema;
|
|
81
|
+
_ca: TConnectorAuth;
|
|
82
|
+
_cs2: TConnectorSchema;
|
|
83
|
+
_cso: TConnectorSyncOptions;
|
|
84
|
+
_csr: TConnectorSyncResult;
|
|
85
|
+
_fs: TFieldSchema;
|
|
86
|
+
_fo: TFilterOperator;
|
|
87
|
+
_l: TLink;
|
|
88
|
+
_ld: TLinkDirection;
|
|
89
|
+
_lqo: TLinkQueryOptions;
|
|
90
|
+
_leo: TListEventsOptions;
|
|
91
|
+
_loo: TListObjectsOptions;
|
|
92
|
+
_me: TMemoryEvent;
|
|
93
|
+
_mo: TMemoryObject;
|
|
94
|
+
_mq: TMemoryQueue;
|
|
95
|
+
_mso: TMemorySearchOptions;
|
|
96
|
+
_msr: TMemorySearchResult;
|
|
97
|
+
_ni: TNlqIntent;
|
|
98
|
+
_no: TNlqOptions;
|
|
99
|
+
_nr: TNlqResult;
|
|
100
|
+
_po: TPutOptions;
|
|
101
|
+
_qco: TQueueClaimOptions;
|
|
102
|
+
_qj: TQueueJob;
|
|
103
|
+
_qjo: TQueueJobOptions;
|
|
104
|
+
_qjp: TQueueJobPayload;
|
|
105
|
+
_qjr: TQueueJobResult;
|
|
106
|
+
_qjs: TQueueJobStatus;
|
|
107
|
+
_qno: TQueueNackOptions;
|
|
108
|
+
_rcts: TReconnectableThingStore;
|
|
109
|
+
_so4: TSchemaOptions;
|
|
110
|
+
_sb: TSortBy;
|
|
111
|
+
_sd: TSortDirection;
|
|
112
|
+
_sme: TStoredMemoryEvent;
|
|
113
|
+
_smo: TStoredMemoryObject;
|
|
114
|
+
_tdc: TThingDConnection;
|
|
115
|
+
_ltdc: TLocalThingDConnection;
|
|
116
|
+
_tdr: TThingDeleteResult;
|
|
117
|
+
_ts: TThingStore;
|
|
118
|
+
_tb: TTimeBucket;
|
|
119
|
+
_tsb: TTimeSeriesBucket;
|
|
120
|
+
_tso: TTimeSeriesOptions;
|
|
121
|
+
_tsr: TTimeSeriesResult;
|
|
122
|
+
_vsh: TVectorSearchHit;
|
|
123
|
+
_vso: TVectorSearchOptions;
|
|
124
|
+
_wcr: TWalCheckpointResult;
|
|
125
|
+
};
|
|
126
|
+
export type _ClientExports = {
|
|
127
|
+
_af: CAggregateFunction;
|
|
128
|
+
_agr: CAggregateGroupResult;
|
|
129
|
+
_ao: CAggregateOptions;
|
|
130
|
+
_ar: CAggregateResult;
|
|
131
|
+
_bcts: CBackupCapableThingStore;
|
|
132
|
+
_cs: CCollectionSchema;
|
|
133
|
+
_ca: CConnectorAuth;
|
|
134
|
+
_cs2: CConnectorSchema;
|
|
135
|
+
_cso: CConnectorSyncOptions;
|
|
136
|
+
_csr: CConnectorSyncResult;
|
|
137
|
+
_fs: CFieldSchema;
|
|
138
|
+
_fo: CFilterOperator;
|
|
139
|
+
_l: CLink;
|
|
140
|
+
_ld: CLinkDirection;
|
|
141
|
+
_lqo: CLinkQueryOptions;
|
|
142
|
+
_leo: CListEventsOptions;
|
|
143
|
+
_loo: CListObjectsOptions;
|
|
144
|
+
_me: CMemoryEvent;
|
|
145
|
+
_mo: CMemoryObject;
|
|
146
|
+
_mq: CMemoryQueue;
|
|
147
|
+
_mso: CMemorySearchOptions;
|
|
148
|
+
_msr: CMemorySearchResult;
|
|
149
|
+
_ni: CNlqIntent;
|
|
150
|
+
_no: CNlqOptions;
|
|
151
|
+
_nr: CNlqResult;
|
|
152
|
+
_po: CPutOptions;
|
|
153
|
+
_qco: CQueueClaimOptions;
|
|
154
|
+
_qj: CQueueJob;
|
|
155
|
+
_qjo: CQueueJobOptions;
|
|
156
|
+
_qjp: CQueueJobPayload;
|
|
157
|
+
_qjr: CQueueJobResult;
|
|
158
|
+
_qjs: CQueueJobStatus;
|
|
159
|
+
_qno: CQueueNackOptions;
|
|
160
|
+
_rcts: CReconnectableThingStore;
|
|
161
|
+
_so4: CSchemaOptions;
|
|
162
|
+
_sb: CSortBy;
|
|
163
|
+
_sd: CSortDirection;
|
|
164
|
+
_sme: CStoredMemoryEvent;
|
|
165
|
+
_smo: CStoredMemoryObject;
|
|
166
|
+
_tdc: CThingDConnection;
|
|
167
|
+
_ltdc: CLocalThingDConnection;
|
|
168
|
+
_tdr: CThingDeleteResult;
|
|
169
|
+
_ts: CThingStore;
|
|
170
|
+
_tb: CTimeBucket;
|
|
171
|
+
_tsb: CTimeSeriesBucket;
|
|
172
|
+
_tso: CTimeSeriesOptions;
|
|
173
|
+
_tsr: CTimeSeriesResult;
|
|
174
|
+
_vsh: CVectorSearchHit;
|
|
175
|
+
_vso: CVectorSearchOptions;
|
|
176
|
+
_wcr: CWalCheckpointResult;
|
|
177
|
+
};
|
|
178
|
+
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../src/__type-tests__/exports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACV,iBAAiB,IAAI,kBAAkB,EACvC,oBAAoB,IAAI,qBAAqB,EAC7C,gBAAgB,IAAI,iBAAiB,EACrC,eAAe,IAAI,gBAAgB,EACnC,uBAAuB,IAAI,wBAAwB,EACnD,gBAAgB,IAAI,iBAAiB,EACrC,aAAa,IAAI,cAAc,EAC/B,eAAe,IAAI,gBAAgB,EACnC,oBAAoB,IAAI,qBAAqB,EAC7C,mBAAmB,IAAI,oBAAoB,EAC3C,WAAW,IAAI,YAAY,EAC3B,cAAc,IAAI,eAAe,EACjC,IAAI,IAAI,KAAK,EACb,aAAa,IAAI,cAAc,EAC/B,gBAAgB,IAAI,iBAAiB,EACrC,iBAAiB,IAAI,kBAAkB,EACvC,kBAAkB,IAAI,mBAAmB,EACzC,qBAAqB,IAAI,sBAAsB,EAC/C,WAAW,IAAI,YAAY,EAC3B,YAAY,IAAI,aAAa,EAC7B,WAAW,IAAI,YAAY,EAC3B,mBAAmB,IAAI,oBAAoB,EAC3C,kBAAkB,IAAI,mBAAmB,EACzC,SAAS,IAAI,UAAU,EACvB,UAAU,IAAI,WAAW,EACzB,SAAS,IAAI,UAAU,EACvB,UAAU,IAAI,WAAW,EACzB,iBAAiB,IAAI,kBAAkB,EACvC,QAAQ,IAAI,SAAS,EACrB,eAAe,IAAI,gBAAgB,EACnC,eAAe,IAAI,gBAAgB,EACnC,cAAc,IAAI,eAAe,EACjC,cAAc,IAAI,eAAe,EACjC,gB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AAI,EAAE,cAAc,CAAC;IACrB,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,cAAc,CAAC;IACpB,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,mBAAmB,CAAC;IAC1B,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,sBAAsB,CAAC;IAC9B,IAAI,EAAE,kBAAkB,CAAC;IACzB,GAAG,EAAE,WAAW,CAAC;IACjB,GAAG,EAAE,WAAW,CAAC;IACjB,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,gBAAgB,CAAC;IACvB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,oBAAoB,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compile-time type tests for the SDK public type surface.
|
|
3
|
+
* This file is only checked by tsc — it produces no runtime output.
|
|
4
|
+
*
|
|
5
|
+
* If any import fails to resolve, the build will break, catching missing
|
|
6
|
+
* barrel exports automatically.
|
|
7
|
+
*/
|
|
8
|
+
void reconnectableStore.reconnect(); // must return Promise<void>
|
|
9
|
+
backupStore.backupTo("/tmp/backup.db"); // must return void
|
|
10
|
+
const walResult = backupStore.walCheckpoint();
|
|
11
|
+
void walResult.framesBefore; // number
|
|
12
|
+
void walResult.framesAfter; // number
|
|
13
|
+
conn.backupTo("/tmp/backup.db");
|
|
14
|
+
const connWal = conn.walCheckpoint();
|
|
15
|
+
void connWal.framesBefore;
|
|
16
|
+
void connWal.framesAfter;
|
|
17
|
+
// ── FilterOperator usage ──
|
|
18
|
+
const filterOp = { $gt: 10, $in: ["a", "b"], $like: "%test%" };
|
|
19
|
+
void filterOp;
|
|
20
|
+
// ── Aggregate types ──
|
|
21
|
+
const aggFn = "count";
|
|
22
|
+
const aggOpts = { function: "sum", field: "price", groupBy: "category" };
|
|
23
|
+
const aggGroup = { key: "electronics", value: 42 };
|
|
24
|
+
const aggResult = { total: 100, groups: [aggGroup] };
|
|
25
|
+
void aggFn;
|
|
26
|
+
void aggOpts;
|
|
27
|
+
void aggResult;
|
|
28
|
+
// ── TimeSeries types ──
|
|
29
|
+
const timeBucket = "day";
|
|
30
|
+
const tsOpts = { function: "avg", field: "price", bucket: "week" };
|
|
31
|
+
const tsBucket = { label: "2026-W01", value: 99.9 };
|
|
32
|
+
const tsResult = { buckets: [tsBucket] };
|
|
33
|
+
void timeBucket;
|
|
34
|
+
void tsOpts;
|
|
35
|
+
void tsResult;
|
|
36
|
+
// ── Schema types ──
|
|
37
|
+
const fieldSchema = {
|
|
38
|
+
name: "title",
|
|
39
|
+
type: "string",
|
|
40
|
+
nullable: false,
|
|
41
|
+
sampleValues: [],
|
|
42
|
+
};
|
|
43
|
+
const colSchema = { name: "posts", objectCount: 10, fields: [fieldSchema] };
|
|
44
|
+
const schemaOpts = { sampleSize: 100 };
|
|
45
|
+
void fieldSchema;
|
|
46
|
+
void colSchema;
|
|
47
|
+
void schemaOpts;
|
|
48
|
+
// ── NLQ types ──
|
|
49
|
+
const nlqIntent = { action: "aggregate", collection: "orders", function: "sum" };
|
|
50
|
+
const nlqResult = { answer: "Total is $500", data: { total: 500 }, intent: nlqIntent };
|
|
51
|
+
const nlqOpts = { collection: "orders", model: "gpt-4" };
|
|
52
|
+
void nlqIntent;
|
|
53
|
+
void nlqResult;
|
|
54
|
+
void nlqOpts;
|
|
55
|
+
// ── Vector types ──
|
|
56
|
+
const vecOpts = { topK: 5, filter: { category: "books" } };
|
|
57
|
+
const vecHit = {
|
|
58
|
+
id: "obj-1",
|
|
59
|
+
score: 0.95,
|
|
60
|
+
value: { id: "obj-1", collection: "books", createdAt: "", updatedAt: "", version: 1 },
|
|
61
|
+
};
|
|
62
|
+
void vecOpts;
|
|
63
|
+
void vecHit;
|
|
64
|
+
// ── Connector types ──
|
|
65
|
+
const connAuth = {
|
|
66
|
+
host: "localhost",
|
|
67
|
+
port: 5432,
|
|
68
|
+
database: "mydb",
|
|
69
|
+
username: "user",
|
|
70
|
+
password: "pass",
|
|
71
|
+
};
|
|
72
|
+
const connSchema = {
|
|
73
|
+
name: "users",
|
|
74
|
+
columns: [{ name: "id", dataType: "integer", nullable: false, sampleValues: [] }],
|
|
75
|
+
estimatedRows: 1000,
|
|
76
|
+
};
|
|
77
|
+
const connSyncOpts = {
|
|
78
|
+
collection: "users",
|
|
79
|
+
query: "SELECT * FROM users",
|
|
80
|
+
auth: connAuth,
|
|
81
|
+
};
|
|
82
|
+
const connSyncResult = { imported: 100, collection: "users" };
|
|
83
|
+
void connAuth;
|
|
84
|
+
void connSchema;
|
|
85
|
+
void connSyncOpts;
|
|
86
|
+
void connSyncResult;
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { AggregateOptions, AggregateResult, CollectionSchema, ConnectorAuth, ConnectorSchema, ConnectorSyncOptions, ConnectorSyncResult, ListEventsOptions, ListObjectsOptions, MemoryEvent, MemoryObject, MemorySearchOptions, MemorySearchResult, NlqOptions, NlqResult, QueueClaimOptions, QueueJob, QueueJobOptions, QueueJobPayload, QueueJobResult, QueueNackOptions, SchemaOptions, StoredMemoryEvent, StoredMemoryObject, ThingDeleteResult, ThingStore, TimeSeriesOptions, TimeSeriesResult, VectorSearchHit, VectorSearchOptions } from "../types.js";
|
|
2
|
+
export type HttpThingStoreOptions = {
|
|
3
|
+
url: string;
|
|
4
|
+
authToken?: string;
|
|
5
|
+
/** Cloud instance slug for multi-instance routing. Sent as X-Instance-Slug header. */
|
|
6
|
+
instanceSlug?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class HttpThingStore implements ThingStore {
|
|
9
|
+
private readonly options;
|
|
10
|
+
static open(urlOrOptions: string | HttpThingStoreOptions): Promise<HttpThingStore>;
|
|
11
|
+
constructor(options: HttpThingStoreOptions);
|
|
12
|
+
private get base();
|
|
13
|
+
private request;
|
|
14
|
+
put(collection: string, object: MemoryObject): Promise<StoredMemoryObject>;
|
|
15
|
+
get<T = StoredMemoryObject>(collection: string, id: string): Promise<T | null>;
|
|
16
|
+
getBatch<T = StoredMemoryObject>(collection: string, ids: string[]): Promise<(T | null)[]>;
|
|
17
|
+
delete(collection: string, id: string): Promise<ThingDeleteResult>;
|
|
18
|
+
listObjects<T = StoredMemoryObject>(collection: string, options?: ListObjectsOptions): Promise<T[]>;
|
|
19
|
+
appendEvent(stream: string, event: MemoryEvent): Promise<StoredMemoryEvent>;
|
|
20
|
+
listEvents<T = StoredMemoryEvent>(stream?: string, options?: ListEventsOptions): Promise<T[]>;
|
|
21
|
+
pushJob(queue: string, payload: QueueJobPayload, options?: QueueJobOptions): Promise<QueueJob>;
|
|
22
|
+
claimJob(queue: string, options?: QueueClaimOptions): Promise<QueueJob | null>;
|
|
23
|
+
ackJob(queue: string, jobId: string): Promise<QueueJobResult>;
|
|
24
|
+
nackJob(queue: string, jobId: string, options?: QueueNackOptions): Promise<QueueJobResult>;
|
|
25
|
+
listJobs(queue: string): Promise<QueueJob[]>;
|
|
26
|
+
listDeadJobs(queue: string): Promise<QueueJob[]>;
|
|
27
|
+
search(query: string, options?: MemorySearchOptions): Promise<MemorySearchResult[]>;
|
|
28
|
+
vectorSearch(collection: string, queryVector: number[], options?: VectorSearchOptions): Promise<VectorSearchHit[]>;
|
|
29
|
+
putBatch(collection: string, objects: MemoryObject[]): Promise<StoredMemoryObject[]>;
|
|
30
|
+
deleteBatch(collection: string, ids: string[]): Promise<number>;
|
|
31
|
+
createLink(fromRef: string, linkType: string, toRef: string, weight?: number, metadataJson?: string): Promise<import("../types.js").Link>;
|
|
32
|
+
deleteLink(id: string): Promise<boolean>;
|
|
33
|
+
getLink(id: string): Promise<import("../types.js").Link | null>;
|
|
34
|
+
getNeighbors(reference: string, direction?: import("../types.js").LinkDirection, options?: import("../types.js").LinkQueryOptions): Promise<import("../types.js").Link[]>;
|
|
35
|
+
countObjects(): Promise<number>;
|
|
36
|
+
countObjectsInCollection(collection: string): Promise<number>;
|
|
37
|
+
countEvents(): Promise<number>;
|
|
38
|
+
countActiveJobs(): Promise<number>;
|
|
39
|
+
countDeadJobs(): Promise<number>;
|
|
40
|
+
countLinks(): Promise<number>;
|
|
41
|
+
listCollections(): Promise<string[]>;
|
|
42
|
+
listStreams(): Promise<string[]>;
|
|
43
|
+
listQueues(): Promise<string[]>;
|
|
44
|
+
createIndex(collection: string, field: string): Promise<void>;
|
|
45
|
+
listIndexes(): Promise<Array<[string, string]>>;
|
|
46
|
+
close(): Promise<void>;
|
|
47
|
+
listConnectors(): Promise<string[]>;
|
|
48
|
+
discoverConnectorSchema(type: string, query: string, auth?: ConnectorAuth): Promise<ConnectorSchema>;
|
|
49
|
+
connectorSync(type: string, options: ConnectorSyncOptions): Promise<ConnectorSyncResult>;
|
|
50
|
+
aggregate(collection: string, options: AggregateOptions): Promise<AggregateResult>;
|
|
51
|
+
timeseries(collection: string, options: TimeSeriesOptions): Promise<TimeSeriesResult>;
|
|
52
|
+
schema(collection?: string, _options?: SchemaOptions): Promise<CollectionSchema[]>;
|
|
53
|
+
nlqQuery(question: string, options?: NlqOptions): Promise<NlqResult>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=http-thing-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-thing-store.d.ts","sourceRoot":"","sources":["../../src/client/http-thing-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,QAAQ,EACR,eAAe,EACf,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EA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EK,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAG;IAEzB,cAAc,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAExC;IAEK,uBAAuB,CAC3B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,eAAe,CAAC,CAU1B;IAEK,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAM7F;IAEK,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC,CAEvF;IAEK,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAE1F;IAEK,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAKvF;IAEK,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAEzE;CACF"}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
export class HttpThingStore {
|
|
2
|
+
options;
|
|
3
|
+
static async open(urlOrOptions) {
|
|
4
|
+
const options = typeof urlOrOptions === "string" ? { url: urlOrOptions } : urlOrOptions;
|
|
5
|
+
return new HttpThingStore(options);
|
|
6
|
+
}
|
|
7
|
+
constructor(options) {
|
|
8
|
+
this.options = options;
|
|
9
|
+
}
|
|
10
|
+
get base() {
|
|
11
|
+
const base = this.options.url.replace(/\/+$/, "");
|
|
12
|
+
return base.endsWith("/v1") ? base : `${base}/v1`;
|
|
13
|
+
}
|
|
14
|
+
async request(method, path, body) {
|
|
15
|
+
const headers = {};
|
|
16
|
+
if (body) {
|
|
17
|
+
headers["content-type"] = "application/json";
|
|
18
|
+
}
|
|
19
|
+
if (this.options.authToken) {
|
|
20
|
+
headers.authorization = `Bearer ${this.options.authToken}`;
|
|
21
|
+
}
|
|
22
|
+
if (this.options.instanceSlug) {
|
|
23
|
+
headers["x-instance-slug"] = this.options.instanceSlug;
|
|
24
|
+
}
|
|
25
|
+
const res = await fetch(`${this.base}${path}`, {
|
|
26
|
+
method,
|
|
27
|
+
headers,
|
|
28
|
+
body: body ? JSON.stringify(body) : undefined,
|
|
29
|
+
});
|
|
30
|
+
const json = await res.json();
|
|
31
|
+
if (!res.ok) {
|
|
32
|
+
const msg = json?.error?.message ?? `HTTP ${res.status}`;
|
|
33
|
+
throw new Error(msg);
|
|
34
|
+
}
|
|
35
|
+
return json.data;
|
|
36
|
+
}
|
|
37
|
+
async put(collection, object) {
|
|
38
|
+
return this.request("PUT", `/objects/${encodeURIComponent(collection)}/${encodeURIComponent(object.id)}`, object);
|
|
39
|
+
}
|
|
40
|
+
async get(collection, id) {
|
|
41
|
+
try {
|
|
42
|
+
return await this.request("GET", `/objects/${encodeURIComponent(collection)}/${encodeURIComponent(id)}`);
|
|
43
|
+
}
|
|
44
|
+
catch (err) {
|
|
45
|
+
if (err instanceof Error && err.message.includes("404")) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
throw err;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async getBatch(collection, ids) {
|
|
52
|
+
return this.request("GET", `/objects/batch?collection=${encodeURIComponent(collection)}`, ids);
|
|
53
|
+
}
|
|
54
|
+
async delete(collection, id) {
|
|
55
|
+
const result = await this.request("DELETE", `/objects/${encodeURIComponent(collection)}/${encodeURIComponent(id)}`);
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
async listObjects(collection, options) {
|
|
59
|
+
const params = new URLSearchParams({ collection });
|
|
60
|
+
if (options?.limit) {
|
|
61
|
+
params.set("limit", String(options.limit));
|
|
62
|
+
}
|
|
63
|
+
if (options?.offset) {
|
|
64
|
+
params.set("offset", String(options.offset));
|
|
65
|
+
}
|
|
66
|
+
if (options?.filter) {
|
|
67
|
+
for (const [k, v] of Object.entries(options.filter)) {
|
|
68
|
+
params.set(`filter.${k}`, String(v));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (options?.sortBy) {
|
|
72
|
+
params.set("sortBy", options.sortBy.field);
|
|
73
|
+
if (options.sortBy.direction) {
|
|
74
|
+
params.set("sortDir", options.sortBy.direction);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return this.request("GET", `/objects?${params}`);
|
|
78
|
+
}
|
|
79
|
+
async appendEvent(stream, event) {
|
|
80
|
+
return this.request("POST", `/events/${encodeURIComponent(stream)}`, event);
|
|
81
|
+
}
|
|
82
|
+
async listEvents(stream, options) {
|
|
83
|
+
const params = new URLSearchParams();
|
|
84
|
+
if (stream) {
|
|
85
|
+
params.set("stream", stream);
|
|
86
|
+
}
|
|
87
|
+
if (options?.fromSequence) {
|
|
88
|
+
params.set("fromSequence", String(options.fromSequence));
|
|
89
|
+
}
|
|
90
|
+
if (options?.limit) {
|
|
91
|
+
params.set("limit", String(options.limit));
|
|
92
|
+
}
|
|
93
|
+
if (options?.since) {
|
|
94
|
+
params.set("since", options.since);
|
|
95
|
+
}
|
|
96
|
+
return this.request("GET", `/events?${params}`);
|
|
97
|
+
}
|
|
98
|
+
async pushJob(queue, payload, options = {}) {
|
|
99
|
+
return this.request("POST", `/queues/${encodeURIComponent(queue)}/push`, {
|
|
100
|
+
payload,
|
|
101
|
+
...options,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
async claimJob(queue, options = {}) {
|
|
105
|
+
return this.request("POST", `/queues/${encodeURIComponent(queue)}/claim`, options);
|
|
106
|
+
}
|
|
107
|
+
async ackJob(queue, jobId) {
|
|
108
|
+
return this.request("POST", `/queues/${encodeURIComponent(queue)}/ack`, { jobId });
|
|
109
|
+
}
|
|
110
|
+
async nackJob(queue, jobId, options = {}) {
|
|
111
|
+
return this.request("POST", `/queues/${encodeURIComponent(queue)}/nack`, { jobId, ...options });
|
|
112
|
+
}
|
|
113
|
+
async listJobs(queue) {
|
|
114
|
+
return this.request("GET", `/queues/${encodeURIComponent(queue)}/jobs`);
|
|
115
|
+
}
|
|
116
|
+
async listDeadJobs(queue) {
|
|
117
|
+
return this.request("GET", `/queues/${encodeURIComponent(queue)}/dead`);
|
|
118
|
+
}
|
|
119
|
+
async search(query, options = {}) {
|
|
120
|
+
return this.request("POST", "/search", { query, ...options });
|
|
121
|
+
}
|
|
122
|
+
async vectorSearch(collection, queryVector, options = {}) {
|
|
123
|
+
return this.request("POST", "/search/vector", {
|
|
124
|
+
collection,
|
|
125
|
+
vector: queryVector,
|
|
126
|
+
topK: options.topK,
|
|
127
|
+
filter: options.filter,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
async putBatch(collection, objects) {
|
|
131
|
+
return this.request("PUT", `/objects/batch?collection=${encodeURIComponent(collection)}`, objects);
|
|
132
|
+
}
|
|
133
|
+
async deleteBatch(collection, ids) {
|
|
134
|
+
const result = await this.request("DELETE", `/objects/batch?collection=${encodeURIComponent(collection)}`, ids);
|
|
135
|
+
return result.deleted;
|
|
136
|
+
}
|
|
137
|
+
async createLink(fromRef, linkType, toRef, weight, metadataJson) {
|
|
138
|
+
return this.request("POST", "/links", { fromRef, linkType, toRef, weight, metadataJson });
|
|
139
|
+
}
|
|
140
|
+
async deleteLink(id) {
|
|
141
|
+
const result = await this.request("DELETE", `/links/${encodeURIComponent(id)}`);
|
|
142
|
+
return result.deleted;
|
|
143
|
+
}
|
|
144
|
+
async getLink(id) {
|
|
145
|
+
try {
|
|
146
|
+
return await this.request("GET", `/links/${encodeURIComponent(id)}`);
|
|
147
|
+
}
|
|
148
|
+
catch (err) {
|
|
149
|
+
if (err instanceof Error && err.message.includes("404")) {
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
throw err;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
async getNeighbors(reference, direction = "Both", options = {}) {
|
|
156
|
+
const params = new URLSearchParams({ reference, direction });
|
|
157
|
+
if (options.linkType) {
|
|
158
|
+
params.set("linkType", options.linkType);
|
|
159
|
+
}
|
|
160
|
+
if (options.limit) {
|
|
161
|
+
params.set("limit", String(options.limit));
|
|
162
|
+
}
|
|
163
|
+
return this.request("GET", `/links?${params}`);
|
|
164
|
+
}
|
|
165
|
+
async countObjects() {
|
|
166
|
+
const result = await this.request("GET", "/counts/objects");
|
|
167
|
+
return result.count;
|
|
168
|
+
}
|
|
169
|
+
async countObjectsInCollection(collection) {
|
|
170
|
+
const result = await this.request("GET", `/counts/objects/${encodeURIComponent(collection)}`);
|
|
171
|
+
return result.count;
|
|
172
|
+
}
|
|
173
|
+
async countEvents() {
|
|
174
|
+
const result = await this.request("GET", "/counts/events");
|
|
175
|
+
return result.count;
|
|
176
|
+
}
|
|
177
|
+
async countActiveJobs() {
|
|
178
|
+
const res = await this.request("GET", "/health");
|
|
179
|
+
const counts = res;
|
|
180
|
+
return counts?.queues ?? 0;
|
|
181
|
+
}
|
|
182
|
+
async countDeadJobs() {
|
|
183
|
+
return 0;
|
|
184
|
+
}
|
|
185
|
+
async countLinks() {
|
|
186
|
+
const result = await this.request("GET", "/counts/links");
|
|
187
|
+
return result.count;
|
|
188
|
+
}
|
|
189
|
+
async listCollections() {
|
|
190
|
+
return this.request("GET", "/collections");
|
|
191
|
+
}
|
|
192
|
+
async listStreams() {
|
|
193
|
+
return this.request("GET", "/streams");
|
|
194
|
+
}
|
|
195
|
+
async listQueues() {
|
|
196
|
+
return this.request("GET", "/queues");
|
|
197
|
+
}
|
|
198
|
+
async createIndex(collection, field) {
|
|
199
|
+
await this.request("POST", "/indexes", { collection, field });
|
|
200
|
+
}
|
|
201
|
+
async listIndexes() {
|
|
202
|
+
return this.request("GET", "/indexes");
|
|
203
|
+
}
|
|
204
|
+
async close() { }
|
|
205
|
+
async listConnectors() {
|
|
206
|
+
return this.request("GET", "/connectors");
|
|
207
|
+
}
|
|
208
|
+
async discoverConnectorSchema(type, query, auth) {
|
|
209
|
+
const body = { query };
|
|
210
|
+
if (auth) {
|
|
211
|
+
body.auth = auth;
|
|
212
|
+
}
|
|
213
|
+
return this.request("POST", `/connectors/${encodeURIComponent(type)}/schema`, body);
|
|
214
|
+
}
|
|
215
|
+
async connectorSync(type, options) {
|
|
216
|
+
return this.request("POST", `/connectors/${encodeURIComponent(type)}/pull`, options);
|
|
217
|
+
}
|
|
218
|
+
async aggregate(collection, options) {
|
|
219
|
+
return this.request("POST", "/aggregate", { collection, ...options });
|
|
220
|
+
}
|
|
221
|
+
async timeseries(collection, options) {
|
|
222
|
+
return this.request("POST", "/aggregate/timeseries", { collection, ...options });
|
|
223
|
+
}
|
|
224
|
+
async schema(collection, _options) {
|
|
225
|
+
if (collection) {
|
|
226
|
+
return this.request("GET", `/collections/${encodeURIComponent(collection)}/schema`);
|
|
227
|
+
}
|
|
228
|
+
return this.request("GET", "/collections/schema");
|
|
229
|
+
}
|
|
230
|
+
async nlqQuery(question, options) {
|
|
231
|
+
return this.request("POST", "/nlq", { question, ...options });
|
|
232
|
+
}
|
|
233
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Link, LinkDirection, LinkQueryOptions, ListEventsOptions, ListObjectsOptions, MemoryEvent, MemoryObject, MemorySearchOptions, MemorySearchResult, QueueClaimOptions, QueueJob, QueueJobOptions, QueueJobPayload, QueueJobResult, QueueNackOptions, StoredMemoryEvent, StoredMemoryObject, ThingDeleteResult, ThingStore } from "../types.js";
|
|
2
|
+
export declare class InMemoryThingStore implements ThingStore {
|
|
3
|
+
private objects;
|
|
4
|
+
private events;
|
|
5
|
+
private jobs;
|
|
6
|
+
private links;
|
|
7
|
+
put(collection: string, object: MemoryObject): Promise<StoredMemoryObject>;
|
|
8
|
+
get<T = StoredMemoryObject>(collection: string, id: string): Promise<T | null>;
|
|
9
|
+
getBatch<T = StoredMemoryObject>(collection: string, ids: string[]): Promise<(T | null)[]>;
|
|
10
|
+
delete(_collection: string, _id: string): Promise<ThingDeleteResult>;
|
|
11
|
+
listObjects<T = StoredMemoryObject>(collection: string, options?: ListObjectsOptions): Promise<T[]>;
|
|
12
|
+
appendEvent(stream: string, event: MemoryEvent): Promise<StoredMemoryEvent>;
|
|
13
|
+
listEvents<T = StoredMemoryEvent>(stream?: string, options?: ListEventsOptions): Promise<T[]>;
|
|
14
|
+
pushJob(queue: string, payload: QueueJobPayload, options?: QueueJobOptions): Promise<QueueJob>;
|
|
15
|
+
claimJob(queue: string, options?: QueueClaimOptions): Promise<QueueJob | null>;
|
|
16
|
+
ackJob(queue: string, jobId: string): Promise<QueueJobResult>;
|
|
17
|
+
nackJob(queue: string, jobId: string, options?: QueueNackOptions): Promise<QueueJobResult>;
|
|
18
|
+
listJobs(queue: string): Promise<QueueJob[]>;
|
|
19
|
+
listDeadJobs(queue: string): Promise<QueueJob[]>;
|
|
20
|
+
search(_query: string, _options?: MemorySearchOptions): Promise<MemorySearchResult[]>;
|
|
21
|
+
putBatch(collection: string, objects: MemoryObject[]): Promise<StoredMemoryObject[]>;
|
|
22
|
+
deleteBatch(collection: string, ids: string[]): Promise<number>;
|
|
23
|
+
createLink(fromRef: string, linkType: string, toRef: string, weight?: number, metadataJson?: string): Promise<Link>;
|
|
24
|
+
deleteLink(id: string): Promise<boolean>;
|
|
25
|
+
getLink(id: string): Promise<Link | null>;
|
|
26
|
+
getNeighbors(reference: string, direction?: LinkDirection, options?: LinkQueryOptions): Promise<Link[]>;
|
|
27
|
+
countObjects(): Promise<number>;
|
|
28
|
+
countObjectsInCollection(collection: string): Promise<number>;
|
|
29
|
+
countEvents(): Promise<number>;
|
|
30
|
+
countActiveJobs(): Promise<number>;
|
|
31
|
+
countDeadJobs(): Promise<number>;
|
|
32
|
+
countLinks(): Promise<number>;
|
|
33
|
+
listCollections(): Promise<string[]>;
|
|
34
|
+
listStreams(): Promise<string[]>;
|
|
35
|
+
listQueues(): Promise<string[]>;
|
|
36
|
+
createIndex(_collection: string, _field: string): Promise<void>;
|
|
37
|
+
listIndexes(): Promise<Array<[string, string]>>;
|
|
38
|
+
close(): Promise<void>;
|
|
39
|
+
private findJob;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=in-memory-thing-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"in-memory-thing-store.d.ts","sourceRoot":"","sources":["../../src/client/in-memory-thing-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACJ,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,eAAe,EACf,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACX,MAAM,aAAa,CAAC;AAyBrB,qBAAa,kBAAmB,YAAW,UAAU;IACnD,OAAO,CAAC,OAAO,CAA0B;IACzC,OAAO,CAAC,MAAM,CAAiC;IAC/C,OAAO,CAAC,IAAI,CAA+B;IAC3C,OAAO,CAAC,KAAK,CAA8B;IAErC,GAAG,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAc/E;IAEK,GAAG,CAAC,CAAC,GAAG,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAGnF;IAEK,QAAQ,CAAC,CAAC,GAAG,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAE/F;IAEK,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,iBA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