@pushwoosh/rpc-v2-http-api-data 0.2.277 → 0.2.279

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/accounts.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { RpcMethod } from './commonTypes';
2
+ import { DeliveryTrackingState as pushwoosh_rpc_v2_applications_info_DeliveryTrackingState } from './applications_info';
2
3
  import { AiBuilderDocument as pushwoosh_aibuilder_v1_AiBuilderDocument } from './pushwoosh_aibuilder_v1';
3
4
  export type AccountsService_GetEmailStatisticCount = RpcMethod<GetEmailStatisticCountRequest, GetEmailStatisticCountResponse>;
4
5
  export type AccountsService_GetActiveDevicesCount = RpcMethod<GetActiveDevicesCountRequest, GetActiveDevicesCountResponse>;
@@ -117,6 +118,11 @@ export type GetOnboardingInfoResponse = {
117
118
  showSurvey: boolean;
118
119
  hasActiveSubscription: boolean;
119
120
  hasApplication: boolean;
121
+ /**
122
+ * Account-wide iOS delivery tracking: OK once any application reports deliveries,
123
+ * UNSPECIFIED when the account has no measured iOS application and the step does not apply.
124
+ */
125
+ iosDeliveryTracking: pushwoosh_rpc_v2_applications_info_DeliveryTrackingState;
120
126
  };
121
127
  export type UpdateOnboardingInfoRequest_answer_list = {
122
128
  answers: string[];
@@ -1,9 +1,12 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type ApplicationsConfigurationsService_Configure = RpcMethod<ConfigurationRequest, ConfigurationResponse>;
3
+ export type ApplicationsConfigurationsService_ListSmsProviders = RpcMethod<ListSmsProvidersRequest, ListSmsProvidersResponse>;
3
4
  export type ApplicationsConfigurationsService_EnablePlatform = RpcMethod<EnablePlatformRequest, EnablePlatformResponse>;
4
5
  export interface ApplicationsConfigurationsService {
5
6
  /** Saves the provider credentials for one delivery platform or channel of an application (code XXXXX-XXXXX) — APNs/FCM push keys, an SMS provider, email sender, Telegram/Viber token, Google Wallet, etc. — then enables that platform. Pick the matching kind in the oneof; some providers (Telegram, Huawei) also call the external provider API to register a webhook or validate the token. */
6
7
  Configure: ApplicationsConfigurationsService_Configure;
8
+ /** Lists the SMS providers an application can be configured with: the built-in ones and every published provider template from the catalog. A template carries a JSON Schema of the credential form to render, so a provider added to the catalog shows up here without a release. */
9
+ ListSmsProviders: ApplicationsConfigurationsService_ListSmsProviders;
7
10
  /** Enables or disables a single delivery platform (by numeric platform id) for an application (code XXXXX-XXXXX) without touching its stored credentials. Use to toggle a channel on or off; update_platform_configuration already enables a platform after saving its credentials. */
8
11
  EnablePlatform: ApplicationsConfigurationsService_EnablePlatform;
9
12
  }
@@ -172,7 +175,11 @@ export type SmsConfiguration_provider_smsapiro = {
172
175
  type: 'smsapiro';
173
176
  data: SmsApiRoConfiguration;
174
177
  };
175
- export type SmsConfiguration_provider = SmsConfiguration_provider_twilio | SmsConfiguration_provider_amazon | SmsConfiguration_provider_smsGlobal | SmsConfiguration_provider_smsala | SmsConfiguration_provider_capitolemobile | SmsConfiguration_provider_mobipace | SmsConfiguration_provider_smscenter | SmsConfiguration_provider_smstraffic | SmsConfiguration_provider_textmecoil | SmsConfiguration_provider_ablemobile | SmsConfiguration_provider_mstat | SmsConfiguration_provider_smsapiro;
178
+ export type SmsConfiguration_provider_template = {
179
+ type: 'template';
180
+ data: SmsTemplateConfiguration;
181
+ };
182
+ export type SmsConfiguration_provider = SmsConfiguration_provider_twilio | SmsConfiguration_provider_amazon | SmsConfiguration_provider_smsGlobal | SmsConfiguration_provider_smsala | SmsConfiguration_provider_capitolemobile | SmsConfiguration_provider_mobipace | SmsConfiguration_provider_smscenter | SmsConfiguration_provider_smstraffic | SmsConfiguration_provider_textmecoil | SmsConfiguration_provider_ablemobile | SmsConfiguration_provider_mstat | SmsConfiguration_provider_smsapiro | SmsConfiguration_provider_template;
176
183
  /**
177
184
  * SmsConfiguration carries per-application SMS provider credentials. Exactly
178
185
  * one provider must be set; the chosen oneof field selects which gateway
@@ -183,6 +190,14 @@ export type SmsConfiguration_provider = SmsConfiguration_provider_twilio | SmsCo
183
190
  export type SmsConfiguration = {
184
191
  provider: SmsConfiguration_provider;
185
192
  };
193
+ /**
194
+ * SmsTemplateConfiguration points an application at a published provider template and carries the
195
+ * values of its config_schema. A "format": "password" field left empty keeps the stored credential.
196
+ */
197
+ export type SmsTemplateConfiguration = {
198
+ slug: string;
199
+ config: Record<string, string>;
200
+ };
186
201
  export type SmsTwilioConfiguration = {
187
202
  twilioSmsFromNumber: string;
188
203
  twilioSid: string;
@@ -363,3 +378,20 @@ export type EnablePlatformRequest = {
363
378
  enable?: boolean;
364
379
  };
365
380
  export type EnablePlatformResponse = {};
381
+ export type ListSmsProvidersRequest = {};
382
+ export type ListSmsProvidersResponse = {
383
+ providers: SmsProvider[];
384
+ };
385
+ /**
386
+ * SmsProvider is one entry of the provider picker. A built-in provider is identified by its value
387
+ * alone; a template also carries the schema of the form to render and the version in use.
388
+ */
389
+ export type SmsProvider = {
390
+ value: string;
391
+ title: string;
392
+ isTemplate: boolean;
393
+ version: string;
394
+ configSchema: string;
395
+ icon: string;
396
+ description: string;
397
+ };
package/data.js CHANGED
@@ -1163,6 +1163,9 @@ export const data = {
1163
1163
  },
1164
1164
  "hasApplication": {
1165
1165
  "type": "boolean"
1166
+ },
1167
+ "iosDeliveryTracking": {
1168
+ "type": "pushwoosh.rpc_v2.applications_info.DeliveryTrackingState"
1166
1169
  }
1167
1170
  }
1168
1171
  },
@@ -5980,6 +5983,12 @@ export const data = {
5980
5983
  "method": "post",
5981
5984
  "path": "/api/applications_configurations/{code}"
5982
5985
  },
5986
+ "ListSmsProviders": {
5987
+ "request": "pushwoosh.rpc_v2.applications_configurations.ListSmsProvidersRequest",
5988
+ "response": "pushwoosh.rpc_v2.applications_configurations.ListSmsProvidersResponse",
5989
+ "method": "get",
5990
+ "path": "/api/applications_configurations:sms_providers"
5991
+ },
5983
5992
  "EnablePlatform": {
5984
5993
  "request": "pushwoosh.rpc_v2.applications_configurations.EnablePlatformRequest",
5985
5994
  "response": "pushwoosh.rpc_v2.applications_configurations.EnablePlatformResponse",
@@ -6326,6 +6335,9 @@ export const data = {
6326
6335
  },
6327
6336
  "smsapiro": {
6328
6337
  "type": "pushwoosh.rpc_v2.applications_configurations.SmsApiRoConfiguration"
6338
+ },
6339
+ "template": {
6340
+ "type": "pushwoosh.rpc_v2.applications_configurations.SmsTemplateConfiguration"
6329
6341
  }
6330
6342
  },
6331
6343
  "oneofs": {
@@ -6342,11 +6354,24 @@ export const data = {
6342
6354
  "textmecoil",
6343
6355
  "ablemobile",
6344
6356
  "mstat",
6345
- "smsapiro"
6357
+ "smsapiro",
6358
+ "template"
6346
6359
  ]
6347
6360
  }
6348
6361
  }
6349
6362
  },
6363
+ "pushwoosh.rpc_v2.applications_configurations.SmsTemplateConfiguration": {
6364
+ "type": "I",
6365
+ "fields": {
6366
+ "slug": {
6367
+ "type": "string"
6368
+ },
6369
+ "config": {
6370
+ "type": "string",
6371
+ "mapKeyType": "string"
6372
+ }
6373
+ }
6374
+ },
6350
6375
  "pushwoosh.rpc_v2.applications_configurations.SmsTwilioConfiguration": {
6351
6376
  "type": "I",
6352
6377
  "fields": {
@@ -6652,6 +6677,45 @@ export const data = {
6652
6677
  "type": "I",
6653
6678
  "fields": {}
6654
6679
  },
6680
+ "pushwoosh.rpc_v2.applications_configurations.ListSmsProvidersRequest": {
6681
+ "type": "I",
6682
+ "fields": {}
6683
+ },
6684
+ "pushwoosh.rpc_v2.applications_configurations.ListSmsProvidersResponse": {
6685
+ "type": "I",
6686
+ "fields": {
6687
+ "providers": {
6688
+ "type": "pushwoosh.rpc_v2.applications_configurations.SmsProvider",
6689
+ "array": true
6690
+ }
6691
+ }
6692
+ },
6693
+ "pushwoosh.rpc_v2.applications_configurations.SmsProvider": {
6694
+ "type": "I",
6695
+ "fields": {
6696
+ "value": {
6697
+ "type": "string"
6698
+ },
6699
+ "title": {
6700
+ "type": "string"
6701
+ },
6702
+ "isTemplate": {
6703
+ "type": "boolean"
6704
+ },
6705
+ "version": {
6706
+ "type": "string"
6707
+ },
6708
+ "configSchema": {
6709
+ "type": "string"
6710
+ },
6711
+ "icon": {
6712
+ "type": "string"
6713
+ },
6714
+ "description": {
6715
+ "type": "string"
6716
+ }
6717
+ }
6718
+ },
6655
6719
  "pushwoosh.rpc_v2.applications_controlgroup.ApplicationsControlGroupService": {
6656
6720
  "type": "S",
6657
6721
  "key": "applicationsControlGroup",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.277",
3
+ "version": "0.2.279",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",