@agent-nexus/sdk 0.1.3 → 0.1.5

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
@@ -1318,6 +1318,30 @@ declare class FoldersResource extends BaseResource {
1318
1318
  assignAgent(body: AssignAgentToFolderBody): Promise<AssignAgentToFolderResponse>;
1319
1319
  }
1320
1320
 
1321
+ /** Organization info returned by `client.me.get()`. */
1322
+ interface MeResponse {
1323
+ /** Organization unique ID. */
1324
+ orgId: string;
1325
+ /** Human-readable organization name. */
1326
+ orgName: string;
1327
+ }
1328
+
1329
+ /**
1330
+ * Me resource. Accessed via `client.me`.
1331
+ *
1332
+ * Returns information about the authenticated organization
1333
+ * associated with the current API key.
1334
+ */
1335
+ declare class MeResource extends BaseResource {
1336
+ constructor(http: HttpClient);
1337
+ /**
1338
+ * Get organization info for the current API key.
1339
+ *
1340
+ * @returns Organization ID and name.
1341
+ */
1342
+ get(): Promise<MeResponse>;
1343
+ }
1344
+
1321
1345
  /** Model summary returned by `client.models.list()`. */
1322
1346
  interface ModelSummary {
1323
1347
  /** Unique model UUID. */
@@ -3288,6 +3312,8 @@ declare class NexusClient {
3288
3312
  readonly documents: DocumentsResource;
3289
3313
  /** Manage folders and agent-folder assignments. */
3290
3314
  readonly folders: FoldersResource;
3315
+ /** Get organization info for the current API key. */
3316
+ readonly me: MeResource;
3291
3317
  /** List available AI models for agents. */
3292
3318
  readonly models: ModelsResource;
3293
3319
  /** Discover marketplace tools, resolve dynamic options, list skills, and test configured tools. */
package/dist/index.d.ts CHANGED
@@ -1318,6 +1318,30 @@ declare class FoldersResource extends BaseResource {
1318
1318
  assignAgent(body: AssignAgentToFolderBody): Promise<AssignAgentToFolderResponse>;
1319
1319
  }
1320
1320
 
1321
+ /** Organization info returned by `client.me.get()`. */
1322
+ interface MeResponse {
1323
+ /** Organization unique ID. */
1324
+ orgId: string;
1325
+ /** Human-readable organization name. */
1326
+ orgName: string;
1327
+ }
1328
+
1329
+ /**
1330
+ * Me resource. Accessed via `client.me`.
1331
+ *
1332
+ * Returns information about the authenticated organization
1333
+ * associated with the current API key.
1334
+ */
1335
+ declare class MeResource extends BaseResource {
1336
+ constructor(http: HttpClient);
1337
+ /**
1338
+ * Get organization info for the current API key.
1339
+ *
1340
+ * @returns Organization ID and name.
1341
+ */
1342
+ get(): Promise<MeResponse>;
1343
+ }
1344
+
1321
1345
  /** Model summary returned by `client.models.list()`. */
1322
1346
  interface ModelSummary {
1323
1347
  /** Unique model UUID. */
@@ -3288,6 +3312,8 @@ declare class NexusClient {
3288
3312
  readonly documents: DocumentsResource;
3289
3313
  /** Manage folders and agent-folder assignments. */
3290
3314
  readonly folders: FoldersResource;
3315
+ /** Get organization info for the current API key. */
3316
+ readonly me: MeResource;
3291
3317
  /** List available AI models for agents. */
3292
3318
  readonly models: ModelsResource;
3293
3319
  /** Discover marketplace tools, resolve dynamic options, list skills, and test configured tools. */
package/dist/index.js CHANGED
@@ -928,6 +928,21 @@ var FoldersResource = class extends BaseResource {
928
928
  }
929
929
  };
930
930
 
931
+ // src/resources/me.ts
932
+ var MeResource = class extends BaseResource {
933
+ constructor(http) {
934
+ super(http);
935
+ }
936
+ /**
937
+ * Get organization info for the current API key.
938
+ *
939
+ * @returns Organization ID and name.
940
+ */
941
+ async get() {
942
+ return this.http.request("GET", "/me");
943
+ }
944
+ };
945
+
931
946
  // src/resources/models.ts
932
947
  var ModelsResource = class extends BaseResource {
933
948
  constructor(http) {
@@ -2153,6 +2168,7 @@ var NexusClient = class {
2153
2168
  this.agents = new AgentsResource(http);
2154
2169
  this.documents = new DocumentsResource(http);
2155
2170
  this.folders = new FoldersResource(http);
2171
+ this.me = new MeResource(http);
2156
2172
  this.models = new ModelsResource(http);
2157
2173
  this.tools = new ToolDiscoveryResource(http);
2158
2174
  this.skills = new SkillsResource(http);
package/dist/index.mjs CHANGED
@@ -876,6 +876,21 @@ var FoldersResource = class extends BaseResource {
876
876
  }
877
877
  };
878
878
 
879
+ // src/resources/me.ts
880
+ var MeResource = class extends BaseResource {
881
+ constructor(http) {
882
+ super(http);
883
+ }
884
+ /**
885
+ * Get organization info for the current API key.
886
+ *
887
+ * @returns Organization ID and name.
888
+ */
889
+ async get() {
890
+ return this.http.request("GET", "/me");
891
+ }
892
+ };
893
+
879
894
  // src/resources/models.ts
880
895
  var ModelsResource = class extends BaseResource {
881
896
  constructor(http) {
@@ -2101,6 +2116,7 @@ var NexusClient = class {
2101
2116
  this.agents = new AgentsResource(http);
2102
2117
  this.documents = new DocumentsResource(http);
2103
2118
  this.folders = new FoldersResource(http);
2119
+ this.me = new MeResource(http);
2104
2120
  this.models = new ModelsResource(http);
2105
2121
  this.tools = new ToolDiscoveryResource(http);
2106
2122
  this.skills = new SkillsResource(http);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-nexus/sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
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": [