agentphone 1.0.9 → 1.0.11

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 (134) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +6 -0
  3. package/dist/cjs/Client.js +22 -12
  4. package/dist/cjs/api/resources/agentSignup/client/Client.d.ts +1 -1
  5. package/dist/cjs/api/resources/agentSignup/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/agents/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/agents/client/Client.js +1 -1
  8. package/dist/cjs/api/resources/agents/client/requests/CreateAgentRequest.d.ts +8 -0
  9. package/dist/cjs/api/resources/agents/client/requests/UpdateAgentRequest.d.ts +8 -0
  10. package/dist/cjs/api/resources/calls/client/Client.d.ts +20 -0
  11. package/dist/cjs/api/resources/calls/client/Client.js +56 -0
  12. package/dist/cjs/api/resources/calls/client/requests/EndCallV1CallsCallIdEndPostRequest.d.ts +9 -0
  13. package/dist/cjs/api/resources/calls/client/requests/EndCallV1CallsCallIdEndPostRequest.js +3 -0
  14. package/dist/cjs/api/resources/calls/client/requests/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/contactCards/client/Client.d.ts +61 -0
  16. package/dist/cjs/api/resources/contactCards/client/Client.js +229 -0
  17. package/dist/cjs/api/resources/contactCards/client/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/contactCards/client/index.js +17 -0
  19. package/dist/cjs/api/resources/contactCards/client/requests/ContactCardWriteRequest.d.ts +16 -0
  20. package/dist/cjs/api/resources/contactCards/client/requests/ContactCardWriteRequest.js +3 -0
  21. package/dist/cjs/api/resources/contactCards/client/requests/DeleteContactCardV1NumbersNumberIdContactCardDeleteRequest.d.ts +9 -0
  22. package/dist/cjs/api/resources/contactCards/client/requests/DeleteContactCardV1NumbersNumberIdContactCardDeleteRequest.js +3 -0
  23. package/dist/cjs/api/resources/contactCards/client/requests/GetContactCardV1NumbersNumberIdContactCardGetRequest.d.ts +9 -0
  24. package/dist/cjs/api/resources/contactCards/client/requests/GetContactCardV1NumbersNumberIdContactCardGetRequest.js +3 -0
  25. package/dist/cjs/api/resources/contactCards/client/requests/index.d.ts +3 -0
  26. package/dist/cjs/api/resources/contactCards/client/requests/index.js +2 -0
  27. package/dist/cjs/api/resources/contactCards/index.d.ts +1 -0
  28. package/dist/cjs/api/resources/contactCards/index.js +17 -0
  29. package/dist/cjs/api/resources/conversations/client/Client.d.ts +39 -0
  30. package/dist/cjs/api/resources/conversations/client/Client.js +114 -0
  31. package/dist/cjs/api/resources/conversations/client/requests/RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest.d.ts +9 -0
  32. package/dist/cjs/api/resources/conversations/client/requests/RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest.js +3 -0
  33. package/dist/cjs/api/resources/conversations/client/requests/SetBackgroundRequest.d.ts +12 -0
  34. package/dist/cjs/api/resources/conversations/client/requests/SetBackgroundRequest.js +3 -0
  35. package/dist/cjs/api/resources/conversations/client/requests/index.d.ts +2 -0
  36. package/dist/cjs/api/resources/index.d.ts +4 -0
  37. package/dist/cjs/api/resources/index.js +5 -1
  38. package/dist/cjs/api/resources/integrations/client/Client.d.ts +64 -0
  39. package/dist/cjs/api/resources/integrations/client/Client.js +268 -0
  40. package/dist/cjs/api/resources/integrations/client/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/integrations/client/index.js +17 -0
  42. package/dist/cjs/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.d.ts +9 -0
  43. package/dist/cjs/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.js +3 -0
  44. package/dist/cjs/api/resources/integrations/client/requests/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/integrations/client/requests/index.js +2 -0
  46. package/dist/cjs/api/resources/integrations/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/integrations/index.js +17 -0
  48. package/dist/cjs/api/resources/messages/client/Client.d.ts +10 -11
  49. package/dist/cjs/api/resources/messages/client/Client.js +10 -11
  50. package/dist/cjs/api/resources/messages/client/requests/SendMessageRequest.d.ts +22 -0
  51. package/dist/cjs/api/resources/messages/client/requests/SendMessageRequest.js +19 -0
  52. package/dist/cjs/api/resources/messages/client/requests/SendReactionRequest.d.ts +2 -1
  53. package/dist/cjs/api/resources/messages/client/requests/index.d.ts +1 -1
  54. package/dist/cjs/api/resources/messages/client/requests/index.js +3 -0
  55. package/dist/cjs/api/resources/numbers/client/Client.d.ts +4 -4
  56. package/dist/cjs/api/resources/numbers/client/Client.js +4 -4
  57. package/dist/cjs/api/types/AgentResponse.d.ts +7 -0
  58. package/dist/cjs/api/types/ContactCardResponse.d.ts +6 -0
  59. package/dist/cjs/api/types/ContactCardResponse.js +3 -0
  60. package/dist/cjs/api/types/SendMessageResponse.d.ts +2 -0
  61. package/dist/cjs/api/types/SetBackgroundResponse.d.ts +8 -0
  62. package/dist/cjs/api/types/SetBackgroundResponse.js +3 -0
  63. package/dist/cjs/api/types/index.d.ts +2 -0
  64. package/dist/cjs/api/types/index.js +2 -0
  65. package/dist/cjs/version.d.ts +1 -1
  66. package/dist/cjs/version.js +1 -1
  67. package/dist/esm/BaseClient.mjs +2 -2
  68. package/dist/esm/Client.d.mts +6 -0
  69. package/dist/esm/Client.mjs +10 -0
  70. package/dist/esm/api/resources/agentSignup/client/Client.d.mts +1 -1
  71. package/dist/esm/api/resources/agentSignup/client/Client.mjs +1 -1
  72. package/dist/esm/api/resources/agents/client/Client.d.mts +1 -1
  73. package/dist/esm/api/resources/agents/client/Client.mjs +1 -1
  74. package/dist/esm/api/resources/agents/client/requests/CreateAgentRequest.d.mts +8 -0
  75. package/dist/esm/api/resources/agents/client/requests/UpdateAgentRequest.d.mts +8 -0
  76. package/dist/esm/api/resources/calls/client/Client.d.mts +20 -0
  77. package/dist/esm/api/resources/calls/client/Client.mjs +56 -0
  78. package/dist/esm/api/resources/calls/client/requests/EndCallV1CallsCallIdEndPostRequest.d.mts +9 -0
  79. package/dist/esm/api/resources/calls/client/requests/EndCallV1CallsCallIdEndPostRequest.mjs +2 -0
  80. package/dist/esm/api/resources/calls/client/requests/index.d.mts +1 -0
  81. package/dist/esm/api/resources/contactCards/client/Client.d.mts +61 -0
  82. package/dist/esm/api/resources/contactCards/client/Client.mjs +192 -0
  83. package/dist/esm/api/resources/contactCards/client/index.d.mts +1 -0
  84. package/dist/esm/api/resources/contactCards/client/index.mjs +1 -0
  85. package/dist/esm/api/resources/contactCards/client/requests/ContactCardWriteRequest.d.mts +16 -0
  86. package/dist/esm/api/resources/contactCards/client/requests/ContactCardWriteRequest.mjs +2 -0
  87. package/dist/esm/api/resources/contactCards/client/requests/DeleteContactCardV1NumbersNumberIdContactCardDeleteRequest.d.mts +9 -0
  88. package/dist/esm/api/resources/contactCards/client/requests/DeleteContactCardV1NumbersNumberIdContactCardDeleteRequest.mjs +2 -0
  89. package/dist/esm/api/resources/contactCards/client/requests/GetContactCardV1NumbersNumberIdContactCardGetRequest.d.mts +9 -0
  90. package/dist/esm/api/resources/contactCards/client/requests/GetContactCardV1NumbersNumberIdContactCardGetRequest.mjs +2 -0
  91. package/dist/esm/api/resources/contactCards/client/requests/index.d.mts +3 -0
  92. package/dist/esm/api/resources/contactCards/client/requests/index.mjs +1 -0
  93. package/dist/esm/api/resources/contactCards/index.d.mts +1 -0
  94. package/dist/esm/api/resources/contactCards/index.mjs +1 -0
  95. package/dist/esm/api/resources/conversations/client/Client.d.mts +39 -0
  96. package/dist/esm/api/resources/conversations/client/Client.mjs +114 -0
  97. package/dist/esm/api/resources/conversations/client/requests/RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest.d.mts +9 -0
  98. package/dist/esm/api/resources/conversations/client/requests/RemoveChatBackgroundV1ConversationsConversationIdBackgroundDeleteRequest.mjs +2 -0
  99. package/dist/esm/api/resources/conversations/client/requests/SetBackgroundRequest.d.mts +12 -0
  100. package/dist/esm/api/resources/conversations/client/requests/SetBackgroundRequest.mjs +2 -0
  101. package/dist/esm/api/resources/conversations/client/requests/index.d.mts +2 -0
  102. package/dist/esm/api/resources/index.d.mts +4 -0
  103. package/dist/esm/api/resources/index.mjs +4 -0
  104. package/dist/esm/api/resources/integrations/client/Client.d.mts +64 -0
  105. package/dist/esm/api/resources/integrations/client/Client.mjs +231 -0
  106. package/dist/esm/api/resources/integrations/client/index.d.mts +1 -0
  107. package/dist/esm/api/resources/integrations/client/index.mjs +1 -0
  108. package/dist/esm/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.d.mts +9 -0
  109. package/dist/esm/api/resources/integrations/client/requests/SupabaseConnectIntegrationsSupabaseConnectGetRequest.mjs +2 -0
  110. package/dist/esm/api/resources/integrations/client/requests/index.d.mts +1 -0
  111. package/dist/esm/api/resources/integrations/client/requests/index.mjs +1 -0
  112. package/dist/esm/api/resources/integrations/index.d.mts +1 -0
  113. package/dist/esm/api/resources/integrations/index.mjs +1 -0
  114. package/dist/esm/api/resources/messages/client/Client.d.mts +10 -11
  115. package/dist/esm/api/resources/messages/client/Client.mjs +10 -11
  116. package/dist/esm/api/resources/messages/client/requests/SendMessageRequest.d.mts +22 -0
  117. package/dist/esm/api/resources/messages/client/requests/SendMessageRequest.mjs +18 -1
  118. package/dist/esm/api/resources/messages/client/requests/SendReactionRequest.d.mts +2 -1
  119. package/dist/esm/api/resources/messages/client/requests/index.d.mts +1 -1
  120. package/dist/esm/api/resources/messages/client/requests/index.mjs +1 -1
  121. package/dist/esm/api/resources/numbers/client/Client.d.mts +4 -4
  122. package/dist/esm/api/resources/numbers/client/Client.mjs +4 -4
  123. package/dist/esm/api/types/AgentResponse.d.mts +7 -0
  124. package/dist/esm/api/types/ContactCardResponse.d.mts +6 -0
  125. package/dist/esm/api/types/ContactCardResponse.mjs +2 -0
  126. package/dist/esm/api/types/SendMessageResponse.d.mts +2 -0
  127. package/dist/esm/api/types/SetBackgroundResponse.d.mts +8 -0
  128. package/dist/esm/api/types/SetBackgroundResponse.mjs +2 -0
  129. package/dist/esm/api/types/index.d.mts +2 -0
  130. package/dist/esm/api/types/index.mjs +2 -0
  131. package/dist/esm/version.d.mts +1 -1
  132. package/dist/esm/version.mjs +1 -1
  133. package/package.json +1 -1
  134. package/reference.md +709 -44
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "agentphone",
46
- "X-Fern-SDK-Version": "1.0.7",
47
- "User-Agent": "agentphone/1.0.7",
46
+ "X-Fern-SDK-Version": "1.0.11",
47
+ "User-Agent": "agentphone/1.0.11",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,8 +2,10 @@ import { AgentSignupClient } from "./api/resources/agentSignup/client/Client.js"
2
2
  import { AgentsClient } from "./api/resources/agents/client/Client.js";
3
3
  import { AgentWebhooksClient } from "./api/resources/agentWebhooks/client/Client.js";
4
4
  import { CallsClient } from "./api/resources/calls/client/Client.js";
5
+ import { ContactCardsClient } from "./api/resources/contactCards/client/Client.js";
5
6
  import { ContactsClient } from "./api/resources/contacts/client/Client.js";
6
7
  import { ConversationsClient } from "./api/resources/conversations/client/Client.js";
8
+ import { IntegrationsClient } from "./api/resources/integrations/client/Client.js";
7
9
  import { MessagesClient } from "./api/resources/messages/client/Client.js";
8
10
  import { NumbersClient } from "./api/resources/numbers/client/Client.js";
9
11
  import { UsageClient } from "./api/resources/usage/client/Client.js";
@@ -26,7 +28,9 @@ export declare class AgentPhoneClient {
26
28
  protected _conversations: ConversationsClient | undefined;
27
29
  protected _calls: CallsClient | undefined;
28
30
  protected _usage: UsageClient | undefined;
31
+ protected _integrations: IntegrationsClient | undefined;
29
32
  protected _messages: MessagesClient | undefined;
33
+ protected _contactCards: ContactCardsClient | undefined;
30
34
  constructor(options?: AgentPhoneClient.Options);
31
35
  get agentSignup(): AgentSignupClient;
32
36
  get agents(): AgentsClient;
@@ -37,5 +41,7 @@ export declare class AgentPhoneClient {
37
41
  get conversations(): ConversationsClient;
38
42
  get calls(): CallsClient;
39
43
  get usage(): UsageClient;
44
+ get integrations(): IntegrationsClient;
40
45
  get messages(): MessagesClient;
46
+ get contactCards(): ContactCardsClient;
41
47
  }
@@ -6,12 +6,14 @@ const Client_js_1 = require("./api/resources/agentSignup/client/Client.js");
6
6
  const Client_js_2 = require("./api/resources/agents/client/Client.js");
7
7
  const Client_js_3 = require("./api/resources/agentWebhooks/client/Client.js");
8
8
  const Client_js_4 = require("./api/resources/calls/client/Client.js");
9
- const Client_js_5 = require("./api/resources/contacts/client/Client.js");
10
- const Client_js_6 = require("./api/resources/conversations/client/Client.js");
11
- const Client_js_7 = require("./api/resources/messages/client/Client.js");
12
- const Client_js_8 = require("./api/resources/numbers/client/Client.js");
13
- const Client_js_9 = require("./api/resources/usage/client/Client.js");
14
- const Client_js_10 = require("./api/resources/webhooks/client/Client.js");
9
+ const Client_js_5 = require("./api/resources/contactCards/client/Client.js");
10
+ const Client_js_6 = require("./api/resources/contacts/client/Client.js");
11
+ const Client_js_7 = require("./api/resources/conversations/client/Client.js");
12
+ const Client_js_8 = require("./api/resources/integrations/client/Client.js");
13
+ const Client_js_9 = require("./api/resources/messages/client/Client.js");
14
+ const Client_js_10 = require("./api/resources/numbers/client/Client.js");
15
+ const Client_js_11 = require("./api/resources/usage/client/Client.js");
16
+ const Client_js_12 = require("./api/resources/webhooks/client/Client.js");
15
17
  const BaseClient_js_1 = require("./BaseClient.js");
16
18
  class AgentPhoneClient {
17
19
  constructor(options = {}) {
@@ -27,11 +29,11 @@ class AgentPhoneClient {
27
29
  }
28
30
  get numbers() {
29
31
  var _a;
30
- return ((_a = this._numbers) !== null && _a !== void 0 ? _a : (this._numbers = new Client_js_8.NumbersClient(this._options)));
32
+ return ((_a = this._numbers) !== null && _a !== void 0 ? _a : (this._numbers = new Client_js_10.NumbersClient(this._options)));
31
33
  }
32
34
  get webhooks() {
33
35
  var _a;
34
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_10.WebhooksClient(this._options)));
36
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_12.WebhooksClient(this._options)));
35
37
  }
36
38
  get agentWebhooks() {
37
39
  var _a;
@@ -39,11 +41,11 @@ class AgentPhoneClient {
39
41
  }
40
42
  get contacts() {
41
43
  var _a;
42
- return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_5.ContactsClient(this._options)));
44
+ return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_6.ContactsClient(this._options)));
43
45
  }
44
46
  get conversations() {
45
47
  var _a;
46
- return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_js_6.ConversationsClient(this._options)));
48
+ return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_js_7.ConversationsClient(this._options)));
47
49
  }
48
50
  get calls() {
49
51
  var _a;
@@ -51,11 +53,19 @@ class AgentPhoneClient {
51
53
  }
52
54
  get usage() {
53
55
  var _a;
54
- return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new Client_js_9.UsageClient(this._options)));
56
+ return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new Client_js_11.UsageClient(this._options)));
57
+ }
58
+ get integrations() {
59
+ var _a;
60
+ return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_js_8.IntegrationsClient(this._options)));
55
61
  }
56
62
  get messages() {
57
63
  var _a;
58
- return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_7.MessagesClient(this._options)));
64
+ return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_9.MessagesClient(this._options)));
65
+ }
66
+ get contactCards() {
67
+ var _a;
68
+ return ((_a = this._contactCards) !== null && _a !== void 0 ? _a : (this._contactCards = new Client_js_5.ContactCardsClient(this._options)));
59
69
  }
60
70
  }
61
71
  exports.AgentPhoneClient = AgentPhoneClient;
@@ -31,7 +31,7 @@ export declare class AgentSignupClient {
31
31
  /**
32
32
  * Verify the OTP and atomically provision everything.
33
33
  *
34
- * Creates: User + Project (+ mirrored Account) + starter hosted Agent + Twilio number
34
+ * Creates: User + Project (+ mirrored Account) + starter hosted Agent + phone number
35
35
  * + first-month charge + API key. Returns the key once — agents must save it.
36
36
  *
37
37
  * @param {AgentPhone.AgentVerifyRequest} request
@@ -113,7 +113,7 @@ class AgentSignupClient {
113
113
  /**
114
114
  * Verify the OTP and atomically provision everything.
115
115
  *
116
- * Creates: User + Project (+ mirrored Account) + starter hosted Agent + Twilio number
116
+ * Creates: User + Project (+ mirrored Account) + starter hosted Agent + phone number
117
117
  * + first-month charge + API key. Returns the key once — agents must save it.
118
118
  *
119
119
  * @param {AgentPhone.AgentVerifyRequest} request
@@ -11,7 +11,7 @@ export declare class AgentsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AgentsClient.Options>;
12
12
  constructor(options?: AgentsClient.Options);
13
13
  /**
14
- * Return available voices for voice calls.
14
+ * Return available voices from the configured voice provider.
15
15
  *
16
16
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
17
17
  *
@@ -67,7 +67,7 @@ class AgentsClient {
67
67
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
68
68
  }
69
69
  /**
70
- * Return available voices for voice calls.
70
+ * Return available voices from the configured voice provider.
71
71
  *
72
72
  * @param {AgentsClient.RequestOptions} requestOptions - Request-specific configuration.
73
73
  *
@@ -8,6 +8,8 @@ export interface CreateAgentRequest {
8
8
  name: string;
9
9
  description?: string | null;
10
10
  voiceMode?: CreateAgentRequest.VoiceMode;
11
+ /** When true, hosted-mode agents can send and read SMS/iMessage during calls. Defaults to true. */
12
+ enableMessaging?: boolean | null;
11
13
  modelTier?: CreateAgentRequest.ModelTier;
12
14
  systemPrompt?: string | null;
13
15
  beginMessage?: string | null;
@@ -22,6 +24,12 @@ export interface CreateAgentRequest {
22
24
  denoisingMode?: CreateAgentRequest.DenoisingMode;
23
25
  /** Hang up the call after this many milliseconds of caller silence. Default 600000 (10 min). Raise for IVR/hold-music workflows; lower to fail fast on dead lines. Range 10000 (10s) to 3600000 (1 hour). */
24
26
  maxSilenceMs?: number | null;
27
+ /** Voice speed multiplier. 1.0 is normal pace; lower values slow speech (0.5 is half speed), higher values speed it up (2.0 is double). Range 0.5 to 2.0. */
28
+ voiceSpeed?: number | null;
29
+ /** How easily callers can interrupt the agent. 0 means the agent is never interrupted, 1 means the agent stops at the first sound. Default 0.8. Range 0.0 to 1.0. */
30
+ interruptionSensitivity?: number | null;
31
+ /** When true, the agent interjects short filler words like 'uh-huh' or 'mhmm' during longer caller utterances. Set false to keep the agent silent while the caller is speaking. Defaults to true. */
32
+ enableBackchannel?: boolean | null;
25
33
  }
26
34
  export declare namespace CreateAgentRequest {
27
35
  const VoiceMode: {
@@ -9,6 +9,8 @@ export interface UpdateAgentRequest {
9
9
  name?: string | null;
10
10
  description?: string | null;
11
11
  voiceMode?: UpdateAgentRequest.VoiceMode;
12
+ /** When true, hosted-mode agents can send and read SMS/iMessage during calls. */
13
+ enableMessaging?: boolean | null;
12
14
  modelTier?: UpdateAgentRequest.ModelTier;
13
15
  systemPrompt?: string | null;
14
16
  beginMessage?: string | null;
@@ -23,6 +25,12 @@ export interface UpdateAgentRequest {
23
25
  denoisingMode?: UpdateAgentRequest.DenoisingMode;
24
26
  /** Hang up the call after this many milliseconds of caller silence. Default 600000 (10 min). Raise for IVR/hold-music workflows; lower to fail fast on dead lines. Range 10000 (10s) to 3600000 (1 hour). */
25
27
  maxSilenceMs?: number | null;
28
+ /** Voice speed multiplier. 1.0 is normal pace; lower slows speech (0.5 is half speed), higher speeds it up (2.0 is double). Range 0.5 to 2.0. */
29
+ voiceSpeed?: number | null;
30
+ /** How easily callers can interrupt the agent. 0 means the agent is never interrupted, 1 means the agent stops at the first sound. Default 0.8. Range 0.0 to 1.0. */
31
+ interruptionSensitivity?: number | null;
32
+ /** When true, the agent interjects short filler words like 'uh-huh' or 'mhmm' during longer caller utterances. Set false to keep the agent silent while the caller is speaking. */
33
+ enableBackchannel?: boolean | null;
26
34
  }
27
35
  export declare namespace UpdateAgentRequest {
28
36
  const VoiceMode: {
@@ -90,6 +90,26 @@ export declare class CallsClient {
90
90
  */
91
91
  getCall(request: AgentPhone.GetCallV1CallsCallIdGetRequest, requestOptions?: CallsClient.RequestOptions): core.HttpResponsePromise<unknown>;
92
92
  private __getCall;
93
+ /**
94
+ * Terminate an ongoing call.
95
+ *
96
+ * Works for both hosted-mode and webhook-mode calls. The call_ended
97
+ * webhook from the voice provider updates status/endedAt asynchronously,
98
+ * so this endpoint returns the current call as soon as the stop request
99
+ * is accepted upstream.
100
+ *
101
+ * @param {AgentPhone.EndCallV1CallsCallIdEndPostRequest} request
102
+ * @param {CallsClient.RequestOptions} requestOptions - Request-specific configuration.
103
+ *
104
+ * @throws {@link AgentPhone.UnprocessableEntityError}
105
+ *
106
+ * @example
107
+ * await client.calls.endCall({
108
+ * call_id: "call_id"
109
+ * })
110
+ */
111
+ endCall(request: AgentPhone.EndCallV1CallsCallIdEndPostRequest, requestOptions?: CallsClient.RequestOptions): core.HttpResponsePromise<unknown>;
112
+ private __endCall;
93
113
  /**
94
114
  * Returns the audio file (WAV format) for a completed call.
95
115
  *
@@ -291,6 +291,62 @@ class CallsClient {
291
291
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/calls/{call_id}");
292
292
  });
293
293
  }
294
+ /**
295
+ * Terminate an ongoing call.
296
+ *
297
+ * Works for both hosted-mode and webhook-mode calls. The call_ended
298
+ * webhook from the voice provider updates status/endedAt asynchronously,
299
+ * so this endpoint returns the current call as soon as the stop request
300
+ * is accepted upstream.
301
+ *
302
+ * @param {AgentPhone.EndCallV1CallsCallIdEndPostRequest} request
303
+ * @param {CallsClient.RequestOptions} requestOptions - Request-specific configuration.
304
+ *
305
+ * @throws {@link AgentPhone.UnprocessableEntityError}
306
+ *
307
+ * @example
308
+ * await client.calls.endCall({
309
+ * call_id: "call_id"
310
+ * })
311
+ */
312
+ endCall(request, requestOptions) {
313
+ return core.HttpResponsePromise.fromPromise(this.__endCall(request, requestOptions));
314
+ }
315
+ __endCall(request, requestOptions) {
316
+ return __awaiter(this, void 0, void 0, function* () {
317
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
318
+ const { call_id: callId } = request;
319
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
320
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
321
+ const _response = yield core.fetcher({
322
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, `v1/calls/${core.url.encodePathParam(callId)}/end`),
323
+ method: "POST",
324
+ headers: _headers,
325
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
326
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
327
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
328
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
329
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
330
+ logging: this._options.logging,
331
+ });
332
+ if (_response.ok) {
333
+ return { data: _response.body, rawResponse: _response.rawResponse };
334
+ }
335
+ if (_response.error.reason === "status-code") {
336
+ switch (_response.error.statusCode) {
337
+ case 422:
338
+ throw new AgentPhone.UnprocessableEntityError(_response.error.body, _response.rawResponse);
339
+ default:
340
+ throw new errors.AgentPhoneError({
341
+ statusCode: _response.error.statusCode,
342
+ body: _response.error.body,
343
+ rawResponse: _response.rawResponse,
344
+ });
345
+ }
346
+ }
347
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/calls/{call_id}/end");
348
+ });
349
+ }
294
350
  /**
295
351
  * Returns the audio file (WAV format) for a completed call.
296
352
  *
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * call_id: "call_id"
5
+ * }
6
+ */
7
+ export interface EndCallV1CallsCallIdEndPostRequest {
8
+ call_id: string;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  export type { CreateOutboundCallRequest } from "./CreateOutboundCallRequest.js";
2
2
  export type { CreateWebCallRequest } from "./CreateWebCallRequest.js";
3
+ export type { EndCallV1CallsCallIdEndPostRequest } from "./EndCallV1CallsCallIdEndPostRequest.js";
3
4
  export type { GetCallRecordingV1CallsCallIdRecordingGetRequest } from "./GetCallRecordingV1CallsCallIdRecordingGetRequest.js";
4
5
  export type { GetCallTranscriptV1CallsCallIdTranscriptGetRequest } from "./GetCallTranscriptV1CallsCallIdTranscriptGetRequest.js";
5
6
  export type { GetCallV1CallsCallIdGetRequest } from "./GetCallV1CallsCallIdGetRequest.js";
@@ -0,0 +1,61 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as AgentPhone from "../../../index.js";
5
+ export declare namespace ContactCardsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ContactCardsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ContactCardsClient.Options>;
12
+ constructor(options?: ContactCardsClient.Options);
13
+ /**
14
+ * Fetch the iMessage contact card set on this number.
15
+ *
16
+ * @param {AgentPhone.GetContactCardV1NumbersNumberIdContactCardGetRequest} request
17
+ * @param {ContactCardsClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link AgentPhone.UnprocessableEntityError}
20
+ *
21
+ * @example
22
+ * await client.contactCards.getContactCard({
23
+ * number_id: "number_id"
24
+ * })
25
+ */
26
+ getContactCard(request: AgentPhone.GetContactCardV1NumbersNumberIdContactCardGetRequest, requestOptions?: ContactCardsClient.RequestOptions): core.HttpResponsePromise<AgentPhone.ContactCardResponse>;
27
+ private __getContactCard;
28
+ /**
29
+ * Create or replace the iMessage contact card on this number.
30
+ *
31
+ * @param {AgentPhone.ContactCardWriteRequest} request
32
+ * @param {ContactCardsClient.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @throws {@link AgentPhone.UnprocessableEntityError}
35
+ *
36
+ * @example
37
+ * await client.contactCards.putContactCard({
38
+ * number_id: "number_id",
39
+ * firstName: "firstName",
40
+ * lastName: "lastName",
41
+ * avatarUrl: "avatarUrl"
42
+ * })
43
+ */
44
+ putContactCard(request: AgentPhone.ContactCardWriteRequest, requestOptions?: ContactCardsClient.RequestOptions): core.HttpResponsePromise<AgentPhone.ContactCardResponse>;
45
+ private __putContactCard;
46
+ /**
47
+ * Remove the iMessage contact card from this number.
48
+ *
49
+ * @param {AgentPhone.DeleteContactCardV1NumbersNumberIdContactCardDeleteRequest} request
50
+ * @param {ContactCardsClient.RequestOptions} requestOptions - Request-specific configuration.
51
+ *
52
+ * @throws {@link AgentPhone.UnprocessableEntityError}
53
+ *
54
+ * @example
55
+ * await client.contactCards.deleteContactCard({
56
+ * number_id: "number_id"
57
+ * })
58
+ */
59
+ deleteContactCard(request: AgentPhone.DeleteContactCardV1NumbersNumberIdContactCardDeleteRequest, requestOptions?: ContactCardsClient.RequestOptions): core.HttpResponsePromise<void>;
60
+ private __deleteContactCard;
61
+ }
@@ -0,0 +1,229 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __rest = (this && this.__rest) || function (s, e) {
46
+ var t = {};
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
53
+ }
54
+ return t;
55
+ };
56
+ Object.defineProperty(exports, "__esModule", { value: true });
57
+ exports.ContactCardsClient = void 0;
58
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
59
+ const headers_js_1 = require("../../../../core/headers.js");
60
+ const core = __importStar(require("../../../../core/index.js"));
61
+ const environments = __importStar(require("../../../../environments.js"));
62
+ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
63
+ const errors = __importStar(require("../../../../errors/index.js"));
64
+ const AgentPhone = __importStar(require("../../../index.js"));
65
+ class ContactCardsClient {
66
+ constructor(options = {}) {
67
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
68
+ }
69
+ /**
70
+ * Fetch the iMessage contact card set on this number.
71
+ *
72
+ * @param {AgentPhone.GetContactCardV1NumbersNumberIdContactCardGetRequest} request
73
+ * @param {ContactCardsClient.RequestOptions} requestOptions - Request-specific configuration.
74
+ *
75
+ * @throws {@link AgentPhone.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await client.contactCards.getContactCard({
79
+ * number_id: "number_id"
80
+ * })
81
+ */
82
+ getContactCard(request, requestOptions) {
83
+ return core.HttpResponsePromise.fromPromise(this.__getContactCard(request, requestOptions));
84
+ }
85
+ __getContactCard(request, requestOptions) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
88
+ const { number_id: numberId } = request;
89
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
90
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
91
+ const _response = yield core.fetcher({
92
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, `v1/numbers/${core.url.encodePathParam(numberId)}/contact-card`),
93
+ method: "GET",
94
+ headers: _headers,
95
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
96
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
97
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
98
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
100
+ logging: this._options.logging,
101
+ });
102
+ if (_response.ok) {
103
+ return { data: _response.body, rawResponse: _response.rawResponse };
104
+ }
105
+ if (_response.error.reason === "status-code") {
106
+ switch (_response.error.statusCode) {
107
+ case 422:
108
+ throw new AgentPhone.UnprocessableEntityError(_response.error.body, _response.rawResponse);
109
+ default:
110
+ throw new errors.AgentPhoneError({
111
+ statusCode: _response.error.statusCode,
112
+ body: _response.error.body,
113
+ rawResponse: _response.rawResponse,
114
+ });
115
+ }
116
+ }
117
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/numbers/{number_id}/contact-card");
118
+ });
119
+ }
120
+ /**
121
+ * Create or replace the iMessage contact card on this number.
122
+ *
123
+ * @param {AgentPhone.ContactCardWriteRequest} request
124
+ * @param {ContactCardsClient.RequestOptions} requestOptions - Request-specific configuration.
125
+ *
126
+ * @throws {@link AgentPhone.UnprocessableEntityError}
127
+ *
128
+ * @example
129
+ * await client.contactCards.putContactCard({
130
+ * number_id: "number_id",
131
+ * firstName: "firstName",
132
+ * lastName: "lastName",
133
+ * avatarUrl: "avatarUrl"
134
+ * })
135
+ */
136
+ putContactCard(request, requestOptions) {
137
+ return core.HttpResponsePromise.fromPromise(this.__putContactCard(request, requestOptions));
138
+ }
139
+ __putContactCard(request, requestOptions) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
142
+ const { number_id: numberId } = request, _body = __rest(request, ["number_id"]);
143
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
144
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
145
+ const _response = yield core.fetcher({
146
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, `v1/numbers/${core.url.encodePathParam(numberId)}/contact-card`),
147
+ method: "PUT",
148
+ headers: _headers,
149
+ contentType: "application/json",
150
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
151
+ requestType: "json",
152
+ body: _body,
153
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
154
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
155
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
156
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
157
+ logging: this._options.logging,
158
+ });
159
+ if (_response.ok) {
160
+ return { data: _response.body, rawResponse: _response.rawResponse };
161
+ }
162
+ if (_response.error.reason === "status-code") {
163
+ switch (_response.error.statusCode) {
164
+ case 422:
165
+ throw new AgentPhone.UnprocessableEntityError(_response.error.body, _response.rawResponse);
166
+ default:
167
+ throw new errors.AgentPhoneError({
168
+ statusCode: _response.error.statusCode,
169
+ body: _response.error.body,
170
+ rawResponse: _response.rawResponse,
171
+ });
172
+ }
173
+ }
174
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/v1/numbers/{number_id}/contact-card");
175
+ });
176
+ }
177
+ /**
178
+ * Remove the iMessage contact card from this number.
179
+ *
180
+ * @param {AgentPhone.DeleteContactCardV1NumbersNumberIdContactCardDeleteRequest} request
181
+ * @param {ContactCardsClient.RequestOptions} requestOptions - Request-specific configuration.
182
+ *
183
+ * @throws {@link AgentPhone.UnprocessableEntityError}
184
+ *
185
+ * @example
186
+ * await client.contactCards.deleteContactCard({
187
+ * number_id: "number_id"
188
+ * })
189
+ */
190
+ deleteContactCard(request, requestOptions) {
191
+ return core.HttpResponsePromise.fromPromise(this.__deleteContactCard(request, requestOptions));
192
+ }
193
+ __deleteContactCard(request, requestOptions) {
194
+ return __awaiter(this, void 0, void 0, function* () {
195
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
196
+ const { number_id: numberId } = request;
197
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
198
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
199
+ const _response = yield core.fetcher({
200
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentPhoneEnvironment.Production, `v1/numbers/${core.url.encodePathParam(numberId)}/contact-card`),
201
+ method: "DELETE",
202
+ headers: _headers,
203
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
204
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
205
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
206
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
207
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
208
+ logging: this._options.logging,
209
+ });
210
+ if (_response.ok) {
211
+ return { data: undefined, rawResponse: _response.rawResponse };
212
+ }
213
+ if (_response.error.reason === "status-code") {
214
+ switch (_response.error.statusCode) {
215
+ case 422:
216
+ throw new AgentPhone.UnprocessableEntityError(_response.error.body, _response.rawResponse);
217
+ default:
218
+ throw new errors.AgentPhoneError({
219
+ statusCode: _response.error.statusCode,
220
+ body: _response.error.body,
221
+ rawResponse: _response.rawResponse,
222
+ });
223
+ }
224
+ }
225
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/v1/numbers/{number_id}/contact-card");
226
+ });
227
+ }
228
+ }
229
+ exports.ContactCardsClient = ContactCardsClient;
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * number_id: "number_id",
5
+ * firstName: "firstName",
6
+ * lastName: "lastName",
7
+ * avatarUrl: "avatarUrl"
8
+ * }
9
+ */
10
+ export interface ContactCardWriteRequest {
11
+ number_id: string;
12
+ firstName: string;
13
+ lastName: string;
14
+ displayName?: string | null;
15
+ avatarUrl: string;
16
+ }