telnyx 5.30.0 → 5.32.0

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.
Files changed (118) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/client.d.mts +1 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -0
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/ai/ai.d.mts +2 -2
  8. package/resources/ai/ai.d.mts.map +1 -1
  9. package/resources/ai/ai.d.ts +2 -2
  10. package/resources/ai/ai.d.ts.map +1 -1
  11. package/resources/ai/assistants/assistants.d.mts +9 -3
  12. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  13. package/resources/ai/assistants/assistants.d.ts +9 -3
  14. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  15. package/resources/ai/index.d.mts +1 -1
  16. package/resources/ai/index.d.mts.map +1 -1
  17. package/resources/ai/index.d.ts +1 -1
  18. package/resources/ai/index.d.ts.map +1 -1
  19. package/resources/ai/missions/index.d.mts +2 -2
  20. package/resources/ai/missions/index.d.mts.map +1 -1
  21. package/resources/ai/missions/index.d.ts +2 -2
  22. package/resources/ai/missions/index.d.ts.map +1 -1
  23. package/resources/ai/missions/index.js.map +1 -1
  24. package/resources/ai/missions/index.mjs.map +1 -1
  25. package/resources/ai/missions/missions.d.mts +14 -59
  26. package/resources/ai/missions/missions.d.mts.map +1 -1
  27. package/resources/ai/missions/missions.d.ts +14 -59
  28. package/resources/ai/missions/missions.d.ts.map +1 -1
  29. package/resources/ai/missions/missions.js +2 -5
  30. package/resources/ai/missions/missions.js.map +1 -1
  31. package/resources/ai/missions/missions.mjs +2 -5
  32. package/resources/ai/missions/missions.mjs.map +1 -1
  33. package/resources/ai/missions/runs/index.d.mts +2 -2
  34. package/resources/ai/missions/runs/index.d.mts.map +1 -1
  35. package/resources/ai/missions/runs/index.d.ts +2 -2
  36. package/resources/ai/missions/runs/index.d.ts.map +1 -1
  37. package/resources/ai/missions/runs/index.js.map +1 -1
  38. package/resources/ai/missions/runs/index.mjs.map +1 -1
  39. package/resources/ai/missions/runs/plan.d.mts +19 -81
  40. package/resources/ai/missions/runs/plan.d.mts.map +1 -1
  41. package/resources/ai/missions/runs/plan.d.ts +19 -81
  42. package/resources/ai/missions/runs/plan.d.ts.map +1 -1
  43. package/resources/ai/missions/runs/runs.d.mts +20 -166
  44. package/resources/ai/missions/runs/runs.d.mts.map +1 -1
  45. package/resources/ai/missions/runs/runs.d.ts +20 -166
  46. package/resources/ai/missions/runs/runs.d.ts.map +1 -1
  47. package/resources/ai/missions/runs/runs.js +2 -2
  48. package/resources/ai/missions/runs/runs.js.map +1 -1
  49. package/resources/ai/missions/runs/runs.mjs +2 -2
  50. package/resources/ai/missions/runs/runs.mjs.map +1 -1
  51. package/resources/calls/actions.d.mts +18 -47
  52. package/resources/calls/actions.d.mts.map +1 -1
  53. package/resources/calls/actions.d.ts +18 -47
  54. package/resources/calls/actions.d.ts.map +1 -1
  55. package/resources/calls/actions.js.map +1 -1
  56. package/resources/calls/actions.mjs.map +1 -1
  57. package/resources/conferences/actions.d.mts +2 -21
  58. package/resources/conferences/actions.d.mts.map +1 -1
  59. package/resources/conferences/actions.d.ts +2 -21
  60. package/resources/conferences/actions.d.ts.map +1 -1
  61. package/resources/conferences/actions.js.map +1 -1
  62. package/resources/conferences/actions.mjs.map +1 -1
  63. package/resources/messaging-10dlc/brand/brand.d.mts +68 -1
  64. package/resources/messaging-10dlc/brand/brand.d.mts.map +1 -1
  65. package/resources/messaging-10dlc/brand/brand.d.ts +68 -1
  66. package/resources/messaging-10dlc/brand/brand.d.ts.map +1 -1
  67. package/resources/messaging-10dlc/brand/brand.js +25 -0
  68. package/resources/messaging-10dlc/brand/brand.js.map +1 -1
  69. package/resources/messaging-10dlc/brand/brand.mjs +25 -0
  70. package/resources/messaging-10dlc/brand/brand.mjs.map +1 -1
  71. package/resources/messaging-10dlc/brand/index.d.mts +1 -1
  72. package/resources/messaging-10dlc/brand/index.d.mts.map +1 -1
  73. package/resources/messaging-10dlc/brand/index.d.ts +1 -1
  74. package/resources/messaging-10dlc/brand/index.d.ts.map +1 -1
  75. package/resources/messaging-10dlc/brand/index.js.map +1 -1
  76. package/resources/messaging-10dlc/brand/index.mjs.map +1 -1
  77. package/resources/messaging-10dlc/index.d.mts +1 -1
  78. package/resources/messaging-10dlc/index.d.mts.map +1 -1
  79. package/resources/messaging-10dlc/index.d.ts +1 -1
  80. package/resources/messaging-10dlc/index.d.ts.map +1 -1
  81. package/resources/messaging-10dlc/index.js.map +1 -1
  82. package/resources/messaging-10dlc/index.mjs.map +1 -1
  83. package/resources/messaging-10dlc/messaging-10dlc.d.mts +2 -2
  84. package/resources/messaging-10dlc/messaging-10dlc.d.mts.map +1 -1
  85. package/resources/messaging-10dlc/messaging-10dlc.d.ts +2 -2
  86. package/resources/messaging-10dlc/messaging-10dlc.d.ts.map +1 -1
  87. package/resources/messaging-10dlc/messaging-10dlc.js.map +1 -1
  88. package/resources/messaging-10dlc/messaging-10dlc.mjs.map +1 -1
  89. package/resources/shared.d.mts +18 -0
  90. package/resources/shared.d.mts.map +1 -1
  91. package/resources/shared.d.ts +18 -0
  92. package/resources/shared.d.ts.map +1 -1
  93. package/resources/texml/accounts/conferences/conferences.d.mts +3 -1
  94. package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
  95. package/resources/texml/accounts/conferences/conferences.d.ts +3 -1
  96. package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
  97. package/src/client.ts +1 -0
  98. package/src/resources/ai/ai.ts +4 -4
  99. package/src/resources/ai/assistants/assistants.ts +3 -3
  100. package/src/resources/ai/index.ts +2 -2
  101. package/src/resources/ai/missions/index.ts +4 -6
  102. package/src/resources/ai/missions/missions.ts +20 -93
  103. package/src/resources/ai/missions/runs/index.ts +3 -4
  104. package/src/resources/ai/missions/runs/plan.ts +18 -107
  105. package/src/resources/ai/missions/runs/runs.ts +23 -205
  106. package/src/resources/calls/actions.ts +8 -55
  107. package/src/resources/conferences/actions.ts +2 -25
  108. package/src/resources/messaging-10dlc/brand/brand.ts +85 -0
  109. package/src/resources/messaging-10dlc/brand/index.ts +2 -0
  110. package/src/resources/messaging-10dlc/index.ts +2 -0
  111. package/src/resources/messaging-10dlc/messaging-10dlc.ts +4 -0
  112. package/src/resources/shared.ts +22 -0
  113. package/src/resources/texml/accounts/conferences/conferences.ts +1 -1
  114. package/src/version.ts +1 -1
  115. package/version.d.mts +1 -1
  116. package/version.d.ts +1 -1
  117. package/version.js +1 -1
  118. package/version.mjs +1 -1
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as Shared from '../shared';
4
5
  import * as CallsAPI from './calls';
5
6
  import * as AssistantsAPI from '../ai/assistants/assistants';
6
7
  import { APIPromise } from '../../core/api-promise';
@@ -1941,7 +1942,7 @@ export namespace ActionAddAIAssistantMessagesParams {
1941
1942
  /**
1942
1943
  * Metadata to add to the message
1943
1944
  */
1944
- metadata?: unknown;
1945
+ metadata?: { [key: string]: unknown };
1945
1946
  }
1946
1947
 
1947
1948
  /**
@@ -1961,7 +1962,7 @@ export namespace ActionAddAIAssistantMessagesParams {
1961
1962
  /**
1962
1963
  * Metadata to add to the message
1963
1964
  */
1964
- metadata?: unknown;
1965
+ metadata?: { [key: string]: unknown };
1965
1966
 
1966
1967
  /**
1967
1968
  * The tool calls generated by the model, such as function calls.
@@ -2022,7 +2023,7 @@ export namespace ActionAddAIAssistantMessagesParams {
2022
2023
  /**
2023
2024
  * Metadata to add to the message
2024
2025
  */
2025
- metadata?: unknown;
2026
+ metadata?: { [key: string]: unknown };
2026
2027
  }
2027
2028
 
2028
2029
  /**
@@ -2043,7 +2044,7 @@ export namespace ActionAddAIAssistantMessagesParams {
2043
2044
  /**
2044
2045
  * Metadata to add to the message
2045
2046
  */
2046
- metadata?: unknown;
2047
+ metadata?: { [key: string]: unknown };
2047
2048
  }
2048
2049
 
2049
2050
  /**
@@ -2064,7 +2065,7 @@ export namespace ActionAddAIAssistantMessagesParams {
2064
2065
  /**
2065
2066
  * Metadata to add to the message
2066
2067
  */
2067
- metadata?: unknown;
2068
+ metadata?: { [key: string]: unknown };
2068
2069
  }
2069
2070
  }
2070
2071
 
@@ -2832,31 +2833,7 @@ export interface ActionGatherUsingSpeakParams {
2832
2833
  | ElevenLabsVoiceSettings
2833
2834
  | TelnyxVoiceSettings
2834
2835
  | AwsVoiceSettings
2835
- | ActionGatherUsingSpeakParams.MinimaxVoiceSettings;
2836
- }
2837
-
2838
- export namespace ActionGatherUsingSpeakParams {
2839
- export interface MinimaxVoiceSettings {
2840
- /**
2841
- * Voice settings provider type
2842
- */
2843
- type: 'minimax';
2844
-
2845
- /**
2846
- * Voice pitch adjustment. Default is 0.
2847
- */
2848
- pitch?: number;
2849
-
2850
- /**
2851
- * Speech speed multiplier. Default is 1.0.
2852
- */
2853
- speed?: number;
2854
-
2855
- /**
2856
- * Speech volume multiplier. Default is 1.0.
2857
- */
2858
- vol?: number;
2859
- }
2836
+ | Shared.MinimaxVoiceSettings;
2860
2837
  }
2861
2838
 
2862
2839
  export interface ActionHangupParams {
@@ -3151,31 +3128,7 @@ export interface ActionSpeakParams {
3151
3128
  | ElevenLabsVoiceSettings
3152
3129
  | TelnyxVoiceSettings
3153
3130
  | AwsVoiceSettings
3154
- | ActionSpeakParams.MinimaxVoiceSettings;
3155
- }
3156
-
3157
- export namespace ActionSpeakParams {
3158
- export interface MinimaxVoiceSettings {
3159
- /**
3160
- * Voice settings provider type
3161
- */
3162
- type: 'minimax';
3163
-
3164
- /**
3165
- * Voice pitch adjustment. Default is 0.
3166
- */
3167
- pitch?: number;
3168
-
3169
- /**
3170
- * Speech speed multiplier. Default is 1.0.
3171
- */
3172
- speed?: number;
3173
-
3174
- /**
3175
- * Speech volume multiplier. Default is 1.0.
3176
- */
3177
- vol?: number;
3178
- }
3131
+ | Shared.MinimaxVoiceSettings;
3179
3132
  }
3180
3133
 
3181
3134
  export interface ActionStartAIAssistantParams {
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
+ import * as Shared from '../shared';
4
5
  import * as ActionsAPI from '../calls/actions';
5
6
  import { APIPromise } from '../../core/api-promise';
6
7
  import { RequestOptions } from '../../internal/request-options';
@@ -799,31 +800,7 @@ export interface ActionSpeakParams {
799
800
  | ActionsAPI.ElevenLabsVoiceSettings
800
801
  | ActionsAPI.TelnyxVoiceSettings
801
802
  | ActionsAPI.AwsVoiceSettings
802
- | ActionSpeakParams.MinimaxVoiceSettings;
803
- }
804
-
805
- export namespace ActionSpeakParams {
806
- export interface MinimaxVoiceSettings {
807
- /**
808
- * Voice settings provider type
809
- */
810
- type: 'minimax';
811
-
812
- /**
813
- * Voice pitch adjustment. Default is 0.
814
- */
815
- pitch?: number;
816
-
817
- /**
818
- * Speech speed multiplier. Default is 1.0.
819
- */
820
- speed?: number;
821
-
822
- /**
823
- * Speech volume multiplier. Default is 1.0.
824
- */
825
- vol?: number;
826
- }
803
+ | Shared.MinimaxVoiceSettings;
827
804
  }
828
805
 
829
806
  export interface ActionStopParams {
@@ -137,6 +137,36 @@ export class Brand extends APIResource {
137
137
  return this._client.get(path`/10dlc/brand/feedback/${brandID}`, options);
138
138
  }
139
139
 
140
+ /**
141
+ * Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
142
+ * verification.
143
+ *
144
+ * This endpoint allows you to check the delivery and verification status of an OTP
145
+ * sent during the Sole Proprietor brand verification process. You can query by
146
+ * either:
147
+ *
148
+ * - `referenceId` - The reference ID returned when the OTP was initially triggered
149
+ * - `brandId` - Query parameter for portal users to look up OTP status by Brand ID
150
+ *
151
+ * The response includes delivery status, verification dates, and detailed delivery
152
+ * information.
153
+ *
154
+ * @example
155
+ * ```ts
156
+ * const response =
157
+ * await client.messaging10dlc.brand.getSMSOtpByReference(
158
+ * 'OTP4B2001',
159
+ * );
160
+ * ```
161
+ */
162
+ getSMSOtpByReference(
163
+ referenceID: string,
164
+ query: BrandGetSMSOtpByReferenceParams | null | undefined = {},
165
+ options?: RequestOptions,
166
+ ): APIPromise<BrandGetSMSOtpByReferenceResponse> {
167
+ return this._client.get(path`/10dlc/brand/smsOtp/${referenceID}`, { query, ...options });
168
+ }
169
+
140
170
  /**
141
171
  * Resend brand 2FA email
142
172
  *
@@ -660,6 +690,52 @@ export namespace BrandGetFeedbackResponse {
660
690
  }
661
691
  }
662
692
 
693
+ /**
694
+ * Status information for an SMS OTP sent during Sole Proprietor brand verification
695
+ */
696
+ export interface BrandGetSMSOtpByReferenceResponse {
697
+ /**
698
+ * The Brand ID associated with this OTP request
699
+ */
700
+ brandId: string;
701
+
702
+ /**
703
+ * The current delivery status of the OTP SMS message. Common values include:
704
+ * `DELIVERED_HANDSET`, `PENDING`, `FAILED`, `EXPIRED`
705
+ */
706
+ deliveryStatus: string;
707
+
708
+ /**
709
+ * The mobile phone number where the OTP was sent, in E.164 format
710
+ */
711
+ mobilePhone: string;
712
+
713
+ /**
714
+ * The reference ID for this OTP request, used for status queries
715
+ */
716
+ referenceId: string;
717
+
718
+ /**
719
+ * The timestamp when the OTP request was initiated
720
+ */
721
+ requestDate: string;
722
+
723
+ /**
724
+ * The timestamp when the delivery status was last updated
725
+ */
726
+ deliveryStatusDate?: string;
727
+
728
+ /**
729
+ * Additional details about the delivery status
730
+ */
731
+ deliveryStatusDetails?: string;
732
+
733
+ /**
734
+ * The timestamp when the OTP was successfully verified (if applicable)
735
+ */
736
+ verifyDate?: string;
737
+ }
738
+
663
739
  /**
664
740
  * Status information for an SMS OTP sent during Sole Proprietor brand verification
665
741
  */
@@ -1012,6 +1088,13 @@ export interface BrandListParams extends PerPagePaginationV2Params {
1012
1088
  tcrBrandId?: string;
1013
1089
  }
1014
1090
 
1091
+ export interface BrandGetSMSOtpByReferenceParams {
1092
+ /**
1093
+ * Filter by Brand ID for easier lookup in portal applications
1094
+ */
1095
+ brandId?: string;
1096
+ }
1097
+
1015
1098
  export interface BrandTriggerSMSOtpParams {
1016
1099
  /**
1017
1100
  * SMS message template to send the OTP. Must include `@OTP_PIN@` placeholder which
@@ -1045,12 +1128,14 @@ export declare namespace Brand {
1045
1128
  type BrandRetrieveResponse as BrandRetrieveResponse,
1046
1129
  type BrandListResponse as BrandListResponse,
1047
1130
  type BrandGetFeedbackResponse as BrandGetFeedbackResponse,
1131
+ type BrandGetSMSOtpByReferenceResponse as BrandGetSMSOtpByReferenceResponse,
1048
1132
  type BrandRetrieveSMSOtpStatusResponse as BrandRetrieveSMSOtpStatusResponse,
1049
1133
  type BrandTriggerSMSOtpResponse as BrandTriggerSMSOtpResponse,
1050
1134
  type BrandListResponsesPerPagePaginationV2 as BrandListResponsesPerPagePaginationV2,
1051
1135
  type BrandCreateParams as BrandCreateParams,
1052
1136
  type BrandUpdateParams as BrandUpdateParams,
1053
1137
  type BrandListParams as BrandListParams,
1138
+ type BrandGetSMSOtpByReferenceParams as BrandGetSMSOtpByReferenceParams,
1054
1139
  type BrandTriggerSMSOtpParams as BrandTriggerSMSOtpParams,
1055
1140
  type BrandVerifySMSOtpParams as BrandVerifySMSOtpParams,
1056
1141
  };
@@ -11,11 +11,13 @@ export {
11
11
  type BrandRetrieveResponse,
12
12
  type BrandListResponse,
13
13
  type BrandGetFeedbackResponse,
14
+ type BrandGetSMSOtpByReferenceResponse,
14
15
  type BrandRetrieveSMSOtpStatusResponse,
15
16
  type BrandTriggerSMSOtpResponse,
16
17
  type BrandCreateParams,
17
18
  type BrandUpdateParams,
18
19
  type BrandListParams,
20
+ type BrandGetSMSOtpByReferenceParams,
19
21
  type BrandTriggerSMSOtpParams,
20
22
  type BrandVerifySMSOtpParams,
21
23
  type BrandListResponsesPerPagePaginationV2,
@@ -11,11 +11,13 @@ export {
11
11
  type BrandRetrieveResponse,
12
12
  type BrandListResponse,
13
13
  type BrandGetFeedbackResponse,
14
+ type BrandGetSMSOtpByReferenceResponse,
14
15
  type BrandRetrieveSMSOtpStatusResponse,
15
16
  type BrandTriggerSMSOtpResponse,
16
17
  type BrandCreateParams,
17
18
  type BrandUpdateParams,
18
19
  type BrandListParams,
20
+ type BrandGetSMSOtpByReferenceParams,
19
21
  type BrandTriggerSMSOtpParams,
20
22
  type BrandVerifySMSOtpParams,
21
23
  type BrandListResponsesPerPagePaginationV2,
@@ -41,6 +41,8 @@ import {
41
41
  Brand,
42
42
  BrandCreateParams,
43
43
  BrandGetFeedbackResponse,
44
+ BrandGetSMSOtpByReferenceParams,
45
+ BrandGetSMSOtpByReferenceResponse,
44
46
  BrandIdentityStatus,
45
47
  BrandListParams,
46
48
  BrandListResponse,
@@ -161,12 +163,14 @@ export declare namespace Messaging10dlc {
161
163
  type BrandRetrieveResponse as BrandRetrieveResponse,
162
164
  type BrandListResponse as BrandListResponse,
163
165
  type BrandGetFeedbackResponse as BrandGetFeedbackResponse,
166
+ type BrandGetSMSOtpByReferenceResponse as BrandGetSMSOtpByReferenceResponse,
164
167
  type BrandRetrieveSMSOtpStatusResponse as BrandRetrieveSMSOtpStatusResponse,
165
168
  type BrandTriggerSMSOtpResponse as BrandTriggerSMSOtpResponse,
166
169
  type BrandListResponsesPerPagePaginationV2 as BrandListResponsesPerPagePaginationV2,
167
170
  type BrandCreateParams as BrandCreateParams,
168
171
  type BrandUpdateParams as BrandUpdateParams,
169
172
  type BrandListParams as BrandListParams,
173
+ type BrandGetSMSOtpByReferenceParams as BrandGetSMSOtpByReferenceParams,
170
174
  type BrandTriggerSMSOtpParams as BrandTriggerSMSOtpParams,
171
175
  type BrandVerifySMSOtpParams as BrandVerifySMSOtpParams,
172
176
  };
@@ -580,6 +580,28 @@ export interface Metadata {
580
580
  total_results?: number;
581
581
  }
582
582
 
583
+ export interface MinimaxVoiceSettings {
584
+ /**
585
+ * Voice settings provider type
586
+ */
587
+ type: 'minimax';
588
+
589
+ /**
590
+ * Voice pitch adjustment. Default is 0.
591
+ */
592
+ pitch?: number;
593
+
594
+ /**
595
+ * Speech speed multiplier. Default is 1.0.
596
+ */
597
+ speed?: number;
598
+
599
+ /**
600
+ * Speech volume multiplier. Default is 1.0.
601
+ */
602
+ vol?: number;
603
+ }
604
+
583
605
  /**
584
606
  * High level health metrics about the number and it's messaging sending patterns.
585
607
  */
@@ -408,7 +408,7 @@ export interface ConferenceRetrieveRecordingsResponse {
408
408
  /**
409
409
  * List of participant resources.
410
410
  */
411
- participants?: Array<unknown>;
411
+ participants?: Array<{ [key: string]: unknown }>;
412
412
 
413
413
  recordings?: Array<ConferenceRetrieveRecordingsResponse.Recording>;
414
414
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.30.0'; // x-release-please-version
1
+ export const VERSION = '5.32.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.30.0";
1
+ export declare const VERSION = "5.32.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.30.0";
1
+ export declare const VERSION = "5.32.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.30.0'; // x-release-please-version
4
+ exports.VERSION = '5.32.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.30.0'; // x-release-please-version
1
+ export const VERSION = '5.32.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map