@google-apps/chat 0.9.0 → 0.10.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/CHANGELOG.md +7 -0
- package/README.md +2 -2
- package/build/protos/google/chat/v1/chat_service.proto +51 -42
- package/build/protos/google/chat/v1/message.proto +14 -13
- package/build/protos/google/chat/v1/space.proto +160 -59
- package/build/protos/google/chat/v1/space_event.proto +2 -0
- package/build/protos/protos.d.ts +288 -0
- package/build/protos/protos.js +879 -0
- package/build/protos/protos.json +147 -0
- package/build/src/v1/chat_service_client.d.ts +103 -80
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/package.json +1 -1
package/build/protos/protos.d.ts
CHANGED
|
@@ -17784,6 +17784,12 @@ export namespace google {
|
|
|
17784
17784
|
|
|
17785
17785
|
/** Space spaceUri */
|
|
17786
17786
|
spaceUri?: (string|null);
|
|
17787
|
+
|
|
17788
|
+
/** Space predefinedPermissionSettings */
|
|
17789
|
+
predefinedPermissionSettings?: (google.chat.v1.Space.PredefinedPermissionSettings|keyof typeof google.chat.v1.Space.PredefinedPermissionSettings|null);
|
|
17790
|
+
|
|
17791
|
+
/** Space permissionSettings */
|
|
17792
|
+
permissionSettings?: (google.chat.v1.Space.IPermissionSettings|null);
|
|
17787
17793
|
}
|
|
17788
17794
|
|
|
17789
17795
|
/** Represents a Space. */
|
|
@@ -17846,6 +17852,15 @@ export namespace google {
|
|
|
17846
17852
|
/** Space spaceUri. */
|
|
17847
17853
|
public spaceUri: string;
|
|
17848
17854
|
|
|
17855
|
+
/** Space predefinedPermissionSettings. */
|
|
17856
|
+
public predefinedPermissionSettings?: (google.chat.v1.Space.PredefinedPermissionSettings|keyof typeof google.chat.v1.Space.PredefinedPermissionSettings|null);
|
|
17857
|
+
|
|
17858
|
+
/** Space permissionSettings. */
|
|
17859
|
+
public permissionSettings?: (google.chat.v1.Space.IPermissionSettings|null);
|
|
17860
|
+
|
|
17861
|
+
/** Space spacePermissionSettings. */
|
|
17862
|
+
public spacePermissionSettings?: ("predefinedPermissionSettings"|"permissionSettings");
|
|
17863
|
+
|
|
17849
17864
|
/**
|
|
17850
17865
|
* Creates a new Space instance using the specified properties.
|
|
17851
17866
|
* @param [properties] Properties to set
|
|
@@ -18267,6 +18282,279 @@ export namespace google {
|
|
|
18267
18282
|
DISCOVERABLE = 2
|
|
18268
18283
|
}
|
|
18269
18284
|
}
|
|
18285
|
+
|
|
18286
|
+
/** PredefinedPermissionSettings enum. */
|
|
18287
|
+
enum PredefinedPermissionSettings {
|
|
18288
|
+
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0,
|
|
18289
|
+
COLLABORATION_SPACE = 1,
|
|
18290
|
+
ANNOUNCEMENT_SPACE = 2
|
|
18291
|
+
}
|
|
18292
|
+
|
|
18293
|
+
/** Properties of a PermissionSettings. */
|
|
18294
|
+
interface IPermissionSettings {
|
|
18295
|
+
|
|
18296
|
+
/** PermissionSettings manageMembersAndGroups */
|
|
18297
|
+
manageMembersAndGroups?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18298
|
+
|
|
18299
|
+
/** PermissionSettings modifySpaceDetails */
|
|
18300
|
+
modifySpaceDetails?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18301
|
+
|
|
18302
|
+
/** PermissionSettings toggleHistory */
|
|
18303
|
+
toggleHistory?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18304
|
+
|
|
18305
|
+
/** PermissionSettings useAtMentionAll */
|
|
18306
|
+
useAtMentionAll?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18307
|
+
|
|
18308
|
+
/** PermissionSettings manageApps */
|
|
18309
|
+
manageApps?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18310
|
+
|
|
18311
|
+
/** PermissionSettings manageWebhooks */
|
|
18312
|
+
manageWebhooks?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18313
|
+
|
|
18314
|
+
/** PermissionSettings postMessages */
|
|
18315
|
+
postMessages?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18316
|
+
|
|
18317
|
+
/** PermissionSettings replyMessages */
|
|
18318
|
+
replyMessages?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18319
|
+
}
|
|
18320
|
+
|
|
18321
|
+
/** Represents a PermissionSettings. */
|
|
18322
|
+
class PermissionSettings implements IPermissionSettings {
|
|
18323
|
+
|
|
18324
|
+
/**
|
|
18325
|
+
* Constructs a new PermissionSettings.
|
|
18326
|
+
* @param [properties] Properties to set
|
|
18327
|
+
*/
|
|
18328
|
+
constructor(properties?: google.chat.v1.Space.IPermissionSettings);
|
|
18329
|
+
|
|
18330
|
+
/** PermissionSettings manageMembersAndGroups. */
|
|
18331
|
+
public manageMembersAndGroups?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18332
|
+
|
|
18333
|
+
/** PermissionSettings modifySpaceDetails. */
|
|
18334
|
+
public modifySpaceDetails?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18335
|
+
|
|
18336
|
+
/** PermissionSettings toggleHistory. */
|
|
18337
|
+
public toggleHistory?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18338
|
+
|
|
18339
|
+
/** PermissionSettings useAtMentionAll. */
|
|
18340
|
+
public useAtMentionAll?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18341
|
+
|
|
18342
|
+
/** PermissionSettings manageApps. */
|
|
18343
|
+
public manageApps?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18344
|
+
|
|
18345
|
+
/** PermissionSettings manageWebhooks. */
|
|
18346
|
+
public manageWebhooks?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18347
|
+
|
|
18348
|
+
/** PermissionSettings postMessages. */
|
|
18349
|
+
public postMessages?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18350
|
+
|
|
18351
|
+
/** PermissionSettings replyMessages. */
|
|
18352
|
+
public replyMessages?: (google.chat.v1.Space.IPermissionSetting|null);
|
|
18353
|
+
|
|
18354
|
+
/** PermissionSettings _manageMembersAndGroups. */
|
|
18355
|
+
public _manageMembersAndGroups?: "manageMembersAndGroups";
|
|
18356
|
+
|
|
18357
|
+
/** PermissionSettings _modifySpaceDetails. */
|
|
18358
|
+
public _modifySpaceDetails?: "modifySpaceDetails";
|
|
18359
|
+
|
|
18360
|
+
/** PermissionSettings _toggleHistory. */
|
|
18361
|
+
public _toggleHistory?: "toggleHistory";
|
|
18362
|
+
|
|
18363
|
+
/** PermissionSettings _useAtMentionAll. */
|
|
18364
|
+
public _useAtMentionAll?: "useAtMentionAll";
|
|
18365
|
+
|
|
18366
|
+
/** PermissionSettings _manageApps. */
|
|
18367
|
+
public _manageApps?: "manageApps";
|
|
18368
|
+
|
|
18369
|
+
/** PermissionSettings _manageWebhooks. */
|
|
18370
|
+
public _manageWebhooks?: "manageWebhooks";
|
|
18371
|
+
|
|
18372
|
+
/** PermissionSettings _postMessages. */
|
|
18373
|
+
public _postMessages?: "postMessages";
|
|
18374
|
+
|
|
18375
|
+
/** PermissionSettings _replyMessages. */
|
|
18376
|
+
public _replyMessages?: "replyMessages";
|
|
18377
|
+
|
|
18378
|
+
/**
|
|
18379
|
+
* Creates a new PermissionSettings instance using the specified properties.
|
|
18380
|
+
* @param [properties] Properties to set
|
|
18381
|
+
* @returns PermissionSettings instance
|
|
18382
|
+
*/
|
|
18383
|
+
public static create(properties?: google.chat.v1.Space.IPermissionSettings): google.chat.v1.Space.PermissionSettings;
|
|
18384
|
+
|
|
18385
|
+
/**
|
|
18386
|
+
* Encodes the specified PermissionSettings message. Does not implicitly {@link google.chat.v1.Space.PermissionSettings.verify|verify} messages.
|
|
18387
|
+
* @param message PermissionSettings message or plain object to encode
|
|
18388
|
+
* @param [writer] Writer to encode to
|
|
18389
|
+
* @returns Writer
|
|
18390
|
+
*/
|
|
18391
|
+
public static encode(message: google.chat.v1.Space.IPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18392
|
+
|
|
18393
|
+
/**
|
|
18394
|
+
* Encodes the specified PermissionSettings message, length delimited. Does not implicitly {@link google.chat.v1.Space.PermissionSettings.verify|verify} messages.
|
|
18395
|
+
* @param message PermissionSettings message or plain object to encode
|
|
18396
|
+
* @param [writer] Writer to encode to
|
|
18397
|
+
* @returns Writer
|
|
18398
|
+
*/
|
|
18399
|
+
public static encodeDelimited(message: google.chat.v1.Space.IPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18400
|
+
|
|
18401
|
+
/**
|
|
18402
|
+
* Decodes a PermissionSettings message from the specified reader or buffer.
|
|
18403
|
+
* @param reader Reader or buffer to decode from
|
|
18404
|
+
* @param [length] Message length if known beforehand
|
|
18405
|
+
* @returns PermissionSettings
|
|
18406
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18407
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18408
|
+
*/
|
|
18409
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.PermissionSettings;
|
|
18410
|
+
|
|
18411
|
+
/**
|
|
18412
|
+
* Decodes a PermissionSettings message from the specified reader or buffer, length delimited.
|
|
18413
|
+
* @param reader Reader or buffer to decode from
|
|
18414
|
+
* @returns PermissionSettings
|
|
18415
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18416
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18417
|
+
*/
|
|
18418
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.PermissionSettings;
|
|
18419
|
+
|
|
18420
|
+
/**
|
|
18421
|
+
* Verifies a PermissionSettings message.
|
|
18422
|
+
* @param message Plain object to verify
|
|
18423
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18424
|
+
*/
|
|
18425
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18426
|
+
|
|
18427
|
+
/**
|
|
18428
|
+
* Creates a PermissionSettings message from a plain object. Also converts values to their respective internal types.
|
|
18429
|
+
* @param object Plain object
|
|
18430
|
+
* @returns PermissionSettings
|
|
18431
|
+
*/
|
|
18432
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.PermissionSettings;
|
|
18433
|
+
|
|
18434
|
+
/**
|
|
18435
|
+
* Creates a plain object from a PermissionSettings message. Also converts values to other types if specified.
|
|
18436
|
+
* @param message PermissionSettings
|
|
18437
|
+
* @param [options] Conversion options
|
|
18438
|
+
* @returns Plain object
|
|
18439
|
+
*/
|
|
18440
|
+
public static toObject(message: google.chat.v1.Space.PermissionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18441
|
+
|
|
18442
|
+
/**
|
|
18443
|
+
* Converts this PermissionSettings to JSON.
|
|
18444
|
+
* @returns JSON object
|
|
18445
|
+
*/
|
|
18446
|
+
public toJSON(): { [k: string]: any };
|
|
18447
|
+
|
|
18448
|
+
/**
|
|
18449
|
+
* Gets the default type url for PermissionSettings
|
|
18450
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18451
|
+
* @returns The default type url
|
|
18452
|
+
*/
|
|
18453
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18454
|
+
}
|
|
18455
|
+
|
|
18456
|
+
/** Properties of a PermissionSetting. */
|
|
18457
|
+
interface IPermissionSetting {
|
|
18458
|
+
|
|
18459
|
+
/** PermissionSetting managersAllowed */
|
|
18460
|
+
managersAllowed?: (boolean|null);
|
|
18461
|
+
|
|
18462
|
+
/** PermissionSetting membersAllowed */
|
|
18463
|
+
membersAllowed?: (boolean|null);
|
|
18464
|
+
}
|
|
18465
|
+
|
|
18466
|
+
/** Represents a PermissionSetting. */
|
|
18467
|
+
class PermissionSetting implements IPermissionSetting {
|
|
18468
|
+
|
|
18469
|
+
/**
|
|
18470
|
+
* Constructs a new PermissionSetting.
|
|
18471
|
+
* @param [properties] Properties to set
|
|
18472
|
+
*/
|
|
18473
|
+
constructor(properties?: google.chat.v1.Space.IPermissionSetting);
|
|
18474
|
+
|
|
18475
|
+
/** PermissionSetting managersAllowed. */
|
|
18476
|
+
public managersAllowed: boolean;
|
|
18477
|
+
|
|
18478
|
+
/** PermissionSetting membersAllowed. */
|
|
18479
|
+
public membersAllowed: boolean;
|
|
18480
|
+
|
|
18481
|
+
/**
|
|
18482
|
+
* Creates a new PermissionSetting instance using the specified properties.
|
|
18483
|
+
* @param [properties] Properties to set
|
|
18484
|
+
* @returns PermissionSetting instance
|
|
18485
|
+
*/
|
|
18486
|
+
public static create(properties?: google.chat.v1.Space.IPermissionSetting): google.chat.v1.Space.PermissionSetting;
|
|
18487
|
+
|
|
18488
|
+
/**
|
|
18489
|
+
* Encodes the specified PermissionSetting message. Does not implicitly {@link google.chat.v1.Space.PermissionSetting.verify|verify} messages.
|
|
18490
|
+
* @param message PermissionSetting message or plain object to encode
|
|
18491
|
+
* @param [writer] Writer to encode to
|
|
18492
|
+
* @returns Writer
|
|
18493
|
+
*/
|
|
18494
|
+
public static encode(message: google.chat.v1.Space.IPermissionSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18495
|
+
|
|
18496
|
+
/**
|
|
18497
|
+
* Encodes the specified PermissionSetting message, length delimited. Does not implicitly {@link google.chat.v1.Space.PermissionSetting.verify|verify} messages.
|
|
18498
|
+
* @param message PermissionSetting message or plain object to encode
|
|
18499
|
+
* @param [writer] Writer to encode to
|
|
18500
|
+
* @returns Writer
|
|
18501
|
+
*/
|
|
18502
|
+
public static encodeDelimited(message: google.chat.v1.Space.IPermissionSetting, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
18503
|
+
|
|
18504
|
+
/**
|
|
18505
|
+
* Decodes a PermissionSetting message from the specified reader or buffer.
|
|
18506
|
+
* @param reader Reader or buffer to decode from
|
|
18507
|
+
* @param [length] Message length if known beforehand
|
|
18508
|
+
* @returns PermissionSetting
|
|
18509
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18510
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18511
|
+
*/
|
|
18512
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.PermissionSetting;
|
|
18513
|
+
|
|
18514
|
+
/**
|
|
18515
|
+
* Decodes a PermissionSetting message from the specified reader or buffer, length delimited.
|
|
18516
|
+
* @param reader Reader or buffer to decode from
|
|
18517
|
+
* @returns PermissionSetting
|
|
18518
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18519
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18520
|
+
*/
|
|
18521
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.PermissionSetting;
|
|
18522
|
+
|
|
18523
|
+
/**
|
|
18524
|
+
* Verifies a PermissionSetting message.
|
|
18525
|
+
* @param message Plain object to verify
|
|
18526
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
18527
|
+
*/
|
|
18528
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
18529
|
+
|
|
18530
|
+
/**
|
|
18531
|
+
* Creates a PermissionSetting message from a plain object. Also converts values to their respective internal types.
|
|
18532
|
+
* @param object Plain object
|
|
18533
|
+
* @returns PermissionSetting
|
|
18534
|
+
*/
|
|
18535
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.PermissionSetting;
|
|
18536
|
+
|
|
18537
|
+
/**
|
|
18538
|
+
* Creates a plain object from a PermissionSetting message. Also converts values to other types if specified.
|
|
18539
|
+
* @param message PermissionSetting
|
|
18540
|
+
* @param [options] Conversion options
|
|
18541
|
+
* @returns Plain object
|
|
18542
|
+
*/
|
|
18543
|
+
public static toObject(message: google.chat.v1.Space.PermissionSetting, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
18544
|
+
|
|
18545
|
+
/**
|
|
18546
|
+
* Converts this PermissionSetting to JSON.
|
|
18547
|
+
* @returns JSON object
|
|
18548
|
+
*/
|
|
18549
|
+
public toJSON(): { [k: string]: any };
|
|
18550
|
+
|
|
18551
|
+
/**
|
|
18552
|
+
* Gets the default type url for PermissionSetting
|
|
18553
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18554
|
+
* @returns The default type url
|
|
18555
|
+
*/
|
|
18556
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
18557
|
+
}
|
|
18270
18558
|
}
|
|
18271
18559
|
|
|
18272
18560
|
/** Properties of a CreateSpaceRequest. */
|