@pushwoosh/rpc-v2-http-api-data 0.2.216 → 0.2.218

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
@@ -17005,6 +17005,24 @@ export const data = {
17005
17005
  "method": "delete",
17006
17006
  "path": "/api/integrations/configurations/stripe"
17007
17007
  },
17008
+ "GetGoogleAuthURL": {
17009
+ "request": "pushwoosh.rpc_v2.integrations.GetGoogleAuthURLRequest",
17010
+ "response": "pushwoosh.rpc_v2.integrations.GetGoogleAuthURLResponse",
17011
+ "method": "get",
17012
+ "path": "/api/integrations/google/auth"
17013
+ },
17014
+ "GetGoogleConfiguration": {
17015
+ "request": "pushwoosh.rpc_v2.integrations.GetGoogleConfigurationRequest",
17016
+ "response": "pushwoosh.rpc_v2.integrations.GetGoogleConfigurationResponse",
17017
+ "method": "get",
17018
+ "path": "/api/integrations/configurations/google"
17019
+ },
17020
+ "DeleteGoogleConfiguration": {
17021
+ "request": "pushwoosh.rpc_v2.integrations.DeleteGoogleConfigurationRequest",
17022
+ "response": "pushwoosh.rpc_v2.integrations.DeleteGoogleConfigurationResponse",
17023
+ "method": "delete",
17024
+ "path": "/api/integrations/configurations/google"
17025
+ },
17008
17026
  "GetMetaAuthURL": {
17009
17027
  "request": "pushwoosh.rpc_v2.integrations.GetMetaAuthURLRequest",
17010
17028
  "response": "pushwoosh.rpc_v2.integrations.GetMetaAuthURLResponse",
@@ -17109,7 +17127,8 @@ export const data = {
17109
17127
  "STRIPE",
17110
17128
  "META",
17111
17129
  "INBOUND_WEBHOOK",
17112
- "GOOGLE_BQ"
17130
+ "GOOGLE_BQ",
17131
+ "GOOGLE"
17113
17132
  ]
17114
17133
  },
17115
17134
  "pushwoosh.rpc_v2.integrations.ImportSegmentPianoRequest": {
@@ -17529,6 +17548,52 @@ export const data = {
17529
17548
  "type": "I",
17530
17549
  "fields": {}
17531
17550
  },
17551
+ "pushwoosh.rpc_v2.integrations.GetGoogleAuthURLRequest": {
17552
+ "type": "I",
17553
+ "fields": {
17554
+ "returnTo": {
17555
+ "type": "string"
17556
+ }
17557
+ }
17558
+ },
17559
+ "pushwoosh.rpc_v2.integrations.GetGoogleAuthURLResponse": {
17560
+ "type": "I",
17561
+ "fields": {
17562
+ "authUrl": {
17563
+ "type": "string"
17564
+ }
17565
+ }
17566
+ },
17567
+ "pushwoosh.rpc_v2.integrations.GetGoogleConfigurationRequest": {
17568
+ "type": "I",
17569
+ "fields": {}
17570
+ },
17571
+ "pushwoosh.rpc_v2.integrations.GetGoogleConfigurationResponse": {
17572
+ "type": "I",
17573
+ "fields": {
17574
+ "identity": {
17575
+ "type": "string"
17576
+ },
17577
+ "scopes": {
17578
+ "type": "string",
17579
+ "array": true
17580
+ },
17581
+ "tokenValid": {
17582
+ "type": "boolean"
17583
+ },
17584
+ "connectedAt": {
17585
+ "type": "string"
17586
+ }
17587
+ }
17588
+ },
17589
+ "pushwoosh.rpc_v2.integrations.DeleteGoogleConfigurationRequest": {
17590
+ "type": "I",
17591
+ "fields": {}
17592
+ },
17593
+ "pushwoosh.rpc_v2.integrations.DeleteGoogleConfigurationResponse": {
17594
+ "type": "I",
17595
+ "fields": {}
17596
+ },
17532
17597
  "pushwoosh.rpc_v2.integrations.GetMetaAuthURLRequest": {
17533
17598
  "type": "I",
17534
17599
  "fields": {
package/integrations.d.ts CHANGED
@@ -13,6 +13,9 @@ export type IntegrationsService_GetStripeAuthURL = RpcMethod<GetStripeAuthURLReq
13
13
  export type IntegrationsService_HandleStripeAuthCallback = RpcMethod<HandleStripeAuthCallbackRequest, HandleStripeAuthCallbackResponse>;
14
14
  export type IntegrationsService_GetStripeConfiguration = RpcMethod<GetStripeConfigurationRequest, GetStripeConfigurationResponse>;
15
15
  export type IntegrationsService_DeleteStripeConfiguration = RpcMethod<DeleteStripeConfigurationRequest, DeleteStripeConfigurationResponse>;
16
+ export type IntegrationsService_GetGoogleAuthURL = RpcMethod<GetGoogleAuthURLRequest, GetGoogleAuthURLResponse>;
17
+ export type IntegrationsService_GetGoogleConfiguration = RpcMethod<GetGoogleConfigurationRequest, GetGoogleConfigurationResponse>;
18
+ export type IntegrationsService_DeleteGoogleConfiguration = RpcMethod<DeleteGoogleConfigurationRequest, DeleteGoogleConfigurationResponse>;
16
19
  export type IntegrationsService_GetMetaAuthURL = RpcMethod<GetMetaAuthURLRequest, GetMetaAuthURLResponse>;
17
20
  export type IntegrationsService_HandleMetaAuthCallback = RpcMethod<HandleMetaAuthCallbackRequest, HandleMetaAuthCallbackResponse>;
18
21
  export type IntegrationsService_GetMetaConfiguration = RpcMethod<GetMetaConfigurationRequest, GetMetaConfigurationResponse>;
@@ -29,7 +32,7 @@ export type IntegrationsService_TestGoogleBQConnection = RpcMethod<TestGoogleBQC
29
32
  export type IntegrationsService_ListGoogleBQDatasets = RpcMethod<ListGoogleBQDatasetsRequest, ListGoogleBQDatasetsResponse>;
30
33
  export type IntegrationsService_ListGoogleBQTables = RpcMethod<ListGoogleBQTablesRequest, ListGoogleBQTablesResponse>;
31
34
  export interface IntegrationsService {
32
- /** Lists which output integrations (webhook, Segment, Piano, HubSpot, Shopify, Stripe, Meta, Google BigQuery, inbound webhook) are configured for an application code XXXXX-XXXXX. Use for an at-a-glance configured/not-configured overview before fetching a specific integration's configuration. */
35
+ /** Lists which output integrations (webhook, Segment, Piano, HubSpot, Shopify, Stripe, Meta, Google BigQuery, Google, inbound webhook) are configured for an application code XXXXX-XXXXX. Use for an at-a-glance configured/not-configured overview before fetching a specific integration's configuration. */
33
36
  ListIntegrationsConfiguration: IntegrationsService_ListIntegrationsConfiguration;
34
37
  /**
35
38
  * webhook
@@ -75,6 +78,15 @@ export interface IntegrationsService {
75
78
  GetStripeConfiguration: IntegrationsService_GetStripeConfiguration;
76
79
  /** Removes the Stripe integration connection for the current account. Use to disconnect Stripe; the stored tokens are revoked and cannot be restored without reconnecting. */
77
80
  DeleteStripeConfiguration: IntegrationsService_DeleteStripeConfiguration;
81
+ /**
82
+ * google
83
+ * Builds the Google OAuth consent URL to connect a Google account, given the control panel page to return to. Use to start the Google connect flow; the browser comes back to integration-oauth, which stores the grant and redirects to return_to.
84
+ */
85
+ GetGoogleAuthURL: IntegrationsService_GetGoogleAuthURL;
86
+ /** Returns the connected Google account for the current account: the Google identity, granted scopes and whether the stored grant is still valid. Use to check whether Google is connected before offering features that call Google APIs. */
87
+ GetGoogleConfiguration: IntegrationsService_GetGoogleConfiguration;
88
+ /** Removes the Google integration for the current account. Use to disconnect Google; the grant is revoked at Google and cannot be restored without reconnecting. */
89
+ DeleteGoogleConfiguration: IntegrationsService_DeleteGoogleConfiguration;
78
90
  /**
79
91
  * meta
80
92
  * Builds the Meta (Facebook) OAuth authorization URL to start connecting a Meta account, given a redirect URI. Use to begin the Meta connect flow; the user returns via connect_meta_integration.
@@ -118,7 +130,7 @@ export interface IntegrationsService {
118
130
  ListGoogleBQTables: IntegrationsService_ListGoogleBQTables;
119
131
  }
120
132
  /** Integration contains all available integration for clients (to update props) */
121
- export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK' | 'GOOGLE_BQ';
133
+ export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK' | 'GOOGLE_BQ' | 'GOOGLE';
122
134
  export type ImportSegmentPianoRequest = {
123
135
  /** application code */
124
136
  application?: string;
@@ -297,6 +309,27 @@ export type GetStripeConfigurationResponse = {
297
309
  };
298
310
  export type DeleteStripeConfigurationRequest = {};
299
311
  export type DeleteStripeConfigurationResponse = {};
312
+ /** Google messages */
313
+ export type GetGoogleAuthURLRequest = {
314
+ /** control panel URL the browser lands on after the consent screen */
315
+ returnTo?: string;
316
+ };
317
+ export type GetGoogleAuthURLResponse = {
318
+ authUrl: string;
319
+ };
320
+ export type GetGoogleConfigurationRequest = {};
321
+ export type GetGoogleConfigurationResponse = {
322
+ /** Google account the grant belongs to, usually an email */
323
+ identity: string;
324
+ /** scopes Google actually granted */
325
+ scopes: string[];
326
+ /** false once Google rejected the stored grant; reconnect required */
327
+ tokenValid: boolean;
328
+ /** RFC 3339 */
329
+ connectedAt: string;
330
+ };
331
+ export type DeleteGoogleConfigurationRequest = {};
332
+ export type DeleteGoogleConfigurationResponse = {};
300
333
  /** Meta messages */
301
334
  export type GetMetaAuthURLRequest = {
302
335
  /** URI Meta redirects back to after authorization */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.216",
3
+ "version": "0.2.218",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",