@google-apps/chat 0.31.0 → 0.32.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/build/protos/google/chat/v1/chat_service.proto +58 -0
- package/build/protos/google/chat/v1/message_pin.proto +116 -0
- package/build/protos/protos.d.ts +578 -0
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +152 -1
- package/build/src/v1/chat_service_client.d.ts +209 -0
- package/build/src/v1/chat_service_client.js +261 -0
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +12 -0
- package/build/src/v1/chat_service_proto_list.json +1 -0
- package/build/src/v1/gapic_metadata.json +34 -0
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -3914,7 +3914,7 @@
|
|
|
3914
3914
|
"ChatService": {
|
|
3915
3915
|
"options": {
|
|
3916
3916
|
"(google.api.default_host)": "chat.googleapis.com",
|
|
3917
|
-
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.all.memberships.readonly,https://www.googleapis.com/auth/chat.app.all.messages.readonly,https://www.googleapis.com/auth/chat.app.all.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.availability,https://www.googleapis.com/auth/chat.users.availability.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
|
|
3917
|
+
"(google.api.oauth_scopes)": "https://www.googleapis.com/auth/chat.admin.delete,https://www.googleapis.com/auth/chat.admin.memberships,https://www.googleapis.com/auth/chat.admin.memberships.readonly,https://www.googleapis.com/auth/chat.admin.spaces,https://www.googleapis.com/auth/chat.admin.spaces.readonly,https://www.googleapis.com/auth/chat.app.all.memberships.readonly,https://www.googleapis.com/auth/chat.app.all.messages.readonly,https://www.googleapis.com/auth/chat.app.all.spaces.readonly,https://www.googleapis.com/auth/chat.app.delete,https://www.googleapis.com/auth/chat.app.memberships,https://www.googleapis.com/auth/chat.app.memberships.readonly,https://www.googleapis.com/auth/chat.app.messages.readonly,https://www.googleapis.com/auth/chat.app.spaces,https://www.googleapis.com/auth/chat.app.spaces.create,https://www.googleapis.com/auth/chat.app.spaces.readonly,https://www.googleapis.com/auth/chat.bot,https://www.googleapis.com/auth/chat.customemojis,https://www.googleapis.com/auth/chat.customemojis.readonly,https://www.googleapis.com/auth/chat.delete,https://www.googleapis.com/auth/chat.import,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.memberships.app,https://www.googleapis.com/auth/chat.memberships.readonly,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.messages.create,https://www.googleapis.com/auth/chat.messages.reactions,https://www.googleapis.com/auth/chat.messages.reactions.create,https://www.googleapis.com/auth/chat.messages.reactions.readonly,https://www.googleapis.com/auth/chat.messages.readonly,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/chat.spaces.create,https://www.googleapis.com/auth/chat.spaces.pins,https://www.googleapis.com/auth/chat.spaces.pins.readonly,https://www.googleapis.com/auth/chat.spaces.readonly,https://www.googleapis.com/auth/chat.users.availability,https://www.googleapis.com/auth/chat.users.availability.readonly,https://www.googleapis.com/auth/chat.users.readstate,https://www.googleapis.com/auth/chat.users.readstate.readonly,https://www.googleapis.com/auth/chat.users.sections,https://www.googleapis.com/auth/chat.users.sections.readonly,https://www.googleapis.com/auth/chat.users.spacesettings"
|
|
3918
3918
|
},
|
|
3919
3919
|
"methods": {
|
|
3920
3920
|
"CreateMessage": {
|
|
@@ -4393,6 +4393,62 @@
|
|
|
4393
4393
|
}
|
|
4394
4394
|
]
|
|
4395
4395
|
},
|
|
4396
|
+
"ListMessagePins": {
|
|
4397
|
+
"requestType": "ListMessagePinsRequest",
|
|
4398
|
+
"responseType": "ListMessagePinsResponse",
|
|
4399
|
+
"options": {
|
|
4400
|
+
"(google.api.http).get": "/v1/{parent=spaces/*}/messagePins",
|
|
4401
|
+
"(google.api.method_signature)": "parent"
|
|
4402
|
+
},
|
|
4403
|
+
"parsedOptions": [
|
|
4404
|
+
{
|
|
4405
|
+
"(google.api.http)": {
|
|
4406
|
+
"get": "/v1/{parent=spaces/*}/messagePins"
|
|
4407
|
+
}
|
|
4408
|
+
},
|
|
4409
|
+
{
|
|
4410
|
+
"(google.api.method_signature)": "parent"
|
|
4411
|
+
}
|
|
4412
|
+
]
|
|
4413
|
+
},
|
|
4414
|
+
"CreateMessagePin": {
|
|
4415
|
+
"requestType": "CreateMessagePinRequest",
|
|
4416
|
+
"responseType": "MessagePin",
|
|
4417
|
+
"options": {
|
|
4418
|
+
"(google.api.http).post": "/v1/{parent=spaces/*}/messagePins",
|
|
4419
|
+
"(google.api.http).body": "message_pin",
|
|
4420
|
+
"(google.api.method_signature)": "parent,message_pin"
|
|
4421
|
+
},
|
|
4422
|
+
"parsedOptions": [
|
|
4423
|
+
{
|
|
4424
|
+
"(google.api.http)": {
|
|
4425
|
+
"post": "/v1/{parent=spaces/*}/messagePins",
|
|
4426
|
+
"body": "message_pin"
|
|
4427
|
+
}
|
|
4428
|
+
},
|
|
4429
|
+
{
|
|
4430
|
+
"(google.api.method_signature)": "parent,message_pin"
|
|
4431
|
+
}
|
|
4432
|
+
]
|
|
4433
|
+
},
|
|
4434
|
+
"DeleteMessagePin": {
|
|
4435
|
+
"requestType": "DeleteMessagePinRequest",
|
|
4436
|
+
"responseType": "google.protobuf.Empty",
|
|
4437
|
+
"options": {
|
|
4438
|
+
"(google.api.http).delete": "/v1/{name=spaces/*/messagePins/*}",
|
|
4439
|
+
"(google.api.method_signature)": "name"
|
|
4440
|
+
},
|
|
4441
|
+
"parsedOptions": [
|
|
4442
|
+
{
|
|
4443
|
+
"(google.api.http)": {
|
|
4444
|
+
"delete": "/v1/{name=spaces/*/messagePins/*}"
|
|
4445
|
+
}
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
"(google.api.method_signature)": "name"
|
|
4449
|
+
}
|
|
4450
|
+
]
|
|
4451
|
+
},
|
|
4396
4452
|
"CreateCustomEmoji": {
|
|
4397
4453
|
"requestType": "CreateCustomEmojiRequest",
|
|
4398
4454
|
"responseType": "CustomEmoji",
|
|
@@ -7098,6 +7154,101 @@
|
|
|
7098
7154
|
}
|
|
7099
7155
|
}
|
|
7100
7156
|
},
|
|
7157
|
+
"MessagePin": {
|
|
7158
|
+
"options": {
|
|
7159
|
+
"(google.api.resource).type": "chat.googleapis.com/MessagePin",
|
|
7160
|
+
"(google.api.resource).pattern": "spaces/{space}/messagePins/{message_pin}",
|
|
7161
|
+
"(google.api.resource).plural": "messagePins",
|
|
7162
|
+
"(google.api.resource).singular": "messagePin"
|
|
7163
|
+
},
|
|
7164
|
+
"fields": {
|
|
7165
|
+
"name": {
|
|
7166
|
+
"type": "string",
|
|
7167
|
+
"id": 1,
|
|
7168
|
+
"options": {
|
|
7169
|
+
"(google.api.field_behavior)": "IDENTIFIER"
|
|
7170
|
+
}
|
|
7171
|
+
},
|
|
7172
|
+
"message": {
|
|
7173
|
+
"type": "string",
|
|
7174
|
+
"id": 2,
|
|
7175
|
+
"options": {
|
|
7176
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
7177
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Message"
|
|
7178
|
+
}
|
|
7179
|
+
}
|
|
7180
|
+
}
|
|
7181
|
+
},
|
|
7182
|
+
"ListMessagePinsRequest": {
|
|
7183
|
+
"fields": {
|
|
7184
|
+
"parent": {
|
|
7185
|
+
"type": "string",
|
|
7186
|
+
"id": 1,
|
|
7187
|
+
"options": {
|
|
7188
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
7189
|
+
"(google.api.resource_reference).child_type": "chat.googleapis.com/MessagePin"
|
|
7190
|
+
}
|
|
7191
|
+
},
|
|
7192
|
+
"pageSize": {
|
|
7193
|
+
"type": "int32",
|
|
7194
|
+
"id": 2,
|
|
7195
|
+
"options": {
|
|
7196
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
7197
|
+
}
|
|
7198
|
+
},
|
|
7199
|
+
"pageToken": {
|
|
7200
|
+
"type": "string",
|
|
7201
|
+
"id": 3,
|
|
7202
|
+
"options": {
|
|
7203
|
+
"(google.api.field_behavior)": "OPTIONAL"
|
|
7204
|
+
}
|
|
7205
|
+
}
|
|
7206
|
+
}
|
|
7207
|
+
},
|
|
7208
|
+
"ListMessagePinsResponse": {
|
|
7209
|
+
"fields": {
|
|
7210
|
+
"messagePins": {
|
|
7211
|
+
"rule": "repeated",
|
|
7212
|
+
"type": "MessagePin",
|
|
7213
|
+
"id": 1
|
|
7214
|
+
},
|
|
7215
|
+
"nextPageToken": {
|
|
7216
|
+
"type": "string",
|
|
7217
|
+
"id": 2
|
|
7218
|
+
}
|
|
7219
|
+
}
|
|
7220
|
+
},
|
|
7221
|
+
"CreateMessagePinRequest": {
|
|
7222
|
+
"fields": {
|
|
7223
|
+
"parent": {
|
|
7224
|
+
"type": "string",
|
|
7225
|
+
"id": 1,
|
|
7226
|
+
"options": {
|
|
7227
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
7228
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/Space"
|
|
7229
|
+
}
|
|
7230
|
+
},
|
|
7231
|
+
"messagePin": {
|
|
7232
|
+
"type": "MessagePin",
|
|
7233
|
+
"id": 2,
|
|
7234
|
+
"options": {
|
|
7235
|
+
"(google.api.field_behavior)": "REQUIRED"
|
|
7236
|
+
}
|
|
7237
|
+
}
|
|
7238
|
+
}
|
|
7239
|
+
},
|
|
7240
|
+
"DeleteMessagePinRequest": {
|
|
7241
|
+
"fields": {
|
|
7242
|
+
"name": {
|
|
7243
|
+
"type": "string",
|
|
7244
|
+
"id": 1,
|
|
7245
|
+
"options": {
|
|
7246
|
+
"(google.api.field_behavior)": "REQUIRED",
|
|
7247
|
+
"(google.api.resource_reference).type": "chat.googleapis.com/MessagePin"
|
|
7248
|
+
}
|
|
7249
|
+
}
|
|
7250
|
+
}
|
|
7251
|
+
},
|
|
7101
7252
|
"Section": {
|
|
7102
7253
|
"options": {
|
|
7103
7254
|
"(google.api.resource).type": "chat.googleapis.com/Section",
|
|
@@ -1504,6 +1504,72 @@ export declare class ChatServiceClient {
|
|
|
1504
1504
|
]>;
|
|
1505
1505
|
deleteReaction(request: protos.google.chat.v1.IDeleteReactionRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.chat.v1.IDeleteReactionRequest | null | undefined, {} | null | undefined>): void;
|
|
1506
1506
|
deleteReaction(request: protos.google.chat.v1.IDeleteReactionRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.chat.v1.IDeleteReactionRequest | null | undefined, {} | null | undefined>): void;
|
|
1507
|
+
/**
|
|
1508
|
+
* Creates a message pin.
|
|
1509
|
+
*
|
|
1510
|
+
* Requires [user
|
|
1511
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1512
|
+
* with one of the following [authorization
|
|
1513
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1514
|
+
*
|
|
1515
|
+
* - `https://www.googleapis.com/auth/chat.spaces.pins`
|
|
1516
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
1517
|
+
*
|
|
1518
|
+
* @param {Object} request
|
|
1519
|
+
* The request object that will be sent.
|
|
1520
|
+
* @param {string} request.parent
|
|
1521
|
+
* Required. The parent space in which to create the message pin.
|
|
1522
|
+
* Format: spaces/{space}
|
|
1523
|
+
* @param {google.chat.v1.MessagePin} request.messagePin
|
|
1524
|
+
* Required. The MessagePin to create.
|
|
1525
|
+
* @param {object} [options]
|
|
1526
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1527
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1528
|
+
* The first element of the array is an object representing {@link protos.google.chat.v1.MessagePin|MessagePin}.
|
|
1529
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1530
|
+
* for more details and examples.
|
|
1531
|
+
* @example <caption>include:samples/generated/v1/chat_service.create_message_pin.js</caption>
|
|
1532
|
+
* region_tag:chat_v1_generated_ChatService_CreateMessagePin_async
|
|
1533
|
+
*/
|
|
1534
|
+
createMessagePin(request?: protos.google.chat.v1.ICreateMessagePinRequest, options?: CallOptions): Promise<[
|
|
1535
|
+
protos.google.chat.v1.IMessagePin,
|
|
1536
|
+
protos.google.chat.v1.ICreateMessagePinRequest | undefined,
|
|
1537
|
+
{} | undefined
|
|
1538
|
+
]>;
|
|
1539
|
+
createMessagePin(request: protos.google.chat.v1.ICreateMessagePinRequest, options: CallOptions, callback: Callback<protos.google.chat.v1.IMessagePin, protos.google.chat.v1.ICreateMessagePinRequest | null | undefined, {} | null | undefined>): void;
|
|
1540
|
+
createMessagePin(request: protos.google.chat.v1.ICreateMessagePinRequest, callback: Callback<protos.google.chat.v1.IMessagePin, protos.google.chat.v1.ICreateMessagePinRequest | null | undefined, {} | null | undefined>): void;
|
|
1541
|
+
/**
|
|
1542
|
+
* Deletes a message pin.
|
|
1543
|
+
*
|
|
1544
|
+
* Requires [user
|
|
1545
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
1546
|
+
* with one of the following [authorization
|
|
1547
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
1548
|
+
*
|
|
1549
|
+
* - `https://www.googleapis.com/auth/chat.spaces.pins`
|
|
1550
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
1551
|
+
*
|
|
1552
|
+
* @param {Object} request
|
|
1553
|
+
* The request object that will be sent.
|
|
1554
|
+
* @param {string} request.name
|
|
1555
|
+
* Required. The resource name of the message pin to remove.
|
|
1556
|
+
* Format: spaces/{space}/messagePins/{message_pin}
|
|
1557
|
+
* @param {object} [options]
|
|
1558
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1559
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1560
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
|
1561
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
1562
|
+
* for more details and examples.
|
|
1563
|
+
* @example <caption>include:samples/generated/v1/chat_service.delete_message_pin.js</caption>
|
|
1564
|
+
* region_tag:chat_v1_generated_ChatService_DeleteMessagePin_async
|
|
1565
|
+
*/
|
|
1566
|
+
deleteMessagePin(request?: protos.google.chat.v1.IDeleteMessagePinRequest, options?: CallOptions): Promise<[
|
|
1567
|
+
protos.google.protobuf.IEmpty,
|
|
1568
|
+
protos.google.chat.v1.IDeleteMessagePinRequest | undefined,
|
|
1569
|
+
{} | undefined
|
|
1570
|
+
]>;
|
|
1571
|
+
deleteMessagePin(request: protos.google.chat.v1.IDeleteMessagePinRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.chat.v1.IDeleteMessagePinRequest | null | undefined, {} | null | undefined>): void;
|
|
1572
|
+
deleteMessagePin(request: protos.google.chat.v1.IDeleteMessagePinRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.chat.v1.IDeleteMessagePinRequest | null | undefined, {} | null | undefined>): void;
|
|
1507
1573
|
/**
|
|
1508
1574
|
* Creates a custom emoji.
|
|
1509
1575
|
*
|
|
@@ -4801,6 +4867,125 @@ export declare class ChatServiceClient {
|
|
|
4801
4867
|
* region_tag:chat_v1_generated_ChatService_ListReactions_async
|
|
4802
4868
|
*/
|
|
4803
4869
|
listReactionsAsync(request?: protos.google.chat.v1.IListReactionsRequest, options?: CallOptions): AsyncIterable<protos.google.chat.v1.IReaction>;
|
|
4870
|
+
/**
|
|
4871
|
+
* Lists message pins in a space. Users can pin important messages in spaces
|
|
4872
|
+
* for easy access. For more information, see [Pin or unpin a conversation in
|
|
4873
|
+
* Google Chat](https://support.google.com/chat/answer/15622437).
|
|
4874
|
+
*
|
|
4875
|
+
* Requires [user
|
|
4876
|
+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
|
|
4877
|
+
* with one of the following [authorization
|
|
4878
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
4879
|
+
*
|
|
4880
|
+
* - `https://www.googleapis.com/auth/chat.spaces.pins.readonly`
|
|
4881
|
+
* - `https://www.googleapis.com/auth/chat.spaces.pins`
|
|
4882
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
4883
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
4884
|
+
*
|
|
4885
|
+
* @param {Object} request
|
|
4886
|
+
* The request object that will be sent.
|
|
4887
|
+
* @param {string} request.parent
|
|
4888
|
+
* Required. The parent space which owns the collection of pinned items
|
|
4889
|
+
* Format: `spaces/{space}`
|
|
4890
|
+
* @param {number} [request.pageSize]
|
|
4891
|
+
* Optional. The maximum number of message pins returned. The service might
|
|
4892
|
+
* return fewer messages than this value. The maximum value is 100. If you use
|
|
4893
|
+
* a value more than 100, it's automatically changed to 100. If unspecified,
|
|
4894
|
+
* at most 100 message pins will be returned. Negative values return an
|
|
4895
|
+
* `INVALID_ARGUMENT` error.
|
|
4896
|
+
* @param {string} [request.pageToken]
|
|
4897
|
+
* Optional. A page token received from a previous list message pins call.
|
|
4898
|
+
* Provide this parameter to retrieve the subsequent page.
|
|
4899
|
+
*
|
|
4900
|
+
* When paginating, all other parameters provided should match the call that
|
|
4901
|
+
* provided the page token. Passing different values to the other parameters
|
|
4902
|
+
* might lead to unexpected results.
|
|
4903
|
+
* @param {object} [options]
|
|
4904
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
4905
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
4906
|
+
* The first element of the array is Array of {@link protos.google.chat.v1.MessagePin|MessagePin}.
|
|
4907
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
4908
|
+
* times as needed and will merge results from all the pages into this array.
|
|
4909
|
+
* Note that it can affect your quota.
|
|
4910
|
+
* We recommend using `listMessagePinsAsync()`
|
|
4911
|
+
* method described below for async iteration which you can stop as needed.
|
|
4912
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
4913
|
+
* for more details and examples.
|
|
4914
|
+
*/
|
|
4915
|
+
listMessagePins(request?: protos.google.chat.v1.IListMessagePinsRequest, options?: CallOptions): Promise<[
|
|
4916
|
+
protos.google.chat.v1.IMessagePin[],
|
|
4917
|
+
protos.google.chat.v1.IListMessagePinsRequest | null,
|
|
4918
|
+
protos.google.chat.v1.IListMessagePinsResponse
|
|
4919
|
+
]>;
|
|
4920
|
+
listMessagePins(request: protos.google.chat.v1.IListMessagePinsRequest, options: CallOptions, callback: PaginationCallback<protos.google.chat.v1.IListMessagePinsRequest, protos.google.chat.v1.IListMessagePinsResponse | null | undefined, protos.google.chat.v1.IMessagePin>): void;
|
|
4921
|
+
listMessagePins(request: protos.google.chat.v1.IListMessagePinsRequest, callback: PaginationCallback<protos.google.chat.v1.IListMessagePinsRequest, protos.google.chat.v1.IListMessagePinsResponse | null | undefined, protos.google.chat.v1.IMessagePin>): void;
|
|
4922
|
+
/**
|
|
4923
|
+
* Equivalent to `listMessagePins`, but returns a NodeJS Stream object.
|
|
4924
|
+
* @param {Object} request
|
|
4925
|
+
* The request object that will be sent.
|
|
4926
|
+
* @param {string} request.parent
|
|
4927
|
+
* Required. The parent space which owns the collection of pinned items
|
|
4928
|
+
* Format: `spaces/{space}`
|
|
4929
|
+
* @param {number} [request.pageSize]
|
|
4930
|
+
* Optional. The maximum number of message pins returned. The service might
|
|
4931
|
+
* return fewer messages than this value. The maximum value is 100. If you use
|
|
4932
|
+
* a value more than 100, it's automatically changed to 100. If unspecified,
|
|
4933
|
+
* at most 100 message pins will be returned. Negative values return an
|
|
4934
|
+
* `INVALID_ARGUMENT` error.
|
|
4935
|
+
* @param {string} [request.pageToken]
|
|
4936
|
+
* Optional. A page token received from a previous list message pins call.
|
|
4937
|
+
* Provide this parameter to retrieve the subsequent page.
|
|
4938
|
+
*
|
|
4939
|
+
* When paginating, all other parameters provided should match the call that
|
|
4940
|
+
* provided the page token. Passing different values to the other parameters
|
|
4941
|
+
* might lead to unexpected results.
|
|
4942
|
+
* @param {object} [options]
|
|
4943
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
4944
|
+
* @returns {Stream}
|
|
4945
|
+
* An object stream which emits an object representing {@link protos.google.chat.v1.MessagePin|MessagePin} on 'data' event.
|
|
4946
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
4947
|
+
* times as needed. Note that it can affect your quota.
|
|
4948
|
+
* We recommend using `listMessagePinsAsync()`
|
|
4949
|
+
* method described below for async iteration which you can stop as needed.
|
|
4950
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
4951
|
+
* for more details and examples.
|
|
4952
|
+
*/
|
|
4953
|
+
listMessagePinsStream(request?: protos.google.chat.v1.IListMessagePinsRequest, options?: CallOptions): Transform;
|
|
4954
|
+
/**
|
|
4955
|
+
* Equivalent to `listMessagePins`, but returns an iterable object.
|
|
4956
|
+
*
|
|
4957
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
4958
|
+
* @param {Object} request
|
|
4959
|
+
* The request object that will be sent.
|
|
4960
|
+
* @param {string} request.parent
|
|
4961
|
+
* Required. The parent space which owns the collection of pinned items
|
|
4962
|
+
* Format: `spaces/{space}`
|
|
4963
|
+
* @param {number} [request.pageSize]
|
|
4964
|
+
* Optional. The maximum number of message pins returned. The service might
|
|
4965
|
+
* return fewer messages than this value. The maximum value is 100. If you use
|
|
4966
|
+
* a value more than 100, it's automatically changed to 100. If unspecified,
|
|
4967
|
+
* at most 100 message pins will be returned. Negative values return an
|
|
4968
|
+
* `INVALID_ARGUMENT` error.
|
|
4969
|
+
* @param {string} [request.pageToken]
|
|
4970
|
+
* Optional. A page token received from a previous list message pins call.
|
|
4971
|
+
* Provide this parameter to retrieve the subsequent page.
|
|
4972
|
+
*
|
|
4973
|
+
* When paginating, all other parameters provided should match the call that
|
|
4974
|
+
* provided the page token. Passing different values to the other parameters
|
|
4975
|
+
* might lead to unexpected results.
|
|
4976
|
+
* @param {object} [options]
|
|
4977
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
4978
|
+
* @returns {Object}
|
|
4979
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
4980
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
4981
|
+
* {@link protos.google.chat.v1.MessagePin|MessagePin}. The API will be called under the hood as needed, once per the page,
|
|
4982
|
+
* so you can stop the iteration when you don't need more results.
|
|
4983
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
4984
|
+
* for more details and examples.
|
|
4985
|
+
* @example <caption>include:samples/generated/v1/chat_service.list_message_pins.js</caption>
|
|
4986
|
+
* region_tag:chat_v1_generated_ChatService_ListMessagePins_async
|
|
4987
|
+
*/
|
|
4988
|
+
listMessagePinsAsync(request?: protos.google.chat.v1.IListMessagePinsRequest, options?: CallOptions): AsyncIterable<protos.google.chat.v1.IMessagePin>;
|
|
4804
4989
|
/**
|
|
4805
4990
|
* Lists custom emojis visible to the authenticated user.
|
|
4806
4991
|
*
|
|
@@ -5712,6 +5897,30 @@ export declare class ChatServiceClient {
|
|
|
5712
5897
|
* @returns {string} A string representing the message.
|
|
5713
5898
|
*/
|
|
5714
5899
|
matchMessageFromMessageName(messageName: string): string | number;
|
|
5900
|
+
/**
|
|
5901
|
+
* Return a fully-qualified messagePin resource name string.
|
|
5902
|
+
*
|
|
5903
|
+
* @param {string} space
|
|
5904
|
+
* @param {string} message_pin
|
|
5905
|
+
* @returns {string} Resource name string.
|
|
5906
|
+
*/
|
|
5907
|
+
messagePinPath(space: string, messagePin: string): string;
|
|
5908
|
+
/**
|
|
5909
|
+
* Parse the space from MessagePin resource.
|
|
5910
|
+
*
|
|
5911
|
+
* @param {string} messagePinName
|
|
5912
|
+
* A fully-qualified path representing MessagePin resource.
|
|
5913
|
+
* @returns {string} A string representing the space.
|
|
5914
|
+
*/
|
|
5915
|
+
matchSpaceFromMessagePinName(messagePinName: string): string | number;
|
|
5916
|
+
/**
|
|
5917
|
+
* Parse the message_pin from MessagePin resource.
|
|
5918
|
+
*
|
|
5919
|
+
* @param {string} messagePinName
|
|
5920
|
+
* A fully-qualified path representing MessagePin resource.
|
|
5921
|
+
* @returns {string} A string representing the message_pin.
|
|
5922
|
+
*/
|
|
5923
|
+
matchMessagePinFromMessagePinName(messagePinName: string): string | number;
|
|
5715
5924
|
/**
|
|
5716
5925
|
* Return a fully-qualified quotedMessageMetadata resource name string.
|
|
5717
5926
|
*
|