telnyx 6.3.0 → 6.4.1

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 (53) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts.map +1 -1
  4. package/client.js +3 -2
  5. package/client.js.map +1 -1
  6. package/client.mjs +3 -2
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/ai/assistants/assistants.d.mts +4 -0
  10. package/resources/ai/assistants/assistants.d.mts.map +1 -1
  11. package/resources/ai/assistants/assistants.d.ts +4 -0
  12. package/resources/ai/assistants/assistants.d.ts.map +1 -1
  13. package/resources/ai/assistants/assistants.js +4 -0
  14. package/resources/ai/assistants/assistants.js.map +1 -1
  15. package/resources/ai/assistants/assistants.mjs +4 -0
  16. package/resources/ai/assistants/assistants.mjs.map +1 -1
  17. package/resources/ai/assistants/index.d.mts +1 -0
  18. package/resources/ai/assistants/index.d.mts.map +1 -1
  19. package/resources/ai/assistants/index.d.ts +1 -0
  20. package/resources/ai/assistants/index.d.ts.map +1 -1
  21. package/resources/ai/assistants/index.js +3 -1
  22. package/resources/ai/assistants/index.js.map +1 -1
  23. package/resources/ai/assistants/index.mjs +1 -0
  24. package/resources/ai/assistants/index.mjs.map +1 -1
  25. package/resources/ai/assistants/tags.d.mts +59 -0
  26. package/resources/ai/assistants/tags.d.mts.map +1 -0
  27. package/resources/ai/assistants/tags.d.ts +59 -0
  28. package/resources/ai/assistants/tags.d.ts.map +1 -0
  29. package/resources/ai/assistants/tags.js +52 -0
  30. package/resources/ai/assistants/tags.js.map +1 -0
  31. package/resources/ai/assistants/tags.mjs +48 -0
  32. package/resources/ai/assistants/tags.mjs.map +1 -0
  33. package/resources/messages/messages.d.mts +12 -0
  34. package/resources/messages/messages.d.mts.map +1 -1
  35. package/resources/messages/messages.d.ts +12 -0
  36. package/resources/messages/messages.d.ts.map +1 -1
  37. package/resources/messages/messages.js.map +1 -1
  38. package/resources/messages/messages.mjs.map +1 -1
  39. package/resources/messages/rcs.d.mts +6 -0
  40. package/resources/messages/rcs.d.mts.map +1 -1
  41. package/resources/messages/rcs.d.ts +6 -0
  42. package/resources/messages/rcs.d.ts.map +1 -1
  43. package/src/client.ts +3 -2
  44. package/src/resources/ai/assistants/assistants.ts +20 -0
  45. package/src/resources/ai/assistants/index.ts +8 -0
  46. package/src/resources/ai/assistants/tags.ts +83 -0
  47. package/src/resources/messages/messages.ts +14 -0
  48. package/src/resources/messages/rcs.ts +7 -0
  49. package/src/version.ts +1 -1
  50. package/version.d.mts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
@@ -26,6 +26,15 @@ import {
26
26
  ScheduledPhoneCallEventResponse,
27
27
  ScheduledSMSEventResponse,
28
28
  } from './scheduled-events';
29
+ import * as TagsAPI from './tags';
30
+ import {
31
+ TagAddParams,
32
+ TagAddResponse,
33
+ TagListResponse,
34
+ TagRemoveParams,
35
+ TagRemoveResponse,
36
+ Tags,
37
+ } from './tags';
29
38
  import * as ToolsAPI from './tools';
30
39
  import { ToolTestParams, ToolTestResponse, Tools } from './tools';
31
40
  import * as VersionsAPI from './versions';
@@ -60,6 +69,7 @@ export class Assistants extends APIResource {
60
69
  scheduledEvents: ScheduledEventsAPI.ScheduledEvents = new ScheduledEventsAPI.ScheduledEvents(this._client);
61
70
  tools: ToolsAPI.Tools = new ToolsAPI.Tools(this._client);
62
71
  versions: VersionsAPI.Versions = new VersionsAPI.Versions(this._client);
72
+ tags: TagsAPI.Tags = new TagsAPI.Tags(this._client);
63
73
 
64
74
  /**
65
75
  * Create a new AI Assistant.
@@ -1958,6 +1968,7 @@ Assistants.CanaryDeploys = CanaryDeploys;
1958
1968
  Assistants.ScheduledEvents = ScheduledEvents;
1959
1969
  Assistants.Tools = Tools;
1960
1970
  Assistants.Versions = Versions;
1971
+ Assistants.Tags = Tags;
1961
1972
 
1962
1973
  export declare namespace Assistants {
1963
1974
  export {
@@ -2038,4 +2049,13 @@ export declare namespace Assistants {
2038
2049
  type VersionDeleteParams as VersionDeleteParams,
2039
2050
  type VersionPromoteParams as VersionPromoteParams,
2040
2051
  };
2052
+
2053
+ export {
2054
+ Tags as Tags,
2055
+ type TagListResponse as TagListResponse,
2056
+ type TagAddResponse as TagAddResponse,
2057
+ type TagRemoveResponse as TagRemoveResponse,
2058
+ type TagAddParams as TagAddParams,
2059
+ type TagRemoveParams as TagRemoveParams,
2060
+ };
2041
2061
  }
@@ -56,6 +56,14 @@ export {
56
56
  type ScheduledEventDeleteParams,
57
57
  type ScheduledEventListResponsesDefaultFlatPagination,
58
58
  } from './scheduled-events';
59
+ export {
60
+ Tags,
61
+ type TagListResponse,
62
+ type TagAddResponse,
63
+ type TagRemoveResponse,
64
+ type TagAddParams,
65
+ type TagRemoveParams,
66
+ } from './tags';
59
67
  export {
60
68
  Tests,
61
69
  type AssistantTest,
@@ -0,0 +1,83 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../core/resource';
4
+ import { APIPromise } from '../../../core/api-promise';
5
+ import { RequestOptions } from '../../../internal/request-options';
6
+ import { path } from '../../../internal/utils/path';
7
+
8
+ /**
9
+ * Configure AI assistant specifications
10
+ */
11
+ export class Tags extends APIResource {
12
+ /**
13
+ * Get All Tags
14
+ *
15
+ * @example
16
+ * ```ts
17
+ * const tags = await client.ai.assistants.tags.list();
18
+ * ```
19
+ */
20
+ list(options?: RequestOptions): APIPromise<TagListResponse> {
21
+ return this._client.get('/ai/assistants/tags', options);
22
+ }
23
+
24
+ /**
25
+ * Add Assistant Tag
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const response = await client.ai.assistants.tags.add(
30
+ * 'assistant_id',
31
+ * { tag: 'tag' },
32
+ * );
33
+ * ```
34
+ */
35
+ add(assistantID: string, body: TagAddParams, options?: RequestOptions): APIPromise<TagAddResponse> {
36
+ return this._client.post(path`/ai/assistants/${assistantID}/tags`, { body, ...options });
37
+ }
38
+
39
+ /**
40
+ * Remove Assistant Tag
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const tag = await client.ai.assistants.tags.remove('tag', {
45
+ * assistant_id: 'assistant_id',
46
+ * });
47
+ * ```
48
+ */
49
+ remove(tag: string, params: TagRemoveParams, options?: RequestOptions): APIPromise<TagRemoveResponse> {
50
+ const { assistant_id } = params;
51
+ return this._client.delete(path`/ai/assistants/${assistant_id}/tags/${tag}`, options);
52
+ }
53
+ }
54
+
55
+ export interface TagListResponse {
56
+ tags: Array<string>;
57
+ }
58
+
59
+ export interface TagAddResponse {
60
+ tags: Array<string>;
61
+ }
62
+
63
+ export interface TagRemoveResponse {
64
+ tags: Array<string>;
65
+ }
66
+
67
+ export interface TagAddParams {
68
+ tag: string;
69
+ }
70
+
71
+ export interface TagRemoveParams {
72
+ assistant_id: string;
73
+ }
74
+
75
+ export declare namespace Tags {
76
+ export {
77
+ type TagListResponse as TagListResponse,
78
+ type TagAddResponse as TagAddResponse,
79
+ type TagRemoveResponse as TagRemoveResponse,
80
+ type TagAddParams as TagAddParams,
81
+ type TagRemoveParams as TagRemoveParams,
82
+ };
83
+ }
@@ -372,6 +372,13 @@ export interface OutboundMessagePayload {
372
372
  */
373
373
  valid_until?: string | null;
374
374
 
375
+ /**
376
+ * Seconds the message is queued due to rate limiting before being sent to the
377
+ * carrier. Represents the maximum wait across all applicable rate limits (account,
378
+ * carrier, campaign). 0.0 = no queuing delay.
379
+ */
380
+ wait_seconds?: number | null;
381
+
375
382
  /**
376
383
  * The failover URL where webhooks related to this message will be sent if sending
377
384
  * to the primary URL fails.
@@ -1508,6 +1515,13 @@ export namespace MessageSendWhatsappResponse {
1508
1515
  to?: Array<MessagesAPI.RcsToItem>;
1509
1516
 
1510
1517
  type?: string;
1518
+
1519
+ /**
1520
+ * Seconds the message is queued due to rate limiting before being sent to the
1521
+ * carrier. Represents the maximum wait across all applicable rate limits (account,
1522
+ * carrier, campaign). 0.0 = no queuing delay.
1523
+ */
1524
+ wait_seconds?: number | null;
1511
1525
  }
1512
1526
 
1513
1527
  export namespace Data {
@@ -90,6 +90,13 @@ export namespace RcSendResponse {
90
90
  to?: Array<MessagesAPI.RcsToItem>;
91
91
 
92
92
  type?: string;
93
+
94
+ /**
95
+ * Seconds the message is queued due to rate limiting before being sent to the
96
+ * carrier. Represents the maximum wait across all applicable rate limits (account,
97
+ * carrier, campaign). 0.0 = no queuing delay.
98
+ */
99
+ wait_seconds?: number | null;
93
100
  }
94
101
 
95
102
  export namespace Data {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '6.3.0'; // x-release-please-version
1
+ export const VERSION = '6.4.1'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.3.0";
1
+ export declare const VERSION = "6.4.1";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "6.3.0";
1
+ export declare const VERSION = "6.4.1";
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 = '6.3.0'; // x-release-please-version
4
+ exports.VERSION = '6.4.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '6.3.0'; // x-release-please-version
1
+ export const VERSION = '6.4.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map