@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 +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +26 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -1
- package/dist/index.mjs.map +1 -1
- package/llms.txt +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1269,7 +1269,7 @@ function buildUserAgent(sdkVersion, appInfo) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
|
|
1271
1271
|
// src/version.ts
|
|
1272
|
-
var SDK_VERSION = "0.8.
|
|
1272
|
+
var SDK_VERSION = "0.8.4";
|
|
1273
1273
|
var DEFAULT_API_VERSION = "2026-03-11";
|
|
1274
1274
|
|
|
1275
1275
|
// src/base-client.ts
|
|
@@ -6392,6 +6392,11 @@ var postWatcherEvents = (options) => (options.client ?? client).post({
|
|
|
6392
6392
|
...options.headers
|
|
6393
6393
|
}
|
|
6394
6394
|
});
|
|
6395
|
+
var getAgentsBySlugBySlug = (options) => (options.client ?? client).get({
|
|
6396
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
6397
|
+
url: "/agents/by-slug/{slug}",
|
|
6398
|
+
...options
|
|
6399
|
+
});
|
|
6395
6400
|
var getFeatureDefinitionsByApplicationByApplicationId = (options) => (options.client ?? client).get({
|
|
6396
6401
|
security: [{ scheme: "bearer", type: "http" }],
|
|
6397
6402
|
url: "/feature-definitions/by-application/{application_id}",
|
|
@@ -7196,6 +7201,26 @@ function createAgentsNamespace(rb) {
|
|
|
7196
7201
|
get: async (id, options) => {
|
|
7197
7202
|
return rb.execute(getAgentsById, { path: { id } }, options);
|
|
7198
7203
|
},
|
|
7204
|
+
/**
|
|
7205
|
+
* Look up an agent by its system_slug. Use this for ISV-provisioned agents
|
|
7206
|
+
* where the slug is a stable identifier that survives database resets.
|
|
7207
|
+
*
|
|
7208
|
+
* @param slug - The system_slug of the agent (e.g., "chartless-session-prep-briefing").
|
|
7209
|
+
* @param options - Optional request options.
|
|
7210
|
+
* @returns The Agent record.
|
|
7211
|
+
*
|
|
7212
|
+
* @example
|
|
7213
|
+
* ```ts
|
|
7214
|
+
* const agent = await client.agents.getBySlug("chartless-session-prep-briefing");
|
|
7215
|
+
* ```
|
|
7216
|
+
*/
|
|
7217
|
+
getBySlug: async (slug, options) => {
|
|
7218
|
+
return rb.execute(
|
|
7219
|
+
getAgentsBySlugBySlug,
|
|
7220
|
+
{ path: { slug } },
|
|
7221
|
+
options
|
|
7222
|
+
);
|
|
7223
|
+
},
|
|
7199
7224
|
/**
|
|
7200
7225
|
* Creates a new agent with a blank initial version (v1).
|
|
7201
7226
|
*
|