@gpt-platform/client 0.8.3 → 0.8.4

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
@@ -606,7 +606,7 @@ declare class BrowserApiKeyError extends Error {
606
606
  }
607
607
 
608
608
  /** SDK version — updated automatically by mix update.sdks */
609
- declare const SDK_VERSION = "0.8.3";
609
+ declare const SDK_VERSION = "0.8.4";
610
610
  /** Default API version sent in every request — updated automatically by mix update.sdks */
611
611
  declare const DEFAULT_API_VERSION = "2026-03-11";
612
612
 
@@ -20368,6 +20368,20 @@ declare function createAgentsNamespace(rb: RequestBuilder): {
20368
20368
  * console.log(agent.attributes.name);
20369
20369
  */
20370
20370
  get: (id: string, options?: RequestOptions) => Promise<Agent>;
20371
+ /**
20372
+ * Look up an agent by its system_slug. Use this for ISV-provisioned agents
20373
+ * where the slug is a stable identifier that survives database resets.
20374
+ *
20375
+ * @param slug - The system_slug of the agent (e.g., "chartless-session-prep-briefing").
20376
+ * @param options - Optional request options.
20377
+ * @returns The Agent record.
20378
+ *
20379
+ * @example
20380
+ * ```ts
20381
+ * const agent = await client.agents.getBySlug("chartless-session-prep-briefing");
20382
+ * ```
20383
+ */
20384
+ getBySlug: (slug: string, options?: RequestOptions) => Promise<Agent>;
20371
20385
  /**
20372
20386
  * Creates a new agent with a blank initial version (v1).
20373
20387
  *
@@ -23045,6 +23059,7 @@ declare class GptClient extends BaseClient {
23045
23059
  listAll: (options?: RequestOptions) => Promise<Agent[]>;
23046
23060
  delete: (id: string, options?: RequestOptions) => Promise<true>;
23047
23061
  get: (id: string, options?: RequestOptions) => Promise<Agent>;
23062
+ getBySlug: (slug: string, options?: RequestOptions) => Promise<Agent>;
23048
23063
  create: (name: string, attributes?: CreateAgentAttributes, options?: RequestOptions) => Promise<Agent>;
23049
23064
  update: (id: string, attributes: UpdateAgentAttributes, options?: RequestOptions) => Promise<Agent>;
23050
23065
  test: (id: string, options?: RequestOptions) => Promise<Agent>;
package/dist/index.d.ts CHANGED
@@ -606,7 +606,7 @@ declare class BrowserApiKeyError extends Error {
606
606
  }
607
607
 
608
608
  /** SDK version — updated automatically by mix update.sdks */
609
- declare const SDK_VERSION = "0.8.3";
609
+ declare const SDK_VERSION = "0.8.4";
610
610
  /** Default API version sent in every request — updated automatically by mix update.sdks */
611
611
  declare const DEFAULT_API_VERSION = "2026-03-11";
612
612
 
@@ -20368,6 +20368,20 @@ declare function createAgentsNamespace(rb: RequestBuilder): {
20368
20368
  * console.log(agent.attributes.name);
20369
20369
  */
20370
20370
  get: (id: string, options?: RequestOptions) => Promise<Agent>;
20371
+ /**
20372
+ * Look up an agent by its system_slug. Use this for ISV-provisioned agents
20373
+ * where the slug is a stable identifier that survives database resets.
20374
+ *
20375
+ * @param slug - The system_slug of the agent (e.g., "chartless-session-prep-briefing").
20376
+ * @param options - Optional request options.
20377
+ * @returns The Agent record.
20378
+ *
20379
+ * @example
20380
+ * ```ts
20381
+ * const agent = await client.agents.getBySlug("chartless-session-prep-briefing");
20382
+ * ```
20383
+ */
20384
+ getBySlug: (slug: string, options?: RequestOptions) => Promise<Agent>;
20371
20385
  /**
20372
20386
  * Creates a new agent with a blank initial version (v1).
20373
20387
  *
@@ -23045,6 +23059,7 @@ declare class GptClient extends BaseClient {
23045
23059
  listAll: (options?: RequestOptions) => Promise<Agent[]>;
23046
23060
  delete: (id: string, options?: RequestOptions) => Promise<true>;
23047
23061
  get: (id: string, options?: RequestOptions) => Promise<Agent>;
23062
+ getBySlug: (slug: string, options?: RequestOptions) => Promise<Agent>;
23048
23063
  create: (name: string, attributes?: CreateAgentAttributes, options?: RequestOptions) => Promise<Agent>;
23049
23064
  update: (id: string, attributes: UpdateAgentAttributes, options?: RequestOptions) => Promise<Agent>;
23050
23065
  test: (id: string, options?: RequestOptions) => Promise<Agent>;
package/dist/index.js CHANGED
@@ -1333,7 +1333,7 @@ function buildUserAgent(sdkVersion, appInfo) {
1333
1333
  }
1334
1334
 
1335
1335
  // src/version.ts
1336
- var SDK_VERSION = "0.8.3";
1336
+ var SDK_VERSION = "0.8.4";
1337
1337
  var DEFAULT_API_VERSION = "2026-03-11";
1338
1338
 
1339
1339
  // src/base-client.ts
@@ -6456,6 +6456,11 @@ var postWatcherEvents = (options) => (options.client ?? client).post({
6456
6456
  ...options.headers
6457
6457
  }
6458
6458
  });
6459
+ var getAgentsBySlugBySlug = (options) => (options.client ?? client).get({
6460
+ security: [{ scheme: "bearer", type: "http" }],
6461
+ url: "/agents/by-slug/{slug}",
6462
+ ...options
6463
+ });
6459
6464
  var getFeatureDefinitionsByApplicationByApplicationId = (options) => (options.client ?? client).get({
6460
6465
  security: [{ scheme: "bearer", type: "http" }],
6461
6466
  url: "/feature-definitions/by-application/{application_id}",
@@ -7260,6 +7265,26 @@ function createAgentsNamespace(rb) {
7260
7265
  get: async (id, options) => {
7261
7266
  return rb.execute(getAgentsById, { path: { id } }, options);
7262
7267
  },
7268
+ /**
7269
+ * Look up an agent by its system_slug. Use this for ISV-provisioned agents
7270
+ * where the slug is a stable identifier that survives database resets.
7271
+ *
7272
+ * @param slug - The system_slug of the agent (e.g., "chartless-session-prep-briefing").
7273
+ * @param options - Optional request options.
7274
+ * @returns The Agent record.
7275
+ *
7276
+ * @example
7277
+ * ```ts
7278
+ * const agent = await client.agents.getBySlug("chartless-session-prep-briefing");
7279
+ * ```
7280
+ */
7281
+ getBySlug: async (slug, options) => {
7282
+ return rb.execute(
7283
+ getAgentsBySlugBySlug,
7284
+ { path: { slug } },
7285
+ options
7286
+ );
7287
+ },
7263
7288
  /**
7264
7289
  * Creates a new agent with a blank initial version (v1).
7265
7290
  *