@pushwoosh/rpc-v2-http-api-data 0.2.210 → 0.2.212
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/applications_configurations.d.ts +13 -1
- package/data.js +34 -1
- package/package.json +1 -1
- package/whatsapp.d.ts +8 -0
|
@@ -164,7 +164,11 @@ export type SmsConfiguration_provider_mstat = {
|
|
|
164
164
|
type: 'mstat';
|
|
165
165
|
data: SmsMStatConfiguration;
|
|
166
166
|
};
|
|
167
|
-
export type
|
|
167
|
+
export type SmsConfiguration_provider_smsapiro = {
|
|
168
|
+
type: 'smsapiro';
|
|
169
|
+
data: SmsApiRoConfiguration;
|
|
170
|
+
};
|
|
171
|
+
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;
|
|
168
172
|
/**
|
|
169
173
|
* SmsConfiguration carries per-application SMS provider credentials. Exactly
|
|
170
174
|
* one provider must be set; the chosen oneof field selects which gateway
|
|
@@ -239,6 +243,14 @@ export type SmsMStatConfiguration = {
|
|
|
239
243
|
mstatAccountId: string;
|
|
240
244
|
mstatSender: string;
|
|
241
245
|
};
|
|
246
|
+
/**
|
|
247
|
+
* SmsApiRoConfiguration carries SMSAPI.ro (LINK Mobility) credentials. Auth is
|
|
248
|
+
* an OAuth bearer token; sender_id is the verified sender name or short code.
|
|
249
|
+
*/
|
|
250
|
+
export type SmsApiRoConfiguration = {
|
|
251
|
+
smsapiRoApiToken: string;
|
|
252
|
+
smsapiRoSenderId: string;
|
|
253
|
+
};
|
|
242
254
|
export type ConfigurationRequest_kind_androidConfiguration = {
|
|
243
255
|
type: 'androidConfiguration';
|
|
244
256
|
data: AndroidConfiguration;
|
package/data.js
CHANGED
|
@@ -6297,6 +6297,9 @@ export const data = {
|
|
|
6297
6297
|
},
|
|
6298
6298
|
"mstat": {
|
|
6299
6299
|
"type": "pushwoosh.rpc_v2.applications_configurations.SmsMStatConfiguration"
|
|
6300
|
+
},
|
|
6301
|
+
"smsapiro": {
|
|
6302
|
+
"type": "pushwoosh.rpc_v2.applications_configurations.SmsApiRoConfiguration"
|
|
6300
6303
|
}
|
|
6301
6304
|
},
|
|
6302
6305
|
"oneofs": {
|
|
@@ -6312,7 +6315,8 @@ export const data = {
|
|
|
6312
6315
|
"smstraffic",
|
|
6313
6316
|
"textmecoil",
|
|
6314
6317
|
"ablemobile",
|
|
6315
|
-
"mstat"
|
|
6318
|
+
"mstat",
|
|
6319
|
+
"smsapiro"
|
|
6316
6320
|
]
|
|
6317
6321
|
}
|
|
6318
6322
|
}
|
|
@@ -6483,6 +6487,17 @@ export const data = {
|
|
|
6483
6487
|
}
|
|
6484
6488
|
}
|
|
6485
6489
|
},
|
|
6490
|
+
"pushwoosh.rpc_v2.applications_configurations.SmsApiRoConfiguration": {
|
|
6491
|
+
"type": "I",
|
|
6492
|
+
"fields": {
|
|
6493
|
+
"smsapiRoApiToken": {
|
|
6494
|
+
"type": "string"
|
|
6495
|
+
},
|
|
6496
|
+
"smsapiRoSenderId": {
|
|
6497
|
+
"type": "string"
|
|
6498
|
+
}
|
|
6499
|
+
}
|
|
6500
|
+
},
|
|
6486
6501
|
"pushwoosh.rpc_v2.applications_configurations.ConfigurationRequest": {
|
|
6487
6502
|
"type": "I",
|
|
6488
6503
|
"fields": {
|
|
@@ -30673,6 +30688,12 @@ export const data = {
|
|
|
30673
30688
|
"response": "pushwoosh.rpc_v2.whatsapp.UpdateWelcomeMessageResponse",
|
|
30674
30689
|
"method": "put",
|
|
30675
30690
|
"path": "/api/whatsapp/welcome"
|
|
30691
|
+
},
|
|
30692
|
+
"DeleteWelcomeMessage": {
|
|
30693
|
+
"request": "pushwoosh.rpc_v2.whatsapp.DeleteWelcomeMessageRequest",
|
|
30694
|
+
"response": "pushwoosh.rpc_v2.whatsapp.DeleteWelcomeMessageResponse",
|
|
30695
|
+
"method": "delete",
|
|
30696
|
+
"path": "/api/whatsapp/welcome"
|
|
30676
30697
|
}
|
|
30677
30698
|
}
|
|
30678
30699
|
},
|
|
@@ -30861,6 +30882,18 @@ export const data = {
|
|
|
30861
30882
|
}
|
|
30862
30883
|
}
|
|
30863
30884
|
},
|
|
30885
|
+
"pushwoosh.rpc_v2.whatsapp.DeleteWelcomeMessageRequest": {
|
|
30886
|
+
"type": "I",
|
|
30887
|
+
"fields": {
|
|
30888
|
+
"application": {
|
|
30889
|
+
"type": "string"
|
|
30890
|
+
}
|
|
30891
|
+
}
|
|
30892
|
+
},
|
|
30893
|
+
"pushwoosh.rpc_v2.whatsapp.DeleteWelcomeMessageResponse": {
|
|
30894
|
+
"type": "I",
|
|
30895
|
+
"fields": {}
|
|
30896
|
+
},
|
|
30864
30897
|
"pushwoosh.rpc_v2.whatsapp_presets.WhatsAppPresetsService": {
|
|
30865
30898
|
"type": "S",
|
|
30866
30899
|
"key": "whatsAppPresets",
|
package/package.json
CHANGED
package/whatsapp.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export type WhatsAppService_AuthResponseCode = RpcMethod<AuthResponseCodeRequest
|
|
|
5
5
|
export type WhatsAppService_FetchCatalog = RpcMethod<FetchCatalogRequest, FetchCatalogResponse>;
|
|
6
6
|
export type WhatsAppService_GetWelcomeMessage = RpcMethod<GetWelcomeMessageRequest, GetWelcomeMessageResponse>;
|
|
7
7
|
export type WhatsAppService_UpdateWelcomeMessage = RpcMethod<UpdateWelcomeMessageRequest, UpdateWelcomeMessageResponse>;
|
|
8
|
+
export type WhatsAppService_DeleteWelcomeMessage = RpcMethod<DeleteWelcomeMessageRequest, DeleteWelcomeMessageResponse>;
|
|
8
9
|
export interface WhatsAppService {
|
|
9
10
|
/** Connects a WhatsApp Business Account to an application code via Meta Cloud API, storing the WABA and phone-number IDs, subscribing the number to Pushwoosh webhooks and registering it with Meta. Use for direct Meta onboarding; use connect_whatsapp_account_twilio for Twilio-routed senders. */
|
|
10
11
|
RegisterWABA: WhatsAppService_RegisterWABA;
|
|
@@ -18,6 +19,8 @@ export interface WhatsAppService {
|
|
|
18
19
|
GetWelcomeMessage: WhatsAppService_GetWelcomeMessage;
|
|
19
20
|
/** Creates or updates the WhatsApp welcome message of an application. Sending it enables reporting: every greeting is reported under a service campaign created on the first save. */
|
|
20
21
|
UpdateWelcomeMessage: WhatsAppService_UpdateWelcomeMessage;
|
|
22
|
+
/** Deletes the WhatsApp welcome message of an application together with its text and attachments; NOT_FOUND when the application has none. The reporting campaign survives, so the statistics of the greetings already sent stay readable. */
|
|
23
|
+
DeleteWelcomeMessage: WhatsAppService_DeleteWelcomeMessage;
|
|
21
24
|
}
|
|
22
25
|
export type RegisterWABARequest = {
|
|
23
26
|
/** application code */
|
|
@@ -100,3 +103,8 @@ export type UpdateWelcomeMessageRequest = {
|
|
|
100
103
|
export type UpdateWelcomeMessageResponse = {
|
|
101
104
|
welcomeMessage: WelcomeMessage;
|
|
102
105
|
};
|
|
106
|
+
export type DeleteWelcomeMessageRequest = {
|
|
107
|
+
/** application code */
|
|
108
|
+
application?: string;
|
|
109
|
+
};
|
|
110
|
+
export type DeleteWelcomeMessageResponse = {};
|