|
480 | 480 | ],
|
481 | 481 | "parameters": {
|
482 | 482 | "name": {
|
483 |
| - "description": "Required. Resource name of the membership to retrieve. Format: `spaces/{space}/members/{member}`", |
| 483 | + "description": "Required. Resource name of the membership to retrieve. To get the app's own membership, you can optionally use `spaces/{space}/members/app`. Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`", |
484 | 484 | "location": "path",
|
485 | 485 | "pattern": "^spaces/[^/]+/members/[^/]+$",
|
486 | 486 | "required": true,
|
|
550 | 550 | "messages": {
|
551 | 551 | "methods": {
|
552 | 552 | "create": {
|
553 |
| - "description": "Creates a message. For an example, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Creating a text message supports both [user authentication](https://developers.google.com/chat/api/guides/auth/users) and [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Creating a card message requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts) Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", |
| 553 | + "description": "Creates a message. For an example, see [Create a message](https://developers.google.com/chat/api/guides/crudl/messages#create_a_message). Requires [authentication](https://developers.google.com/chat/api/guides/auth). Creating a text message supports both [user authentication](https://developers.google.com/chat/api/guides/auth/users) and [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). [User authentication](https://developers.google.com/chat/api/guides/auth/users) requires the `chat.messages` or `chat.messages.create` authorization scope. Creating a card message only supports and requires [app authentication] (https://developers.google.com/chat/api/guides/auth/service-accounts). Because Chat provides authentication for [webhooks](https://developers.google.com/chat/how-tos/webhooks) as part of the URL that's generated when a webhook is registered, webhooks can create messages without a service account or user authentication.", |
554 | 554 | "flatPath": "v1/spaces/{spacesId}/messages",
|
555 | 555 | "httpMethod": "POST",
|
556 | 556 | "id": "chat.spaces.messages.create",
|
|
742 | 742 | "type": "string"
|
743 | 743 | },
|
744 | 744 | "updateMask": {
|
745 |
| - "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", |
| 745 | + "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).)", |
746 | 746 | "format": "google-fieldmask",
|
747 | 747 | "location": "query",
|
748 | 748 | "type": "string"
|
|
782 | 782 | "type": "string"
|
783 | 783 | },
|
784 | 784 | "updateMask": {
|
785 |
| - "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) ", |
| 785 | + "description": "Required. The field paths to update. Separate multiple values with commas. Currently supported field paths: - `text` - `attachment` - `cards` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).) - `cards_v2` (Requires [service account authentication](/chat/api/guides/auth/service-accounts).)", |
786 | 786 | "format": "google-fieldmask",
|
787 | 787 | "location": "query",
|
788 | 788 | "type": "string"
|
|
940 | 940 | }
|
941 | 941 | }
|
942 | 942 | },
|
943 |
| - "revision": "20230530", |
| 943 | + "revision": "20230611", |
944 | 944 | "rootUrl": "https://chat.googleapis.com/",
|
945 | 945 | "schemas": {
|
946 | 946 | "ActionParameter": {
|
|
1276 | 1276 | "type": "object"
|
1277 | 1277 | },
|
1278 | 1278 | "Color": {
|
1279 |
| - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value\u2014for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", |
| 1279 | + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value\u2014for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", |
1280 | 1280 | "id": "Color",
|
1281 | 1281 | "properties": {
|
1282 | 1282 | "alpha": {
|
|
1454 | 1454 | "type": "object"
|
1455 | 1455 | },
|
1456 | 1456 | "DeprecatedEvent": {
|
1457 |
| - "description": "Google Chat events.", |
| 1457 | + "description": "Google Chat events. To learn how to use events, see [Receive and respond to Google Chat events](https://developers.google.com/chat/api/guides/message-formats).", |
1458 | 1458 | "id": "DeprecatedEvent",
|
1459 | 1459 | "properties": {
|
1460 | 1460 | "action": {
|
|
1710 | 1710 | "STROKE"
|
1711 | 1711 | ],
|
1712 | 1712 | "enumDescriptions": [
|
1713 |
| - "No value specified.", |
| 1713 | + "Don't use. Unspecified.", |
1714 | 1714 | "Default value. No border.",
|
1715 | 1715 | "Outline."
|
1716 | 1716 | ],
|
|
1783 | 1783 | "REPLACE"
|
1784 | 1784 | ],
|
1785 | 1785 | "enumDescriptions": [
|
1786 |
| - "Don't use.", |
| 1786 | + "Don't use. Unspecified.", |
1787 | 1787 | "The header of the card appears at the bottom of the sidebar, partially covering the current top card of the stack. Clicking the header pops the card into the card stack. If the card has no header, a generated header is used instead.",
|
1788 | 1788 | "Default value. The card is shown by replacing the view of the top card in the card stack."
|
1789 | 1789 | ],
|
|
1841 | 1841 | "secondaryButton": {
|
1842 | 1842 | "$ref": "GoogleAppsCardV1Button",
|
1843 | 1843 | "description": "The secondary button of the fixed footer. The button must be a text button with text and color set. If `secondaryButton` is set, you must also set `primaryButton`."
|
1844 |
| - }, |
1845 |
| - "widgets": { |
1846 |
| - "description": "A list of widgets included in the card footer. Primary button and secondary button are rendered below these widgets.", |
1847 |
| - "items": { |
1848 |
| - "$ref": "GoogleAppsCardV1FooterWidget" |
1849 |
| - }, |
1850 |
| - "type": "array" |
1851 | 1844 | }
|
1852 | 1845 | },
|
1853 | 1846 | "type": "object"
|
|
1900 | 1893 | "END"
|
1901 | 1894 | ],
|
1902 | 1895 | "enumDescriptions": [
|
1903 |
| - "Unspecified. Do not use.", |
| 1896 | + "Don't use. Unspecified.", |
1904 | 1897 | "Default value. Aligns widgets to the start position of the column. For left-to-right layouts, aligns to the left. For right-to-left layouts, aligns to the right.",
|
1905 | 1898 | "Aligns widgets to the center of the column.",
|
1906 | 1899 | "Aligns widgets to the end position of the column. For left-to-right layouts, aligns widgets to the right. For right-to-left layouts, aligns widgets to the left."
|
|
1915 | 1908 | "FILL_MINIMUM_SPACE"
|
1916 | 1909 | ],
|
1917 | 1910 | "enumDescriptions": [
|
1918 |
| - "Unspecified. Do not use.", |
| 1911 | + "Don't use. Unspecified.", |
1919 | 1912 | "Default value. Column fills the available space, up to 70% of the card's width. If both columns are set to `FILL_AVAILABLE_SPACE`, each column fills 50% of the space.",
|
1920 | 1913 | "Column fills the least amount of space possible and no more than 30% of the card's width."
|
1921 | 1914 | ],
|
|
1930 | 1923 | "BOTTOM"
|
1931 | 1924 | ],
|
1932 | 1925 | "enumDescriptions": [
|
1933 |
| - "Unspecified. Don't use.", |
| 1926 | + "Don't use. Unspecified.", |
1934 | 1927 | "Default value. Aligns widgets to the center of a column.",
|
1935 | 1928 | "Aligns widgets to the top of a column.",
|
1936 | 1929 | "Aligns widgets to the bottom of a column."
|
|
2057 | 2050 | "properties": {},
|
2058 | 2051 | "type": "object"
|
2059 | 2052 | },
|
2060 |
| - "GoogleAppsCardV1FooterWidget": { |
2061 |
| - "description": "The CardFixedFooter can contain a list of these widgets.", |
2062 |
| - "id": "GoogleAppsCardV1FooterWidget", |
2063 |
| - "properties": { |
2064 |
| - "buttonList": { |
2065 |
| - "$ref": "GoogleAppsCardV1ButtonList", |
2066 |
| - "description": "ButtonList widget." |
2067 |
| - }, |
2068 |
| - "dateTimePicker": { |
2069 |
| - "$ref": "GoogleAppsCardV1DateTimePicker", |
2070 |
| - "description": "DateTimePicker widget." |
2071 |
| - }, |
2072 |
| - "decoratedText": { |
2073 |
| - "$ref": "GoogleAppsCardV1DecoratedText", |
2074 |
| - "description": "DecoratedText widget." |
2075 |
| - }, |
2076 |
| - "textInput": { |
2077 |
| - "$ref": "GoogleAppsCardV1TextInput", |
2078 |
| - "description": "TextInput widget." |
2079 |
| - }, |
2080 |
| - "textParagraph": { |
2081 |
| - "$ref": "GoogleAppsCardV1TextParagraph", |
2082 |
| - "description": "TextParagraph widget." |
2083 |
| - } |
2084 |
| - }, |
2085 |
| - "type": "object" |
2086 |
| - }, |
2087 | 2053 | "GoogleAppsCardV1Grid": {
|
2088 | 2054 | "description": "Displays a grid with a collection of items. Items can only include text or images. A grid supports any number of columns and items. The number of rows is determined by items divided by columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows. For responsive columns, or to include more than text or images, use `Columns`. For example, the following JSON creates a 2 column grid with a single item: ``` \"grid\": { \"title\": \"A fine collection of items\", \"columnCount\": 2, \"borderStyle\": { \"type\": \"STROKE\", \"cornerRadius\": 4 }, \"items\": [ { \"image\": { \"imageUri\": \"https://www.example.com/image.png\", \"cropStyle\": { \"type\": \"SQUARE\" }, \"borderStyle\": { \"type\": \"STROKE\" } }, \"title\": \"An item\", \"textAlignment\": \"CENTER\" } ], \"onClick\": { \"openLink\": { \"url\": \"https://www.example.com\" } } } ```",
|
2089 | 2055 | "id": "GoogleAppsCardV1Grid",
|
|
2135 | 2101 | "TEXT_ABOVE"
|
2136 | 2102 | ],
|
2137 | 2103 | "enumDescriptions": [
|
2138 |
| - "No layout specified.", |
| 2104 | + "Don't use. Unspecified.", |
2139 | 2105 | "The title and subtitle are shown below the grid item's image.",
|
2140 | 2106 | "The title and subtitle are shown above the grid item's image."
|
2141 | 2107 | ],
|
|
2244 | 2210 | "RECTANGLE_4_3"
|
2245 | 2211 | ],
|
2246 | 2212 | "enumDescriptions": [
|
2247 |
| - "No value specified. Don't use.", |
| 2213 | + "Don't use. Unspecified.", |
2248 | 2214 | "Default value. Applies a square crop.",
|
2249 | 2215 | "Applies a circular crop.",
|
2250 | 2216 | "Applies a rectangular crop with a custom aspect ratio. Set the custom aspect ratio with `aspectRatio`.",
|
|
2387 | 2353 | "id": "GoogleAppsCardV1SelectionItem",
|
2388 | 2354 | "properties": {
|
2389 | 2355 | "selected": {
|
2390 |
| - "description": "When `true`, more than one item is selected. If more than one item is selected for radio buttons and dropdown menus, the first selected item is received and the ones after are ignored.", |
| 2356 | + "description": "Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.", |
2391 | 2357 | "type": "boolean"
|
2392 | 2358 | },
|
2393 | 2359 | "text": {
|
|
2558 | 2524 | "END"
|
2559 | 2525 | ],
|
2560 | 2526 | "enumDescriptions": [
|
2561 |
| - "Unspecified. Do not use.", |
| 2527 | + "Don't use. Unspecified.", |
2562 | 2528 | "Default value. Aligns widgets to the start position of the column. For left-to-right layouts, aligns to the left. For right-to-left layouts, aligns to the right.",
|
2563 | 2529 | "Aligns widgets to the center of the column.",
|
2564 | 2530 | "Aligns widgets to the end position of the column. For left-to-right layouts, aligns widgets to the right. For right-to-left layouts, aligns widgets to the left."
|
|
3047 | 3013 | "type": "string"
|
3048 | 3014 | },
|
3049 | 3015 | "createTime": {
|
3050 |
| - "description": "Output only. The time at which the message was created in Google Chat.", |
| 3016 | + "description": "For spaces created in Chat, the time at which the message was created. This field is output only, except when used in imported spaces. [Developer Preview](https://developers.google.com/workspace/preview): For imported spaces, set this field to the historical timestamp at which the message was created in the source in order to preserve the original creation time.", |
3051 | 3017 | "format": "google-datetime",
|
3052 |
| - "readOnly": true, |
3053 | 3018 | "type": "string"
|
3054 | 3019 | },
|
3055 | 3020 | "deleteTime": {
|
|
0 commit comments