@google-analytics/data 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/build/protos/google/analytics/data/v1alpha/analytics_data_api.proto +101 -16
- package/build/protos/protos.d.ts +128 -1
- package/build/protos/protos.js +348 -1
- package/build/protos/protos.json +58 -0
- package/build/src/index.js +1 -1
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +145 -18
- package/build/src/v1alpha/alpha_analytics_data_client.js +165 -10
- package/build/src/v1alpha/index.js +1 -1
- package/build/src/v1beta/beta_analytics_data_client.d.ts +11 -2
- package/build/src/v1beta/beta_analytics_data_client.js +37 -10
- package/build/src/v1beta/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.4.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.3.0...data-v4.4.0) (2024-02-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Trusted Private Cloud support, use the universeDomain parameter ([#5022](https://github.com/googleapis/google-cloud-node/issues/5022)) ([b6498d8](https://github.com/googleapis/google-cloud-node/commit/b6498d8580d056817981dedbaa0ea5d82e9dccc2))
|
|
9
|
+
|
|
3
10
|
## [4.3.0](https://github.com/googleapis/google-cloud-node/compare/data-v4.2.0...data-v4.3.0) (2023-12-11)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -87,11 +87,10 @@ service AlphaAnalyticsData {
|
|
|
87
87
|
// https://support.google.com/analytics/answer/9267572. Audience lists contain
|
|
88
88
|
// the users in each audience.
|
|
89
89
|
//
|
|
90
|
-
// This method is
|
|
91
|
-
//
|
|
92
|
-
// your feedback on this API, complete the
|
|
93
|
-
//
|
|
94
|
-
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
90
|
+
// This method is available at beta stability at
|
|
91
|
+
// [audienceExports.create](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create).
|
|
92
|
+
// To give your feedback on this API, complete the [Google Analytics Audience
|
|
93
|
+
// Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
95
94
|
rpc CreateAudienceList(CreateAudienceListRequest)
|
|
96
95
|
returns (google.longrunning.Operation) {
|
|
97
96
|
option (google.api.http) = {
|
|
@@ -119,11 +118,10 @@ service AlphaAnalyticsData {
|
|
|
119
118
|
// that are important to your business. To learn more, see
|
|
120
119
|
// https://support.google.com/analytics/answer/9267572.
|
|
121
120
|
//
|
|
122
|
-
// This method is
|
|
123
|
-
//
|
|
124
|
-
// your feedback on this API, complete the
|
|
125
|
-
//
|
|
126
|
-
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
121
|
+
// This method is available at beta stability at
|
|
122
|
+
// [audienceExports.query](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/query).
|
|
123
|
+
// To give your feedback on this API, complete the [Google Analytics Audience
|
|
124
|
+
// Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
127
125
|
rpc QueryAudienceList(QueryAudienceListRequest)
|
|
128
126
|
returns (QueryAudienceListResponse) {
|
|
129
127
|
option (google.api.http) = {
|
|
@@ -168,9 +166,9 @@ service AlphaAnalyticsData {
|
|
|
168
166
|
// List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
169
167
|
// for an introduction to Audience Lists with examples.
|
|
170
168
|
//
|
|
171
|
-
// This method is
|
|
172
|
-
//
|
|
173
|
-
// your feedback on this API, complete the
|
|
169
|
+
// This method is available at beta stability at
|
|
170
|
+
// [audienceExports.get](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/get).
|
|
171
|
+
// To give your feedback on this API, complete the
|
|
174
172
|
// [Google Analytics Audience Export API
|
|
175
173
|
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
176
174
|
rpc GetAudienceList(GetAudienceListRequest) returns (AudienceList) {
|
|
@@ -189,9 +187,9 @@ service AlphaAnalyticsData {
|
|
|
189
187
|
// List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics)
|
|
190
188
|
// for an introduction to Audience Lists with examples.
|
|
191
189
|
//
|
|
192
|
-
// This method is
|
|
193
|
-
//
|
|
194
|
-
// your feedback on this API, complete the
|
|
190
|
+
// This method is available at beta stability at
|
|
191
|
+
// [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list).
|
|
192
|
+
// To give your feedback on this API, complete the
|
|
195
193
|
// [Google Analytics Audience Export API
|
|
196
194
|
// Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.
|
|
197
195
|
rpc ListAudienceLists(ListAudienceListsRequest)
|
|
@@ -344,6 +342,75 @@ message RecurringAudienceList {
|
|
|
344
342
|
// This list is ordered with the most recently created audience list first.
|
|
345
343
|
repeated string audience_lists = 6
|
|
346
344
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
345
|
+
|
|
346
|
+
// Optional. Configures webhook notifications to be sent from the Google
|
|
347
|
+
// Analytics Data API to your webhook server. Use of webhooks is optional. If
|
|
348
|
+
// unused, you'll need to poll this API to determine when a recurring audience
|
|
349
|
+
// list creates new audience lists. Webhooks allow a notification to be sent
|
|
350
|
+
// to your servers & avoid the need for polling.
|
|
351
|
+
//
|
|
352
|
+
// Two POST requests will be sent each time a recurring audience list creates
|
|
353
|
+
// an audience list. This happens once per day until a recurring audience list
|
|
354
|
+
// reaches 0 active days remaining. The first request will be sent showing a
|
|
355
|
+
// newly created audience list in its CREATING state. The second request will
|
|
356
|
+
// be sent after the audience list completes creation (either the ACTIVE or
|
|
357
|
+
// FAILED state).
|
|
358
|
+
optional WebhookNotification webhook_notification = 8
|
|
359
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// Configures a long-running operation resource to send a webhook notification
|
|
363
|
+
// from the Google Analytics Data API to your webhook server when the resource
|
|
364
|
+
// updates.
|
|
365
|
+
//
|
|
366
|
+
// Notification configurations contain private values & are only visible to your
|
|
367
|
+
// GCP project. Different GCP projects may attach different webhook
|
|
368
|
+
// notifications to the same long-running operation resource.
|
|
369
|
+
message WebhookNotification {
|
|
370
|
+
// Optional. The web address that will receive the webhook notification. This
|
|
371
|
+
// address will receive POST requests as the state of the long running
|
|
372
|
+
// operation resource changes. The POST request will contain both a JSON
|
|
373
|
+
// version of the long running operation resource in the body and a
|
|
374
|
+
// `sentTimestamp` field. The sent timestamp will specify the unix
|
|
375
|
+
// microseconds since the epoch that the request was sent; this lets you
|
|
376
|
+
// identify replayed notifications.
|
|
377
|
+
//
|
|
378
|
+
// An example URI is
|
|
379
|
+
// `https://us-central1-example-project-id.cloudfunctions.net/example-function-1`.
|
|
380
|
+
//
|
|
381
|
+
// The URI must use HTTPS and point to a site with a valid SSL certificate on
|
|
382
|
+
// the web server. The URI must have a maximum string length of 128 characters
|
|
383
|
+
// & use only the allowlisted characters from [RFC
|
|
384
|
+
// 1738](https://www.rfc-editor.org/rfc/rfc1738).
|
|
385
|
+
//
|
|
386
|
+
// When your webhook server receives a notification, it is expected to reply
|
|
387
|
+
// with an HTTP response status code of 200 within 5 seconds.
|
|
388
|
+
//
|
|
389
|
+
// A URI is required to use webhook notifications.
|
|
390
|
+
//
|
|
391
|
+
// Requests to this webhook server will contain an ID token authenticating the
|
|
392
|
+
// service account
|
|
393
|
+
// `google-analytics-audience-export@system.gserviceaccount.com`. To learn
|
|
394
|
+
// more about ID tokens, see
|
|
395
|
+
// https://cloud.google.com/docs/authentication/token-types#id. For Google
|
|
396
|
+
// Cloud Functions, this lets you configure your function to require
|
|
397
|
+
// authentication. In Cloud IAM, you will need to grant the service account
|
|
398
|
+
// permissions to the Cloud Run Invoker (`roles/run.invoker`) & Cloud
|
|
399
|
+
// Functions Invoker (`roles/cloudfunctions.invoker`) roles for the webhook
|
|
400
|
+
// post request to pass Google Cloud Functions authentication. This API can
|
|
401
|
+
// send webhook notifications to arbitrary URIs; for webhook servers other
|
|
402
|
+
// than Google Cloud Functions, this ID token in the authorization bearer
|
|
403
|
+
// header should be ignored if it is not needed.
|
|
404
|
+
optional string uri = 1 [(google.api.field_behavior) = OPTIONAL];
|
|
405
|
+
|
|
406
|
+
// Optional. The channel token is an arbitrary string value and must have a
|
|
407
|
+
// maximum string length of 64 characters. Channel tokens allow you to verify
|
|
408
|
+
// the source of a webhook notification. This guards against the message being
|
|
409
|
+
// spoofed. The channel token will be specified in the `X-Goog-Channel-Token`
|
|
410
|
+
// HTTP header of the webhook POST request.
|
|
411
|
+
//
|
|
412
|
+
// A channel token is not required to use webhook notifications.
|
|
413
|
+
optional string channel_token = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
347
414
|
}
|
|
348
415
|
|
|
349
416
|
// A request to retrieve configuration metadata about a specific recurring
|
|
@@ -547,6 +614,24 @@ message AudienceList {
|
|
|
547
614
|
// recurring audience list, and this field will be blank.
|
|
548
615
|
optional string recurring_audience_list = 12
|
|
549
616
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
617
|
+
|
|
618
|
+
// Optional. Configures webhook notifications to be sent from the Google
|
|
619
|
+
// Analytics Data API to your webhook server. Use of webhooks is optional. If
|
|
620
|
+
// unused, you'll need to poll this API to determine when an audience list is
|
|
621
|
+
// ready to be used. Webhooks allow a notification to be sent to your servers
|
|
622
|
+
// & avoid the need for polling.
|
|
623
|
+
//
|
|
624
|
+
// Either one or two POST requests will be sent to the webhook. The first POST
|
|
625
|
+
// request will be sent immediately showing the newly created audience list in
|
|
626
|
+
// its CREATING state. The second POST request will be sent after the audience
|
|
627
|
+
// list completes creation (either the ACTIVE or FAILED state).
|
|
628
|
+
//
|
|
629
|
+
// If identical audience lists are requested in quick succession, the second &
|
|
630
|
+
// subsequent audience lists can be served from cache. In that case, the
|
|
631
|
+
// audience list create method can return an audience list is already ACTIVE.
|
|
632
|
+
// In this scenario, only one POST request will be sent to the webhook.
|
|
633
|
+
optional WebhookNotification webhook_notification = 13
|
|
634
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
550
635
|
}
|
|
551
636
|
|
|
552
637
|
// This metadata is currently blank.
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -4163,6 +4163,9 @@ export namespace google {
|
|
|
4163
4163
|
|
|
4164
4164
|
/** RecurringAudienceList audienceLists */
|
|
4165
4165
|
audienceLists?: (string[]|null);
|
|
4166
|
+
|
|
4167
|
+
/** RecurringAudienceList webhookNotification */
|
|
4168
|
+
webhookNotification?: (google.analytics.data.v1alpha.IWebhookNotification|null);
|
|
4166
4169
|
}
|
|
4167
4170
|
|
|
4168
4171
|
/** Represents a RecurringAudienceList. */
|
|
@@ -4192,9 +4195,15 @@ export namespace google {
|
|
|
4192
4195
|
/** RecurringAudienceList audienceLists. */
|
|
4193
4196
|
public audienceLists: string[];
|
|
4194
4197
|
|
|
4198
|
+
/** RecurringAudienceList webhookNotification. */
|
|
4199
|
+
public webhookNotification?: (google.analytics.data.v1alpha.IWebhookNotification|null);
|
|
4200
|
+
|
|
4195
4201
|
/** RecurringAudienceList _activeDaysRemaining. */
|
|
4196
4202
|
public _activeDaysRemaining?: "activeDaysRemaining";
|
|
4197
4203
|
|
|
4204
|
+
/** RecurringAudienceList _webhookNotification. */
|
|
4205
|
+
public _webhookNotification?: "webhookNotification";
|
|
4206
|
+
|
|
4198
4207
|
/**
|
|
4199
4208
|
* Creates a new RecurringAudienceList instance using the specified properties.
|
|
4200
4209
|
* @param [properties] Properties to set
|
|
@@ -4273,6 +4282,115 @@ export namespace google {
|
|
|
4273
4282
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4274
4283
|
}
|
|
4275
4284
|
|
|
4285
|
+
/** Properties of a WebhookNotification. */
|
|
4286
|
+
interface IWebhookNotification {
|
|
4287
|
+
|
|
4288
|
+
/** WebhookNotification uri */
|
|
4289
|
+
uri?: (string|null);
|
|
4290
|
+
|
|
4291
|
+
/** WebhookNotification channelToken */
|
|
4292
|
+
channelToken?: (string|null);
|
|
4293
|
+
}
|
|
4294
|
+
|
|
4295
|
+
/** Represents a WebhookNotification. */
|
|
4296
|
+
class WebhookNotification implements IWebhookNotification {
|
|
4297
|
+
|
|
4298
|
+
/**
|
|
4299
|
+
* Constructs a new WebhookNotification.
|
|
4300
|
+
* @param [properties] Properties to set
|
|
4301
|
+
*/
|
|
4302
|
+
constructor(properties?: google.analytics.data.v1alpha.IWebhookNotification);
|
|
4303
|
+
|
|
4304
|
+
/** WebhookNotification uri. */
|
|
4305
|
+
public uri?: (string|null);
|
|
4306
|
+
|
|
4307
|
+
/** WebhookNotification channelToken. */
|
|
4308
|
+
public channelToken?: (string|null);
|
|
4309
|
+
|
|
4310
|
+
/** WebhookNotification _uri. */
|
|
4311
|
+
public _uri?: "uri";
|
|
4312
|
+
|
|
4313
|
+
/** WebhookNotification _channelToken. */
|
|
4314
|
+
public _channelToken?: "channelToken";
|
|
4315
|
+
|
|
4316
|
+
/**
|
|
4317
|
+
* Creates a new WebhookNotification instance using the specified properties.
|
|
4318
|
+
* @param [properties] Properties to set
|
|
4319
|
+
* @returns WebhookNotification instance
|
|
4320
|
+
*/
|
|
4321
|
+
public static create(properties?: google.analytics.data.v1alpha.IWebhookNotification): google.analytics.data.v1alpha.WebhookNotification;
|
|
4322
|
+
|
|
4323
|
+
/**
|
|
4324
|
+
* Encodes the specified WebhookNotification message. Does not implicitly {@link google.analytics.data.v1alpha.WebhookNotification.verify|verify} messages.
|
|
4325
|
+
* @param message WebhookNotification message or plain object to encode
|
|
4326
|
+
* @param [writer] Writer to encode to
|
|
4327
|
+
* @returns Writer
|
|
4328
|
+
*/
|
|
4329
|
+
public static encode(message: google.analytics.data.v1alpha.IWebhookNotification, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4330
|
+
|
|
4331
|
+
/**
|
|
4332
|
+
* Encodes the specified WebhookNotification message, length delimited. Does not implicitly {@link google.analytics.data.v1alpha.WebhookNotification.verify|verify} messages.
|
|
4333
|
+
* @param message WebhookNotification message or plain object to encode
|
|
4334
|
+
* @param [writer] Writer to encode to
|
|
4335
|
+
* @returns Writer
|
|
4336
|
+
*/
|
|
4337
|
+
public static encodeDelimited(message: google.analytics.data.v1alpha.IWebhookNotification, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4338
|
+
|
|
4339
|
+
/**
|
|
4340
|
+
* Decodes a WebhookNotification message from the specified reader or buffer.
|
|
4341
|
+
* @param reader Reader or buffer to decode from
|
|
4342
|
+
* @param [length] Message length if known beforehand
|
|
4343
|
+
* @returns WebhookNotification
|
|
4344
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4345
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4346
|
+
*/
|
|
4347
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.analytics.data.v1alpha.WebhookNotification;
|
|
4348
|
+
|
|
4349
|
+
/**
|
|
4350
|
+
* Decodes a WebhookNotification message from the specified reader or buffer, length delimited.
|
|
4351
|
+
* @param reader Reader or buffer to decode from
|
|
4352
|
+
* @returns WebhookNotification
|
|
4353
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4354
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4355
|
+
*/
|
|
4356
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.analytics.data.v1alpha.WebhookNotification;
|
|
4357
|
+
|
|
4358
|
+
/**
|
|
4359
|
+
* Verifies a WebhookNotification message.
|
|
4360
|
+
* @param message Plain object to verify
|
|
4361
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4362
|
+
*/
|
|
4363
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4364
|
+
|
|
4365
|
+
/**
|
|
4366
|
+
* Creates a WebhookNotification message from a plain object. Also converts values to their respective internal types.
|
|
4367
|
+
* @param object Plain object
|
|
4368
|
+
* @returns WebhookNotification
|
|
4369
|
+
*/
|
|
4370
|
+
public static fromObject(object: { [k: string]: any }): google.analytics.data.v1alpha.WebhookNotification;
|
|
4371
|
+
|
|
4372
|
+
/**
|
|
4373
|
+
* Creates a plain object from a WebhookNotification message. Also converts values to other types if specified.
|
|
4374
|
+
* @param message WebhookNotification
|
|
4375
|
+
* @param [options] Conversion options
|
|
4376
|
+
* @returns Plain object
|
|
4377
|
+
*/
|
|
4378
|
+
public static toObject(message: google.analytics.data.v1alpha.WebhookNotification, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4379
|
+
|
|
4380
|
+
/**
|
|
4381
|
+
* Converts this WebhookNotification to JSON.
|
|
4382
|
+
* @returns JSON object
|
|
4383
|
+
*/
|
|
4384
|
+
public toJSON(): { [k: string]: any };
|
|
4385
|
+
|
|
4386
|
+
/**
|
|
4387
|
+
* Gets the default type url for WebhookNotification
|
|
4388
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4389
|
+
* @returns The default type url
|
|
4390
|
+
*/
|
|
4391
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4276
4394
|
/** Properties of a GetRecurringAudienceListRequest. */
|
|
4277
4395
|
interface IGetRecurringAudienceListRequest {
|
|
4278
4396
|
|
|
@@ -5035,6 +5153,9 @@ export namespace google {
|
|
|
5035
5153
|
|
|
5036
5154
|
/** AudienceList recurringAudienceList */
|
|
5037
5155
|
recurringAudienceList?: (string|null);
|
|
5156
|
+
|
|
5157
|
+
/** AudienceList webhookNotification */
|
|
5158
|
+
webhookNotification?: (google.analytics.data.v1alpha.IWebhookNotification|null);
|
|
5038
5159
|
}
|
|
5039
5160
|
|
|
5040
5161
|
/** Represents an AudienceList. */
|
|
@@ -5079,6 +5200,9 @@ export namespace google {
|
|
|
5079
5200
|
/** AudienceList recurringAudienceList. */
|
|
5080
5201
|
public recurringAudienceList?: (string|null);
|
|
5081
5202
|
|
|
5203
|
+
/** AudienceList webhookNotification. */
|
|
5204
|
+
public webhookNotification?: (google.analytics.data.v1alpha.IWebhookNotification|null);
|
|
5205
|
+
|
|
5082
5206
|
/** AudienceList _state. */
|
|
5083
5207
|
public _state?: "state";
|
|
5084
5208
|
|
|
@@ -5097,6 +5221,9 @@ export namespace google {
|
|
|
5097
5221
|
/** AudienceList _recurringAudienceList. */
|
|
5098
5222
|
public _recurringAudienceList?: "recurringAudienceList";
|
|
5099
5223
|
|
|
5224
|
+
/** AudienceList _webhookNotification. */
|
|
5225
|
+
public _webhookNotification?: "webhookNotification";
|
|
5226
|
+
|
|
5100
5227
|
/**
|
|
5101
5228
|
* Creates a new AudienceList instance using the specified properties.
|
|
5102
5229
|
* @param [properties] Properties to set
|