@naturali/sdk 0.141.6 → 0.141.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/dist/index.cjs CHANGED
@@ -875,7 +875,8 @@ var Channels = class {
875
875
  /**
876
876
  * Replace a route
877
877
  *
878
- * Full replace, the same validation as create.
878
+ * Full replace, the same validation as create: an omitted field takes its create default. Where that default would widen a value the route sets, omission is `400 replace_omits_fields`, naming the fields in `details.fields`, and nothing is written: a set `surface` (the default is any surface), a non-empty `match` (every message), a non-empty `config` (it carries the Discord allowlist), and `status` on a `disabled` route (the default re-activates it). Send the value to keep it, or `"surface": null`, `"match": {}`, `"config": null`, `"status": "active"` to clear it.
879
+ *
879
880
  */
880
881
  static updateChannelRoute(options) {
881
882
  return (options.client ?? client).patch({
package/dist/index.d.cts CHANGED
@@ -2216,7 +2216,7 @@ type ChannelRouteWrite = {
2216
2216
  */
2217
2217
  config?: {
2218
2218
  [key: string]: unknown;
2219
- };
2219
+ } | null;
2220
2220
  status?: 'active' | 'disabled';
2221
2221
  };
2222
2222
  type ChannelRouteList = {
@@ -22490,7 +22490,8 @@ export declare class Channels {
22490
22490
  /**
22491
22491
  * Replace a route
22492
22492
  *
22493
- * Full replace, the same validation as create.
22493
+ * Full replace, the same validation as create: an omitted field takes its create default. Where that default would widen a value the route sets, omission is `400 replace_omits_fields`, naming the fields in `details.fields`, and nothing is written: a set `surface` (the default is any surface), a non-empty `match` (every message), a non-empty `config` (it carries the Discord allowlist), and `status` on a `disabled` route (the default re-activates it). Send the value to keep it, or `"surface": null`, `"match": {}`, `"config": null`, `"status": "active"` to clear it.
22494
+ *
22494
22495
  */
22495
22496
  static updateChannelRoute<ThrowOnError extends boolean = false>(options: Options<UpdateChannelRouteData, ThrowOnError>): RequestResult<UpdateChannelRouteResponses, UpdateChannelRouteErrors, ThrowOnError>;
22496
22497
  /**
package/dist/index.d.mts CHANGED
@@ -2216,7 +2216,7 @@ type ChannelRouteWrite = {
2216
2216
  */
2217
2217
  config?: {
2218
2218
  [key: string]: unknown;
2219
- };
2219
+ } | null;
2220
2220
  status?: 'active' | 'disabled';
2221
2221
  };
2222
2222
  type ChannelRouteList = {
@@ -22490,7 +22490,8 @@ export declare class Channels {
22490
22490
  /**
22491
22491
  * Replace a route
22492
22492
  *
22493
- * Full replace, the same validation as create.
22493
+ * Full replace, the same validation as create: an omitted field takes its create default. Where that default would widen a value the route sets, omission is `400 replace_omits_fields`, naming the fields in `details.fields`, and nothing is written: a set `surface` (the default is any surface), a non-empty `match` (every message), a non-empty `config` (it carries the Discord allowlist), and `status` on a `disabled` route (the default re-activates it). Send the value to keep it, or `"surface": null`, `"match": {}`, `"config": null`, `"status": "active"` to clear it.
22494
+ *
22494
22495
  */
22495
22496
  static updateChannelRoute<ThrowOnError extends boolean = false>(options: Options<UpdateChannelRouteData, ThrowOnError>): RequestResult<UpdateChannelRouteResponses, UpdateChannelRouteErrors, ThrowOnError>;
22496
22497
  /**
package/dist/index.mjs CHANGED
@@ -874,7 +874,8 @@ var Channels = class {
874
874
  /**
875
875
  * Replace a route
876
876
  *
877
- * Full replace, the same validation as create.
877
+ * Full replace, the same validation as create: an omitted field takes its create default. Where that default would widen a value the route sets, omission is `400 replace_omits_fields`, naming the fields in `details.fields`, and nothing is written: a set `surface` (the default is any surface), a non-empty `match` (every message), a non-empty `config` (it carries the Discord allowlist), and `status` on a `disabled` route (the default re-activates it). Send the value to keep it, or `"surface": null`, `"match": {}`, `"config": null`, `"status": "active"` to clear it.
878
+ *
878
879
  */
879
880
  static updateChannelRoute(options) {
880
881
  return (options.client ?? client).patch({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.141.6",
3
+ "version": "0.141.7",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@hey-api/openapi-ts": "^0.99.0",
34
- "@naturali/api": "0.141.6",
34
+ "@naturali/api": "0.141.7",
35
35
  "@ttoss/openapi-codegen": "^0.3.1",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",