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.
Files changed (114) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  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/calls/actions.d.mts +183 -6
  10. package/resources/calls/actions.d.mts.map +1 -1
  11. package/resources/calls/actions.d.ts +183 -6
  12. package/resources/calls/actions.d.ts.map +1 -1
  13. package/resources/calls/actions.js.map +1 -1
  14. package/resources/calls/actions.mjs.map +1 -1
  15. package/resources/index.d.mts +3 -3
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +3 -3
  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/legacy/reporting/batch-detail-records/batch-detail-records.d.mts +41 -6
  22. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.mts.map +1 -1
  23. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts +41 -6
  24. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.d.ts.map +1 -1
  25. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.js.map +1 -1
  26. package/resources/legacy/reporting/batch-detail-records/batch-detail-records.mjs.map +1 -1
  27. package/resources/legacy/reporting/batch-detail-records/index.d.mts +4 -4
  28. package/resources/legacy/reporting/batch-detail-records/index.d.mts.map +1 -1
  29. package/resources/legacy/reporting/batch-detail-records/index.d.ts +4 -4
  30. package/resources/legacy/reporting/batch-detail-records/index.d.ts.map +1 -1
  31. package/resources/legacy/reporting/batch-detail-records/index.js.map +1 -1
  32. package/resources/legacy/reporting/batch-detail-records/index.mjs.map +1 -1
  33. package/resources/legacy/reporting/batch-detail-records/messaging.d.mts +29 -280
  34. package/resources/legacy/reporting/batch-detail-records/messaging.d.mts.map +1 -1
  35. package/resources/legacy/reporting/batch-detail-records/messaging.d.ts +29 -280
  36. package/resources/legacy/reporting/batch-detail-records/messaging.d.ts.map +1 -1
  37. package/resources/legacy/reporting/batch-detail-records/messaging.js.map +1 -1
  38. package/resources/legacy/reporting/batch-detail-records/messaging.mjs.map +1 -1
  39. package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts +20 -73
  40. package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.mts.map +1 -1
  41. package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts +20 -73
  42. package/resources/legacy/reporting/batch-detail-records/speech-to-text.d.ts.map +1 -1
  43. package/resources/legacy/reporting/batch-detail-records/voice.d.mts +75 -473
  44. package/resources/legacy/reporting/batch-detail-records/voice.d.mts.map +1 -1
  45. package/resources/legacy/reporting/batch-detail-records/voice.d.ts +75 -473
  46. package/resources/legacy/reporting/batch-detail-records/voice.d.ts.map +1 -1
  47. package/resources/legacy/reporting/batch-detail-records/voice.js.map +1 -1
  48. package/resources/legacy/reporting/batch-detail-records/voice.mjs.map +1 -1
  49. package/resources/legacy/reporting/index.d.mts +1 -1
  50. package/resources/legacy/reporting/index.d.mts.map +1 -1
  51. package/resources/legacy/reporting/index.d.ts +1 -1
  52. package/resources/legacy/reporting/index.d.ts.map +1 -1
  53. package/resources/legacy/reporting/index.js.map +1 -1
  54. package/resources/legacy/reporting/index.mjs.map +1 -1
  55. package/resources/legacy/reporting/reporting.d.mts +2 -2
  56. package/resources/legacy/reporting/reporting.d.mts.map +1 -1
  57. package/resources/legacy/reporting/reporting.d.ts +2 -2
  58. package/resources/legacy/reporting/reporting.d.ts.map +1 -1
  59. package/resources/legacy/reporting/reporting.js.map +1 -1
  60. package/resources/legacy/reporting/reporting.mjs.map +1 -1
  61. package/resources/legacy/reporting/usage-reports/index.d.mts +2 -2
  62. package/resources/legacy/reporting/usage-reports/index.d.mts.map +1 -1
  63. package/resources/legacy/reporting/usage-reports/index.d.ts +2 -2
  64. package/resources/legacy/reporting/usage-reports/index.d.ts.map +1 -1
  65. package/resources/legacy/reporting/usage-reports/index.js.map +1 -1
  66. package/resources/legacy/reporting/usage-reports/index.mjs.map +1 -1
  67. package/resources/legacy/reporting/usage-reports/messaging.d.mts +31 -124
  68. package/resources/legacy/reporting/usage-reports/messaging.d.mts.map +1 -1
  69. package/resources/legacy/reporting/usage-reports/messaging.d.ts +31 -124
  70. package/resources/legacy/reporting/usage-reports/messaging.d.ts.map +1 -1
  71. package/resources/legacy/reporting/usage-reports/usage-reports.d.mts +4 -4
  72. package/resources/legacy/reporting/usage-reports/usage-reports.d.mts.map +1 -1
  73. package/resources/legacy/reporting/usage-reports/usage-reports.d.ts +4 -4
  74. package/resources/legacy/reporting/usage-reports/usage-reports.d.ts.map +1 -1
  75. package/resources/legacy/reporting/usage-reports/usage-reports.js.map +1 -1
  76. package/resources/legacy/reporting/usage-reports/usage-reports.mjs.map +1 -1
  77. package/resources/legacy/reporting/usage-reports/voice.d.mts +32 -128
  78. package/resources/legacy/reporting/usage-reports/voice.d.mts.map +1 -1
  79. package/resources/legacy/reporting/usage-reports/voice.d.ts +32 -128
  80. package/resources/legacy/reporting/usage-reports/voice.d.ts.map +1 -1
  81. package/resources/oauth-clients.d.mts +71 -275
  82. package/resources/oauth-clients.d.mts.map +1 -1
  83. package/resources/oauth-clients.d.ts +71 -275
  84. package/resources/oauth-clients.d.ts.map +1 -1
  85. package/resources/oauth-grants.d.mts +30 -86
  86. package/resources/oauth-grants.d.mts.map +1 -1
  87. package/resources/oauth-grants.d.ts +30 -86
  88. package/resources/oauth-grants.d.ts.map +1 -1
  89. package/resources/verify-profiles.d.mts +8 -22
  90. package/resources/verify-profiles.d.mts.map +1 -1
  91. package/resources/verify-profiles.d.ts +8 -22
  92. package/resources/verify-profiles.d.ts.map +1 -1
  93. package/src/client.ts +6 -0
  94. package/src/resources/calls/actions.ts +555 -6
  95. package/src/resources/index.ts +3 -0
  96. package/src/resources/legacy/reporting/batch-detail-records/batch-detail-records.ts +49 -0
  97. package/src/resources/legacy/reporting/batch-detail-records/index.ts +4 -1
  98. package/src/resources/legacy/reporting/batch-detail-records/messaging.ts +30 -357
  99. package/src/resources/legacy/reporting/batch-detail-records/speech-to-text.ts +21 -94
  100. package/src/resources/legacy/reporting/batch-detail-records/voice.ts +89 -572
  101. package/src/resources/legacy/reporting/index.ts +1 -1
  102. package/src/resources/legacy/reporting/reporting.ts +2 -2
  103. package/src/resources/legacy/reporting/usage-reports/index.ts +2 -0
  104. package/src/resources/legacy/reporting/usage-reports/messaging.ts +31 -159
  105. package/src/resources/legacy/reporting/usage-reports/usage-reports.ts +4 -0
  106. package/src/resources/legacy/reporting/usage-reports/voice.ts +32 -163
  107. package/src/resources/oauth-clients.ts +72 -323
  108. package/src/resources/oauth-grants.ts +31 -98
  109. package/src/resources/verify-profiles.ts +10 -27
  110. package/src/version.ts +1 -1
  111. package/version.d.mts +1 -1
  112. package/version.d.ts +1 -1
  113. package/version.js +1 -1
  114. package/version.mjs +1 -1
@@ -59,290 +59,86 @@ export declare class OAuthClients extends APIResource {
59
59
  */
60
60
  delete(id: string, options?: RequestOptions): APIPromise<void>;
61
61
  }
62
- export interface OAuthClientCreateResponse {
63
- data?: OAuthClientCreateResponse.Data;
62
+ export interface OAuthClient {
63
+ /**
64
+ * OAuth client identifier
65
+ */
66
+ client_id: string;
67
+ /**
68
+ * OAuth client type
69
+ */
70
+ client_type: 'public' | 'confidential';
71
+ /**
72
+ * Timestamp when the client was created
73
+ */
74
+ created_at: string;
75
+ /**
76
+ * Human-readable name for the OAuth client
77
+ */
78
+ name: string;
79
+ /**
80
+ * Organization ID that owns this OAuth client
81
+ */
82
+ org_id: string;
83
+ /**
84
+ * Record type identifier
85
+ */
86
+ record_type: 'oauth_client';
87
+ /**
88
+ * Whether PKCE (Proof Key for Code Exchange) is required for this client
89
+ */
90
+ require_pkce: boolean;
91
+ /**
92
+ * Timestamp when the client was last updated
93
+ */
94
+ updated_at: string;
95
+ /**
96
+ * User ID that created this OAuth client
97
+ */
98
+ user_id: string;
99
+ /**
100
+ * List of allowed OAuth grant types
101
+ */
102
+ allowed_grant_types?: Array<'client_credentials' | 'authorization_code' | 'refresh_token'>;
103
+ /**
104
+ * List of allowed OAuth scopes
105
+ */
106
+ allowed_scopes?: Array<string>;
107
+ /**
108
+ * Client secret (only included when available, for confidential clients)
109
+ */
110
+ client_secret?: string | null;
111
+ /**
112
+ * URL of the client logo
113
+ */
114
+ logo_uri?: string | null;
115
+ /**
116
+ * URL of the client's privacy policy
117
+ */
118
+ policy_uri?: string | null;
119
+ /**
120
+ * List of allowed redirect URIs
121
+ */
122
+ redirect_uris?: Array<string>;
123
+ /**
124
+ * URL of the client's terms of service
125
+ */
126
+ tos_uri?: string | null;
64
127
  }
65
- export declare namespace OAuthClientCreateResponse {
66
- interface Data {
67
- /**
68
- * OAuth client identifier
69
- */
70
- client_id: string;
71
- /**
72
- * OAuth client type
73
- */
74
- client_type: 'public' | 'confidential';
75
- /**
76
- * Timestamp when the client was created
77
- */
78
- created_at: string;
79
- /**
80
- * Human-readable name for the OAuth client
81
- */
82
- name: string;
83
- /**
84
- * Organization ID that owns this OAuth client
85
- */
86
- org_id: string;
87
- /**
88
- * Record type identifier
89
- */
90
- record_type: 'oauth_client';
91
- /**
92
- * Whether PKCE (Proof Key for Code Exchange) is required for this client
93
- */
94
- require_pkce: boolean;
95
- /**
96
- * Timestamp when the client was last updated
97
- */
98
- updated_at: string;
99
- /**
100
- * User ID that created this OAuth client
101
- */
102
- user_id: string;
103
- /**
104
- * List of allowed OAuth grant types
105
- */
106
- allowed_grant_types?: Array<'client_credentials' | 'authorization_code' | 'refresh_token'>;
107
- /**
108
- * List of allowed OAuth scopes
109
- */
110
- allowed_scopes?: Array<string>;
111
- /**
112
- * Client secret (only included when available, for confidential clients)
113
- */
114
- client_secret?: string | null;
115
- /**
116
- * URL of the client logo
117
- */
118
- logo_uri?: string | null;
119
- /**
120
- * URL of the client's privacy policy
121
- */
122
- policy_uri?: string | null;
123
- /**
124
- * List of allowed redirect URIs
125
- */
126
- redirect_uris?: Array<string>;
127
- /**
128
- * URL of the client's terms of service
129
- */
130
- tos_uri?: string | null;
131
- }
128
+ export interface OAuthClientCreateResponse {
129
+ data?: OAuthClient;
132
130
  }
133
131
  export interface OAuthClientRetrieveResponse {
134
- data?: OAuthClientRetrieveResponse.Data;
135
- }
136
- export declare namespace OAuthClientRetrieveResponse {
137
- interface Data {
138
- /**
139
- * OAuth client identifier
140
- */
141
- client_id: string;
142
- /**
143
- * OAuth client type
144
- */
145
- client_type: 'public' | 'confidential';
146
- /**
147
- * Timestamp when the client was created
148
- */
149
- created_at: string;
150
- /**
151
- * Human-readable name for the OAuth client
152
- */
153
- name: string;
154
- /**
155
- * Organization ID that owns this OAuth client
156
- */
157
- org_id: string;
158
- /**
159
- * Record type identifier
160
- */
161
- record_type: 'oauth_client';
162
- /**
163
- * Whether PKCE (Proof Key for Code Exchange) is required for this client
164
- */
165
- require_pkce: boolean;
166
- /**
167
- * Timestamp when the client was last updated
168
- */
169
- updated_at: string;
170
- /**
171
- * User ID that created this OAuth client
172
- */
173
- user_id: string;
174
- /**
175
- * List of allowed OAuth grant types
176
- */
177
- allowed_grant_types?: Array<'client_credentials' | 'authorization_code' | 'refresh_token'>;
178
- /**
179
- * List of allowed OAuth scopes
180
- */
181
- allowed_scopes?: Array<string>;
182
- /**
183
- * Client secret (only included when available, for confidential clients)
184
- */
185
- client_secret?: string | null;
186
- /**
187
- * URL of the client logo
188
- */
189
- logo_uri?: string | null;
190
- /**
191
- * URL of the client's privacy policy
192
- */
193
- policy_uri?: string | null;
194
- /**
195
- * List of allowed redirect URIs
196
- */
197
- redirect_uris?: Array<string>;
198
- /**
199
- * URL of the client's terms of service
200
- */
201
- tos_uri?: string | null;
202
- }
132
+ data?: OAuthClient;
203
133
  }
204
134
  export interface OAuthClientUpdateResponse {
205
- data?: OAuthClientUpdateResponse.Data;
206
- }
207
- export declare namespace OAuthClientUpdateResponse {
208
- interface Data {
209
- /**
210
- * OAuth client identifier
211
- */
212
- client_id: string;
213
- /**
214
- * OAuth client type
215
- */
216
- client_type: 'public' | 'confidential';
217
- /**
218
- * Timestamp when the client was created
219
- */
220
- created_at: string;
221
- /**
222
- * Human-readable name for the OAuth client
223
- */
224
- name: string;
225
- /**
226
- * Organization ID that owns this OAuth client
227
- */
228
- org_id: string;
229
- /**
230
- * Record type identifier
231
- */
232
- record_type: 'oauth_client';
233
- /**
234
- * Whether PKCE (Proof Key for Code Exchange) is required for this client
235
- */
236
- require_pkce: boolean;
237
- /**
238
- * Timestamp when the client was last updated
239
- */
240
- updated_at: string;
241
- /**
242
- * User ID that created this OAuth client
243
- */
244
- user_id: string;
245
- /**
246
- * List of allowed OAuth grant types
247
- */
248
- allowed_grant_types?: Array<'client_credentials' | 'authorization_code' | 'refresh_token'>;
249
- /**
250
- * List of allowed OAuth scopes
251
- */
252
- allowed_scopes?: Array<string>;
253
- /**
254
- * Client secret (only included when available, for confidential clients)
255
- */
256
- client_secret?: string | null;
257
- /**
258
- * URL of the client logo
259
- */
260
- logo_uri?: string | null;
261
- /**
262
- * URL of the client's privacy policy
263
- */
264
- policy_uri?: string | null;
265
- /**
266
- * List of allowed redirect URIs
267
- */
268
- redirect_uris?: Array<string>;
269
- /**
270
- * URL of the client's terms of service
271
- */
272
- tos_uri?: string | null;
273
- }
135
+ data?: OAuthClient;
274
136
  }
275
137
  export interface OAuthClientListResponse {
276
- data?: Array<OAuthClientListResponse.Data>;
138
+ data?: Array<OAuthClient>;
277
139
  meta?: OAuthClientListResponse.Meta;
278
140
  }
279
141
  export declare namespace OAuthClientListResponse {
280
- interface Data {
281
- /**
282
- * OAuth client identifier
283
- */
284
- client_id: string;
285
- /**
286
- * OAuth client type
287
- */
288
- client_type: 'public' | 'confidential';
289
- /**
290
- * Timestamp when the client was created
291
- */
292
- created_at: string;
293
- /**
294
- * Human-readable name for the OAuth client
295
- */
296
- name: string;
297
- /**
298
- * Organization ID that owns this OAuth client
299
- */
300
- org_id: string;
301
- /**
302
- * Record type identifier
303
- */
304
- record_type: 'oauth_client';
305
- /**
306
- * Whether PKCE (Proof Key for Code Exchange) is required for this client
307
- */
308
- require_pkce: boolean;
309
- /**
310
- * Timestamp when the client was last updated
311
- */
312
- updated_at: string;
313
- /**
314
- * User ID that created this OAuth client
315
- */
316
- user_id: string;
317
- /**
318
- * List of allowed OAuth grant types
319
- */
320
- allowed_grant_types?: Array<'client_credentials' | 'authorization_code' | 'refresh_token'>;
321
- /**
322
- * List of allowed OAuth scopes
323
- */
324
- allowed_scopes?: Array<string>;
325
- /**
326
- * Client secret (only included when available, for confidential clients)
327
- */
328
- client_secret?: string | null;
329
- /**
330
- * URL of the client logo
331
- */
332
- logo_uri?: string | null;
333
- /**
334
- * URL of the client's privacy policy
335
- */
336
- policy_uri?: string | null;
337
- /**
338
- * List of allowed redirect URIs
339
- */
340
- redirect_uris?: Array<string>;
341
- /**
342
- * URL of the client's terms of service
343
- */
344
- tos_uri?: string | null;
345
- }
346
142
  interface Meta {
347
143
  /**
348
144
  * Current page number
@@ -469,6 +265,6 @@ export interface OAuthClientListParams {
469
265
  'page[size]'?: number;
470
266
  }
471
267
  export declare namespace OAuthClients {
472
- export { type OAuthClientCreateResponse as OAuthClientCreateResponse, type OAuthClientRetrieveResponse as OAuthClientRetrieveResponse, type OAuthClientUpdateResponse as OAuthClientUpdateResponse, type OAuthClientListResponse as OAuthClientListResponse, type OAuthClientCreateParams as OAuthClientCreateParams, type OAuthClientUpdateParams as OAuthClientUpdateParams, type OAuthClientListParams as OAuthClientListParams, };
268
+ export { type OAuthClient as OAuthClient, type OAuthClientCreateResponse as OAuthClientCreateResponse, type OAuthClientRetrieveResponse as OAuthClientRetrieveResponse, type OAuthClientUpdateResponse as OAuthClientUpdateResponse, type OAuthClientListResponse as OAuthClientListResponse, type OAuthClientCreateParams as OAuthClientCreateParams, type OAuthClientUpdateParams as OAuthClientUpdateParams, type OAuthClientListParams as OAuthClientListParams, };
473
269
  }
474
270
  //# sourceMappingURL=oauth-clients.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-clients.d.ts","sourceRoot":"","sources":["../src/resources/oauth-clients.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAItG;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAIvF;;;;;;;;;OASG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;OAOG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC;CACvC;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,IAAI;QACnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,EAAE,QAAQ,GAAG,cAAc,CAAC;QAEvC;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,IAAI,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IAAI,WAAW,EAC/B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
@@ -15,68 +15,40 @@ export declare class OAuthGrants extends APIResource {
15
15
  */
16
16
  delete(id: string, options?: RequestOptions): APIPromise<OAuthGrantDeleteResponse>;
17
17
  }
18
- export interface OAuthGrantRetrieveResponse {
19
- data?: OAuthGrantRetrieveResponse.Data;
18
+ export interface OAuthGrant {
19
+ /**
20
+ * Unique identifier for the OAuth grant
21
+ */
22
+ id: string;
23
+ /**
24
+ * OAuth client identifier
25
+ */
26
+ client_id: string;
27
+ /**
28
+ * Timestamp when the grant was created
29
+ */
30
+ created_at: string;
31
+ /**
32
+ * Record type identifier
33
+ */
34
+ record_type: 'oauth_grant';
35
+ /**
36
+ * List of granted OAuth scopes
37
+ */
38
+ scopes: Array<string>;
39
+ /**
40
+ * Timestamp when the grant was last used
41
+ */
42
+ last_used_at?: string | null;
20
43
  }
21
- export declare namespace OAuthGrantRetrieveResponse {
22
- interface Data {
23
- /**
24
- * Unique identifier for the OAuth grant
25
- */
26
- id: string;
27
- /**
28
- * OAuth client identifier
29
- */
30
- client_id: string;
31
- /**
32
- * Timestamp when the grant was created
33
- */
34
- created_at: string;
35
- /**
36
- * Record type identifier
37
- */
38
- record_type: 'oauth_grant';
39
- /**
40
- * List of granted OAuth scopes
41
- */
42
- scopes: Array<string>;
43
- /**
44
- * Timestamp when the grant was last used
45
- */
46
- last_used_at?: string | null;
47
- }
44
+ export interface OAuthGrantRetrieveResponse {
45
+ data?: OAuthGrant;
48
46
  }
49
47
  export interface OAuthGrantListResponse {
50
- data?: Array<OAuthGrantListResponse.Data>;
48
+ data?: Array<OAuthGrant>;
51
49
  meta?: OAuthGrantListResponse.Meta;
52
50
  }
53
51
  export declare namespace OAuthGrantListResponse {
54
- interface Data {
55
- /**
56
- * Unique identifier for the OAuth grant
57
- */
58
- id: string;
59
- /**
60
- * OAuth client identifier
61
- */
62
- client_id: string;
63
- /**
64
- * Timestamp when the grant was created
65
- */
66
- created_at: string;
67
- /**
68
- * Record type identifier
69
- */
70
- record_type: 'oauth_grant';
71
- /**
72
- * List of granted OAuth scopes
73
- */
74
- scopes: Array<string>;
75
- /**
76
- * Timestamp when the grant was last used
77
- */
78
- last_used_at?: string | null;
79
- }
80
52
  interface Meta {
81
53
  /**
82
54
  * Current page number
@@ -97,35 +69,7 @@ export declare namespace OAuthGrantListResponse {
97
69
  }
98
70
  }
99
71
  export interface OAuthGrantDeleteResponse {
100
- data?: OAuthGrantDeleteResponse.Data;
101
- }
102
- export declare namespace OAuthGrantDeleteResponse {
103
- interface Data {
104
- /**
105
- * Unique identifier for the OAuth grant
106
- */
107
- id: string;
108
- /**
109
- * OAuth client identifier
110
- */
111
- client_id: string;
112
- /**
113
- * Timestamp when the grant was created
114
- */
115
- created_at: string;
116
- /**
117
- * Record type identifier
118
- */
119
- record_type: 'oauth_grant';
120
- /**
121
- * List of granted OAuth scopes
122
- */
123
- scopes: Array<string>;
124
- /**
125
- * Timestamp when the grant was last used
126
- */
127
- last_used_at?: string | null;
128
- }
72
+ data?: OAuthGrant;
129
73
  }
130
74
  export interface OAuthGrantListParams {
131
75
  /**
@@ -138,6 +82,6 @@ export interface OAuthGrantListParams {
138
82
  'page[size]'?: number;
139
83
  }
140
84
  export declare namespace OAuthGrants {
141
- export { type OAuthGrantRetrieveResponse as OAuthGrantRetrieveResponse, type OAuthGrantListResponse as OAuthGrantListResponse, type OAuthGrantDeleteResponse as OAuthGrantDeleteResponse, type OAuthGrantListParams as OAuthGrantListParams, };
85
+ export { type OAuthGrant as OAuthGrant, type OAuthGrantRetrieveResponse as OAuthGrantRetrieveResponse, type OAuthGrantListResponse as OAuthGrantListResponse, type OAuthGrantDeleteResponse as OAuthGrantDeleteResponse, type OAuthGrantListParams as OAuthGrantListParams, };
142
86
  }
143
87
  //# sourceMappingURL=oauth-grants.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oauth-grants.d.mts","sourceRoot":"","sources":["../src/resources/oauth-grants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGnF;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,0BAA0B,CAAC,IAAI,CAAC;CACxC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,WAAW,EAAE,aAAa,CAAC;QAE3B;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEtB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,C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,IAAI,CAAC;CACpC;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,IAAI;QACnB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;CACF;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -15,68 +15,40 @@ export declare class OAuthGrants extends APIResource {
15
15
  */
16
16
  delete(id: string, options?: RequestOptions): APIPromise<OAuthGrantDeleteResponse>;
17
17
  }
18
- export interface OAuthGrantRetrieveResponse {
19
- data?: OAuthGrantRetrieveResponse.Data;
18
+ export interface OAuthGrant {
19
+ /**
20
+ * Unique identifier for the OAuth grant
21
+ */
22
+ id: string;
23
+ /**
24
+ * OAuth client identifier
25
+ */
26
+ client_id: string;
27
+ /**
28
+ * Timestamp when the grant was created
29
+ */
30
+ created_at: string;
31
+ /**
32
+ * Record type identifier
33
+ */
34
+ record_type: 'oauth_grant';
35
+ /**
36
+ * List of granted OAuth scopes
37
+ */
38
+ scopes: Array<string>;
39
+ /**
40
+ * Timestamp when the grant was last used
41
+ */
42
+ last_used_at?: string | null;
20
43
  }
21
- export declare namespace OAuthGrantRetrieveResponse {
22
- interface Data {
23
- /**
24
- * Unique identifier for the OAuth grant
25
- */
26
- id: string;
27
- /**
28
- * OAuth client identifier
29
- */
30
- client_id: string;
31
- /**
32
- * Timestamp when the grant was created
33
- */
34
- created_at: string;
35
- /**
36
- * Record type identifier
37
- */
38
- record_type: 'oauth_grant';
39
- /**
40
- * List of granted OAuth scopes
41
- */
42
- scopes: Array<string>;
43
- /**
44
- * Timestamp when the grant was last used
45
- */
46
- last_used_at?: string | null;
47
- }
44
+ export interface OAuthGrantRetrieveResponse {
45
+ data?: OAuthGrant;
48
46
  }
49
47
  export interface OAuthGrantListResponse {
50
- data?: Array<OAuthGrantListResponse.Data>;
48
+ data?: Array<OAuthGrant>;
51
49
  meta?: OAuthGrantListResponse.Meta;
52
50
  }
53
51
  export declare namespace OAuthGrantListResponse {
54
- interface Data {
55
- /**
56
- * Unique identifier for the OAuth grant
57
- */
58
- id: string;
59
- /**
60
- * OAuth client identifier
61
- */
62
- client_id: string;
63
- /**
64
- * Timestamp when the grant was created
65
- */
66
- created_at: string;
67
- /**
68
- * Record type identifier
69
- */
70
- record_type: 'oauth_grant';
71
- /**
72
- * List of granted OAuth scopes
73
- */
74
- scopes: Array<string>;
75
- /**
76
- * Timestamp when the grant was last used
77
- */
78
- last_used_at?: string | null;
79
- }
80
52
  interface Meta {
81
53
  /**
82
54
  * Current page number
@@ -97,35 +69,7 @@ export declare namespace OAuthGrantListResponse {
97
69
  }
98
70
  }
99
71
  export interface OAuthGrantDeleteResponse {
100
- data?: OAuthGrantDeleteResponse.Data;
101
- }
102
- export declare namespace OAuthGrantDeleteResponse {
103
- interface Data {
104
- /**
105
- * Unique identifier for the OAuth grant
106
- */
107
- id: string;
108
- /**
109
- * OAuth client identifier
110
- */
111
- client_id: string;
112
- /**
113
- * Timestamp when the grant was created
114
- */
115
- created_at: string;
116
- /**
117
- * Record type identifier
118
- */
119
- record_type: 'oauth_grant';
120
- /**
121
- * List of granted OAuth scopes
122
- */
123
- scopes: Array<string>;
124
- /**
125
- * Timestamp when the grant was last used
126
- */
127
- last_used_at?: string | null;
128
- }
72
+ data?: OAuthGrant;
129
73
  }
130
74
  export interface OAuthGrantListParams {
131
75
  /**
@@ -138,6 +82,6 @@ export interface OAuthGrantListParams {
138
82
  'page[size]'?: number;
139
83
  }
140
84
  export declare namespace OAuthGrants {
141
- export { type OAuthGrantRetrieveResponse as OAuthGrantRetrieveResponse, type OAuthGrantListResponse as OAuthGrantListResponse, type OAuthGrantDeleteResponse as OAuthGrantDeleteResponse, type OAuthGrantListParams as OAuthGrantListParams, };
85
+ export { type OAuthGrant as OAuthGrant, type OAuthGrantRetrieveResponse as OAuthGrantRetrieveResponse, type OAuthGrantListResponse as OAuthGrantListResponse, type OAuthGrantDeleteResponse as OAuthGrantDeleteResponse, type OAuthGrantListParams as OAuthGrantListParams, };
142
86
  }
143
87
  //# sourceMappingURL=oauth-grants.d.ts.map