@pushwoosh/rpc-v2-http-api-data 0.2.518 → 0.2.520

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
@@ -23645,6 +23645,60 @@ export const data = {
23645
23645
  "method": "delete",
23646
23646
  "path": "/api/integrations/snap/ad-accounts/{ad_account_id}/audiences/{audience_id}"
23647
23647
  },
23648
+ "GetTikTokAuthURL": {
23649
+ "request": "pushwoosh.rpc_v2.integrations.GetTikTokAuthURLRequest",
23650
+ "response": "pushwoosh.rpc_v2.integrations.GetTikTokAuthURLResponse",
23651
+ "method": "get",
23652
+ "path": "/api/integrations/tiktok/auth"
23653
+ },
23654
+ "GetTikTokConfiguration": {
23655
+ "request": "pushwoosh.rpc_v2.integrations.GetTikTokConfigurationRequest",
23656
+ "response": "pushwoosh.rpc_v2.integrations.GetTikTokConfigurationResponse",
23657
+ "method": "get",
23658
+ "path": "/api/integrations/configurations/tiktok"
23659
+ },
23660
+ "DeleteTikTokConfiguration": {
23661
+ "request": "pushwoosh.rpc_v2.integrations.DeleteTikTokConfigurationRequest",
23662
+ "response": "pushwoosh.rpc_v2.integrations.DeleteTikTokConfigurationResponse",
23663
+ "method": "delete",
23664
+ "path": "/api/integrations/configurations/tiktok"
23665
+ },
23666
+ "ListTikTokAdAccounts": {
23667
+ "request": "pushwoosh.rpc_v2.integrations.ListTikTokAdAccountsRequest",
23668
+ "response": "pushwoosh.rpc_v2.integrations.ListTikTokAdAccountsResponse",
23669
+ "method": "get",
23670
+ "path": "/api/integrations/tiktok/ad-accounts"
23671
+ },
23672
+ "ConnectTikTokAdAccounts": {
23673
+ "request": "pushwoosh.rpc_v2.integrations.ConnectTikTokAdAccountsRequest",
23674
+ "response": "pushwoosh.rpc_v2.integrations.ConnectTikTokAdAccountsResponse",
23675
+ "method": "post",
23676
+ "path": "/api/integrations/tiktok/ad-accounts/connect"
23677
+ },
23678
+ "DisconnectTikTokAdAccounts": {
23679
+ "request": "pushwoosh.rpc_v2.integrations.DisconnectTikTokAdAccountsRequest",
23680
+ "response": "pushwoosh.rpc_v2.integrations.DisconnectTikTokAdAccountsResponse",
23681
+ "method": "post",
23682
+ "path": "/api/integrations/tiktok/ad-accounts/disconnect"
23683
+ },
23684
+ "ListTikTokAudiences": {
23685
+ "request": "pushwoosh.rpc_v2.integrations.ListTikTokAudiencesRequest",
23686
+ "response": "pushwoosh.rpc_v2.integrations.ListTikTokAudiencesResponse",
23687
+ "method": "get",
23688
+ "path": "/api/integrations/tiktok/ad-accounts/{ad_account_id}/audiences"
23689
+ },
23690
+ "CreateTikTokAudience": {
23691
+ "request": "pushwoosh.rpc_v2.integrations.CreateTikTokAudienceRequest",
23692
+ "response": "pushwoosh.rpc_v2.integrations.CreateTikTokAudienceResponse",
23693
+ "method": "post",
23694
+ "path": "/api/integrations/tiktok/ad-accounts/{ad_account_id}/audiences"
23695
+ },
23696
+ "DeleteTikTokAudience": {
23697
+ "request": "pushwoosh.rpc_v2.integrations.DeleteTikTokAudienceRequest",
23698
+ "response": "pushwoosh.rpc_v2.integrations.DeleteTikTokAudienceResponse",
23699
+ "method": "delete",
23700
+ "path": "/api/integrations/tiktok/ad-accounts/{ad_account_id}/audiences/{audience_id}"
23701
+ },
23648
23702
  "SetMetaTagMapping": {
23649
23703
  "request": "pushwoosh.rpc_v2.integrations.SetMetaTagMappingRequest",
23650
23704
  "response": "pushwoosh.rpc_v2.integrations.SetMetaTagMappingResponse",
@@ -23738,7 +23792,8 @@ export const data = {
23738
23792
  "DYNAMICS",
23739
23793
  "GOOGLE_ADS",
23740
23794
  "FLIGHT_STATUS",
23741
- "SNAP"
23795
+ "SNAP",
23796
+ "TIKTOK"
23742
23797
  ]
23743
23798
  },
23744
23799
  "pushwoosh.rpc_v2.integrations.ImportSegmentPianoRequest": {
@@ -25070,6 +25125,188 @@ export const data = {
25070
25125
  }
25071
25126
  }
25072
25127
  },
25128
+ "pushwoosh.rpc_v2.integrations.TikTokAdAccountStatus": {
25129
+ "type": "E",
25130
+ "values": [
25131
+ "TIKTOK_AD_ACCOUNT_STATUS_UNSPECIFIED",
25132
+ "TIKTOK_AD_ACCOUNT_STATUS_CONNECTED",
25133
+ "TIKTOK_AD_ACCOUNT_STATUS_DISCONNECTED"
25134
+ ]
25135
+ },
25136
+ "pushwoosh.rpc_v2.integrations.TikTokAdAccount": {
25137
+ "type": "I",
25138
+ "fields": {
25139
+ "id": {
25140
+ "type": "string"
25141
+ },
25142
+ "name": {
25143
+ "type": "string"
25144
+ },
25145
+ "status": {
25146
+ "type": "pushwoosh.rpc_v2.integrations.TikTokAdAccountStatus"
25147
+ }
25148
+ }
25149
+ },
25150
+ "pushwoosh.rpc_v2.integrations.GetTikTokAuthURLRequest": {
25151
+ "type": "I",
25152
+ "fields": {
25153
+ "returnTo": {
25154
+ "type": "string"
25155
+ }
25156
+ }
25157
+ },
25158
+ "pushwoosh.rpc_v2.integrations.GetTikTokAuthURLResponse": {
25159
+ "type": "I",
25160
+ "fields": {
25161
+ "authUrl": {
25162
+ "type": "string"
25163
+ }
25164
+ }
25165
+ },
25166
+ "pushwoosh.rpc_v2.integrations.GetTikTokConfigurationRequest": {
25167
+ "type": "I",
25168
+ "fields": {}
25169
+ },
25170
+ "pushwoosh.rpc_v2.integrations.GetTikTokConfigurationResponse": {
25171
+ "type": "I",
25172
+ "fields": {
25173
+ "connected": {
25174
+ "type": "boolean"
25175
+ },
25176
+ "identity": {
25177
+ "type": "string"
25178
+ },
25179
+ "adAccounts": {
25180
+ "type": "pushwoosh.rpc_v2.integrations.TikTokAdAccount",
25181
+ "array": true
25182
+ }
25183
+ }
25184
+ },
25185
+ "pushwoosh.rpc_v2.integrations.DeleteTikTokConfigurationRequest": {
25186
+ "type": "I",
25187
+ "fields": {}
25188
+ },
25189
+ "pushwoosh.rpc_v2.integrations.DeleteTikTokConfigurationResponse": {
25190
+ "type": "I",
25191
+ "fields": {}
25192
+ },
25193
+ "pushwoosh.rpc_v2.integrations.ListTikTokAdAccountsRequest": {
25194
+ "type": "I",
25195
+ "fields": {}
25196
+ },
25197
+ "pushwoosh.rpc_v2.integrations.ListTikTokAdAccountsResponse": {
25198
+ "type": "I",
25199
+ "fields": {
25200
+ "adAccounts": {
25201
+ "type": "pushwoosh.rpc_v2.integrations.TikTokAdAccount",
25202
+ "array": true
25203
+ }
25204
+ }
25205
+ },
25206
+ "pushwoosh.rpc_v2.integrations.ConnectTikTokAdAccountsRequest": {
25207
+ "type": "I",
25208
+ "fields": {
25209
+ "adAccountIds": {
25210
+ "type": "string",
25211
+ "array": true
25212
+ }
25213
+ }
25214
+ },
25215
+ "pushwoosh.rpc_v2.integrations.ConnectTikTokAdAccountsResponse": {
25216
+ "type": "I",
25217
+ "fields": {
25218
+ "adAccounts": {
25219
+ "type": "pushwoosh.rpc_v2.integrations.TikTokAdAccount",
25220
+ "array": true
25221
+ }
25222
+ }
25223
+ },
25224
+ "pushwoosh.rpc_v2.integrations.DisconnectTikTokAdAccountsRequest": {
25225
+ "type": "I",
25226
+ "fields": {
25227
+ "adAccountIds": {
25228
+ "type": "string",
25229
+ "array": true
25230
+ }
25231
+ }
25232
+ },
25233
+ "pushwoosh.rpc_v2.integrations.TikTokAudience": {
25234
+ "type": "I",
25235
+ "fields": {
25236
+ "id": {
25237
+ "type": "string"
25238
+ },
25239
+ "name": {
25240
+ "type": "string"
25241
+ },
25242
+ "approximateCount": {
25243
+ "type": "number"
25244
+ }
25245
+ }
25246
+ },
25247
+ "pushwoosh.rpc_v2.integrations.ListTikTokAudiencesRequest": {
25248
+ "type": "I",
25249
+ "fields": {
25250
+ "adAccountId": {
25251
+ "type": "string"
25252
+ }
25253
+ }
25254
+ },
25255
+ "pushwoosh.rpc_v2.integrations.ListTikTokAudiencesResponse": {
25256
+ "type": "I",
25257
+ "fields": {
25258
+ "audiences": {
25259
+ "type": "pushwoosh.rpc_v2.integrations.TikTokAudience",
25260
+ "array": true
25261
+ }
25262
+ }
25263
+ },
25264
+ "pushwoosh.rpc_v2.integrations.CreateTikTokAudienceRequest": {
25265
+ "type": "I",
25266
+ "fields": {
25267
+ "adAccountId": {
25268
+ "type": "string"
25269
+ },
25270
+ "name": {
25271
+ "type": "string"
25272
+ },
25273
+ "description": {
25274
+ "type": "string"
25275
+ }
25276
+ }
25277
+ },
25278
+ "pushwoosh.rpc_v2.integrations.CreateTikTokAudienceResponse": {
25279
+ "type": "I",
25280
+ "fields": {
25281
+ "audience": {
25282
+ "type": "pushwoosh.rpc_v2.integrations.TikTokAudience"
25283
+ }
25284
+ }
25285
+ },
25286
+ "pushwoosh.rpc_v2.integrations.DeleteTikTokAudienceRequest": {
25287
+ "type": "I",
25288
+ "fields": {
25289
+ "adAccountId": {
25290
+ "type": "string"
25291
+ },
25292
+ "audienceId": {
25293
+ "type": "string"
25294
+ }
25295
+ }
25296
+ },
25297
+ "pushwoosh.rpc_v2.integrations.DeleteTikTokAudienceResponse": {
25298
+ "type": "I",
25299
+ "fields": {}
25300
+ },
25301
+ "pushwoosh.rpc_v2.integrations.DisconnectTikTokAdAccountsResponse": {
25302
+ "type": "I",
25303
+ "fields": {
25304
+ "adAccounts": {
25305
+ "type": "pushwoosh.rpc_v2.integrations.TikTokAdAccount",
25306
+ "array": true
25307
+ }
25308
+ }
25309
+ },
25073
25310
  "pushwoosh.rpc_v2.integrations.FlightStatusConfiguration": {
25074
25311
  "type": "I",
25075
25312
  "fields": {
@@ -38167,6 +38404,136 @@ export const data = {
38167
38404
  "type": "I",
38168
38405
  "fields": {}
38169
38406
  },
38407
+ "pushwoosh.rpc_v2.silent_hours.SilentHoursService": {
38408
+ "type": "S",
38409
+ "key": "silentHours",
38410
+ "methods": {
38411
+ "Get": {
38412
+ "request": "pushwoosh.rpc_v2.silent_hours.GetSilentHoursRequest",
38413
+ "response": "pushwoosh.rpc_v2.silent_hours.SilentHours",
38414
+ "method": "get",
38415
+ "path": "/api/silent_hours/{application}"
38416
+ },
38417
+ "Update": {
38418
+ "request": "pushwoosh.rpc_v2.silent_hours.UpdateSilentHoursRequest",
38419
+ "response": "pushwoosh.rpc_v2.silent_hours.UpdateSilentHoursResponse",
38420
+ "method": "put",
38421
+ "path": "/api/silent_hours/{application}"
38422
+ }
38423
+ }
38424
+ },
38425
+ "pushwoosh.rpc_v2.silent_hours.SilentHoursTimeOfDay": {
38426
+ "type": "I",
38427
+ "fields": {
38428
+ "hour": {
38429
+ "type": "number"
38430
+ },
38431
+ "minute": {
38432
+ "type": "number"
38433
+ }
38434
+ }
38435
+ },
38436
+ "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours": {
38437
+ "type": "I",
38438
+ "fields": {
38439
+ "enabled": {
38440
+ "type": "boolean"
38441
+ },
38442
+ "from": {
38443
+ "type": "pushwoosh.rpc_v2.silent_hours.SilentHoursTimeOfDay"
38444
+ },
38445
+ "to": {
38446
+ "type": "pushwoosh.rpc_v2.silent_hours.SilentHoursTimeOfDay"
38447
+ },
38448
+ "silentDays": {
38449
+ "type": "boolean",
38450
+ "array": true
38451
+ },
38452
+ "behavior": {
38453
+ "type": "string"
38454
+ }
38455
+ }
38456
+ },
38457
+ "pushwoosh.rpc_v2.silent_hours.SilentHours": {
38458
+ "type": "I",
38459
+ "fields": {
38460
+ "timezone": {
38461
+ "type": "string"
38462
+ },
38463
+ "push": {
38464
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38465
+ },
38466
+ "inApp": {
38467
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38468
+ },
38469
+ "email": {
38470
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38471
+ },
38472
+ "sms": {
38473
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38474
+ },
38475
+ "whatsApp": {
38476
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38477
+ },
38478
+ "line": {
38479
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38480
+ },
38481
+ "kakao": {
38482
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38483
+ },
38484
+ "telegram": {
38485
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38486
+ }
38487
+ }
38488
+ },
38489
+ "pushwoosh.rpc_v2.silent_hours.GetSilentHoursRequest": {
38490
+ "type": "I",
38491
+ "fields": {
38492
+ "application": {
38493
+ "type": "string"
38494
+ }
38495
+ }
38496
+ },
38497
+ "pushwoosh.rpc_v2.silent_hours.UpdateSilentHoursRequest": {
38498
+ "type": "I",
38499
+ "fields": {
38500
+ "application": {
38501
+ "type": "string"
38502
+ },
38503
+ "timezone": {
38504
+ "type": "string",
38505
+ "optional": true
38506
+ },
38507
+ "push": {
38508
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38509
+ },
38510
+ "inApp": {
38511
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38512
+ },
38513
+ "email": {
38514
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38515
+ },
38516
+ "sms": {
38517
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38518
+ },
38519
+ "whatsApp": {
38520
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38521
+ },
38522
+ "line": {
38523
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38524
+ },
38525
+ "kakao": {
38526
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38527
+ },
38528
+ "telegram": {
38529
+ "type": "pushwoosh.rpc_v2.silent_hours.ChannelSilentHours"
38530
+ }
38531
+ }
38532
+ },
38533
+ "pushwoosh.rpc_v2.silent_hours.UpdateSilentHoursResponse": {
38534
+ "type": "I",
38535
+ "fields": {}
38536
+ },
38170
38537
  "pushwoosh.rpc_v2.sms_presets.smsPresetsService": {
38171
38538
  "type": "S",
38172
38539
  "key": "smsPresets",
package/index.d.ts CHANGED
@@ -69,6 +69,7 @@ import { SdkIntegratorService as pushwoosh_rpc_v2_sdk_integrator_SdkIntegratorSe
69
69
  import { SegmentStatisticsService as pushwoosh_rpc_v2_segment_statistics_SegmentStatisticsService } from './segment_statistics';
70
70
  import { SegmentsService as pushwoosh_rpc_segments_v3_SegmentsService } from './pushwoosh_rpc_segments_v3';
71
71
  import { SendRateService as pushwoosh_rpc_v2_send_rate_SendRateService } from './send_rate';
72
+ import { SilentHoursService as pushwoosh_rpc_v2_silent_hours_SilentHoursService } from './silent_hours';
72
73
  import { smsPresetsService as pushwoosh_rpc_v2_sms_presets_smsPresetsService } from './sms_presets';
73
74
  import { SmsProviderTemplatesService as pushwoosh_rpc_v2_sms_provider_templates_SmsProviderTemplatesService } from './sms_provider_templates';
74
75
  import { StatisticsDashboardsService as pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService } from './statistics_dashboards';
@@ -154,6 +155,7 @@ export type API = {
154
155
  segmentStatistics: pushwoosh_rpc_v2_segment_statistics_SegmentStatisticsService;
155
156
  segments: pushwoosh_rpc_segments_v3_SegmentsService;
156
157
  sendRate: pushwoosh_rpc_v2_send_rate_SendRateService;
158
+ silentHours: pushwoosh_rpc_v2_silent_hours_SilentHoursService;
157
159
  smsPresets: pushwoosh_rpc_v2_sms_presets_smsPresetsService;
158
160
  smsProviderTemplates: pushwoosh_rpc_v2_sms_provider_templates_SmsProviderTemplatesService;
159
161
  statisticsDashboards: pushwoosh_rpc_v2_statistics_dashboards_StatisticsDashboardsService;
package/integrations.d.ts CHANGED
@@ -47,6 +47,15 @@ export type IntegrationsService_DisconnectSnapAdAccounts = RpcMethod<DisconnectS
47
47
  export type IntegrationsService_ListSnapAudiences = RpcMethod<ListSnapAudiencesRequest, ListSnapAudiencesResponse>;
48
48
  export type IntegrationsService_CreateSnapAudience = RpcMethod<CreateSnapAudienceRequest, CreateSnapAudienceResponse>;
49
49
  export type IntegrationsService_DeleteSnapAudience = RpcMethod<DeleteSnapAudienceRequest, DeleteSnapAudienceResponse>;
50
+ export type IntegrationsService_GetTikTokAuthURL = RpcMethod<GetTikTokAuthURLRequest, GetTikTokAuthURLResponse>;
51
+ export type IntegrationsService_GetTikTokConfiguration = RpcMethod<GetTikTokConfigurationRequest, GetTikTokConfigurationResponse>;
52
+ export type IntegrationsService_DeleteTikTokConfiguration = RpcMethod<DeleteTikTokConfigurationRequest, DeleteTikTokConfigurationResponse>;
53
+ export type IntegrationsService_ListTikTokAdAccounts = RpcMethod<ListTikTokAdAccountsRequest, ListTikTokAdAccountsResponse>;
54
+ export type IntegrationsService_ConnectTikTokAdAccounts = RpcMethod<ConnectTikTokAdAccountsRequest, ConnectTikTokAdAccountsResponse>;
55
+ export type IntegrationsService_DisconnectTikTokAdAccounts = RpcMethod<DisconnectTikTokAdAccountsRequest, DisconnectTikTokAdAccountsResponse>;
56
+ export type IntegrationsService_ListTikTokAudiences = RpcMethod<ListTikTokAudiencesRequest, ListTikTokAudiencesResponse>;
57
+ export type IntegrationsService_CreateTikTokAudience = RpcMethod<CreateTikTokAudienceRequest, CreateTikTokAudienceResponse>;
58
+ export type IntegrationsService_DeleteTikTokAudience = RpcMethod<DeleteTikTokAudienceRequest, DeleteTikTokAudienceResponse>;
50
59
  export type IntegrationsService_SetMetaTagMapping = RpcMethod<SetMetaTagMappingRequest, SetMetaTagMappingResponse>;
51
60
  export type IntegrationsService_GetGoogleBQConfiguration = RpcMethod<GetGoogleBQConfigurationRequest, GetGoogleBQConfigurationResponse>;
52
61
  export type IntegrationsService_CreateGoogleBQConfiguration = RpcMethod<CreateGoogleBQConfigurationRequest, CreateGoogleBQConfigurationResponse>;
@@ -189,6 +198,27 @@ export interface IntegrationsService {
189
198
  CreateSnapAudience: IntegrationsService_CreateSnapAudience;
190
199
  /** Deletes a first-party (customer list) segment at Snap. Removal is permanent and every journey audience sync step pointing at the segment stops working, so ask the user first. */
191
200
  DeleteSnapAudience: IntegrationsService_DeleteSnapAudience;
201
+ /**
202
+ * tiktok
203
+ * Builds the TikTok for Business authorization URL to start connecting a TikTok for Business account. The consent flow is owned by integration-oauth, which stores the grant and sends the browser back to return_to — there is no callback method here.
204
+ */
205
+ GetTikTokAuthURL: IntegrationsService_GetTikTokAuthURL;
206
+ /** Returns the TikTok integration configuration for the current account: whether it is connected, the identity behind the grant and the connected ad accounts. Use to inspect the current TikTok connection state. */
207
+ GetTikTokConfiguration: IntegrationsService_GetTikTokConfiguration;
208
+ /** Removes the entire TikTok connection for the current account: the chosen ad accounts and the OAuth grant itself. Use to fully disconnect; not recoverable without reconnecting. */
209
+ DeleteTikTokConfiguration: IntegrationsService_DeleteTikTokConfiguration;
210
+ /** Lists the TikTok advertisers the connection can reach, each marked as connected or not. Use to discover ad accounts before connecting them with connect_tiktok_ad_accounts. */
211
+ ListTikTokAdAccounts: IntegrationsService_ListTikTokAdAccounts;
212
+ /** Connects the given TikTok advertisers by id. Ids the connection cannot reach are refused, so an account cannot be stored that would only fail later at send time. */
213
+ ConnectTikTokAdAccounts: IntegrationsService_ConnectTikTokAdAccounts;
214
+ /** Disconnects the given TikTok advertisers by id while keeping the OAuth grant. Use to remove specific ad accounts; to drop the whole connection use delete_tiktok_integration. */
215
+ DisconnectTikTokAdAccounts: IntegrationsService_DisconnectTikTokAdAccounts;
216
+ /** Lists the audience segments of a connected TikTok ad account. Use to pick an audience for a journey audience sync point, or to see what create_tiktok_audience produced. */
217
+ ListTikTokAudiences: IntegrationsService_ListTikTokAudiences;
218
+ /** Creates an audience segment on a connected TikTok ad account. Use before syncing users: an upload targets a segment that already exists. */
219
+ CreateTikTokAudience: IntegrationsService_CreateTikTokAudience;
220
+ /** Deletes an audience segment at TikTok. Removal is permanent and every journey audience sync step pointing at the segment stops working, so ask the user first. */
221
+ DeleteTikTokAudience: IntegrationsService_DeleteTikTokAudience;
192
222
  /** 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. */
193
223
  SetMetaTagMapping: IntegrationsService_SetMetaTagMapping;
194
224
  /**
@@ -223,7 +253,7 @@ export interface IntegrationsService {
223
253
  DeleteFlightStatusSubscription: IntegrationsService_DeleteFlightStatusSubscription;
224
254
  }
225
255
  /** Integration contains all available integration for clients (to update props) */
226
- export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK' | 'GOOGLE_BQ' | 'GOOGLE' | 'AZURE' | 'SALESFORCE' | 'DYNAMICS' | 'GOOGLE_ADS' | 'FLIGHT_STATUS' | 'SNAP';
256
+ export type Integration = 'UNKNOWN' | 'SEGMENT' | 'PIANO' | 'WEBHOOK' | 'HUBSPOT' | 'SHOPIFY' | 'STRIPE' | 'META' | 'INBOUND_WEBHOOK' | 'GOOGLE_BQ' | 'GOOGLE' | 'AZURE' | 'SALESFORCE' | 'DYNAMICS' | 'GOOGLE_ADS' | 'FLIGHT_STATUS' | 'SNAP' | 'TIKTOK';
227
257
  export type ImportSegmentPianoRequest = {
228
258
  /** application code */
229
259
  application?: string;
@@ -773,6 +803,72 @@ export type DeleteSnapAudienceResponse = {};
773
803
  export type DisconnectSnapAdAccountsResponse = {
774
804
  adAccounts: SnapAdAccount[];
775
805
  };
806
+ export type TikTokAdAccountStatus = 'TIKTOK_AD_ACCOUNT_STATUS_UNSPECIFIED' | 'TIKTOK_AD_ACCOUNT_STATUS_CONNECTED' | 'TIKTOK_AD_ACCOUNT_STATUS_DISCONNECTED';
807
+ export type TikTokAdAccount = {
808
+ /** TikTok customer id, digits only */
809
+ id: string;
810
+ name: string;
811
+ status: TikTokAdAccountStatus;
812
+ };
813
+ export type GetTikTokAuthURLRequest = {
814
+ /** where the browser lands once the connection is stored */
815
+ returnTo?: string;
816
+ };
817
+ export type GetTikTokAuthURLResponse = {
818
+ authUrl: string;
819
+ };
820
+ export type GetTikTokConfigurationRequest = {};
821
+ export type GetTikTokConfigurationResponse = {
822
+ connected: boolean;
823
+ /** empty: TikTok issues no identity with the grant */
824
+ identity: string;
825
+ adAccounts: TikTokAdAccount[];
826
+ };
827
+ export type DeleteTikTokConfigurationRequest = {};
828
+ export type DeleteTikTokConfigurationResponse = {};
829
+ export type ListTikTokAdAccountsRequest = {};
830
+ export type ListTikTokAdAccountsResponse = {
831
+ adAccounts: TikTokAdAccount[];
832
+ };
833
+ export type ConnectTikTokAdAccountsRequest = {
834
+ adAccountIds?: string[];
835
+ };
836
+ export type ConnectTikTokAdAccountsResponse = {
837
+ adAccounts: TikTokAdAccount[];
838
+ };
839
+ export type DisconnectTikTokAdAccountsRequest = {
840
+ adAccountIds?: string[];
841
+ };
842
+ /** TikTokAudience is a audience segment on an ad account. */
843
+ export type TikTokAudience = {
844
+ id: string;
845
+ name: string;
846
+ /** TikTok's cover_num, 0 until matching runs (up to 48 hours) */
847
+ approximateCount: number;
848
+ };
849
+ export type ListTikTokAudiencesRequest = {
850
+ adAccountId?: string;
851
+ };
852
+ export type ListTikTokAudiencesResponse = {
853
+ audiences: TikTokAudience[];
854
+ };
855
+ export type CreateTikTokAudienceRequest = {
856
+ adAccountId?: string;
857
+ name?: string;
858
+ /** optional, the integration fills its own default when empty */
859
+ description?: string;
860
+ };
861
+ export type CreateTikTokAudienceResponse = {
862
+ audience: TikTokAudience;
863
+ };
864
+ export type DeleteTikTokAudienceRequest = {
865
+ adAccountId?: string;
866
+ audienceId?: string;
867
+ };
868
+ export type DeleteTikTokAudienceResponse = {};
869
+ export type DisconnectTikTokAdAccountsResponse = {
870
+ adAccounts: TikTokAdAccount[];
871
+ };
776
872
  export type FlightStatusConfiguration = {
777
873
  provider: string;
778
874
  apiKey: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.518",
3
+ "version": "0.2.520",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -0,0 +1,66 @@
1
+ import { RpcMethod } from './commonTypes';
2
+ export type SilentHoursService_Get = RpcMethod<GetSilentHoursRequest, SilentHours>;
3
+ export type SilentHoursService_Update = RpcMethod<UpdateSilentHoursRequest, UpdateSilentHoursResponse>;
4
+ export interface SilentHoursService {
5
+ /** Returns the application-level silent hours of an application code XXXXX-XXXXX, per channel (push, in-app, email, SMS, WhatsApp, LINE, Kakao, Telegram). Silent hours hold or drop marketing messages sent outside journeys during the configured window in the recipient's timezone. An application without settings returns every channel disabled. */
6
+ Get: SilentHoursService_Get;
7
+ /** Sets the application-level silent hours of an application code XXXXX-XXXXX, creating the settings if none exist. Only the channels present in the request are overwritten; the timezone is overwritten when supplied. */
8
+ Update: SilentHoursService_Update;
9
+ }
10
+ export type SilentHoursTimeOfDay = {
11
+ /** Hour of the day, 0-23. */
12
+ hour: number;
13
+ /** Minute of the hour, 0-59. */
14
+ minute: number;
15
+ };
16
+ export type ChannelSilentHours = {
17
+ /** Whether silent hours apply to the channel. */
18
+ enabled: boolean;
19
+ /** Start of the silent window in the recipient's local time. */
20
+ from: SilentHoursTimeOfDay;
21
+ /** End of the silent window in the recipient's local time; a window with from later than to spans midnight. */
22
+ to: SilentHoursTimeOfDay;
23
+ /** Seven flags indexed Sunday=0 ... Saturday=6; a set day is silent for the whole day. Empty means no whole silent days. */
24
+ silentDays: boolean[];
25
+ /** What happens to a message that falls into the window: "" (wait and send when the window ends, default) or "drop". */
26
+ behavior: string;
27
+ };
28
+ export type SilentHours = {
29
+ /** IANA timezone for recipients without an SDK device timezone (email, SMS and messenger-only users); empty means UTC. */
30
+ timezone: string;
31
+ push: ChannelSilentHours;
32
+ inApp: ChannelSilentHours;
33
+ email: ChannelSilentHours;
34
+ sms: ChannelSilentHours;
35
+ whatsApp: ChannelSilentHours;
36
+ line: ChannelSilentHours;
37
+ kakao: ChannelSilentHours;
38
+ telegram: ChannelSilentHours;
39
+ };
40
+ export type GetSilentHoursRequest = {
41
+ /** Application code XXXXX-XXXXX whose silent hours are read. */
42
+ application?: string;
43
+ };
44
+ export type UpdateSilentHoursRequest = {
45
+ /** Application code XXXXX-XXXXX whose silent hours are set. */
46
+ application?: string;
47
+ /** IANA timezone for recipients without an SDK device timezone; omit to leave it unchanged. */
48
+ timezone?: string;
49
+ /** Push channel; omit to leave it unchanged. */
50
+ push?: ChannelSilentHours;
51
+ /** In-app channel; omit to leave it unchanged. */
52
+ inApp?: ChannelSilentHours;
53
+ /** Email channel; omit to leave it unchanged. */
54
+ email?: ChannelSilentHours;
55
+ /** SMS channel; omit to leave it unchanged. */
56
+ sms?: ChannelSilentHours;
57
+ /** WhatsApp channel; omit to leave it unchanged. */
58
+ whatsApp?: ChannelSilentHours;
59
+ /** LINE channel; omit to leave it unchanged. */
60
+ line?: ChannelSilentHours;
61
+ /** Kakao channel; omit to leave it unchanged. */
62
+ kakao?: ChannelSilentHours;
63
+ /** Telegram channel; omit to leave it unchanged. */
64
+ telegram?: ChannelSilentHours;
65
+ };
66
+ export type UpdateSilentHoursResponse = {};
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};