@google-apps/chat 0.4.0 → 0.6.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 +16 -0
- package/build/protos/google/apps/card/v1/card.proto +1 -1
- package/build/protos/google/chat/v1/action_status.proto +2 -1
- package/build/protos/google/chat/v1/annotation.proto +3 -1
- package/build/protos/google/chat/v1/attachment.proto +4 -3
- package/build/protos/google/chat/v1/chat_service.proto +60 -20
- package/build/protos/google/chat/v1/contextual_addon.proto +2 -1
- package/build/protos/google/chat/v1/deletion_metadata.proto +2 -1
- package/build/protos/google/chat/v1/group.proto +2 -1
- package/build/protos/google/chat/v1/history_state.proto +2 -1
- package/build/protos/google/chat/v1/matched_url.proto +2 -1
- package/build/protos/google/chat/v1/membership.proto +13 -7
- package/build/protos/google/chat/v1/message.proto +2 -1
- package/build/protos/google/chat/v1/reaction.proto +4 -3
- package/build/protos/google/chat/v1/slash_command.proto +2 -1
- package/build/protos/google/chat/v1/space.proto +70 -13
- package/build/protos/google/chat/v1/space_read_state.proto +2 -1
- package/build/protos/google/chat/v1/space_setup.proto +16 -11
- package/build/protos/google/chat/v1/thread_read_state.proto +2 -1
- package/build/protos/google/chat/v1/user.proto +2 -1
- package/build/protos/google/chat/v1/widgets.proto +2 -1
- package/build/protos/protos.d.ts +141 -16
- package/build/protos/protos.js +367 -49
- package/build/protos/protos.json +68 -23
- package/build/src/v1/chat_service_client.d.ts +118 -46
- package/build/src/v1/chat_service_client.js +21 -4
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -25,6 +25,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
25
25
|
option java_multiple_files = true;
|
|
26
26
|
option java_outer_classname = "ThreadReadStateProto";
|
|
27
27
|
option java_package = "com.google.chat.v1";
|
|
28
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
28
29
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
29
30
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
30
31
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -24,6 +24,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
24
24
|
option java_multiple_files = true;
|
|
25
25
|
option java_outer_classname = "UserProto";
|
|
26
26
|
option java_package = "com.google.chat.v1";
|
|
27
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
27
28
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
28
29
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
29
30
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -21,6 +21,7 @@ option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
|
|
|
21
21
|
option java_multiple_files = true;
|
|
22
22
|
option java_outer_classname = "WidgetsProto";
|
|
23
23
|
option java_package = "com.google.chat.v1";
|
|
24
|
+
option objc_class_prefix = "DYNAPIProto";
|
|
24
25
|
option php_namespace = "Google\\Apps\\Chat\\V1";
|
|
25
26
|
option ruby_package = "Google::Apps::Chat::V1";
|
|
26
27
|
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -3057,11 +3057,11 @@ export namespace google {
|
|
|
3057
3057
|
/** FieldOptions uninterpretedOption */
|
|
3058
3058
|
uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
|
|
3059
3059
|
|
|
3060
|
-
/** FieldOptions .google.api.fieldBehavior */
|
|
3061
|
-
".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
|
3062
|
-
|
|
3063
3060
|
/** FieldOptions .google.api.resourceReference */
|
|
3064
3061
|
".google.api.resourceReference"?: (google.api.IResourceReference|null);
|
|
3062
|
+
|
|
3063
|
+
/** FieldOptions .google.api.fieldBehavior */
|
|
3064
|
+
".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null);
|
|
3065
3065
|
}
|
|
3066
3066
|
|
|
3067
3067
|
/** Represents a FieldOptions. */
|
|
@@ -17563,6 +17563,12 @@ export namespace google {
|
|
|
17563
17563
|
|
|
17564
17564
|
/** Space adminInstalled */
|
|
17565
17565
|
adminInstalled?: (boolean|null);
|
|
17566
|
+
|
|
17567
|
+
/** Space accessSettings */
|
|
17568
|
+
accessSettings?: (google.chat.v1.Space.IAccessSettings|null);
|
|
17569
|
+
|
|
17570
|
+
/** Space spaceUri */
|
|
17571
|
+
spaceUri?: (string|null);
|
|
17566
17572
|
}
|
|
17567
17573
|
|
|
17568
17574
|
/** Represents a Space. */
|
|
@@ -17613,6 +17619,12 @@ export namespace google {
|
|
|
17613
17619
|
/** Space adminInstalled. */
|
|
17614
17620
|
public adminInstalled: boolean;
|
|
17615
17621
|
|
|
17622
|
+
/** Space accessSettings. */
|
|
17623
|
+
public accessSettings?: (google.chat.v1.Space.IAccessSettings|null);
|
|
17624
|
+
|
|
17625
|
+
/** Space spaceUri. */
|
|
17626
|
+
public spaceUri: string;
|
|
17627
|
+
|
|
17616
17628
|
/**
|
|
17617
17629
|
* Creates a new Space instance using the specified properties.
|
|
17618
17630
|
* @param [properties] Properties to set
|
|
@@ -17818,6 +17830,119 @@ export namespace google {
|
|
|
17818
17830
|
*/
|
|
17819
17831
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
17820
17832
|
}
|
|
17833
|
+
|
|
17834
|
+
/** Properties of an AccessSettings. */
|
|
17835
|
+
interface IAccessSettings {
|
|
17836
|
+
|
|
17837
|
+
/** AccessSettings accessState */
|
|
17838
|
+
accessState?: (google.chat.v1.Space.AccessSettings.AccessState|keyof typeof google.chat.v1.Space.AccessSettings.AccessState|null);
|
|
17839
|
+
|
|
17840
|
+
/** AccessSettings audience */
|
|
17841
|
+
audience?: (string|null);
|
|
17842
|
+
}
|
|
17843
|
+
|
|
17844
|
+
/** Represents an AccessSettings. */
|
|
17845
|
+
class AccessSettings implements IAccessSettings {
|
|
17846
|
+
|
|
17847
|
+
/**
|
|
17848
|
+
* Constructs a new AccessSettings.
|
|
17849
|
+
* @param [properties] Properties to set
|
|
17850
|
+
*/
|
|
17851
|
+
constructor(properties?: google.chat.v1.Space.IAccessSettings);
|
|
17852
|
+
|
|
17853
|
+
/** AccessSettings accessState. */
|
|
17854
|
+
public accessState: (google.chat.v1.Space.AccessSettings.AccessState|keyof typeof google.chat.v1.Space.AccessSettings.AccessState);
|
|
17855
|
+
|
|
17856
|
+
/** AccessSettings audience. */
|
|
17857
|
+
public audience: string;
|
|
17858
|
+
|
|
17859
|
+
/**
|
|
17860
|
+
* Creates a new AccessSettings instance using the specified properties.
|
|
17861
|
+
* @param [properties] Properties to set
|
|
17862
|
+
* @returns AccessSettings instance
|
|
17863
|
+
*/
|
|
17864
|
+
public static create(properties?: google.chat.v1.Space.IAccessSettings): google.chat.v1.Space.AccessSettings;
|
|
17865
|
+
|
|
17866
|
+
/**
|
|
17867
|
+
* Encodes the specified AccessSettings message. Does not implicitly {@link google.chat.v1.Space.AccessSettings.verify|verify} messages.
|
|
17868
|
+
* @param message AccessSettings message or plain object to encode
|
|
17869
|
+
* @param [writer] Writer to encode to
|
|
17870
|
+
* @returns Writer
|
|
17871
|
+
*/
|
|
17872
|
+
public static encode(message: google.chat.v1.Space.IAccessSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
17873
|
+
|
|
17874
|
+
/**
|
|
17875
|
+
* Encodes the specified AccessSettings message, length delimited. Does not implicitly {@link google.chat.v1.Space.AccessSettings.verify|verify} messages.
|
|
17876
|
+
* @param message AccessSettings message or plain object to encode
|
|
17877
|
+
* @param [writer] Writer to encode to
|
|
17878
|
+
* @returns Writer
|
|
17879
|
+
*/
|
|
17880
|
+
public static encodeDelimited(message: google.chat.v1.Space.IAccessSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
17881
|
+
|
|
17882
|
+
/**
|
|
17883
|
+
* Decodes an AccessSettings message from the specified reader or buffer.
|
|
17884
|
+
* @param reader Reader or buffer to decode from
|
|
17885
|
+
* @param [length] Message length if known beforehand
|
|
17886
|
+
* @returns AccessSettings
|
|
17887
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17888
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17889
|
+
*/
|
|
17890
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.AccessSettings;
|
|
17891
|
+
|
|
17892
|
+
/**
|
|
17893
|
+
* Decodes an AccessSettings message from the specified reader or buffer, length delimited.
|
|
17894
|
+
* @param reader Reader or buffer to decode from
|
|
17895
|
+
* @returns AccessSettings
|
|
17896
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17897
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17898
|
+
*/
|
|
17899
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.AccessSettings;
|
|
17900
|
+
|
|
17901
|
+
/**
|
|
17902
|
+
* Verifies an AccessSettings message.
|
|
17903
|
+
* @param message Plain object to verify
|
|
17904
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
17905
|
+
*/
|
|
17906
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
17907
|
+
|
|
17908
|
+
/**
|
|
17909
|
+
* Creates an AccessSettings message from a plain object. Also converts values to their respective internal types.
|
|
17910
|
+
* @param object Plain object
|
|
17911
|
+
* @returns AccessSettings
|
|
17912
|
+
*/
|
|
17913
|
+
public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.AccessSettings;
|
|
17914
|
+
|
|
17915
|
+
/**
|
|
17916
|
+
* Creates a plain object from an AccessSettings message. Also converts values to other types if specified.
|
|
17917
|
+
* @param message AccessSettings
|
|
17918
|
+
* @param [options] Conversion options
|
|
17919
|
+
* @returns Plain object
|
|
17920
|
+
*/
|
|
17921
|
+
public static toObject(message: google.chat.v1.Space.AccessSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
17922
|
+
|
|
17923
|
+
/**
|
|
17924
|
+
* Converts this AccessSettings to JSON.
|
|
17925
|
+
* @returns JSON object
|
|
17926
|
+
*/
|
|
17927
|
+
public toJSON(): { [k: string]: any };
|
|
17928
|
+
|
|
17929
|
+
/**
|
|
17930
|
+
* Gets the default type url for AccessSettings
|
|
17931
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17932
|
+
* @returns The default type url
|
|
17933
|
+
*/
|
|
17934
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
17935
|
+
}
|
|
17936
|
+
|
|
17937
|
+
namespace AccessSettings {
|
|
17938
|
+
|
|
17939
|
+
/** AccessState enum. */
|
|
17940
|
+
enum AccessState {
|
|
17941
|
+
ACCESS_STATE_UNSPECIFIED = 0,
|
|
17942
|
+
PRIVATE = 1,
|
|
17943
|
+
DISCOVERABLE = 2
|
|
17944
|
+
}
|
|
17945
|
+
}
|
|
17821
17946
|
}
|
|
17822
17947
|
|
|
17823
17948
|
/** Properties of a CreateSpaceRequest. */
|
|
@@ -19372,19 +19497,6 @@ export namespace google {
|
|
|
19372
19497
|
/** Namespace api. */
|
|
19373
19498
|
namespace api {
|
|
19374
19499
|
|
|
19375
|
-
/** FieldBehavior enum. */
|
|
19376
|
-
enum FieldBehavior {
|
|
19377
|
-
FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
|
19378
|
-
OPTIONAL = 1,
|
|
19379
|
-
REQUIRED = 2,
|
|
19380
|
-
OUTPUT_ONLY = 3,
|
|
19381
|
-
INPUT_ONLY = 4,
|
|
19382
|
-
IMMUTABLE = 5,
|
|
19383
|
-
UNORDERED_LIST = 6,
|
|
19384
|
-
NON_EMPTY_DEFAULT = 7,
|
|
19385
|
-
IDENTIFIER = 8
|
|
19386
|
-
}
|
|
19387
|
-
|
|
19388
19500
|
/** Properties of a ResourceDescriptor. */
|
|
19389
19501
|
interface IResourceDescriptor {
|
|
19390
19502
|
|
|
@@ -19637,6 +19749,19 @@ export namespace google {
|
|
|
19637
19749
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
19638
19750
|
}
|
|
19639
19751
|
|
|
19752
|
+
/** FieldBehavior enum. */
|
|
19753
|
+
enum FieldBehavior {
|
|
19754
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0,
|
|
19755
|
+
OPTIONAL = 1,
|
|
19756
|
+
REQUIRED = 2,
|
|
19757
|
+
OUTPUT_ONLY = 3,
|
|
19758
|
+
INPUT_ONLY = 4,
|
|
19759
|
+
IMMUTABLE = 5,
|
|
19760
|
+
UNORDERED_LIST = 6,
|
|
19761
|
+
NON_EMPTY_DEFAULT = 7,
|
|
19762
|
+
IDENTIFIER = 8
|
|
19763
|
+
}
|
|
19764
|
+
|
|
19640
19765
|
/** Properties of a Http. */
|
|
19641
19766
|
interface IHttp {
|
|
19642
19767
|
|