at-shared-types 1.1.35 → 1.1.36
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/transport.cjs +9 -2
- package/dist/transport.cjs.map +1 -1
- package/dist/transport.d.ts +11 -2
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.mjs +7 -1
- package/dist/transport.mjs.map +1 -1
- package/package.json +1 -1
package/dist/transport.cjs
CHANGED
|
@@ -20,7 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/transport.ts
|
|
21
21
|
var transport_exports = {};
|
|
22
22
|
__export(transport_exports, {
|
|
23
|
-
ATAPIErrorCodeDTO: () => ATAPIErrorCodeDTO
|
|
23
|
+
ATAPIErrorCodeDTO: () => ATAPIErrorCodeDTO,
|
|
24
|
+
ATTransportDTO: () => ATTransportDTO
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(transport_exports);
|
|
26
27
|
|
|
@@ -31,8 +32,14 @@ var ATAPIErrorCodeDTO = {
|
|
|
31
32
|
AI_SESSION_NOT_FOUND: 4502,
|
|
32
33
|
AI_REQUEST_CONTEXT_MISSING: 4503
|
|
33
34
|
};
|
|
35
|
+
|
|
36
|
+
// src/transport.ts
|
|
37
|
+
var ATTransportDTO = {
|
|
38
|
+
ATAPIErrorCodeDTO
|
|
39
|
+
};
|
|
34
40
|
// Annotate the CommonJS export names for ESM import in node:
|
|
35
41
|
0 && (module.exports = {
|
|
36
|
-
ATAPIErrorCodeDTO
|
|
42
|
+
ATAPIErrorCodeDTO,
|
|
43
|
+
ATTransportDTO
|
|
37
44
|
});
|
|
38
45
|
//# sourceMappingURL=transport.cjs.map
|
package/dist/transport.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/transport.ts","../src/core/transport/errors.ts"],"sourcesContent":["export type * from \"./ai/transport/wire.types\";\r\nexport type * from \"./ai/transport/chat\";\r\nexport type * from \"./core/transport/responses\";\r\n\r\
|
|
1
|
+
{"version":3,"sources":["../src/transport.ts","../src/core/transport/errors.ts"],"sourcesContent":["export type * from \"./ai/transport/wire.types\";\r\nexport type * from \"./ai/transport/chat\";\r\nexport type * from \"./core/transport/responses\";\r\n\r\n// ✅ bring them into scope (value + type)\r\nimport {\r\n ATAPIErrorCodeDTO as ATAPIErrorCodeDTOConst\r\n} from \"./core/transport/errors\";\r\nimport type {\r\n ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType\r\n} from \"./core/transport/errors\";\r\n\r\n// ✅ re-export the runtime value under the public name\r\nexport { ATAPIErrorCodeDTOConst as ATAPIErrorCodeDTO };\r\n\r\n// ✅ runtime bucket object (so ATTransportDTO.ATAPIErrorCodeDTO.<code> works)\r\nexport const ATTransportDTO = {\r\n ATAPIErrorCodeDTO: ATAPIErrorCodeDTOConst\r\n} as const;\r\n\r\n// ✅ type bucket (so ATTransportDTO.ResponseErrorDTO etc works)\r\nexport namespace ATTransportDTO {\r\n // expose the union type (number union)\r\n export type ATAPIErrorCodeDTO = ATAPIErrorCodeDTOType;\r\n\r\n export type ResponseSuccessDTO<T> =\r\n import(\"./core/transport/responses\").ResponseSuccessDTO<T>;\r\n export type ResponseErrorDTO =\r\n import(\"./core/transport/responses\").ResponseErrorDTO;\r\n\r\n export type AIChatRequestDTO =\r\n import(\"./ai/transport/chat\").AIChatRequestDTO;\r\n export type AIChatResponseDTO =\r\n import(\"./ai/transport/chat\").AIChatResponseDTO;\r\n export type AIChatWithIntentRequestDTO =\r\n import(\"./ai/transport/chat\").AIChatWithIntentRequestDTO;\r\n export type AIChatWithIntentResponseDTO =\r\n import(\"./ai/transport/chat\").AIChatWithIntentResponseDTO;\r\n\r\n export type AIChatMessageWireDTO =\r\n import(\"./ai/transport/wire.types\").AIChatMessageWireDTO;\r\n export type AIChatOptionsWireDTO =\r\n import(\"./ai/transport/wire.types\").AIChatOptionsWireDTO;\r\n export type AIRequestContextWireDTO =\r\n import(\"./ai/transport/wire.types\").AIRequestContextWireDTO;\r\n export type AIChatWithIntentOptionsWireDTO =\r\n import(\"./ai/transport/wire.types\").AIChatWithIntentOptionsWireDTO;\r\n\r\n export type AIIntentWireDTO =\r\n import(\"./ai/transport/wire.types\").AIIntentWireDTO;\r\n export type AICapabilityWireDTO =\r\n import(\"./ai/transport/wire.types\").AICapabilityWireDTO;\r\n export type AIPageContextWireDTO =\r\n import(\"./ai/transport/wire.types\").AIPageContextWireDTO;\r\n\r\n export type AISessionConfigWireDTO =\r\n import(\"./ai/transport/wire.types\").AISessionConfigWireDTO;\r\n}\r\n","export const ATAPIErrorCodeDTO = {\r\n // 45xx – AI / workflow\r\n AI_SESSION_EXPIRED: 4501,\r\n AI_SESSION_NOT_FOUND: 4502,\r\n AI_REQUEST_CONTEXT_MISSING: 4503,\r\n} as const;\r\n\r\nexport type ATAPIErrorCodeDTO = typeof ATAPIErrorCodeDTO[keyof typeof ATAPIErrorCodeDTO];"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,oBAAoB;AAAA;AAAA,EAE7B,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAChC;;;ADWO,IAAM,iBAAiB;AAAA,EAC5B;AACF;","names":[]}
|
package/dist/transport.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
export type * from "./ai/transport/wire.types";
|
|
2
2
|
export type * from "./ai/transport/chat";
|
|
3
3
|
export type * from "./core/transport/responses";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { ATAPIErrorCodeDTO as ATAPIErrorCodeDTOConst } from "./core/transport/errors";
|
|
5
|
+
import type { ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType } from "./core/transport/errors";
|
|
6
|
+
export { ATAPIErrorCodeDTOConst as ATAPIErrorCodeDTO };
|
|
7
|
+
export declare const ATTransportDTO: {
|
|
8
|
+
readonly ATAPIErrorCodeDTO: {
|
|
9
|
+
readonly AI_SESSION_EXPIRED: 4501;
|
|
10
|
+
readonly AI_SESSION_NOT_FOUND: 4502;
|
|
11
|
+
readonly AI_REQUEST_CONTEXT_MISSING: 4503;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
6
14
|
export declare namespace ATTransportDTO {
|
|
15
|
+
type ATAPIErrorCodeDTO = ATAPIErrorCodeDTOType;
|
|
7
16
|
type ResponseSuccessDTO<T> = import("./core/transport/responses").ResponseSuccessDTO<T>;
|
|
8
17
|
type ResponseErrorDTO = import("./core/transport/responses").ResponseErrorDTO;
|
|
9
18
|
type AIChatRequestDTO = import("./ai/transport/chat").AIChatRequestDTO;
|
package/dist/transport.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,4BAA4B,CAAC;AAGhD,OAAO,EACL,iBAAiB,IAAI,sBAAsB,EAC5C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,iBAAiB,IAAI,qBAAqB,EAC3C,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,sBAAsB,IAAI,iBAAiB,EAAE,CAAC;AAGvD,eAAO,MAAM,cAAc;;;;;;CAEjB,CAAC;AAGX,yBAAiB,cAAc,CAAC;IAE9B,KAAY,iBAAiB,GAAG,qBAAqB,CAAC;IAEtD,KAAY,kBAAkB,CAAC,CAAC,IAC9B,OAAO,4BAA4B,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC7D,KAAY,gBAAgB,GAC1B,OAAO,4BAA4B,EAAE,gBAAgB,CAAC;IAExD,KAAY,gBAAgB,GAC1B,OAAO,qBAAqB,EAAE,gBAAgB,CAAC;IACjD,KAAY,iBAAiB,GAC3B,OAAO,qBAAqB,EAAE,iBAAiB,CAAC;IAClD,KAAY,0BAA0B,GACpC,OAAO,qBAAqB,EAAE,0BAA0B,CAAC;IAC3D,KAAY,2BAA2B,GACrC,OAAO,qBAAqB,EAAE,2BAA2B,CAAC;IAE5D,KAAY,oBAAoB,GAC9B,OAAO,2BAA2B,EAAE,oBAAoB,CAAC;IAC3D,KAAY,oBAAoB,GAC9B,OAAO,2BAA2B,EAAE,oBAAoB,CAAC;IAC3D,KAAY,uBAAuB,GACjC,OAAO,2BAA2B,EAAE,uBAAuB,CAAC;IAC9D,KAAY,8BAA8B,GACxC,OAAO,2BAA2B,EAAE,8BAA8B,CAAC;IAErE,KAAY,eAAe,GACzB,OAAO,2BAA2B,EAAE,eAAe,CAAC;IACtD,KAAY,mBAAmB,GAC7B,OAAO,2BAA2B,EAAE,mBAAmB,CAAC;IAC1D,KAAY,oBAAoB,GAC9B,OAAO,2BAA2B,EAAE,oBAAoB,CAAC;IAE3D,KAAY,sBAAsB,GAChC,OAAO,2BAA2B,EAAE,sBAAsB,CAAC;CAC9D"}
|
package/dist/transport.mjs
CHANGED
|
@@ -2,7 +2,13 @@ import {
|
|
|
2
2
|
ATAPIErrorCodeDTO
|
|
3
3
|
} from "./chunk-5N6VWLFC.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
// src/transport.ts
|
|
7
|
+
var ATTransportDTO = {
|
|
6
8
|
ATAPIErrorCodeDTO
|
|
7
9
|
};
|
|
10
|
+
export {
|
|
11
|
+
ATAPIErrorCodeDTO,
|
|
12
|
+
ATTransportDTO
|
|
13
|
+
};
|
|
8
14
|
//# sourceMappingURL=transport.mjs.map
|
package/dist/transport.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/transport.ts"],"sourcesContent":["export type * from \"./ai/transport/wire.types\";\r\nexport type * from \"./ai/transport/chat\";\r\nexport type * from \"./core/transport/responses\";\r\n\r\n// ✅ bring them into scope (value + type)\r\nimport {\r\n ATAPIErrorCodeDTO as ATAPIErrorCodeDTOConst\r\n} from \"./core/transport/errors\";\r\nimport type {\r\n ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType\r\n} from \"./core/transport/errors\";\r\n\r\n// ✅ re-export the runtime value under the public name\r\nexport { ATAPIErrorCodeDTOConst as ATAPIErrorCodeDTO };\r\n\r\n// ✅ runtime bucket object (so ATTransportDTO.ATAPIErrorCodeDTO.<code> works)\r\nexport const ATTransportDTO = {\r\n ATAPIErrorCodeDTO: ATAPIErrorCodeDTOConst\r\n} as const;\r\n\r\n// ✅ type bucket (so ATTransportDTO.ResponseErrorDTO etc works)\r\nexport namespace ATTransportDTO {\r\n // expose the union type (number union)\r\n export type ATAPIErrorCodeDTO = ATAPIErrorCodeDTOType;\r\n\r\n export type ResponseSuccessDTO<T> =\r\n import(\"./core/transport/responses\").ResponseSuccessDTO<T>;\r\n export type ResponseErrorDTO =\r\n import(\"./core/transport/responses\").ResponseErrorDTO;\r\n\r\n export type AIChatRequestDTO =\r\n import(\"./ai/transport/chat\").AIChatRequestDTO;\r\n export type AIChatResponseDTO =\r\n import(\"./ai/transport/chat\").AIChatResponseDTO;\r\n export type AIChatWithIntentRequestDTO =\r\n import(\"./ai/transport/chat\").AIChatWithIntentRequestDTO;\r\n export type AIChatWithIntentResponseDTO =\r\n import(\"./ai/transport/chat\").AIChatWithIntentResponseDTO;\r\n\r\n export type AIChatMessageWireDTO =\r\n import(\"./ai/transport/wire.types\").AIChatMessageWireDTO;\r\n export type AIChatOptionsWireDTO =\r\n import(\"./ai/transport/wire.types\").AIChatOptionsWireDTO;\r\n export type AIRequestContextWireDTO =\r\n import(\"./ai/transport/wire.types\").AIRequestContextWireDTO;\r\n export type AIChatWithIntentOptionsWireDTO =\r\n import(\"./ai/transport/wire.types\").AIChatWithIntentOptionsWireDTO;\r\n\r\n export type AIIntentWireDTO =\r\n import(\"./ai/transport/wire.types\").AIIntentWireDTO;\r\n export type AICapabilityWireDTO =\r\n import(\"./ai/transport/wire.types\").AICapabilityWireDTO;\r\n export type AIPageContextWireDTO =\r\n import(\"./ai/transport/wire.types\").AIPageContextWireDTO;\r\n\r\n export type AISessionConfigWireDTO =\r\n import(\"./ai/transport/wire.types\").AISessionConfigWireDTO;\r\n}\r\n"],"mappings":";;;;;;AAgBO,IAAM,iBAAiB;AAAA,EAC5B;AACF;","names":[]}
|