@pushwoosh/rpc-v2-http-api-data 0.2.223 → 0.2.225

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
@@ -14186,6 +14186,33 @@ export const data = {
14186
14186
  }
14187
14187
  }
14188
14188
  },
14189
+ "pushwoosh.rpc.external_segments.v3.MssqlConnection": {
14190
+ "type": "I",
14191
+ "fields": {
14192
+ "host": {
14193
+ "type": "string"
14194
+ },
14195
+ "port": {
14196
+ "type": "number"
14197
+ },
14198
+ "user": {
14199
+ "type": "string"
14200
+ },
14201
+ "password": {
14202
+ "type": "string"
14203
+ },
14204
+ "database": {
14205
+ "type": "string"
14206
+ },
14207
+ "params": {
14208
+ "type": "string",
14209
+ "mapKeyType": "string"
14210
+ },
14211
+ "tenantId": {
14212
+ "type": "string"
14213
+ }
14214
+ }
14215
+ },
14189
14216
  "pushwoosh.rpc.external_segments.v3.BigQueryConnection": {
14190
14217
  "type": "I",
14191
14218
  "fields": {
@@ -14221,6 +14248,9 @@ export const data = {
14221
14248
  "bigquery": {
14222
14249
  "type": "pushwoosh.rpc.external_segments.v3.BigQueryConnection"
14223
14250
  },
14251
+ "mssql": {
14252
+ "type": "pushwoosh.rpc.external_segments.v3.MssqlConnection"
14253
+ },
14224
14254
  "query": {
14225
14255
  "type": "string"
14226
14256
  },
@@ -14245,7 +14275,8 @@ export const data = {
14245
14275
  "oneof": [
14246
14276
  "postgres",
14247
14277
  "mysql",
14248
- "bigquery"
14278
+ "bigquery",
14279
+ "mssql"
14249
14280
  ]
14250
14281
  }
14251
14282
  }
@@ -14304,6 +14335,9 @@ export const data = {
14304
14335
  "bigquery": {
14305
14336
  "type": "pushwoosh.rpc.external_segments.v3.BigQueryConnection"
14306
14337
  },
14338
+ "mssql": {
14339
+ "type": "pushwoosh.rpc.external_segments.v3.MssqlConnection"
14340
+ },
14307
14341
  "query": {
14308
14342
  "type": "string"
14309
14343
  }
@@ -14313,7 +14347,8 @@ export const data = {
14313
14347
  "oneof": [
14314
14348
  "postgres",
14315
14349
  "mysql",
14316
- "bigquery"
14350
+ "bigquery",
14351
+ "mssql"
14317
14352
  ]
14318
14353
  }
14319
14354
  }
@@ -14348,6 +14383,9 @@ export const data = {
14348
14383
  "bigquery": {
14349
14384
  "type": "pushwoosh.rpc.external_segments.v3.BigQueryConnection"
14350
14385
  },
14386
+ "mssql": {
14387
+ "type": "pushwoosh.rpc.external_segments.v3.MssqlConnection"
14388
+ },
14351
14389
  "query": {
14352
14390
  "type": "string",
14353
14391
  "optional": true
@@ -14358,7 +14396,8 @@ export const data = {
14358
14396
  "oneof": [
14359
14397
  "postgres",
14360
14398
  "mysql",
14361
- "bigquery"
14399
+ "bigquery",
14400
+ "mssql"
14362
14401
  ]
14363
14402
  }
14364
14403
  }
@@ -14426,6 +14465,9 @@ export const data = {
14426
14465
  "bigquery": {
14427
14466
  "type": "pushwoosh.rpc.external_segments.v3.BigQueryConnection"
14428
14467
  },
14468
+ "mssql": {
14469
+ "type": "pushwoosh.rpc.external_segments.v3.MssqlConnection"
14470
+ },
14429
14471
  "query": {
14430
14472
  "type": "string"
14431
14473
  },
@@ -14438,7 +14480,8 @@ export const data = {
14438
14480
  "oneof": [
14439
14481
  "postgres",
14440
14482
  "mysql",
14441
- "bigquery"
14483
+ "bigquery",
14484
+ "mssql"
14442
14485
  ]
14443
14486
  }
14444
14487
  }
@@ -17026,6 +17069,30 @@ export const data = {
17026
17069
  "method": "delete",
17027
17070
  "path": "/api/integrations/configurations/google"
17028
17071
  },
17072
+ "GetOAuthIntegration": {
17073
+ "request": "pushwoosh.rpc_v2.integrations.GetOAuthIntegrationRequest",
17074
+ "response": "pushwoosh.rpc_v2.integrations.GetOAuthIntegrationResponse",
17075
+ "method": "get",
17076
+ "path": "/api/integrations/oauth/{provider}"
17077
+ },
17078
+ "GetOAuthAuthURL": {
17079
+ "request": "pushwoosh.rpc_v2.integrations.GetOAuthAuthURLRequest",
17080
+ "response": "pushwoosh.rpc_v2.integrations.GetOAuthAuthURLResponse",
17081
+ "method": "get",
17082
+ "path": "/api/integrations/oauth/{provider}/auth"
17083
+ },
17084
+ "SetOAuthCredentials": {
17085
+ "request": "pushwoosh.rpc_v2.integrations.SetOAuthCredentialsRequest",
17086
+ "response": "pushwoosh.rpc_v2.integrations.SetOAuthCredentialsResponse",
17087
+ "method": "put",
17088
+ "path": "/api/integrations/oauth/{provider}/credentials"
17089
+ },
17090
+ "DeleteOAuthIntegration": {
17091
+ "request": "pushwoosh.rpc_v2.integrations.DeleteOAuthIntegrationRequest",
17092
+ "response": "pushwoosh.rpc_v2.integrations.DeleteOAuthIntegrationResponse",
17093
+ "method": "delete",
17094
+ "path": "/api/integrations/oauth/{provider}"
17095
+ },
17029
17096
  "GetMetaAuthURL": {
17030
17097
  "request": "pushwoosh.rpc_v2.integrations.GetMetaAuthURLRequest",
17031
17098
  "response": "pushwoosh.rpc_v2.integrations.GetMetaAuthURLResponse",
@@ -17131,7 +17198,8 @@ export const data = {
17131
17198
  "META",
17132
17199
  "INBOUND_WEBHOOK",
17133
17200
  "GOOGLE_BQ",
17134
- "GOOGLE"
17201
+ "GOOGLE",
17202
+ "AZURE"
17135
17203
  ]
17136
17204
  },
17137
17205
  "pushwoosh.rpc_v2.integrations.ImportSegmentPianoRequest": {
@@ -17597,6 +17665,90 @@ export const data = {
17597
17665
  "type": "I",
17598
17666
  "fields": {}
17599
17667
  },
17668
+ "pushwoosh.rpc_v2.integrations.GetOAuthIntegrationRequest": {
17669
+ "type": "I",
17670
+ "fields": {
17671
+ "provider": {
17672
+ "type": "string"
17673
+ }
17674
+ }
17675
+ },
17676
+ "pushwoosh.rpc_v2.integrations.GetOAuthIntegrationResponse": {
17677
+ "type": "I",
17678
+ "fields": {
17679
+ "connected": {
17680
+ "type": "boolean"
17681
+ },
17682
+ "identity": {
17683
+ "type": "string"
17684
+ },
17685
+ "scopes": {
17686
+ "type": "string",
17687
+ "array": true
17688
+ },
17689
+ "tokenValid": {
17690
+ "type": "boolean"
17691
+ },
17692
+ "connectedAt": {
17693
+ "type": "string"
17694
+ },
17695
+ "flow": {
17696
+ "type": "string"
17697
+ }
17698
+ }
17699
+ },
17700
+ "pushwoosh.rpc_v2.integrations.GetOAuthAuthURLRequest": {
17701
+ "type": "I",
17702
+ "fields": {
17703
+ "provider": {
17704
+ "type": "string"
17705
+ },
17706
+ "returnTo": {
17707
+ "type": "string"
17708
+ }
17709
+ }
17710
+ },
17711
+ "pushwoosh.rpc_v2.integrations.GetOAuthAuthURLResponse": {
17712
+ "type": "I",
17713
+ "fields": {
17714
+ "authUrl": {
17715
+ "type": "string"
17716
+ }
17717
+ }
17718
+ },
17719
+ "pushwoosh.rpc_v2.integrations.SetOAuthCredentialsRequest": {
17720
+ "type": "I",
17721
+ "fields": {
17722
+ "provider": {
17723
+ "type": "string"
17724
+ },
17725
+ "tenantId": {
17726
+ "type": "string"
17727
+ },
17728
+ "clientId": {
17729
+ "type": "string"
17730
+ },
17731
+ "clientSecret": {
17732
+ "type": "string"
17733
+ }
17734
+ }
17735
+ },
17736
+ "pushwoosh.rpc_v2.integrations.SetOAuthCredentialsResponse": {
17737
+ "type": "I",
17738
+ "fields": {}
17739
+ },
17740
+ "pushwoosh.rpc_v2.integrations.DeleteOAuthIntegrationRequest": {
17741
+ "type": "I",
17742
+ "fields": {
17743
+ "provider": {
17744
+ "type": "string"
17745
+ }
17746
+ }
17747
+ },
17748
+ "pushwoosh.rpc_v2.integrations.DeleteOAuthIntegrationResponse": {
17749
+ "type": "I",
17750
+ "fields": {}
17751
+ },
17600
17752
  "pushwoosh.rpc_v2.integrations.GetMetaAuthURLRequest": {
17601
17753
  "type": "I",
17602
17754
  "fields": {
package/integrations.d.ts CHANGED
@@ -16,6 +16,10 @@ export type IntegrationsService_DeleteStripeConfiguration = RpcMethod<DeleteStri
16
16
  export type IntegrationsService_GetGoogleAuthURL = RpcMethod<GetGoogleAuthURLRequest, GetGoogleAuthURLResponse>;
17
17
  export type IntegrationsService_GetGoogleConfiguration = RpcMethod<GetGoogleConfigurationRequest, GetGoogleConfigurationResponse>;
18
18
  export type IntegrationsService_DeleteGoogleConfiguration = RpcMethod<DeleteGoogleConfigurationRequest, DeleteGoogleConfigurationResponse>;
19
+ export type IntegrationsService_GetOAuthIntegration = RpcMethod<GetOAuthIntegrationRequest, GetOAuthIntegrationResponse>;
20
+ export type IntegrationsService_GetOAuthAuthURL = RpcMethod<GetOAuthAuthURLRequest, GetOAuthAuthURLResponse>;
21
+ export type IntegrationsService_SetOAuthCredentials = RpcMethod<SetOAuthCredentialsRequest, SetOAuthCredentialsResponse>;
22
+ export type IntegrationsService_DeleteOAuthIntegration = RpcMethod<DeleteOAuthIntegrationRequest, DeleteOAuthIntegrationResponse>;
19
23
  export type IntegrationsService_GetMetaAuthURL = RpcMethod<GetMetaAuthURLRequest, GetMetaAuthURLResponse>;
20
24
  export type IntegrationsService_HandleMetaAuthCallback = RpcMethod<HandleMetaAuthCallbackRequest, HandleMetaAuthCallbackResponse>;
21
25
  export type IntegrationsService_GetMetaConfiguration = RpcMethod<GetMetaConfigurationRequest, GetMetaConfigurationResponse>;
@@ -87,6 +91,17 @@ export interface IntegrationsService {
87
91
  GetGoogleConfiguration: IntegrationsService_GetGoogleConfiguration;
88
92
  /** 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
93
  DeleteGoogleConfiguration: IntegrationsService_DeleteGoogleConfiguration;
94
+ /**
95
+ * oauth
96
+ * Returns how one OAuth provider is connected for the current account: the identity, granted scopes, whether the stored grant is still valid, and which connect flow the provider uses. Use before offering a feature that calls that provider's API.
97
+ */
98
+ GetOAuthIntegration: IntegrationsService_GetOAuthIntegration;
99
+ /** Builds the consent URL of a provider connected through a browser redirect, given the control panel page to return to. Refused for providers connected with credentials instead. */
100
+ GetOAuthAuthURL: IntegrationsService_GetOAuthAuthURL;
101
+ /** Connects a provider that has no consent screen by storing the account's own application registration. The secret is write-only: it is never returned by any read. */
102
+ SetOAuthCredentials: IntegrationsService_SetOAuthCredentials;
103
+ /** Removes an OAuth integration for the current account; the grant is revoked at the provider and cannot be restored without connecting again. */
104
+ DeleteOAuthIntegration: IntegrationsService_DeleteOAuthIntegration;
90
105
  /**
91
106
  * meta
92
107
  * 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.
@@ -130,7 +145,7 @@ export interface IntegrationsService {
130
145
  ListGoogleBQTables: IntegrationsService_ListGoogleBQTables;
131
146
  }
132
147
  /** Integration contains all available integration for clients (to update props) */
133
- export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK' | 'GOOGLE_BQ' | 'GOOGLE';
148
+ export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK' | 'GOOGLE_BQ' | 'GOOGLE' | 'AZURE';
134
149
  export type ImportSegmentPianoRequest = {
135
150
  /** application code */
136
151
  application?: string;
@@ -330,6 +345,46 @@ export type GetGoogleConfigurationResponse = {
330
345
  };
331
346
  export type DeleteGoogleConfigurationRequest = {};
332
347
  export type DeleteGoogleConfigurationResponse = {};
348
+ export type GetOAuthIntegrationRequest = {
349
+ /** provider name integration-oauth knows, e.g. "google" or "azure" */
350
+ provider?: string;
351
+ };
352
+ export type GetOAuthIntegrationResponse = {
353
+ /** false when the account never connected this provider */
354
+ connected: boolean;
355
+ /** who the connection belongs to at the provider: an email, or the Entra tenant */
356
+ identity: string;
357
+ /** scopes actually granted */
358
+ scopes: string[];
359
+ /** false once the provider rejected the stored grant; reconnect required */
360
+ tokenValid: boolean;
361
+ /** RFC 3339 */
362
+ connectedAt: string;
363
+ /** "authorization_code" (consent screen) or "client_credentials" (credentials form); empty while the provider is not connected */
364
+ flow: string;
365
+ };
366
+ export type GetOAuthAuthURLRequest = {
367
+ provider?: string;
368
+ /** control panel URL the browser lands on after the consent screen */
369
+ returnTo?: string;
370
+ };
371
+ export type GetOAuthAuthURLResponse = {
372
+ authUrl: string;
373
+ };
374
+ export type SetOAuthCredentialsRequest = {
375
+ provider?: string;
376
+ /** directory the application lives in, for providers whose token endpoint is per tenant */
377
+ tenantId?: string;
378
+ /** application (client) id of the account's own registration */
379
+ clientId?: string;
380
+ /** its secret; write-only, never returned by a read */
381
+ clientSecret?: string;
382
+ };
383
+ export type SetOAuthCredentialsResponse = {};
384
+ export type DeleteOAuthIntegrationRequest = {
385
+ provider?: string;
386
+ };
387
+ export type DeleteOAuthIntegrationResponse = {};
333
388
  /** Meta messages */
334
389
  export type GetMetaAuthURLRequest = {
335
390
  /** 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.223",
3
+ "version": "0.2.225",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -282,6 +282,41 @@ export type MysqlConnection = {
282
282
  */
283
283
  params: Record<string, string>;
284
284
  };
285
+ /**
286
+ * MssqlConnection holds SQL Server / Microsoft Fabric connection parameters,
287
+ * stored by the backend as a sqlserver:// URL.
288
+ */
289
+ export type MssqlConnection = {
290
+ /**
291
+ * Database server host, e.g. a SQL Server hostname or a Microsoft Fabric
292
+ * SQL endpoint (<workspace>.datawarehouse.fabric.microsoft.com).
293
+ */
294
+ host: string;
295
+ /** Database server port. Defaults to 1433 if zero. */
296
+ port: number;
297
+ /**
298
+ * SQL login. When tenant_id is set, this is the Microsoft Entra
299
+ * application (client) ID of the service principal instead.
300
+ */
301
+ user: string;
302
+ /**
303
+ * Login password, or the client secret when tenant_id is set.
304
+ * Write-only: never returned by read methods.
305
+ */
306
+ password: string;
307
+ /** Database name. */
308
+ database: string;
309
+ /**
310
+ * Any additional go-mssqldb connection parameters (e.g. encrypt,
311
+ * TrustServerCertificate, connection timeout). encrypt defaults to true.
312
+ */
313
+ params: Record<string, string>;
314
+ /**
315
+ * Microsoft Entra tenant ID. Set → service principal login (fedauth), the only
316
+ * auth Microsoft Fabric accepts; empty → plain SQL login.
317
+ */
318
+ tenantId: string;
319
+ };
285
320
  /**
286
321
  * BigQueryConnection holds Google BigQuery connection parameters. The backend
287
322
  * stores them as a JSON blob in the connection params.
@@ -313,7 +348,11 @@ export type ExternalSegment_connection_bigquery = {
313
348
  type: 'bigquery';
314
349
  data: BigQueryConnection;
315
350
  };
316
- export type ExternalSegment_connection = ExternalSegment_connection_postgres | ExternalSegment_connection_mysql | ExternalSegment_connection_bigquery;
351
+ export type ExternalSegment_connection_mssql = {
352
+ type: 'mssql';
353
+ data: MssqlConnection;
354
+ };
355
+ export type ExternalSegment_connection = ExternalSegment_connection_postgres | ExternalSegment_connection_mysql | ExternalSegment_connection_bigquery | ExternalSegment_connection_mssql;
317
356
  /**
318
357
  * ExternalSegment is the full representation returned by read methods.
319
358
  * It exposes neither the raw connection string nor a database "kind" enum:
@@ -369,7 +408,11 @@ export type CreateRequest_connection_bigquery = {
369
408
  type: 'bigquery';
370
409
  data: BigQueryConnection;
371
410
  };
372
- export type CreateRequest_connection = CreateRequest_connection_postgres | CreateRequest_connection_mysql | CreateRequest_connection_bigquery;
411
+ export type CreateRequest_connection_mssql = {
412
+ type: 'mssql';
413
+ data: MssqlConnection;
414
+ };
415
+ export type CreateRequest_connection = CreateRequest_connection_postgres | CreateRequest_connection_mysql | CreateRequest_connection_bigquery | CreateRequest_connection_mssql;
373
416
  export type CreateRequest = {
374
417
  /** Application code the segment belongs to. */
375
418
  application?: string;
@@ -394,7 +437,11 @@ export type UpdateRequest_connection_bigquery = {
394
437
  type: 'bigquery';
395
438
  data: BigQueryConnection;
396
439
  };
397
- export type UpdateRequest_connection = UpdateRequest_connection_postgres | UpdateRequest_connection_mysql | UpdateRequest_connection_bigquery;
440
+ export type UpdateRequest_connection_mssql = {
441
+ type: 'mssql';
442
+ data: MssqlConnection;
443
+ };
444
+ export type UpdateRequest_connection = UpdateRequest_connection_postgres | UpdateRequest_connection_mysql | UpdateRequest_connection_bigquery | UpdateRequest_connection_mssql;
398
445
  export type UpdateRequest = {
399
446
  /** Application code the segment belongs to. */
400
447
  application?: string;
@@ -443,7 +490,11 @@ export type TestConnectionRequest_connection_bigquery = {
443
490
  type: 'bigquery';
444
491
  data: BigQueryConnection;
445
492
  };
446
- export type TestConnectionRequest_connection = TestConnectionRequest_connection_postgres | TestConnectionRequest_connection_mysql | TestConnectionRequest_connection_bigquery;
493
+ export type TestConnectionRequest_connection_mssql = {
494
+ type: 'mssql';
495
+ data: MssqlConnection;
496
+ };
497
+ export type TestConnectionRequest_connection = TestConnectionRequest_connection_postgres | TestConnectionRequest_connection_mysql | TestConnectionRequest_connection_bigquery | TestConnectionRequest_connection_mssql;
447
498
  export type TestConnectionRequest = {
448
499
  /** Application code the segment belongs to. */
449
500
  application?: string;