telnyx 3.3.3 → 3.4.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.
- package/CHANGELOG.md +15 -0
- package/client.d.mts +6 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -6
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/calls/actions.d.mts +183 -6
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +183 -6
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts +41 -6
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts +41 -6
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/batch-detail-records.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.d.mts +4 -4
- package/resources/legacy/reporting/batch-detail-records/index.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.d.ts +4 -4
- package/resources/legacy/reporting/batch-detail-records/index.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/index.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.d.mts +29 -280
- package/resources/legacy/reporting/batch-detail-records/messaging.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.d.ts +29 -280
- package/resources/legacy/reporting/batch-detail-records/messaging.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/messaging.mjs.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts +20 -73
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts +20 -73
- package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.d.mts +75 -473
- package/resources/legacy/reporting/batch-detail-records/voice.d.mts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.d.ts +75 -473
- package/resources/legacy/reporting/batch-detail-records/voice.d.ts.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.js.map +1 -1
- package/resources/legacy/reporting/batch-detail-records/voice.mjs.map +1 -1
- package/resources/legacy/reporting/index.d.mts +1 -1
- package/resources/legacy/reporting/index.d.mts.map +1 -1
- package/resources/legacy/reporting/index.d.ts +1 -1
- package/resources/legacy/reporting/index.d.ts.map +1 -1
- package/resources/legacy/reporting/index.js.map +1 -1
- package/resources/legacy/reporting/index.mjs.map +1 -1
- package/resources/legacy/reporting/reporting.d.mts +2 -2
- package/resources/legacy/reporting/reporting.d.mts.map +1 -1
- package/resources/legacy/reporting/reporting.d.ts +2 -2
- package/resources/legacy/reporting/reporting.d.ts.map +1 -1
- package/resources/legacy/reporting/reporting.js.map +1 -1
- package/resources/legacy/reporting/reporting.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.d.mts +2 -2
- package/resources/legacy/reporting/usage-reports/index.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.d.ts +2 -2
- package/resources/legacy/reporting/usage-reports/index.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.js.map +1 -1
- package/resources/legacy/reporting/usage-reports/index.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/messaging.d.mts +31 -124
- package/resources/legacy/reporting/usage-reports/messaging.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/messaging.d.ts +31 -124
- package/resources/legacy/reporting/usage-reports/messaging.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.d.mts +4 -4
- package/resources/legacy/reporting/usage-reports/usage-reports.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.d.ts +4 -4
- package/resources/legacy/reporting/usage-reports/usage-reports.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.js.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.mjs.map +1 -1
- package/resources/legacy/reporting/usage-reports/voice.d.mts +32 -128
- package/resources/legacy/reporting/usage-reports/voice.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/voice.d.ts +32 -128
- package/resources/legacy/reporting/usage-reports/voice.d.ts.map +1 -1
- package/resources/oauth-clients.d.mts +71 -275
- package/resources/oauth-clients.d.mts.map +1 -1
- package/resources/oauth-clients.d.ts +71 -275
- package/resources/oauth-clients.d.ts.map +1 -1
- package/resources/oauth-grants.d.mts +30 -86
- package/resources/oauth-grants.d.mts.map +1 -1
- package/resources/oauth-grants.d.ts +30 -86
- package/resources/oauth-grants.d.ts.map +1 -1
- package/resources/verify-profiles.d.mts +8 -22
- package/resources/verify-profiles.d.mts.map +1 -1
- package/resources/verify-profiles.d.ts +8 -22
- package/resources/verify-profiles.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/resources/calls/actions.ts +555 -6
- package/src/resources/index.ts +3 -0
- package/src/resources/legacy/reporting/batch-detail-records/batch-detail-records.ts +49 -0
- package/src/resources/legacy/reporting/batch-detail-records/index.ts +4 -1
- package/src/resources/legacy/reporting/batch-detail-records/messaging.ts +30 -357
- package/src/resources/legacy/reporting/batch-detail-records/speech-to-text.ts +21 -94
- package/src/resources/legacy/reporting/batch-detail-records/voice.ts +89 -572
- package/src/resources/legacy/reporting/index.ts +1 -1
- package/src/resources/legacy/reporting/reporting.ts +2 -2
- package/src/resources/legacy/reporting/usage-reports/index.ts +2 -0
- package/src/resources/legacy/reporting/usage-reports/messaging.ts +31 -159
- package/src/resources/legacy/reporting/usage-reports/usage-reports.ts +4 -0
- package/src/resources/legacy/reporting/usage-reports/voice.ts +32 -163
- package/src/resources/oauth-clients.ts +72 -323
- package/src/resources/oauth-grants.ts +31 -98
- package/src/resources/verify-profiles.ts +10 -27
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -50,117 +50,53 @@ export declare class Voice extends APIResource {
|
|
|
50
50
|
*/
|
|
51
51
|
delete(id: string, options?: RequestOptions): APIPromise<VoiceDeleteResponse>;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Legacy V2 CDR usage report response
|
|
55
|
+
*/
|
|
56
|
+
export interface CdrUsageReportResponseLegacy {
|
|
54
57
|
/**
|
|
55
|
-
*
|
|
58
|
+
* Identifies the resource
|
|
56
59
|
*/
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
export declare namespace VoiceCreateResponse {
|
|
60
|
+
id?: string;
|
|
60
61
|
/**
|
|
61
|
-
*
|
|
62
|
+
* Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
|
62
63
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
report_url?: string;
|
|
82
|
-
result?: unknown;
|
|
83
|
-
start_time?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
86
|
-
*/
|
|
87
|
-
status?: number;
|
|
88
|
-
updated_at?: string;
|
|
89
|
-
}
|
|
64
|
+
aggregation_type?: number;
|
|
65
|
+
connections?: Array<number>;
|
|
66
|
+
created_at?: string;
|
|
67
|
+
end_time?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
|
70
|
+
* vs Toll-free per Country = 3
|
|
71
|
+
*/
|
|
72
|
+
product_breakdown?: number;
|
|
73
|
+
record_type?: string;
|
|
74
|
+
report_url?: string;
|
|
75
|
+
result?: unknown;
|
|
76
|
+
start_time?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
79
|
+
*/
|
|
80
|
+
status?: number;
|
|
81
|
+
updated_at?: string;
|
|
90
82
|
}
|
|
91
|
-
export interface
|
|
83
|
+
export interface VoiceCreateResponse {
|
|
92
84
|
/**
|
|
93
85
|
* Legacy V2 CDR usage report response
|
|
94
86
|
*/
|
|
95
|
-
data?:
|
|
87
|
+
data?: CdrUsageReportResponseLegacy;
|
|
96
88
|
}
|
|
97
|
-
export
|
|
89
|
+
export interface VoiceRetrieveResponse {
|
|
98
90
|
/**
|
|
99
91
|
* Legacy V2 CDR usage report response
|
|
100
92
|
*/
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Identifies the resource
|
|
104
|
-
*/
|
|
105
|
-
id?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
|
108
|
-
*/
|
|
109
|
-
aggregation_type?: number;
|
|
110
|
-
connections?: Array<number>;
|
|
111
|
-
created_at?: string;
|
|
112
|
-
end_time?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
|
115
|
-
* vs Toll-free per Country = 3
|
|
116
|
-
*/
|
|
117
|
-
product_breakdown?: number;
|
|
118
|
-
record_type?: string;
|
|
119
|
-
report_url?: string;
|
|
120
|
-
result?: unknown;
|
|
121
|
-
start_time?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
124
|
-
*/
|
|
125
|
-
status?: number;
|
|
126
|
-
updated_at?: string;
|
|
127
|
-
}
|
|
93
|
+
data?: CdrUsageReportResponseLegacy;
|
|
128
94
|
}
|
|
129
95
|
export interface VoiceListResponse {
|
|
130
|
-
data?: Array<
|
|
96
|
+
data?: Array<CdrUsageReportResponseLegacy>;
|
|
131
97
|
meta?: VoiceListResponse.Meta;
|
|
132
98
|
}
|
|
133
99
|
export declare namespace VoiceListResponse {
|
|
134
|
-
/**
|
|
135
|
-
* Legacy V2 CDR usage report response
|
|
136
|
-
*/
|
|
137
|
-
interface Data {
|
|
138
|
-
/**
|
|
139
|
-
* Identifies the resource
|
|
140
|
-
*/
|
|
141
|
-
id?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
|
144
|
-
*/
|
|
145
|
-
aggregation_type?: number;
|
|
146
|
-
connections?: Array<number>;
|
|
147
|
-
created_at?: string;
|
|
148
|
-
end_time?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
|
151
|
-
* vs Toll-free per Country = 3
|
|
152
|
-
*/
|
|
153
|
-
product_breakdown?: number;
|
|
154
|
-
record_type?: string;
|
|
155
|
-
report_url?: string;
|
|
156
|
-
result?: unknown;
|
|
157
|
-
start_time?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
160
|
-
*/
|
|
161
|
-
status?: number;
|
|
162
|
-
updated_at?: string;
|
|
163
|
-
}
|
|
164
100
|
interface Meta {
|
|
165
101
|
page_number?: number;
|
|
166
102
|
page_size?: number;
|
|
@@ -172,39 +108,7 @@ export interface VoiceDeleteResponse {
|
|
|
172
108
|
/**
|
|
173
109
|
* Legacy V2 CDR usage report response
|
|
174
110
|
*/
|
|
175
|
-
data?:
|
|
176
|
-
}
|
|
177
|
-
export declare namespace VoiceDeleteResponse {
|
|
178
|
-
/**
|
|
179
|
-
* Legacy V2 CDR usage report response
|
|
180
|
-
*/
|
|
181
|
-
interface Data {
|
|
182
|
-
/**
|
|
183
|
-
* Identifies the resource
|
|
184
|
-
*/
|
|
185
|
-
id?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
|
188
|
-
*/
|
|
189
|
-
aggregation_type?: number;
|
|
190
|
-
connections?: Array<number>;
|
|
191
|
-
created_at?: string;
|
|
192
|
-
end_time?: string;
|
|
193
|
-
/**
|
|
194
|
-
* Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
|
195
|
-
* vs Toll-free per Country = 3
|
|
196
|
-
*/
|
|
197
|
-
product_breakdown?: number;
|
|
198
|
-
record_type?: string;
|
|
199
|
-
report_url?: string;
|
|
200
|
-
result?: unknown;
|
|
201
|
-
start_time?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
204
|
-
*/
|
|
205
|
-
status?: number;
|
|
206
|
-
updated_at?: string;
|
|
207
|
-
}
|
|
111
|
+
data?: CdrUsageReportResponseLegacy;
|
|
208
112
|
}
|
|
209
113
|
export interface VoiceCreateParams {
|
|
210
114
|
/**
|
|
@@ -248,6 +152,6 @@ export interface VoiceListParams {
|
|
|
248
152
|
per_page?: number;
|
|
249
153
|
}
|
|
250
154
|
export declare namespace Voice {
|
|
251
|
-
export { type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoiceDeleteResponse as VoiceDeleteResponse, type VoiceCreateParams as VoiceCreateParams, type VoiceListParams as VoiceListParams, };
|
|
155
|
+
export { type CdrUsageReportResponseLegacy as CdrUsageReportResponseLegacy, type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoiceDeleteResponse as VoiceDeleteResponse, type VoiceCreateParams as VoiceCreateParams, type VoiceListParams as VoiceListParams, };
|
|
252
156
|
}
|
|
253
157
|
//# sourceMappingURL=voice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.mts","sourceRoot":"","sources":["../../../../src/resources/legacy/reporting/usage-reports/voice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAQ1F;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG9E;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"voice.d.mts","sourceRoot":"","sources":["../../../../src/resources/legacy/reporting/usage-reports/voice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,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B,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -50,117 +50,53 @@ export declare class Voice extends APIResource {
|
|
|
50
50
|
*/
|
|
51
51
|
delete(id: string, options?: RequestOptions): APIPromise<VoiceDeleteResponse>;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Legacy V2 CDR usage report response
|
|
55
|
+
*/
|
|
56
|
+
export interface CdrUsageReportResponseLegacy {
|
|
54
57
|
/**
|
|
55
|
-
*
|
|
58
|
+
* Identifies the resource
|
|
56
59
|
*/
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
export declare namespace VoiceCreateResponse {
|
|
60
|
+
id?: string;
|
|
60
61
|
/**
|
|
61
|
-
*
|
|
62
|
+
* Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
|
62
63
|
*/
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
report_url?: string;
|
|
82
|
-
result?: unknown;
|
|
83
|
-
start_time?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
86
|
-
*/
|
|
87
|
-
status?: number;
|
|
88
|
-
updated_at?: string;
|
|
89
|
-
}
|
|
64
|
+
aggregation_type?: number;
|
|
65
|
+
connections?: Array<number>;
|
|
66
|
+
created_at?: string;
|
|
67
|
+
end_time?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
|
70
|
+
* vs Toll-free per Country = 3
|
|
71
|
+
*/
|
|
72
|
+
product_breakdown?: number;
|
|
73
|
+
record_type?: string;
|
|
74
|
+
report_url?: string;
|
|
75
|
+
result?: unknown;
|
|
76
|
+
start_time?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
79
|
+
*/
|
|
80
|
+
status?: number;
|
|
81
|
+
updated_at?: string;
|
|
90
82
|
}
|
|
91
|
-
export interface
|
|
83
|
+
export interface VoiceCreateResponse {
|
|
92
84
|
/**
|
|
93
85
|
* Legacy V2 CDR usage report response
|
|
94
86
|
*/
|
|
95
|
-
data?:
|
|
87
|
+
data?: CdrUsageReportResponseLegacy;
|
|
96
88
|
}
|
|
97
|
-
export
|
|
89
|
+
export interface VoiceRetrieveResponse {
|
|
98
90
|
/**
|
|
99
91
|
* Legacy V2 CDR usage report response
|
|
100
92
|
*/
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Identifies the resource
|
|
104
|
-
*/
|
|
105
|
-
id?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
|
108
|
-
*/
|
|
109
|
-
aggregation_type?: number;
|
|
110
|
-
connections?: Array<number>;
|
|
111
|
-
created_at?: string;
|
|
112
|
-
end_time?: string;
|
|
113
|
-
/**
|
|
114
|
-
* Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
|
115
|
-
* vs Toll-free per Country = 3
|
|
116
|
-
*/
|
|
117
|
-
product_breakdown?: number;
|
|
118
|
-
record_type?: string;
|
|
119
|
-
report_url?: string;
|
|
120
|
-
result?: unknown;
|
|
121
|
-
start_time?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
124
|
-
*/
|
|
125
|
-
status?: number;
|
|
126
|
-
updated_at?: string;
|
|
127
|
-
}
|
|
93
|
+
data?: CdrUsageReportResponseLegacy;
|
|
128
94
|
}
|
|
129
95
|
export interface VoiceListResponse {
|
|
130
|
-
data?: Array<
|
|
96
|
+
data?: Array<CdrUsageReportResponseLegacy>;
|
|
131
97
|
meta?: VoiceListResponse.Meta;
|
|
132
98
|
}
|
|
133
99
|
export declare namespace VoiceListResponse {
|
|
134
|
-
/**
|
|
135
|
-
* Legacy V2 CDR usage report response
|
|
136
|
-
*/
|
|
137
|
-
interface Data {
|
|
138
|
-
/**
|
|
139
|
-
* Identifies the resource
|
|
140
|
-
*/
|
|
141
|
-
id?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
|
144
|
-
*/
|
|
145
|
-
aggregation_type?: number;
|
|
146
|
-
connections?: Array<number>;
|
|
147
|
-
created_at?: string;
|
|
148
|
-
end_time?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
|
151
|
-
* vs Toll-free per Country = 3
|
|
152
|
-
*/
|
|
153
|
-
product_breakdown?: number;
|
|
154
|
-
record_type?: string;
|
|
155
|
-
report_url?: string;
|
|
156
|
-
result?: unknown;
|
|
157
|
-
start_time?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
160
|
-
*/
|
|
161
|
-
status?: number;
|
|
162
|
-
updated_at?: string;
|
|
163
|
-
}
|
|
164
100
|
interface Meta {
|
|
165
101
|
page_number?: number;
|
|
166
102
|
page_size?: number;
|
|
@@ -172,39 +108,7 @@ export interface VoiceDeleteResponse {
|
|
|
172
108
|
/**
|
|
173
109
|
* Legacy V2 CDR usage report response
|
|
174
110
|
*/
|
|
175
|
-
data?:
|
|
176
|
-
}
|
|
177
|
-
export declare namespace VoiceDeleteResponse {
|
|
178
|
-
/**
|
|
179
|
-
* Legacy V2 CDR usage report response
|
|
180
|
-
*/
|
|
181
|
-
interface Data {
|
|
182
|
-
/**
|
|
183
|
-
* Identifies the resource
|
|
184
|
-
*/
|
|
185
|
-
id?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
|
188
|
-
*/
|
|
189
|
-
aggregation_type?: number;
|
|
190
|
-
connections?: Array<number>;
|
|
191
|
-
created_at?: string;
|
|
192
|
-
end_time?: string;
|
|
193
|
-
/**
|
|
194
|
-
* Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
|
195
|
-
* vs Toll-free per Country = 3
|
|
196
|
-
*/
|
|
197
|
-
product_breakdown?: number;
|
|
198
|
-
record_type?: string;
|
|
199
|
-
report_url?: string;
|
|
200
|
-
result?: unknown;
|
|
201
|
-
start_time?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
|
204
|
-
*/
|
|
205
|
-
status?: number;
|
|
206
|
-
updated_at?: string;
|
|
207
|
-
}
|
|
111
|
+
data?: CdrUsageReportResponseLegacy;
|
|
208
112
|
}
|
|
209
113
|
export interface VoiceCreateParams {
|
|
210
114
|
/**
|
|
@@ -248,6 +152,6 @@ export interface VoiceListParams {
|
|
|
248
152
|
per_page?: number;
|
|
249
153
|
}
|
|
250
154
|
export declare namespace Voice {
|
|
251
|
-
export { type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoiceDeleteResponse as VoiceDeleteResponse, type VoiceCreateParams as VoiceCreateParams, type VoiceListParams as VoiceListParams, };
|
|
155
|
+
export { type CdrUsageReportResponseLegacy as CdrUsageReportResponseLegacy, type VoiceCreateResponse as VoiceCreateResponse, type VoiceRetrieveResponse as VoiceRetrieveResponse, type VoiceListResponse as VoiceListResponse, type VoiceDeleteResponse as VoiceDeleteResponse, type VoiceCreateParams as VoiceCreateParams, type VoiceListParams as VoiceListParams, };
|
|
252
156
|
}
|
|
253
157
|
//# sourceMappingURL=voice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../../src/resources/legacy/reporting/usage-reports/voice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAQ1F;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF;;;;;;;;OAQG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAIhC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG9E;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../../src/resources/legacy/reporting/usage-reports/voice.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAQ1F;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIjF;;;;;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