@google-apps/chat 0.12.0 → 0.13.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.12.0...chat-v0.13.0) (2025-02-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * [chat] Add DeletionType.SPACE_MEMBER. This is returned when a message sent by an app is deleted by a human in a space ([#6030](https://github.com/googleapis/google-cloud-node/issues/6030)) ([550aafa](https://github.com/googleapis/google-cloud-node/commit/550aafa7c23eabaf2ecbe5c035294428290f7020))
9
+
3
10
  ## [0.12.0](https://github.com/googleapis/google-cloud-node/compare/chat-v0.11.0...chat-v0.12.0) (2025-01-29)
4
11
 
5
12
 
@@ -51,6 +51,10 @@ message DeletionMetadata {
51
51
 
52
52
  // A Chat app deleted the message on behalf of the space owner.
53
53
  SPACE_OWNER_VIA_APP = 6;
54
+
55
+ // A member of the space deleted the message. Human users can delete
56
+ // messages sent by apps.
57
+ SPACE_MEMBER = 7;
54
58
  }
55
59
 
56
60
  // Indicates who deleted the message.
@@ -26,7 +26,7 @@ option php_namespace = "Google\\Apps\\Chat\\V1";
26
26
  option ruby_package = "Google::Apps::Chat::V1";
27
27
 
28
28
  // A [slash
29
- // command](https://developers.google.com/workspace/chat/slash-commands) in
29
+ // command](https://developers.google.com/workspace/chat/commands) in
30
30
  // Google Chat.
31
31
  message SlashCommand {
32
32
  // The ID of the slash command invoked.
@@ -17640,7 +17640,8 @@ export namespace google {
17640
17640
  ADMIN = 3,
17641
17641
  APP_MESSAGE_EXPIRY = 4,
17642
17642
  CREATOR_VIA_APP = 5,
17643
- SPACE_OWNER_VIA_APP = 6
17643
+ SPACE_OWNER_VIA_APP = 6,
17644
+ SPACE_MEMBER = 7
17644
17645
  }
17645
17646
  }
17646
17647
 
@@ -45433,6 +45433,7 @@
45433
45433
  case 4:
45434
45434
  case 5:
45435
45435
  case 6:
45436
+ case 7:
45436
45437
  break;
45437
45438
  }
45438
45439
  return null;
@@ -45485,6 +45486,10 @@
45485
45486
  case 6:
45486
45487
  message.deletionType = 6;
45487
45488
  break;
45489
+ case "SPACE_MEMBER":
45490
+ case 7:
45491
+ message.deletionType = 7;
45492
+ break;
45488
45493
  }
45489
45494
  return message;
45490
45495
  };
@@ -45546,6 +45551,7 @@
45546
45551
  * @property {number} APP_MESSAGE_EXPIRY=4 APP_MESSAGE_EXPIRY value
45547
45552
  * @property {number} CREATOR_VIA_APP=5 CREATOR_VIA_APP value
45548
45553
  * @property {number} SPACE_OWNER_VIA_APP=6 SPACE_OWNER_VIA_APP value
45554
+ * @property {number} SPACE_MEMBER=7 SPACE_MEMBER value
45549
45555
  */
45550
45556
  DeletionMetadata.DeletionType = (function() {
45551
45557
  var valuesById = {}, values = Object.create(valuesById);
@@ -45556,6 +45562,7 @@
45556
45562
  values[valuesById[4] = "APP_MESSAGE_EXPIRY"] = 4;
45557
45563
  values[valuesById[5] = "CREATOR_VIA_APP"] = 5;
45558
45564
  values[valuesById[6] = "SPACE_OWNER_VIA_APP"] = 6;
45565
+ values[valuesById[7] = "SPACE_MEMBER"] = 7;
45559
45566
  return values;
45560
45567
  })();
45561
45568
 
@@ -4682,7 +4682,8 @@
4682
4682
  "ADMIN": 3,
4683
4683
  "APP_MESSAGE_EXPIRY": 4,
4684
4684
  "CREATOR_VIA_APP": 5,
4685
- "SPACE_OWNER_VIA_APP": 6
4685
+ "SPACE_OWNER_VIA_APP": 6,
4686
+ "SPACE_MEMBER": 7
4686
4687
  }
4687
4688
  }
4688
4689
  }
@@ -1573,7 +1573,7 @@ export declare class ChatServiceClient {
1573
1573
  listMessages(request: protos.google.chat.v1.IListMessagesRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListMessagesRequest, protos.google.chat.v1.IListMessagesResponse | null | undefined, protos.google.chat.v1.IMessage>): void;
1574
1574
  listMessages(request: protos.google.chat.v1.IListMessagesRequest, callback: PaginationCallback<protos.google.chat.v1.IListMessagesRequest, protos.google.chat.v1.IListMessagesResponse | null | undefined, protos.google.chat.v1.IMessage>): void;
1575
1575
  /**
1576
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1576
+ * Equivalent to `listMessages`, but returns a NodeJS Stream object.
1577
1577
  * @param {Object} request
1578
1578
  * The request object that will be sent.
1579
1579
  * @param {string} request.parent
@@ -1887,7 +1887,7 @@ export declare class ChatServiceClient {
1887
1887
  listMemberships(request: protos.google.chat.v1.IListMembershipsRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListMembershipsRequest, protos.google.chat.v1.IListMembershipsResponse | null | undefined, protos.google.chat.v1.IMembership>): void;
1888
1888
  listMemberships(request: protos.google.chat.v1.IListMembershipsRequest, callback: PaginationCallback<protos.google.chat.v1.IListMembershipsRequest, protos.google.chat.v1.IListMembershipsResponse | null | undefined, protos.google.chat.v1.IMembership>): void;
1889
1889
  /**
1890
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1890
+ * Equivalent to `listMemberships`, but returns a NodeJS Stream object.
1891
1891
  * @param {Object} request
1892
1892
  * The request object that will be sent.
1893
1893
  * @param {string} request.parent
@@ -2178,7 +2178,7 @@ export declare class ChatServiceClient {
2178
2178
  listSpaces(request: protos.google.chat.v1.IListSpacesRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListSpacesRequest, protos.google.chat.v1.IListSpacesResponse | null | undefined, protos.google.chat.v1.ISpace>): void;
2179
2179
  listSpaces(request: protos.google.chat.v1.IListSpacesRequest, callback: PaginationCallback<protos.google.chat.v1.IListSpacesRequest, protos.google.chat.v1.IListSpacesResponse | null | undefined, protos.google.chat.v1.ISpace>): void;
2180
2180
  /**
2181
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2181
+ * Equivalent to `listSpaces`, but returns a NodeJS Stream object.
2182
2182
  * @param {Object} request
2183
2183
  * The request object that will be sent.
2184
2184
  * @param {number} [request.pageSize]
@@ -2438,7 +2438,7 @@ export declare class ChatServiceClient {
2438
2438
  searchSpaces(request: protos.google.chat.v1.ISearchSpacesRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.ISearchSpacesRequest, protos.google.chat.v1.ISearchSpacesResponse | null | undefined, protos.google.chat.v1.ISpace>): void;
2439
2439
  searchSpaces(request: protos.google.chat.v1.ISearchSpacesRequest, callback: PaginationCallback<protos.google.chat.v1.ISearchSpacesRequest, protos.google.chat.v1.ISearchSpacesResponse | null | undefined, protos.google.chat.v1.ISpace>): void;
2440
2440
  /**
2441
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2441
+ * Equivalent to `searchSpaces`, but returns a NodeJS Stream object.
2442
2442
  * @param {Object} request
2443
2443
  * The request object that will be sent.
2444
2444
  * @param {boolean} request.useAdminAccess
@@ -2809,7 +2809,7 @@ export declare class ChatServiceClient {
2809
2809
  listReactions(request: protos.google.chat.v1.IListReactionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListReactionsRequest, protos.google.chat.v1.IListReactionsResponse | null | undefined, protos.google.chat.v1.IReaction>): void;
2810
2810
  listReactions(request: protos.google.chat.v1.IListReactionsRequest, callback: PaginationCallback<protos.google.chat.v1.IListReactionsRequest, protos.google.chat.v1.IListReactionsResponse | null | undefined, protos.google.chat.v1.IReaction>): void;
2811
2811
  /**
2812
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
2812
+ * Equivalent to `listReactions`, but returns a NodeJS Stream object.
2813
2813
  * @param {Object} request
2814
2814
  * The request object that will be sent.
2815
2815
  * @param {string} request.parent
@@ -3074,7 +3074,7 @@ export declare class ChatServiceClient {
3074
3074
  listSpaceEvents(request: protos.google.chat.v1.IListSpaceEventsRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListSpaceEventsRequest, protos.google.chat.v1.IListSpaceEventsResponse | null | undefined, protos.google.chat.v1.ISpaceEvent>): void;
3075
3075
  listSpaceEvents(request: protos.google.chat.v1.IListSpaceEventsRequest, callback: PaginationCallback<protos.google.chat.v1.IListSpaceEventsRequest, protos.google.chat.v1.IListSpaceEventsResponse | null | undefined, protos.google.chat.v1.ISpaceEvent>): void;
3076
3076
  /**
3077
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
3077
+ * Equivalent to `listSpaceEvents`, but returns a NodeJS Stream object.
3078
3078
  * @param {Object} request
3079
3079
  * The request object that will be sent.
3080
3080
  * @param {string} request.parent
@@ -824,7 +824,7 @@ class ChatServiceClient {
824
824
  return this.innerApiCalls.listMessages(request, options, callback);
825
825
  }
826
826
  /**
827
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
827
+ * Equivalent to `listMessages`, but returns a NodeJS Stream object.
828
828
  * @param {Object} request
829
829
  * The request object that will be sent.
830
830
  * @param {string} request.parent
@@ -1052,7 +1052,7 @@ class ChatServiceClient {
1052
1052
  return this.innerApiCalls.listMemberships(request, options, callback);
1053
1053
  }
1054
1054
  /**
1055
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1055
+ * Equivalent to `listMemberships`, but returns a NodeJS Stream object.
1056
1056
  * @param {Object} request
1057
1057
  * The request object that will be sent.
1058
1058
  * @param {string} request.parent
@@ -1311,7 +1311,7 @@ class ChatServiceClient {
1311
1311
  return this.innerApiCalls.listSpaces(request, options, callback);
1312
1312
  }
1313
1313
  /**
1314
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1314
+ * Equivalent to `listSpaces`, but returns a NodeJS Stream object.
1315
1315
  * @param {Object} request
1316
1316
  * The request object that will be sent.
1317
1317
  * @param {number} [request.pageSize]
@@ -1452,7 +1452,7 @@ class ChatServiceClient {
1452
1452
  return this.innerApiCalls.searchSpaces(request, options, callback);
1453
1453
  }
1454
1454
  /**
1455
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1455
+ * Equivalent to `searchSpaces`, but returns a NodeJS Stream object.
1456
1456
  * @param {Object} request
1457
1457
  * The request object that will be sent.
1458
1458
  * @param {boolean} request.useAdminAccess
@@ -1772,7 +1772,7 @@ class ChatServiceClient {
1772
1772
  return this.innerApiCalls.listReactions(request, options, callback);
1773
1773
  }
1774
1774
  /**
1775
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1775
+ * Equivalent to `listReactions`, but returns a NodeJS Stream object.
1776
1776
  * @param {Object} request
1777
1777
  * The request object that will be sent.
1778
1778
  * @param {string} request.parent
@@ -1978,7 +1978,7 @@ class ChatServiceClient {
1978
1978
  return this.innerApiCalls.listSpaceEvents(request, options, callback);
1979
1979
  }
1980
1980
  /**
1981
- * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1981
+ * Equivalent to `listSpaceEvents`, but returns a NodeJS Stream object.
1982
1982
  * @param {Object} request
1983
1983
  * The request object that will be sent.
1984
1984
  * @param {string} request.parent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-apps/chat",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Google Chat API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",