pingram 1.0.8-alpha.1145 → 1.0.9-alpha.1147
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/EmailApi.d.ts +50 -0
- package/dist/generated/src/apis/EmailApi.js +112 -0
- package/dist/generated/src/apis/SmsApi.d.ts +50 -0
- package/dist/generated/src/apis/SmsApi.js +112 -0
- package/dist/generated/src/apis/index.d.ts +52 -22
- package/dist/generated/src/apis/index.js +54 -37
- package/dist/generated/src/models/ApiErrorBody.d.ts +56 -0
- package/dist/generated/src/models/ApiErrorBody.js +60 -0
- package/dist/generated/src/models/ApiErrorResponse.d.ts +39 -0
- package/dist/generated/src/models/ApiErrorResponse.js +55 -0
- package/dist/generated/src/models/LogsGetResponseLogsInner.d.ts +16 -6
- package/dist/generated/src/models/LogsGetResponseLogsInner.js +12 -2
- package/dist/generated/src/models/SendEmailApiResponse.d.ts +45 -0
- package/dist/generated/src/models/SendEmailApiResponse.js +59 -0
- package/dist/generated/src/models/SendEmailApiResponseAnyOf.d.ts +38 -0
- package/dist/generated/src/models/SendEmailApiResponseAnyOf.js +54 -0
- package/dist/generated/src/models/SendEmailApiResponseAnyOf1.d.ts +39 -0
- package/dist/generated/src/models/SendEmailApiResponseAnyOf1.js +55 -0
- package/dist/generated/src/models/SendEmailApiResponseAnyOf1Error.d.ts +56 -0
- package/dist/generated/src/models/SendEmailApiResponseAnyOf1Error.js +60 -0
- package/dist/generated/src/models/SendEmailRequest.d.ts +99 -0
- package/dist/generated/src/models/SendEmailRequest.js +83 -0
- package/dist/generated/src/models/SendEmailRequestAttachmentsInner.d.ts +38 -0
- package/dist/generated/src/models/SendEmailRequestAttachmentsInner.js +54 -0
- package/dist/generated/src/models/SendSmsRequest.d.ts +63 -0
- package/dist/generated/src/models/SendSmsRequest.js +67 -0
- package/dist/generated/src/models/SendSmsResponse.d.ts +45 -0
- package/dist/generated/src/models/SendSmsResponse.js +59 -0
- package/dist/generated/src/models/SendSmsResponseAnyOf.d.ts +38 -0
- package/dist/generated/src/models/SendSmsResponseAnyOf.js +54 -0
- package/dist/generated/src/models/SendSmsResponseAnyOf1.d.ts +39 -0
- package/dist/generated/src/models/SendSmsResponseAnyOf1.js +55 -0
- package/dist/generated/src/models/SendSmsResponseAnyOf1Error.d.ts +56 -0
- package/dist/generated/src/models/SendSmsResponseAnyOf1Error.js +60 -0
- package/dist/generated/src/models/SenderPostBodyOptionsEmailAttachmentsInnerAnyOf.d.ts +7 -1
- package/dist/generated/src/models/SenderPostBodyOptionsEmailAttachmentsInnerAnyOf.js +5 -3
- package/dist/generated/src/models/index.d.ts +13 -1
- package/dist/generated/src/models/index.js +13 -1
- package/dist/generated/src/runtime.js +4 -1
- package/dist/package.json +1 -1
- package/dist/src/client.d.ts +4 -0
- package/dist/src/client.js +41 -35
- package/package.json +1 -1
- package/dist/generated/src/models/SenderPostBodyOptionsEmailAttachmentsInnerAnyOf1.d.ts +0 -44
- package/dist/generated/src/models/SenderPostBodyOptionsEmailAttachmentsInnerAnyOf1.js +0 -56
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { SendEmailApiResponse, SendEmailRequest } from '../models/index';
|
|
14
|
+
export interface SendRequest {
|
|
15
|
+
sendEmailRequest: SendEmailRequest;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* EmailApi - interface
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface EmailApiInterface
|
|
22
|
+
*/
|
|
23
|
+
export interface EmailApiInterface {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary Send an email notification directly without templates
|
|
27
|
+
* @param {SendEmailRequest} sendEmailRequest
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
* @memberof EmailApiInterface
|
|
31
|
+
*/
|
|
32
|
+
sendRaw(requestParameters: SendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendEmailApiResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
* Send an email notification directly without templates
|
|
35
|
+
*/
|
|
36
|
+
send(sendEmailRequest: SendEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendEmailApiResponse>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export declare class EmailApi extends runtime.BaseAPI implements EmailApiInterface {
|
|
42
|
+
/**
|
|
43
|
+
* Send an email notification directly without templates
|
|
44
|
+
*/
|
|
45
|
+
sendRaw(requestParameters: SendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendEmailApiResponse>>;
|
|
46
|
+
/**
|
|
47
|
+
* Send an email notification directly without templates
|
|
48
|
+
*/
|
|
49
|
+
send(sendEmailRequest: SendEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendEmailApiResponse>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.EmailApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class EmailApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Send an email notification directly without templates
|
|
58
|
+
*/
|
|
59
|
+
async sendRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['sendEmailRequest'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('sendEmailRequest', 'Required parameter "sendEmailRequest" was null or undefined when calling send().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
if (this.configuration &&
|
|
67
|
+
(this.configuration.username !== undefined ||
|
|
68
|
+
this.configuration.password !== undefined)) {
|
|
69
|
+
headerParameters['Authorization'] =
|
|
70
|
+
'Basic ' +
|
|
71
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
72
|
+
}
|
|
73
|
+
if (this.configuration &&
|
|
74
|
+
(this.configuration.username !== undefined ||
|
|
75
|
+
this.configuration.password !== undefined)) {
|
|
76
|
+
headerParameters['Authorization'] =
|
|
77
|
+
'Basic ' +
|
|
78
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
79
|
+
}
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = await token('apiKey', []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (this.configuration &&
|
|
88
|
+
(this.configuration.username !== undefined ||
|
|
89
|
+
this.configuration.password !== undefined)) {
|
|
90
|
+
headerParameters['Authorization'] =
|
|
91
|
+
'Basic ' +
|
|
92
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
93
|
+
}
|
|
94
|
+
let urlPath = `/email`;
|
|
95
|
+
const response = await this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.SendEmailRequestToJSON)(requestParameters['sendEmailRequest'])
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SendEmailApiResponseFromJSON)(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Send an email notification directly without templates
|
|
106
|
+
*/
|
|
107
|
+
async send(sendEmailRequest, initOverrides) {
|
|
108
|
+
const response = await this.sendRaw({ sendEmailRequest: sendEmailRequest }, initOverrides);
|
|
109
|
+
return await response.value();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.EmailApi = EmailApi;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { SendSmsRequest, SendSmsResponse } from '../models/index';
|
|
14
|
+
export interface SendRequest {
|
|
15
|
+
sendSmsRequest: SendSmsRequest;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* SmsApi - interface
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface SmsApiInterface
|
|
22
|
+
*/
|
|
23
|
+
export interface SmsApiInterface {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary Send an SMS notification directly without templates
|
|
27
|
+
* @param {SendSmsRequest} sendSmsRequest
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
* @memberof SmsApiInterface
|
|
31
|
+
*/
|
|
32
|
+
sendRaw(requestParameters: SendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendSmsResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
* Send an SMS notification directly without templates
|
|
35
|
+
*/
|
|
36
|
+
send(sendSmsRequest: SendSmsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendSmsResponse>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export declare class SmsApi extends runtime.BaseAPI implements SmsApiInterface {
|
|
42
|
+
/**
|
|
43
|
+
* Send an SMS notification directly without templates
|
|
44
|
+
*/
|
|
45
|
+
sendRaw(requestParameters: SendRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendSmsResponse>>;
|
|
46
|
+
/**
|
|
47
|
+
* Send an SMS notification directly without templates
|
|
48
|
+
*/
|
|
49
|
+
send(sendSmsRequest: SendSmsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendSmsResponse>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.SmsApi = void 0;
|
|
50
|
+
const runtime = __importStar(require("../runtime"));
|
|
51
|
+
const index_1 = require("../models/index");
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
class SmsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Send an SMS notification directly without templates
|
|
58
|
+
*/
|
|
59
|
+
async sendRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['sendSmsRequest'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('sendSmsRequest', 'Required parameter "sendSmsRequest" was null or undefined when calling send().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
if (this.configuration &&
|
|
67
|
+
(this.configuration.username !== undefined ||
|
|
68
|
+
this.configuration.password !== undefined)) {
|
|
69
|
+
headerParameters['Authorization'] =
|
|
70
|
+
'Basic ' +
|
|
71
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
72
|
+
}
|
|
73
|
+
if (this.configuration &&
|
|
74
|
+
(this.configuration.username !== undefined ||
|
|
75
|
+
this.configuration.password !== undefined)) {
|
|
76
|
+
headerParameters['Authorization'] =
|
|
77
|
+
'Basic ' +
|
|
78
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
79
|
+
}
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = await token('apiKey', []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (this.configuration &&
|
|
88
|
+
(this.configuration.username !== undefined ||
|
|
89
|
+
this.configuration.password !== undefined)) {
|
|
90
|
+
headerParameters['Authorization'] =
|
|
91
|
+
'Basic ' +
|
|
92
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
93
|
+
}
|
|
94
|
+
let urlPath = `/sms`;
|
|
95
|
+
const response = await this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.SendSmsRequestToJSON)(requestParameters['sendSmsRequest'])
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SendSmsResponseFromJSON)(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Send an SMS notification directly without templates
|
|
106
|
+
*/
|
|
107
|
+
async send(sendSmsRequest, initOverrides) {
|
|
108
|
+
const response = await this.sendRaw({ sendSmsRequest: sendSmsRequest }, initOverrides);
|
|
109
|
+
return await response.value();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.SmsApi = SmsApi;
|
|
@@ -1,22 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
1
|
+
/**
|
|
2
|
+
* Explicit barrel (patched by tools/sdk-codegen/patch-node-apis-barrel.ts).
|
|
3
|
+
* Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
|
|
4
|
+
*/
|
|
5
|
+
export type { ConfigureSupabaseSMTPRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountRequest, AccountApiInterface } from './AccountApi';
|
|
6
|
+
export { AccountApi } from './AccountApi';
|
|
7
|
+
export type { CreateAddressOperationRequest, UpdateAddressOperationRequest, AddressesApiInterface } from './AddressesApi';
|
|
8
|
+
export { AddressesApi } from './AddressesApi';
|
|
9
|
+
export type { CreateComponentRequest, DeleteComponentRequest, GetComponentRequest, ListComponentsRequest, PatchComponentRequest, ComponentsApiInterface } from './ComponentsApi';
|
|
10
|
+
export { ComponentsApi } from './ComponentsApi';
|
|
11
|
+
export type { SendRequest, DefaultApiInterface } from './DefaultApi';
|
|
12
|
+
export { DefaultApi } from './DefaultApi';
|
|
13
|
+
export type { AddDomainRequest, DeleteDomainRequest, DomainsApiInterface } from './DomainsApi';
|
|
14
|
+
export { DomainsApi } from './DomainsApi';
|
|
15
|
+
export type { GenerateEditorTokenRequest, EditorApiInterface } from './EditorApi';
|
|
16
|
+
export { EditorApi } from './EditorApi';
|
|
17
|
+
export type { SendRequest as EmailApiSendRequest, EmailApiInterface } from './EmailApi';
|
|
18
|
+
export { EmailApi } from './EmailApi';
|
|
19
|
+
export type { CreateEnvironmentRequest, UpdateEnvironmentRequest, EnvironmentsApiInterface } from './EnvironmentsApi';
|
|
20
|
+
export { EnvironmentsApi } from './EnvironmentsApi';
|
|
21
|
+
export type { HealthApiInterface } from './HealthApi';
|
|
22
|
+
export { HealthApi } from './HealthApi';
|
|
23
|
+
export type { QueryInsightsRequest, InsightsApiInterface } from './InsightsApi';
|
|
24
|
+
export { InsightsApi } from './InsightsApi';
|
|
25
|
+
export type { CreateAPIKeyRequest, RevokeAPIKeyRequest, KeysApiInterface } from './KeysApi';
|
|
26
|
+
export { KeysApi } from './KeysApi';
|
|
27
|
+
export type { GetLogsRequest, GetLogsByTrackingIdsRequest, GetLogsQueryResultRequest, StartLogsQueryRequest, LogsApiInterface } from './LogsApi';
|
|
28
|
+
export { LogsApi } from './LogsApi';
|
|
29
|
+
export type { GetAutoJoinRequest, InviteMemberRequest, ListMembersRequest, RemoveMemberRequest, SetAutoJoinRequest, UpdateRequest, MembersApiInterface } from './MembersApi';
|
|
30
|
+
export { MembersApi } from './MembersApi';
|
|
31
|
+
export type { OrderNumberRequest, SearchAvailableRequest, NumbersApiInterface } from './NumbersApi';
|
|
32
|
+
export { NumbersApi } from './NumbersApi';
|
|
33
|
+
export type { GetUsageHistoryRequest, OrganizationApiInterface } from './OrganizationApi';
|
|
34
|
+
export { OrganizationApi } from './OrganizationApi';
|
|
35
|
+
export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, ProfileApiInterface } from './ProfileApi';
|
|
36
|
+
export { ProfileApi } from './ProfileApi';
|
|
37
|
+
export type { UpsertPushApnSettingsRequest, UpsertPushFcmSettingsRequest, PushSettingsApiInterface } from './PushSettingsApi';
|
|
38
|
+
export { PushSettingsApi } from './PushSettingsApi';
|
|
39
|
+
export type { DeleteScheduleRequest, TestEmailRequest, UpdateScheduleRequest, SenderApiInterface } from './SenderApi';
|
|
40
|
+
export { SenderApi } from './SenderApi';
|
|
41
|
+
export type { SendRequest as SmsApiSendRequest, SmsApiInterface } from './SmsApi';
|
|
42
|
+
export { SmsApi } from './SmsApi';
|
|
43
|
+
export type { CreateTemplateRequest, DeleteTemplateRequest, GetTemplateRequest, ListTemplatesRequest, SetDefaultTemplateOperationRequest, UpdateTemplateRequest, TemplatesApiInterface } from './TemplatesApi';
|
|
44
|
+
export { TemplatesApi } from './TemplatesApi';
|
|
45
|
+
export type { CreateNotificationTypeRequest, DeleteNotificationTypeRequest, GetNotificationTypeRequest, UpdateNotificationTypeRequest, TypesApiInterface } from './TypesApi';
|
|
46
|
+
export { TypesApi } from './TypesApi';
|
|
47
|
+
export type { GenerateSlackOauthPathRequest, GetAvailableSlackChannelsRequest, GetInAppNotificationsRequest, GetUserRequest, IdentifyRequest, MarkInAppNotificationsAsSeenRequest, UpdateInAppNotificationStatusRequest, UserApiInterface } from './UserApi';
|
|
48
|
+
export { UserApi } from './UserApi';
|
|
49
|
+
export type { DeleteUserRequest, ListUsersRequest, RemoveUserFromSuppressionRequest, UsersApiInterface } from './UsersApi';
|
|
50
|
+
export { UsersApi } from './UsersApi';
|
|
51
|
+
export type { UpsertEventsWebhookRequest, WebhooksApiInterface } from './WebhooksApi';
|
|
52
|
+
export { WebhooksApi } from './WebhooksApi';
|
|
@@ -1,40 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
2
|
/* tslint:disable */
|
|
18
3
|
/* eslint-disable */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Explicit barrel (patched by tools/sdk-codegen/patch-node-apis-barrel.ts).
|
|
6
|
+
* Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.WebhooksApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SmsApi = exports.SenderApi = exports.PushSettingsApi = exports.ProfileApi = exports.OrganizationApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.AddressesApi = exports.AccountApi = void 0;
|
|
10
|
+
var AccountApi_1 = require("./AccountApi");
|
|
11
|
+
Object.defineProperty(exports, "AccountApi", { enumerable: true, get: function () { return AccountApi_1.AccountApi; } });
|
|
12
|
+
var AddressesApi_1 = require("./AddressesApi");
|
|
13
|
+
Object.defineProperty(exports, "AddressesApi", { enumerable: true, get: function () { return AddressesApi_1.AddressesApi; } });
|
|
14
|
+
var ComponentsApi_1 = require("./ComponentsApi");
|
|
15
|
+
Object.defineProperty(exports, "ComponentsApi", { enumerable: true, get: function () { return ComponentsApi_1.ComponentsApi; } });
|
|
16
|
+
var DefaultApi_1 = require("./DefaultApi");
|
|
17
|
+
Object.defineProperty(exports, "DefaultApi", { enumerable: true, get: function () { return DefaultApi_1.DefaultApi; } });
|
|
18
|
+
var DomainsApi_1 = require("./DomainsApi");
|
|
19
|
+
Object.defineProperty(exports, "DomainsApi", { enumerable: true, get: function () { return DomainsApi_1.DomainsApi; } });
|
|
20
|
+
var EditorApi_1 = require("./EditorApi");
|
|
21
|
+
Object.defineProperty(exports, "EditorApi", { enumerable: true, get: function () { return EditorApi_1.EditorApi; } });
|
|
22
|
+
var EmailApi_1 = require("./EmailApi");
|
|
23
|
+
Object.defineProperty(exports, "EmailApi", { enumerable: true, get: function () { return EmailApi_1.EmailApi; } });
|
|
24
|
+
var EnvironmentsApi_1 = require("./EnvironmentsApi");
|
|
25
|
+
Object.defineProperty(exports, "EnvironmentsApi", { enumerable: true, get: function () { return EnvironmentsApi_1.EnvironmentsApi; } });
|
|
26
|
+
var HealthApi_1 = require("./HealthApi");
|
|
27
|
+
Object.defineProperty(exports, "HealthApi", { enumerable: true, get: function () { return HealthApi_1.HealthApi; } });
|
|
28
|
+
var InsightsApi_1 = require("./InsightsApi");
|
|
29
|
+
Object.defineProperty(exports, "InsightsApi", { enumerable: true, get: function () { return InsightsApi_1.InsightsApi; } });
|
|
30
|
+
var KeysApi_1 = require("./KeysApi");
|
|
31
|
+
Object.defineProperty(exports, "KeysApi", { enumerable: true, get: function () { return KeysApi_1.KeysApi; } });
|
|
32
|
+
var LogsApi_1 = require("./LogsApi");
|
|
33
|
+
Object.defineProperty(exports, "LogsApi", { enumerable: true, get: function () { return LogsApi_1.LogsApi; } });
|
|
34
|
+
var MembersApi_1 = require("./MembersApi");
|
|
35
|
+
Object.defineProperty(exports, "MembersApi", { enumerable: true, get: function () { return MembersApi_1.MembersApi; } });
|
|
36
|
+
var NumbersApi_1 = require("./NumbersApi");
|
|
37
|
+
Object.defineProperty(exports, "NumbersApi", { enumerable: true, get: function () { return NumbersApi_1.NumbersApi; } });
|
|
38
|
+
var OrganizationApi_1 = require("./OrganizationApi");
|
|
39
|
+
Object.defineProperty(exports, "OrganizationApi", { enumerable: true, get: function () { return OrganizationApi_1.OrganizationApi; } });
|
|
40
|
+
var ProfileApi_1 = require("./ProfileApi");
|
|
41
|
+
Object.defineProperty(exports, "ProfileApi", { enumerable: true, get: function () { return ProfileApi_1.ProfileApi; } });
|
|
42
|
+
var PushSettingsApi_1 = require("./PushSettingsApi");
|
|
43
|
+
Object.defineProperty(exports, "PushSettingsApi", { enumerable: true, get: function () { return PushSettingsApi_1.PushSettingsApi; } });
|
|
44
|
+
var SenderApi_1 = require("./SenderApi");
|
|
45
|
+
Object.defineProperty(exports, "SenderApi", { enumerable: true, get: function () { return SenderApi_1.SenderApi; } });
|
|
46
|
+
var SmsApi_1 = require("./SmsApi");
|
|
47
|
+
Object.defineProperty(exports, "SmsApi", { enumerable: true, get: function () { return SmsApi_1.SmsApi; } });
|
|
48
|
+
var TemplatesApi_1 = require("./TemplatesApi");
|
|
49
|
+
Object.defineProperty(exports, "TemplatesApi", { enumerable: true, get: function () { return TemplatesApi_1.TemplatesApi; } });
|
|
50
|
+
var TypesApi_1 = require("./TypesApi");
|
|
51
|
+
Object.defineProperty(exports, "TypesApi", { enumerable: true, get: function () { return TypesApi_1.TypesApi; } });
|
|
52
|
+
var UserApi_1 = require("./UserApi");
|
|
53
|
+
Object.defineProperty(exports, "UserApi", { enumerable: true, get: function () { return UserApi_1.UserApi; } });
|
|
54
|
+
var UsersApi_1 = require("./UsersApi");
|
|
55
|
+
Object.defineProperty(exports, "UsersApi", { enumerable: true, get: function () { return UsersApi_1.UsersApi; } });
|
|
56
|
+
var WebhooksApi_1 = require("./WebhooksApi");
|
|
57
|
+
Object.defineProperty(exports, "WebhooksApi", { enumerable: true, get: function () { return WebhooksApi_1.WebhooksApi; } });
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* Structured error details for API error responses.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ApiErrorBody
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiErrorBody {
|
|
18
|
+
/**
|
|
19
|
+
* Machine-readable error code.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApiErrorBody
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
* Human-readable error message.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApiErrorBody
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
/**
|
|
31
|
+
* Actionable hint for fixing the error.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiErrorBody
|
|
34
|
+
*/
|
|
35
|
+
fix?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Provider that caused the error (e.g. telnyx, ses).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiErrorBody
|
|
40
|
+
*/
|
|
41
|
+
provider?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Provider-specific error code.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApiErrorBody
|
|
46
|
+
*/
|
|
47
|
+
providerCode?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the ApiErrorBody interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfApiErrorBody(value: object): value is ApiErrorBody;
|
|
53
|
+
export declare function ApiErrorBodyFromJSON(json: any): ApiErrorBody;
|
|
54
|
+
export declare function ApiErrorBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiErrorBody;
|
|
55
|
+
export declare function ApiErrorBodyToJSON(json: any): ApiErrorBody;
|
|
56
|
+
export declare function ApiErrorBodyToJSONTyped(value?: ApiErrorBody | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfApiErrorBody = instanceOfApiErrorBody;
|
|
17
|
+
exports.ApiErrorBodyFromJSON = ApiErrorBodyFromJSON;
|
|
18
|
+
exports.ApiErrorBodyFromJSONTyped = ApiErrorBodyFromJSONTyped;
|
|
19
|
+
exports.ApiErrorBodyToJSON = ApiErrorBodyToJSON;
|
|
20
|
+
exports.ApiErrorBodyToJSONTyped = ApiErrorBodyToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ApiErrorBody interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfApiErrorBody(value) {
|
|
25
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ApiErrorBodyFromJSON(json) {
|
|
32
|
+
return ApiErrorBodyFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ApiErrorBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
code: json['code'],
|
|
40
|
+
message: json['message'],
|
|
41
|
+
fix: json['fix'] == null ? undefined : json['fix'],
|
|
42
|
+
provider: json['provider'] == null ? undefined : json['provider'],
|
|
43
|
+
providerCode: json['providerCode'] == null ? undefined : json['providerCode']
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ApiErrorBodyToJSON(json) {
|
|
47
|
+
return ApiErrorBodyToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ApiErrorBodyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
code: value['code'],
|
|
55
|
+
message: value['message'],
|
|
56
|
+
fix: value['fix'],
|
|
57
|
+
provider: value['provider'],
|
|
58
|
+
providerCode: value['providerCode']
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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
|
+
import type { ApiErrorBody } from './ApiErrorBody';
|
|
13
|
+
/**
|
|
14
|
+
* Standard error response for API errors.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiErrorResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiErrorResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Unique tracking ID for the request.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiErrorResponse
|
|
23
|
+
*/
|
|
24
|
+
trackingId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ApiErrorBody}
|
|
28
|
+
* @memberof ApiErrorResponse
|
|
29
|
+
*/
|
|
30
|
+
error: ApiErrorBody;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ApiErrorResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfApiErrorResponse(value: object): value is ApiErrorResponse;
|
|
36
|
+
export declare function ApiErrorResponseFromJSON(json: any): ApiErrorResponse;
|
|
37
|
+
export declare function ApiErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiErrorResponse;
|
|
38
|
+
export declare function ApiErrorResponseToJSON(json: any): ApiErrorResponse;
|
|
39
|
+
export declare function ApiErrorResponseToJSONTyped(value?: ApiErrorResponse | null, ignoreDiscriminator?: boolean): any;
|