@ondewo/nlu-client-typescript 5.0.0 → 6.0.0

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 (76) hide show
  1. package/api/google/api/annotations_pb.d.ts +2 -2
  2. package/api/google/api/annotations_pb.js +7 -1
  3. package/api/google/protobuf/any_pb.js +7 -1
  4. package/api/google/protobuf/empty_pb.js +7 -1
  5. package/api/google/protobuf/field_mask_pb.js +7 -1
  6. package/api/google/protobuf/struct_pb.js +9 -2
  7. package/api/google/protobuf/timestamp_pb.js +7 -1
  8. package/api/google/rpc/status_pb.d.ts +1 -1
  9. package/api/google/rpc/status_pb.js +7 -1
  10. package/api/google/type/latlng_pb.js +7 -1
  11. package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +3 -64
  12. package/api/ondewo/nlu/agent_grpc_web_pb.js +7 -310
  13. package/api/ondewo/nlu/agent_pb.d.ts +11 -12
  14. package/api/ondewo/nlu/agent_pb.js +9 -4
  15. package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +35 -1
  16. package/api/ondewo/nlu/aiservices_grpc_web_pb.js +191 -3
  17. package/api/ondewo/nlu/aiservices_pb.d.ts +190 -3
  18. package/api/ondewo/nlu/aiservices_pb.js +1610 -30
  19. package/api/ondewo/nlu/ccai_project_grpc_web_pb.d.ts +13 -1
  20. package/api/ondewo/nlu/ccai_project_grpc_web_pb.js +68 -3
  21. package/api/ondewo/nlu/ccai_project_pb.d.ts +89 -5
  22. package/api/ondewo/nlu/ccai_project_pb.js +375 -5
  23. package/api/ondewo/nlu/common_pb.d.ts +27 -27
  24. package/api/ondewo/nlu/common_pb.js +52 -46
  25. package/api/ondewo/nlu/context_grpc_web_pb.d.ts +2 -2
  26. package/api/ondewo/nlu/context_grpc_web_pb.js +7 -3
  27. package/api/ondewo/nlu/context_pb.d.ts +4 -4
  28. package/api/ondewo/nlu/context_pb.js +9 -2
  29. package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +3 -3
  30. package/api/ondewo/nlu/entity_type_grpc_web_pb.js +7 -3
  31. package/api/ondewo/nlu/entity_type_pb.d.ts +6 -6
  32. package/api/ondewo/nlu/entity_type_pb.js +7 -1
  33. package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +3 -3
  34. package/api/ondewo/nlu/intent_grpc_web_pb.js +7 -3
  35. package/api/ondewo/nlu/intent_pb.d.ts +8 -8
  36. package/api/ondewo/nlu/intent_pb.js +7 -1
  37. package/api/ondewo/nlu/operation_metadata_pb.d.ts +1 -1
  38. package/api/ondewo/nlu/operation_metadata_pb.js +7 -1
  39. package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +2 -2
  40. package/api/ondewo/nlu/operations_grpc_web_pb.js +7 -3
  41. package/api/ondewo/nlu/operations_pb.d.ts +6 -6
  42. package/api/ondewo/nlu/operations_pb.js +7 -1
  43. package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +2 -2
  44. package/api/ondewo/nlu/project_role_grpc_web_pb.js +7 -3
  45. package/api/ondewo/nlu/project_role_pb.d.ts +4 -4
  46. package/api/ondewo/nlu/project_role_pb.js +7 -1
  47. package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +2 -2
  48. package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +7 -3
  49. package/api/ondewo/nlu/project_statistics_pb.d.ts +4 -4
  50. package/api/ondewo/nlu/project_statistics_pb.js +7 -1
  51. package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +3 -3
  52. package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +7 -3
  53. package/api/ondewo/nlu/server_statistics_pb.d.ts +3 -3
  54. package/api/ondewo/nlu/server_statistics_pb.js +7 -1
  55. package/api/ondewo/nlu/session_grpc_web_pb.d.ts +46 -10
  56. package/api/ondewo/nlu/session_grpc_web_pb.js +209 -22
  57. package/api/ondewo/nlu/session_pb.d.ts +324 -24
  58. package/api/ondewo/nlu/session_pb.js +7785 -5316
  59. package/api/ondewo/nlu/user_grpc_web_pb.d.ts +3 -3
  60. package/api/ondewo/nlu/user_grpc_web_pb.js +7 -3
  61. package/api/ondewo/nlu/user_pb.d.ts +6 -6
  62. package/api/ondewo/nlu/user_pb.js +9 -2
  63. package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +1 -1
  64. package/api/ondewo/nlu/utility_grpc_web_pb.js +7 -3
  65. package/api/ondewo/nlu/utility_pb.d.ts +2 -2
  66. package/api/ondewo/nlu/utility_pb.js +7 -1
  67. package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +2 -2
  68. package/api/ondewo/nlu/webhook_grpc_web_pb.js +7 -3
  69. package/api/ondewo/nlu/webhook_pb.d.ts +8 -8
  70. package/api/ondewo/nlu/webhook_pb.js +7 -1
  71. package/api/ondewo/qa/qa_grpc_web_pb.d.ts +2 -2
  72. package/api/ondewo/qa/qa_grpc_web_pb.js +7 -3
  73. package/api/ondewo/qa/qa_pb.d.ts +3 -3
  74. package/api/ondewo/qa/qa_pb.js +7 -1
  75. package/package.json +36 -16
  76. package/public-api.js +40 -0
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v5.27.3
11
+ // source: ondewo/nlu/operations.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -52,7 +56,7 @@ proto.ondewo.nlu.OperationsClient =
52
56
  /**
53
57
  * @private @const {string} The hostname
54
58
  */
55
- this.hostname_ = hostname;
59
+ this.hostname_ = hostname.replace(/\/+$/, '');
56
60
 
57
61
  };
58
62
 
@@ -78,7 +82,7 @@ proto.ondewo.nlu.OperationsPromiseClient =
78
82
  /**
79
83
  * @private @const {string} The hostname
80
84
  */
81
- this.hostname_ = hostname;
85
+ this.hostname_ = hostname.replace(/\/+$/, '');
82
86
 
83
87
  };
84
88
 
@@ -1,11 +1,11 @@
1
1
  import * as jspb from 'google-protobuf'
2
2
 
3
- import * as google_api_annotations_pb from '../../google/api/annotations_pb';
4
- import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb';
5
- import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
6
- import * as google_rpc_status_pb from '../../google/rpc/status_pb';
7
- import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
8
- import * as ondewo_nlu_operation_metadata_pb from '../../ondewo/nlu/operation_metadata_pb';
3
+ import * as google_api_annotations_pb from '../../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
4
+ import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb'; // proto import: "google/protobuf/any.proto"
5
+ import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; // proto import: "google/protobuf/empty.proto"
6
+ import * as google_rpc_status_pb from '../../google/rpc/status_pb'; // proto import: "google/rpc/status.proto"
7
+ import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
8
+ import * as ondewo_nlu_operation_metadata_pb from '../../ondewo/nlu/operation_metadata_pb'; // proto import: "ondewo/nlu/operation_metadata.proto"
9
9
 
10
10
 
11
11
  export class Operation extends jspb.Message {
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
17
23
 
18
24
  var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
25
  goog.object.extend(proto, google_api_annotations_pb);
@@ -1,7 +1,7 @@
1
1
  import * as grpcWeb from 'grpc-web';
2
2
 
3
- import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
4
- import * as ondewo_nlu_project_role_pb from '../../ondewo/nlu/project_role_pb';
3
+ import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; // proto import: "google/protobuf/empty.proto"
4
+ import * as ondewo_nlu_project_role_pb from '../../ondewo/nlu/project_role_pb'; // proto import: "ondewo/nlu/project_role.proto"
5
5
 
6
6
 
7
7
  export class ProjectRolesClient {
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v5.27.3
11
+ // source: ondewo/nlu/project_role.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -48,7 +52,7 @@ proto.ondewo.nlu.ProjectRolesClient =
48
52
  /**
49
53
  * @private @const {string} The hostname
50
54
  */
51
- this.hostname_ = hostname;
55
+ this.hostname_ = hostname.replace(/\/+$/, '');
52
56
 
53
57
  };
54
58
 
@@ -74,7 +78,7 @@ proto.ondewo.nlu.ProjectRolesPromiseClient =
74
78
  /**
75
79
  * @private @const {string} The hostname
76
80
  */
77
- this.hostname_ = hostname;
81
+ this.hostname_ = hostname.replace(/\/+$/, '');
78
82
 
79
83
  };
80
84
 
@@ -1,9 +1,9 @@
1
1
  import * as jspb from 'google-protobuf'
2
2
 
3
- import * as google_api_annotations_pb from '../../google/api/annotations_pb';
4
- import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
5
- import * as google_protobuf_field_mask_pb from 'google-protobuf/google/protobuf/field_mask_pb';
6
- import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
3
+ import * as google_api_annotations_pb from '../../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
4
+ import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; // proto import: "google/protobuf/empty.proto"
5
+ import * as google_protobuf_field_mask_pb from 'google-protobuf/google/protobuf/field_mask_pb'; // proto import: "google/protobuf/field_mask.proto"
6
+ import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb'; // proto import: "google/protobuf/timestamp.proto"
7
7
 
8
8
 
9
9
  export class ProjectRole extends jspb.Message {
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
17
23
 
18
24
  var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
25
  goog.object.extend(proto, google_api_annotations_pb);
@@ -1,7 +1,7 @@
1
1
  import * as grpcWeb from 'grpc-web';
2
2
 
3
- import * as ondewo_nlu_project_statistics_pb from '../../ondewo/nlu/project_statistics_pb';
4
- import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb';
3
+ import * as ondewo_nlu_project_statistics_pb from '../../ondewo/nlu/project_statistics_pb'; // proto import: "ondewo/nlu/project_statistics.proto"
4
+ import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb'; // proto import: "ondewo/nlu/common.proto"
5
5
 
6
6
 
7
7
  export class ProjectStatisticsClient {
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v5.27.3
11
+ // source: ondewo/nlu/project_statistics.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -48,7 +52,7 @@ proto.ondewo.nlu.ProjectStatisticsClient =
48
52
  /**
49
53
  * @private @const {string} The hostname
50
54
  */
51
- this.hostname_ = hostname;
55
+ this.hostname_ = hostname.replace(/\/+$/, '');
52
56
 
53
57
  };
54
58
 
@@ -74,7 +78,7 @@ proto.ondewo.nlu.ProjectStatisticsPromiseClient =
74
78
  /**
75
79
  * @private @const {string} The hostname
76
80
  */
77
- this.hostname_ = hostname;
81
+ this.hostname_ = hostname.replace(/\/+$/, '');
78
82
 
79
83
  };
80
84
 
@@ -1,9 +1,9 @@
1
1
  import * as jspb from 'google-protobuf'
2
2
 
3
- import * as google_api_annotations_pb from '../../google/api/annotations_pb';
4
- import * as ondewo_nlu_intent_pb from '../../ondewo/nlu/intent_pb';
5
- import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb';
6
- import * as ondewo_nlu_entity_type_pb from '../../ondewo/nlu/entity_type_pb';
3
+ import * as google_api_annotations_pb from '../../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
4
+ import * as ondewo_nlu_intent_pb from '../../ondewo/nlu/intent_pb'; // proto import: "ondewo/nlu/intent.proto"
5
+ import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb'; // proto import: "ondewo/nlu/common.proto"
6
+ import * as ondewo_nlu_entity_type_pb from '../../ondewo/nlu/entity_type_pb'; // proto import: "ondewo/nlu/entity_type.proto"
7
7
 
8
8
 
9
9
  export class GetIntentCountRequest extends jspb.Message {
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
17
23
 
18
24
  var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
25
  goog.object.extend(proto, google_api_annotations_pb);
@@ -1,8 +1,8 @@
1
1
  import * as grpcWeb from 'grpc-web';
2
2
 
3
- import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
4
- import * as ondewo_nlu_server_statistics_pb from '../../ondewo/nlu/server_statistics_pb';
5
- import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb';
3
+ import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; // proto import: "google/protobuf/empty.proto"
4
+ import * as ondewo_nlu_server_statistics_pb from '../../ondewo/nlu/server_statistics_pb'; // proto import: "ondewo/nlu/server_statistics.proto"
5
+ import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb'; // proto import: "ondewo/nlu/common.proto"
6
6
 
7
7
 
8
8
  export class ServerStatisticsClient {
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v5.27.3
11
+ // source: ondewo/nlu/server_statistics.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -46,7 +50,7 @@ proto.ondewo.nlu.ServerStatisticsClient =
46
50
  /**
47
51
  * @private @const {string} The hostname
48
52
  */
49
- this.hostname_ = hostname;
53
+ this.hostname_ = hostname.replace(/\/+$/, '');
50
54
 
51
55
  };
52
56
 
@@ -72,7 +76,7 @@ proto.ondewo.nlu.ServerStatisticsPromiseClient =
72
76
  /**
73
77
  * @private @const {string} The hostname
74
78
  */
75
- this.hostname_ = hostname;
79
+ this.hostname_ = hostname.replace(/\/+$/, '');
76
80
 
77
81
  };
78
82
 
@@ -1,8 +1,8 @@
1
1
  import * as jspb from 'google-protobuf'
2
2
 
3
- import * as google_api_annotations_pb from '../../google/api/annotations_pb';
4
- import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
5
- import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb';
3
+ import * as google_api_annotations_pb from '../../google/api/annotations_pb'; // proto import: "google/api/annotations.proto"
4
+ import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; // proto import: "google/protobuf/empty.proto"
5
+ import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb'; // proto import: "ondewo/nlu/common.proto"
6
6
 
7
7
 
8
8
  export class GetUserProjectCountRequest extends jspb.Message {
@@ -13,7 +13,13 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
17
23
 
18
24
  var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
19
25
  goog.object.extend(proto, google_api_annotations_pb);
@@ -1,8 +1,8 @@
1
1
  import * as grpcWeb from 'grpc-web';
2
2
 
3
- import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
4
- import * as ondewo_nlu_session_pb from '../../ondewo/nlu/session_pb';
5
- import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb';
3
+ import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb'; // proto import: "google/protobuf/empty.proto"
4
+ import * as ondewo_nlu_session_pb from '../../ondewo/nlu/session_pb'; // proto import: "ondewo/nlu/session.proto"
5
+ import * as ondewo_nlu_common_pb from '../../ondewo/nlu/common_pb'; // proto import: "ondewo/nlu/common.proto"
6
6
 
7
7
 
8
8
  export class SessionsClient {
@@ -38,12 +38,33 @@ export class SessionsClient {
38
38
  response: ondewo_nlu_session_pb.Session) => void
39
39
  ): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.Session>;
40
40
 
41
- trackSessionStep(
42
- request: ondewo_nlu_session_pb.TrackSessionStepRequest,
41
+ createSessionStep(
42
+ request: ondewo_nlu_session_pb.CreateSessionStepRequest,
43
43
  metadata: grpcWeb.Metadata | undefined,
44
44
  callback: (err: grpcWeb.RpcError,
45
- response: ondewo_nlu_session_pb.Session) => void
46
- ): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.Session>;
45
+ response: ondewo_nlu_session_pb.SessionStep) => void
46
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.SessionStep>;
47
+
48
+ getSessionStep(
49
+ request: ondewo_nlu_session_pb.GetSessionStepRequest,
50
+ metadata: grpcWeb.Metadata | undefined,
51
+ callback: (err: grpcWeb.RpcError,
52
+ response: ondewo_nlu_session_pb.SessionStep) => void
53
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.SessionStep>;
54
+
55
+ updateSessionStep(
56
+ request: ondewo_nlu_session_pb.UpdateSessionStepRequest,
57
+ metadata: grpcWeb.Metadata | undefined,
58
+ callback: (err: grpcWeb.RpcError,
59
+ response: ondewo_nlu_session_pb.SessionStep) => void
60
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.SessionStep>;
61
+
62
+ deleteSessionStep(
63
+ request: ondewo_nlu_session_pb.DeleteSessionStepRequest,
64
+ metadata: grpcWeb.Metadata | undefined,
65
+ callback: (err: grpcWeb.RpcError,
66
+ response: google_protobuf_empty_pb.Empty) => void
67
+ ): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
47
68
 
48
69
  deleteSession(
49
70
  request: ondewo_nlu_session_pb.DeleteSessionRequest,
@@ -289,10 +310,25 @@ export class SessionsPromiseClient {
289
310
  metadata?: grpcWeb.Metadata
290
311
  ): Promise<ondewo_nlu_session_pb.Session>;
291
312
 
292
- trackSessionStep(
293
- request: ondewo_nlu_session_pb.TrackSessionStepRequest,
313
+ createSessionStep(
314
+ request: ondewo_nlu_session_pb.CreateSessionStepRequest,
294
315
  metadata?: grpcWeb.Metadata
295
- ): Promise<ondewo_nlu_session_pb.Session>;
316
+ ): Promise<ondewo_nlu_session_pb.SessionStep>;
317
+
318
+ getSessionStep(
319
+ request: ondewo_nlu_session_pb.GetSessionStepRequest,
320
+ metadata?: grpcWeb.Metadata
321
+ ): Promise<ondewo_nlu_session_pb.SessionStep>;
322
+
323
+ updateSessionStep(
324
+ request: ondewo_nlu_session_pb.UpdateSessionStepRequest,
325
+ metadata?: grpcWeb.Metadata
326
+ ): Promise<ondewo_nlu_session_pb.SessionStep>;
327
+
328
+ deleteSessionStep(
329
+ request: ondewo_nlu_session_pb.DeleteSessionStepRequest,
330
+ metadata?: grpcWeb.Metadata
331
+ ): Promise<google_protobuf_empty_pb.Empty>;
296
332
 
297
333
  deleteSession(
298
334
  request: ondewo_nlu_session_pb.DeleteSessionRequest,
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v5.27.3
11
+ // source: ondewo/nlu/session.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -62,7 +66,7 @@ proto.ondewo.nlu.SessionsClient =
62
66
  /**
63
67
  * @private @const {string} The hostname
64
68
  */
65
- this.hostname_ = hostname;
69
+ this.hostname_ = hostname.replace(/\/+$/, '');
66
70
 
67
71
  };
68
72
 
@@ -88,7 +92,7 @@ proto.ondewo.nlu.SessionsPromiseClient =
88
92
  /**
89
93
  * @private @const {string} The hostname
90
94
  */
91
- this.hostname_ = hostname;
95
+ this.hostname_ = hostname.replace(/\/+$/, '');
92
96
 
93
97
  };
94
98
 
@@ -340,61 +344,244 @@ proto.ondewo.nlu.SessionsPromiseClient.prototype.createSession =
340
344
  /**
341
345
  * @const
342
346
  * @type {!grpc.web.MethodDescriptor<
343
- * !proto.ondewo.nlu.TrackSessionStepRequest,
344
- * !proto.ondewo.nlu.Session>}
347
+ * !proto.ondewo.nlu.CreateSessionStepRequest,
348
+ * !proto.ondewo.nlu.SessionStep>}
345
349
  */
346
- const methodDescriptor_Sessions_TrackSessionStep = new grpc.web.MethodDescriptor(
347
- '/ondewo.nlu.Sessions/TrackSessionStep',
350
+ const methodDescriptor_Sessions_CreateSessionStep = new grpc.web.MethodDescriptor(
351
+ '/ondewo.nlu.Sessions/CreateSessionStep',
348
352
  grpc.web.MethodType.UNARY,
349
- proto.ondewo.nlu.TrackSessionStepRequest,
350
- proto.ondewo.nlu.Session,
353
+ proto.ondewo.nlu.CreateSessionStepRequest,
354
+ proto.ondewo.nlu.SessionStep,
351
355
  /**
352
- * @param {!proto.ondewo.nlu.TrackSessionStepRequest} request
356
+ * @param {!proto.ondewo.nlu.CreateSessionStepRequest} request
353
357
  * @return {!Uint8Array}
354
358
  */
355
359
  function(request) {
356
360
  return request.serializeBinary();
357
361
  },
358
- proto.ondewo.nlu.Session.deserializeBinary
362
+ proto.ondewo.nlu.SessionStep.deserializeBinary
359
363
  );
360
364
 
361
365
 
362
366
  /**
363
- * @param {!proto.ondewo.nlu.TrackSessionStepRequest} request The
367
+ * @param {!proto.ondewo.nlu.CreateSessionStepRequest} request The
364
368
  * request proto
365
369
  * @param {?Object<string, string>} metadata User defined
366
370
  * call metadata
367
- * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.Session)}
371
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.SessionStep)}
368
372
  * callback The callback function(error, response)
369
- * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Session>|undefined}
373
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.SessionStep>|undefined}
370
374
  * The XHR Node Readable Stream
371
375
  */
372
- proto.ondewo.nlu.SessionsClient.prototype.trackSessionStep =
376
+ proto.ondewo.nlu.SessionsClient.prototype.createSessionStep =
373
377
  function(request, metadata, callback) {
374
378
  return this.client_.rpcCall(this.hostname_ +
375
- '/ondewo.nlu.Sessions/TrackSessionStep',
379
+ '/ondewo.nlu.Sessions/CreateSessionStep',
376
380
  request,
377
381
  metadata || {},
378
- methodDescriptor_Sessions_TrackSessionStep,
382
+ methodDescriptor_Sessions_CreateSessionStep,
379
383
  callback);
380
384
  };
381
385
 
382
386
 
383
387
  /**
384
- * @param {!proto.ondewo.nlu.TrackSessionStepRequest} request The
388
+ * @param {!proto.ondewo.nlu.CreateSessionStepRequest} request The
385
389
  * request proto
386
390
  * @param {?Object<string, string>=} metadata User defined
387
391
  * call metadata
388
- * @return {!Promise<!proto.ondewo.nlu.Session>}
392
+ * @return {!Promise<!proto.ondewo.nlu.SessionStep>}
393
+ * Promise that resolves to the response
394
+ */
395
+ proto.ondewo.nlu.SessionsPromiseClient.prototype.createSessionStep =
396
+ function(request, metadata) {
397
+ return this.client_.unaryCall(this.hostname_ +
398
+ '/ondewo.nlu.Sessions/CreateSessionStep',
399
+ request,
400
+ metadata || {},
401
+ methodDescriptor_Sessions_CreateSessionStep);
402
+ };
403
+
404
+
405
+ /**
406
+ * @const
407
+ * @type {!grpc.web.MethodDescriptor<
408
+ * !proto.ondewo.nlu.GetSessionStepRequest,
409
+ * !proto.ondewo.nlu.SessionStep>}
410
+ */
411
+ const methodDescriptor_Sessions_GetSessionStep = new grpc.web.MethodDescriptor(
412
+ '/ondewo.nlu.Sessions/GetSessionStep',
413
+ grpc.web.MethodType.UNARY,
414
+ proto.ondewo.nlu.GetSessionStepRequest,
415
+ proto.ondewo.nlu.SessionStep,
416
+ /**
417
+ * @param {!proto.ondewo.nlu.GetSessionStepRequest} request
418
+ * @return {!Uint8Array}
419
+ */
420
+ function(request) {
421
+ return request.serializeBinary();
422
+ },
423
+ proto.ondewo.nlu.SessionStep.deserializeBinary
424
+ );
425
+
426
+
427
+ /**
428
+ * @param {!proto.ondewo.nlu.GetSessionStepRequest} request The
429
+ * request proto
430
+ * @param {?Object<string, string>} metadata User defined
431
+ * call metadata
432
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.SessionStep)}
433
+ * callback The callback function(error, response)
434
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.SessionStep>|undefined}
435
+ * The XHR Node Readable Stream
436
+ */
437
+ proto.ondewo.nlu.SessionsClient.prototype.getSessionStep =
438
+ function(request, metadata, callback) {
439
+ return this.client_.rpcCall(this.hostname_ +
440
+ '/ondewo.nlu.Sessions/GetSessionStep',
441
+ request,
442
+ metadata || {},
443
+ methodDescriptor_Sessions_GetSessionStep,
444
+ callback);
445
+ };
446
+
447
+
448
+ /**
449
+ * @param {!proto.ondewo.nlu.GetSessionStepRequest} request The
450
+ * request proto
451
+ * @param {?Object<string, string>=} metadata User defined
452
+ * call metadata
453
+ * @return {!Promise<!proto.ondewo.nlu.SessionStep>}
454
+ * Promise that resolves to the response
455
+ */
456
+ proto.ondewo.nlu.SessionsPromiseClient.prototype.getSessionStep =
457
+ function(request, metadata) {
458
+ return this.client_.unaryCall(this.hostname_ +
459
+ '/ondewo.nlu.Sessions/GetSessionStep',
460
+ request,
461
+ metadata || {},
462
+ methodDescriptor_Sessions_GetSessionStep);
463
+ };
464
+
465
+
466
+ /**
467
+ * @const
468
+ * @type {!grpc.web.MethodDescriptor<
469
+ * !proto.ondewo.nlu.UpdateSessionStepRequest,
470
+ * !proto.ondewo.nlu.SessionStep>}
471
+ */
472
+ const methodDescriptor_Sessions_UpdateSessionStep = new grpc.web.MethodDescriptor(
473
+ '/ondewo.nlu.Sessions/UpdateSessionStep',
474
+ grpc.web.MethodType.UNARY,
475
+ proto.ondewo.nlu.UpdateSessionStepRequest,
476
+ proto.ondewo.nlu.SessionStep,
477
+ /**
478
+ * @param {!proto.ondewo.nlu.UpdateSessionStepRequest} request
479
+ * @return {!Uint8Array}
480
+ */
481
+ function(request) {
482
+ return request.serializeBinary();
483
+ },
484
+ proto.ondewo.nlu.SessionStep.deserializeBinary
485
+ );
486
+
487
+
488
+ /**
489
+ * @param {!proto.ondewo.nlu.UpdateSessionStepRequest} request The
490
+ * request proto
491
+ * @param {?Object<string, string>} metadata User defined
492
+ * call metadata
493
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.SessionStep)}
494
+ * callback The callback function(error, response)
495
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.SessionStep>|undefined}
496
+ * The XHR Node Readable Stream
497
+ */
498
+ proto.ondewo.nlu.SessionsClient.prototype.updateSessionStep =
499
+ function(request, metadata, callback) {
500
+ return this.client_.rpcCall(this.hostname_ +
501
+ '/ondewo.nlu.Sessions/UpdateSessionStep',
502
+ request,
503
+ metadata || {},
504
+ methodDescriptor_Sessions_UpdateSessionStep,
505
+ callback);
506
+ };
507
+
508
+
509
+ /**
510
+ * @param {!proto.ondewo.nlu.UpdateSessionStepRequest} request The
511
+ * request proto
512
+ * @param {?Object<string, string>=} metadata User defined
513
+ * call metadata
514
+ * @return {!Promise<!proto.ondewo.nlu.SessionStep>}
515
+ * Promise that resolves to the response
516
+ */
517
+ proto.ondewo.nlu.SessionsPromiseClient.prototype.updateSessionStep =
518
+ function(request, metadata) {
519
+ return this.client_.unaryCall(this.hostname_ +
520
+ '/ondewo.nlu.Sessions/UpdateSessionStep',
521
+ request,
522
+ metadata || {},
523
+ methodDescriptor_Sessions_UpdateSessionStep);
524
+ };
525
+
526
+
527
+ /**
528
+ * @const
529
+ * @type {!grpc.web.MethodDescriptor<
530
+ * !proto.ondewo.nlu.DeleteSessionStepRequest,
531
+ * !proto.google.protobuf.Empty>}
532
+ */
533
+ const methodDescriptor_Sessions_DeleteSessionStep = new grpc.web.MethodDescriptor(
534
+ '/ondewo.nlu.Sessions/DeleteSessionStep',
535
+ grpc.web.MethodType.UNARY,
536
+ proto.ondewo.nlu.DeleteSessionStepRequest,
537
+ google_protobuf_empty_pb.Empty,
538
+ /**
539
+ * @param {!proto.ondewo.nlu.DeleteSessionStepRequest} request
540
+ * @return {!Uint8Array}
541
+ */
542
+ function(request) {
543
+ return request.serializeBinary();
544
+ },
545
+ google_protobuf_empty_pb.Empty.deserializeBinary
546
+ );
547
+
548
+
549
+ /**
550
+ * @param {!proto.ondewo.nlu.DeleteSessionStepRequest} request The
551
+ * request proto
552
+ * @param {?Object<string, string>} metadata User defined
553
+ * call metadata
554
+ * @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
555
+ * callback The callback function(error, response)
556
+ * @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
557
+ * The XHR Node Readable Stream
558
+ */
559
+ proto.ondewo.nlu.SessionsClient.prototype.deleteSessionStep =
560
+ function(request, metadata, callback) {
561
+ return this.client_.rpcCall(this.hostname_ +
562
+ '/ondewo.nlu.Sessions/DeleteSessionStep',
563
+ request,
564
+ metadata || {},
565
+ methodDescriptor_Sessions_DeleteSessionStep,
566
+ callback);
567
+ };
568
+
569
+
570
+ /**
571
+ * @param {!proto.ondewo.nlu.DeleteSessionStepRequest} request The
572
+ * request proto
573
+ * @param {?Object<string, string>=} metadata User defined
574
+ * call metadata
575
+ * @return {!Promise<!proto.google.protobuf.Empty>}
389
576
  * Promise that resolves to the response
390
577
  */
391
- proto.ondewo.nlu.SessionsPromiseClient.prototype.trackSessionStep =
578
+ proto.ondewo.nlu.SessionsPromiseClient.prototype.deleteSessionStep =
392
579
  function(request, metadata) {
393
580
  return this.client_.unaryCall(this.hostname_ +
394
- '/ondewo.nlu.Sessions/TrackSessionStep',
581
+ '/ondewo.nlu.Sessions/DeleteSessionStep',
395
582
  request,
396
583
  metadata || {},
397
- methodDescriptor_Sessions_TrackSessionStep);
584
+ methodDescriptor_Sessions_DeleteSessionStep);
398
585
  };
399
586
 
400
587