@ondewo/nlu-client-typescript 3.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.
- package/LICENSE +191 -0
- package/README.md +27 -0
- package/api/google/api/annotations_pb.d.ts +6 -0
- package/api/google/api/annotations_pb.js +48 -0
- package/api/google/protobuf/any_pb.d.ts +28 -0
- package/api/google/protobuf/any_pb.js +275 -0
- package/api/google/protobuf/empty_pb.d.ts +18 -0
- package/api/google/protobuf/empty_pb.js +141 -0
- package/api/google/protobuf/field_mask_pb.d.ts +24 -0
- package/api/google/protobuf/field_mask_pb.js +196 -0
- package/api/google/protobuf/struct_pb.d.ts +99 -0
- package/api/google/protobuf/struct_pb.js +948 -0
- package/api/google/protobuf/timestamp_pb.d.ts +26 -0
- package/api/google/protobuf/timestamp_pb.js +236 -0
- package/api/google/rpc/status_pb.d.ts +33 -0
- package/api/google/rpc/status_pb.js +262 -0
- package/api/google/type/latlng_pb.d.ts +26 -0
- package/api/google/type/latlng_pb.js +200 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +489 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.js +2476 -0
- package/api/ondewo/nlu/agent_pb.d.ts +2079 -0
- package/api/ondewo/nlu/agent_pb.js +16648 -0
- package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +115 -0
- package/api/ondewo/nlu/aiservices_grpc_web_pb.js +569 -0
- package/api/ondewo/nlu/aiservices_pb.d.ts +933 -0
- package/api/ondewo/nlu/aiservices_pb.js +7601 -0
- package/api/ondewo/nlu/common_pb.d.ts +26 -0
- package/api/ondewo/nlu/common_pb.js +179 -0
- package/api/ondewo/nlu/context_grpc_web_pb.d.ts +92 -0
- package/api/ondewo/nlu/context_grpc_web_pb.js +447 -0
- package/api/ondewo/nlu/context_pb.d.ts +218 -0
- package/api/ondewo/nlu/context_pb.js +1788 -0
- package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +165 -0
- package/api/ondewo/nlu/entity_type_grpc_web_pb.js +817 -0
- package/api/ondewo/nlu/entity_type_pb.d.ts +756 -0
- package/api/ondewo/nlu/entity_type_pb.js +5970 -0
- package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +345 -0
- package/api/ondewo/nlu/intent_grpc_web_pb.js +1738 -0
- package/api/ondewo/nlu/intent_pb.d.ts +2344 -0
- package/api/ondewo/nlu/intent_pb.js +18784 -0
- package/api/ondewo/nlu/operation_metadata_pb.d.ts +112 -0
- package/api/ondewo/nlu/operation_metadata_pb.js +740 -0
- package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +68 -0
- package/api/ondewo/nlu/operations_grpc_web_pb.js +331 -0
- package/api/ondewo/nlu/operations_pb.d.ts +236 -0
- package/api/ondewo/nlu/operations_pb.js +1826 -0
- package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +80 -0
- package/api/ondewo/nlu/project_role_grpc_web_pb.js +386 -0
- package/api/ondewo/nlu/project_role_pb.d.ts +220 -0
- package/api/ondewo/nlu/project_role_pb.js +1713 -0
- package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +116 -0
- package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +571 -0
- package/api/ondewo/nlu/project_statistics_pb.d.ts +92 -0
- package/api/ondewo/nlu/project_statistics_pb.js +724 -0
- package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +57 -0
- package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +264 -0
- package/api/ondewo/nlu/server_statistics_pb.d.ts +25 -0
- package/api/ondewo/nlu/server_statistics_pb.js +176 -0
- package/api/ondewo/nlu/session_grpc_web_pb.d.ts +176 -0
- package/api/ondewo/nlu/session_grpc_web_pb.js +884 -0
- package/api/ondewo/nlu/session_pb.d.ts +1192 -0
- package/api/ondewo/nlu/session_pb.js +9762 -0
- package/api/ondewo/nlu/user_grpc_web_pb.d.ts +200 -0
- package/api/ondewo/nlu/user_grpc_web_pb.js +998 -0
- package/api/ondewo/nlu/user_pb.d.ts +489 -0
- package/api/ondewo/nlu/user_pb.js +4057 -0
- package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +115 -0
- package/api/ondewo/nlu/utility_grpc_web_pb.js +567 -0
- package/api/ondewo/nlu/utility_pb.d.ts +708 -0
- package/api/ondewo/nlu/utility_pb.js +5914 -0
- package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +55 -0
- package/api/ondewo/nlu/webhook_grpc_web_pb.js +268 -0
- package/api/ondewo/nlu/webhook_pb.d.ts +155 -0
- package/api/ondewo/nlu/webhook_pb.js +1267 -0
- package/api/ondewo/qa/qa_grpc_web_pb.d.ts +104 -0
- package/api/ondewo/qa/qa_grpc_web_pb.js +508 -0
- package/api/ondewo/qa/qa_pb.d.ts +304 -0
- package/api/ondewo/qa/qa_pb.js +2553 -0
- package/package.json +18 -0
- package/public-api.d.ts +38 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
|
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';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class ProjectRolesClient {
|
|
8
|
+
constructor (hostname: string,
|
|
9
|
+
credentials?: null | { [index: string]: string; },
|
|
10
|
+
options?: null | { [index: string]: any; });
|
|
11
|
+
|
|
12
|
+
createProjectRole(
|
|
13
|
+
request: ondewo_nlu_project_role_pb.CreateProjectRoleRequest,
|
|
14
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
15
|
+
callback: (err: grpcWeb.RpcError,
|
|
16
|
+
response: ondewo_nlu_project_role_pb.ProjectRole) => void
|
|
17
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_project_role_pb.ProjectRole>;
|
|
18
|
+
|
|
19
|
+
getProjectRole(
|
|
20
|
+
request: ondewo_nlu_project_role_pb.GetProjectRoleRequest,
|
|
21
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
22
|
+
callback: (err: grpcWeb.RpcError,
|
|
23
|
+
response: ondewo_nlu_project_role_pb.ProjectRole) => void
|
|
24
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_project_role_pb.ProjectRole>;
|
|
25
|
+
|
|
26
|
+
deleteProjectRole(
|
|
27
|
+
request: ondewo_nlu_project_role_pb.DeleteProjectRoleRequest,
|
|
28
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
29
|
+
callback: (err: grpcWeb.RpcError,
|
|
30
|
+
response: google_protobuf_empty_pb.Empty) => void
|
|
31
|
+
): grpcWeb.ClientReadableStream<google_protobuf_empty_pb.Empty>;
|
|
32
|
+
|
|
33
|
+
updateProjectRole(
|
|
34
|
+
request: ondewo_nlu_project_role_pb.UpdateProjectRoleRequest,
|
|
35
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
36
|
+
callback: (err: grpcWeb.RpcError,
|
|
37
|
+
response: ondewo_nlu_project_role_pb.ProjectRole) => void
|
|
38
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_project_role_pb.ProjectRole>;
|
|
39
|
+
|
|
40
|
+
listProjectRoles(
|
|
41
|
+
request: ondewo_nlu_project_role_pb.ListProjectRolesRequest,
|
|
42
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
43
|
+
callback: (err: grpcWeb.RpcError,
|
|
44
|
+
response: ondewo_nlu_project_role_pb.ListProjectRolesResponse) => void
|
|
45
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_project_role_pb.ListProjectRolesResponse>;
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class ProjectRolesPromiseClient {
|
|
50
|
+
constructor (hostname: string,
|
|
51
|
+
credentials?: null | { [index: string]: string; },
|
|
52
|
+
options?: null | { [index: string]: any; });
|
|
53
|
+
|
|
54
|
+
createProjectRole(
|
|
55
|
+
request: ondewo_nlu_project_role_pb.CreateProjectRoleRequest,
|
|
56
|
+
metadata?: grpcWeb.Metadata
|
|
57
|
+
): Promise<ondewo_nlu_project_role_pb.ProjectRole>;
|
|
58
|
+
|
|
59
|
+
getProjectRole(
|
|
60
|
+
request: ondewo_nlu_project_role_pb.GetProjectRoleRequest,
|
|
61
|
+
metadata?: grpcWeb.Metadata
|
|
62
|
+
): Promise<ondewo_nlu_project_role_pb.ProjectRole>;
|
|
63
|
+
|
|
64
|
+
deleteProjectRole(
|
|
65
|
+
request: ondewo_nlu_project_role_pb.DeleteProjectRoleRequest,
|
|
66
|
+
metadata?: grpcWeb.Metadata
|
|
67
|
+
): Promise<google_protobuf_empty_pb.Empty>;
|
|
68
|
+
|
|
69
|
+
updateProjectRole(
|
|
70
|
+
request: ondewo_nlu_project_role_pb.UpdateProjectRoleRequest,
|
|
71
|
+
metadata?: grpcWeb.Metadata
|
|
72
|
+
): Promise<ondewo_nlu_project_role_pb.ProjectRole>;
|
|
73
|
+
|
|
74
|
+
listProjectRoles(
|
|
75
|
+
request: ondewo_nlu_project_role_pb.ListProjectRolesRequest,
|
|
76
|
+
metadata?: grpcWeb.Metadata
|
|
77
|
+
): Promise<ondewo_nlu_project_role_pb.ListProjectRolesResponse>;
|
|
78
|
+
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for ondewo.nlu
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
// @ts-nocheck
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const grpc = {};
|
|
16
|
+
grpc.web = require('grpc-web');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var google_api_annotations_pb = require('../../google/api/annotations_pb.js')
|
|
20
|
+
|
|
21
|
+
var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js')
|
|
22
|
+
|
|
23
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
|
24
|
+
const proto = {};
|
|
25
|
+
proto.ondewo = {};
|
|
26
|
+
proto.ondewo.nlu = require('./project_role_pb.js');
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} hostname
|
|
30
|
+
* @param {?Object} credentials
|
|
31
|
+
* @param {?grpc.web.ClientOptions} options
|
|
32
|
+
* @constructor
|
|
33
|
+
* @struct
|
|
34
|
+
* @final
|
|
35
|
+
*/
|
|
36
|
+
proto.ondewo.nlu.ProjectRolesClient =
|
|
37
|
+
function(hostname, credentials, options) {
|
|
38
|
+
if (!options) options = {};
|
|
39
|
+
options.format = 'binary';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
43
|
+
*/
|
|
44
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @private @const {string} The hostname
|
|
48
|
+
*/
|
|
49
|
+
this.hostname_ = hostname;
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @param {string} hostname
|
|
56
|
+
* @param {?Object} credentials
|
|
57
|
+
* @param {?grpc.web.ClientOptions} options
|
|
58
|
+
* @constructor
|
|
59
|
+
* @struct
|
|
60
|
+
* @final
|
|
61
|
+
*/
|
|
62
|
+
proto.ondewo.nlu.ProjectRolesPromiseClient =
|
|
63
|
+
function(hostname, credentials, options) {
|
|
64
|
+
if (!options) options = {};
|
|
65
|
+
options.format = 'binary';
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
69
|
+
*/
|
|
70
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @private @const {string} The hostname
|
|
74
|
+
*/
|
|
75
|
+
this.hostname_ = hostname;
|
|
76
|
+
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @const
|
|
82
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
83
|
+
* !proto.ondewo.nlu.CreateProjectRoleRequest,
|
|
84
|
+
* !proto.ondewo.nlu.ProjectRole>}
|
|
85
|
+
*/
|
|
86
|
+
const methodDescriptor_ProjectRoles_CreateProjectRole = new grpc.web.MethodDescriptor(
|
|
87
|
+
'/ondewo.nlu.ProjectRoles/CreateProjectRole',
|
|
88
|
+
grpc.web.MethodType.UNARY,
|
|
89
|
+
proto.ondewo.nlu.CreateProjectRoleRequest,
|
|
90
|
+
proto.ondewo.nlu.ProjectRole,
|
|
91
|
+
/**
|
|
92
|
+
* @param {!proto.ondewo.nlu.CreateProjectRoleRequest} request
|
|
93
|
+
* @return {!Uint8Array}
|
|
94
|
+
*/
|
|
95
|
+
function(request) {
|
|
96
|
+
return request.serializeBinary();
|
|
97
|
+
},
|
|
98
|
+
proto.ondewo.nlu.ProjectRole.deserializeBinary
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @param {!proto.ondewo.nlu.CreateProjectRoleRequest} request The
|
|
104
|
+
* request proto
|
|
105
|
+
* @param {?Object<string, string>} metadata User defined
|
|
106
|
+
* call metadata
|
|
107
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ProjectRole)}
|
|
108
|
+
* callback The callback function(error, response)
|
|
109
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ProjectRole>|undefined}
|
|
110
|
+
* The XHR Node Readable Stream
|
|
111
|
+
*/
|
|
112
|
+
proto.ondewo.nlu.ProjectRolesClient.prototype.createProjectRole =
|
|
113
|
+
function(request, metadata, callback) {
|
|
114
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
115
|
+
'/ondewo.nlu.ProjectRoles/CreateProjectRole',
|
|
116
|
+
request,
|
|
117
|
+
metadata || {},
|
|
118
|
+
methodDescriptor_ProjectRoles_CreateProjectRole,
|
|
119
|
+
callback);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @param {!proto.ondewo.nlu.CreateProjectRoleRequest} request The
|
|
125
|
+
* request proto
|
|
126
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
127
|
+
* call metadata
|
|
128
|
+
* @return {!Promise<!proto.ondewo.nlu.ProjectRole>}
|
|
129
|
+
* Promise that resolves to the response
|
|
130
|
+
*/
|
|
131
|
+
proto.ondewo.nlu.ProjectRolesPromiseClient.prototype.createProjectRole =
|
|
132
|
+
function(request, metadata) {
|
|
133
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
134
|
+
'/ondewo.nlu.ProjectRoles/CreateProjectRole',
|
|
135
|
+
request,
|
|
136
|
+
metadata || {},
|
|
137
|
+
methodDescriptor_ProjectRoles_CreateProjectRole);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @const
|
|
143
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
144
|
+
* !proto.ondewo.nlu.GetProjectRoleRequest,
|
|
145
|
+
* !proto.ondewo.nlu.ProjectRole>}
|
|
146
|
+
*/
|
|
147
|
+
const methodDescriptor_ProjectRoles_GetProjectRole = new grpc.web.MethodDescriptor(
|
|
148
|
+
'/ondewo.nlu.ProjectRoles/GetProjectRole',
|
|
149
|
+
grpc.web.MethodType.UNARY,
|
|
150
|
+
proto.ondewo.nlu.GetProjectRoleRequest,
|
|
151
|
+
proto.ondewo.nlu.ProjectRole,
|
|
152
|
+
/**
|
|
153
|
+
* @param {!proto.ondewo.nlu.GetProjectRoleRequest} request
|
|
154
|
+
* @return {!Uint8Array}
|
|
155
|
+
*/
|
|
156
|
+
function(request) {
|
|
157
|
+
return request.serializeBinary();
|
|
158
|
+
},
|
|
159
|
+
proto.ondewo.nlu.ProjectRole.deserializeBinary
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @param {!proto.ondewo.nlu.GetProjectRoleRequest} request The
|
|
165
|
+
* request proto
|
|
166
|
+
* @param {?Object<string, string>} metadata User defined
|
|
167
|
+
* call metadata
|
|
168
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ProjectRole)}
|
|
169
|
+
* callback The callback function(error, response)
|
|
170
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ProjectRole>|undefined}
|
|
171
|
+
* The XHR Node Readable Stream
|
|
172
|
+
*/
|
|
173
|
+
proto.ondewo.nlu.ProjectRolesClient.prototype.getProjectRole =
|
|
174
|
+
function(request, metadata, callback) {
|
|
175
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
176
|
+
'/ondewo.nlu.ProjectRoles/GetProjectRole',
|
|
177
|
+
request,
|
|
178
|
+
metadata || {},
|
|
179
|
+
methodDescriptor_ProjectRoles_GetProjectRole,
|
|
180
|
+
callback);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @param {!proto.ondewo.nlu.GetProjectRoleRequest} request The
|
|
186
|
+
* request proto
|
|
187
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
188
|
+
* call metadata
|
|
189
|
+
* @return {!Promise<!proto.ondewo.nlu.ProjectRole>}
|
|
190
|
+
* Promise that resolves to the response
|
|
191
|
+
*/
|
|
192
|
+
proto.ondewo.nlu.ProjectRolesPromiseClient.prototype.getProjectRole =
|
|
193
|
+
function(request, metadata) {
|
|
194
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
195
|
+
'/ondewo.nlu.ProjectRoles/GetProjectRole',
|
|
196
|
+
request,
|
|
197
|
+
metadata || {},
|
|
198
|
+
methodDescriptor_ProjectRoles_GetProjectRole);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @const
|
|
204
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
205
|
+
* !proto.ondewo.nlu.DeleteProjectRoleRequest,
|
|
206
|
+
* !proto.google.protobuf.Empty>}
|
|
207
|
+
*/
|
|
208
|
+
const methodDescriptor_ProjectRoles_DeleteProjectRole = new grpc.web.MethodDescriptor(
|
|
209
|
+
'/ondewo.nlu.ProjectRoles/DeleteProjectRole',
|
|
210
|
+
grpc.web.MethodType.UNARY,
|
|
211
|
+
proto.ondewo.nlu.DeleteProjectRoleRequest,
|
|
212
|
+
google_protobuf_empty_pb.Empty,
|
|
213
|
+
/**
|
|
214
|
+
* @param {!proto.ondewo.nlu.DeleteProjectRoleRequest} request
|
|
215
|
+
* @return {!Uint8Array}
|
|
216
|
+
*/
|
|
217
|
+
function(request) {
|
|
218
|
+
return request.serializeBinary();
|
|
219
|
+
},
|
|
220
|
+
google_protobuf_empty_pb.Empty.deserializeBinary
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @param {!proto.ondewo.nlu.DeleteProjectRoleRequest} request The
|
|
226
|
+
* request proto
|
|
227
|
+
* @param {?Object<string, string>} metadata User defined
|
|
228
|
+
* call metadata
|
|
229
|
+
* @param {function(?grpc.web.RpcError, ?proto.google.protobuf.Empty)}
|
|
230
|
+
* callback The callback function(error, response)
|
|
231
|
+
* @return {!grpc.web.ClientReadableStream<!proto.google.protobuf.Empty>|undefined}
|
|
232
|
+
* The XHR Node Readable Stream
|
|
233
|
+
*/
|
|
234
|
+
proto.ondewo.nlu.ProjectRolesClient.prototype.deleteProjectRole =
|
|
235
|
+
function(request, metadata, callback) {
|
|
236
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
237
|
+
'/ondewo.nlu.ProjectRoles/DeleteProjectRole',
|
|
238
|
+
request,
|
|
239
|
+
metadata || {},
|
|
240
|
+
methodDescriptor_ProjectRoles_DeleteProjectRole,
|
|
241
|
+
callback);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @param {!proto.ondewo.nlu.DeleteProjectRoleRequest} request The
|
|
247
|
+
* request proto
|
|
248
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
249
|
+
* call metadata
|
|
250
|
+
* @return {!Promise<!proto.google.protobuf.Empty>}
|
|
251
|
+
* Promise that resolves to the response
|
|
252
|
+
*/
|
|
253
|
+
proto.ondewo.nlu.ProjectRolesPromiseClient.prototype.deleteProjectRole =
|
|
254
|
+
function(request, metadata) {
|
|
255
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
256
|
+
'/ondewo.nlu.ProjectRoles/DeleteProjectRole',
|
|
257
|
+
request,
|
|
258
|
+
metadata || {},
|
|
259
|
+
methodDescriptor_ProjectRoles_DeleteProjectRole);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @const
|
|
265
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
266
|
+
* !proto.ondewo.nlu.UpdateProjectRoleRequest,
|
|
267
|
+
* !proto.ondewo.nlu.ProjectRole>}
|
|
268
|
+
*/
|
|
269
|
+
const methodDescriptor_ProjectRoles_UpdateProjectRole = new grpc.web.MethodDescriptor(
|
|
270
|
+
'/ondewo.nlu.ProjectRoles/UpdateProjectRole',
|
|
271
|
+
grpc.web.MethodType.UNARY,
|
|
272
|
+
proto.ondewo.nlu.UpdateProjectRoleRequest,
|
|
273
|
+
proto.ondewo.nlu.ProjectRole,
|
|
274
|
+
/**
|
|
275
|
+
* @param {!proto.ondewo.nlu.UpdateProjectRoleRequest} request
|
|
276
|
+
* @return {!Uint8Array}
|
|
277
|
+
*/
|
|
278
|
+
function(request) {
|
|
279
|
+
return request.serializeBinary();
|
|
280
|
+
},
|
|
281
|
+
proto.ondewo.nlu.ProjectRole.deserializeBinary
|
|
282
|
+
);
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @param {!proto.ondewo.nlu.UpdateProjectRoleRequest} request The
|
|
287
|
+
* request proto
|
|
288
|
+
* @param {?Object<string, string>} metadata User defined
|
|
289
|
+
* call metadata
|
|
290
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ProjectRole)}
|
|
291
|
+
* callback The callback function(error, response)
|
|
292
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ProjectRole>|undefined}
|
|
293
|
+
* The XHR Node Readable Stream
|
|
294
|
+
*/
|
|
295
|
+
proto.ondewo.nlu.ProjectRolesClient.prototype.updateProjectRole =
|
|
296
|
+
function(request, metadata, callback) {
|
|
297
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
298
|
+
'/ondewo.nlu.ProjectRoles/UpdateProjectRole',
|
|
299
|
+
request,
|
|
300
|
+
metadata || {},
|
|
301
|
+
methodDescriptor_ProjectRoles_UpdateProjectRole,
|
|
302
|
+
callback);
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @param {!proto.ondewo.nlu.UpdateProjectRoleRequest} request The
|
|
308
|
+
* request proto
|
|
309
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
310
|
+
* call metadata
|
|
311
|
+
* @return {!Promise<!proto.ondewo.nlu.ProjectRole>}
|
|
312
|
+
* Promise that resolves to the response
|
|
313
|
+
*/
|
|
314
|
+
proto.ondewo.nlu.ProjectRolesPromiseClient.prototype.updateProjectRole =
|
|
315
|
+
function(request, metadata) {
|
|
316
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
317
|
+
'/ondewo.nlu.ProjectRoles/UpdateProjectRole',
|
|
318
|
+
request,
|
|
319
|
+
metadata || {},
|
|
320
|
+
methodDescriptor_ProjectRoles_UpdateProjectRole);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @const
|
|
326
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
327
|
+
* !proto.ondewo.nlu.ListProjectRolesRequest,
|
|
328
|
+
* !proto.ondewo.nlu.ListProjectRolesResponse>}
|
|
329
|
+
*/
|
|
330
|
+
const methodDescriptor_ProjectRoles_ListProjectRoles = new grpc.web.MethodDescriptor(
|
|
331
|
+
'/ondewo.nlu.ProjectRoles/ListProjectRoles',
|
|
332
|
+
grpc.web.MethodType.UNARY,
|
|
333
|
+
proto.ondewo.nlu.ListProjectRolesRequest,
|
|
334
|
+
proto.ondewo.nlu.ListProjectRolesResponse,
|
|
335
|
+
/**
|
|
336
|
+
* @param {!proto.ondewo.nlu.ListProjectRolesRequest} request
|
|
337
|
+
* @return {!Uint8Array}
|
|
338
|
+
*/
|
|
339
|
+
function(request) {
|
|
340
|
+
return request.serializeBinary();
|
|
341
|
+
},
|
|
342
|
+
proto.ondewo.nlu.ListProjectRolesResponse.deserializeBinary
|
|
343
|
+
);
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @param {!proto.ondewo.nlu.ListProjectRolesRequest} request The
|
|
348
|
+
* request proto
|
|
349
|
+
* @param {?Object<string, string>} metadata User defined
|
|
350
|
+
* call metadata
|
|
351
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ListProjectRolesResponse)}
|
|
352
|
+
* callback The callback function(error, response)
|
|
353
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ListProjectRolesResponse>|undefined}
|
|
354
|
+
* The XHR Node Readable Stream
|
|
355
|
+
*/
|
|
356
|
+
proto.ondewo.nlu.ProjectRolesClient.prototype.listProjectRoles =
|
|
357
|
+
function(request, metadata, callback) {
|
|
358
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
359
|
+
'/ondewo.nlu.ProjectRoles/ListProjectRoles',
|
|
360
|
+
request,
|
|
361
|
+
metadata || {},
|
|
362
|
+
methodDescriptor_ProjectRoles_ListProjectRoles,
|
|
363
|
+
callback);
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @param {!proto.ondewo.nlu.ListProjectRolesRequest} request The
|
|
369
|
+
* request proto
|
|
370
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
371
|
+
* call metadata
|
|
372
|
+
* @return {!Promise<!proto.ondewo.nlu.ListProjectRolesResponse>}
|
|
373
|
+
* Promise that resolves to the response
|
|
374
|
+
*/
|
|
375
|
+
proto.ondewo.nlu.ProjectRolesPromiseClient.prototype.listProjectRoles =
|
|
376
|
+
function(request, metadata) {
|
|
377
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
378
|
+
'/ondewo.nlu.ProjectRoles/ListProjectRoles',
|
|
379
|
+
request,
|
|
380
|
+
metadata || {},
|
|
381
|
+
methodDescriptor_ProjectRoles_ListProjectRoles);
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
module.exports = proto.ondewo.nlu;
|
|
386
|
+
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as google_api_annotations_pb from '../../google/api/annotations_pb';
|
|
4
|
+
import * as google_protobuf_field_mask_pb from 'google-protobuf/google/protobuf/field_mask_pb';
|
|
5
|
+
import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export class ProjectRole extends jspb.Message {
|
|
9
|
+
getRoleId(): number;
|
|
10
|
+
setRoleId(value: number): ProjectRole;
|
|
11
|
+
|
|
12
|
+
getName(): string;
|
|
13
|
+
setName(value: string): ProjectRole;
|
|
14
|
+
|
|
15
|
+
getPermissionsList(): Array<string>;
|
|
16
|
+
setPermissionsList(value: Array<string>): ProjectRole;
|
|
17
|
+
clearPermissionsList(): ProjectRole;
|
|
18
|
+
addPermissions(value: string, index?: number): ProjectRole;
|
|
19
|
+
|
|
20
|
+
serializeBinary(): Uint8Array;
|
|
21
|
+
toObject(includeInstance?: boolean): ProjectRole.AsObject;
|
|
22
|
+
static toObject(includeInstance: boolean, msg: ProjectRole): ProjectRole.AsObject;
|
|
23
|
+
static serializeBinaryToWriter(message: ProjectRole, writer: jspb.BinaryWriter): void;
|
|
24
|
+
static deserializeBinary(bytes: Uint8Array): ProjectRole;
|
|
25
|
+
static deserializeBinaryFromReader(message: ProjectRole, reader: jspb.BinaryReader): ProjectRole;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace ProjectRole {
|
|
29
|
+
export type AsObject = {
|
|
30
|
+
roleId: number,
|
|
31
|
+
name: string,
|
|
32
|
+
permissionsList: Array<string>,
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class CreateProjectRoleRequest extends jspb.Message {
|
|
37
|
+
getParent(): string;
|
|
38
|
+
setParent(value: string): CreateProjectRoleRequest;
|
|
39
|
+
|
|
40
|
+
getRole(): ProjectRole | undefined;
|
|
41
|
+
setRole(value?: ProjectRole): CreateProjectRoleRequest;
|
|
42
|
+
hasRole(): boolean;
|
|
43
|
+
clearRole(): CreateProjectRoleRequest;
|
|
44
|
+
|
|
45
|
+
getProjectRoleView(): ProjectRoleView;
|
|
46
|
+
setProjectRoleView(value: ProjectRoleView): CreateProjectRoleRequest;
|
|
47
|
+
|
|
48
|
+
serializeBinary(): Uint8Array;
|
|
49
|
+
toObject(includeInstance?: boolean): CreateProjectRoleRequest.AsObject;
|
|
50
|
+
static toObject(includeInstance: boolean, msg: CreateProjectRoleRequest): CreateProjectRoleRequest.AsObject;
|
|
51
|
+
static serializeBinaryToWriter(message: CreateProjectRoleRequest, writer: jspb.BinaryWriter): void;
|
|
52
|
+
static deserializeBinary(bytes: Uint8Array): CreateProjectRoleRequest;
|
|
53
|
+
static deserializeBinaryFromReader(message: CreateProjectRoleRequest, reader: jspb.BinaryReader): CreateProjectRoleRequest;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export namespace CreateProjectRoleRequest {
|
|
57
|
+
export type AsObject = {
|
|
58
|
+
parent: string,
|
|
59
|
+
role?: ProjectRole.AsObject,
|
|
60
|
+
projectRoleView: ProjectRoleView,
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export class UpdateProjectRoleRequest extends jspb.Message {
|
|
65
|
+
getParent(): string;
|
|
66
|
+
setParent(value: string): UpdateProjectRoleRequest;
|
|
67
|
+
|
|
68
|
+
getRole(): ProjectRole | undefined;
|
|
69
|
+
setRole(value?: ProjectRole): UpdateProjectRoleRequest;
|
|
70
|
+
hasRole(): boolean;
|
|
71
|
+
clearRole(): UpdateProjectRoleRequest;
|
|
72
|
+
|
|
73
|
+
getUpdateMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
|
|
74
|
+
setUpdateMask(value?: google_protobuf_field_mask_pb.FieldMask): UpdateProjectRoleRequest;
|
|
75
|
+
hasUpdateMask(): boolean;
|
|
76
|
+
clearUpdateMask(): UpdateProjectRoleRequest;
|
|
77
|
+
|
|
78
|
+
getProjectRoleView(): ProjectRoleView;
|
|
79
|
+
setProjectRoleView(value: ProjectRoleView): UpdateProjectRoleRequest;
|
|
80
|
+
|
|
81
|
+
serializeBinary(): Uint8Array;
|
|
82
|
+
toObject(includeInstance?: boolean): UpdateProjectRoleRequest.AsObject;
|
|
83
|
+
static toObject(includeInstance: boolean, msg: UpdateProjectRoleRequest): UpdateProjectRoleRequest.AsObject;
|
|
84
|
+
static serializeBinaryToWriter(message: UpdateProjectRoleRequest, writer: jspb.BinaryWriter): void;
|
|
85
|
+
static deserializeBinary(bytes: Uint8Array): UpdateProjectRoleRequest;
|
|
86
|
+
static deserializeBinaryFromReader(message: UpdateProjectRoleRequest, reader: jspb.BinaryReader): UpdateProjectRoleRequest;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export namespace UpdateProjectRoleRequest {
|
|
90
|
+
export type AsObject = {
|
|
91
|
+
parent: string,
|
|
92
|
+
role?: ProjectRole.AsObject,
|
|
93
|
+
updateMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
|
|
94
|
+
projectRoleView: ProjectRoleView,
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export class GetProjectRoleRequest extends jspb.Message {
|
|
99
|
+
getParent(): string;
|
|
100
|
+
setParent(value: string): GetProjectRoleRequest;
|
|
101
|
+
|
|
102
|
+
getRoleId(): number;
|
|
103
|
+
setRoleId(value: number): GetProjectRoleRequest;
|
|
104
|
+
|
|
105
|
+
getRoleName(): string;
|
|
106
|
+
setRoleName(value: string): GetProjectRoleRequest;
|
|
107
|
+
|
|
108
|
+
getProjectRoleView(): ProjectRoleView;
|
|
109
|
+
setProjectRoleView(value: ProjectRoleView): GetProjectRoleRequest;
|
|
110
|
+
|
|
111
|
+
getProjectRoleIdentifierCase(): GetProjectRoleRequest.ProjectRoleIdentifierCase;
|
|
112
|
+
|
|
113
|
+
serializeBinary(): Uint8Array;
|
|
114
|
+
toObject(includeInstance?: boolean): GetProjectRoleRequest.AsObject;
|
|
115
|
+
static toObject(includeInstance: boolean, msg: GetProjectRoleRequest): GetProjectRoleRequest.AsObject;
|
|
116
|
+
static serializeBinaryToWriter(message: GetProjectRoleRequest, writer: jspb.BinaryWriter): void;
|
|
117
|
+
static deserializeBinary(bytes: Uint8Array): GetProjectRoleRequest;
|
|
118
|
+
static deserializeBinaryFromReader(message: GetProjectRoleRequest, reader: jspb.BinaryReader): GetProjectRoleRequest;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export namespace GetProjectRoleRequest {
|
|
122
|
+
export type AsObject = {
|
|
123
|
+
parent: string,
|
|
124
|
+
roleId: number,
|
|
125
|
+
roleName: string,
|
|
126
|
+
projectRoleView: ProjectRoleView,
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export enum ProjectRoleIdentifierCase {
|
|
130
|
+
PROJECT_ROLE_IDENTIFIER_NOT_SET = 0,
|
|
131
|
+
ROLE_ID = 2,
|
|
132
|
+
ROLE_NAME = 3,
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export class DeleteProjectRoleRequest extends jspb.Message {
|
|
137
|
+
getParent(): string;
|
|
138
|
+
setParent(value: string): DeleteProjectRoleRequest;
|
|
139
|
+
|
|
140
|
+
getRoleId(): number;
|
|
141
|
+
setRoleId(value: number): DeleteProjectRoleRequest;
|
|
142
|
+
|
|
143
|
+
serializeBinary(): Uint8Array;
|
|
144
|
+
toObject(includeInstance?: boolean): DeleteProjectRoleRequest.AsObject;
|
|
145
|
+
static toObject(includeInstance: boolean, msg: DeleteProjectRoleRequest): DeleteProjectRoleRequest.AsObject;
|
|
146
|
+
static serializeBinaryToWriter(message: DeleteProjectRoleRequest, writer: jspb.BinaryWriter): void;
|
|
147
|
+
static deserializeBinary(bytes: Uint8Array): DeleteProjectRoleRequest;
|
|
148
|
+
static deserializeBinaryFromReader(message: DeleteProjectRoleRequest, reader: jspb.BinaryReader): DeleteProjectRoleRequest;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export namespace DeleteProjectRoleRequest {
|
|
152
|
+
export type AsObject = {
|
|
153
|
+
parent: string,
|
|
154
|
+
roleId: number,
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export class ListProjectRolesRequest extends jspb.Message {
|
|
159
|
+
getParent(): string;
|
|
160
|
+
setParent(value: string): ListProjectRolesRequest;
|
|
161
|
+
|
|
162
|
+
getPageToken(): string;
|
|
163
|
+
setPageToken(value: string): ListProjectRolesRequest;
|
|
164
|
+
|
|
165
|
+
getProjectRoleView(): ProjectRoleView;
|
|
166
|
+
setProjectRoleView(value: ProjectRoleView): ListProjectRolesRequest;
|
|
167
|
+
|
|
168
|
+
serializeBinary(): Uint8Array;
|
|
169
|
+
toObject(includeInstance?: boolean): ListProjectRolesRequest.AsObject;
|
|
170
|
+
static toObject(includeInstance: boolean, msg: ListProjectRolesRequest): ListProjectRolesRequest.AsObject;
|
|
171
|
+
static serializeBinaryToWriter(message: ListProjectRolesRequest, writer: jspb.BinaryWriter): void;
|
|
172
|
+
static deserializeBinary(bytes: Uint8Array): ListProjectRolesRequest;
|
|
173
|
+
static deserializeBinaryFromReader(message: ListProjectRolesRequest, reader: jspb.BinaryReader): ListProjectRolesRequest;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export namespace ListProjectRolesRequest {
|
|
177
|
+
export type AsObject = {
|
|
178
|
+
parent: string,
|
|
179
|
+
pageToken: string,
|
|
180
|
+
projectRoleView: ProjectRoleView,
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export class ListProjectRolesResponse extends jspb.Message {
|
|
185
|
+
getProjectRolesList(): Array<ProjectRole>;
|
|
186
|
+
setProjectRolesList(value: Array<ProjectRole>): ListProjectRolesResponse;
|
|
187
|
+
clearProjectRolesList(): ListProjectRolesResponse;
|
|
188
|
+
addProjectRoles(value?: ProjectRole, index?: number): ProjectRole;
|
|
189
|
+
|
|
190
|
+
getNextPageToken(): string;
|
|
191
|
+
setNextPageToken(value: string): ListProjectRolesResponse;
|
|
192
|
+
|
|
193
|
+
serializeBinary(): Uint8Array;
|
|
194
|
+
toObject(includeInstance?: boolean): ListProjectRolesResponse.AsObject;
|
|
195
|
+
static toObject(includeInstance: boolean, msg: ListProjectRolesResponse): ListProjectRolesResponse.AsObject;
|
|
196
|
+
static serializeBinaryToWriter(message: ListProjectRolesResponse, writer: jspb.BinaryWriter): void;
|
|
197
|
+
static deserializeBinary(bytes: Uint8Array): ListProjectRolesResponse;
|
|
198
|
+
static deserializeBinaryFromReader(message: ListProjectRolesResponse, reader: jspb.BinaryReader): ListProjectRolesResponse;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export namespace ListProjectRolesResponse {
|
|
202
|
+
export type AsObject = {
|
|
203
|
+
projectRolesList: Array<ProjectRole.AsObject>,
|
|
204
|
+
nextPageToken: string,
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export enum DefaultProjectRole {
|
|
209
|
+
PROJECT_UNSPECIFIED = 0,
|
|
210
|
+
PROJECT_USER = 1,
|
|
211
|
+
PROJECT_EXECUTOR = 2,
|
|
212
|
+
PROJECT_DEVELOPER = 3,
|
|
213
|
+
PROJECT_ADMIN = 4,
|
|
214
|
+
PROJECT_INACTIVE = 5,
|
|
215
|
+
}
|
|
216
|
+
export enum ProjectRoleView {
|
|
217
|
+
PROJECT_ROLE_VIEW_UNSPECIFIED = 0,
|
|
218
|
+
PROJECT_ROLE_VIEW_SHALLOW = 1,
|
|
219
|
+
PROJECT_ROLE_VIEW_FULL = 2,
|
|
220
|
+
}
|