pingram 1.0.14-alpha.1200 → 1.0.14-alpha.1202

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.
@@ -10,13 +10,22 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AcceptInviteRequest, AcceptInviteResponse, ChangeEmailRequest, SuccessResponse } from '../models/index';
13
+ import type { AcceptInviteRequest, AcceptInviteResponse, ChangeEmailRequest, 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 DisableMfaRequest {
21
+ type: string;
22
+ }
23
+ export interface SetupMfaRequest {
24
+ mFASetupRequest: MFASetupRequest;
25
+ }
26
+ export interface VerifyMfaRequest {
27
+ mFAVerifyRequest: MFAVerifyRequest;
28
+ }
20
29
  /**
21
30
  * ProfileApi - interface
22
31
  *
@@ -50,6 +59,57 @@ export interface ProfileApiInterface {
50
59
  * Change the email address of the authenticated user
51
60
  */
52
61
  changeEmail(changeEmailRequest: ChangeEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
62
+ /**
63
+ *
64
+ * @summary Disable MFA for the authenticated user
65
+ * @param {string} type MFA type (e.g. SOFTWARE_TOKEN_MFA)
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ * @memberof ProfileApiInterface
69
+ */
70
+ disableMfaRaw(requestParameters: DisableMfaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
71
+ /**
72
+ * Disable MFA for the authenticated user
73
+ */
74
+ disableMfa(type: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
75
+ /**
76
+ *
77
+ * @summary Get MFA status for the authenticated user
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ * @memberof ProfileApiInterface
81
+ */
82
+ getMfaStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MFAStatusResponse>>;
83
+ /**
84
+ * Get MFA status for the authenticated user
85
+ */
86
+ getMfaStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MFAStatusResponse>;
87
+ /**
88
+ *
89
+ * @summary Start TOTP MFA setup and return QR code data
90
+ * @param {MFASetupRequest} mFASetupRequest
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ * @memberof ProfileApiInterface
94
+ */
95
+ setupMfaRaw(requestParameters: SetupMfaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MFASetupResponse>>;
96
+ /**
97
+ * Start TOTP MFA setup and return QR code data
98
+ */
99
+ setupMfa(mFASetupRequest: MFASetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MFASetupResponse>;
100
+ /**
101
+ *
102
+ * @summary Verify TOTP code and enable MFA
103
+ * @param {MFAVerifyRequest} mFAVerifyRequest
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ * @memberof ProfileApiInterface
107
+ */
108
+ verifyMfaRaw(requestParameters: VerifyMfaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
109
+ /**
110
+ * Verify TOTP code and enable MFA
111
+ */
112
+ verifyMfa(mFAVerifyRequest: MFAVerifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
53
113
  }
54
114
  /**
55
115
  *
@@ -71,4 +131,36 @@ export declare class ProfileApi extends runtime.BaseAPI implements ProfileApiInt
71
131
  * Change the email address of the authenticated user
72
132
  */
73
133
  changeEmail(changeEmailRequest: ChangeEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
134
+ /**
135
+ * Disable MFA for the authenticated user
136
+ */
137
+ disableMfaRaw(requestParameters: DisableMfaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
138
+ /**
139
+ * Disable MFA for the authenticated user
140
+ */
141
+ disableMfa(type: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
142
+ /**
143
+ * Get MFA status for the authenticated user
144
+ */
145
+ getMfaStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MFAStatusResponse>>;
146
+ /**
147
+ * Get MFA status for the authenticated user
148
+ */
149
+ getMfaStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MFAStatusResponse>;
150
+ /**
151
+ * Start TOTP MFA setup and return QR code data
152
+ */
153
+ setupMfaRaw(requestParameters: SetupMfaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MFASetupResponse>>;
154
+ /**
155
+ * Start TOTP MFA setup and return QR code data
156
+ */
157
+ setupMfa(mFASetupRequest: MFASetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MFASetupResponse>;
158
+ /**
159
+ * Verify TOTP code and enable MFA
160
+ */
161
+ verifyMfaRaw(requestParameters: VerifyMfaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
162
+ /**
163
+ * Verify TOTP code and enable MFA
164
+ */
165
+ verifyMfa(mFAVerifyRequest: MFAVerifyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
74
166
  }
@@ -135,5 +135,219 @@ 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
+ * Disable MFA for the authenticated user
140
+ */
141
+ async disableMfaRaw(requestParameters, initOverrides) {
142
+ if (requestParameters['type'] == null) {
143
+ throw new runtime.RequiredError('type', 'Required parameter "type" was null or undefined when calling disableMfa().');
144
+ }
145
+ const queryParameters = {};
146
+ const headerParameters = {};
147
+ if (this.configuration &&
148
+ (this.configuration.username !== undefined ||
149
+ this.configuration.password !== undefined)) {
150
+ headerParameters['Authorization'] =
151
+ 'Basic ' +
152
+ btoa(this.configuration.username + ':' + this.configuration.password);
153
+ }
154
+ if (this.configuration &&
155
+ (this.configuration.username !== undefined ||
156
+ this.configuration.password !== undefined)) {
157
+ headerParameters['Authorization'] =
158
+ 'Basic ' +
159
+ btoa(this.configuration.username + ':' + this.configuration.password);
160
+ }
161
+ if (this.configuration && this.configuration.accessToken) {
162
+ const token = this.configuration.accessToken;
163
+ const tokenString = await token('apiKey', []);
164
+ if (tokenString) {
165
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
166
+ }
167
+ }
168
+ if (this.configuration &&
169
+ (this.configuration.username !== undefined ||
170
+ this.configuration.password !== undefined)) {
171
+ headerParameters['Authorization'] =
172
+ 'Basic ' +
173
+ btoa(this.configuration.username + ':' + this.configuration.password);
174
+ }
175
+ let urlPath = `/profile/mfa/{type}`;
176
+ urlPath = urlPath.replace(`{${'type'}}`, encodeURIComponent(String(requestParameters['type'])));
177
+ const response = await this.request({
178
+ path: urlPath,
179
+ method: 'DELETE',
180
+ headers: headerParameters,
181
+ query: queryParameters
182
+ }, initOverrides);
183
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessResponseFromJSON)(jsonValue));
184
+ }
185
+ /**
186
+ * Disable MFA for the authenticated user
187
+ */
188
+ async disableMfa(type, initOverrides) {
189
+ const response = await this.disableMfaRaw({ type: type }, initOverrides);
190
+ return await response.value();
191
+ }
192
+ /**
193
+ * Get MFA status for the authenticated user
194
+ */
195
+ async getMfaStatusRaw(initOverrides) {
196
+ const queryParameters = {};
197
+ const headerParameters = {};
198
+ if (this.configuration &&
199
+ (this.configuration.username !== undefined ||
200
+ this.configuration.password !== undefined)) {
201
+ headerParameters['Authorization'] =
202
+ 'Basic ' +
203
+ btoa(this.configuration.username + ':' + this.configuration.password);
204
+ }
205
+ if (this.configuration &&
206
+ (this.configuration.username !== undefined ||
207
+ this.configuration.password !== undefined)) {
208
+ headerParameters['Authorization'] =
209
+ 'Basic ' +
210
+ btoa(this.configuration.username + ':' + this.configuration.password);
211
+ }
212
+ if (this.configuration && this.configuration.accessToken) {
213
+ const token = this.configuration.accessToken;
214
+ const tokenString = await token('apiKey', []);
215
+ if (tokenString) {
216
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
217
+ }
218
+ }
219
+ if (this.configuration &&
220
+ (this.configuration.username !== undefined ||
221
+ this.configuration.password !== undefined)) {
222
+ headerParameters['Authorization'] =
223
+ 'Basic ' +
224
+ btoa(this.configuration.username + ':' + this.configuration.password);
225
+ }
226
+ let urlPath = `/profile/mfa`;
227
+ const response = await this.request({
228
+ path: urlPath,
229
+ method: 'GET',
230
+ headers: headerParameters,
231
+ query: queryParameters
232
+ }, initOverrides);
233
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MFAStatusResponseFromJSON)(jsonValue));
234
+ }
235
+ /**
236
+ * Get MFA status for the authenticated user
237
+ */
238
+ async getMfaStatus(initOverrides) {
239
+ const response = await this.getMfaStatusRaw(initOverrides);
240
+ return await response.value();
241
+ }
242
+ /**
243
+ * Start TOTP MFA setup and return QR code data
244
+ */
245
+ async setupMfaRaw(requestParameters, initOverrides) {
246
+ if (requestParameters['mFASetupRequest'] == null) {
247
+ throw new runtime.RequiredError('mFASetupRequest', 'Required parameter "mFASetupRequest" was null or undefined when calling setupMfa().');
248
+ }
249
+ const queryParameters = {};
250
+ const headerParameters = {};
251
+ headerParameters['Content-Type'] = 'application/json';
252
+ if (this.configuration &&
253
+ (this.configuration.username !== undefined ||
254
+ this.configuration.password !== undefined)) {
255
+ headerParameters['Authorization'] =
256
+ 'Basic ' +
257
+ btoa(this.configuration.username + ':' + this.configuration.password);
258
+ }
259
+ if (this.configuration &&
260
+ (this.configuration.username !== undefined ||
261
+ this.configuration.password !== undefined)) {
262
+ headerParameters['Authorization'] =
263
+ 'Basic ' +
264
+ btoa(this.configuration.username + ':' + this.configuration.password);
265
+ }
266
+ if (this.configuration && this.configuration.accessToken) {
267
+ const token = this.configuration.accessToken;
268
+ const tokenString = await token('apiKey', []);
269
+ if (tokenString) {
270
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
271
+ }
272
+ }
273
+ if (this.configuration &&
274
+ (this.configuration.username !== undefined ||
275
+ this.configuration.password !== undefined)) {
276
+ headerParameters['Authorization'] =
277
+ 'Basic ' +
278
+ btoa(this.configuration.username + ':' + this.configuration.password);
279
+ }
280
+ let urlPath = `/profile/mfa`;
281
+ const response = await this.request({
282
+ path: urlPath,
283
+ method: 'POST',
284
+ headers: headerParameters,
285
+ query: queryParameters,
286
+ body: (0, index_1.MFASetupRequestToJSON)(requestParameters['mFASetupRequest'])
287
+ }, initOverrides);
288
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MFASetupResponseFromJSON)(jsonValue));
289
+ }
290
+ /**
291
+ * Start TOTP MFA setup and return QR code data
292
+ */
293
+ async setupMfa(mFASetupRequest, initOverrides) {
294
+ const response = await this.setupMfaRaw({ mFASetupRequest: mFASetupRequest }, initOverrides);
295
+ return await response.value();
296
+ }
297
+ /**
298
+ * Verify TOTP code and enable MFA
299
+ */
300
+ async verifyMfaRaw(requestParameters, initOverrides) {
301
+ if (requestParameters['mFAVerifyRequest'] == null) {
302
+ throw new runtime.RequiredError('mFAVerifyRequest', 'Required parameter "mFAVerifyRequest" was null or undefined when calling verifyMfa().');
303
+ }
304
+ const queryParameters = {};
305
+ const headerParameters = {};
306
+ headerParameters['Content-Type'] = 'application/json';
307
+ if (this.configuration &&
308
+ (this.configuration.username !== undefined ||
309
+ this.configuration.password !== undefined)) {
310
+ headerParameters['Authorization'] =
311
+ 'Basic ' +
312
+ btoa(this.configuration.username + ':' + this.configuration.password);
313
+ }
314
+ if (this.configuration &&
315
+ (this.configuration.username !== undefined ||
316
+ this.configuration.password !== undefined)) {
317
+ headerParameters['Authorization'] =
318
+ 'Basic ' +
319
+ btoa(this.configuration.username + ':' + this.configuration.password);
320
+ }
321
+ if (this.configuration && this.configuration.accessToken) {
322
+ const token = this.configuration.accessToken;
323
+ const tokenString = await token('apiKey', []);
324
+ if (tokenString) {
325
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
326
+ }
327
+ }
328
+ if (this.configuration &&
329
+ (this.configuration.username !== undefined ||
330
+ this.configuration.password !== undefined)) {
331
+ headerParameters['Authorization'] =
332
+ 'Basic ' +
333
+ btoa(this.configuration.username + ':' + this.configuration.password);
334
+ }
335
+ let urlPath = `/profile/mfa/verify`;
336
+ const response = await this.request({
337
+ path: urlPath,
338
+ method: 'POST',
339
+ headers: headerParameters,
340
+ query: queryParameters,
341
+ body: (0, index_1.MFAVerifyRequestToJSON)(requestParameters['mFAVerifyRequest'])
342
+ }, initOverrides);
343
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessResponseFromJSON)(jsonValue));
344
+ }
345
+ /**
346
+ * Verify TOTP code and enable MFA
347
+ */
348
+ async verifyMfa(mFAVerifyRequest, initOverrides) {
349
+ const response = await this.verifyMfaRaw({ mFAVerifyRequest: mFAVerifyRequest }, initOverrides);
350
+ return await response.value();
351
+ }
138
352
  }
139
353
  exports.ProfileApi = ProfileApi;
@@ -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, ProfileApiInterface } from './ProfileApi';
35
+ export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, 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';
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * POST /billing response: account + merged usage limits (when present) + optional session.
13
+ * POST /billing response: organization usage limits + optional Checkout session.
14
14
  * @export
15
15
  * @interface BillingPostResponseBody
16
16
  */
@@ -33,42 +33,6 @@ export interface BillingPostResponseBody {
33
33
  * @memberof BillingPostResponseBody
34
34
  */
35
35
  creator: string;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof BillingPostResponseBody
40
- */
41
- messagesCap: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof BillingPostResponseBody
46
- */
47
- costCap: number;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof BillingPostResponseBody
52
- */
53
- createdAt: string;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof BillingPostResponseBody
58
- */
59
- updatedAt: string;
60
- /**
61
- * ISO date (YYYY-MM-DD) when the billing cycle resets.
62
- * @type {string}
63
- * @memberof BillingPostResponseBody
64
- */
65
- anniversaryDate: string;
66
- /**
67
- *
68
- * @type {boolean}
69
- * @memberof BillingPostResponseBody
70
- */
71
- allowOverage: boolean;
72
36
  /**
73
37
  *
74
38
  * @type {string}
@@ -80,73 +44,49 @@ export interface BillingPostResponseBody {
80
44
  * @type {number}
81
45
  * @memberof BillingPostResponseBody
82
46
  */
83
- smsCap?: number;
47
+ messagesCap: number;
84
48
  /**
85
49
  *
86
50
  * @type {number}
87
51
  * @memberof BillingPostResponseBody
88
52
  */
89
- callCap?: number;
90
- /**
91
- * Stripe subscription ID.
92
- * @type {string}
93
- * @memberof BillingPostResponseBody
94
- */
95
- stripeCustomerId?: string;
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof BillingPostResponseBody
100
- */
101
- stripeSubscriptionId?: string;
102
- /**
103
- *
104
- * @type {string}
105
- * @memberof BillingPostResponseBody
106
- */
107
- subscriptionStatus?: BillingPostResponseBodySubscriptionStatusEnum | null;
108
- /**
109
- * Verification status.
110
- * @type {string}
111
- * @memberof BillingPostResponseBody
112
- */
113
- status?: BillingPostResponseBodyStatusEnum;
53
+ costCap: number;
114
54
  /**
115
55
  *
116
56
  * @type {number}
117
57
  * @memberof BillingPostResponseBody
118
58
  */
119
- pendingDowngradeCostCap?: number;
59
+ smsCap?: number;
120
60
  /**
121
61
  *
122
62
  * @type {number}
123
63
  * @memberof BillingPostResponseBody
124
64
  */
125
- pendingDowngradeMessagesCap?: number;
65
+ callCap?: number;
126
66
  /**
127
- *
128
- * @type {number}
67
+ * ISO date (YYYY-MM-DD) when the billing cycle resets.
68
+ * @type {string}
129
69
  * @memberof BillingPostResponseBody
130
70
  */
131
- pendingDowngradeSmsCap?: number;
71
+ anniversaryDate: string;
132
72
  /**
133
73
  *
134
- * @type {number}
74
+ * @type {boolean}
135
75
  * @memberof BillingPostResponseBody
136
76
  */
137
- pendingDowngradeCallCap?: number;
77
+ allowOverage: boolean;
138
78
  /**
139
79
  *
140
80
  * @type {string}
141
81
  * @memberof BillingPostResponseBody
142
82
  */
143
- pendingDowngradeEffectiveDate?: string;
83
+ createdAt: string;
144
84
  /**
145
85
  *
146
86
  * @type {string}
147
87
  * @memberof BillingPostResponseBody
148
88
  */
149
- pendingDowngradeAccountType?: BillingPostResponseBodyPendingDowngradeAccountTypeEnum;
89
+ updatedAt: string;
150
90
  /**
151
91
  *
152
92
  * @type {string}
@@ -168,32 +108,6 @@ export declare enum BillingPostResponseBodyOrganizationTypeEnum {
168
108
  FREE = "free",
169
109
  PAID = "paid"
170
110
  }
171
- /**
172
- * @export
173
- * @enum {string}
174
- */
175
- export declare enum BillingPostResponseBodySubscriptionStatusEnum {
176
- ACTIVE = "active",
177
- CANCELED = "canceled",
178
- PAST_DUE = "past_due",
179
- PAUSED = "paused"
180
- }
181
- /**
182
- * @export
183
- * @enum {string}
184
- */
185
- export declare enum BillingPostResponseBodyStatusEnum {
186
- VERIFIED = "verified",
187
- UNVERIFIED = "unverified",
188
- BLOCKED = "blocked"
189
- }
190
- /**
191
- * @export
192
- * @enum {string}
193
- */
194
- export declare enum BillingPostResponseBodyPendingDowngradeAccountTypeEnum {
195
- FREE = "free"
196
- }
197
111
  /**
198
112
  * Check if a given object implements the BillingPostResponseBody interface.
199
113
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BillingPostResponseBodyPendingDowngradeAccountTypeEnum = exports.BillingPostResponseBodyStatusEnum = exports.BillingPostResponseBodySubscriptionStatusEnum = exports.BillingPostResponseBodyOrganizationTypeEnum = void 0;
16
+ exports.BillingPostResponseBodyOrganizationTypeEnum = void 0;
17
17
  exports.instanceOfBillingPostResponseBody = instanceOfBillingPostResponseBody;
18
18
  exports.BillingPostResponseBodyFromJSON = BillingPostResponseBodyFromJSON;
19
19
  exports.BillingPostResponseBodyFromJSONTyped = BillingPostResponseBodyFromJSONTyped;
@@ -28,35 +28,6 @@ var BillingPostResponseBodyOrganizationTypeEnum;
28
28
  BillingPostResponseBodyOrganizationTypeEnum["FREE"] = "free";
29
29
  BillingPostResponseBodyOrganizationTypeEnum["PAID"] = "paid";
30
30
  })(BillingPostResponseBodyOrganizationTypeEnum || (exports.BillingPostResponseBodyOrganizationTypeEnum = BillingPostResponseBodyOrganizationTypeEnum = {}));
31
- /**
32
- * @export
33
- * @enum {string}
34
- */
35
- var BillingPostResponseBodySubscriptionStatusEnum;
36
- (function (BillingPostResponseBodySubscriptionStatusEnum) {
37
- BillingPostResponseBodySubscriptionStatusEnum["ACTIVE"] = "active";
38
- BillingPostResponseBodySubscriptionStatusEnum["CANCELED"] = "canceled";
39
- BillingPostResponseBodySubscriptionStatusEnum["PAST_DUE"] = "past_due";
40
- BillingPostResponseBodySubscriptionStatusEnum["PAUSED"] = "paused";
41
- })(BillingPostResponseBodySubscriptionStatusEnum || (exports.BillingPostResponseBodySubscriptionStatusEnum = BillingPostResponseBodySubscriptionStatusEnum = {}));
42
- /**
43
- * @export
44
- * @enum {string}
45
- */
46
- var BillingPostResponseBodyStatusEnum;
47
- (function (BillingPostResponseBodyStatusEnum) {
48
- BillingPostResponseBodyStatusEnum["VERIFIED"] = "verified";
49
- BillingPostResponseBodyStatusEnum["UNVERIFIED"] = "unverified";
50
- BillingPostResponseBodyStatusEnum["BLOCKED"] = "blocked";
51
- })(BillingPostResponseBodyStatusEnum || (exports.BillingPostResponseBodyStatusEnum = BillingPostResponseBodyStatusEnum = {}));
52
- /**
53
- * @export
54
- * @enum {string}
55
- */
56
- var BillingPostResponseBodyPendingDowngradeAccountTypeEnum;
57
- (function (BillingPostResponseBodyPendingDowngradeAccountTypeEnum) {
58
- BillingPostResponseBodyPendingDowngradeAccountTypeEnum["FREE"] = "free";
59
- })(BillingPostResponseBodyPendingDowngradeAccountTypeEnum || (exports.BillingPostResponseBodyPendingDowngradeAccountTypeEnum = BillingPostResponseBodyPendingDowngradeAccountTypeEnum = {}));
60
31
  /**
61
32
  * Check if a given object implements the BillingPostResponseBody interface.
62
33
  */
@@ -67,19 +38,19 @@ function instanceOfBillingPostResponseBody(value) {
67
38
  return false;
68
39
  if (!('creator' in value) || value['creator'] === undefined)
69
40
  return false;
41
+ if (!('name' in value) || value['name'] === undefined)
42
+ return false;
70
43
  if (!('messagesCap' in value) || value['messagesCap'] === undefined)
71
44
  return false;
72
45
  if (!('costCap' in value) || value['costCap'] === undefined)
73
46
  return false;
74
- if (!('createdAt' in value) || value['createdAt'] === undefined)
75
- return false;
76
- if (!('updatedAt' in value) || value['updatedAt'] === undefined)
77
- return false;
78
47
  if (!('anniversaryDate' in value) || value['anniversaryDate'] === undefined)
79
48
  return false;
80
49
  if (!('allowOverage' in value) || value['allowOverage'] === undefined)
81
50
  return false;
82
- if (!('name' in value) || value['name'] === undefined)
51
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
52
+ return false;
53
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
83
54
  return false;
84
55
  return true;
85
56
  }
@@ -94,41 +65,15 @@ function BillingPostResponseBodyFromJSONTyped(json, ignoreDiscriminator) {
94
65
  organizationId: json['organizationId'],
95
66
  organizationType: json['organizationType'],
96
67
  creator: json['creator'],
68
+ name: json['name'],
97
69
  messagesCap: json['messagesCap'],
98
70
  costCap: json['costCap'],
99
- createdAt: json['createdAt'],
100
- updatedAt: json['updatedAt'],
101
- anniversaryDate: json['anniversaryDate'],
102
- allowOverage: json['allowOverage'],
103
- name: json['name'],
104
71
  smsCap: json['smsCap'] == null ? undefined : json['smsCap'],
105
72
  callCap: json['callCap'] == null ? undefined : json['callCap'],
106
- stripeCustomerId: json['stripeCustomerId'] == null ? undefined : json['stripeCustomerId'],
107
- stripeSubscriptionId: json['stripeSubscriptionId'] == null
108
- ? undefined
109
- : json['stripeSubscriptionId'],
110
- subscriptionStatus: json['subscriptionStatus'] == null
111
- ? undefined
112
- : json['subscriptionStatus'],
113
- status: json['status'] == null ? undefined : json['status'],
114
- pendingDowngradeCostCap: json['pendingDowngradeCostCap'] == null
115
- ? undefined
116
- : json['pendingDowngradeCostCap'],
117
- pendingDowngradeMessagesCap: json['pendingDowngradeMessagesCap'] == null
118
- ? undefined
119
- : json['pendingDowngradeMessagesCap'],
120
- pendingDowngradeSmsCap: json['pendingDowngradeSmsCap'] == null
121
- ? undefined
122
- : json['pendingDowngradeSmsCap'],
123
- pendingDowngradeCallCap: json['pendingDowngradeCallCap'] == null
124
- ? undefined
125
- : json['pendingDowngradeCallCap'],
126
- pendingDowngradeEffectiveDate: json['pendingDowngradeEffectiveDate'] == null
127
- ? undefined
128
- : json['pendingDowngradeEffectiveDate'],
129
- pendingDowngradeAccountType: json['pendingDowngradeAccountType'] == null
130
- ? undefined
131
- : json['pendingDowngradeAccountType'],
73
+ anniversaryDate: json['anniversaryDate'],
74
+ allowOverage: json['allowOverage'],
75
+ createdAt: json['createdAt'],
76
+ updatedAt: json['updatedAt'],
132
77
  sessionId: json['sessionId'] == null ? undefined : json['sessionId'],
133
78
  url: json['url'] == null ? undefined : json['url']
134
79
  };
@@ -144,25 +89,15 @@ function BillingPostResponseBodyToJSONTyped(value, ignoreDiscriminator = false)
144
89
  organizationId: value['organizationId'],
145
90
  organizationType: value['organizationType'],
146
91
  creator: value['creator'],
92
+ name: value['name'],
147
93
  messagesCap: value['messagesCap'],
148
94
  costCap: value['costCap'],
149
- createdAt: value['createdAt'],
150
- updatedAt: value['updatedAt'],
151
- anniversaryDate: value['anniversaryDate'],
152
- allowOverage: value['allowOverage'],
153
- name: value['name'],
154
95
  smsCap: value['smsCap'],
155
96
  callCap: value['callCap'],
156
- stripeCustomerId: value['stripeCustomerId'],
157
- stripeSubscriptionId: value['stripeSubscriptionId'],
158
- subscriptionStatus: value['subscriptionStatus'],
159
- status: value['status'],
160
- pendingDowngradeCostCap: value['pendingDowngradeCostCap'],
161
- pendingDowngradeMessagesCap: value['pendingDowngradeMessagesCap'],
162
- pendingDowngradeSmsCap: value['pendingDowngradeSmsCap'],
163
- pendingDowngradeCallCap: value['pendingDowngradeCallCap'],
164
- pendingDowngradeEffectiveDate: value['pendingDowngradeEffectiveDate'],
165
- pendingDowngradeAccountType: value['pendingDowngradeAccountType'],
97
+ anniversaryDate: value['anniversaryDate'],
98
+ allowOverage: value['allowOverage'],
99
+ createdAt: value['createdAt'],
100
+ updatedAt: value['updatedAt'],
166
101
  sessionId: value['sessionId'],
167
102
  url: value['url']
168
103
  };
@@ -51,6 +51,19 @@ export interface GetMembersResponseInner {
51
51
  * @memberof GetMembersResponseInner
52
52
  */
53
53
  groups?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof GetMembersResponseInner
58
+ */
59
+ enabledMFAs?: Array<GetMembersResponseInnerEnabledMFAsEnum>;
60
+ }
61
+ /**
62
+ * @export
63
+ * @enum {string}
64
+ */
65
+ export declare enum GetMembersResponseInnerEnabledMFAsEnum {
66
+ SOFTWARE_TOKEN_MFA = "SOFTWARE_TOKEN_MFA"
54
67
  }
55
68
  /**
56
69
  * Check if a given object implements the GetMembersResponseInner interface.
@@ -13,11 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetMembersResponseInnerEnabledMFAsEnum = void 0;
16
17
  exports.instanceOfGetMembersResponseInner = instanceOfGetMembersResponseInner;
17
18
  exports.GetMembersResponseInnerFromJSON = GetMembersResponseInnerFromJSON;
18
19
  exports.GetMembersResponseInnerFromJSONTyped = GetMembersResponseInnerFromJSONTyped;
19
20
  exports.GetMembersResponseInnerToJSON = GetMembersResponseInnerToJSON;
20
21
  exports.GetMembersResponseInnerToJSONTyped = GetMembersResponseInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ * @enum {string}
25
+ */
26
+ var GetMembersResponseInnerEnabledMFAsEnum;
27
+ (function (GetMembersResponseInnerEnabledMFAsEnum) {
28
+ GetMembersResponseInnerEnabledMFAsEnum["SOFTWARE_TOKEN_MFA"] = "SOFTWARE_TOKEN_MFA";
29
+ })(GetMembersResponseInnerEnabledMFAsEnum || (exports.GetMembersResponseInnerEnabledMFAsEnum = GetMembersResponseInnerEnabledMFAsEnum = {}));
21
30
  /**
22
31
  * Check if a given object implements the GetMembersResponseInner interface.
23
32
  */
@@ -45,7 +54,8 @@ function GetMembersResponseInnerFromJSONTyped(json, ignoreDiscriminator) {
45
54
  userId: json['userId'],
46
55
  createdAt: json['createdAt'],
47
56
  email: json['email'] == null ? undefined : json['email'],
48
- groups: json['groups'] == null ? undefined : json['groups']
57
+ groups: json['groups'] == null ? undefined : json['groups'],
58
+ enabledMFAs: json['enabledMFAs'] == null ? undefined : json['enabledMFAs']
49
59
  };
50
60
  }
51
61
  function GetMembersResponseInnerToJSON(json) {
@@ -61,6 +71,7 @@ function GetMembersResponseInnerToJSONTyped(value, ignoreDiscriminator = false)
61
71
  userId: value['userId'],
62
72
  createdAt: value['createdAt'],
63
73
  email: value['email'],
64
- groups: value['groups']
74
+ groups: value['groups'],
75
+ enabledMFAs: value['enabledMFAs']
65
76
  };
66
77
  }
@@ -0,0 +1,39 @@
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 MFASetupRequest
16
+ */
17
+ export interface MFASetupRequest {
18
+ /**
19
+ * MFA methods supported by the profile MFA API.
20
+ * @type {string}
21
+ * @memberof MFASetupRequest
22
+ */
23
+ type: MFASetupRequestTypeEnum;
24
+ }
25
+ /**
26
+ * @export
27
+ * @enum {string}
28
+ */
29
+ export declare enum MFASetupRequestTypeEnum {
30
+ SOFTWARE_TOKEN_MFA = "SOFTWARE_TOKEN_MFA"
31
+ }
32
+ /**
33
+ * Check if a given object implements the MFASetupRequest interface.
34
+ */
35
+ export declare function instanceOfMFASetupRequest(value: object): value is MFASetupRequest;
36
+ export declare function MFASetupRequestFromJSON(json: any): MFASetupRequest;
37
+ export declare function MFASetupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFASetupRequest;
38
+ export declare function MFASetupRequestToJSON(json: any): MFASetupRequest;
39
+ export declare function MFASetupRequestToJSONTyped(value?: MFASetupRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.MFASetupRequestTypeEnum = void 0;
17
+ exports.instanceOfMFASetupRequest = instanceOfMFASetupRequest;
18
+ exports.MFASetupRequestFromJSON = MFASetupRequestFromJSON;
19
+ exports.MFASetupRequestFromJSONTyped = MFASetupRequestFromJSONTyped;
20
+ exports.MFASetupRequestToJSON = MFASetupRequestToJSON;
21
+ exports.MFASetupRequestToJSONTyped = MFASetupRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ * @enum {string}
25
+ */
26
+ var MFASetupRequestTypeEnum;
27
+ (function (MFASetupRequestTypeEnum) {
28
+ MFASetupRequestTypeEnum["SOFTWARE_TOKEN_MFA"] = "SOFTWARE_TOKEN_MFA";
29
+ })(MFASetupRequestTypeEnum || (exports.MFASetupRequestTypeEnum = MFASetupRequestTypeEnum = {}));
30
+ /**
31
+ * Check if a given object implements the MFASetupRequest interface.
32
+ */
33
+ function instanceOfMFASetupRequest(value) {
34
+ if (!('type' in value) || value['type'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function MFASetupRequestFromJSON(json) {
39
+ return MFASetupRequestFromJSONTyped(json, false);
40
+ }
41
+ function MFASetupRequestFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ type: json['type']
47
+ };
48
+ }
49
+ function MFASetupRequestToJSON(json) {
50
+ return MFASetupRequestToJSONTyped(json, false);
51
+ }
52
+ function MFASetupRequestToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ type: value['type']
58
+ };
59
+ }
@@ -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 MFASetupResponse
16
+ */
17
+ export interface MFASetupResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MFASetupResponse
22
+ */
23
+ secretCode: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MFASetupResponse
28
+ */
29
+ qrCodeUri: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MFASetupResponse
34
+ */
35
+ session: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the MFASetupResponse interface.
39
+ */
40
+ export declare function instanceOfMFASetupResponse(value: object): value is MFASetupResponse;
41
+ export declare function MFASetupResponseFromJSON(json: any): MFASetupResponse;
42
+ export declare function MFASetupResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFASetupResponse;
43
+ export declare function MFASetupResponseToJSON(json: any): MFASetupResponse;
44
+ export declare function MFASetupResponseToJSONTyped(value?: MFASetupResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfMFASetupResponse = instanceOfMFASetupResponse;
17
+ exports.MFASetupResponseFromJSON = MFASetupResponseFromJSON;
18
+ exports.MFASetupResponseFromJSONTyped = MFASetupResponseFromJSONTyped;
19
+ exports.MFASetupResponseToJSON = MFASetupResponseToJSON;
20
+ exports.MFASetupResponseToJSONTyped = MFASetupResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MFASetupResponse interface.
23
+ */
24
+ function instanceOfMFASetupResponse(value) {
25
+ if (!('secretCode' in value) || value['secretCode'] === undefined)
26
+ return false;
27
+ if (!('qrCodeUri' in value) || value['qrCodeUri'] === undefined)
28
+ return false;
29
+ if (!('session' in value) || value['session'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function MFASetupResponseFromJSON(json) {
34
+ return MFASetupResponseFromJSONTyped(json, false);
35
+ }
36
+ function MFASetupResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ secretCode: json['secretCode'],
42
+ qrCodeUri: json['qrCodeUri'],
43
+ session: json['session']
44
+ };
45
+ }
46
+ function MFASetupResponseToJSON(json) {
47
+ return MFASetupResponseToJSONTyped(json, false);
48
+ }
49
+ function MFASetupResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ secretCode: value['secretCode'],
55
+ qrCodeUri: value['qrCodeUri'],
56
+ session: value['session']
57
+ };
58
+ }
@@ -0,0 +1,51 @@
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 MFAStatusResponse
16
+ */
17
+ export interface MFAStatusResponse {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof MFAStatusResponse
22
+ */
23
+ enabled: boolean;
24
+ /**
25
+ * MFA methods supported by the profile MFA API.
26
+ * @type {string}
27
+ * @memberof MFAStatusResponse
28
+ */
29
+ preferredMfa?: MFAStatusResponsePreferredMfaEnum;
30
+ /**
31
+ * Whether the org has the Enterprise add-on required to enable MFA.
32
+ * @type {boolean}
33
+ * @memberof MFAStatusResponse
34
+ */
35
+ available: boolean;
36
+ }
37
+ /**
38
+ * @export
39
+ * @enum {string}
40
+ */
41
+ export declare enum MFAStatusResponsePreferredMfaEnum {
42
+ SOFTWARE_TOKEN_MFA = "SOFTWARE_TOKEN_MFA"
43
+ }
44
+ /**
45
+ * Check if a given object implements the MFAStatusResponse interface.
46
+ */
47
+ export declare function instanceOfMFAStatusResponse(value: object): value is MFAStatusResponse;
48
+ export declare function MFAStatusResponseFromJSON(json: any): MFAStatusResponse;
49
+ export declare function MFAStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFAStatusResponse;
50
+ export declare function MFAStatusResponseToJSON(json: any): MFAStatusResponse;
51
+ export declare function MFAStatusResponseToJSONTyped(value?: MFAStatusResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.MFAStatusResponsePreferredMfaEnum = void 0;
17
+ exports.instanceOfMFAStatusResponse = instanceOfMFAStatusResponse;
18
+ exports.MFAStatusResponseFromJSON = MFAStatusResponseFromJSON;
19
+ exports.MFAStatusResponseFromJSONTyped = MFAStatusResponseFromJSONTyped;
20
+ exports.MFAStatusResponseToJSON = MFAStatusResponseToJSON;
21
+ exports.MFAStatusResponseToJSONTyped = MFAStatusResponseToJSONTyped;
22
+ /**
23
+ * @export
24
+ * @enum {string}
25
+ */
26
+ var MFAStatusResponsePreferredMfaEnum;
27
+ (function (MFAStatusResponsePreferredMfaEnum) {
28
+ MFAStatusResponsePreferredMfaEnum["SOFTWARE_TOKEN_MFA"] = "SOFTWARE_TOKEN_MFA";
29
+ })(MFAStatusResponsePreferredMfaEnum || (exports.MFAStatusResponsePreferredMfaEnum = MFAStatusResponsePreferredMfaEnum = {}));
30
+ /**
31
+ * Check if a given object implements the MFAStatusResponse interface.
32
+ */
33
+ function instanceOfMFAStatusResponse(value) {
34
+ if (!('enabled' in value) || value['enabled'] === undefined)
35
+ return false;
36
+ if (!('available' in value) || value['available'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function MFAStatusResponseFromJSON(json) {
41
+ return MFAStatusResponseFromJSONTyped(json, false);
42
+ }
43
+ function MFAStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ enabled: json['enabled'],
49
+ preferredMfa: json['preferredMfa'] == null ? undefined : json['preferredMfa'],
50
+ available: json['available']
51
+ };
52
+ }
53
+ function MFAStatusResponseToJSON(json) {
54
+ return MFAStatusResponseToJSONTyped(json, false);
55
+ }
56
+ function MFAStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ enabled: value['enabled'],
62
+ preferredMfa: value['preferredMfa'],
63
+ available: value['available']
64
+ };
65
+ }
@@ -0,0 +1,51 @@
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 MFAVerifyRequest
16
+ */
17
+ export interface MFAVerifyRequest {
18
+ /**
19
+ * MFA methods supported by the profile MFA API.
20
+ * @type {string}
21
+ * @memberof MFAVerifyRequest
22
+ */
23
+ type: MFAVerifyRequestTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MFAVerifyRequest
28
+ */
29
+ code: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MFAVerifyRequest
34
+ */
35
+ session: string;
36
+ }
37
+ /**
38
+ * @export
39
+ * @enum {string}
40
+ */
41
+ export declare enum MFAVerifyRequestTypeEnum {
42
+ SOFTWARE_TOKEN_MFA = "SOFTWARE_TOKEN_MFA"
43
+ }
44
+ /**
45
+ * Check if a given object implements the MFAVerifyRequest interface.
46
+ */
47
+ export declare function instanceOfMFAVerifyRequest(value: object): value is MFAVerifyRequest;
48
+ export declare function MFAVerifyRequestFromJSON(json: any): MFAVerifyRequest;
49
+ export declare function MFAVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MFAVerifyRequest;
50
+ export declare function MFAVerifyRequestToJSON(json: any): MFAVerifyRequest;
51
+ export declare function MFAVerifyRequestToJSONTyped(value?: MFAVerifyRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.MFAVerifyRequestTypeEnum = void 0;
17
+ exports.instanceOfMFAVerifyRequest = instanceOfMFAVerifyRequest;
18
+ exports.MFAVerifyRequestFromJSON = MFAVerifyRequestFromJSON;
19
+ exports.MFAVerifyRequestFromJSONTyped = MFAVerifyRequestFromJSONTyped;
20
+ exports.MFAVerifyRequestToJSON = MFAVerifyRequestToJSON;
21
+ exports.MFAVerifyRequestToJSONTyped = MFAVerifyRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ * @enum {string}
25
+ */
26
+ var MFAVerifyRequestTypeEnum;
27
+ (function (MFAVerifyRequestTypeEnum) {
28
+ MFAVerifyRequestTypeEnum["SOFTWARE_TOKEN_MFA"] = "SOFTWARE_TOKEN_MFA";
29
+ })(MFAVerifyRequestTypeEnum || (exports.MFAVerifyRequestTypeEnum = MFAVerifyRequestTypeEnum = {}));
30
+ /**
31
+ * Check if a given object implements the MFAVerifyRequest interface.
32
+ */
33
+ function instanceOfMFAVerifyRequest(value) {
34
+ if (!('type' in value) || value['type'] === undefined)
35
+ return false;
36
+ if (!('code' in value) || value['code'] === undefined)
37
+ return false;
38
+ if (!('session' in value) || value['session'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function MFAVerifyRequestFromJSON(json) {
43
+ return MFAVerifyRequestFromJSONTyped(json, false);
44
+ }
45
+ function MFAVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ type: json['type'],
51
+ code: json['code'],
52
+ session: json['session']
53
+ };
54
+ }
55
+ function MFAVerifyRequestToJSON(json) {
56
+ return MFAVerifyRequestToJSONTyped(json, false);
57
+ }
58
+ function MFAVerifyRequestToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ type: value['type'],
64
+ code: value['code'],
65
+ session: value['session']
66
+ };
67
+ }
@@ -127,6 +127,10 @@ export * from './LogsQueryResponse';
127
127
  export * from './LogsQueryResultResponse';
128
128
  export * from './LogsRetentionResponse';
129
129
  export * from './LogsTailResponse';
130
+ export * from './MFASetupRequest';
131
+ export * from './MFASetupResponse';
132
+ export * from './MFAStatusResponse';
133
+ export * from './MFAVerifyRequest';
130
134
  export * from './MemberInviteRequest';
131
135
  export * from './MemberUpdateRequest';
132
136
  export * from './MessageResponse';
@@ -145,6 +145,10 @@ __exportStar(require("./LogsQueryResponse"), exports);
145
145
  __exportStar(require("./LogsQueryResultResponse"), exports);
146
146
  __exportStar(require("./LogsRetentionResponse"), exports);
147
147
  __exportStar(require("./LogsTailResponse"), exports);
148
+ __exportStar(require("./MFASetupRequest"), exports);
149
+ __exportStar(require("./MFASetupResponse"), exports);
150
+ __exportStar(require("./MFAStatusResponse"), exports);
151
+ __exportStar(require("./MFAVerifyRequest"), exports);
148
152
  __exportStar(require("./MemberInviteRequest"), exports);
149
153
  __exportStar(require("./MemberUpdateRequest"), exports);
150
154
  __exportStar(require("./MessageResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.14-alpha.1200",
3
+ "version": "1.0.14-alpha.1202",
4
4
  "description": "Official Node.js SDK for Pingram - Send notifications via Email, SMS, Push, In-App, and more",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",