@agent-nexus/sdk 0.1.1 → 0.1.3

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/dist/index.d.mts CHANGED
@@ -1360,6 +1360,26 @@ declare class ModelsResource extends BaseResource {
1360
1360
  }>;
1361
1361
  }
1362
1362
 
1363
+ declare class PhoneNumbersResource extends BaseResource {
1364
+ searchAvailable(params: {
1365
+ country: string;
1366
+ areaCode?: string;
1367
+ type?: "mobile" | "local";
1368
+ sms?: boolean;
1369
+ mms?: boolean;
1370
+ voice?: boolean;
1371
+ }): Promise<any[]>;
1372
+ buy(body: {
1373
+ phoneNumber: string;
1374
+ country: string;
1375
+ price: string;
1376
+ connectionId?: string;
1377
+ }): Promise<any>;
1378
+ list(): Promise<any[]>;
1379
+ get(phoneNumberId: string): Promise<any>;
1380
+ release(phoneNumberId: string): Promise<any>;
1381
+ }
1382
+
1363
1383
  interface PromptAssistantChatBody {
1364
1384
  message: string;
1365
1385
  threadId?: string;
@@ -3298,6 +3318,8 @@ declare class NexusClient {
3298
3318
  readonly cloudImports: CloudImportsResource;
3299
3319
  /** Chat with AI to generate high-quality prompts for agents and AI tasks. */
3300
3320
  readonly promptAssistant: PromptAssistantResource;
3321
+ /** Search, buy, and manage phone numbers for SMS/Voice deployments. */
3322
+ readonly phoneNumbers: PhoneNumbersResource;
3301
3323
  /** Create and manage support tickets. */
3302
3324
  readonly tickets: TicketsResource;
3303
3325
  constructor(opts?: NexusClientOptions);
package/dist/index.d.ts CHANGED
@@ -1360,6 +1360,26 @@ declare class ModelsResource extends BaseResource {
1360
1360
  }>;
1361
1361
  }
1362
1362
 
1363
+ declare class PhoneNumbersResource extends BaseResource {
1364
+ searchAvailable(params: {
1365
+ country: string;
1366
+ areaCode?: string;
1367
+ type?: "mobile" | "local";
1368
+ sms?: boolean;
1369
+ mms?: boolean;
1370
+ voice?: boolean;
1371
+ }): Promise<any[]>;
1372
+ buy(body: {
1373
+ phoneNumber: string;
1374
+ country: string;
1375
+ price: string;
1376
+ connectionId?: string;
1377
+ }): Promise<any>;
1378
+ list(): Promise<any[]>;
1379
+ get(phoneNumberId: string): Promise<any>;
1380
+ release(phoneNumberId: string): Promise<any>;
1381
+ }
1382
+
1363
1383
  interface PromptAssistantChatBody {
1364
1384
  message: string;
1365
1385
  threadId?: string;
@@ -3298,6 +3318,8 @@ declare class NexusClient {
3298
3318
  readonly cloudImports: CloudImportsResource;
3299
3319
  /** Chat with AI to generate high-quality prompts for agents and AI tasks. */
3300
3320
  readonly promptAssistant: PromptAssistantResource;
3321
+ /** Search, buy, and manage phone numbers for SMS/Voice deployments. */
3322
+ readonly phoneNumbers: PhoneNumbersResource;
3301
3323
  /** Create and manage support tickets. */
3302
3324
  readonly tickets: TicketsResource;
3303
3325
  constructor(opts?: NexusClientOptions);
package/dist/index.js CHANGED
@@ -943,6 +943,27 @@ var ModelsResource = class extends BaseResource {
943
943
  }
944
944
  };
945
945
 
946
+ // src/resources/phone-numbers.ts
947
+ var PhoneNumbersResource = class extends BaseResource {
948
+ async searchAvailable(params) {
949
+ return this.http.request("GET", "/phone-numbers/available", {
950
+ query: params
951
+ });
952
+ }
953
+ async buy(body) {
954
+ return this.http.request("POST", "/phone-numbers/buy", { body });
955
+ }
956
+ async list() {
957
+ return this.http.request("GET", "/phone-numbers");
958
+ }
959
+ async get(phoneNumberId) {
960
+ return this.http.request("GET", `/phone-numbers/${phoneNumberId}`);
961
+ }
962
+ async release(phoneNumberId) {
963
+ return this.http.request("DELETE", `/phone-numbers/${phoneNumberId}`);
964
+ }
965
+ };
966
+
946
967
  // src/resources/prompt-assistant.ts
947
968
  var PromptAssistantResource = class extends BaseResource {
948
969
  async chat(body) {
@@ -2147,6 +2168,7 @@ var NexusClient = class {
2147
2168
  this.evaluations = new EvaluationsResource(http);
2148
2169
  this.cloudImports = new CloudImportsResource(http);
2149
2170
  this.promptAssistant = new PromptAssistantResource(http);
2171
+ this.phoneNumbers = new PhoneNumbersResource(http);
2150
2172
  this.tickets = new TicketsResource(http);
2151
2173
  }
2152
2174
  };
package/dist/index.mjs CHANGED
@@ -891,6 +891,27 @@ var ModelsResource = class extends BaseResource {
891
891
  }
892
892
  };
893
893
 
894
+ // src/resources/phone-numbers.ts
895
+ var PhoneNumbersResource = class extends BaseResource {
896
+ async searchAvailable(params) {
897
+ return this.http.request("GET", "/phone-numbers/available", {
898
+ query: params
899
+ });
900
+ }
901
+ async buy(body) {
902
+ return this.http.request("POST", "/phone-numbers/buy", { body });
903
+ }
904
+ async list() {
905
+ return this.http.request("GET", "/phone-numbers");
906
+ }
907
+ async get(phoneNumberId) {
908
+ return this.http.request("GET", `/phone-numbers/${phoneNumberId}`);
909
+ }
910
+ async release(phoneNumberId) {
911
+ return this.http.request("DELETE", `/phone-numbers/${phoneNumberId}`);
912
+ }
913
+ };
914
+
894
915
  // src/resources/prompt-assistant.ts
895
916
  var PromptAssistantResource = class extends BaseResource {
896
917
  async chat(body) {
@@ -2095,6 +2116,7 @@ var NexusClient = class {
2095
2116
  this.evaluations = new EvaluationsResource(http);
2096
2117
  this.cloudImports = new CloudImportsResource(http);
2097
2118
  this.promptAssistant = new PromptAssistantResource(http);
2119
+ this.phoneNumbers = new PhoneNumbersResource(http);
2098
2120
  this.tickets = new TicketsResource(http);
2099
2121
  }
2100
2122
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-nexus/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Official TypeScript SDK for the Nexus Public API — manage agents, tools, folders, and versions programmatically.",
5
5
  "license": "MIT",
6
6
  "keywords": [