core-3nweb-client-lib 0.29.2 → 0.30.1
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/build/api-defs/startup.d.ts +14 -2
- package/build/core/startup/sign-up.d.ts +0 -1
- package/build/core/startup/sign-up.js +5 -6
- package/build/core/startup/startup-cap.js +43 -0
- package/build/lib-client/3nweb-signup.d.ts +1 -0
- package/build/lib-client/3nweb-signup.js +22 -2
- package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
- package/build/lib-client/cryptor/cryptor.wasm +0 -0
- package/build/lib-common/user-admin-api/signup.d.ts +10 -0
- package/build/lib-common/user-admin-api/signup.js +12 -2
- package/build/protos/startup.proto.js +411 -0
- package/package.json +1 -1
- package/protos/startup.proto +10 -0
|
Binary file
|
|
@@ -18,6 +18,16 @@ export declare namespace availableAddressesForName {
|
|
|
18
18
|
ok: number;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
+
export declare namespace availableDomains {
|
|
22
|
+
const URL_END = "available-domains";
|
|
23
|
+
const method = "POST";
|
|
24
|
+
interface Request {
|
|
25
|
+
signupToken?: string;
|
|
26
|
+
}
|
|
27
|
+
const SC: {
|
|
28
|
+
ok: number;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
21
31
|
export interface UserMidParams {
|
|
22
32
|
defaultPKey: {
|
|
23
33
|
pkey: JsonKey;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
Copyright (C) 2015 - 2016, 2020 3NSoft Inc.
|
|
3
|
+
Copyright (C) 2015 - 2016, 2020, 2023 3NSoft Inc.
|
|
4
4
|
|
|
5
5
|
This program is free software: you can redistribute it and/or modify it under
|
|
6
6
|
the terms of the GNU General Public License as published by the Free Software
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.isActivated = exports.addUser = exports.availableAddressesForName = exports.ERR_SC = void 0;
|
|
19
|
+
exports.isActivated = exports.addUser = exports.availableDomains = exports.availableAddressesForName = exports.ERR_SC = void 0;
|
|
20
20
|
exports.ERR_SC = {
|
|
21
21
|
duplicate: 475,
|
|
22
22
|
malformed: 400
|
|
@@ -32,6 +32,16 @@ var availableAddressesForName;
|
|
|
32
32
|
Object.freeze(availableAddressesForName.SC);
|
|
33
33
|
})(availableAddressesForName = exports.availableAddressesForName || (exports.availableAddressesForName = {}));
|
|
34
34
|
Object.freeze(availableAddressesForName);
|
|
35
|
+
var availableDomains;
|
|
36
|
+
(function (availableDomains) {
|
|
37
|
+
availableDomains.URL_END = 'available-domains';
|
|
38
|
+
availableDomains.method = 'POST';
|
|
39
|
+
availableDomains.SC = {
|
|
40
|
+
ok: 200
|
|
41
|
+
};
|
|
42
|
+
Object.freeze(availableDomains.SC);
|
|
43
|
+
})(availableDomains = exports.availableDomains || (exports.availableDomains = {}));
|
|
44
|
+
Object.freeze(availableDomains);
|
|
35
45
|
var addUser;
|
|
36
46
|
(function (addUser) {
|
|
37
47
|
addUser.URL_END = 'add';
|
|
@@ -18,6 +18,209 @@ $root.startup = (function() {
|
|
|
18
18
|
*/
|
|
19
19
|
var startup = {};
|
|
20
20
|
|
|
21
|
+
startup.SetSignUpServerRequestBody = (function() {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Properties of a SetSignUpServerRequestBody.
|
|
25
|
+
* @memberof startup
|
|
26
|
+
* @interface ISetSignUpServerRequestBody
|
|
27
|
+
* @property {string|null} [serviceUrl] SetSignUpServerRequestBody serviceUrl
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new SetSignUpServerRequestBody.
|
|
32
|
+
* @memberof startup
|
|
33
|
+
* @classdesc Represents a SetSignUpServerRequestBody.
|
|
34
|
+
* @implements ISetSignUpServerRequestBody
|
|
35
|
+
* @constructor
|
|
36
|
+
* @param {startup.ISetSignUpServerRequestBody=} [properties] Properties to set
|
|
37
|
+
*/
|
|
38
|
+
function SetSignUpServerRequestBody(properties) {
|
|
39
|
+
if (properties)
|
|
40
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
41
|
+
if (properties[keys[i]] != null)
|
|
42
|
+
this[keys[i]] = properties[keys[i]];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* SetSignUpServerRequestBody serviceUrl.
|
|
47
|
+
* @member {string} serviceUrl
|
|
48
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
49
|
+
* @instance
|
|
50
|
+
*/
|
|
51
|
+
SetSignUpServerRequestBody.prototype.serviceUrl = "";
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Creates a new SetSignUpServerRequestBody instance using the specified properties.
|
|
55
|
+
* @function create
|
|
56
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
57
|
+
* @static
|
|
58
|
+
* @param {startup.ISetSignUpServerRequestBody=} [properties] Properties to set
|
|
59
|
+
* @returns {startup.SetSignUpServerRequestBody} SetSignUpServerRequestBody instance
|
|
60
|
+
*/
|
|
61
|
+
SetSignUpServerRequestBody.create = function create(properties) {
|
|
62
|
+
return new SetSignUpServerRequestBody(properties);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Encodes the specified SetSignUpServerRequestBody message. Does not implicitly {@link startup.SetSignUpServerRequestBody.verify|verify} messages.
|
|
67
|
+
* @function encode
|
|
68
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
69
|
+
* @static
|
|
70
|
+
* @param {startup.ISetSignUpServerRequestBody} message SetSignUpServerRequestBody message or plain object to encode
|
|
71
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72
|
+
* @returns {$protobuf.Writer} Writer
|
|
73
|
+
*/
|
|
74
|
+
SetSignUpServerRequestBody.encode = function encode(message, writer) {
|
|
75
|
+
if (!writer)
|
|
76
|
+
writer = $Writer.create();
|
|
77
|
+
if (message.serviceUrl != null && Object.hasOwnProperty.call(message, "serviceUrl"))
|
|
78
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.serviceUrl);
|
|
79
|
+
return writer;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Encodes the specified SetSignUpServerRequestBody message, length delimited. Does not implicitly {@link startup.SetSignUpServerRequestBody.verify|verify} messages.
|
|
84
|
+
* @function encodeDelimited
|
|
85
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
86
|
+
* @static
|
|
87
|
+
* @param {startup.ISetSignUpServerRequestBody} message SetSignUpServerRequestBody message or plain object to encode
|
|
88
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
89
|
+
* @returns {$protobuf.Writer} Writer
|
|
90
|
+
*/
|
|
91
|
+
SetSignUpServerRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
92
|
+
return this.encode(message, writer).ldelim();
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Decodes a SetSignUpServerRequestBody message from the specified reader or buffer.
|
|
97
|
+
* @function decode
|
|
98
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
99
|
+
* @static
|
|
100
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
101
|
+
* @param {number} [length] Message length if known beforehand
|
|
102
|
+
* @returns {startup.SetSignUpServerRequestBody} SetSignUpServerRequestBody
|
|
103
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105
|
+
*/
|
|
106
|
+
SetSignUpServerRequestBody.decode = function decode(reader, length) {
|
|
107
|
+
if (!(reader instanceof $Reader))
|
|
108
|
+
reader = $Reader.create(reader);
|
|
109
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.SetSignUpServerRequestBody();
|
|
110
|
+
while (reader.pos < end) {
|
|
111
|
+
var tag = reader.uint32();
|
|
112
|
+
switch (tag >>> 3) {
|
|
113
|
+
case 1: {
|
|
114
|
+
message.serviceUrl = reader.string();
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
default:
|
|
118
|
+
reader.skipType(tag & 7);
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return message;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Decodes a SetSignUpServerRequestBody message from the specified reader or buffer, length delimited.
|
|
127
|
+
* @function decodeDelimited
|
|
128
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
129
|
+
* @static
|
|
130
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
131
|
+
* @returns {startup.SetSignUpServerRequestBody} SetSignUpServerRequestBody
|
|
132
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
133
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134
|
+
*/
|
|
135
|
+
SetSignUpServerRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
136
|
+
if (!(reader instanceof $Reader))
|
|
137
|
+
reader = new $Reader(reader);
|
|
138
|
+
return this.decode(reader, reader.uint32());
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Verifies a SetSignUpServerRequestBody message.
|
|
143
|
+
* @function verify
|
|
144
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
145
|
+
* @static
|
|
146
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
147
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
148
|
+
*/
|
|
149
|
+
SetSignUpServerRequestBody.verify = function verify(message) {
|
|
150
|
+
if (typeof message !== "object" || message === null)
|
|
151
|
+
return "object expected";
|
|
152
|
+
if (message.serviceUrl != null && message.hasOwnProperty("serviceUrl"))
|
|
153
|
+
if (!$util.isString(message.serviceUrl))
|
|
154
|
+
return "serviceUrl: string expected";
|
|
155
|
+
return null;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Creates a SetSignUpServerRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
160
|
+
* @function fromObject
|
|
161
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
162
|
+
* @static
|
|
163
|
+
* @param {Object.<string,*>} object Plain object
|
|
164
|
+
* @returns {startup.SetSignUpServerRequestBody} SetSignUpServerRequestBody
|
|
165
|
+
*/
|
|
166
|
+
SetSignUpServerRequestBody.fromObject = function fromObject(object) {
|
|
167
|
+
if (object instanceof $root.startup.SetSignUpServerRequestBody)
|
|
168
|
+
return object;
|
|
169
|
+
var message = new $root.startup.SetSignUpServerRequestBody();
|
|
170
|
+
if (object.serviceUrl != null)
|
|
171
|
+
message.serviceUrl = String(object.serviceUrl);
|
|
172
|
+
return message;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Creates a plain object from a SetSignUpServerRequestBody message. Also converts values to other types if specified.
|
|
177
|
+
* @function toObject
|
|
178
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
179
|
+
* @static
|
|
180
|
+
* @param {startup.SetSignUpServerRequestBody} message SetSignUpServerRequestBody
|
|
181
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
182
|
+
* @returns {Object.<string,*>} Plain object
|
|
183
|
+
*/
|
|
184
|
+
SetSignUpServerRequestBody.toObject = function toObject(message, options) {
|
|
185
|
+
if (!options)
|
|
186
|
+
options = {};
|
|
187
|
+
var object = {};
|
|
188
|
+
if (options.defaults)
|
|
189
|
+
object.serviceUrl = "";
|
|
190
|
+
if (message.serviceUrl != null && message.hasOwnProperty("serviceUrl"))
|
|
191
|
+
object.serviceUrl = message.serviceUrl;
|
|
192
|
+
return object;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Converts this SetSignUpServerRequestBody to JSON.
|
|
197
|
+
* @function toJSON
|
|
198
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
199
|
+
* @instance
|
|
200
|
+
* @returns {Object.<string,*>} JSON object
|
|
201
|
+
*/
|
|
202
|
+
SetSignUpServerRequestBody.prototype.toJSON = function toJSON() {
|
|
203
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Gets the default type url for SetSignUpServerRequestBody
|
|
208
|
+
* @function getTypeUrl
|
|
209
|
+
* @memberof startup.SetSignUpServerRequestBody
|
|
210
|
+
* @static
|
|
211
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
212
|
+
* @returns {string} The default type url
|
|
213
|
+
*/
|
|
214
|
+
SetSignUpServerRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
215
|
+
if (typeUrlPrefix === undefined) {
|
|
216
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
217
|
+
}
|
|
218
|
+
return typeUrlPrefix + "/startup.SetSignUpServerRequestBody";
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
return SetSignUpServerRequestBody;
|
|
222
|
+
})();
|
|
223
|
+
|
|
21
224
|
startup.GetAvailableAddressesRequestBody = (function() {
|
|
22
225
|
|
|
23
226
|
/**
|
|
@@ -250,6 +453,214 @@ $root.startup = (function() {
|
|
|
250
453
|
return GetAvailableAddressesRequestBody;
|
|
251
454
|
})();
|
|
252
455
|
|
|
456
|
+
startup.GetAvailableDomainsRequestBody = (function() {
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Properties of a GetAvailableDomainsRequestBody.
|
|
460
|
+
* @memberof startup
|
|
461
|
+
* @interface IGetAvailableDomainsRequestBody
|
|
462
|
+
* @property {common.IStringValue|null} [token] GetAvailableDomainsRequestBody token
|
|
463
|
+
*/
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Constructs a new GetAvailableDomainsRequestBody.
|
|
467
|
+
* @memberof startup
|
|
468
|
+
* @classdesc Represents a GetAvailableDomainsRequestBody.
|
|
469
|
+
* @implements IGetAvailableDomainsRequestBody
|
|
470
|
+
* @constructor
|
|
471
|
+
* @param {startup.IGetAvailableDomainsRequestBody=} [properties] Properties to set
|
|
472
|
+
*/
|
|
473
|
+
function GetAvailableDomainsRequestBody(properties) {
|
|
474
|
+
if (properties)
|
|
475
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
476
|
+
if (properties[keys[i]] != null)
|
|
477
|
+
this[keys[i]] = properties[keys[i]];
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* GetAvailableDomainsRequestBody token.
|
|
482
|
+
* @member {common.IStringValue|null|undefined} token
|
|
483
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
484
|
+
* @instance
|
|
485
|
+
*/
|
|
486
|
+
GetAvailableDomainsRequestBody.prototype.token = null;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Creates a new GetAvailableDomainsRequestBody instance using the specified properties.
|
|
490
|
+
* @function create
|
|
491
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
492
|
+
* @static
|
|
493
|
+
* @param {startup.IGetAvailableDomainsRequestBody=} [properties] Properties to set
|
|
494
|
+
* @returns {startup.GetAvailableDomainsRequestBody} GetAvailableDomainsRequestBody instance
|
|
495
|
+
*/
|
|
496
|
+
GetAvailableDomainsRequestBody.create = function create(properties) {
|
|
497
|
+
return new GetAvailableDomainsRequestBody(properties);
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Encodes the specified GetAvailableDomainsRequestBody message. Does not implicitly {@link startup.GetAvailableDomainsRequestBody.verify|verify} messages.
|
|
502
|
+
* @function encode
|
|
503
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
504
|
+
* @static
|
|
505
|
+
* @param {startup.IGetAvailableDomainsRequestBody} message GetAvailableDomainsRequestBody message or plain object to encode
|
|
506
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
507
|
+
* @returns {$protobuf.Writer} Writer
|
|
508
|
+
*/
|
|
509
|
+
GetAvailableDomainsRequestBody.encode = function encode(message, writer) {
|
|
510
|
+
if (!writer)
|
|
511
|
+
writer = $Writer.create();
|
|
512
|
+
if (message.token != null && Object.hasOwnProperty.call(message, "token"))
|
|
513
|
+
$root.common.StringValue.encode(message.token, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
514
|
+
return writer;
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Encodes the specified GetAvailableDomainsRequestBody message, length delimited. Does not implicitly {@link startup.GetAvailableDomainsRequestBody.verify|verify} messages.
|
|
519
|
+
* @function encodeDelimited
|
|
520
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
521
|
+
* @static
|
|
522
|
+
* @param {startup.IGetAvailableDomainsRequestBody} message GetAvailableDomainsRequestBody message or plain object to encode
|
|
523
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
524
|
+
* @returns {$protobuf.Writer} Writer
|
|
525
|
+
*/
|
|
526
|
+
GetAvailableDomainsRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
527
|
+
return this.encode(message, writer).ldelim();
|
|
528
|
+
};
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Decodes a GetAvailableDomainsRequestBody message from the specified reader or buffer.
|
|
532
|
+
* @function decode
|
|
533
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
534
|
+
* @static
|
|
535
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
536
|
+
* @param {number} [length] Message length if known beforehand
|
|
537
|
+
* @returns {startup.GetAvailableDomainsRequestBody} GetAvailableDomainsRequestBody
|
|
538
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
539
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
540
|
+
*/
|
|
541
|
+
GetAvailableDomainsRequestBody.decode = function decode(reader, length) {
|
|
542
|
+
if (!(reader instanceof $Reader))
|
|
543
|
+
reader = $Reader.create(reader);
|
|
544
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.startup.GetAvailableDomainsRequestBody();
|
|
545
|
+
while (reader.pos < end) {
|
|
546
|
+
var tag = reader.uint32();
|
|
547
|
+
switch (tag >>> 3) {
|
|
548
|
+
case 2: {
|
|
549
|
+
message.token = $root.common.StringValue.decode(reader, reader.uint32());
|
|
550
|
+
break;
|
|
551
|
+
}
|
|
552
|
+
default:
|
|
553
|
+
reader.skipType(tag & 7);
|
|
554
|
+
break;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return message;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Decodes a GetAvailableDomainsRequestBody message from the specified reader or buffer, length delimited.
|
|
562
|
+
* @function decodeDelimited
|
|
563
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
564
|
+
* @static
|
|
565
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
566
|
+
* @returns {startup.GetAvailableDomainsRequestBody} GetAvailableDomainsRequestBody
|
|
567
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
568
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
569
|
+
*/
|
|
570
|
+
GetAvailableDomainsRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
571
|
+
if (!(reader instanceof $Reader))
|
|
572
|
+
reader = new $Reader(reader);
|
|
573
|
+
return this.decode(reader, reader.uint32());
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Verifies a GetAvailableDomainsRequestBody message.
|
|
578
|
+
* @function verify
|
|
579
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
580
|
+
* @static
|
|
581
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
582
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
583
|
+
*/
|
|
584
|
+
GetAvailableDomainsRequestBody.verify = function verify(message) {
|
|
585
|
+
if (typeof message !== "object" || message === null)
|
|
586
|
+
return "object expected";
|
|
587
|
+
if (message.token != null && message.hasOwnProperty("token")) {
|
|
588
|
+
var error = $root.common.StringValue.verify(message.token);
|
|
589
|
+
if (error)
|
|
590
|
+
return "token." + error;
|
|
591
|
+
}
|
|
592
|
+
return null;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Creates a GetAvailableDomainsRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
597
|
+
* @function fromObject
|
|
598
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
599
|
+
* @static
|
|
600
|
+
* @param {Object.<string,*>} object Plain object
|
|
601
|
+
* @returns {startup.GetAvailableDomainsRequestBody} GetAvailableDomainsRequestBody
|
|
602
|
+
*/
|
|
603
|
+
GetAvailableDomainsRequestBody.fromObject = function fromObject(object) {
|
|
604
|
+
if (object instanceof $root.startup.GetAvailableDomainsRequestBody)
|
|
605
|
+
return object;
|
|
606
|
+
var message = new $root.startup.GetAvailableDomainsRequestBody();
|
|
607
|
+
if (object.token != null) {
|
|
608
|
+
if (typeof object.token !== "object")
|
|
609
|
+
throw TypeError(".startup.GetAvailableDomainsRequestBody.token: object expected");
|
|
610
|
+
message.token = $root.common.StringValue.fromObject(object.token);
|
|
611
|
+
}
|
|
612
|
+
return message;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Creates a plain object from a GetAvailableDomainsRequestBody message. Also converts values to other types if specified.
|
|
617
|
+
* @function toObject
|
|
618
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
619
|
+
* @static
|
|
620
|
+
* @param {startup.GetAvailableDomainsRequestBody} message GetAvailableDomainsRequestBody
|
|
621
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
622
|
+
* @returns {Object.<string,*>} Plain object
|
|
623
|
+
*/
|
|
624
|
+
GetAvailableDomainsRequestBody.toObject = function toObject(message, options) {
|
|
625
|
+
if (!options)
|
|
626
|
+
options = {};
|
|
627
|
+
var object = {};
|
|
628
|
+
if (options.defaults)
|
|
629
|
+
object.token = null;
|
|
630
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
631
|
+
object.token = $root.common.StringValue.toObject(message.token, options);
|
|
632
|
+
return object;
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Converts this GetAvailableDomainsRequestBody to JSON.
|
|
637
|
+
* @function toJSON
|
|
638
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
639
|
+
* @instance
|
|
640
|
+
* @returns {Object.<string,*>} JSON object
|
|
641
|
+
*/
|
|
642
|
+
GetAvailableDomainsRequestBody.prototype.toJSON = function toJSON() {
|
|
643
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Gets the default type url for GetAvailableDomainsRequestBody
|
|
648
|
+
* @function getTypeUrl
|
|
649
|
+
* @memberof startup.GetAvailableDomainsRequestBody
|
|
650
|
+
* @static
|
|
651
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
652
|
+
* @returns {string} The default type url
|
|
653
|
+
*/
|
|
654
|
+
GetAvailableDomainsRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
655
|
+
if (typeUrlPrefix === undefined) {
|
|
656
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
657
|
+
}
|
|
658
|
+
return typeUrlPrefix + "/startup.GetAvailableDomainsRequestBody";
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
return GetAvailableDomainsRequestBody;
|
|
662
|
+
})();
|
|
663
|
+
|
|
253
664
|
startup.AddUserRequestBody = (function() {
|
|
254
665
|
|
|
255
666
|
/**
|
package/package.json
CHANGED
package/protos/startup.proto
CHANGED
|
@@ -7,6 +7,10 @@ package startup;
|
|
|
7
7
|
|
|
8
8
|
// ==== signUp capability ====
|
|
9
9
|
|
|
10
|
+
message SetSignUpServerRequestBody {
|
|
11
|
+
string service_url = 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
10
14
|
// --- signUp.getAvailableAddresses ---
|
|
11
15
|
// Reply body is common.StringArrayValue
|
|
12
16
|
message GetAvailableAddressesRequestBody {
|
|
@@ -14,6 +18,12 @@ message GetAvailableAddressesRequestBody {
|
|
|
14
18
|
common.StringValue token = 2;
|
|
15
19
|
}
|
|
16
20
|
|
|
21
|
+
// --- signUp.getAvailableDomians ---
|
|
22
|
+
// Reply body is common.StringArrayValue
|
|
23
|
+
message GetAvailableDomainsRequestBody {
|
|
24
|
+
common.StringValue token = 2;
|
|
25
|
+
}
|
|
26
|
+
|
|
17
27
|
// --- signUp.addUser ---
|
|
18
28
|
// Reply body is common.BooleanValue
|
|
19
29
|
message AddUserRequestBody {
|