@pushwoosh/rpc-v2-http-api-data 0.2.445 → 0.2.446

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.
@@ -3,6 +3,7 @@ export type ApplicationsConfigurationsService_Configure = RpcMethod<Configuratio
3
3
  export type ApplicationsConfigurationsService_ListSmsProviders = RpcMethod<ListSmsProvidersRequest, ListSmsProvidersResponse>;
4
4
  export type ApplicationsConfigurationsService_SendTestSms = RpcMethod<SendTestSmsRequest, SendTestSmsResponse>;
5
5
  export type ApplicationsConfigurationsService_EnablePlatform = RpcMethod<EnablePlatformRequest, EnablePlatformResponse>;
6
+ export type ApplicationsConfigurationsService_CreatePassKitSigningRequest = RpcMethod<CreatePassKitSigningRequestRequest, CreatePassKitSigningRequestResponse>;
6
7
  export interface ApplicationsConfigurationsService {
7
8
  /** 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. */
8
9
  Configure: ApplicationsConfigurationsService_Configure;
@@ -12,6 +13,8 @@ export interface ApplicationsConfigurationsService {
12
13
  SendTestSms: ApplicationsConfigurationsService_SendTestSms;
13
14
  /** 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. */
14
15
  EnablePlatform: ApplicationsConfigurationsService_EnablePlatform;
16
+ /** Starts an Apple Wallet setup without a Mac: generates and keeps the private key for an application (code XXXXX-XXXXX) and returns the certificate signing request to upload to Apple when creating a Pass Type ID Certificate. Hand the .cer Apple issues back to update_platform_configuration (ios_passkit_configuration, key file only, no password). Calling again returns a request for the same key, so a file already uploaded to Apple keeps matching; rotate starts over with a new key. */
17
+ CreatePassKitSigningRequest: ApplicationsConfigurationsService_CreatePassKitSigningRequest;
15
18
  }
16
19
  export type AndroidConfiguration = {
17
20
  androidFramework: string;
@@ -85,6 +88,7 @@ export type IOSVoIPConfiguration = {
85
88
  * to api.push.apple.com.
86
89
  */
87
90
  export type IOSPassKitConfiguration = {
91
+ /** Either a .p12 with its password, or the bare .cer Apple issued for a request from create_passkit_signing_request (password left empty). */
88
92
  iosPasskitKeyFile: string;
89
93
  iosPasskitCertPassword: string;
90
94
  };
@@ -386,6 +390,17 @@ export type EnablePlatformRequest = {
386
390
  enable?: boolean;
387
391
  };
388
392
  export type EnablePlatformResponse = {};
393
+ export type CreatePassKitSigningRequestRequest = {
394
+ /** Application code (format XXXXX-XXXXX) to set Apple Wallet up for. */
395
+ code?: string;
396
+ /** Start over with a new key; a request given earlier stops matching. */
397
+ rotate?: boolean;
398
+ };
399
+ export type CreatePassKitSigningRequestResponse = {
400
+ /** PEM certificate signing request; save it as file_name and upload it to Apple. */
401
+ csr: string;
402
+ fileName: string;
403
+ };
389
404
  export type ListSmsProvidersRequest = {};
390
405
  export type ListSmsProvidersResponse = {
391
406
  providers: SmsProvider[];
package/data.js CHANGED
@@ -6231,6 +6231,12 @@ export const data = {
6231
6231
  "response": "pushwoosh.rpc_v2.applications_configurations.EnablePlatformResponse",
6232
6232
  "method": "post",
6233
6233
  "path": "/api/applications_configurations:enable/{code}"
6234
+ },
6235
+ "CreatePassKitSigningRequest": {
6236
+ "request": "pushwoosh.rpc_v2.applications_configurations.CreatePassKitSigningRequestRequest",
6237
+ "response": "pushwoosh.rpc_v2.applications_configurations.CreatePassKitSigningRequestResponse",
6238
+ "method": "post",
6239
+ "path": "/api/applications_configurations:passkit_signing_request/{code}"
6234
6240
  }
6235
6241
  }
6236
6242
  },
@@ -6917,6 +6923,28 @@ export const data = {
6917
6923
  "type": "I",
6918
6924
  "fields": {}
6919
6925
  },
6926
+ "pushwoosh.rpc_v2.applications_configurations.CreatePassKitSigningRequestRequest": {
6927
+ "type": "I",
6928
+ "fields": {
6929
+ "code": {
6930
+ "type": "string"
6931
+ },
6932
+ "rotate": {
6933
+ "type": "boolean"
6934
+ }
6935
+ }
6936
+ },
6937
+ "pushwoosh.rpc_v2.applications_configurations.CreatePassKitSigningRequestResponse": {
6938
+ "type": "I",
6939
+ "fields": {
6940
+ "csr": {
6941
+ "type": "string"
6942
+ },
6943
+ "fileName": {
6944
+ "type": "string"
6945
+ }
6946
+ }
6947
+ },
6920
6948
  "pushwoosh.rpc_v2.applications_configurations.ListSmsProvidersRequest": {
6921
6949
  "type": "I",
6922
6950
  "fields": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.445",
3
+ "version": "0.2.446",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",