pingram 1.0.16-alpha.1256 → 1.0.16-alpha.1257
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/dist/generated/src/apis/ProfileApi.d.ts +25 -1
- package/dist/generated/src/apis/ProfileApi.js +55 -0
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/DeleteAccountRequest.d.ts +32 -0
- package/dist/generated/src/models/DeleteAccountRequest.js +48 -0
- package/dist/generated/src/models/index.d.ts +1 -0
- package/dist/generated/src/models/index.js +1 -0
- package/package.json +1 -1
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AcceptInviteRequest, AcceptInviteResponse, ChangeEmailRequest, MFASetupRequest, MFASetupResponse, MFAStatusResponse, MFAVerifyRequest, SuccessResponse } from '../models/index';
|
|
13
|
+
import type { AcceptInviteRequest, AcceptInviteResponse, ChangeEmailRequest, DeleteAccountRequest, MFASetupRequest, MFASetupResponse, MFAStatusResponse, MFAVerifyRequest, SuccessResponse } from '../models/index';
|
|
14
14
|
export interface AcceptInviteOperationRequest {
|
|
15
15
|
acceptInviteRequest: AcceptInviteRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface ChangeEmailOperationRequest {
|
|
18
18
|
changeEmailRequest: ChangeEmailRequest;
|
|
19
19
|
}
|
|
20
|
+
export interface DeleteAccountOperationRequest {
|
|
21
|
+
deleteAccountRequest: DeleteAccountRequest;
|
|
22
|
+
}
|
|
20
23
|
export interface DisableMfaRequest {
|
|
21
24
|
type: string;
|
|
22
25
|
}
|
|
@@ -59,6 +62,19 @@ export interface ProfileApiInterface {
|
|
|
59
62
|
* Change the email address of the authenticated user
|
|
60
63
|
*/
|
|
61
64
|
changeEmail(changeEmailRequest: ChangeEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Permanently delete the authenticated user\'s account
|
|
68
|
+
* @param {DeleteAccountRequest} deleteAccountRequest
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
* @memberof ProfileApiInterface
|
|
72
|
+
*/
|
|
73
|
+
deleteAccountRaw(requestParameters: DeleteAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
|
|
74
|
+
/**
|
|
75
|
+
* Permanently delete the authenticated user\'s account
|
|
76
|
+
*/
|
|
77
|
+
deleteAccount(deleteAccountRequest: DeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
|
|
62
78
|
/**
|
|
63
79
|
*
|
|
64
80
|
* @summary Disable MFA for the authenticated user
|
|
@@ -131,6 +147,14 @@ export declare class ProfileApi extends runtime.BaseAPI implements ProfileApiInt
|
|
|
131
147
|
* Change the email address of the authenticated user
|
|
132
148
|
*/
|
|
133
149
|
changeEmail(changeEmailRequest: ChangeEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* Permanently delete the authenticated user\'s account
|
|
152
|
+
*/
|
|
153
|
+
deleteAccountRaw(requestParameters: DeleteAccountOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
|
|
154
|
+
/**
|
|
155
|
+
* Permanently delete the authenticated user\'s account
|
|
156
|
+
*/
|
|
157
|
+
deleteAccount(deleteAccountRequest: DeleteAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
|
|
134
158
|
/**
|
|
135
159
|
* Disable MFA for the authenticated user
|
|
136
160
|
*/
|
|
@@ -135,6 +135,61 @@ class ProfileApi extends runtime.BaseAPI {
|
|
|
135
135
|
const response = await this.changeEmailRaw({ changeEmailRequest: changeEmailRequest }, initOverrides);
|
|
136
136
|
return await response.value();
|
|
137
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Permanently delete the authenticated user\'s account
|
|
140
|
+
*/
|
|
141
|
+
async deleteAccountRaw(requestParameters, initOverrides) {
|
|
142
|
+
if (requestParameters['deleteAccountRequest'] == null) {
|
|
143
|
+
throw new runtime.RequiredError('deleteAccountRequest', 'Required parameter "deleteAccountRequest" was null or undefined when calling deleteAccount().');
|
|
144
|
+
}
|
|
145
|
+
const queryParameters = {};
|
|
146
|
+
const headerParameters = {};
|
|
147
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
148
|
+
if (this.configuration &&
|
|
149
|
+
(this.configuration.username !== undefined ||
|
|
150
|
+
this.configuration.password !== undefined)) {
|
|
151
|
+
headerParameters['Authorization'] =
|
|
152
|
+
'Basic ' +
|
|
153
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
154
|
+
}
|
|
155
|
+
if (this.configuration &&
|
|
156
|
+
(this.configuration.username !== undefined ||
|
|
157
|
+
this.configuration.password !== undefined)) {
|
|
158
|
+
headerParameters['Authorization'] =
|
|
159
|
+
'Basic ' +
|
|
160
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
161
|
+
}
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
const token = this.configuration.accessToken;
|
|
164
|
+
const tokenString = await token('apiKey', []);
|
|
165
|
+
if (tokenString) {
|
|
166
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
if (this.configuration &&
|
|
170
|
+
(this.configuration.username !== undefined ||
|
|
171
|
+
this.configuration.password !== undefined)) {
|
|
172
|
+
headerParameters['Authorization'] =
|
|
173
|
+
'Basic ' +
|
|
174
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
175
|
+
}
|
|
176
|
+
let urlPath = `/profile/delete-account`;
|
|
177
|
+
const response = await this.request({
|
|
178
|
+
path: urlPath,
|
|
179
|
+
method: 'POST',
|
|
180
|
+
headers: headerParameters,
|
|
181
|
+
query: queryParameters,
|
|
182
|
+
body: (0, index_1.DeleteAccountRequestToJSON)(requestParameters['deleteAccountRequest'])
|
|
183
|
+
}, initOverrides);
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessResponseFromJSON)(jsonValue));
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Permanently delete the authenticated user\'s account
|
|
188
|
+
*/
|
|
189
|
+
async deleteAccount(deleteAccountRequest, initOverrides) {
|
|
190
|
+
const response = await this.deleteAccountRaw({ deleteAccountRequest: deleteAccountRequest }, initOverrides);
|
|
191
|
+
return await response.value();
|
|
192
|
+
}
|
|
138
193
|
/**
|
|
139
194
|
* Disable MFA for the authenticated user
|
|
140
195
|
*/
|
|
@@ -32,7 +32,7 @@ export type { OrderNumberRequest, ReleaseNumberRequest, SearchAvailableRequest,
|
|
|
32
32
|
export { NumbersApi } from './NumbersApi';
|
|
33
33
|
export type { GetUsageHistoryRequest, OrganizationApiInterface } from './OrganizationApi';
|
|
34
34
|
export { OrganizationApi } from './OrganizationApi';
|
|
35
|
-
export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
|
|
35
|
+
export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, DeleteAccountOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
|
|
36
36
|
export { ProfileApi } from './ProfileApi';
|
|
37
37
|
export type { UpsertPushApnSettingsRequest, UpsertPushFcmSettingsRequest, PushSettingsApiInterface } from './PushSettingsApi';
|
|
38
38
|
export { PushSettingsApi } from './PushSettingsApi';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeleteAccountRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DeleteAccountRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeleteAccountRequest
|
|
22
|
+
*/
|
|
23
|
+
reason?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the DeleteAccountRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfDeleteAccountRequest(value: object): value is DeleteAccountRequest;
|
|
29
|
+
export declare function DeleteAccountRequestFromJSON(json: any): DeleteAccountRequest;
|
|
30
|
+
export declare function DeleteAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAccountRequest;
|
|
31
|
+
export declare function DeleteAccountRequestToJSON(json: any): DeleteAccountRequest;
|
|
32
|
+
export declare function DeleteAccountRequestToJSONTyped(value?: DeleteAccountRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDeleteAccountRequest = instanceOfDeleteAccountRequest;
|
|
17
|
+
exports.DeleteAccountRequestFromJSON = DeleteAccountRequestFromJSON;
|
|
18
|
+
exports.DeleteAccountRequestFromJSONTyped = DeleteAccountRequestFromJSONTyped;
|
|
19
|
+
exports.DeleteAccountRequestToJSON = DeleteAccountRequestToJSON;
|
|
20
|
+
exports.DeleteAccountRequestToJSONTyped = DeleteAccountRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DeleteAccountRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDeleteAccountRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function DeleteAccountRequestFromJSON(json) {
|
|
28
|
+
return DeleteAccountRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function DeleteAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
reason: json['reason'] == null ? undefined : json['reason']
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function DeleteAccountRequestToJSON(json) {
|
|
39
|
+
return DeleteAccountRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function DeleteAccountRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
reason: value['reason']
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -25,6 +25,7 @@ export * from './CreateAddressRequest';
|
|
|
25
25
|
export * from './CreateKeyRequest';
|
|
26
26
|
export * from './CreateKeyResponse';
|
|
27
27
|
export * from './CreateOrganizationResponse';
|
|
28
|
+
export * from './DeleteAccountRequest';
|
|
28
29
|
export * from './DeleteKeyResponse';
|
|
29
30
|
export * from './DeleteUserResponse';
|
|
30
31
|
export * from './DomainDnsCheck';
|
|
@@ -43,6 +43,7 @@ __exportStar(require("./CreateAddressRequest"), exports);
|
|
|
43
43
|
__exportStar(require("./CreateKeyRequest"), exports);
|
|
44
44
|
__exportStar(require("./CreateKeyResponse"), exports);
|
|
45
45
|
__exportStar(require("./CreateOrganizationResponse"), exports);
|
|
46
|
+
__exportStar(require("./DeleteAccountRequest"), exports);
|
|
46
47
|
__exportStar(require("./DeleteKeyResponse"), exports);
|
|
47
48
|
__exportStar(require("./DeleteUserResponse"), exports);
|
|
48
49
|
__exportStar(require("./DomainDnsCheck"), exports);
|
package/package.json
CHANGED