telnyx 5.46.0 → 5.47.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 (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +3 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/comments.d.mts +26 -81
  10. package/resources/comments.d.mts.map +1 -1
  11. package/resources/comments.d.ts +26 -81
  12. package/resources/comments.d.ts.map +1 -1
  13. package/resources/comments.js.map +1 -1
  14. package/resources/comments.mjs.map +1 -1
  15. package/resources/index.d.mts +1 -1
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +1 -1
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js.map +1 -1
  20. package/resources/index.mjs.map +1 -1
  21. package/resources/recording-transcriptions.d.mts +2 -13
  22. package/resources/recording-transcriptions.d.mts.map +1 -1
  23. package/resources/recording-transcriptions.d.ts +2 -13
  24. package/resources/recording-transcriptions.d.ts.map +1 -1
  25. package/resources/recording-transcriptions.js.map +1 -1
  26. package/resources/recording-transcriptions.mjs.map +1 -1
  27. package/resources/shared.d.mts +10 -0
  28. package/resources/shared.d.mts.map +1 -1
  29. package/resources/shared.d.ts +10 -0
  30. package/resources/shared.d.ts.map +1 -1
  31. package/src/client.ts +3 -0
  32. package/src/resources/comments.ts +31 -112
  33. package/src/resources/index.ts +1 -0
  34. package/src/resources/recording-transcriptions.ts +2 -15
  35. package/src/resources/shared.ts +12 -0
  36. package/src/version.ts +1 -1
  37. package/version.d.mts +1 -1
  38. package/version.d.ts +1 -1
  39. package/version.js +1 -1
  40. 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 CommentsAPI from './comments';
4
5
  import * as AuthenticationProvidersAPI from './authentication-providers';
5
6
  import { APIPromise } from '../core/api-promise';
6
7
  import { RequestOptions } from '../internal/request-options';
@@ -59,39 +60,41 @@ export class Comments extends APIResource {
59
60
  }
60
61
  }
61
62
 
62
- export interface CommentCreateResponse {
63
- data?: CommentCreateResponse.Data;
64
- }
63
+ export interface Comment {
64
+ id?: string;
65
65
 
66
- export namespace CommentCreateResponse {
67
- export interface Data {
68
- id?: string;
66
+ body?: string;
69
67
 
70
- body?: string;
68
+ comment_record_id?: string;
71
69
 
72
- comment_record_id?: string;
70
+ comment_record_type?: 'sub_number_order' | 'requirement_group';
73
71
 
74
- comment_record_type?: 'sub_number_order' | 'requirement_group';
72
+ commenter?: string;
75
73
 
76
- commenter?: string;
74
+ commenter_type?: 'admin' | 'user';
77
75
 
78
- commenter_type?: 'admin' | 'user';
76
+ /**
77
+ * An ISO 8901 datetime string denoting when the comment was created.
78
+ */
79
+ created_at?: string;
79
80
 
80
- /**
81
- * An ISO 8901 datetime string denoting when the comment was created.
82
- */
83
- created_at?: string;
81
+ /**
82
+ * An ISO 8901 datetime string for when the comment was read.
83
+ */
84
+ read_at?: string;
84
85
 
85
- /**
86
- * An ISO 8901 datetime string for when the comment was read.
87
- */
88
- read_at?: string;
86
+ /**
87
+ * An ISO 8901 datetime string for when the comment was updated.
88
+ */
89
+ updated_at?: string;
90
+ }
89
91
 
90
- /**
91
- * An ISO 8901 datetime string for when the comment was updated.
92
- */
93
- updated_at?: string;
94
- }
92
+ export interface CommentCreateResponse {
93
+ data?: CommentCreateResponse.Data;
94
+ }
95
+
96
+ export namespace CommentCreateResponse {
97
+ export interface Data extends CommentsAPI.Comment {}
95
98
  }
96
99
 
97
100
  export interface CommentRetrieveResponse {
@@ -99,106 +102,21 @@ export interface CommentRetrieveResponse {
99
102
  }
100
103
 
101
104
  export namespace CommentRetrieveResponse {
102
- export interface Data {
103
- id?: string;
104
-
105
- body?: string;
106
-
107
- comment_record_id?: string;
108
-
109
- comment_record_type?: 'sub_number_order' | 'requirement_group';
110
-
111
- commenter?: string;
112
-
113
- commenter_type?: 'admin' | 'user';
114
-
115
- /**
116
- * An ISO 8901 datetime string denoting when the comment was created.
117
- */
118
- created_at?: string;
119
-
120
- /**
121
- * An ISO 8901 datetime string for when the comment was read.
122
- */
123
- read_at?: string;
124
-
125
- /**
126
- * An ISO 8901 datetime string for when the comment was updated.
127
- */
128
- updated_at?: string;
129
- }
105
+ export interface Data extends CommentsAPI.Comment {}
130
106
  }
131
107
 
132
108
  export interface CommentListResponse {
133
- data?: Array<CommentListResponse.Data>;
109
+ data?: Array<Comment>;
134
110
 
135
111
  meta?: AuthenticationProvidersAPI.PaginationMeta;
136
112
  }
137
113
 
138
- export namespace CommentListResponse {
139
- export interface Data {
140
- id?: string;
141
-
142
- body?: string;
143
-
144
- comment_record_id?: string;
145
-
146
- comment_record_type?: 'sub_number_order' | 'requirement_group';
147
-
148
- commenter?: string;
149
-
150
- commenter_type?: 'admin' | 'user';
151
-
152
- /**
153
- * An ISO 8901 datetime string denoting when the comment was created.
154
- */
155
- created_at?: string;
156
-
157
- /**
158
- * An ISO 8901 datetime string for when the comment was read.
159
- */
160
- read_at?: string;
161
-
162
- /**
163
- * An ISO 8901 datetime string for when the comment was updated.
164
- */
165
- updated_at?: string;
166
- }
167
- }
168
-
169
114
  export interface CommentMarkAsReadResponse {
170
115
  data?: CommentMarkAsReadResponse.Data;
171
116
  }
172
117
 
173
118
  export namespace CommentMarkAsReadResponse {
174
- export interface Data {
175
- id?: string;
176
-
177
- body?: string;
178
-
179
- comment_record_id?: string;
180
-
181
- comment_record_type?: 'sub_number_order' | 'requirement_group';
182
-
183
- commenter?: string;
184
-
185
- commenter_type?: 'admin' | 'user';
186
-
187
- /**
188
- * An ISO 8901 datetime string denoting when the comment was created.
189
- */
190
- created_at?: string;
191
-
192
- /**
193
- * An ISO 8901 datetime string for when the comment was read.
194
- */
195
- read_at?: string;
196
-
197
- /**
198
- * An ISO 8901 datetime string for when the comment was updated.
199
- */
200
- updated_at?: string;
201
- }
119
+ export interface Data extends CommentsAPI.Comment {}
202
120
  }
203
121
 
204
122
  export interface CommentCreateParams {
@@ -237,6 +155,7 @@ export namespace CommentListParams {
237
155
 
238
156
  export declare namespace Comments {
239
157
  export {
158
+ type Comment as Comment,
240
159
  type CommentCreateResponse as CommentCreateResponse,
241
160
  type CommentRetrieveResponse as CommentRetrieveResponse,
242
161
  type CommentListResponse as CommentListResponse,
@@ -157,6 +157,7 @@ export {
157
157
  } from './charges-summary';
158
158
  export {
159
159
  Comments,
160
+ type Comment,
160
161
  type CommentCreateResponse,
161
162
  type CommentRetrieveResponse,
162
163
  type CommentListResponse,
@@ -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 { APIPromise } from '../core/api-promise';
5
6
  import { RequestOptions } from '../internal/request-options';
6
7
  import { path } from '../internal/utils/path';
@@ -86,7 +87,7 @@ export interface RecordingTranscriptionListResponse {
86
87
 
87
88
  export namespace RecordingTranscriptionListResponse {
88
89
  export interface Meta {
89
- cursors?: Meta.Cursors;
90
+ cursors?: Shared.Cursor;
90
91
 
91
92
  /**
92
93
  * Path to next page.
@@ -98,20 +99,6 @@ export namespace RecordingTranscriptionListResponse {
98
99
  */
99
100
  previous?: string;
100
101
  }
101
-
102
- export namespace Meta {
103
- export interface Cursors {
104
- /**
105
- * Opaque identifier of next page.
106
- */
107
- after?: string;
108
-
109
- /**
110
- * Opaque identifier of previous page.
111
- */
112
- before?: string;
113
- }
114
- }
115
102
  }
116
103
 
117
104
  export interface RecordingTranscriptionDeleteResponse {
@@ -152,6 +152,18 @@ export interface CostInformation {
152
152
  upfront_cost?: string;
153
153
  }
154
154
 
155
+ export interface Cursor {
156
+ /**
157
+ * Opaque identifier of next page.
158
+ */
159
+ after?: string;
160
+
161
+ /**
162
+ * Opaque identifier of previous page.
163
+ */
164
+ before?: string;
165
+ }
166
+
155
167
  export interface DocReqsRequirementType {
156
168
  /**
157
169
  * Identifies the associated document
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.46.0'; // x-release-please-version
1
+ export const VERSION = '5.47.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.46.0";
1
+ export declare const VERSION = "5.47.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.46.0";
1
+ export declare const VERSION = "5.47.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.46.0'; // x-release-please-version
4
+ exports.VERSION = '5.47.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.46.0'; // x-release-please-version
1
+ export const VERSION = '5.47.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map