pingram 1.0.7 → 1.0.8-alpha.1145

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.
@@ -41,7 +41,7 @@ export interface NumbersApiInterface {
41
41
  list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPhoneNumbersResponse>;
42
42
  /**
43
43
  *
44
- * @summary Purchase a Telnyx phone number for the authenticated account
44
+ * @summary Purchase a phone number for the authenticated account
45
45
  * @param {OrderPhoneNumberRequest} orderPhoneNumberRequest
46
46
  * @param {*} [options] Override http request option.
47
47
  * @throws {RequiredError}
@@ -49,12 +49,12 @@ export interface NumbersApiInterface {
49
49
  */
50
50
  orderNumberRaw(requestParameters: OrderNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderPhoneNumberResponse>>;
51
51
  /**
52
- * Purchase a Telnyx phone number for the authenticated account
52
+ * Purchase a phone number for the authenticated account
53
53
  */
54
54
  orderNumber(orderPhoneNumberRequest: OrderPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPhoneNumberResponse>;
55
55
  /**
56
56
  *
57
- * @summary Search for available Telnyx phone numbers
57
+ * @summary Search for available phone numbers
58
58
  * @param {string} countryCode ISO 3166-1 alpha-2 country code (e.g., US, CA)
59
59
  * @param {string} [features] Comma-separated
60
60
  * @param {string} [areaCode] National destination / area code filter
@@ -65,7 +65,7 @@ export interface NumbersApiInterface {
65
65
  */
66
66
  searchAvailableRaw(requestParameters: SearchAvailableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchAvailablePhoneNumbersResponse>>;
67
67
  /**
68
- * Search for available Telnyx phone numbers
68
+ * Search for available phone numbers
69
69
  */
70
70
  searchAvailable(countryCode: string, features?: string, areaCode?: string, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchAvailablePhoneNumbersResponse>;
71
71
  }
@@ -82,19 +82,19 @@ export declare class NumbersApi extends runtime.BaseAPI implements NumbersApiInt
82
82
  */
83
83
  list(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPhoneNumbersResponse>;
84
84
  /**
85
- * Purchase a Telnyx phone number for the authenticated account
85
+ * Purchase a phone number for the authenticated account
86
86
  */
87
87
  orderNumberRaw(requestParameters: OrderNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderPhoneNumberResponse>>;
88
88
  /**
89
- * Purchase a Telnyx phone number for the authenticated account
89
+ * Purchase a phone number for the authenticated account
90
90
  */
91
91
  orderNumber(orderPhoneNumberRequest: OrderPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderPhoneNumberResponse>;
92
92
  /**
93
- * Search for available Telnyx phone numbers
93
+ * Search for available phone numbers
94
94
  */
95
95
  searchAvailableRaw(requestParameters: SearchAvailableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SearchAvailablePhoneNumbersResponse>>;
96
96
  /**
97
- * Search for available Telnyx phone numbers
97
+ * Search for available phone numbers
98
98
  */
99
99
  searchAvailable(countryCode: string, features?: string, areaCode?: string, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SearchAvailablePhoneNumbersResponse>;
100
100
  }
@@ -104,7 +104,7 @@ class NumbersApi extends runtime.BaseAPI {
104
104
  return await response.value();
105
105
  }
106
106
  /**
107
- * Purchase a Telnyx phone number for the authenticated account
107
+ * Purchase a phone number for the authenticated account
108
108
  */
109
109
  async orderNumberRaw(requestParameters, initOverrides) {
110
110
  if (requestParameters['orderPhoneNumberRequest'] == null) {
@@ -152,14 +152,14 @@ class NumbersApi extends runtime.BaseAPI {
152
152
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrderPhoneNumberResponseFromJSON)(jsonValue));
153
153
  }
154
154
  /**
155
- * Purchase a Telnyx phone number for the authenticated account
155
+ * Purchase a phone number for the authenticated account
156
156
  */
157
157
  async orderNumber(orderPhoneNumberRequest, initOverrides) {
158
158
  const response = await this.orderNumberRaw({ orderPhoneNumberRequest: orderPhoneNumberRequest }, initOverrides);
159
159
  return await response.value();
160
160
  }
161
161
  /**
162
- * Search for available Telnyx phone numbers
162
+ * Search for available phone numbers
163
163
  */
164
164
  async searchAvailableRaw(requestParameters, initOverrides) {
165
165
  if (requestParameters['countryCode'] == null) {
@@ -217,7 +217,7 @@ class NumbersApi extends runtime.BaseAPI {
217
217
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SearchAvailablePhoneNumbersResponseFromJSON)(jsonValue));
218
218
  }
219
219
  /**
220
- * Search for available Telnyx phone numbers
220
+ * Search for available phone numbers
221
221
  */
222
222
  async searchAvailable(countryCode, features, areaCode, limit, initOverrides) {
223
223
  const response = await this.searchAvailableRaw({
@@ -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 ChangePhoneRequest
16
+ */
17
+ export interface ChangePhoneRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ChangePhoneRequest
22
+ */
23
+ phoneNumber: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ChangePhoneRequest interface.
27
+ */
28
+ export declare function instanceOfChangePhoneRequest(value: object): value is ChangePhoneRequest;
29
+ export declare function ChangePhoneRequestFromJSON(json: any): ChangePhoneRequest;
30
+ export declare function ChangePhoneRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePhoneRequest;
31
+ export declare function ChangePhoneRequestToJSON(json: any): ChangePhoneRequest;
32
+ export declare function ChangePhoneRequestToJSONTyped(value?: ChangePhoneRequest | 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.instanceOfChangePhoneRequest = instanceOfChangePhoneRequest;
17
+ exports.ChangePhoneRequestFromJSON = ChangePhoneRequestFromJSON;
18
+ exports.ChangePhoneRequestFromJSONTyped = ChangePhoneRequestFromJSONTyped;
19
+ exports.ChangePhoneRequestToJSON = ChangePhoneRequestToJSON;
20
+ exports.ChangePhoneRequestToJSONTyped = ChangePhoneRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ChangePhoneRequest interface.
23
+ */
24
+ function instanceOfChangePhoneRequest(value) {
25
+ if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ChangePhoneRequestFromJSON(json) {
30
+ return ChangePhoneRequestFromJSONTyped(json, false);
31
+ }
32
+ function ChangePhoneRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ phoneNumber: json['phoneNumber']
38
+ };
39
+ }
40
+ function ChangePhoneRequestToJSON(json) {
41
+ return ChangePhoneRequestToJSONTyped(json, false);
42
+ }
43
+ function ChangePhoneRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ phoneNumber: value['phoneNumber']
49
+ };
50
+ }
@@ -934,7 +934,7 @@ export interface LogsGetResponseLogsInner {
934
934
  */
935
935
  sms_sent_country?: string;
936
936
  /**
937
- * Unique message ID from provider (Twilio SID or Telnyx ID)
937
+ * Unique message ID from the SMS provider
938
938
  * @type {string}
939
939
  * @memberof LogsGetResponseLogsInner
940
940
  */
@@ -946,7 +946,7 @@ export interface LogsGetResponseLogsInner {
946
946
  */
947
947
  sms_sent_mms?: boolean;
948
948
  /**
949
- * Actual cost from Telnyx/Twilio (internal)
949
+ * Actual carrier cost (internal)
950
950
  * @type {number}
951
951
  * @memberof LogsGetResponseLogsInner
952
952
  */
@@ -976,7 +976,7 @@ export interface LogsGetResponseLogsInner {
976
976
  */
977
977
  sms_delivered_after?: number;
978
978
  /**
979
- * Actual cost from Twilio webhook (USD), for internal logging
979
+ * Actual delivery cost from carrier webhook (USD), for internal logging
980
980
  * @type {number}
981
981
  * @memberof LogsGetResponseLogsInner
982
982
  */
@@ -23,7 +23,7 @@ export interface SenderPostBodySms {
23
23
  */
24
24
  message?: string;
25
25
  /**
26
- * Public HTTPS URLs of media to attach (MMS). Telnyx and Twilio fetch these via GET. Total size limits apply per provider.
26
+ * Public HTTPS URLs of media to attach (MMS). Carriers fetch these via GET. Total size limits apply per provider.
27
27
  * @type {Array<string>}
28
28
  * @memberof SenderPostBodySms
29
29
  */
@@ -35,7 +35,7 @@ export interface SenderPostBodySms {
35
35
  */
36
36
  autoReply?: SenderPostBodySmsAutoReply;
37
37
  /**
38
- * Override the sender phone number. Must be a verified number in your Telnyx account.
38
+ * Override the sender phone number. Must be a verified number on your account.
39
39
  * @type {string}
40
40
  * @memberof SenderPostBodySms
41
41
  */
@@ -12,6 +12,7 @@ export * from './BeeTokenV2';
12
12
  export * from './BillingPostRequestBody';
13
13
  export * from './BillingPostResponseBody';
14
14
  export * from './ChangeEmailRequest';
15
+ export * from './ChangePhoneRequest';
15
16
  export * from './ChannelsEnum';
16
17
  export * from './CreateAccountRequestBody';
17
18
  export * from './CreateAccountResponse';
@@ -30,6 +30,7 @@ __exportStar(require("./BeeTokenV2"), exports);
30
30
  __exportStar(require("./BillingPostRequestBody"), exports);
31
31
  __exportStar(require("./BillingPostResponseBody"), exports);
32
32
  __exportStar(require("./ChangeEmailRequest"), exports);
33
+ __exportStar(require("./ChangePhoneRequest"), exports);
33
34
  __exportStar(require("./ChannelsEnum"), exports);
34
35
  __exportStar(require("./CreateAccountRequestBody"), exports);
35
36
  __exportStar(require("./CreateAccountResponse"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.7",
3
+ "version": "1.0.8-alpha.1145",
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",
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.Pingram = void 0;
9
9
  const src_1 = require("../generated/src");
10
10
  // SDK version for User-Agent header (injected at codegen time)
11
- const SDK_VERSION = '1.0.7';
11
+ const SDK_VERSION = '1.0.8';
12
12
  const USER_AGENT = `pingram-node/${SDK_VERSION}`;
13
13
  const src_2 = require("../generated/src");
14
14
  const src_3 = require("../generated/src");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pingram",
3
- "version": "1.0.7",
3
+ "version": "1.0.8-alpha.1145",
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",