@aouda/client 0.1.12 → 0.1.13

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.
@@ -421,7 +421,7 @@ var import_node_url = require("url");
421
421
  // package.json
422
422
  var package_default = {
423
423
  name: "@aouda/client",
424
- version: "0.1.12",
424
+ version: "0.1.13",
425
425
  description: "Official TypeScript/JavaScript client library for Aouda",
426
426
  type: "module",
427
427
  main: "./dist/index.cjs",
@@ -1434,7 +1434,9 @@ var BulkLoadCoordinator = class {
1434
1434
  replicationMode: options.replicationMode,
1435
1435
  forceSingleNodeReplicationBypass: options.forceSingleNodeReplicationBypass,
1436
1436
  postLoadMqBehavior: options.postLoadMqBehavior,
1437
- ...options.identityInsert === true ? { identityInsert: true } : {}
1437
+ ...options.identityInsert === true ? { identityInsert: true } : {},
1438
+ ...options.applyTransforms === true ? { applyTransforms: true } : {},
1439
+ ...options.preTransformed === true ? { preTransformed: true } : {}
1438
1440
  }
1439
1441
  };
1440
1442
  const beginResp = await this.transport.post(
@@ -1527,7 +1529,11 @@ var ERROR_CODE_MAP = {
1527
1529
  NAMED_QUERY_BATCH_MUTATION: AoudaValidationError,
1528
1530
  NAMED_QUERY_BIND_FAILED: AoudaValidationError,
1529
1531
  NAMED_QUERY_PARAM_REQUIRED: AoudaValidationError,
1530
- NAMED_MUTATION_BIND_FAILED: AoudaValidationError
1532
+ NAMED_MUTATION_BIND_FAILED: AoudaValidationError,
1533
+ AUTH_IDENTITY_INVALID: AoudaValidationError,
1534
+ AUTH_IDENTITY_NOT_FOUND: AoudaValidationError,
1535
+ BULK_LOAD_TRANSFORM_INTENT_REQUIRED: AoudaValidationError,
1536
+ BULK_LOAD_TRANSFORM_INTENT_CONFLICT: AoudaValidationError
1531
1537
  };
1532
1538
  function createComposedAbortController(...signals) {
1533
1539
  const controller = new AbortController();
@@ -5230,6 +5236,20 @@ var NamedMutationsApi = class {
5230
5236
  }
5231
5237
  };
5232
5238
 
5239
+ // src/policy.ts
5240
+ var PolicyApi = class {
5241
+ constructor(transport, database) {
5242
+ this.transport = transport;
5243
+ this.database = database;
5244
+ }
5245
+ inspect(body, options) {
5246
+ const path4 = `${databasePath2(this.database)}/policy/inspect`;
5247
+ return this.transport.post(path4, body, {
5248
+ signal: options?.signal
5249
+ });
5250
+ }
5251
+ };
5252
+
5233
5253
  // src/streaming/websocket-transport.ts
5234
5254
  var import_msgpack = require("@msgpack/msgpack");
5235
5255
  var DEFAULT_PING_INTERVAL_MS = 2e4;
@@ -6018,6 +6038,7 @@ var AoudaClient = class {
6018
6038
  this.database,
6019
6039
  onNamedArtifactWarning
6020
6040
  );
6041
+ this._policy = new PolicyApi(this.transport, this.database);
6021
6042
  }
6022
6043
  /**
6023
6044
  * Connects to the Aouda server.
@@ -6172,6 +6193,12 @@ var AoudaClient = class {
6172
6193
  get namedMutations() {
6173
6194
  return this._namedMutations;
6174
6195
  }
6196
+ /**
6197
+ * Policy inspect (`POST …/policy/inspect`). Admin on the data DB.
6198
+ */
6199
+ get policy() {
6200
+ return this._policy;
6201
+ }
6175
6202
  /**
6176
6203
  * Access auth operations (signUp, signIn, signOut, refresh, me, changePassword).
6177
6204
  * @returns The auth API.