pingram 1.0.40 → 1.0.41
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/AccountApi.d.ts +77 -9
- package/dist/generated/src/apis/AccountApi.js +164 -4
- package/dist/generated/src/apis/WebhooksApi.d.ts +12 -12
- package/dist/generated/src/apis/WebhooksApi.js +6 -6
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/AccountGetResponseBillingAlerts.d.ts +1 -1
- package/dist/generated/src/models/AccountPaymentMethods.d.ts +51 -0
- package/dist/generated/src/models/AccountPaymentMethods.js +64 -0
- package/dist/generated/src/models/AccountPaymentMethodsPaymentMethodsInner.d.ts +56 -0
- package/dist/generated/src/models/AccountPaymentMethodsPaymentMethodsInner.js +66 -0
- package/dist/generated/src/models/AssignPaymentMethodRequest.d.ts +47 -0
- package/dist/generated/src/models/AssignPaymentMethodRequest.js +63 -0
- package/dist/generated/src/models/BillingPostResponseBody.d.ts +1 -1
- package/dist/generated/src/models/ConfirmChangeEmailRequest.d.ts +6 -0
- package/dist/generated/src/models/ConfirmChangeEmailRequest.js +4 -2
- package/dist/generated/src/models/ConfirmChangeEmailResponse.d.ts +38 -0
- package/dist/generated/src/models/ConfirmChangeEmailResponse.js +55 -0
- package/dist/generated/src/models/ConfirmPasswordChangeRequest.d.ts +38 -0
- package/dist/generated/src/models/ConfirmPasswordChangeRequest.js +54 -0
- package/dist/generated/src/models/CreatePaymentMethodSetupRequest.d.ts +38 -0
- package/dist/generated/src/models/CreatePaymentMethodSetupRequest.js +54 -0
- package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.d.ts +1 -1
- package/dist/generated/src/models/LogsGetResponseLogsInner.d.ts +6 -0
- package/dist/generated/src/models/LogsGetResponseLogsInner.js +4 -0
- package/dist/generated/src/models/PasswordStatusResponse.d.ts +38 -0
- package/dist/generated/src/models/PasswordStatusResponse.js +54 -0
- package/dist/generated/src/models/PaymentMethodSetup.d.ts +38 -0
- package/dist/generated/src/models/PaymentMethodSetup.js +54 -0
- package/dist/generated/src/models/SignInUsernameRequest.d.ts +32 -0
- package/dist/generated/src/models/SignInUsernameRequest.js +50 -0
- package/dist/generated/src/models/SignInUsernameResponse.d.ts +32 -0
- package/dist/generated/src/models/SignInUsernameResponse.js +50 -0
- package/dist/generated/src/models/StartChangeEmailRequest.d.ts +9 -3
- package/dist/generated/src/models/StartChangeEmailRequest.js +3 -3
- package/dist/generated/src/models/StartPasswordChangeRequest.d.ts +44 -0
- package/dist/generated/src/models/StartPasswordChangeRequest.js +54 -0
- package/dist/generated/src/models/WebhookEndpoint.d.ts +8 -1
- package/dist/generated/src/models/WebhookEndpoint.js +7 -2
- package/dist/generated/src/models/WebhookEndpointBasicAuth.d.ts +38 -0
- package/dist/generated/src/models/WebhookEndpointBasicAuth.js +54 -0
- package/dist/generated/src/models/WebhookEndpointUpsertRequest.d.ts +8 -1
- package/dist/generated/src/models/WebhookEndpointUpsertRequest.js +7 -2
- package/dist/generated/src/models/WebhookEndpointUpsertRequestBasicAuth.d.ts +38 -0
- package/dist/generated/src/models/WebhookEndpointUpsertRequestBasicAuth.js +52 -0
- package/dist/generated/src/models/WebhookEndpointsResponseEndpointsInner.d.ts +8 -1
- package/dist/generated/src/models/WebhookEndpointsResponseEndpointsInner.js +7 -2
- package/dist/generated/src/models/index.d.ts +13 -0
- package/dist/generated/src/models/index.js +13 -0
- package/dist/src/client.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* Whether the signed-in account has a password, and which social providers are linked.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PasswordStatusResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PasswordStatusResponse {
|
|
18
|
+
/**
|
|
19
|
+
* False only when the account is still a social sign-in with no password.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PasswordStatusResponse
|
|
22
|
+
*/
|
|
23
|
+
hasPassword: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Linked social sign-in providers, such as Google.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof PasswordStatusResponse
|
|
28
|
+
*/
|
|
29
|
+
providers: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PasswordStatusResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPasswordStatusResponse(value: object): value is PasswordStatusResponse;
|
|
35
|
+
export declare function PasswordStatusResponseFromJSON(json: any): PasswordStatusResponse;
|
|
36
|
+
export declare function PasswordStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordStatusResponse;
|
|
37
|
+
export declare function PasswordStatusResponseToJSON(json: any): PasswordStatusResponse;
|
|
38
|
+
export declare function PasswordStatusResponseToJSONTyped(value?: PasswordStatusResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPasswordStatusResponse = instanceOfPasswordStatusResponse;
|
|
17
|
+
exports.PasswordStatusResponseFromJSON = PasswordStatusResponseFromJSON;
|
|
18
|
+
exports.PasswordStatusResponseFromJSONTyped = PasswordStatusResponseFromJSONTyped;
|
|
19
|
+
exports.PasswordStatusResponseToJSON = PasswordStatusResponseToJSON;
|
|
20
|
+
exports.PasswordStatusResponseToJSONTyped = PasswordStatusResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PasswordStatusResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPasswordStatusResponse(value) {
|
|
25
|
+
if (!('hasPassword' in value) || value['hasPassword'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('providers' in value) || value['providers'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PasswordStatusResponseFromJSON(json) {
|
|
32
|
+
return PasswordStatusResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PasswordStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
hasPassword: json['hasPassword'],
|
|
40
|
+
providers: json['providers']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PasswordStatusResponseToJSON(json) {
|
|
44
|
+
return PasswordStatusResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PasswordStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
hasPassword: value['hasPassword'],
|
|
52
|
+
providers: value['providers']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* POST /account/payment-methods/setup response.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PaymentMethodSetup
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentMethodSetup {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PaymentMethodSetup
|
|
22
|
+
*/
|
|
23
|
+
sessionId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PaymentMethodSetup
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PaymentMethodSetup interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPaymentMethodSetup(value: object): value is PaymentMethodSetup;
|
|
35
|
+
export declare function PaymentMethodSetupFromJSON(json: any): PaymentMethodSetup;
|
|
36
|
+
export declare function PaymentMethodSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodSetup;
|
|
37
|
+
export declare function PaymentMethodSetupToJSON(json: any): PaymentMethodSetup;
|
|
38
|
+
export declare function PaymentMethodSetupToJSONTyped(value?: PaymentMethodSetup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPaymentMethodSetup = instanceOfPaymentMethodSetup;
|
|
17
|
+
exports.PaymentMethodSetupFromJSON = PaymentMethodSetupFromJSON;
|
|
18
|
+
exports.PaymentMethodSetupFromJSONTyped = PaymentMethodSetupFromJSONTyped;
|
|
19
|
+
exports.PaymentMethodSetupToJSON = PaymentMethodSetupToJSON;
|
|
20
|
+
exports.PaymentMethodSetupToJSONTyped = PaymentMethodSetupToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PaymentMethodSetup interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPaymentMethodSetup(value) {
|
|
25
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PaymentMethodSetupFromJSON(json) {
|
|
32
|
+
return PaymentMethodSetupFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PaymentMethodSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
sessionId: json['sessionId'],
|
|
40
|
+
url: json['url']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PaymentMethodSetupToJSON(json) {
|
|
44
|
+
return PaymentMethodSetupToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PaymentMethodSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
sessionId: value['sessionId'],
|
|
52
|
+
url: value['url']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 SignInUsernameRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SignInUsernameRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SignInUsernameRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SignInUsernameRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSignInUsernameRequest(value: object): value is SignInUsernameRequest;
|
|
29
|
+
export declare function SignInUsernameRequestFromJSON(json: any): SignInUsernameRequest;
|
|
30
|
+
export declare function SignInUsernameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignInUsernameRequest;
|
|
31
|
+
export declare function SignInUsernameRequestToJSON(json: any): SignInUsernameRequest;
|
|
32
|
+
export declare function SignInUsernameRequestToJSONTyped(value?: SignInUsernameRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfSignInUsernameRequest = instanceOfSignInUsernameRequest;
|
|
17
|
+
exports.SignInUsernameRequestFromJSON = SignInUsernameRequestFromJSON;
|
|
18
|
+
exports.SignInUsernameRequestFromJSONTyped = SignInUsernameRequestFromJSONTyped;
|
|
19
|
+
exports.SignInUsernameRequestToJSON = SignInUsernameRequestToJSON;
|
|
20
|
+
exports.SignInUsernameRequestToJSONTyped = SignInUsernameRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SignInUsernameRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSignInUsernameRequest(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SignInUsernameRequestFromJSON(json) {
|
|
30
|
+
return SignInUsernameRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SignInUsernameRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
email: json['email']
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SignInUsernameRequestToJSON(json) {
|
|
41
|
+
return SignInUsernameRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SignInUsernameRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
email: value['email']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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
|
+
* Cognito username to pass to sign-in and password reset.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SignInUsernameResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SignInUsernameResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SignInUsernameResponse
|
|
22
|
+
*/
|
|
23
|
+
username: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SignInUsernameResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSignInUsernameResponse(value: object): value is SignInUsernameResponse;
|
|
29
|
+
export declare function SignInUsernameResponseFromJSON(json: any): SignInUsernameResponse;
|
|
30
|
+
export declare function SignInUsernameResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignInUsernameResponse;
|
|
31
|
+
export declare function SignInUsernameResponseToJSON(json: any): SignInUsernameResponse;
|
|
32
|
+
export declare function SignInUsernameResponseToJSONTyped(value?: SignInUsernameResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfSignInUsernameResponse = instanceOfSignInUsernameResponse;
|
|
17
|
+
exports.SignInUsernameResponseFromJSON = SignInUsernameResponseFromJSON;
|
|
18
|
+
exports.SignInUsernameResponseFromJSONTyped = SignInUsernameResponseFromJSONTyped;
|
|
19
|
+
exports.SignInUsernameResponseToJSON = SignInUsernameResponseToJSON;
|
|
20
|
+
exports.SignInUsernameResponseToJSONTyped = SignInUsernameResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SignInUsernameResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSignInUsernameResponse(value) {
|
|
25
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SignInUsernameResponseFromJSON(json) {
|
|
30
|
+
return SignInUsernameResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SignInUsernameResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
username: json['username']
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SignInUsernameResponseToJSON(json) {
|
|
41
|
+
return SignInUsernameResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SignInUsernameResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
username: value['username']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -22,13 +22,19 @@ export interface StartChangeEmailRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
newEmail: string;
|
|
24
24
|
/**
|
|
25
|
-
* Current account password. Required
|
|
25
|
+
* Current account password. Required when the account already has a password.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof StartChangeEmailRequest
|
|
28
28
|
*/
|
|
29
|
-
password
|
|
29
|
+
password?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Password to set. Required when the account has no password yet, so the new email address can be used to sign in after social sign-in is removed.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StartChangeEmailRequest
|
|
34
|
+
*/
|
|
35
|
+
newPassword?: string;
|
|
36
|
+
/**
|
|
37
|
+
* TOTP code. Required when software-token MFA is enabled on an account that has a password.
|
|
32
38
|
* @type {string}
|
|
33
39
|
* @memberof StartChangeEmailRequest
|
|
34
40
|
*/
|
|
@@ -24,8 +24,6 @@ exports.StartChangeEmailRequestToJSONTyped = StartChangeEmailRequestToJSONTyped;
|
|
|
24
24
|
function instanceOfStartChangeEmailRequest(value) {
|
|
25
25
|
if (!('newEmail' in value) || value['newEmail'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function StartChangeEmailRequestFromJSON(json) {
|
|
@@ -37,7 +35,8 @@ function StartChangeEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
35
|
}
|
|
38
36
|
return {
|
|
39
37
|
newEmail: json['newEmail'],
|
|
40
|
-
password: json['password'],
|
|
38
|
+
password: json['password'] == null ? undefined : json['password'],
|
|
39
|
+
newPassword: json['newPassword'] == null ? undefined : json['newPassword'],
|
|
41
40
|
mfaCode: json['mfaCode'] == null ? undefined : json['mfaCode']
|
|
42
41
|
};
|
|
43
42
|
}
|
|
@@ -51,6 +50,7 @@ function StartChangeEmailRequestToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
51
50
|
return {
|
|
52
51
|
newEmail: value['newEmail'],
|
|
53
52
|
password: value['password'],
|
|
53
|
+
newPassword: value['newPassword'],
|
|
54
54
|
mfaCode: value['mfaCode']
|
|
55
55
|
};
|
|
56
56
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 StartPasswordChangeRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StartPasswordChangeRequest {
|
|
18
|
+
/**
|
|
19
|
+
* New password.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StartPasswordChangeRequest
|
|
22
|
+
*/
|
|
23
|
+
password: string;
|
|
24
|
+
/**
|
|
25
|
+
* Current password. Required when the account already has one.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StartPasswordChangeRequest
|
|
28
|
+
*/
|
|
29
|
+
currentPassword?: string;
|
|
30
|
+
/**
|
|
31
|
+
* TOTP code. Required when software-token MFA is enabled and the account has a password.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StartPasswordChangeRequest
|
|
34
|
+
*/
|
|
35
|
+
mfaCode?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StartPasswordChangeRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStartPasswordChangeRequest(value: object): value is StartPasswordChangeRequest;
|
|
41
|
+
export declare function StartPasswordChangeRequestFromJSON(json: any): StartPasswordChangeRequest;
|
|
42
|
+
export declare function StartPasswordChangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartPasswordChangeRequest;
|
|
43
|
+
export declare function StartPasswordChangeRequestToJSON(json: any): StartPasswordChangeRequest;
|
|
44
|
+
export declare function StartPasswordChangeRequestToJSONTyped(value?: StartPasswordChangeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfStartPasswordChangeRequest = instanceOfStartPasswordChangeRequest;
|
|
17
|
+
exports.StartPasswordChangeRequestFromJSON = StartPasswordChangeRequestFromJSON;
|
|
18
|
+
exports.StartPasswordChangeRequestFromJSONTyped = StartPasswordChangeRequestFromJSONTyped;
|
|
19
|
+
exports.StartPasswordChangeRequestToJSON = StartPasswordChangeRequestToJSON;
|
|
20
|
+
exports.StartPasswordChangeRequestToJSONTyped = StartPasswordChangeRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StartPasswordChangeRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStartPasswordChangeRequest(value) {
|
|
25
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function StartPasswordChangeRequestFromJSON(json) {
|
|
30
|
+
return StartPasswordChangeRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function StartPasswordChangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
password: json['password'],
|
|
38
|
+
currentPassword: json['currentPassword'] == null ? undefined : json['currentPassword'],
|
|
39
|
+
mfaCode: json['mfaCode'] == null ? undefined : json['mfaCode']
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function StartPasswordChangeRequestToJSON(json) {
|
|
43
|
+
return StartPasswordChangeRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function StartPasswordChangeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
password: value['password'],
|
|
51
|
+
currentPassword: value['currentPassword'],
|
|
52
|
+
mfaCode: value['mfaCode']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { WebhookEndpointBasicAuth } from './WebhookEndpointBasicAuth';
|
|
12
13
|
/**
|
|
13
14
|
* Destination URL that receives signed event payloads for a set of subscribed events.
|
|
14
15
|
* @export
|
|
@@ -22,7 +23,7 @@ export interface WebhookEndpoint {
|
|
|
22
23
|
*/
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
25
|
-
* Destination URL that receives signed JSON event payloads.
|
|
26
|
+
* Destination URL that receives signed JSON event payloads. Credentials are not included in this URL.
|
|
26
27
|
* @type {string}
|
|
27
28
|
* @memberof WebhookEndpoint
|
|
28
29
|
*/
|
|
@@ -39,6 +40,12 @@ export interface WebhookEndpoint {
|
|
|
39
40
|
* @memberof WebhookEndpoint
|
|
40
41
|
*/
|
|
41
42
|
secret: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {WebhookEndpointBasicAuth}
|
|
46
|
+
* @memberof WebhookEndpoint
|
|
47
|
+
*/
|
|
48
|
+
basicAuth?: WebhookEndpointBasicAuth;
|
|
42
49
|
}
|
|
43
50
|
/**
|
|
44
51
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.WebhookEndpointFromJSON = WebhookEndpointFromJSON;
|
|
|
19
19
|
exports.WebhookEndpointFromJSONTyped = WebhookEndpointFromJSONTyped;
|
|
20
20
|
exports.WebhookEndpointToJSON = WebhookEndpointToJSON;
|
|
21
21
|
exports.WebhookEndpointToJSONTyped = WebhookEndpointToJSONTyped;
|
|
22
|
+
const WebhookEndpointBasicAuth_1 = require("./WebhookEndpointBasicAuth");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -74,7 +75,10 @@ function WebhookEndpointFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
75
|
id: json['id'],
|
|
75
76
|
webhook: json['webhook'],
|
|
76
77
|
events: json['events'],
|
|
77
|
-
secret: json['secret']
|
|
78
|
+
secret: json['secret'],
|
|
79
|
+
basicAuth: json['basicAuth'] == null
|
|
80
|
+
? undefined
|
|
81
|
+
: (0, WebhookEndpointBasicAuth_1.WebhookEndpointBasicAuthFromJSON)(json['basicAuth'])
|
|
78
82
|
};
|
|
79
83
|
}
|
|
80
84
|
function WebhookEndpointToJSON(json) {
|
|
@@ -88,6 +92,7 @@ function WebhookEndpointToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
92
|
id: value['id'],
|
|
89
93
|
webhook: value['webhook'],
|
|
90
94
|
events: value['events'],
|
|
91
|
-
secret: value['secret']
|
|
95
|
+
secret: value['secret'],
|
|
96
|
+
basicAuth: (0, WebhookEndpointBasicAuth_1.WebhookEndpointBasicAuthToJSON)(value['basicAuth'])
|
|
92
97
|
};
|
|
93
98
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
* HTTP Basic credentials as returned by the API. The password is never included.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WebhookEndpointBasicAuth
|
|
16
|
+
*/
|
|
17
|
+
export interface WebhookEndpointBasicAuth {
|
|
18
|
+
/**
|
|
19
|
+
* Username sent on the Authorization header.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WebhookEndpointBasicAuth
|
|
22
|
+
*/
|
|
23
|
+
username: string;
|
|
24
|
+
/**
|
|
25
|
+
* True when a password is stored. The password itself is not returned.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof WebhookEndpointBasicAuth
|
|
28
|
+
*/
|
|
29
|
+
passwordSet: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the WebhookEndpointBasicAuth interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfWebhookEndpointBasicAuth(value: object): value is WebhookEndpointBasicAuth;
|
|
35
|
+
export declare function WebhookEndpointBasicAuthFromJSON(json: any): WebhookEndpointBasicAuth;
|
|
36
|
+
export declare function WebhookEndpointBasicAuthFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookEndpointBasicAuth;
|
|
37
|
+
export declare function WebhookEndpointBasicAuthToJSON(json: any): WebhookEndpointBasicAuth;
|
|
38
|
+
export declare function WebhookEndpointBasicAuthToJSONTyped(value?: WebhookEndpointBasicAuth | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfWebhookEndpointBasicAuth = instanceOfWebhookEndpointBasicAuth;
|
|
17
|
+
exports.WebhookEndpointBasicAuthFromJSON = WebhookEndpointBasicAuthFromJSON;
|
|
18
|
+
exports.WebhookEndpointBasicAuthFromJSONTyped = WebhookEndpointBasicAuthFromJSONTyped;
|
|
19
|
+
exports.WebhookEndpointBasicAuthToJSON = WebhookEndpointBasicAuthToJSON;
|
|
20
|
+
exports.WebhookEndpointBasicAuthToJSONTyped = WebhookEndpointBasicAuthToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WebhookEndpointBasicAuth interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWebhookEndpointBasicAuth(value) {
|
|
25
|
+
if (!('username' in value) || value['username'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('passwordSet' in value) || value['passwordSet'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function WebhookEndpointBasicAuthFromJSON(json) {
|
|
32
|
+
return WebhookEndpointBasicAuthFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function WebhookEndpointBasicAuthFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
username: json['username'],
|
|
40
|
+
passwordSet: json['passwordSet']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function WebhookEndpointBasicAuthToJSON(json) {
|
|
44
|
+
return WebhookEndpointBasicAuthToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function WebhookEndpointBasicAuthToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
username: value['username'],
|
|
52
|
+
passwordSet: value['passwordSet']
|
|
53
|
+
};
|
|
54
|
+
}
|