@iblai/iblai-api 4.333.0-ai → 4.334.0-ai

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.cjs.js CHANGED
@@ -110,7 +110,7 @@ class CancelablePromise {
110
110
 
111
111
  const OpenAPI = {
112
112
  BASE: 'https://base.manager.iblai.app',
113
- VERSION: '4.333.0-ai-plus',
113
+ VERSION: '4.334.0-ai-plus',
114
114
  WITH_CREDENTIALS: false,
115
115
  CREDENTIALS: 'include',
116
116
  TOKEN: undefined,
@@ -16564,10 +16564,10 @@ class AiMentorService{/**
16564
16564
  * @throws ApiError
16565
16565
  */static aiMentorOrgsAgentsSpendCapDestroy({mentorUniqueId,org}){return request(OpenAPI,{method:'DELETE',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-cap/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Agent spend cap not found`}});}/**
16566
16566
  * List per-user caps for an agent
16567
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
16567
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
16568
16568
  * @returns SpendCap
16569
16569
  * @throws ApiError
16570
- */static aiMentorOrgsAgentsSpendCapsUsersList({mentorUniqueId,org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
16570
+ */static aiMentorOrgsAgentsSpendCapsUsersList({mentorUniqueId,org,email,username}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},query:{'email':email,'username':username},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
16571
16571
  * Get a per-user agent spend cap
16572
16572
  * Retrieve one explicit ``(user, agent)`` spend cap.
16573
16573
  * @returns SpendCap
@@ -17159,10 +17159,10 @@ class AiMentorService{/**
17159
17159
  * List per-user caps for an agent
17160
17160
  * **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` (`mentor` → `agent`) and will be removed in a future release.
17161
17161
  *
17162
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
17162
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
17163
17163
  * @returns SpendCap
17164
17164
  * @throws ApiError
17165
- */static aiMentorOrgsMentorsSpendCapsUsersList({mentorUniqueId,org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17165
+ */static aiMentorOrgsMentorsSpendCapsUsersList({mentorUniqueId,org,email,username}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},query:{'email':email,'username':username},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17166
17166
  * @deprecated
17167
17167
  * Get a per-user agent spend cap
17168
17168
  * **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/{username}/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/{username}/` (`mentor` → `agent`) and will be removed in a future release.
@@ -17449,10 +17449,10 @@ class AiMentorService{/**
17449
17449
  * @throws ApiError
17450
17450
  */static aiMentorOrgsSessionsCreate({org,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/sessions/',path:{'org':org},body:requestBody,mediaType:'application/json'});}/**
17451
17451
  * List agent spend caps
17452
- * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters.
17452
+ * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters. Optionally filter to one mentor with the mentor's unique_id.
17453
17453
  * @returns SpendCap
17454
17454
  * @throws ApiError
17455
- */static aiMentorOrgsSpendCapsAgentsList({org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/spend-caps/agents/',path:{'org':org},errors:{403:`Permission denied`}});}/**
17455
+ */static aiMentorOrgsSpendCapsAgentsList({org,mentor}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/spend-caps/agents/',path:{'org':org},query:{'mentor':mentor},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17456
17456
  * Get a user's spend-cap status
17457
17457
  * Read-only, learner-safe spend-cap status for ``user_id``. A non-admin member may read only their own status; an admin may read any user's. Only the coarse zone and fill percentage are returned — never raw spend or limit dollars. Pass ``?mentor=<unique_id>`` to include that agent's cap and the user's per-agent cap.
17458
17458
  * @returns SpendCapStatusSummary
package/dist/index.esm.js CHANGED
@@ -108,7 +108,7 @@ class CancelablePromise {
108
108
 
109
109
  const OpenAPI = {
110
110
  BASE: 'https://base.manager.iblai.app',
111
- VERSION: '4.333.0-ai-plus',
111
+ VERSION: '4.334.0-ai-plus',
112
112
  WITH_CREDENTIALS: false,
113
113
  CREDENTIALS: 'include',
114
114
  TOKEN: undefined,
@@ -16562,10 +16562,10 @@ class AiMentorService{/**
16562
16562
  * @throws ApiError
16563
16563
  */static aiMentorOrgsAgentsSpendCapDestroy({mentorUniqueId,org}){return request(OpenAPI,{method:'DELETE',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-cap/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Agent spend cap not found`}});}/**
16564
16564
  * List per-user caps for an agent
16565
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
16565
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
16566
16566
  * @returns SpendCap
16567
16567
  * @throws ApiError
16568
- */static aiMentorOrgsAgentsSpendCapsUsersList({mentorUniqueId,org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
16568
+ */static aiMentorOrgsAgentsSpendCapsUsersList({mentorUniqueId,org,email,username}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},query:{'email':email,'username':username},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
16569
16569
  * Get a per-user agent spend cap
16570
16570
  * Retrieve one explicit ``(user, agent)`` spend cap.
16571
16571
  * @returns SpendCap
@@ -17157,10 +17157,10 @@ class AiMentorService{/**
17157
17157
  * List per-user caps for an agent
17158
17158
  * **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` (`mentor` → `agent`) and will be removed in a future release.
17159
17159
  *
17160
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
17160
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
17161
17161
  * @returns SpendCap
17162
17162
  * @throws ApiError
17163
- */static aiMentorOrgsMentorsSpendCapsUsersList({mentorUniqueId,org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17163
+ */static aiMentorOrgsMentorsSpendCapsUsersList({mentorUniqueId,org,email,username}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},query:{'email':email,'username':username},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17164
17164
  * @deprecated
17165
17165
  * Get a per-user agent spend cap
17166
17166
  * **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/{username}/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/{username}/` (`mentor` → `agent`) and will be removed in a future release.
@@ -17447,10 +17447,10 @@ class AiMentorService{/**
17447
17447
  * @throws ApiError
17448
17448
  */static aiMentorOrgsSessionsCreate({org,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/sessions/',path:{'org':org},body:requestBody,mediaType:'application/json'});}/**
17449
17449
  * List agent spend caps
17450
- * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters.
17450
+ * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters. Optionally filter to one mentor with the mentor's unique_id.
17451
17451
  * @returns SpendCap
17452
17452
  * @throws ApiError
17453
- */static aiMentorOrgsSpendCapsAgentsList({org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/spend-caps/agents/',path:{'org':org},errors:{403:`Permission denied`}});}/**
17453
+ */static aiMentorOrgsSpendCapsAgentsList({org,mentor}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/spend-caps/agents/',path:{'org':org},query:{'mentor':mentor},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17454
17454
  * Get a user's spend-cap status
17455
17455
  * Read-only, learner-safe spend-cap status for ``user_id``. A non-admin member may read only their own status; an admin may read any user's. Only the coarse zone and fill percentage are returned — never raw spend or limit dollars. Pass ``?mentor=<unique_id>`` to include that agent's cap and the user's per-agent cap.
17456
17456
  * @returns SpendCapStatusSummary
package/dist/index.umd.js CHANGED
@@ -114,7 +114,7 @@
114
114
 
115
115
  const OpenAPI = {
116
116
  BASE: 'https://base.manager.iblai.app',
117
- VERSION: '4.333.0-ai-plus',
117
+ VERSION: '4.334.0-ai-plus',
118
118
  WITH_CREDENTIALS: false,
119
119
  CREDENTIALS: 'include',
120
120
  TOKEN: undefined,
@@ -16568,10 +16568,10 @@
16568
16568
  * @throws ApiError
16569
16569
  */static aiMentorOrgsAgentsSpendCapDestroy({mentorUniqueId,org}){return request(OpenAPI,{method:'DELETE',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-cap/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Agent spend cap not found`}});}/**
16570
16570
  * List per-user caps for an agent
16571
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
16571
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
16572
16572
  * @returns SpendCap
16573
16573
  * @throws ApiError
16574
- */static aiMentorOrgsAgentsSpendCapsUsersList({mentorUniqueId,org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
16574
+ */static aiMentorOrgsAgentsSpendCapsUsersList({mentorUniqueId,org,email,username}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},query:{'email':email,'username':username},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
16575
16575
  * Get a per-user agent spend cap
16576
16576
  * Retrieve one explicit ``(user, agent)`` spend cap.
16577
16577
  * @returns SpendCap
@@ -17163,10 +17163,10 @@
17163
17163
  * List per-user caps for an agent
17164
17164
  * **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` (`mentor` → `agent`) and will be removed in a future release.
17165
17165
  *
17166
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
17166
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
17167
17167
  * @returns SpendCap
17168
17168
  * @throws ApiError
17169
- */static aiMentorOrgsMentorsSpendCapsUsersList({mentorUniqueId,org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17169
+ */static aiMentorOrgsMentorsSpendCapsUsersList({mentorUniqueId,org,email,username}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/mentors/{mentor_unique_id}/spend-caps/users/',path:{'mentor_unique_id':mentorUniqueId,'org':org},query:{'email':email,'username':username},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17170
17170
  * @deprecated
17171
17171
  * Get a per-user agent spend cap
17172
17172
  * **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/{username}/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/{username}/` (`mentor` → `agent`) and will be removed in a future release.
@@ -17453,10 +17453,10 @@
17453
17453
  * @throws ApiError
17454
17454
  */static aiMentorOrgsSessionsCreate({org,requestBody}){return request(OpenAPI,{method:'POST',url:'/api/ai-mentor/orgs/{org}/sessions/',path:{'org':org},body:requestBody,mediaType:'application/json'});}/**
17455
17455
  * List agent spend caps
17456
- * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters.
17456
+ * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters. Optionally filter to one mentor with the mentor's unique_id.
17457
17457
  * @returns SpendCap
17458
17458
  * @throws ApiError
17459
- */static aiMentorOrgsSpendCapsAgentsList({org}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/spend-caps/agents/',path:{'org':org},errors:{403:`Permission denied`}});}/**
17459
+ */static aiMentorOrgsSpendCapsAgentsList({org,mentor}){return request(OpenAPI,{method:'GET',url:'/api/ai-mentor/orgs/{org}/spend-caps/agents/',path:{'org':org},query:{'mentor':mentor},errors:{403:`Permission denied`,404:`Mentor not found`}});}/**
17460
17460
  * Get a user's spend-cap status
17461
17461
  * Read-only, learner-safe spend-cap status for ``user_id``. A non-admin member may read only their own status; an admin may read any user's. Only the coarse zone and fill percentage are returned — never raw spend or limit dollars. Pass ``?mentor=<unique_id>`` to include that agent's cap and the user's per-agent cap.
17462
17462
  * @returns SpendCapStatusSummary
@@ -920,13 +920,21 @@ export declare class AiMentorService {
920
920
  }): CancelablePromise<void>;
921
921
  /**
922
922
  * List per-user caps for an agent
923
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
923
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
924
924
  * @returns SpendCap
925
925
  * @throws ApiError
926
926
  */
927
- static aiMentorOrgsAgentsSpendCapsUsersList({ mentorUniqueId, org, }: {
927
+ static aiMentorOrgsAgentsSpendCapsUsersList({ mentorUniqueId, org, email, username, }: {
928
928
  mentorUniqueId: string;
929
929
  org: string;
930
+ /**
931
+ * Optional case-insensitive exact email filter
932
+ */
933
+ email?: string;
934
+ /**
935
+ * Optional exact username filter
936
+ */
937
+ username?: string;
930
938
  }): CancelablePromise<Array<SpendCap>>;
931
939
  /**
932
940
  * Get a per-user agent spend cap
@@ -2179,13 +2187,21 @@ export declare class AiMentorService {
2179
2187
  * List per-user caps for an agent
2180
2188
  * **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` (`mentor` → `agent`) and will be removed in a future release.
2181
2189
  *
2182
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
2190
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
2183
2191
  * @returns SpendCap
2184
2192
  * @throws ApiError
2185
2193
  */
2186
- static aiMentorOrgsMentorsSpendCapsUsersList({ mentorUniqueId, org, }: {
2194
+ static aiMentorOrgsMentorsSpendCapsUsersList({ mentorUniqueId, org, email, username, }: {
2187
2195
  mentorUniqueId: string;
2188
2196
  org: string;
2197
+ /**
2198
+ * Optional case-insensitive exact email filter
2199
+ */
2200
+ email?: string;
2201
+ /**
2202
+ * Optional exact username filter
2203
+ */
2204
+ username?: string;
2189
2205
  }): CancelablePromise<Array<SpendCap>>;
2190
2206
  /**
2191
2207
  * @deprecated
@@ -2659,12 +2675,16 @@ export declare class AiMentorService {
2659
2675
  }): CancelablePromise<ChatSessionResponse>;
2660
2676
  /**
2661
2677
  * List agent spend caps
2662
- * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters.
2678
+ * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters. Optionally filter to one mentor with the mentor's unique_id.
2663
2679
  * @returns SpendCap
2664
2680
  * @throws ApiError
2665
2681
  */
2666
- static aiMentorOrgsSpendCapsAgentsList({ org, }: {
2682
+ static aiMentorOrgsSpendCapsAgentsList({ org, mentor, }: {
2667
2683
  org: string;
2684
+ /**
2685
+ * Optional mentor unique_id to filter the agent caps list
2686
+ */
2687
+ mentor?: string;
2668
2688
  }): CancelablePromise<Array<SpendCap>>;
2669
2689
  /**
2670
2690
  * Get a user's spend-cap status
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.333.0-ai",
3
+ "version": "4.334.0-ai",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",
package/sdk_schema.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ibl-data-manager
4
- version: 4.333.0-ai-plus
4
+ version: 4.334.0-ai-plus
5
5
  description: API for iblai
6
6
  paths:
7
7
  /api/ai-account/connected-services/callback/:
@@ -16228,9 +16228,15 @@ paths:
16228
16228
  get:
16229
16229
  operationId: ai_mentor_orgs_agents_spend_caps_users_list
16230
16230
  description: List every explicit ``(user, agent)`` spend cap configured for
16231
- one mentor. Individual caps are managed via the detail endpoint.
16231
+ one mentor. Individual caps are managed via the detail endpoint. Optionally
16232
+ filter by username and/or email.
16232
16233
  summary: List per-user caps for an agent
16233
16234
  parameters:
16235
+ - in: query
16236
+ name: email
16237
+ schema:
16238
+ type: string
16239
+ description: Optional case-insensitive exact email filter
16234
16240
  - in: path
16235
16241
  name: mentor_unique_id
16236
16242
  schema:
@@ -16242,6 +16248,11 @@ paths:
16242
16248
  schema:
16243
16249
  type: string
16244
16250
  required: true
16251
+ - in: query
16252
+ name: username
16253
+ schema:
16254
+ type: string
16255
+ description: Optional exact username filter
16245
16256
  tags:
16246
16257
  - ai-mentor
16247
16258
  security:
@@ -20155,9 +20166,14 @@ paths:
20155
20166
  description: |-
20156
20167
  **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` (`mentor` → `agent`) and will be removed in a future release.
20157
20168
 
20158
- List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
20169
+ List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
20159
20170
  summary: List per-user caps for an agent
20160
20171
  parameters:
20172
+ - in: query
20173
+ name: email
20174
+ schema:
20175
+ type: string
20176
+ description: Optional case-insensitive exact email filter
20161
20177
  - in: path
20162
20178
  name: mentor_unique_id
20163
20179
  schema:
@@ -20169,6 +20185,11 @@ paths:
20169
20185
  schema:
20170
20186
  type: string
20171
20187
  required: true
20188
+ - in: query
20189
+ name: username
20190
+ schema:
20191
+ type: string
20192
+ description: Optional exact username filter
20172
20193
  tags:
20173
20194
  - ai-mentor
20174
20195
  security:
@@ -21583,9 +21604,15 @@ paths:
21583
21604
  operationId: ai_mentor_orgs_spend_caps_agents_list
21584
21605
  description: List every agent-scoped spend cap configured for the platform.
21585
21606
  Each item includes mentor identity fields alongside the spend-cap settings
21586
- and reconciled counters.
21607
+ and reconciled counters. Optionally filter to one mentor with the mentor's
21608
+ unique_id.
21587
21609
  summary: List agent spend caps
21588
21610
  parameters:
21611
+ - in: query
21612
+ name: mentor
21613
+ schema:
21614
+ type: string
21615
+ description: Optional mentor unique_id to filter the agent caps list
21589
21616
  - in: path
21590
21617
  name: org
21591
21618
  schema:
@@ -21606,6 +21633,8 @@ paths:
21606
21633
  description: ''
21607
21634
  '403':
21608
21635
  description: Permission denied
21636
+ '404':
21637
+ description: Mentor not found
21609
21638
  /api/ai-mentor/orgs/{org}/spend-caps/status/{user_id}/:
21610
21639
  get:
21611
21640
  operationId: ai_mentor_orgs_spend_caps_status_retrieve
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '4.333.0-ai-plus',
24
+ VERSION: '4.334.0-ai-plus',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
@@ -1728,16 +1728,26 @@ export class AiMentorService {
1728
1728
  }
1729
1729
  /**
1730
1730
  * List per-user caps for an agent
1731
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
1731
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
1732
1732
  * @returns SpendCap
1733
1733
  * @throws ApiError
1734
1734
  */
1735
1735
  public static aiMentorOrgsAgentsSpendCapsUsersList({
1736
1736
  mentorUniqueId,
1737
1737
  org,
1738
+ email,
1739
+ username,
1738
1740
  }: {
1739
1741
  mentorUniqueId: string,
1740
1742
  org: string,
1743
+ /**
1744
+ * Optional case-insensitive exact email filter
1745
+ */
1746
+ email?: string,
1747
+ /**
1748
+ * Optional exact username filter
1749
+ */
1750
+ username?: string,
1741
1751
  }): CancelablePromise<Array<SpendCap>> {
1742
1752
  return __request(OpenAPI, {
1743
1753
  method: 'GET',
@@ -1746,6 +1756,10 @@ export class AiMentorService {
1746
1756
  'mentor_unique_id': mentorUniqueId,
1747
1757
  'org': org,
1748
1758
  },
1759
+ query: {
1760
+ 'email': email,
1761
+ 'username': username,
1762
+ },
1749
1763
  errors: {
1750
1764
  403: `Permission denied`,
1751
1765
  404: `Mentor not found`,
@@ -4344,16 +4358,26 @@ export class AiMentorService {
4344
4358
  * List per-user caps for an agent
4345
4359
  * **Deprecated — use `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` instead.** This `mentor`-spelled path is an alias kept for backward compatibility; it is equivalent to `/api/ai-mentor/orgs/{org}/agents/{mentor_unique_id}/spend-caps/users/` (`mentor` → `agent`) and will be removed in a future release.
4346
4360
  *
4347
- * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint.
4361
+ * List every explicit ``(user, agent)`` spend cap configured for one mentor. Individual caps are managed via the detail endpoint. Optionally filter by username and/or email.
4348
4362
  * @returns SpendCap
4349
4363
  * @throws ApiError
4350
4364
  */
4351
4365
  public static aiMentorOrgsMentorsSpendCapsUsersList({
4352
4366
  mentorUniqueId,
4353
4367
  org,
4368
+ email,
4369
+ username,
4354
4370
  }: {
4355
4371
  mentorUniqueId: string,
4356
4372
  org: string,
4373
+ /**
4374
+ * Optional case-insensitive exact email filter
4375
+ */
4376
+ email?: string,
4377
+ /**
4378
+ * Optional exact username filter
4379
+ */
4380
+ username?: string,
4357
4381
  }): CancelablePromise<Array<SpendCap>> {
4358
4382
  return __request(OpenAPI, {
4359
4383
  method: 'GET',
@@ -4362,6 +4386,10 @@ export class AiMentorService {
4362
4386
  'mentor_unique_id': mentorUniqueId,
4363
4387
  'org': org,
4364
4388
  },
4389
+ query: {
4390
+ 'email': email,
4391
+ 'username': username,
4392
+ },
4365
4393
  errors: {
4366
4394
  403: `Permission denied`,
4367
4395
  404: `Mentor not found`,
@@ -5238,14 +5266,19 @@ export class AiMentorService {
5238
5266
  }
5239
5267
  /**
5240
5268
  * List agent spend caps
5241
- * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters.
5269
+ * List every agent-scoped spend cap configured for the platform. Each item includes mentor identity fields alongside the spend-cap settings and reconciled counters. Optionally filter to one mentor with the mentor's unique_id.
5242
5270
  * @returns SpendCap
5243
5271
  * @throws ApiError
5244
5272
  */
5245
5273
  public static aiMentorOrgsSpendCapsAgentsList({
5246
5274
  org,
5275
+ mentor,
5247
5276
  }: {
5248
5277
  org: string,
5278
+ /**
5279
+ * Optional mentor unique_id to filter the agent caps list
5280
+ */
5281
+ mentor?: string,
5249
5282
  }): CancelablePromise<Array<SpendCap>> {
5250
5283
  return __request(OpenAPI, {
5251
5284
  method: 'GET',
@@ -5253,8 +5286,12 @@ export class AiMentorService {
5253
5286
  path: {
5254
5287
  'org': org,
5255
5288
  },
5289
+ query: {
5290
+ 'mentor': mentor,
5291
+ },
5256
5292
  errors: {
5257
5293
  403: `Permission denied`,
5294
+ 404: `Mentor not found`,
5258
5295
  },
5259
5296
  });
5260
5297
  }