@smartspace/api-client 0.1.0-pr.1415.da24eae → 0.1.0-pr.1417.512cbfc

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.
@@ -214,6 +214,7 @@ __exportStar(require("./enumsPermissions"), exports);
214
214
  __exportStar(require("./enumsPinType"), exports);
215
215
  __exportStar(require("./enumsPortType"), exports);
216
216
  __exportStar(require("./enumsVirtualMachineServerType"), exports);
217
+ __exportStar(require("./errorCode"), exports);
217
218
  __exportStar(require("./filesAddMessageFileFromBlobUri"), exports);
218
219
  __exportStar(require("./filesCreateFileFromBlobUri"), exports);
219
220
  __exportStar(require("./filesDownloadFileParams"), exports);
@@ -320,6 +321,7 @@ __exportStar(require("./messagesMessageCreatorProfileImage"), exports);
320
321
  __exportStar(require("./messagesMessageDelta"), exports);
321
322
  __exportStar(require("./messagesMessageError"), exports);
322
323
  __exportStar(require("./messagesMessageErrorData"), exports);
324
+ __exportStar(require("./messagesMessageErrorErrorCode"), exports);
323
325
  __exportStar(require("./messagesMessageValue"), exports);
324
326
  __exportStar(require("./messagesMessageValueChannels"), exports);
325
327
  __exportStar(require("./messagesMessageValueValue"), exports);
@@ -5,14 +5,16 @@
5
5
  * OpenAPI spec version: v1
6
6
  */
7
7
  import type { MessagesMessageErrorData } from './messagesMessageErrorData';
8
+ import type { MessagesMessageErrorErrorCode } from './messagesMessageErrorErrorCode';
8
9
  export interface MessagesMessageError {
9
10
  /** @nullable */
10
11
  blockId?: string | null;
12
+ /** HTTP status of the failure. For a failure the AI API reported, this can be the AI API's own status rather than the one in ErrorCode's x-error-code-info. */
11
13
  code: number;
12
14
  /** @nullable */
13
15
  data?: MessagesMessageErrorData;
14
16
  /** @nullable */
15
- errorCode?: string | null;
17
+ errorCode?: MessagesMessageErrorErrorCode;
16
18
  /** @nullable */
17
19
  message?: string | null;
18
20
  /** @nullable */
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v7.13.2 🍺
3
+ * Do not edit manually.
4
+ * SmartSpace Admin API
5
+ * OpenAPI spec version: v1
6
+ */
7
+ import type { ErrorCode } from './errorCode';
8
+ /**
9
+ * @nullable
10
+ */
11
+ export type MessagesMessageErrorErrorCode = ErrorCode | null;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,9 +4,10 @@
4
4
  * SmartSpace Admin API
5
5
  * OpenAPI spec version: v1
6
6
  */
7
+ import type { ErrorCode } from './errorCode';
7
8
  export interface MicrosoftAspNetCoreMvcProblemDetails {
8
9
  /** Machine-readable error code, e.g. thread.already_running. Key on this, not on title or detail. */
9
- code: string;
10
+ code: ErrorCode;
10
11
  /** @nullable */
11
12
  detail?: string | null;
12
13
  /** @nullable */
@@ -1,8 +1,2 @@
1
1
  "use strict";
2
- /**
3
- * Generated by orval v7.13.2 🍺
4
- * Do not edit manually.
5
- * SmartSpace Admin API
6
- * OpenAPI spec version: v1
7
- */
8
2
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5057,9 +5057,9 @@ exports.sandBoxGetThreadMessagesResponseItem = zod_1.default.object({
5057
5057
  "createdByUserId": zod_1.default.string(),
5058
5058
  "errors": zod_1.default.array(zod_1.default.object({
5059
5059
  "blockId": zod_1.default.string().nullish(),
5060
- "code": zod_1.default.number(),
5060
+ "code": zod_1.default.number().describe('HTTP status of the failure. For a failure the AI API reported, this can be the AI API\'s own status rather than the one in ErrorCode\'s x-error-code-info.'),
5061
5061
  "data": zod_1.default.any().nullish(),
5062
- "errorCode": zod_1.default.string().nullish(),
5062
+ "errorCode": zod_1.default.string().describe('A machine-readable error code. The set can grow, so treat an unknown code by the response\'s status.').nullish(),
5063
5063
  "message": zod_1.default.string().nullish(),
5064
5064
  "traceId": zod_1.default.string().nullish()
5065
5065
  })),
@@ -5107,9 +5107,9 @@ exports.sandBoxThreadMessagesResponse = zod_1.default.object({
5107
5107
  "createdByUserId": zod_1.default.string(),
5108
5108
  "errors": zod_1.default.array(zod_1.default.object({
5109
5109
  "blockId": zod_1.default.string().nullish(),
5110
- "code": zod_1.default.number(),
5110
+ "code": zod_1.default.number().describe('HTTP status of the failure. For a failure the AI API reported, this can be the AI API\'s own status rather than the one in ErrorCode\'s x-error-code-info.'),
5111
5111
  "data": zod_1.default.any().nullish(),
5112
- "errorCode": zod_1.default.string().nullish(),
5112
+ "errorCode": zod_1.default.string().describe('A machine-readable error code. The set can grow, so treat an unknown code by the response\'s status.').nullish(),
5113
5113
  "message": zod_1.default.string().nullish(),
5114
5114
  "traceId": zod_1.default.string().nullish()
5115
5115
  })),
@@ -5155,9 +5155,9 @@ exports.sandBoxStreamSandboxMessagesResponse = zod_1.default.object({
5155
5155
  "delta": zod_1.default.object({
5156
5156
  "errors": zod_1.default.array(zod_1.default.object({
5157
5157
  "blockId": zod_1.default.string().nullish(),
5158
- "code": zod_1.default.number(),
5158
+ "code": zod_1.default.number().describe('HTTP status of the failure. For a failure the AI API reported, this can be the AI API\'s own status rather than the one in ErrorCode\'s x-error-code-info.'),
5159
5159
  "data": zod_1.default.any().nullish(),
5160
- "errorCode": zod_1.default.string().nullish(),
5160
+ "errorCode": zod_1.default.string().describe('A machine-readable error code. The set can grow, so treat an unknown code by the response\'s status.').nullish(),
5161
5161
  "message": zod_1.default.string().nullish(),
5162
5162
  "traceId": zod_1.default.string().nullish()
5163
5163
  })),
@@ -5179,9 +5179,9 @@ exports.sandBoxStreamSandboxMessagesResponse = zod_1.default.object({
5179
5179
  "createdByUserId": zod_1.default.string(),
5180
5180
  "errors": zod_1.default.array(zod_1.default.object({
5181
5181
  "blockId": zod_1.default.string().nullish(),
5182
- "code": zod_1.default.number(),
5182
+ "code": zod_1.default.number().describe('HTTP status of the failure. For a failure the AI API reported, this can be the AI API\'s own status rather than the one in ErrorCode\'s x-error-code-info.'),
5183
5183
  "data": zod_1.default.any().nullish(),
5184
- "errorCode": zod_1.default.string().nullish(),
5184
+ "errorCode": zod_1.default.string().describe('A machine-readable error code. The set can grow, so treat an unknown code by the response\'s status.').nullish(),
5185
5185
  "message": zod_1.default.string().nullish(),
5186
5186
  "traceId": zod_1.default.string().nullish()
5187
5187
  })),
@@ -5206,9 +5206,9 @@ exports.sandBoxStreamSandboxMessagesResponse = zod_1.default.object({
5206
5206
  "createdByUserId": zod_1.default.string(),
5207
5207
  "errors": zod_1.default.array(zod_1.default.object({
5208
5208
  "blockId": zod_1.default.string().nullish(),
5209
- "code": zod_1.default.number(),
5209
+ "code": zod_1.default.number().describe('HTTP status of the failure. For a failure the AI API reported, this can be the AI API\'s own status rather than the one in ErrorCode\'s x-error-code-info.'),
5210
5210
  "data": zod_1.default.any().nullish(),
5211
- "errorCode": zod_1.default.string().nullish(),
5211
+ "errorCode": zod_1.default.string().describe('A machine-readable error code. The set can grow, so treat an unknown code by the response\'s status.').nullish(),
5212
5212
  "message": zod_1.default.string().nullish(),
5213
5213
  "traceId": zod_1.default.string().nullish()
5214
5214
  })),
@@ -5270,9 +5270,9 @@ exports.sandBoxAddValueToMessageResponse = zod_1.default.object({
5270
5270
  "createdByUserId": zod_1.default.string(),
5271
5271
  "errors": zod_1.default.array(zod_1.default.object({
5272
5272
  "blockId": zod_1.default.string().nullish(),
5273
- "code": zod_1.default.number(),
5273
+ "code": zod_1.default.number().describe('HTTP status of the failure. For a failure the AI API reported, this can be the AI API\'s own status rather than the one in ErrorCode\'s x-error-code-info.'),
5274
5274
  "data": zod_1.default.any().nullish(),
5275
- "errorCode": zod_1.default.string().nullish(),
5275
+ "errorCode": zod_1.default.string().describe('A machine-readable error code. The set can grow, so treat an unknown code by the response\'s status.').nullish(),
5276
5276
  "message": zod_1.default.string().nullish(),
5277
5277
  "traceId": zod_1.default.string().nullish()
5278
5278
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartspace/api-client",
3
- "version": "0.1.0-pr.1415.da24eae",
3
+ "version": "0.1.0-pr.1417.512cbfc",
4
4
  "description": "Generated TypeScript client for SmartSpace APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -53,5 +53,5 @@
53
53
  "url": "https://github.com/Smartspace-ai/Smartspace-app-api.git",
54
54
  "directory": "tools/sdk-package"
55
55
  },
56
- "smartspaceContentHash": "8217d2e63690d087c470ed9361667e85a28cdb9b407183bd8e9a2a4f46999fb5"
56
+ "smartspaceContentHash": "75c34c58a2cc5d4a1a166bef95616fe3ab70f22d37043cfb62026c438393779e"
57
57
  }