@amigo-ai/sdk 0.22.0 → 0.23.0

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.
@@ -2219,6 +2219,23 @@ export interface paths {
2219
2219
  patch?: never;
2220
2220
  trace?: never;
2221
2221
  };
2222
+ "/v1/{organization}/tool/invocation/search": {
2223
+ parameters: {
2224
+ query?: never;
2225
+ header?: never;
2226
+ path?: never;
2227
+ cookie?: never;
2228
+ };
2229
+ /** Search tool invocations */
2230
+ get: operations["search-tool-invocations"];
2231
+ put?: never;
2232
+ post?: never;
2233
+ delete?: never;
2234
+ options?: never;
2235
+ head?: never;
2236
+ patch?: never;
2237
+ trace?: never;
2238
+ };
2222
2239
  }
2223
2240
  export type webhooks = Record<string, never>;
2224
2241
  export interface components {
@@ -8509,6 +8526,14 @@ export interface components {
8509
8526
  */
8510
8527
  new_version: string;
8511
8528
  };
8529
+ /** Response */
8530
+ tool__search_tool_invocations__Response: {
8531
+ /**
8532
+ * Tool Invocations
8533
+ * @description The list of tool invocations.
8534
+ */
8535
+ tool_invocations: components["schemas"]["ToolInvocationInstance"][];
8536
+ };
8512
8537
  /** Request */
8513
8538
  user__create_invited_user__Request: {
8514
8539
  /** @description The first name of the user. */
@@ -17263,4 +17288,87 @@ export interface operations {
17263
17288
  };
17264
17289
  };
17265
17290
  };
17291
+ "search-tool-invocations": {
17292
+ parameters: {
17293
+ query: {
17294
+ /** @description The search query. */
17295
+ query: string;
17296
+ /** @description The fields to query against. By default, all supported fields are queried against. */
17297
+ query_against: ("invocation_status.exception_message" | "invocation_status.exception_type" | "invocation_status.exception_stack_trace" | "invocation_status.output")[];
17298
+ /** @description The ID of the tool to get invocations for. */
17299
+ tool_id?: string[];
17300
+ /** @description The source of the invocation */
17301
+ invocation_source_type?: components["schemas"]["InvocationSource-Input"][];
17302
+ /** @description The conversation ID associated with the invocation if it's of invocation source `regular-conversation` */
17303
+ conversation_id?: string[];
17304
+ /** @description The simulation unit test set run ID associated with the invocation if it's of invocation source `simulation-conversation` */
17305
+ simulation_unit_test_set_run_id?: string[];
17306
+ /** @description Whether the invocation succeeded */
17307
+ succeeded?: boolean | null;
17308
+ };
17309
+ header?: {
17310
+ /** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
17311
+ "x-mongo-cluster-name"?: string | null;
17312
+ "Sec-WebSocket-Protocol"?: string[];
17313
+ };
17314
+ path: {
17315
+ organization: string;
17316
+ };
17317
+ cookie?: never;
17318
+ };
17319
+ requestBody?: never;
17320
+ responses: {
17321
+ /** @description Succeeded. */
17322
+ 200: {
17323
+ headers: {
17324
+ [name: string]: unknown;
17325
+ };
17326
+ content: {
17327
+ "application/json": components["schemas"]["tool__search_tool_invocations__Response"];
17328
+ };
17329
+ };
17330
+ /** @description Invalid authorization credentials. */
17331
+ 401: {
17332
+ headers: {
17333
+ [name: string]: unknown;
17334
+ };
17335
+ content?: never;
17336
+ };
17337
+ /** @description Missing required permissions. */
17338
+ 403: {
17339
+ headers: {
17340
+ [name: string]: unknown;
17341
+ };
17342
+ content?: never;
17343
+ };
17344
+ /** @description The organization is not found. */
17345
+ 404: {
17346
+ headers: {
17347
+ [name: string]: unknown;
17348
+ };
17349
+ content?: never;
17350
+ };
17351
+ /** @description Invalid request path parameter or request query parameter failed validation. */
17352
+ 422: {
17353
+ headers: {
17354
+ [name: string]: unknown;
17355
+ };
17356
+ content?: never;
17357
+ };
17358
+ /** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
17359
+ 429: {
17360
+ headers: {
17361
+ [name: string]: unknown;
17362
+ };
17363
+ content?: never;
17364
+ };
17365
+ /** @description The service is going through temporary maintenance. */
17366
+ 503: {
17367
+ headers: {
17368
+ [name: string]: unknown;
17369
+ };
17370
+ content?: never;
17371
+ };
17372
+ };
17373
+ };
17266
17374
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo-ai/sdk",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "Amigo TypeScript SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"