Skip to content

Commit a394300

Browse files
chore: remove count methods from stainless sdk
1 parent d66d4a6 commit a394300

File tree

21 files changed

+2
-319
lines changed

21 files changed

+2
-319
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 116
1+
configured_endpoints: 110
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/letta-ai%2Fletta-sdk-779ee7a7a34dc46d2e6b71e0c87eb3b31520e439b27542a8b40963480ad63f74.yml
33
openapi_spec_hash: d03e9b957df56ce2ea87653feb9bdb6a
4-
config_hash: b3ea92636c226a17252028edffe47d5a
4+
config_hash: a4d193a3723a422d482f909aef0b9d33

api.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Types:
3434
- <code><a href="./src/resources/tools.ts">ToolReturnMessage</a></code>
3535
- <code><a href="./src/resources/tools.ts">ToolType</a></code>
3636
- <code><a href="./src/resources/tools.ts">ToolDeleteResponse</a></code>
37-
- <code><a href="./src/resources/tools.ts">ToolCountResponse</a></code>
3837
- <code><a href="./src/resources/tools.ts">ToolUpsertBaseToolsResponse</a></code>
3938

4039
Methods:
@@ -43,7 +42,6 @@ Methods:
4342
- <code title="get /v1/tools/{tool_id}">client.tools.<a href="./src/resources/tools.ts">retrieve</a>(toolID) -> Tool</code>
4443
- <code title="get /v1/tools/">client.tools.<a href="./src/resources/tools.ts">list</a>({ ...params }) -> ToolsArrayPage</code>
4544
- <code title="delete /v1/tools/{tool_id}">client.tools.<a href="./src/resources/tools.ts">delete</a>(toolID) -> unknown</code>
46-
- <code title="get /v1/tools/count">client.tools.<a href="./src/resources/tools.ts">count</a>({ ...params }) -> ToolCountResponse</code>
4745
- <code title="patch /v1/tools/{tool_id}">client.tools.<a href="./src/resources/tools.ts">modify</a>(toolID, { ...params }) -> Tool</code>
4846
- <code title="put /v1/tools/">client.tools.<a href="./src/resources/tools.ts">upsert</a>({ ...params }) -> Tool</code>
4947
- <code title="post /v1/tools/add-base-tools">client.tools.<a href="./src/resources/tools.ts">upsertBaseTools</a>() -> ToolUpsertBaseToolsResponse</code>
@@ -54,15 +52,13 @@ Types:
5452

5553
- <code><a href="./src/resources/folders/folders.ts">Folder</a></code>
5654
- <code><a href="./src/resources/folders/folders.ts">FolderDeleteResponse</a></code>
57-
- <code><a href="./src/resources/folders/folders.ts">FolderCountResponse</a></code>
5855

5956
Methods:
6057

6158
- <code title="post /v1/folders/">client.folders.<a href="./src/resources/folders/folders.ts">create</a>({ ...params }) -> Folder</code>
6259
- <code title="get /v1/folders/{folder_id}">client.folders.<a href="./src/resources/folders/folders.ts">retrieve</a>(folderID) -> Folder</code>
6360
- <code title="get /v1/folders/">client.folders.<a href="./src/resources/folders/folders.ts">list</a>({ ...params }) -> FoldersArrayPage</code>
6461
- <code title="delete /v1/folders/{folder_id}">client.folders.<a href="./src/resources/folders/folders.ts">delete</a>(folderID) -> unknown</code>
65-
- <code title="get /v1/folders/count">client.folders.<a href="./src/resources/folders/folders.ts">count</a>() -> FolderCountResponse</code>
6662
- <code title="patch /v1/folders/{folder_id}">client.folders.<a href="./src/resources/folders/folders.ts">modify</a>(folderID, { ...params }) -> Folder</code>
6763

6864
## Files
@@ -110,7 +106,6 @@ Types:
110106
- <code><a href="./src/resources/agents/agents.ts">TerminalToolRule</a></code>
111107
- <code><a href="./src/resources/agents/agents.ts">TextResponseFormat</a></code>
112108
- <code><a href="./src/resources/agents/agents.ts">AgentDeleteResponse</a></code>
113-
- <code><a href="./src/resources/agents/agents.ts">AgentCountResponse</a></code>
114109
- <code><a href="./src/resources/agents/agents.ts">AgentExportFileResponse</a></code>
115110
- <code><a href="./src/resources/agents/agents.ts">AgentImportFileResponse</a></code>
116111

@@ -120,7 +115,6 @@ Methods:
120115
- <code title="get /v1/agents/{agent_id}">client.agents.<a href="./src/resources/agents/agents.ts">retrieve</a>(agentID, { ...params }) -> AgentState</code>
121116
- <code title="get /v1/agents/">client.agents.<a href="./src/resources/agents/agents.ts">list</a>({ ...params }) -> AgentStatesArrayPage</code>
122117
- <code title="delete /v1/agents/{agent_id}">client.agents.<a href="./src/resources/agents/agents.ts">delete</a>(agentID) -> unknown</code>
123-
- <code title="get /v1/agents/count">client.agents.<a href="./src/resources/agents/agents.ts">count</a>({ ...params }) -> AgentCountResponse</code>
124118
- <code title="get /v1/agents/{agent_id}/export">client.agents.<a href="./src/resources/agents/agents.ts">exportFile</a>(agentID, { ...params }) -> string</code>
125119
- <code title="post /v1/agents/import">client.agents.<a href="./src/resources/agents/agents.ts">importFile</a>({ ...params }) -> AgentImportFileResponse</code>
126120
- <code title="patch /v1/agents/{agent_id}">client.agents.<a href="./src/resources/agents/agents.ts">modify</a>(agentID, { ...params }) -> AgentState</code>
@@ -251,15 +245,13 @@ Types:
251245
- <code><a href="./src/resources/groups/groups.ts">SupervisorManager</a></code>
252246
- <code><a href="./src/resources/groups/groups.ts">VoiceSleeptimeManager</a></code>
253247
- <code><a href="./src/resources/groups/groups.ts">GroupDeleteResponse</a></code>
254-
- <code><a href="./src/resources/groups/groups.ts">GroupCountResponse</a></code>
255248

256249
Methods:
257250

258251
- <code title="post /v1/groups/">client.groups.<a href="./src/resources/groups/groups.ts">create</a>({ ...params }) -> Group</code>
259252
- <code title="get /v1/groups/{group_id}">client.groups.<a href="./src/resources/groups/groups.ts">retrieve</a>(groupID) -> Group</code>
260253
- <code title="get /v1/groups/">client.groups.<a href="./src/resources/groups/groups.ts">list</a>({ ...params }) -> GroupsArrayPage</code>
261254
- <code title="delete /v1/groups/{group_id}">client.groups.<a href="./src/resources/groups/groups.ts">delete</a>(groupID) -> unknown</code>
262-
- <code title="get /v1/groups/count">client.groups.<a href="./src/resources/groups/groups.ts">count</a>() -> GroupCountResponse</code>
263255
- <code title="patch /v1/groups/{group_id}">client.groups.<a href="./src/resources/groups/groups.ts">modify</a>(groupID, { ...params }) -> Group</code>
264256

265257
## Messages
@@ -286,15 +278,13 @@ Types:
286278
- <code><a href="./src/resources/identities/identities.ts">IdentityProperty</a></code>
287279
- <code><a href="./src/resources/identities/identities.ts">IdentityType</a></code>
288280
- <code><a href="./src/resources/identities/identities.ts">IdentityDeleteResponse</a></code>
289-
- <code><a href="./src/resources/identities/identities.ts">IdentityCountResponse</a></code>
290281

291282
Methods:
292283

293284
- <code title="post /v1/identities/">client.identities.<a href="./src/resources/identities/identities.ts">create</a>({ ...params }) -> Identity</code>
294285
- <code title="get /v1/identities/{identity_id}">client.identities.<a href="./src/resources/identities/identities.ts">retrieve</a>(identityID) -> Identity</code>
295286
- <code title="get /v1/identities/">client.identities.<a href="./src/resources/identities/identities.ts">list</a>({ ...params }) -> IdentitiesArrayPage</code>
296287
- <code title="delete /v1/identities/{identity_id}">client.identities.<a href="./src/resources/identities/identities.ts">delete</a>(identityID) -> unknown</code>
297-
- <code title="get /v1/identities/count">client.identities.<a href="./src/resources/identities/identities.ts">count</a>() -> IdentityCountResponse</code>
298288
- <code title="patch /v1/identities/{identity_id}">client.identities.<a href="./src/resources/identities/identities.ts">modify</a>(identityID, { ...params }) -> Identity</code>
299289
- <code title="put /v1/identities/">client.identities.<a href="./src/resources/identities/identities.ts">upsert</a>({ ...params }) -> Identity</code>
300290

@@ -351,15 +341,13 @@ Types:
351341
- <code><a href="./src/resources/blocks/blocks.ts">BlockResponse</a></code>
352342
- <code><a href="./src/resources/blocks/blocks.ts">CreateBlock</a></code>
353343
- <code><a href="./src/resources/blocks/blocks.ts">BlockDeleteResponse</a></code>
354-
- <code><a href="./src/resources/blocks/blocks.ts">BlockCountResponse</a></code>
355344

356345
Methods:
357346

358347
- <code title="post /v1/blocks/">client.blocks.<a href="./src/resources/blocks/blocks.ts">create</a>({ ...params }) -> BlockResponse</code>
359348
- <code title="get /v1/blocks/{block_id}">client.blocks.<a href="./src/resources/blocks/blocks.ts">retrieve</a>(blockID) -> BlockResponse</code>
360349
- <code title="get /v1/blocks/">client.blocks.<a href="./src/resources/blocks/blocks.ts">list</a>({ ...params }) -> BlockResponsesArrayPage</code>
361350
- <code title="delete /v1/blocks/{block_id}">client.blocks.<a href="./src/resources/blocks/blocks.ts">delete</a>(blockID) -> unknown</code>
362-
- <code title="get /v1/blocks/count">client.blocks.<a href="./src/resources/blocks/blocks.ts">count</a>() -> BlockCountResponse</code>
363351
- <code title="patch /v1/blocks/{block_id}">client.blocks.<a href="./src/resources/blocks/blocks.ts">modify</a>(blockID, { ...params }) -> BlockResponse</code>
364352

365353
## Agents

src/client.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ import {
4343
NpmRequirement,
4444
PipRequirement,
4545
Tool,
46-
ToolCountParams,
47-
ToolCountResponse,
4846
ToolCreate,
4947
ToolCreateParams,
5048
ToolDeleteResponse,
@@ -58,8 +56,6 @@ import {
5856
ToolsArrayPage,
5957
} from './resources/tools';
6058
import {
61-
AgentCountParams,
62-
AgentCountResponse,
6359
AgentCreateParams,
6460
AgentDeleteResponse,
6561
AgentEnvironmentVariable,
@@ -98,7 +94,6 @@ import {
9894
Batches,
9995
} from './resources/batches/batches';
10096
import {
101-
BlockCountResponse,
10297
BlockCreateParams,
10398
BlockDeleteResponse,
10499
BlockListParams,
@@ -110,7 +105,6 @@ import {
110105
} from './resources/blocks/blocks';
111106
import {
112107
Folder,
113-
FolderCountResponse,
114108
FolderCreateParams,
115109
FolderDeleteResponse,
116110
FolderListParams,
@@ -121,7 +115,6 @@ import {
121115
import {
122116
DynamicManager,
123117
Group,
124-
GroupCountResponse,
125118
GroupCreateParams,
126119
GroupDeleteResponse,
127120
GroupListParams,
@@ -138,7 +131,6 @@ import {
138131
Identities,
139132
IdentitiesArrayPage,
140133
Identity,
141-
IdentityCountResponse,
142134
IdentityCreateParams,
143135
IdentityDeleteResponse,
144136
IdentityListParams,
@@ -1001,12 +993,10 @@ export declare namespace Letta {
1001993
type ToolReturnMessage as ToolReturnMessage,
1002994
type ToolType as ToolType,
1003995
type ToolDeleteResponse as ToolDeleteResponse,
1004-
type ToolCountResponse as ToolCountResponse,
1005996
type ToolUpsertBaseToolsResponse as ToolUpsertBaseToolsResponse,
1006997
type ToolsArrayPage as ToolsArrayPage,
1007998
type ToolCreateParams as ToolCreateParams,
1008999
type ToolListParams as ToolListParams,
1009-
type ToolCountParams as ToolCountParams,
10101000
type ToolModifyParams as ToolModifyParams,
10111001
type ToolUpsertParams as ToolUpsertParams,
10121002
};
@@ -1015,7 +1005,6 @@ export declare namespace Letta {
10151005
Folders as Folders,
10161006
type Folder as Folder,
10171007
type FolderDeleteResponse as FolderDeleteResponse,
1018-
type FolderCountResponse as FolderCountResponse,
10191008
type FoldersArrayPage as FoldersArrayPage,
10201009
type FolderCreateParams as FolderCreateParams,
10211010
type FolderListParams as FolderListParams,
@@ -1042,14 +1031,12 @@ export declare namespace Letta {
10421031
type TerminalToolRule as TerminalToolRule,
10431032
type TextResponseFormat as TextResponseFormat,
10441033
type AgentDeleteResponse as AgentDeleteResponse,
1045-
type AgentCountResponse as AgentCountResponse,
10461034
type AgentExportFileResponse as AgentExportFileResponse,
10471035
type AgentImportFileResponse as AgentImportFileResponse,
10481036
type AgentStatesArrayPage as AgentStatesArrayPage,
10491037
type AgentCreateParams as AgentCreateParams,
10501038
type AgentRetrieveParams as AgentRetrieveParams,
10511039
type AgentListParams as AgentListParams,
1052-
type AgentCountParams as AgentCountParams,
10531040
type AgentExportFileParams as AgentExportFileParams,
10541041
type AgentImportFileParams as AgentImportFileParams,
10551042
type AgentModifyParams as AgentModifyParams,
@@ -1065,7 +1052,6 @@ export declare namespace Letta {
10651052
type SupervisorManager as SupervisorManager,
10661053
type VoiceSleeptimeManager as VoiceSleeptimeManager,
10671054
type GroupDeleteResponse as GroupDeleteResponse,
1068-
type GroupCountResponse as GroupCountResponse,
10691055
type GroupsArrayPage as GroupsArrayPage,
10701056
type GroupCreateParams as GroupCreateParams,
10711057
type GroupListParams as GroupListParams,
@@ -1078,7 +1064,6 @@ export declare namespace Letta {
10781064
type IdentityProperty as IdentityProperty,
10791065
type IdentityType as IdentityType,
10801066
type IdentityDeleteResponse as IdentityDeleteResponse,
1081-
type IdentityCountResponse as IdentityCountResponse,
10821067
type IdentitiesArrayPage as IdentitiesArrayPage,
10831068
type IdentityCreateParams as IdentityCreateParams,
10841069
type IdentityListParams as IdentityListParams,
@@ -1101,7 +1086,6 @@ export declare namespace Letta {
11011086
type BlockResponse as BlockResponse,
11021087
type CreateBlock as CreateBlock,
11031088
type BlockDeleteResponse as BlockDeleteResponse,
1104-
type BlockCountResponse as BlockCountResponse,
11051089
type BlockResponsesArrayPage as BlockResponsesArrayPage,
11061090
type BlockCreateParams as BlockCreateParams,
11071091
type BlockListParams as BlockListParams,

src/resources/agents/agents.ts

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,6 @@ export class Agents extends APIResource {
148148
return this._client.delete(path`/v1/agents/${agentID}`, options);
149149
}
150150

151-
/**
152-
* Get the total number of agents with optional filtering. Supports the same
153-
* filters as list_agents for consistent querying.
154-
*/
155-
count(
156-
query: AgentCountParams | null | undefined = {},
157-
options?: RequestOptions,
158-
): APIPromise<AgentCountResponse> {
159-
return this._client.get('/v1/agents/count', { query, ...options });
160-
}
161-
162151
/**
163152
* Export the serialized JSON representation of an agent, formatted with
164153
* indentation.
@@ -1081,8 +1070,6 @@ export interface TextResponseFormat {
10811070

10821071
export type AgentDeleteResponse = unknown;
10831072

1084-
export type AgentCountResponse = number;
1085-
10861073
export type AgentExportFileResponse = string;
10871074

10881075
/**
@@ -1495,59 +1482,6 @@ export interface AgentListParams extends ArrayPageParams {
14951482
template_id?: string | null;
14961483
}
14971484

1498-
export interface AgentCountParams {
1499-
/**
1500-
* Search agents by base template ID
1501-
*/
1502-
base_template_id?: string | null;
1503-
1504-
/**
1505-
* Search agents by identifier keys
1506-
*/
1507-
identifier_keys?: Array<string> | null;
1508-
1509-
/**
1510-
* Search agents by identity ID
1511-
*/
1512-
identity_id?: string | null;
1513-
1514-
/**
1515-
* Filter agents by their last stop reason.
1516-
*/
1517-
last_stop_reason?: RunsAPI.StopReasonType | null;
1518-
1519-
/**
1520-
* If True, only counts agents that match ALL given tags. Otherwise, counts agents
1521-
* that have ANY of the passed-in tags.
1522-
*/
1523-
match_all_tags?: boolean;
1524-
1525-
/**
1526-
* Name of the agent
1527-
*/
1528-
name?: string | null;
1529-
1530-
/**
1531-
* Search agents by project ID - this will default to your default project on cloud
1532-
*/
1533-
project_id?: string | null;
1534-
1535-
/**
1536-
* Search agents by name
1537-
*/
1538-
query_text?: string | null;
1539-
1540-
/**
1541-
* List of tags to filter agents by
1542-
*/
1543-
tags?: Array<string> | null;
1544-
1545-
/**
1546-
* Search agents by template ID
1547-
*/
1548-
template_id?: string | null;
1549-
}
1550-
15511485
export interface AgentExportFileParams {
15521486
/**
15531487
* @deprecated
@@ -1861,14 +1795,12 @@ export declare namespace Agents {
18611795
type TerminalToolRule as TerminalToolRule,
18621796
type TextResponseFormat as TextResponseFormat,
18631797
type AgentDeleteResponse as AgentDeleteResponse,
1864-
type AgentCountResponse as AgentCountResponse,
18651798
type AgentExportFileResponse as AgentExportFileResponse,
18661799
type AgentImportFileResponse as AgentImportFileResponse,
18671800
type AgentStatesArrayPage as AgentStatesArrayPage,
18681801
type AgentCreateParams as AgentCreateParams,
18691802
type AgentRetrieveParams as AgentRetrieveParams,
18701803
type AgentListParams as AgentListParams,
1871-
type AgentCountParams as AgentCountParams,
18721804
type AgentExportFileParams as AgentExportFileParams,
18731805
type AgentImportFileParams as AgentImportFileParams,
18741806
type AgentModifyParams as AgentModifyParams,

src/resources/agents/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ export {
2020
type TerminalToolRule,
2121
type TextResponseFormat,
2222
type AgentDeleteResponse,
23-
type AgentCountResponse,
2423
type AgentExportFileResponse,
2524
type AgentImportFileResponse,
2625
type AgentCreateParams,
2726
type AgentRetrieveParams,
2827
type AgentListParams,
29-
type AgentCountParams,
3028
type AgentExportFileParams,
3129
type AgentImportFileParams,
3230
type AgentModifyParams,

src/resources/blocks/blocks.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ export class Blocks extends APIResource {
4242
return this._client.delete(path`/v1/blocks/${blockID}`, options);
4343
}
4444

45-
/**
46-
* Count all blocks created by a user.
47-
*/
48-
count(options?: RequestOptions): APIPromise<BlockCountResponse> {
49-
return this._client.get('/v1/blocks/count', options);
50-
}
51-
5245
/**
5346
* Modify Block
5447
*/
@@ -230,8 +223,6 @@ export interface CreateBlock {
230223

231224
export type BlockDeleteResponse = unknown;
232225

233-
export type BlockCountResponse = number;
234-
235226
export interface BlockCreateParams {
236227
/**
237228
* Label of the block.
@@ -457,7 +448,6 @@ export declare namespace Blocks {
457448
type BlockResponse as BlockResponse,
458449
type CreateBlock as CreateBlock,
459450
type BlockDeleteResponse as BlockDeleteResponse,
460-
type BlockCountResponse as BlockCountResponse,
461451
type BlockResponsesArrayPage as BlockResponsesArrayPage,
462452
type BlockCreateParams as BlockCreateParams,
463453
type BlockListParams as BlockListParams,

src/resources/blocks/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export {
66
type BlockResponse,
77
type CreateBlock,
88
type BlockDeleteResponse,
9-
type BlockCountResponse,
109
type BlockCreateParams,
1110
type BlockListParams,
1211
type BlockModifyParams,

src/resources/folders/folders.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ export class Folders extends APIResource {
5454
return this._client.delete(path`/v1/folders/${folderID}`, options);
5555
}
5656

57-
/**
58-
* Count all data folders created by a user.
59-
*/
60-
count(options?: RequestOptions): APIPromise<FolderCountResponse> {
61-
return this._client.get('/v1/folders/count', options);
62-
}
63-
6457
/**
6558
* Update the name or documentation of an existing data folder.
6659
*/
@@ -134,8 +127,6 @@ export interface Folder {
134127

135128
export type FolderDeleteResponse = unknown;
136129

137-
export type FolderCountResponse = number;
138-
139130
export interface FolderCreateParams {
140131
/**
141132
* The name of the source.
@@ -214,7 +205,6 @@ export declare namespace Folders {
214205
export {
215206
type Folder as Folder,
216207
type FolderDeleteResponse as FolderDeleteResponse,
217-
type FolderCountResponse as FolderCountResponse,
218208
type FoldersArrayPage as FoldersArrayPage,
219209
type FolderCreateParams as FolderCreateParams,
220210
type FolderListParams as FolderListParams,

0 commit comments

Comments
 (0)