proto.io 0.0.177 → 0.0.179

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.
Files changed (71) hide show
  1. package/LICENSE +1 -1
  2. package/dist/adapters/file/database.d.ts +2 -2
  3. package/dist/adapters/file/database.js +5 -5
  4. package/dist/adapters/file/database.js.map +1 -1
  5. package/dist/adapters/file/database.mjs +5 -5
  6. package/dist/adapters/file/database.mjs.map +1 -1
  7. package/dist/adapters/file/filesystem.d.ts +2 -2
  8. package/dist/adapters/file/filesystem.js +3 -3
  9. package/dist/adapters/file/filesystem.js.map +1 -1
  10. package/dist/adapters/file/filesystem.mjs +3 -3
  11. package/dist/adapters/file/filesystem.mjs.map +1 -1
  12. package/dist/adapters/file/google-cloud-storage.d.ts +2 -2
  13. package/dist/adapters/file/google-cloud-storage.js +3 -3
  14. package/dist/adapters/file/google-cloud-storage.js.map +1 -1
  15. package/dist/adapters/file/google-cloud-storage.mjs +3 -3
  16. package/dist/adapters/file/google-cloud-storage.mjs.map +1 -1
  17. package/dist/adapters/storage/progres.d.ts +5 -6
  18. package/dist/adapters/storage/progres.js +108 -80
  19. package/dist/adapters/storage/progres.js.map +1 -1
  20. package/dist/adapters/storage/progres.mjs +108 -80
  21. package/dist/adapters/storage/progres.mjs.map +1 -1
  22. package/dist/client.d.ts +3 -3
  23. package/dist/client.js +4 -4
  24. package/dist/client.js.map +1 -1
  25. package/dist/client.mjs +5 -5
  26. package/dist/client.mjs.map +1 -1
  27. package/dist/index.d.ts +12 -3
  28. package/dist/index.js +42 -31
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.mjs +43 -32
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/internals/{index-CZShhrIu.d.ts → index-B7qz_VeO.d.ts} +2 -2
  33. package/dist/internals/index-B7qz_VeO.d.ts.map +1 -0
  34. package/dist/internals/{index-be1VYBY2.mjs → index-BAFVUYCo.mjs} +3 -3
  35. package/dist/internals/{index-be1VYBY2.mjs.map → index-BAFVUYCo.mjs.map} +1 -1
  36. package/dist/internals/{index-Dz0pmKCD.d.ts → index-BgZqiNxF.d.ts} +13 -11
  37. package/dist/internals/index-BgZqiNxF.d.ts.map +1 -0
  38. package/dist/internals/{index-A2Ulsntq.mjs → index-CPodB1P0.mjs} +21 -20
  39. package/dist/internals/index-CPodB1P0.mjs.map +1 -0
  40. package/dist/internals/{index-BL2gpGny.d.ts → index-CyXddWjz.d.ts} +2 -2
  41. package/dist/internals/index-CyXddWjz.d.ts.map +1 -0
  42. package/dist/internals/{index-DHQhYGsJ.mjs → index-D9AowvHp.mjs} +6 -6
  43. package/dist/internals/{index-DHQhYGsJ.mjs.map → index-D9AowvHp.mjs.map} +1 -1
  44. package/dist/internals/{index-DXuW8UiB.js → index-DRq6T_5w.js} +12 -6
  45. package/dist/internals/index-DRq6T_5w.js.map +1 -0
  46. package/dist/internals/{index-BqFdBhFc.js → index-DfPY7Xbb.js} +3 -3
  47. package/dist/internals/{index-BqFdBhFc.js.map → index-DfPY7Xbb.js.map} +1 -1
  48. package/dist/internals/{index-Dc3V_Bzw.js → index-DjrC854w.js} +6 -6
  49. package/dist/internals/{index-Dc3V_Bzw.js.map → index-DjrC854w.js.map} +1 -1
  50. package/dist/internals/{index-DvjHa8S2.js → index-DwCNTJb5.js} +21 -19
  51. package/dist/internals/index-DwCNTJb5.js.map +1 -0
  52. package/dist/internals/{index-CTsc042s.mjs → index-DyjcBbS1.mjs} +12 -7
  53. package/dist/internals/index-DyjcBbS1.mjs.map +1 -0
  54. package/dist/internals/{private-BUpLAMZi.mjs → private-CNw40LZ7.mjs} +2 -2
  55. package/dist/internals/{private-BUpLAMZi.mjs.map → private-CNw40LZ7.mjs.map} +1 -1
  56. package/dist/internals/{private-CSB1Ep4g.js → private-Ciddhure.js} +2 -2
  57. package/dist/internals/{private-CSB1Ep4g.js.map → private-Ciddhure.js.map} +1 -1
  58. package/dist/internals/{random-DGiu1IIq.mjs → random-BSyWEK8G.mjs} +7 -7
  59. package/dist/internals/random-BSyWEK8G.mjs.map +1 -0
  60. package/dist/internals/{random-CvVZek_8.js → random-CDtFUuES.js} +7 -7
  61. package/dist/internals/random-CDtFUuES.js.map +1 -0
  62. package/package.json +1 -1
  63. package/dist/internals/index-A2Ulsntq.mjs.map +0 -1
  64. package/dist/internals/index-BL2gpGny.d.ts.map +0 -1
  65. package/dist/internals/index-CTsc042s.mjs.map +0 -1
  66. package/dist/internals/index-CZShhrIu.d.ts.map +0 -1
  67. package/dist/internals/index-DXuW8UiB.js.map +0 -1
  68. package/dist/internals/index-DvjHa8S2.js.map +0 -1
  69. package/dist/internals/index-Dz0pmKCD.d.ts.map +0 -1
  70. package/dist/internals/random-CvVZek_8.js.map +0 -1
  71. package/dist/internals/random-DGiu1IIq.mjs.map +0 -1
package/dist/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { P as ProtoClient } from './internals/index-BL2gpGny.js';
2
- export { c as classExtends, e as isFile, a as isObject, i as isQuery, d as isRole, b as isUser } from './internals/index-BL2gpGny.js';
1
+ import { P as ProtoClient } from './internals/index-CyXddWjz.js';
2
+ export { c as classExtends, e as isFile, a as isObject, i as isQuery, d as isRole, b as isUser } from './internals/index-CyXddWjz.js';
3
3
  export { Decimal } from 'decimal.js';
4
- export { D as DeserializeOptions, S as SerializeOptions, d as TSerializable, e as deserialize, s as serialize } from './internals/index-Dz0pmKCD.js';
4
+ export { D as DeserializeOptions, S as SerializeOptions, d as TSerializable, e as deserialize, s as serialize } from './internals/index-BgZqiNxF.js';
5
5
  import '@o2ter/utils-js';
6
6
  import 'socket.io-client';
7
7
  import '@socket.io/component-emitter';
package/dist/client.js CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./internals/index-DvjHa8S2.js');
5
+ var index = require('./internals/index-DwCNTJb5.js');
6
6
  var Decimal = require('decimal.js');
7
- require('./internals/index-DXuW8UiB.js');
7
+ require('./internals/index-DRq6T_5w.js');
8
8
  require('lodash');
9
- require('./internals/private-CSB1Ep4g.js');
9
+ require('./internals/private-Ciddhure.js');
10
10
  require('@o2ter/utils-js');
11
11
  require('axios');
12
12
  require('@o2ter/server-js/dist/const');
@@ -16,7 +16,7 @@ require('socket.io-client');
16
16
  // index.ts
17
17
  //
18
18
  // The MIT License
19
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
19
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
20
20
  //
21
21
  // Permission is hereby granted, free of charge, to any person obtaining a copy
22
22
  // of this software and associated documentation files (the "Software"), to deal
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sources":["../../src/client/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport { ProtoClient } from './proto';\n\nexport * from '../common';\n\nexport { ProtoClient };\n\nexport default ProtoClient;"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"client.js","sources":["../../src/client/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport { ProtoClient } from './proto';\n\nexport * from '../common';\n\nexport { ProtoClient };\n\nexport default ProtoClient;"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;"}
package/dist/client.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { c as ProtoClient } from './internals/index-A2Ulsntq.mjs';
2
- export { e as classExtends, d as deserialize, j as isFile, f as isObject, i as isQuery, h as isRole, g as isUser, s as serialize } from './internals/index-A2Ulsntq.mjs';
1
+ import { e as ProtoClient } from './internals/index-CPodB1P0.mjs';
2
+ export { f as classExtends, d as deserialize, k as isFile, g as isObject, i as isQuery, j as isRole, h as isUser, s as serialize } from './internals/index-CPodB1P0.mjs';
3
3
  export { Decimal } from 'decimal.js';
4
- import './internals/index-CTsc042s.mjs';
4
+ import './internals/index-DyjcBbS1.mjs';
5
5
  import 'lodash';
6
- import './internals/private-BUpLAMZi.mjs';
6
+ import './internals/private-CNw40LZ7.mjs';
7
7
  import '@o2ter/utils-js';
8
8
  import 'axios';
9
9
  import '@o2ter/server-js/dist/const';
@@ -13,7 +13,7 @@ import 'socket.io-client';
13
13
  // index.ts
14
14
  //
15
15
  // The MIT License
16
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
16
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
17
17
  //
18
18
  // Permission is hereby granted, free of charge, to any person obtaining a copy
19
19
  // of this software and associated documentation files (the "Software"), to deal
@@ -1 +1 @@
1
- {"version":3,"file":"client.mjs","sources":["../../src/client/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport { ProtoClient } from './proto';\n\nexport * from '../common';\n\nexport { ProtoClient };\n\nexport default ProtoClient;"],"names":[],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;"}
1
+ {"version":3,"file":"client.mjs","sources":["../../src/client/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport { ProtoClient } from './proto';\n\nexport * from '../common';\n\nexport { ProtoClient };\n\nexport default ProtoClient;"],"names":[],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as socket_io from 'socket.io';
2
2
  import { Router } from 'express';
3
3
  import { Server } from '@o2ter/server-js';
4
- import { T as TSchema, _ as _TValue, P as ProtoService, a as ProtoServiceOptions, b as ProtoServiceKeyOptions } from './internals/index-Dz0pmKCD.js';
5
- export { D as DeserializeOptions, S as SerializeOptions, c as TFileStorage, d as TSerializable, e as deserialize, s as serialize } from './internals/index-Dz0pmKCD.js';
4
+ import { T as TSchema, _ as _TValue, P as ProtoService, a as ProtoServiceOptions, b as ProtoServiceKeyOptions } from './internals/index-BgZqiNxF.js';
5
+ export { D as DeserializeOptions, S as SerializeOptions, c as TFileStorage, d as TSerializable, e as deserialize, s as serialize } from './internals/index-BgZqiNxF.js';
6
6
  import Decimal from 'decimal.js';
7
7
  export { Decimal } from 'decimal.js';
8
- export { P as ProtoClient, c as classExtends, e as isFile, a as isObject, i as isQuery, d as isRole, b as isUser } from './internals/index-BL2gpGny.js';
8
+ export { P as ProtoClient, c as classExtends, e as isFile, a as isObject, i as isQuery, d as isRole, b as isUser } from './internals/index-CyXddWjz.js';
9
9
  import '@o2ter/utils-js';
10
10
  import 'jsonwebtoken';
11
11
  import 'lodash';
@@ -53,6 +53,15 @@ declare const schema: ((x: Record<string, TSchema>) => Record<string, TSchema>)
53
53
  readonly type: "string";
54
54
  readonly default: string | undefined;
55
55
  };
56
+ /**
57
+ * Defines a string array schema.
58
+ * @param defaultValue - The default value for the string array.
59
+ * @returns The string array schema.
60
+ */
61
+ stringArray: (defaultValue?: string) => {
62
+ readonly type: "string[]";
63
+ readonly default: string | undefined;
64
+ };
56
65
  /**
57
66
  * Defines a date schema.
58
67
  * @param defaultValue - The default value for the date.
package/dist/index.js CHANGED
@@ -4,18 +4,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _ = require('lodash');
6
6
  var serverJs = require('@o2ter/server-js');
7
- var random = require('./internals/random-CvVZek_8.js');
8
- var _private = require('./internals/private-CSB1Ep4g.js');
7
+ var random = require('./internals/random-CDtFUuES.js');
8
+ var _private = require('./internals/private-Ciddhure.js');
9
9
  var utilsJs = require('@o2ter/utils-js');
10
- var index = require('./internals/index-DvjHa8S2.js');
11
- var index$1 = require('./internals/index-DXuW8UiB.js');
10
+ var index = require('./internals/index-DwCNTJb5.js');
11
+ var index$1 = require('./internals/index-DRq6T_5w.js');
12
12
  var jwt = require('jsonwebtoken');
13
13
  var node_buffer = require('node:buffer');
14
14
  var node_stream = require('node:stream');
15
15
  var node_crypto = require('node:crypto');
16
16
  var util = require('util');
17
17
  var cryptoJs = require('@o2ter/crypto-js');
18
- var index$2 = require('./internals/index-Dc3V_Bzw.js');
18
+ var index$2 = require('./internals/index-DjrC854w.js');
19
19
  var queryType = require('query-types');
20
20
  var busboy = require('busboy');
21
21
  var Decimal = require('decimal.js');
@@ -27,7 +27,7 @@ require('socket.io-client');
27
27
  // utils.ts
28
28
  //
29
29
  // The MIT License
30
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
30
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
31
31
  //
32
32
  // Permission is hereby granted, free of charge, to any person obtaining a copy
33
33
  // of this software and associated documentation files (the "Software"), to deal
@@ -61,7 +61,7 @@ const normalize = (x) => {
61
61
  // methods.ts
62
62
  //
63
63
  // The MIT License
64
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
64
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
65
65
  //
66
66
  // Permission is hereby granted, free of charge, to any person obtaining a copy
67
67
  // of this software and associated documentation files (the "Software"), to deal
@@ -256,7 +256,7 @@ const dispatcher = (proto, options, disableSecurity) => {
256
256
  // options.ts
257
257
  //
258
258
  // The MIT License
259
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
259
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
260
260
  //
261
261
  // Permission is hereby granted, free of charge, to any person obtaining a copy
262
262
  // of this software and associated documentation files (the "Software"), to deal
@@ -282,7 +282,7 @@ const _serviceOf = (options) => options?.session instanceof ProtoService ? optio
282
282
  // methods.ts
283
283
  //
284
284
  // The MIT License
285
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
285
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
286
286
  //
287
287
  // Permission is hereby granted, free of charge, to any person obtaining a copy
288
288
  // of this software and associated documentation files (the "Software"), to deal
@@ -435,7 +435,7 @@ class ProtoRelationQuery extends _ProtoQuery {
435
435
  // defaults.ts
436
436
  //
437
437
  // The MIT License
438
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
438
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
439
439
  //
440
440
  // Permission is hereby granted, free of charge, to any person obtaining a copy
441
441
  // of this software and associated documentation files (the "Software"), to deal
@@ -529,7 +529,7 @@ const defaultSchema = {
529
529
  // password.ts
530
530
  //
531
531
  // The MIT License
532
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
532
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
533
533
  //
534
534
  // Permission is hereby granted, free of charge, to any person obtaining a copy
535
535
  // of this software and associated documentation files (the "Software"), to deal
@@ -599,7 +599,7 @@ const varifyPassword = async (alg, password, options) => {
599
599
  // proxy.ts
600
600
  //
601
601
  // The MIT License
602
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
602
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
603
603
  //
604
604
  // Permission is hereby granted, free of charge, to any person obtaining a copy
605
605
  // of this software and associated documentation files (the "Software"), to deal
@@ -639,7 +639,7 @@ const proxy = (x) => {
639
639
  // internal.ts
640
640
  //
641
641
  // The MIT License
642
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
642
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
643
643
  //
644
644
  // Permission is hereby granted, free of charge, to any person obtaining a copy
645
645
  // of this software and associated documentation files (the "Software"), to deal
@@ -997,7 +997,7 @@ class ProtoInternal {
997
997
  if (data._rperm && (!_.isArray(data._rperm) || !_.every(data._rperm, _.isString))) {
998
998
  throw Error('Invalid data type');
999
999
  }
1000
- return this.options.pubsub.publish({
1000
+ return this.options.pubsub.publish(index.PROTO_NOTY_MSG, {
1001
1001
  ...data,
1002
1002
  _id: this.generateId(),
1003
1003
  _created_at: new Date(),
@@ -1008,11 +1008,16 @@ class ProtoInternal {
1008
1008
  const isMaster = proto.isMaster;
1009
1009
  const roles = isMaster ? [] : this._perms(proto);
1010
1010
  return {
1011
- remove: this.options.pubsub.subscribe(payload => {
1011
+ remove: this.options.pubsub.subscribe(index.PROTO_NOTY_MSG, payload => {
1012
1012
  const { _rperm } = payload;
1013
1013
  (async () => {
1014
- if (isMaster || _.some(await roles, x => _.includes(_rperm, x))) {
1015
- callback(payload);
1014
+ try {
1015
+ if (isMaster || _.some(await roles, x => _.includes(_rperm, x))) {
1016
+ callback(payload);
1017
+ }
1018
+ }
1019
+ catch (e) {
1020
+ console.error(e);
1016
1021
  }
1017
1022
  })();
1018
1023
  }),
@@ -1030,7 +1035,7 @@ class ProtoInternal {
1030
1035
  }
1031
1036
  async refs(proto, object, options) {
1032
1037
  const roles = options?.master ? [] : await this._perms(proto);
1033
- const classNames = options?.master ? _.keys(this.options.schema) : _.filter(_.keys(this.options.schema), x => proto[_private.PVK].validateCLPs(x, roles, ['find']));
1038
+ const classNames = options?.master ? _.keys(this.options.schema) : _.filter(_.keys(this.options.schema), x => this.validateCLPs(x, roles, ['find']));
1034
1039
  const storage = _serviceOf(options)?.storage ?? this.options.storage;
1035
1040
  return storage.refs(object, classNames, options?.master ? undefined : roles);
1036
1041
  }
@@ -1040,7 +1045,7 @@ class ProtoInternal {
1040
1045
  // session.ts
1041
1046
  //
1042
1047
  // The MIT License
1043
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1048
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1044
1049
  //
1045
1050
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1046
1051
  // of this software and associated documentation files (the "Software"), to deal
@@ -1181,7 +1186,7 @@ const signUser = async (proto, res, user, options) => {
1181
1186
  // schedule.ts
1182
1187
  //
1183
1188
  // The MIT License
1184
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1189
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1185
1190
  //
1186
1191
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1187
1192
  // of this software and associated documentation files (the "Software"), to deal
@@ -1235,7 +1240,7 @@ const schedule = (proto) => {
1235
1240
  // index.ts
1236
1241
  //
1237
1242
  // The MIT License
1238
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1243
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1239
1244
  //
1240
1245
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1241
1246
  // of this software and associated documentation files (the "Software"), to deal
@@ -1501,7 +1506,7 @@ class ProtoService extends index.ProtoType {
1501
1506
  // index.ts
1502
1507
  //
1503
1508
  // The MIT License
1504
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1509
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1505
1510
  //
1506
1511
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1507
1512
  // of this software and associated documentation files (the "Software"), to deal
@@ -1537,7 +1542,7 @@ var authHandler = (proto) => async (req, res, next) => {
1537
1542
  // common.ts
1538
1543
  //
1539
1544
  // The MIT License
1540
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1545
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1541
1546
  //
1542
1547
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1543
1548
  // of this software and associated documentation files (the "Software"), to deal
@@ -1597,7 +1602,7 @@ const decodeFormStream = (req, onFile) => {
1597
1602
  // classes.ts
1598
1603
  //
1599
1604
  // The MIT License
1600
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1605
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1601
1606
  //
1602
1607
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1603
1608
  // of this software and associated documentation files (the "Software"), to deal
@@ -1833,7 +1838,7 @@ var classesRoute = (router, proto) => {
1833
1838
  // function.ts
1834
1839
  //
1835
1840
  // The MIT License
1836
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1841
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1837
1842
  //
1838
1843
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1839
1844
  // of this software and associated documentation files (the "Software"), to deal
@@ -1885,7 +1890,7 @@ var functionRoute = (router, proto) => {
1885
1890
  // files.ts
1886
1891
  //
1887
1892
  // The MIT License
1888
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1893
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1889
1894
  //
1890
1895
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1891
1896
  // of this software and associated documentation files (the "Software"), to deal
@@ -1965,7 +1970,7 @@ var filesRoute = (router, proto) => {
1965
1970
  // user.ts
1966
1971
  //
1967
1972
  // The MIT License
1968
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
1973
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
1969
1974
  //
1970
1975
  // Permission is hereby granted, free of charge, to any person obtaining a copy
1971
1976
  // of this software and associated documentation files (the "Software"), to deal
@@ -2022,7 +2027,7 @@ var userRoute = (router, proto) => {
2022
2027
  // user.ts
2023
2028
  //
2024
2029
  // The MIT License
2025
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
2030
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
2026
2031
  //
2027
2032
  // Permission is hereby granted, free of charge, to any person obtaining a copy
2028
2033
  // of this software and associated documentation files (the "Software"), to deal
@@ -2055,7 +2060,7 @@ var notifyRoute = (router, proto) => {
2055
2060
  // schema.ts
2056
2061
  //
2057
2062
  // The MIT License
2058
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
2063
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
2059
2064
  //
2060
2065
  // Permission is hereby granted, free of charge, to any person obtaining a copy
2061
2066
  // of this software and associated documentation files (the "Software"), to deal
@@ -2104,7 +2109,7 @@ var schemaRoute = (router, proto) => {
2104
2109
  // schema.ts
2105
2110
  //
2106
2111
  // The MIT License
2107
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
2112
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
2108
2113
  //
2109
2114
  // Permission is hereby granted, free of charge, to any person obtaining a copy
2110
2115
  // of this software and associated documentation files (the "Software"), to deal
@@ -2156,7 +2161,7 @@ var configRoute = (router, proto) => {
2156
2161
  // index.ts
2157
2162
  //
2158
2163
  // The MIT License
2159
- // Copyright (c) 2021 - 2024 O2ter Limited. All rights reserved.
2164
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
2160
2165
  //
2161
2166
  // Permission is hereby granted, free of charge, to any person obtaining a copy
2162
2167
  // of this software and associated documentation files (the "Software"), to deal
@@ -2204,6 +2209,12 @@ const schema = _.assign((x) => x, {
2204
2209
  * @returns The string schema.
2205
2210
  */
2206
2211
  string: (defaultValue) => ({ type: 'string', default: defaultValue }),
2212
+ /**
2213
+ * Defines a string array schema.
2214
+ * @param defaultValue - The default value for the string array.
2215
+ * @returns The string array schema.
2216
+ */
2217
+ stringArray: (defaultValue) => ({ type: 'string[]', default: defaultValue }),
2207
2218
  /**
2208
2219
  * Defines a date schema.
2209
2220
  * @param defaultValue - The default value for the date.