@maxim_mazurok/gapi.client.chat-v1 0.3.20261012 → 0.3.20261015

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.
Files changed (2) hide show
  1. package/index.d.ts +66 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://chat.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20261012
12
+ // Revision: 20261015
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -211,6 +211,8 @@ declare namespace gapi.client {
211
211
  card?: GoogleAppsCardV1Card;
212
212
  /** Required if the message contains multiple cards. A unique identifier for a card in a message. */
213
213
  cardId?: string;
214
+ /** Output only. The app that owns the card. */
215
+ ownerUser?: User;
214
216
  }
215
217
  interface ChatAppLogEntry {
216
218
  /** The deployment that caused the error. For Chat apps built in Apps Script, this is the deployment ID defined by Apps Script. */
@@ -1446,6 +1448,11 @@ declare namespace gapi.client {
1446
1448
  /** The deleted reaction. */
1447
1449
  reaction?: Reaction;
1448
1450
  }
1451
+ interface ReplaceMessageCardsRequest {
1452
+ /** Optional. An array of [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) to be included in the message. These cards will replace the existing cards of the message. If empty, the original cards included in the message will be cleared. */
1453
+ cardsV2?: CardWithId[];
1454
+ }
1455
+ interface ReplaceMessageCardsResponse {}
1449
1456
  interface RichLinkMetadata {
1450
1457
  /** Data for a Calendar event link. */
1451
1458
  calendarEventLinkData?: CalendarEventLinkData;
@@ -2767,6 +2774,64 @@ declare namespace gapi.client {
2767
2774
  },
2768
2775
  body: Message,
2769
2776
  ): Request<Message>;
2777
+ /** Replaces the cards included in a message. A Chat app can only replace cards on a human-created message if the message already contains cards, and the cards were created by the app. If the app replaces the cards with an empty list, the cards are removed. After removing the cards, the app cannot add cards back to the message. Requires [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.bot` */
2778
+ replaceCards(request: {
2779
+ /** V1 error format. */
2780
+ '$.xgafv'?: '1' | '2';
2781
+ /** OAuth access token. */
2782
+ access_token?: string;
2783
+ /** Data format for response. */
2784
+ alt?: 'json' | 'media' | 'proto';
2785
+ /** JSONP */
2786
+ callback?: string;
2787
+ /** Selector specifying which fields to include in a partial response. */
2788
+ fields?: string;
2789
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2790
+ key?: string;
2791
+ /** Required. The resource name of the message. Format: `spaces/{space}/messages/{message}` */
2792
+ name: string;
2793
+ /** OAuth 2.0 token for the current user. */
2794
+ oauth_token?: string;
2795
+ /** Returns response with indentations and line breaks. */
2796
+ prettyPrint?: boolean;
2797
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2798
+ quotaUser?: string;
2799
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2800
+ upload_protocol?: string;
2801
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2802
+ uploadType?: string;
2803
+ /** Request body */
2804
+ resource: ReplaceMessageCardsRequest;
2805
+ }): Request<{}>;
2806
+ replaceCards(
2807
+ request: {
2808
+ /** V1 error format. */
2809
+ '$.xgafv'?: '1' | '2';
2810
+ /** OAuth access token. */
2811
+ access_token?: string;
2812
+ /** Data format for response. */
2813
+ alt?: 'json' | 'media' | 'proto';
2814
+ /** JSONP */
2815
+ callback?: string;
2816
+ /** Selector specifying which fields to include in a partial response. */
2817
+ fields?: string;
2818
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2819
+ key?: string;
2820
+ /** Required. The resource name of the message. Format: `spaces/{space}/messages/{message}` */
2821
+ name: string;
2822
+ /** OAuth 2.0 token for the current user. */
2823
+ oauth_token?: string;
2824
+ /** Returns response with indentations and line breaks. */
2825
+ prettyPrint?: boolean;
2826
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2827
+ quotaUser?: string;
2828
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2829
+ upload_protocol?: string;
2830
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2831
+ uploadType?: string;
2832
+ },
2833
+ body: ReplaceMessageCardsRequest,
2834
+ ): Request<{}>;
2770
2835
  /** Searches for messages in Google Chat that the calling user has access to. Returns a list of messages matching the search criteria. To search across all spaces the user has access to, set `parent` to `spaces/-`. Using any other value for `parent` results in an `INVALID_ARGUMENT` error. The returned messages have their `name` field populated with the full resource name, which includes the specific `space` in which the message resides. This API doesn't return all message types. The types of messages listed below aren't included in the response. Use ListMessages to list all messages. - Private Messages that are visible to the authenticated user. - Messages posted by Chat apps in spaces or group chats. - Messages in a Chat app DM. - Messages from blocked users. - Messages in spaces that the caller has muted. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` */
2771
2836
  search(request: {
2772
2837
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chat-v1",
3
- "version": "0.3.20261012",
3
+ "version": "0.3.20261015",
4
4
  "description": "TypeScript typings for Google Chat API v1",
5
5
  "repository": {
6
6
  "type": "git",