@meshagent/meshagent-ts-auth 0.39.7 → 0.39.9

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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [0.39.9]
2
+ - Added streaming `watchTable` support to the TypeScript DatasetsClient to receive dataset table change events with versioning metadata.
3
+
4
+ ## [0.39.8]
5
+ - TypeScript API: `RoomContainer` now includes a required `ports: number[]` field (and validation) in container listings
6
+ - TypeScript API: `ContainerSpec` now supports optional fields `private`, `on_demand`, and `writable_root_fs`
7
+ - React developer-console package: refactored view switching to use strongly-typed tab configs and reorganized the console UI into grouped primary/resource/terminal tab groups
8
+ - React developer-console package: updated console layouts to wire the developer terminal/container/image/logs/metrics/traces panes into the new tab/view structure
9
+ - Build tooling: developer-console package `build:types` now runs declaration-path rewrite as part of type generation
10
+
1
11
  ## [0.39.7]
2
12
  - Updated Meshagent JS/TS package manifests so inter-package dependencies are aligned to the new Meshagent version (`@meshagent/*` packages now depend on the updated `^0.39.6` versions).
3
13
 
@@ -30040,6 +30040,18 @@ return true;`);
30040
30040
  manifestSize: value.manifest_size ?? null
30041
30041
  };
30042
30042
  }
30043
+ function optionalDatasetInt(value) {
30044
+ if (typeof value === "number" && Number.isInteger(value)) {
30045
+ return value;
30046
+ }
30047
+ if (typeof value === "string" && /^-?\d+$/.test(value)) {
30048
+ return Number.parseInt(value, 10);
30049
+ }
30050
+ return void 0;
30051
+ }
30052
+ function optionalDatasetString(value) {
30053
+ return typeof value === "string" ? value : void 0;
30054
+ }
30043
30055
  async function* toAsyncArrowIterable(chunks) {
30044
30056
  if (Symbol.asyncIterator in chunks) {
30045
30057
  for await (const chunk of chunks) {
@@ -30816,6 +30828,62 @@ return true;`);
30816
30828
  version: version2 ?? null
30817
30829
  });
30818
30830
  }
30831
+ async *watchTable({ table, namespace, branch, pollIntervalSeconds = 0.5 }) {
30832
+ const input = new DatasetArrowReadInputStream({
30833
+ kind: "start",
30834
+ table,
30835
+ namespace: namespace ?? null,
30836
+ branch: branch ?? null,
30837
+ poll_interval_seconds: pollIntervalSeconds
30838
+ });
30839
+ const response = await this.invokeStream("watch_table", input.stream());
30840
+ input.requestNext();
30841
+ try {
30842
+ for await (const chunk of response) {
30843
+ if (chunk instanceof response_13.ErrorContent) {
30844
+ throw new room_server_client_13.RoomServerException(chunk.text, chunk.code);
30845
+ }
30846
+ if (chunk instanceof response_13.ControlContent) {
30847
+ if (chunk.method === "close") {
30848
+ return;
30849
+ }
30850
+ throw this._unexpectedResponseError("watch_table");
30851
+ }
30852
+ if (chunk instanceof response_13.BinaryContent) {
30853
+ if (chunk.headers.kind !== "data") {
30854
+ throw this._unexpectedResponseError("watch_table");
30855
+ }
30856
+ yield {
30857
+ kind: "data",
30858
+ phase: optionalDatasetString(chunk.headers.phase),
30859
+ table: tableFromIPCBytes(chunk.data),
30860
+ version: optionalDatasetInt(chunk.headers.version),
30861
+ changeType: optionalDatasetString(chunk.headers.change_type),
30862
+ beginVersion: optionalDatasetInt(chunk.headers.begin_version),
30863
+ endVersion: optionalDatasetInt(chunk.headers.end_version),
30864
+ watchEvent: optionalDatasetString(chunk.headers.watch_event)
30865
+ };
30866
+ input.requestNext();
30867
+ continue;
30868
+ }
30869
+ if (chunk instanceof response_13.JsonContent) {
30870
+ if (chunk.json.kind !== "ready") {
30871
+ throw this._unexpectedResponseError("watch_table");
30872
+ }
30873
+ yield {
30874
+ kind: "ready",
30875
+ phase: optionalDatasetString(chunk.json.phase),
30876
+ version: optionalDatasetInt(chunk.json.version)
30877
+ };
30878
+ input.requestNext();
30879
+ continue;
30880
+ }
30881
+ throw this._unexpectedResponseError("watch_table");
30882
+ }
30883
+ } finally {
30884
+ input.close();
30885
+ }
30886
+ }
30819
30887
  async count({ table, text, vector, where, namespace, branch, version: version2 }) {
30820
30888
  const response = await this.invoke("count", {
30821
30889
  table,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meshagent/meshagent-ts-auth",
3
- "version": "0.39.7",
3
+ "version": "0.39.9",
4
4
  "description": "Meshagent Typescript Auth",
5
5
  "homepage": "https://github.com/meshagent/meshagent-ts-auth",
6
6
  "scripts": {
@@ -39,7 +39,7 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "@meshagent/meshagent": "^0.39.7",
42
+ "@meshagent/meshagent": "^0.39.9",
43
43
  "typescript": "^5.8.3"
44
44
  },
45
45
  "devDependencies": {