@google-apps/chat 0.28.0 → 0.30.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 +56 -7
- package/build/protos/google/chat/v1/markup_syntax.proto +47 -0
- package/build/protos/google/chat/v1/message.proto +271 -11
- package/build/protos/google/chat/v1/space.proto +65 -16
- package/build/protos/protos.d.ts +2687 -1693
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +423 -98
- package/build/src/v1/chat_service_client.d.ts +745 -34
- package/build/src/v1/chat_service_client.js +532 -18
- package/build/src/v1/chat_service_client.js.map +1 -1
- package/build/src/v1/chat_service_client_config.json +5 -0
- package/build/src/v1/chat_service_proto_list.json +1 -0
- package/build/src/v1/gapic_metadata.json +14 -0
- package/package.json +1 -1
|
@@ -189,6 +189,7 @@ class ChatServiceClient {
|
|
|
189
189
|
this.descriptors.page = {
|
|
190
190
|
listMessages: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'messages'),
|
|
191
191
|
listMemberships: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'memberships'),
|
|
192
|
+
searchMessages: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'results'),
|
|
192
193
|
listSpaces: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'spaces'),
|
|
193
194
|
searchSpaces: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'spaces'),
|
|
194
195
|
findGroupChats: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'spaces'),
|
|
@@ -239,6 +240,7 @@ class ChatServiceClient {
|
|
|
239
240
|
'getMessage',
|
|
240
241
|
'updateMessage',
|
|
241
242
|
'deleteMessage',
|
|
243
|
+
'searchMessages',
|
|
242
244
|
'getAttachment',
|
|
243
245
|
'uploadAttachment',
|
|
244
246
|
'listSpaces',
|
|
@@ -350,6 +352,9 @@ class ChatServiceClient {
|
|
|
350
352
|
'https://www.googleapis.com/auth/chat.admin.memberships.readonly',
|
|
351
353
|
'https://www.googleapis.com/auth/chat.admin.spaces',
|
|
352
354
|
'https://www.googleapis.com/auth/chat.admin.spaces.readonly',
|
|
355
|
+
'https://www.googleapis.com/auth/chat.app.all.memberships.readonly',
|
|
356
|
+
'https://www.googleapis.com/auth/chat.app.all.messages.readonly',
|
|
357
|
+
'https://www.googleapis.com/auth/chat.app.all.spaces.readonly',
|
|
353
358
|
'https://www.googleapis.com/auth/chat.app.delete',
|
|
354
359
|
'https://www.googleapis.com/auth/chat.app.memberships',
|
|
355
360
|
'https://www.googleapis.com/auth/chat.app.memberships.readonly',
|
|
@@ -2122,6 +2127,9 @@ class ChatServiceClient {
|
|
|
2122
2127
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2123
2128
|
* deleted time and metadata about their deletion, but message content is
|
|
2124
2129
|
* unavailable.
|
|
2130
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2131
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2132
|
+
* `formatted_text` field.
|
|
2125
2133
|
* @param {object} [options]
|
|
2126
2134
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2127
2135
|
* @returns {Stream}
|
|
@@ -2228,6 +2236,9 @@ class ChatServiceClient {
|
|
|
2228
2236
|
* Optional. Whether to include deleted messages. Deleted messages include
|
|
2229
2237
|
* deleted time and metadata about their deletion, but message content is
|
|
2230
2238
|
* unavailable.
|
|
2239
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2240
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2241
|
+
* `formatted_text` field.
|
|
2231
2242
|
* @param {object} [options]
|
|
2232
2243
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2233
2244
|
* @returns {Object}
|
|
@@ -2538,6 +2549,443 @@ class ChatServiceClient {
|
|
|
2538
2549
|
this._log.info('listMemberships iterate %j', request);
|
|
2539
2550
|
return this.descriptors.page.listMemberships.asyncIterate(this.innerApiCalls['listMemberships'], request, callSettings);
|
|
2540
2551
|
}
|
|
2552
|
+
searchMessages(request, optionsOrCallback, callback) {
|
|
2553
|
+
request = request || {};
|
|
2554
|
+
let options;
|
|
2555
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
2556
|
+
callback = optionsOrCallback;
|
|
2557
|
+
options = {};
|
|
2558
|
+
}
|
|
2559
|
+
else {
|
|
2560
|
+
options = optionsOrCallback;
|
|
2561
|
+
}
|
|
2562
|
+
options = options || {};
|
|
2563
|
+
options.otherArgs = options.otherArgs || {};
|
|
2564
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2565
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2566
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2567
|
+
parent: request.parent ?? '',
|
|
2568
|
+
});
|
|
2569
|
+
this.initialize().catch((err) => {
|
|
2570
|
+
throw err;
|
|
2571
|
+
});
|
|
2572
|
+
const wrappedCallback = callback
|
|
2573
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
2574
|
+
this._log.info('searchMessages values %j', values);
|
|
2575
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
2576
|
+
}
|
|
2577
|
+
: undefined;
|
|
2578
|
+
this._log.info('searchMessages request %j', request);
|
|
2579
|
+
return this.innerApiCalls
|
|
2580
|
+
.searchMessages(request, options, wrappedCallback)
|
|
2581
|
+
?.then(([response, input, output]) => {
|
|
2582
|
+
this._log.info('searchMessages values %j', response);
|
|
2583
|
+
return [response, input, output];
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
/**
|
|
2587
|
+
* Equivalent to `searchMessages`, but returns a NodeJS Stream object.
|
|
2588
|
+
* @param {Object} request
|
|
2589
|
+
* The request object that will be sent.
|
|
2590
|
+
* @param {string} request.parent
|
|
2591
|
+
* Required. The resource name of the space to search within.
|
|
2592
|
+
*
|
|
2593
|
+
* To search across all spaces the user has access to, set this field to
|
|
2594
|
+
* `spaces/-`. Using any other value for `parent` results in an
|
|
2595
|
+
* `INVALID_ARGUMENT` error.
|
|
2596
|
+
*
|
|
2597
|
+
* To limit the search to one or more spaces, use `space.name` or
|
|
2598
|
+
* `space.display_name` in the `filter`.
|
|
2599
|
+
* @param {string} request.filter
|
|
2600
|
+
* Required. A search query.
|
|
2601
|
+
*
|
|
2602
|
+
* The query can specify one or more search keywords, which are used to filter
|
|
2603
|
+
* the results,
|
|
2604
|
+
*
|
|
2605
|
+
* You can also filter the results using the following message fields:
|
|
2606
|
+
*
|
|
2607
|
+
* - `create_time`: Accepts a timestamp in
|
|
2608
|
+
* [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
|
|
2609
|
+
* supported comparison operators are: `<` and `>=`.
|
|
2610
|
+
* - `sender.name`: The resource name of the sender (`users/{user}`). Only
|
|
2611
|
+
* supports `=`. You can use the e-mail as an alias for `{user}`. For
|
|
2612
|
+
* example, `users/example@gmail.com`, where `example@gmail.com` is the
|
|
2613
|
+
* e-mail of the Google Chat user.
|
|
2614
|
+
* - `space.name`: The resource name of the space where the message is posted.
|
|
2615
|
+
* (`spaces/{space}`). Only supports `=`. If this filter is not set, the
|
|
2616
|
+
* search is performed across all direct messages and spaces the user has
|
|
2617
|
+
* access to as a space member.
|
|
2618
|
+
* - `space.display_name`: Supports the operator `:` (has) and filters spaces
|
|
2619
|
+
* based on a partial match of their display name. Results are limited to
|
|
2620
|
+
* the top five space matches. For example, `space.display_name:Project`
|
|
2621
|
+
* searches for messages in the top five spaces that contain the word
|
|
2622
|
+
* "Project" in their display names.
|
|
2623
|
+
* - `attachment`: Supports the operator `:*` (has any) to check for the
|
|
2624
|
+
* presence of attachments. If `attachment:*` is specified, only messages
|
|
2625
|
+
* that have at least one attachment are returned.
|
|
2626
|
+
* - `annotations.user_mentions.user.name`: The resource name of the mentioned
|
|
2627
|
+
* user (`users/{user}`). Only supports `:` (has). For example:
|
|
2628
|
+
* `annotations.user_mentions.user.name:"users/1234567890"` returns only
|
|
2629
|
+
* messages that contain a mention to the specified user. Alternatively, the
|
|
2630
|
+
* alias `me` can be used to filter for messages that mention the caller
|
|
2631
|
+
* user, for example: `annotations.user_mentions.user.name:users/me`. You
|
|
2632
|
+
* can also use the e-mail as an alias for `{user}`, for example,
|
|
2633
|
+
* `users/example@gmail.com`.
|
|
2634
|
+
*
|
|
2635
|
+
* For advanced filtering, the following functions are also available:
|
|
2636
|
+
*
|
|
2637
|
+
* - `has_link()`: Returns only messages that have at least one hyperlink in
|
|
2638
|
+
* the message text.
|
|
2639
|
+
* - `is_unread()`: Filters out messages that have been read by the calling
|
|
2640
|
+
* user.
|
|
2641
|
+
*
|
|
2642
|
+
* Using the `space.display_name` filter requires that the calling credentials
|
|
2643
|
+
* include one of the following [authorization
|
|
2644
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
2645
|
+
*
|
|
2646
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
2647
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
2648
|
+
*
|
|
2649
|
+
* Using the `is_unread()` filter requires that the calling credentials
|
|
2650
|
+
* include one of the following [authorization
|
|
2651
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
2652
|
+
*
|
|
2653
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
|
|
2654
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
2655
|
+
*
|
|
2656
|
+
*
|
|
2657
|
+
* Across different fields, only `AND` operators are supported. A valid
|
|
2658
|
+
* example is `sender.name = "users/1234567890" AND is_unread()`. The word
|
|
2659
|
+
* `AND` is optional and is implied if omitted. For example, `sender.name =
|
|
2660
|
+
* "users/1234567890" is_unread()` is valid and is equivalent to the previous
|
|
2661
|
+
* example. An invalid example is `sender.name = "users/1234567890" OR
|
|
2662
|
+
* is_unread()` because `OR` is not supported between different fields.
|
|
2663
|
+
*
|
|
2664
|
+
* Among the same field:
|
|
2665
|
+
*
|
|
2666
|
+
* - `create_time` supports only `AND`, and can only be used to represent
|
|
2667
|
+
* an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
|
|
2668
|
+
* create_time < "2023-01-01T00:00:00+00:00"`.
|
|
2669
|
+
* - `sender.name` supports only the `OR` operator, for example:
|
|
2670
|
+
* `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
|
|
2671
|
+
* - `space.name` supports only the `OR` operator, for example:
|
|
2672
|
+
* `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
|
|
2673
|
+
* - `space.display_name` supports the operators `AND` and `OR`, but not a
|
|
2674
|
+
* mix of both. For example:
|
|
2675
|
+
* `space.display_name:Project AND space.display_name:Tasks` returns
|
|
2676
|
+
* messages that are in spaces with display names containing both `Project`
|
|
2677
|
+
* and `Tasks`, whereas
|
|
2678
|
+
* `space.display_name:Project OR space.display_name:Tasks` returns messages
|
|
2679
|
+
* that are in spaces with display names containing either `Project` or
|
|
2680
|
+
* `Tasks` or both.
|
|
2681
|
+
* - `annotations.user_mentions.user.name` supports the operators `AND` and
|
|
2682
|
+
* `OR`, but not a mix of both. For example:
|
|
2683
|
+
* `annotations.user_mentions.user.name:"users/1234567890" AND
|
|
2684
|
+
* annotations.user_mentions.user.name:"users/0987654321"` returns only
|
|
2685
|
+
* messages that mentions both users, whereas
|
|
2686
|
+
* `annotations.user_mentions.user.name:"users/1234567890" OR
|
|
2687
|
+
* annotations.user_mentions.user.name:"users/0987654321"` returns messages
|
|
2688
|
+
* that mention either user or both.
|
|
2689
|
+
*
|
|
2690
|
+
* Parentheses are required to disambiguate operator precedence when combining
|
|
2691
|
+
* `AND` and `OR` operators in the same query. For example:
|
|
2692
|
+
* `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
|
|
2693
|
+
* Otherwise, parentheses are optional.
|
|
2694
|
+
*
|
|
2695
|
+
* The following example queries are valid:
|
|
2696
|
+
*
|
|
2697
|
+
* ```
|
|
2698
|
+
* "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
|
|
2699
|
+
*
|
|
2700
|
+
* sender.name = "users/example@gmail.com"
|
|
2701
|
+
*
|
|
2702
|
+
* annotations.user_mentions.user.name:"users/0987654321"
|
|
2703
|
+
*
|
|
2704
|
+
* attachment:* AND space.name = "spaces/ABCDEFGH"
|
|
2705
|
+
*
|
|
2706
|
+
* tasks AND is_unread() AND sender.name = "users/1234567890"
|
|
2707
|
+
*
|
|
2708
|
+
* "things to do" "urgent"
|
|
2709
|
+
*
|
|
2710
|
+
* (sender.name = "users/1234567890")
|
|
2711
|
+
* AND (create_time < "2023-05-01T00:00:00Z")
|
|
2712
|
+
*
|
|
2713
|
+
* tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
|
|
2714
|
+
*
|
|
2715
|
+
* "project one" is_unread()
|
|
2716
|
+
*
|
|
2717
|
+
* space.display_name:Project tasks
|
|
2718
|
+
* ```
|
|
2719
|
+
*
|
|
2720
|
+
* The maximum query length is 1,000 characters.
|
|
2721
|
+
*
|
|
2722
|
+
* Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
|
2723
|
+
* error.
|
|
2724
|
+
* @param {number} [request.pageSize]
|
|
2725
|
+
* Optional. The maximum number of results to return. The service may return
|
|
2726
|
+
* fewer than this value.
|
|
2727
|
+
*
|
|
2728
|
+
* If unspecified, at most 25 are returned.
|
|
2729
|
+
*
|
|
2730
|
+
* The maximum value is 100. If you use a value more than 100, it's
|
|
2731
|
+
* automatically changed to 100.
|
|
2732
|
+
* @param {string} [request.pageToken]
|
|
2733
|
+
* Optional. A token, received from the previous search messages call. Provide
|
|
2734
|
+
* this parameter to retrieve the subsequent page.
|
|
2735
|
+
*
|
|
2736
|
+
* When paginating, all other parameters provided should match the call that
|
|
2737
|
+
* provided the page token. Passing different values to the other parameters
|
|
2738
|
+
* might lead to unexpected results.
|
|
2739
|
+
* @param {string} [request.orderBy]
|
|
2740
|
+
* Optional. How the results list is ordered.
|
|
2741
|
+
*
|
|
2742
|
+
* Supported attributes to order by are:
|
|
2743
|
+
*
|
|
2744
|
+
* - `create_time`: Sorts the results by the time of the message creation.
|
|
2745
|
+
* Default value.
|
|
2746
|
+
* - `relevance`: Sorts the results by relevance.
|
|
2747
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
2748
|
+
*
|
|
2749
|
+
* The default ordering is `create_time desc`. Only a single order per query
|
|
2750
|
+
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
2751
|
+
* is supported, and it must be specified after the order attribute.
|
|
2752
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2753
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2754
|
+
* `formatted_text` field.
|
|
2755
|
+
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
2756
|
+
* Optional. Specifies what kind of search results view to return. The default
|
|
2757
|
+
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
2758
|
+
* @param {object} [options]
|
|
2759
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2760
|
+
* @returns {Stream}
|
|
2761
|
+
* An object stream which emits an object representing {@link protos.google.chat.v1.SearchMessageResult|SearchMessageResult} on 'data' event.
|
|
2762
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
2763
|
+
* times as needed. Note that it can affect your quota.
|
|
2764
|
+
* We recommend using `searchMessagesAsync()`
|
|
2765
|
+
* method described below for async iteration which you can stop as needed.
|
|
2766
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2767
|
+
* for more details and examples.
|
|
2768
|
+
*/
|
|
2769
|
+
searchMessagesStream(request, options) {
|
|
2770
|
+
request = request || {};
|
|
2771
|
+
options = options || {};
|
|
2772
|
+
options.otherArgs = options.otherArgs || {};
|
|
2773
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2774
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2775
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2776
|
+
parent: request.parent ?? '',
|
|
2777
|
+
});
|
|
2778
|
+
const defaultCallSettings = this._defaults['searchMessages'];
|
|
2779
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2780
|
+
this.initialize().catch((err) => {
|
|
2781
|
+
throw err;
|
|
2782
|
+
});
|
|
2783
|
+
this._log.info('searchMessages stream %j', request);
|
|
2784
|
+
return this.descriptors.page.searchMessages.createStream(this.innerApiCalls.searchMessages, request, callSettings);
|
|
2785
|
+
}
|
|
2786
|
+
/**
|
|
2787
|
+
* Equivalent to `searchMessages`, but returns an iterable object.
|
|
2788
|
+
*
|
|
2789
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
2790
|
+
* @param {Object} request
|
|
2791
|
+
* The request object that will be sent.
|
|
2792
|
+
* @param {string} request.parent
|
|
2793
|
+
* Required. The resource name of the space to search within.
|
|
2794
|
+
*
|
|
2795
|
+
* To search across all spaces the user has access to, set this field to
|
|
2796
|
+
* `spaces/-`. Using any other value for `parent` results in an
|
|
2797
|
+
* `INVALID_ARGUMENT` error.
|
|
2798
|
+
*
|
|
2799
|
+
* To limit the search to one or more spaces, use `space.name` or
|
|
2800
|
+
* `space.display_name` in the `filter`.
|
|
2801
|
+
* @param {string} request.filter
|
|
2802
|
+
* Required. A search query.
|
|
2803
|
+
*
|
|
2804
|
+
* The query can specify one or more search keywords, which are used to filter
|
|
2805
|
+
* the results,
|
|
2806
|
+
*
|
|
2807
|
+
* You can also filter the results using the following message fields:
|
|
2808
|
+
*
|
|
2809
|
+
* - `create_time`: Accepts a timestamp in
|
|
2810
|
+
* [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the
|
|
2811
|
+
* supported comparison operators are: `<` and `>=`.
|
|
2812
|
+
* - `sender.name`: The resource name of the sender (`users/{user}`). Only
|
|
2813
|
+
* supports `=`. You can use the e-mail as an alias for `{user}`. For
|
|
2814
|
+
* example, `users/example@gmail.com`, where `example@gmail.com` is the
|
|
2815
|
+
* e-mail of the Google Chat user.
|
|
2816
|
+
* - `space.name`: The resource name of the space where the message is posted.
|
|
2817
|
+
* (`spaces/{space}`). Only supports `=`. If this filter is not set, the
|
|
2818
|
+
* search is performed across all direct messages and spaces the user has
|
|
2819
|
+
* access to as a space member.
|
|
2820
|
+
* - `space.display_name`: Supports the operator `:` (has) and filters spaces
|
|
2821
|
+
* based on a partial match of their display name. Results are limited to
|
|
2822
|
+
* the top five space matches. For example, `space.display_name:Project`
|
|
2823
|
+
* searches for messages in the top five spaces that contain the word
|
|
2824
|
+
* "Project" in their display names.
|
|
2825
|
+
* - `attachment`: Supports the operator `:*` (has any) to check for the
|
|
2826
|
+
* presence of attachments. If `attachment:*` is specified, only messages
|
|
2827
|
+
* that have at least one attachment are returned.
|
|
2828
|
+
* - `annotations.user_mentions.user.name`: The resource name of the mentioned
|
|
2829
|
+
* user (`users/{user}`). Only supports `:` (has). For example:
|
|
2830
|
+
* `annotations.user_mentions.user.name:"users/1234567890"` returns only
|
|
2831
|
+
* messages that contain a mention to the specified user. Alternatively, the
|
|
2832
|
+
* alias `me` can be used to filter for messages that mention the caller
|
|
2833
|
+
* user, for example: `annotations.user_mentions.user.name:users/me`. You
|
|
2834
|
+
* can also use the e-mail as an alias for `{user}`, for example,
|
|
2835
|
+
* `users/example@gmail.com`.
|
|
2836
|
+
*
|
|
2837
|
+
* For advanced filtering, the following functions are also available:
|
|
2838
|
+
*
|
|
2839
|
+
* - `has_link()`: Returns only messages that have at least one hyperlink in
|
|
2840
|
+
* the message text.
|
|
2841
|
+
* - `is_unread()`: Filters out messages that have been read by the calling
|
|
2842
|
+
* user.
|
|
2843
|
+
*
|
|
2844
|
+
* Using the `space.display_name` filter requires that the calling credentials
|
|
2845
|
+
* include one of the following [authorization
|
|
2846
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
2847
|
+
*
|
|
2848
|
+
* - `https://www.googleapis.com/auth/chat.spaces.readonly`
|
|
2849
|
+
* - `https://www.googleapis.com/auth/chat.spaces`
|
|
2850
|
+
*
|
|
2851
|
+
* Using the `is_unread()` filter requires that the calling credentials
|
|
2852
|
+
* include one of the following [authorization
|
|
2853
|
+
* scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
|
|
2854
|
+
*
|
|
2855
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate.readonly`
|
|
2856
|
+
* - `https://www.googleapis.com/auth/chat.users.readstate`
|
|
2857
|
+
*
|
|
2858
|
+
*
|
|
2859
|
+
* Across different fields, only `AND` operators are supported. A valid
|
|
2860
|
+
* example is `sender.name = "users/1234567890" AND is_unread()`. The word
|
|
2861
|
+
* `AND` is optional and is implied if omitted. For example, `sender.name =
|
|
2862
|
+
* "users/1234567890" is_unread()` is valid and is equivalent to the previous
|
|
2863
|
+
* example. An invalid example is `sender.name = "users/1234567890" OR
|
|
2864
|
+
* is_unread()` because `OR` is not supported between different fields.
|
|
2865
|
+
*
|
|
2866
|
+
* Among the same field:
|
|
2867
|
+
*
|
|
2868
|
+
* - `create_time` supports only `AND`, and can only be used to represent
|
|
2869
|
+
* an interval, such as `create_time >= "2022-01-01T00:00:00+00:00" AND
|
|
2870
|
+
* create_time < "2023-01-01T00:00:00+00:00"`.
|
|
2871
|
+
* - `sender.name` supports only the `OR` operator, for example:
|
|
2872
|
+
* `sender.name = "users/1234567890" OR sender.name = "users/0987654321"`.
|
|
2873
|
+
* - `space.name` supports only the `OR` operator, for example:
|
|
2874
|
+
* `space.name = "spaces/ABCDEFGH" OR space.name = "spaces/QWERTYUI"`.
|
|
2875
|
+
* - `space.display_name` supports the operators `AND` and `OR`, but not a
|
|
2876
|
+
* mix of both. For example:
|
|
2877
|
+
* `space.display_name:Project AND space.display_name:Tasks` returns
|
|
2878
|
+
* messages that are in spaces with display names containing both `Project`
|
|
2879
|
+
* and `Tasks`, whereas
|
|
2880
|
+
* `space.display_name:Project OR space.display_name:Tasks` returns messages
|
|
2881
|
+
* that are in spaces with display names containing either `Project` or
|
|
2882
|
+
* `Tasks` or both.
|
|
2883
|
+
* - `annotations.user_mentions.user.name` supports the operators `AND` and
|
|
2884
|
+
* `OR`, but not a mix of both. For example:
|
|
2885
|
+
* `annotations.user_mentions.user.name:"users/1234567890" AND
|
|
2886
|
+
* annotations.user_mentions.user.name:"users/0987654321"` returns only
|
|
2887
|
+
* messages that mentions both users, whereas
|
|
2888
|
+
* `annotations.user_mentions.user.name:"users/1234567890" OR
|
|
2889
|
+
* annotations.user_mentions.user.name:"users/0987654321"` returns messages
|
|
2890
|
+
* that mention either user or both.
|
|
2891
|
+
*
|
|
2892
|
+
* Parentheses are required to disambiguate operator precedence when combining
|
|
2893
|
+
* `AND` and `OR` operators in the same query. For example:
|
|
2894
|
+
* `(sender.name="users/me" OR sender.name="users/123456") AND is_unread()`.
|
|
2895
|
+
* Otherwise, parentheses are optional.
|
|
2896
|
+
*
|
|
2897
|
+
* The following example queries are valid:
|
|
2898
|
+
*
|
|
2899
|
+
* ```
|
|
2900
|
+
* "Pending reports" AND create_time >= "2023-01-01T00:00:00Z"
|
|
2901
|
+
*
|
|
2902
|
+
* sender.name = "users/example@gmail.com"
|
|
2903
|
+
*
|
|
2904
|
+
* annotations.user_mentions.user.name:"users/0987654321"
|
|
2905
|
+
*
|
|
2906
|
+
* attachment:* AND space.name = "spaces/ABCDEFGH"
|
|
2907
|
+
*
|
|
2908
|
+
* tasks AND is_unread() AND sender.name = "users/1234567890"
|
|
2909
|
+
*
|
|
2910
|
+
* "things to do" "urgent"
|
|
2911
|
+
*
|
|
2912
|
+
* (sender.name = "users/1234567890")
|
|
2913
|
+
* AND (create_time < "2023-05-01T00:00:00Z")
|
|
2914
|
+
*
|
|
2915
|
+
* tasks AND space.name = "spaces/ABCDEFGH" AND has_link()
|
|
2916
|
+
*
|
|
2917
|
+
* "project one" is_unread()
|
|
2918
|
+
*
|
|
2919
|
+
* space.display_name:Project tasks
|
|
2920
|
+
* ```
|
|
2921
|
+
*
|
|
2922
|
+
* The maximum query length is 1,000 characters.
|
|
2923
|
+
*
|
|
2924
|
+
* Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
|
|
2925
|
+
* error.
|
|
2926
|
+
* @param {number} [request.pageSize]
|
|
2927
|
+
* Optional. The maximum number of results to return. The service may return
|
|
2928
|
+
* fewer than this value.
|
|
2929
|
+
*
|
|
2930
|
+
* If unspecified, at most 25 are returned.
|
|
2931
|
+
*
|
|
2932
|
+
* The maximum value is 100. If you use a value more than 100, it's
|
|
2933
|
+
* automatically changed to 100.
|
|
2934
|
+
* @param {string} [request.pageToken]
|
|
2935
|
+
* Optional. A token, received from the previous search messages call. Provide
|
|
2936
|
+
* this parameter to retrieve the subsequent page.
|
|
2937
|
+
*
|
|
2938
|
+
* When paginating, all other parameters provided should match the call that
|
|
2939
|
+
* provided the page token. Passing different values to the other parameters
|
|
2940
|
+
* might lead to unexpected results.
|
|
2941
|
+
* @param {string} [request.orderBy]
|
|
2942
|
+
* Optional. How the results list is ordered.
|
|
2943
|
+
*
|
|
2944
|
+
* Supported attributes to order by are:
|
|
2945
|
+
*
|
|
2946
|
+
* - `create_time`: Sorts the results by the time of the message creation.
|
|
2947
|
+
* Default value.
|
|
2948
|
+
* - `relevance`: Sorts the results by relevance.
|
|
2949
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
2950
|
+
*
|
|
2951
|
+
* The default ordering is `create_time desc`. Only a single order per query
|
|
2952
|
+
* (`create_time` or `relevance`) is supported. Only descending order (`desc`)
|
|
2953
|
+
* is supported, and it must be specified after the order attribute.
|
|
2954
|
+
* @param {google.chat.v1.MarkupSyntax} [request.markupSyntax]
|
|
2955
|
+
* Optional. Specifies the desired output syntax for the Chat message
|
|
2956
|
+
* `formatted_text` field.
|
|
2957
|
+
* @param {google.chat.v1.SearchMessagesRequest.SearchMessagesView} [request.view]
|
|
2958
|
+
* Optional. Specifies what kind of search results view to return. The default
|
|
2959
|
+
* is `SEARCH_MESSAGES_VIEW_BASIC`.
|
|
2960
|
+
* @param {object} [options]
|
|
2961
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2962
|
+
* @returns {Object}
|
|
2963
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
2964
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
2965
|
+
* {@link protos.google.chat.v1.SearchMessageResult|SearchMessageResult}. The API will be called under the hood as needed, once per the page,
|
|
2966
|
+
* so you can stop the iteration when you don't need more results.
|
|
2967
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
2968
|
+
* for more details and examples.
|
|
2969
|
+
* @example <caption>include:samples/generated/v1/chat_service.search_messages.js</caption>
|
|
2970
|
+
* region_tag:chat_v1_generated_ChatService_SearchMessages_async
|
|
2971
|
+
*/
|
|
2972
|
+
searchMessagesAsync(request, options) {
|
|
2973
|
+
request = request || {};
|
|
2974
|
+
options = options || {};
|
|
2975
|
+
options.otherArgs = options.otherArgs || {};
|
|
2976
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2977
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2978
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2979
|
+
parent: request.parent ?? '',
|
|
2980
|
+
});
|
|
2981
|
+
const defaultCallSettings = this._defaults['searchMessages'];
|
|
2982
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
2983
|
+
this.initialize().catch((err) => {
|
|
2984
|
+
throw err;
|
|
2985
|
+
});
|
|
2986
|
+
this._log.info('searchMessages iterate %j', request);
|
|
2987
|
+
return this.descriptors.page.searchMessages.asyncIterate(this.innerApiCalls['searchMessages'], request, callSettings);
|
|
2988
|
+
}
|
|
2541
2989
|
listSpaces(request, optionsOrCallback, callback) {
|
|
2542
2990
|
request = request || {};
|
|
2543
2991
|
let options;
|
|
@@ -2744,9 +3192,6 @@ class ChatServiceClient {
|
|
|
2744
3192
|
* Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces`
|
|
2745
3193
|
* [OAuth 2.0
|
|
2746
3194
|
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
|
|
2747
|
-
*
|
|
2748
|
-
* This method currently only supports admin access, thus only `true` is
|
|
2749
|
-
* accepted for this field.
|
|
2750
3195
|
* @param {number} request.pageSize
|
|
2751
3196
|
* The maximum number of spaces to return. The service may return fewer than
|
|
2752
3197
|
* this value.
|
|
@@ -2765,7 +3210,8 @@ class ChatServiceClient {
|
|
|
2765
3210
|
* @param {string} request.query
|
|
2766
3211
|
* Required. A search query.
|
|
2767
3212
|
*
|
|
2768
|
-
* You can search by using the following parameters
|
|
3213
|
+
* You can search by using the following parameters when `useAdminAccess`
|
|
3214
|
+
* is set to `true`:
|
|
2769
3215
|
*
|
|
2770
3216
|
* - `create_time`
|
|
2771
3217
|
* - `customer`
|
|
@@ -2775,18 +3221,27 @@ class ChatServiceClient {
|
|
|
2775
3221
|
* - `space_history_state`
|
|
2776
3222
|
* - `space_type`
|
|
2777
3223
|
*
|
|
3224
|
+
* When `useAdminAccess` is set to `false`:
|
|
3225
|
+
*
|
|
3226
|
+
* - `display_name`
|
|
3227
|
+
* - `external_user_allowed`
|
|
3228
|
+
* - `space_type`
|
|
3229
|
+
*
|
|
2778
3230
|
* `create_time` and `last_active_time` accept a timestamp in
|
|
2779
3231
|
* [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported
|
|
2780
3232
|
* comparison operators are: `=`, `<`, `>`, `<=`, `>=`.
|
|
2781
3233
|
*
|
|
2782
|
-
* `customer` is required
|
|
2783
|
-
* to
|
|
3234
|
+
* `customer` is required when `useAdminAccess` is set to `true`, and is
|
|
3235
|
+
* used to indicate which customer to fetch spaces from.
|
|
3236
|
+
* `customers/my_customer` is the only supported value.
|
|
2784
3237
|
*
|
|
2785
3238
|
* `display_name` only accepts the `HAS` (`:`) operator. The text to
|
|
2786
3239
|
* match is first tokenized into tokens and each token is prefix-matched
|
|
2787
3240
|
* case-insensitively and independently as a substring anywhere in the space's
|
|
2788
3241
|
* `display_name`. For example, `Fun Eve` matches `Fun event` or `The
|
|
2789
|
-
* evening was fun`, but not `notFun event` or `even`.
|
|
3242
|
+
* evening was fun`, but not `notFun event` or `even`. When `useAdminAccess`
|
|
3243
|
+
* is set to `false`, `display_name` is required to retrieve meaningful
|
|
3244
|
+
* results. Otherwise, the default behavior is to return an empty response.
|
|
2790
3245
|
*
|
|
2791
3246
|
* `external_user_allowed` accepts either `true` or `false`.
|
|
2792
3247
|
*
|
|
@@ -2809,7 +3264,8 @@ class ChatServiceClient {
|
|
|
2809
3264
|
* < "2022-01-01T00:00:00+00:00" AND last_active_time >
|
|
2810
3265
|
* "2023-01-01T00:00:00+00:00"`.
|
|
2811
3266
|
*
|
|
2812
|
-
* The following example queries are valid
|
|
3267
|
+
* The following example queries are valid when `useAdminAccess` is set to
|
|
3268
|
+
* `true`:
|
|
2813
3269
|
*
|
|
2814
3270
|
* ```
|
|
2815
3271
|
* customer = "customers/my_customer" AND space_type = "SPACE"
|
|
@@ -2831,6 +3287,21 @@ class ChatServiceClient {
|
|
|
2831
3287
|
* "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND
|
|
2832
3288
|
* (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
|
|
2833
3289
|
* ```
|
|
3290
|
+
*
|
|
3291
|
+
* The following example queries are valid when `useAdminAccess` is set to
|
|
3292
|
+
* `false`:
|
|
3293
|
+
*
|
|
3294
|
+
* ```
|
|
3295
|
+
* display_name:"Hello World" AND space_type = "SPACE"
|
|
3296
|
+
*
|
|
3297
|
+
* (display_name:"Hello" OR display_name:"Fun") AND space_type = "SPACE"
|
|
3298
|
+
*
|
|
3299
|
+
* (external_user_allowed = "true" AND space_type = "SPACE") // Returns an
|
|
3300
|
+
* empty response.
|
|
3301
|
+
*
|
|
3302
|
+
* (external_user_allowed = "true" AND display_name:"Hello" AND space_type =
|
|
3303
|
+
* "SPACE")
|
|
3304
|
+
* ```
|
|
2834
3305
|
* @param {string} [request.orderBy]
|
|
2835
3306
|
* Optional. How the list of spaces is ordered.
|
|
2836
3307
|
*
|
|
@@ -2842,13 +3313,17 @@ class ChatServiceClient {
|
|
|
2842
3313
|
* any topic of this space.
|
|
2843
3314
|
* - `create_time` — Denotes the time of the space creation.
|
|
2844
3315
|
*
|
|
3316
|
+
* When `useAdminAccess` is `false`, only `create_time` and `relevance` are
|
|
3317
|
+
* supported for ordering. Only `DESC` is supported for these fields in
|
|
3318
|
+
* non-admin searches.
|
|
3319
|
+
*
|
|
2845
3320
|
* Valid ordering operation values are:
|
|
2846
3321
|
*
|
|
2847
3322
|
* - `ASC` for ascending. Default value.
|
|
2848
3323
|
*
|
|
2849
3324
|
* - `DESC` for descending.
|
|
2850
3325
|
*
|
|
2851
|
-
* The supported syntax are
|
|
3326
|
+
* The supported syntax are when `useAdminAccess` is set to `true`:
|
|
2852
3327
|
*
|
|
2853
3328
|
* - `membership_count.joined_direct_human_user_count DESC`
|
|
2854
3329
|
* - `membership_count.joined_direct_human_user_count ASC`
|
|
@@ -2856,6 +3331,12 @@ class ChatServiceClient {
|
|
|
2856
3331
|
* - `last_active_time ASC`
|
|
2857
3332
|
* - `create_time DESC`
|
|
2858
3333
|
* - `create_time ASC`
|
|
3334
|
+
*
|
|
3335
|
+
* When `useAdminAccess` is set to `false`:
|
|
3336
|
+
*
|
|
3337
|
+
* - `create_time DESC`
|
|
3338
|
+
* - `relevance DESC`
|
|
3339
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
2859
3340
|
* @param {object} [options]
|
|
2860
3341
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
2861
3342
|
* @returns {Stream}
|
|
@@ -2897,9 +3378,6 @@ class ChatServiceClient {
|
|
|
2897
3378
|
* Requires either the `chat.admin.spaces.readonly` or `chat.admin.spaces`
|
|
2898
3379
|
* [OAuth 2.0
|
|
2899
3380
|
* scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes).
|
|
2900
|
-
*
|
|
2901
|
-
* This method currently only supports admin access, thus only `true` is
|
|
2902
|
-
* accepted for this field.
|
|
2903
3381
|
* @param {number} request.pageSize
|
|
2904
3382
|
* The maximum number of spaces to return. The service may return fewer than
|
|
2905
3383
|
* this value.
|
|
@@ -2918,7 +3396,8 @@ class ChatServiceClient {
|
|
|
2918
3396
|
* @param {string} request.query
|
|
2919
3397
|
* Required. A search query.
|
|
2920
3398
|
*
|
|
2921
|
-
* You can search by using the following parameters
|
|
3399
|
+
* You can search by using the following parameters when `useAdminAccess`
|
|
3400
|
+
* is set to `true`:
|
|
2922
3401
|
*
|
|
2923
3402
|
* - `create_time`
|
|
2924
3403
|
* - `customer`
|
|
@@ -2928,18 +3407,27 @@ class ChatServiceClient {
|
|
|
2928
3407
|
* - `space_history_state`
|
|
2929
3408
|
* - `space_type`
|
|
2930
3409
|
*
|
|
3410
|
+
* When `useAdminAccess` is set to `false`:
|
|
3411
|
+
*
|
|
3412
|
+
* - `display_name`
|
|
3413
|
+
* - `external_user_allowed`
|
|
3414
|
+
* - `space_type`
|
|
3415
|
+
*
|
|
2931
3416
|
* `create_time` and `last_active_time` accept a timestamp in
|
|
2932
3417
|
* [RFC-3339](https://www.rfc-editor.org/rfc/rfc3339) format and the supported
|
|
2933
3418
|
* comparison operators are: `=`, `<`, `>`, `<=`, `>=`.
|
|
2934
3419
|
*
|
|
2935
|
-
* `customer` is required
|
|
2936
|
-
* to
|
|
3420
|
+
* `customer` is required when `useAdminAccess` is set to `true`, and is
|
|
3421
|
+
* used to indicate which customer to fetch spaces from.
|
|
3422
|
+
* `customers/my_customer` is the only supported value.
|
|
2937
3423
|
*
|
|
2938
3424
|
* `display_name` only accepts the `HAS` (`:`) operator. The text to
|
|
2939
3425
|
* match is first tokenized into tokens and each token is prefix-matched
|
|
2940
3426
|
* case-insensitively and independently as a substring anywhere in the space's
|
|
2941
3427
|
* `display_name`. For example, `Fun Eve` matches `Fun event` or `The
|
|
2942
|
-
* evening was fun`, but not `notFun event` or `even`.
|
|
3428
|
+
* evening was fun`, but not `notFun event` or `even`. When `useAdminAccess`
|
|
3429
|
+
* is set to `false`, `display_name` is required to retrieve meaningful
|
|
3430
|
+
* results. Otherwise, the default behavior is to return an empty response.
|
|
2943
3431
|
*
|
|
2944
3432
|
* `external_user_allowed` accepts either `true` or `false`.
|
|
2945
3433
|
*
|
|
@@ -2962,7 +3450,8 @@ class ChatServiceClient {
|
|
|
2962
3450
|
* < "2022-01-01T00:00:00+00:00" AND last_active_time >
|
|
2963
3451
|
* "2023-01-01T00:00:00+00:00"`.
|
|
2964
3452
|
*
|
|
2965
|
-
* The following example queries are valid
|
|
3453
|
+
* The following example queries are valid when `useAdminAccess` is set to
|
|
3454
|
+
* `true`:
|
|
2966
3455
|
*
|
|
2967
3456
|
* ```
|
|
2968
3457
|
* customer = "customers/my_customer" AND space_type = "SPACE"
|
|
@@ -2984,6 +3473,21 @@ class ChatServiceClient {
|
|
|
2984
3473
|
* "2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND
|
|
2985
3474
|
* (space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
|
|
2986
3475
|
* ```
|
|
3476
|
+
*
|
|
3477
|
+
* The following example queries are valid when `useAdminAccess` is set to
|
|
3478
|
+
* `false`:
|
|
3479
|
+
*
|
|
3480
|
+
* ```
|
|
3481
|
+
* display_name:"Hello World" AND space_type = "SPACE"
|
|
3482
|
+
*
|
|
3483
|
+
* (display_name:"Hello" OR display_name:"Fun") AND space_type = "SPACE"
|
|
3484
|
+
*
|
|
3485
|
+
* (external_user_allowed = "true" AND space_type = "SPACE") // Returns an
|
|
3486
|
+
* empty response.
|
|
3487
|
+
*
|
|
3488
|
+
* (external_user_allowed = "true" AND display_name:"Hello" AND space_type =
|
|
3489
|
+
* "SPACE")
|
|
3490
|
+
* ```
|
|
2987
3491
|
* @param {string} [request.orderBy]
|
|
2988
3492
|
* Optional. How the list of spaces is ordered.
|
|
2989
3493
|
*
|
|
@@ -2995,13 +3499,17 @@ class ChatServiceClient {
|
|
|
2995
3499
|
* any topic of this space.
|
|
2996
3500
|
* - `create_time` — Denotes the time of the space creation.
|
|
2997
3501
|
*
|
|
3502
|
+
* When `useAdminAccess` is `false`, only `create_time` and `relevance` are
|
|
3503
|
+
* supported for ordering. Only `DESC` is supported for these fields in
|
|
3504
|
+
* non-admin searches.
|
|
3505
|
+
*
|
|
2998
3506
|
* Valid ordering operation values are:
|
|
2999
3507
|
*
|
|
3000
3508
|
* - `ASC` for ascending. Default value.
|
|
3001
3509
|
*
|
|
3002
3510
|
* - `DESC` for descending.
|
|
3003
3511
|
*
|
|
3004
|
-
* The supported syntax are
|
|
3512
|
+
* The supported syntax are when `useAdminAccess` is set to `true`:
|
|
3005
3513
|
*
|
|
3006
3514
|
* - `membership_count.joined_direct_human_user_count DESC`
|
|
3007
3515
|
* - `membership_count.joined_direct_human_user_count ASC`
|
|
@@ -3009,6 +3517,12 @@ class ChatServiceClient {
|
|
|
3009
3517
|
* - `last_active_time ASC`
|
|
3010
3518
|
* - `create_time DESC`
|
|
3011
3519
|
* - `create_time ASC`
|
|
3520
|
+
*
|
|
3521
|
+
* When `useAdminAccess` is set to `false`:
|
|
3522
|
+
*
|
|
3523
|
+
* - `create_time DESC`
|
|
3524
|
+
* - `relevance DESC`
|
|
3525
|
+
* [Developer Preview](https://developers.google.com/workspace/preview).
|
|
3012
3526
|
* @param {object} [options]
|
|
3013
3527
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
3014
3528
|
* @returns {Object}
|