@fonoster/sdk 0.7.22 → 0.7.26

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.
@@ -27,8 +27,7 @@ import { FonosterClient } from "./client/types";
27
27
  *
28
28
  * const request = {
29
29
  * name: "My ACL",
30
- * allow: ["47.132.130.31"], // Allow only this IP
31
- * deny: ["0.0.0.0/0"] // Deny all other IPs
30
+ * allow: ["47.132.130.31"] // Allow only this IP
32
31
  * };
33
32
  *
34
33
  * main(request).catch(console.error);
@@ -49,15 +48,13 @@ declare class Acls {
49
48
  * @param {CreateAclRequest} request - The request object that contains the necessary information to create a new Acl
50
49
  * @param {string} request.name - The name of the Acl
51
50
  * @param {string[]} request.allow - The list of IPs to allow
52
- * @param {string[]} request.deny - The list of IPs to deny
53
51
  * @return {Promise<BaseApiObject>} - The response object that contains the reference to the created Acl
54
52
  * @example
55
53
  * const acls = new SDK.Acls(client); // Existing client object
56
54
  *
57
55
  * const request = {
58
56
  * name: "My ACL",
59
- * allow: ["47.132.130.31"], // Allow only this IP
60
- * deny: ["0.0.0.0/0"] // Deny all other IPs
57
+ * allow: ["47.132.130.31"] // Allow only this IP
61
58
  * };
62
59
  *
63
60
  * acls
@@ -89,7 +86,6 @@ declare class Acls {
89
86
  * @param {string} request.ref - The reference of the Acl to update
90
87
  * @param {string} request.name - The name of the Acl
91
88
  * @param {string[]} request.allow - The list of IPs to allow
92
- * @param {string[]} request.deny - The list of IPs to deny
93
89
  * @return {Promise<BaseApiObject>} - The response object that contains the reference to the updated Acl
94
90
  * @example
95
91
  * const acls = new SDK.Acls(client); // Existing client object
@@ -98,7 +94,6 @@ declare class Acls {
98
94
  * ref: "00000000-0000-0000-0000-000000000000",
99
95
  * name: "My ACL",
100
96
  * allow: ["47.132.130.31"] // Allow only this IP
101
- * deny: ["0.0.0.0/0"] // Deny all other IPs
102
97
  * };
103
98
  *
104
99
  * acls
package/dist/node/Acls.js CHANGED
@@ -30,8 +30,7 @@ const acls_pb_1 = require("./generated/node/acls_pb");
30
30
  *
31
31
  * const request = {
32
32
  * name: "My ACL",
33
- * allow: ["47.132.130.31"], // Allow only this IP
34
- * deny: ["0.0.0.0/0"] // Deny all other IPs
33
+ * allow: ["47.132.130.31"] // Allow only this IP
35
34
  * };
36
35
  *
37
36
  * main(request).catch(console.error);
@@ -54,15 +53,13 @@ class Acls {
54
53
  * @param {CreateAclRequest} request - The request object that contains the necessary information to create a new Acl
55
54
  * @param {string} request.name - The name of the Acl
56
55
  * @param {string[]} request.allow - The list of IPs to allow
57
- * @param {string[]} request.deny - The list of IPs to deny
58
56
  * @return {Promise<BaseApiObject>} - The response object that contains the reference to the created Acl
59
57
  * @example
60
58
  * const acls = new SDK.Acls(client); // Existing client object
61
59
  *
62
60
  * const request = {
63
61
  * name: "My ACL",
64
- * allow: ["47.132.130.31"], // Allow only this IP
65
- * deny: ["0.0.0.0/0"] // Deny all other IPs
62
+ * allow: ["47.132.130.31"] // Allow only this IP
66
63
  * };
67
64
  *
68
65
  * acls
@@ -75,7 +72,6 @@ class Acls {
75
72
  const createAclRequest = new acls_pb_1.CreateAclRequest();
76
73
  createAclRequest.setName(request.name);
77
74
  createAclRequest.setAllowList(request.allow);
78
- createAclRequest.setDenyList(request.deny);
79
75
  return new Promise((resolve, reject) => {
80
76
  client.createAcl(createAclRequest, this.client.getMetadata(), (err, response) => {
81
77
  if (err) {
@@ -115,7 +111,6 @@ class Acls {
115
111
  resolve({
116
112
  ...obj,
117
113
  allow: obj.allowList,
118
- deny: obj.denyList,
119
114
  createdAt: new Date(obj.createdAt * 1000),
120
115
  updatedAt: new Date(obj.updatedAt * 1000)
121
116
  });
@@ -129,7 +124,6 @@ class Acls {
129
124
  * @param {string} request.ref - The reference of the Acl to update
130
125
  * @param {string} request.name - The name of the Acl
131
126
  * @param {string[]} request.allow - The list of IPs to allow
132
- * @param {string[]} request.deny - The list of IPs to deny
133
127
  * @return {Promise<BaseApiObject>} - The response object that contains the reference to the updated Acl
134
128
  * @example
135
129
  * const acls = new SDK.Acls(client); // Existing client object
@@ -138,7 +132,6 @@ class Acls {
138
132
  * ref: "00000000-0000-0000-0000-000000000000",
139
133
  * name: "My ACL",
140
134
  * allow: ["47.132.130.31"] // Allow only this IP
141
- * deny: ["0.0.0.0/0"] // Deny all other IPs
142
135
  * };
143
136
  *
144
137
  * acls
@@ -152,7 +145,6 @@ class Acls {
152
145
  updateAclRequest.setRef(request.ref);
153
146
  updateAclRequest.setName(request.name);
154
147
  updateAclRequest.setAllowList(request.allow);
155
- updateAclRequest.setDenyList(request.deny);
156
148
  return new Promise((resolve, reject) => {
157
149
  client.updateAcl(updateAclRequest, this.client.getMetadata(), (err, response) => {
158
150
  if (err) {
@@ -199,7 +191,6 @@ class Acls {
199
191
  return {
200
192
  ...obj,
201
193
  allow: obj.allowList,
202
- deny: obj.denyList,
203
194
  createdAt: new Date(obj.createdAt * 1000),
204
195
  updatedAt: new Date(obj.updatedAt * 1000)
205
196
  };
@@ -1,3 +1,4 @@
1
+ import { ContactType } from "@fonoster/types";
1
2
  import { ApplicationsClient, CallsClient, FonosterClient, IdentityClient, SecretsClient } from "./types";
2
3
  import { AclsClient } from "./types/AclsClient";
3
4
  import { AgentsClient } from "./types/AgentsClient";
@@ -14,9 +15,17 @@ declare abstract class AbstractClient implements FonosterClient {
14
15
  accessKeyId: string;
15
16
  identityClient: IdentityClient;
16
17
  });
17
- login(username: string, password: string): Promise<void>;
18
+ login(username: string, password: string, verificationCode?: string): Promise<void>;
18
19
  loginWithRefreshToken(refreshToken: string): Promise<void>;
19
20
  loginWithApiKey(apiKey: string): Promise<void>;
21
+ loginWithOauth2Code(provider: "GITHUB", username: string, code: string): Promise<void>;
22
+ sendVerificationCode(contactType: ContactType, value: string): Promise<void>;
23
+ verifyCode(request: {
24
+ username: string;
25
+ contactType: ContactType;
26
+ value: string;
27
+ verificationCode: string;
28
+ }): Promise<void>;
20
29
  refreshToken(): Promise<void>;
21
30
  getAccessKeyId(): string;
22
31
  getAccessToken(): string;
@@ -1,24 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AbstractClient = void 0;
4
- /*
5
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
6
- * http://github.com/fonoster/fonoster
7
- *
8
- * This file is part of Fonoster
9
- *
10
- * Licensed under the MIT License (the "License");
11
- * you may not use this file except in compliance with
12
- * the License. You may obtain a copy of the License at
13
- *
14
- * https://opensource.org/licenses/MIT
15
- *
16
- * Unless required by applicable law or agreed to in writing, software
17
- * distributed under the License is distributed on an "AS IS" BASIS,
18
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- * See the License for the specific language governing permissions and
20
- * limitations under the License.
21
- */
22
4
  const makeRpcRequest_1 = require("./makeRpcRequest");
23
5
  const identity_pb_1 = require("../generated/node/identity_pb");
24
6
  class AbstractClient {
@@ -32,14 +14,15 @@ class AbstractClient {
32
14
  this._accessToken = "";
33
15
  this._refreshToken = "";
34
16
  }
35
- async login(username, password) {
17
+ async login(username, password, verificationCode) {
36
18
  const { refreshToken, accessToken } = await (0, makeRpcRequest_1.makeRpcRequest)({
37
19
  method: this.identityClient.exchangeCredentials.bind(this.identityClient),
38
20
  requestPBObjectConstructor: identity_pb_1.ExchangeCredentialsRequest,
39
21
  metadata: {},
40
22
  request: {
41
23
  username,
42
- password
24
+ password,
25
+ verificationCode
43
26
  }
44
27
  });
45
28
  this._refreshToken = refreshToken;
@@ -69,6 +52,41 @@ class AbstractClient {
69
52
  this._refreshToken = refreshToken;
70
53
  this._accessToken = accessToken;
71
54
  }
55
+ async loginWithOauth2Code(provider, username, code) {
56
+ const { refreshToken, accessToken } = await (0, makeRpcRequest_1.makeRpcRequest)({
57
+ method: this.identityClient.exchangeOauth2Code,
58
+ requestPBObjectConstructor: identity_pb_1.ExchangeOauth2CodeRequest,
59
+ metadata: {},
60
+ request: {
61
+ provider,
62
+ username,
63
+ code
64
+ }
65
+ });
66
+ this._refreshToken = refreshToken;
67
+ this._accessToken = accessToken;
68
+ }
69
+ async sendVerificationCode(contactType, value) {
70
+ await (0, makeRpcRequest_1.makeRpcRequest)({
71
+ method: this.identityClient.sendVerificationCode.bind(this.identityClient),
72
+ requestPBObjectConstructor: identity_pb_1.SendVerificationCodeRequest,
73
+ metadata: {},
74
+ request: {
75
+ contactType: contactType,
76
+ value
77
+ },
78
+ enumMapping: [["contactType", identity_pb_1.ContactType]]
79
+ });
80
+ }
81
+ async verifyCode(request) {
82
+ await (0, makeRpcRequest_1.makeRpcRequest)({
83
+ method: this.identityClient.verifyCode.bind(this.identityClient),
84
+ requestPBObjectConstructor: identity_pb_1.VerifyCodeRequest,
85
+ metadata: {},
86
+ request,
87
+ enumMapping: [["contactType", identity_pb_1.ContactType]]
88
+ });
89
+ }
72
90
  async refreshToken() {
73
91
  return await this.loginWithRefreshToken(this._refreshToken);
74
92
  }
@@ -7,7 +7,7 @@ declare class TokenRefresherWeb {
7
7
  intercept(request: unknown, invoker: (request: unknown) => ClientReadableStream): {
8
8
  refresher: TokenRefresherWeb;
9
9
  stream: ClientReadableStream;
10
- on(eventType: string, callback: () => void): any;
10
+ on(eventType: string, callback: () => void): /*elided*/ any;
11
11
  };
12
12
  }
13
13
  export { TokenRefresherWeb };
@@ -1,4 +1,4 @@
1
- import { CreateApiKeyRequest, CreateApiKeyResponse, CreateUserRequest, CreateUserResponse, CreateWorkspaceRequest, DeleteApiKeyRequest, DeleteApiKeyResponse, DeleteUserRequest, DeleteUserResponse, DeleteWorkspaceRequest, DeleteWorkspaceResponse, ExchangeApiKeyRequest, ExchangeApiKeyResponse, ExchangeCredentialsRequest, ExchangeCredentialsResponse, ExchangeRefreshTokenRequest, ExchangeRefreshTokenResponse, GetUserRequest, GetWorkspaceRequest, InviteUserToWorkspaceRequest, InviteUserToWorkspaceResponse, ListApiKeysRequest, ListApiKeysResponse, ListWorkspacesRequest, ListWorkspacesResponse, RegenerateApiKeyRequest, RegenerateApiKeyResponse, RemoveUserFromWorkspaceRequest, RemoveUserFromWorkspaceResponse, ResendWorkspaceMembershipInvitationRequest, ResendWorkspaceMembershipInvitationResponse, UpdateUserRequest, UpdateWorkspaceRequest, UpdateWorkspaceResponse, User, Workspace } from "../../generated/web/identity_pb";
1
+ import { CreateApiKeyRequest, CreateApiKeyResponse, CreateUserRequest, CreateUserResponse, CreateWorkspaceRequest, DeleteApiKeyRequest, DeleteApiKeyResponse, DeleteUserRequest, DeleteUserResponse, DeleteWorkspaceRequest, DeleteWorkspaceResponse, ExchangeApiKeyRequest, ExchangeApiKeyResponse, ExchangeCredentialsRequest, ExchangeCredentialsResponse, ExchangeOauth2CodeRequest, ExchangeOauth2CodeResponse, ExchangeRefreshTokenRequest, ExchangeRefreshTokenResponse, GetUserRequest, GetWorkspaceRequest, InviteUserToWorkspaceRequest, InviteUserToWorkspaceResponse, ListApiKeysRequest, ListApiKeysResponse, ListWorkspacesRequest, ListWorkspacesResponse, RegenerateApiKeyRequest, RegenerateApiKeyResponse, RemoveUserFromWorkspaceRequest, RemoveUserFromWorkspaceResponse, ResendWorkspaceMembershipInvitationRequest, ResendWorkspaceMembershipInvitationResponse, SendVerificationCodeRequest, UpdateUserRequest, UpdateWorkspaceRequest, UpdateWorkspaceResponse, User, VerifyCodeRequest, Workspace } from "../../generated/web/identity_pb";
2
2
  import { ClientFunction } from "../types";
3
3
  type IdentityClient = {
4
4
  createApiKey: ClientFunction<CreateApiKeyRequest, CreateApiKeyResponse>;
@@ -7,11 +7,14 @@ type IdentityClient = {
7
7
  deleteApiKey: ClientFunction<DeleteApiKeyRequest, DeleteApiKeyResponse>;
8
8
  exchangeApiKey: ClientFunction<ExchangeApiKeyRequest, ExchangeApiKeyResponse>;
9
9
  exchangeCredentials: ClientFunction<ExchangeCredentialsRequest, ExchangeCredentialsResponse>;
10
+ exchangeOauth2Code: ClientFunction<ExchangeOauth2CodeRequest, ExchangeOauth2CodeResponse>;
10
11
  exchangeRefreshToken: ClientFunction<ExchangeRefreshTokenRequest, ExchangeRefreshTokenResponse>;
11
12
  createUser: ClientFunction<CreateUserRequest, CreateUserResponse>;
12
13
  getUser: ClientFunction<GetUserRequest, User>;
13
14
  updateUser: ClientFunction<UpdateUserRequest, CreateUserResponse>;
14
15
  deleteUser: ClientFunction<DeleteUserRequest, DeleteUserResponse>;
16
+ sendVerificationCode: ClientFunction<SendVerificationCodeRequest, never>;
17
+ verifyCode: ClientFunction<VerifyCodeRequest, never>;
15
18
  createWorkspace: ClientFunction<CreateWorkspaceRequest, CreateUserResponse>;
16
19
  getWorkspace: ClientFunction<GetWorkspaceRequest, Workspace>;
17
20
  listWorkspaces: ClientFunction<ListWorkspacesRequest, ListWorkspacesResponse>;
@@ -241,7 +241,7 @@ if (goog.DEBUG && !COMPILED) {
241
241
  * @private {!Array<number>}
242
242
  * @const
243
243
  */
244
- proto.fonoster.acls.v1beta2.Acl.repeatedFields_ = [3,4];
244
+ proto.fonoster.acls.v1beta2.Acl.repeatedFields_ = [3];
245
245
 
246
246
 
247
247
 
@@ -277,9 +277,8 @@ proto.fonoster.acls.v1beta2.Acl.toObject = function(includeInstance, msg) {
277
277
  ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
278
278
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
279
279
  allowList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
280
- denyList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
281
- createdAt: jspb.Message.getFieldWithDefault(msg, 5, 0),
282
- updatedAt: jspb.Message.getFieldWithDefault(msg, 6, 0)
280
+ createdAt: jspb.Message.getFieldWithDefault(msg, 4, 0),
281
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 5, 0)
283
282
  };
284
283
 
285
284
  if (includeInstance) {
@@ -329,14 +328,10 @@ proto.fonoster.acls.v1beta2.Acl.deserializeBinaryFromReader = function(msg, read
329
328
  msg.addAllow(value);
330
329
  break;
331
330
  case 4:
332
- var value = /** @type {string} */ (reader.readString());
333
- msg.addDeny(value);
334
- break;
335
- case 5:
336
331
  var value = /** @type {number} */ (reader.readInt32());
337
332
  msg.setCreatedAt(value);
338
333
  break;
339
- case 6:
334
+ case 5:
340
335
  var value = /** @type {number} */ (reader.readInt32());
341
336
  msg.setUpdatedAt(value);
342
337
  break;
@@ -390,24 +385,17 @@ proto.fonoster.acls.v1beta2.Acl.serializeBinaryToWriter = function(message, writ
390
385
  f
391
386
  );
392
387
  }
393
- f = message.getDenyList();
394
- if (f.length > 0) {
395
- writer.writeRepeatedString(
396
- 4,
397
- f
398
- );
399
- }
400
388
  f = message.getCreatedAt();
401
389
  if (f !== 0) {
402
390
  writer.writeInt32(
403
- 5,
391
+ 4,
404
392
  f
405
393
  );
406
394
  }
407
395
  f = message.getUpdatedAt();
408
396
  if (f !== 0) {
409
397
  writer.writeInt32(
410
- 6,
398
+ 5,
411
399
  f
412
400
  );
413
401
  }
@@ -488,48 +476,11 @@ proto.fonoster.acls.v1beta2.Acl.prototype.clearAllowList = function() {
488
476
 
489
477
 
490
478
  /**
491
- * repeated string deny = 4;
492
- * @return {!Array<string>}
493
- */
494
- proto.fonoster.acls.v1beta2.Acl.prototype.getDenyList = function() {
495
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
496
- };
497
-
498
-
499
- /**
500
- * @param {!Array<string>} value
501
- * @return {!proto.fonoster.acls.v1beta2.Acl} returns this
502
- */
503
- proto.fonoster.acls.v1beta2.Acl.prototype.setDenyList = function(value) {
504
- return jspb.Message.setField(this, 4, value || []);
505
- };
506
-
507
-
508
- /**
509
- * @param {string} value
510
- * @param {number=} opt_index
511
- * @return {!proto.fonoster.acls.v1beta2.Acl} returns this
512
- */
513
- proto.fonoster.acls.v1beta2.Acl.prototype.addDeny = function(value, opt_index) {
514
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
515
- };
516
-
517
-
518
- /**
519
- * Clears the list making it empty but non-null.
520
- * @return {!proto.fonoster.acls.v1beta2.Acl} returns this
521
- */
522
- proto.fonoster.acls.v1beta2.Acl.prototype.clearDenyList = function() {
523
- return this.setDenyList([]);
524
- };
525
-
526
-
527
- /**
528
- * optional int32 created_at = 5;
479
+ * optional int32 created_at = 4;
529
480
  * @return {number}
530
481
  */
531
482
  proto.fonoster.acls.v1beta2.Acl.prototype.getCreatedAt = function() {
532
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
483
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
533
484
  };
534
485
 
535
486
 
@@ -538,16 +489,16 @@ proto.fonoster.acls.v1beta2.Acl.prototype.getCreatedAt = function() {
538
489
  * @return {!proto.fonoster.acls.v1beta2.Acl} returns this
539
490
  */
540
491
  proto.fonoster.acls.v1beta2.Acl.prototype.setCreatedAt = function(value) {
541
- return jspb.Message.setProto3IntField(this, 5, value);
492
+ return jspb.Message.setProto3IntField(this, 4, value);
542
493
  };
543
494
 
544
495
 
545
496
  /**
546
- * optional int32 updated_at = 6;
497
+ * optional int32 updated_at = 5;
547
498
  * @return {number}
548
499
  */
549
500
  proto.fonoster.acls.v1beta2.Acl.prototype.getUpdatedAt = function() {
550
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
501
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
551
502
  };
552
503
 
553
504
 
@@ -556,7 +507,7 @@ proto.fonoster.acls.v1beta2.Acl.prototype.getUpdatedAt = function() {
556
507
  * @return {!proto.fonoster.acls.v1beta2.Acl} returns this
557
508
  */
558
509
  proto.fonoster.acls.v1beta2.Acl.prototype.setUpdatedAt = function(value) {
559
- return jspb.Message.setProto3IntField(this, 6, value);
510
+ return jspb.Message.setProto3IntField(this, 5, value);
560
511
  };
561
512
 
562
513
 
@@ -566,7 +517,7 @@ proto.fonoster.acls.v1beta2.Acl.prototype.setUpdatedAt = function(value) {
566
517
  * @private {!Array<number>}
567
518
  * @const
568
519
  */
569
- proto.fonoster.acls.v1beta2.CreateAclRequest.repeatedFields_ = [2,3];
520
+ proto.fonoster.acls.v1beta2.CreateAclRequest.repeatedFields_ = [2];
570
521
 
571
522
 
572
523
 
@@ -600,8 +551,7 @@ proto.fonoster.acls.v1beta2.CreateAclRequest.prototype.toObject = function(opt_i
600
551
  proto.fonoster.acls.v1beta2.CreateAclRequest.toObject = function(includeInstance, msg) {
601
552
  var f, obj = {
602
553
  name: jspb.Message.getFieldWithDefault(msg, 1, ""),
603
- allowList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
604
- denyList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
554
+ allowList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
605
555
  };
606
556
 
607
557
  if (includeInstance) {
@@ -646,10 +596,6 @@ proto.fonoster.acls.v1beta2.CreateAclRequest.deserializeBinaryFromReader = funct
646
596
  var value = /** @type {string} */ (reader.readString());
647
597
  msg.addAllow(value);
648
598
  break;
649
- case 3:
650
- var value = /** @type {string} */ (reader.readString());
651
- msg.addDeny(value);
652
- break;
653
599
  default:
654
600
  reader.skipField();
655
601
  break;
@@ -693,13 +639,6 @@ proto.fonoster.acls.v1beta2.CreateAclRequest.serializeBinaryToWriter = function(
693
639
  f
694
640
  );
695
641
  }
696
- f = message.getDenyList();
697
- if (f.length > 0) {
698
- writer.writeRepeatedString(
699
- 3,
700
- f
701
- );
702
- }
703
642
  };
704
643
 
705
644
 
@@ -758,43 +697,6 @@ proto.fonoster.acls.v1beta2.CreateAclRequest.prototype.clearAllowList = function
758
697
  };
759
698
 
760
699
 
761
- /**
762
- * repeated string deny = 3;
763
- * @return {!Array<string>}
764
- */
765
- proto.fonoster.acls.v1beta2.CreateAclRequest.prototype.getDenyList = function() {
766
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
767
- };
768
-
769
-
770
- /**
771
- * @param {!Array<string>} value
772
- * @return {!proto.fonoster.acls.v1beta2.CreateAclRequest} returns this
773
- */
774
- proto.fonoster.acls.v1beta2.CreateAclRequest.prototype.setDenyList = function(value) {
775
- return jspb.Message.setField(this, 3, value || []);
776
- };
777
-
778
-
779
- /**
780
- * @param {string} value
781
- * @param {number=} opt_index
782
- * @return {!proto.fonoster.acls.v1beta2.CreateAclRequest} returns this
783
- */
784
- proto.fonoster.acls.v1beta2.CreateAclRequest.prototype.addDeny = function(value, opt_index) {
785
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
786
- };
787
-
788
-
789
- /**
790
- * Clears the list making it empty but non-null.
791
- * @return {!proto.fonoster.acls.v1beta2.CreateAclRequest} returns this
792
- */
793
- proto.fonoster.acls.v1beta2.CreateAclRequest.prototype.clearDenyList = function() {
794
- return this.setDenyList([]);
795
- };
796
-
797
-
798
700
 
799
701
 
800
702
 
@@ -931,7 +833,7 @@ proto.fonoster.acls.v1beta2.CreateAclResponse.prototype.setRef = function(value)
931
833
  * @private {!Array<number>}
932
834
  * @const
933
835
  */
934
- proto.fonoster.acls.v1beta2.UpdateAclRequest.repeatedFields_ = [3,4];
836
+ proto.fonoster.acls.v1beta2.UpdateAclRequest.repeatedFields_ = [3];
935
837
 
936
838
 
937
839
 
@@ -966,8 +868,7 @@ proto.fonoster.acls.v1beta2.UpdateAclRequest.toObject = function(includeInstance
966
868
  var f, obj = {
967
869
  ref: jspb.Message.getFieldWithDefault(msg, 1, ""),
968
870
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
969
- allowList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
970
- denyList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
871
+ allowList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
971
872
  };
972
873
 
973
874
  if (includeInstance) {
@@ -1016,10 +917,6 @@ proto.fonoster.acls.v1beta2.UpdateAclRequest.deserializeBinaryFromReader = funct
1016
917
  var value = /** @type {string} */ (reader.readString());
1017
918
  msg.addAllow(value);
1018
919
  break;
1019
- case 4:
1020
- var value = /** @type {string} */ (reader.readString());
1021
- msg.addDeny(value);
1022
- break;
1023
920
  default:
1024
921
  reader.skipField();
1025
922
  break;
@@ -1070,13 +967,6 @@ proto.fonoster.acls.v1beta2.UpdateAclRequest.serializeBinaryToWriter = function(
1070
967
  f
1071
968
  );
1072
969
  }
1073
- f = message.getDenyList();
1074
- if (f.length > 0) {
1075
- writer.writeRepeatedString(
1076
- 4,
1077
- f
1078
- );
1079
- }
1080
970
  };
1081
971
 
1082
972
 
@@ -1153,43 +1043,6 @@ proto.fonoster.acls.v1beta2.UpdateAclRequest.prototype.clearAllowList = function
1153
1043
  };
1154
1044
 
1155
1045
 
1156
- /**
1157
- * repeated string deny = 4;
1158
- * @return {!Array<string>}
1159
- */
1160
- proto.fonoster.acls.v1beta2.UpdateAclRequest.prototype.getDenyList = function() {
1161
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
1162
- };
1163
-
1164
-
1165
- /**
1166
- * @param {!Array<string>} value
1167
- * @return {!proto.fonoster.acls.v1beta2.UpdateAclRequest} returns this
1168
- */
1169
- proto.fonoster.acls.v1beta2.UpdateAclRequest.prototype.setDenyList = function(value) {
1170
- return jspb.Message.setField(this, 4, value || []);
1171
- };
1172
-
1173
-
1174
- /**
1175
- * @param {string} value
1176
- * @param {number=} opt_index
1177
- * @return {!proto.fonoster.acls.v1beta2.UpdateAclRequest} returns this
1178
- */
1179
- proto.fonoster.acls.v1beta2.UpdateAclRequest.prototype.addDeny = function(value, opt_index) {
1180
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1181
- };
1182
-
1183
-
1184
- /**
1185
- * Clears the list making it empty but non-null.
1186
- * @return {!proto.fonoster.acls.v1beta2.UpdateAclRequest} returns this
1187
- */
1188
- proto.fonoster.acls.v1beta2.UpdateAclRequest.prototype.clearDenyList = function() {
1189
- return this.setDenyList([]);
1190
- };
1191
-
1192
-
1193
1046
 
1194
1047
 
1195
1048