@internxt/sdk 1.13.0 → 1.13.2

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.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './auth';
2
+ export { AppError } from './shared';
2
3
  export * as Drive from './drive';
3
4
  export * as Network from './network';
4
5
  export * as Shared from './shared';
package/dist/index.js CHANGED
@@ -36,8 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Payments = exports.Workspaces = exports.Shared = exports.Network = exports.Drive = void 0;
39
+ exports.Payments = exports.Workspaces = exports.Shared = exports.Network = exports.Drive = exports.AppError = void 0;
40
40
  __exportStar(require("./auth"), exports);
41
+ var shared_1 = require("./shared");
42
+ Object.defineProperty(exports, "AppError", { enumerable: true, get: function () { return shared_1.AppError; } });
41
43
  exports.Drive = __importStar(require("./drive"));
42
44
  exports.Network = __importStar(require("./network"));
43
45
  exports.Shared = __importStar(require("./shared"));
package/dist/schema.d.ts CHANGED
@@ -3155,6 +3155,11 @@ export interface components {
3155
3155
  size: string;
3156
3156
  /** @enum {string} */
3157
3157
  status: 'EXISTS' | 'DELETED';
3158
+ /**
3159
+ * Format: date-time
3160
+ * @description Date when the file was last modified before this version was created
3161
+ */
3162
+ modificationTime: string;
3158
3163
  /** Format: date-time */
3159
3164
  createdAt: string;
3160
3165
  /** Format: date-time */
@@ -1 +1,2 @@
1
1
  export * from './types/apiConnection';
2
+ export { default as AppError } from './types/errors';
@@ -13,5 +13,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
13
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
16
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.AppError = void 0;
17
21
  __exportStar(require("./types/apiConnection"), exports);
22
+ var errors_1 = require("./types/errors");
23
+ Object.defineProperty(exports, "AppError", { enumerable: true, get: function () { return __importDefault(errors_1).default; } });
@@ -2,5 +2,6 @@ export default class AppError extends Error {
2
2
  readonly status?: number;
3
3
  readonly code?: string;
4
4
  readonly headers?: Record<string, string>;
5
+ readonly requestId?: string;
5
6
  constructor(message: string, status?: number, code?: string, headers?: Record<string, string>);
6
7
  }
@@ -22,6 +22,7 @@ var AppError = /** @class */ (function (_super) {
22
22
  _this.status = status;
23
23
  _this.code = code;
24
24
  _this.headers = headers;
25
+ _this.requestId = headers === null || headers === void 0 ? void 0 : headers['x-request-id'];
25
26
  return _this;
26
27
  }
27
28
  return AppError;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@internxt/sdk",
3
3
  "author": "Internxt <hello@internxt.com>",
4
- "version": "1.13.0",
4
+ "version": "1.13.2",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",