@pushwoosh/rpc-v2-http-api-data 0.2.281 → 0.2.283

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/data.js CHANGED
@@ -18482,6 +18482,18 @@ export const data = {
18482
18482
  "method": "post",
18483
18483
  "path": "/api/integrations/google-ads/ad-accounts/disconnect"
18484
18484
  },
18485
+ "ListGoogleAdsAudiences": {
18486
+ "request": "pushwoosh.rpc_v2.integrations.ListGoogleAdsAudiencesRequest",
18487
+ "response": "pushwoosh.rpc_v2.integrations.ListGoogleAdsAudiencesResponse",
18488
+ "method": "get",
18489
+ "path": "/api/integrations/google-ads/ad-accounts/{ad_account_id}/audiences"
18490
+ },
18491
+ "CreateGoogleAdsAudience": {
18492
+ "request": "pushwoosh.rpc_v2.integrations.CreateGoogleAdsAudienceRequest",
18493
+ "response": "pushwoosh.rpc_v2.integrations.CreateGoogleAdsAudienceResponse",
18494
+ "method": "post",
18495
+ "path": "/api/integrations/google-ads/ad-accounts/{ad_account_id}/audiences"
18496
+ },
18485
18497
  "SetMetaTagMapping": {
18486
18498
  "request": "pushwoosh.rpc_v2.integrations.SetMetaTagMappingRequest",
18487
18499
  "response": "pushwoosh.rpc_v2.integrations.SetMetaTagMappingResponse",
@@ -19578,6 +19590,59 @@ export const data = {
19578
19590
  }
19579
19591
  }
19580
19592
  },
19593
+ "pushwoosh.rpc_v2.integrations.GoogleAdsAudience": {
19594
+ "type": "I",
19595
+ "fields": {
19596
+ "id": {
19597
+ "type": "string"
19598
+ },
19599
+ "name": {
19600
+ "type": "string"
19601
+ },
19602
+ "approximateCount": {
19603
+ "type": "number"
19604
+ }
19605
+ }
19606
+ },
19607
+ "pushwoosh.rpc_v2.integrations.ListGoogleAdsAudiencesRequest": {
19608
+ "type": "I",
19609
+ "fields": {
19610
+ "adAccountId": {
19611
+ "type": "string"
19612
+ }
19613
+ }
19614
+ },
19615
+ "pushwoosh.rpc_v2.integrations.ListGoogleAdsAudiencesResponse": {
19616
+ "type": "I",
19617
+ "fields": {
19618
+ "audiences": {
19619
+ "type": "pushwoosh.rpc_v2.integrations.GoogleAdsAudience",
19620
+ "array": true
19621
+ }
19622
+ }
19623
+ },
19624
+ "pushwoosh.rpc_v2.integrations.CreateGoogleAdsAudienceRequest": {
19625
+ "type": "I",
19626
+ "fields": {
19627
+ "adAccountId": {
19628
+ "type": "string"
19629
+ },
19630
+ "name": {
19631
+ "type": "string"
19632
+ },
19633
+ "description": {
19634
+ "type": "string"
19635
+ }
19636
+ }
19637
+ },
19638
+ "pushwoosh.rpc_v2.integrations.CreateGoogleAdsAudienceResponse": {
19639
+ "type": "I",
19640
+ "fields": {
19641
+ "audience": {
19642
+ "type": "pushwoosh.rpc_v2.integrations.GoogleAdsAudience"
19643
+ }
19644
+ }
19645
+ },
19581
19646
  "pushwoosh.rpc_v2.integrations.DisconnectGoogleAdsAdAccountsResponse": {
19582
19647
  "type": "I",
19583
19648
  "fields": {
@@ -20923,7 +20988,8 @@ export const data = {
20923
20988
  "All",
20924
20989
  "Push",
20925
20990
  "Email",
20926
- "Sms"
20991
+ "Sms",
20992
+ "Inbox"
20927
20993
  ]
20928
20994
  },
20929
20995
  "pushwoosh.rpc_v2.messages.PushInfo": {
@@ -20960,6 +21026,26 @@ export const data = {
20960
21026
  }
20961
21027
  }
20962
21028
  },
21029
+ "pushwoosh.rpc_v2.messages.InboxInfo": {
21030
+ "type": "I",
21031
+ "fields": {
21032
+ "title": {
21033
+ "type": "string"
21034
+ },
21035
+ "content": {
21036
+ "type": "string"
21037
+ },
21038
+ "icon": {
21039
+ "type": "string"
21040
+ },
21041
+ "image": {
21042
+ "type": "string"
21043
+ },
21044
+ "expiresAt": {
21045
+ "type": "Date"
21046
+ }
21047
+ }
21048
+ },
20963
21049
  "pushwoosh.rpc_v2.messages.Message.SchedulingType": {
20964
21050
  "type": "E",
20965
21051
  "values": [
@@ -21024,6 +21110,9 @@ export const data = {
21024
21110
  "emailInfo": {
21025
21111
  "type": "pushwoosh.rpc_v2.messages.EmailInfo"
21026
21112
  },
21113
+ "inboxInfo": {
21114
+ "type": "pushwoosh.rpc_v2.messages.InboxInfo"
21115
+ },
21027
21116
  "childMessages": {
21028
21117
  "type": "pushwoosh.rpc_v2.messages.Message",
21029
21118
  "array": true
@@ -21033,7 +21122,8 @@ export const data = {
21033
21122
  "info": {
21034
21123
  "oneof": [
21035
21124
  "pushInfo",
21036
- "emailInfo"
21125
+ "emailInfo",
21126
+ "inboxInfo"
21037
21127
  ]
21038
21128
  }
21039
21129
  }
package/integrations.d.ts CHANGED
@@ -34,6 +34,8 @@ export type IntegrationsService_DeleteGoogleAdsConfiguration = RpcMethod<DeleteG
34
34
  export type IntegrationsService_ListGoogleAdsAdAccounts = RpcMethod<ListGoogleAdsAdAccountsRequest, ListGoogleAdsAdAccountsResponse>;
35
35
  export type IntegrationsService_ConnectGoogleAdsAdAccounts = RpcMethod<ConnectGoogleAdsAdAccountsRequest, ConnectGoogleAdsAdAccountsResponse>;
36
36
  export type IntegrationsService_DisconnectGoogleAdsAdAccounts = RpcMethod<DisconnectGoogleAdsAdAccountsRequest, DisconnectGoogleAdsAdAccountsResponse>;
37
+ export type IntegrationsService_ListGoogleAdsAudiences = RpcMethod<ListGoogleAdsAudiencesRequest, ListGoogleAdsAudiencesResponse>;
38
+ export type IntegrationsService_CreateGoogleAdsAudience = RpcMethod<CreateGoogleAdsAudienceRequest, CreateGoogleAdsAudienceResponse>;
37
39
  export type IntegrationsService_SetMetaTagMapping = RpcMethod<SetMetaTagMappingRequest, SetMetaTagMappingResponse>;
38
40
  export type IntegrationsService_GetGoogleBQConfiguration = RpcMethod<GetGoogleBQConfigurationRequest, GetGoogleBQConfigurationResponse>;
39
41
  export type IntegrationsService_CreateGoogleBQConfiguration = RpcMethod<CreateGoogleBQConfigurationRequest, CreateGoogleBQConfigurationResponse>;
@@ -142,6 +144,10 @@ export interface IntegrationsService {
142
144
  ConnectGoogleAdsAdAccounts: IntegrationsService_ConnectGoogleAdsAdAccounts;
143
145
  /** Disconnects the given Google Ads customers by id while keeping the OAuth grant. Use to remove specific ad accounts; to drop the whole connection use delete_google_ads_integration. */
144
146
  DisconnectGoogleAdsAdAccounts: IntegrationsService_DisconnectGoogleAdsAdAccounts;
147
+ /** Lists the CRM-based user lists of a connected Google Ads ad account. Use to pick an audience for a journey audience sync point, or to see what create_google_ads_audience produced. */
148
+ ListGoogleAdsAudiences: IntegrationsService_ListGoogleAdsAudiences;
149
+ /** Creates a CRM-based user list on a connected Google Ads ad account. Use before syncing users: a Customer Match upload targets a list that already exists. */
150
+ CreateGoogleAdsAudience: IntegrationsService_CreateGoogleAdsAudience;
145
151
  /** Overwrites the mapping between Pushwoosh tags and Meta custom-audience fields for the current account. Use to define which PW tags sync to Meta audiences; replaces the entire mapping. */
146
152
  SetMetaTagMapping: IntegrationsService_SetMetaTagMapping;
147
153
  /**
@@ -600,6 +606,28 @@ export type ConnectGoogleAdsAdAccountsResponse = {
600
606
  export type DisconnectGoogleAdsAdAccountsRequest = {
601
607
  adAccountIds?: string[];
602
608
  };
609
+ /** GoogleAdsAudience is a CRM-based user list on an ad account. */
610
+ export type GoogleAdsAudience = {
611
+ id: string;
612
+ name: string;
613
+ /** Google's own estimate of matched members, 0 until matching runs */
614
+ approximateCount: number;
615
+ };
616
+ export type ListGoogleAdsAudiencesRequest = {
617
+ adAccountId?: string;
618
+ };
619
+ export type ListGoogleAdsAudiencesResponse = {
620
+ audiences: GoogleAdsAudience[];
621
+ };
622
+ export type CreateGoogleAdsAudienceRequest = {
623
+ adAccountId?: string;
624
+ name?: string;
625
+ /** optional, the integration fills its own default when empty */
626
+ description?: string;
627
+ };
628
+ export type CreateGoogleAdsAudienceResponse = {
629
+ audience: GoogleAdsAudience;
630
+ };
603
631
  export type DisconnectGoogleAdsAdAccountsResponse = {
604
632
  adAccounts: GoogleAdsAdAccount[];
605
633
  };
package/messages.d.ts CHANGED
@@ -37,7 +37,7 @@ export interface MessagesService {
37
37
  /** Lists the message inbox of a single user (by user id): what the app's inbox screen would show, with per-message inbox status, send date and expiration. Use to check what a user still has in their inbox, as opposed to what was sent to their device. */
38
38
  GetUserInboxMessages: MessagesService_GetUserInboxMessages;
39
39
  }
40
- export type Type = 'All' | 'Push' | 'Email' | 'Sms';
40
+ export type Type = 'All' | 'Push' | 'Email' | 'Sms' | 'Inbox';
41
41
  export type PushInfo = {
42
42
  content: string;
43
43
  title: string;
@@ -50,6 +50,13 @@ export type EmailInfo = {
50
50
  sendFrom: string;
51
51
  sendFromName: string;
52
52
  };
53
+ export type InboxInfo = {
54
+ title: string;
55
+ content: string;
56
+ icon: string;
57
+ image: string;
58
+ expiresAt: Date;
59
+ };
53
60
  export type Message_SchedulingType = 'now' | 'device_tz' | 'custom_tz' | 'optimal_time';
54
61
  export type Message_Status = 'status_unknown' | 'creating' | 'waiting' | 'pending' | 'processing' | 'done' | 'canceled' | 'fail' | 'deleted';
55
62
  export type Message_info_pushInfo = {
@@ -60,7 +67,11 @@ export type Message_info_emailInfo = {
60
67
  type: 'emailInfo';
61
68
  data: EmailInfo;
62
69
  };
63
- export type Message_info = Message_info_pushInfo | Message_info_emailInfo;
70
+ export type Message_info_inboxInfo = {
71
+ type: 'inboxInfo';
72
+ data: InboxInfo;
73
+ };
74
+ export type Message_info = Message_info_pushInfo | Message_info_emailInfo | Message_info_inboxInfo;
64
75
  export type Message = {
65
76
  id: number;
66
77
  code: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.281",
3
+ "version": "0.2.283",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",