at-shared-types 1.1.34 → 1.1.35
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/chunk-5N6VWLFC.mjs +12 -0
- package/dist/{chunk-CML7M53V.mjs.map → chunk-5N6VWLFC.mjs.map} +1 -1
- package/dist/chunk-J5LGTIGS.mjs +10 -0
- package/dist/chunk-J5LGTIGS.mjs.map +1 -0
- package/dist/domain.cjs +12 -0
- package/dist/domain.cjs.map +1 -1
- package/dist/domain.d.ts +23 -1
- package/dist/domain.d.ts.map +1 -1
- package/dist/domain.mjs +7 -0
- package/dist/domain.mjs.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/transport.cjs.map +1 -1
- package/dist/transport.d.ts +16 -1
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.mjs +2 -1
- package/package.json +1 -1
- package/dist/chunk-CML7M53V.mjs +0 -19
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/core/transport/errors.ts
|
|
2
|
+
var ATAPIErrorCodeDTO = {
|
|
3
|
+
// 45xx – AI / workflow
|
|
4
|
+
AI_SESSION_EXPIRED: 4501,
|
|
5
|
+
AI_SESSION_NOT_FOUND: 4502,
|
|
6
|
+
AI_REQUEST_CONTEXT_MISSING: 4503
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
ATAPIErrorCodeDTO
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=chunk-5N6VWLFC.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/transport/errors.ts"],"sourcesContent":["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":"
|
|
1
|
+
{"version":3,"sources":["../src/core/transport/errors.ts"],"sourcesContent":["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":";AAAO,IAAM,oBAAoB;AAAA;AAAA,EAE7B,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAChC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/domain.cjs
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,5 +19,13 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
19
|
|
|
16
20
|
// src/domain.ts
|
|
17
21
|
var domain_exports = {};
|
|
22
|
+
__export(domain_exports, {
|
|
23
|
+
ATDomainDTO: () => ATDomainDTO
|
|
24
|
+
});
|
|
18
25
|
module.exports = __toCommonJS(domain_exports);
|
|
26
|
+
var ATDomainDTO = {};
|
|
27
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
28
|
+
0 && (module.exports = {
|
|
29
|
+
ATDomainDTO
|
|
30
|
+
});
|
|
19
31
|
//# sourceMappingURL=domain.cjs.map
|
package/dist/domain.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/domain.ts"],"sourcesContent":["export type * from \"./ai/domain/engine\";\r\nexport type * from \"./ai/domain/session\";\r\n\r\n
|
|
1
|
+
{"version":3,"sources":["../src/domain.ts"],"sourcesContent":["export type * from \"./ai/domain/engine\";\r\nexport type * from \"./ai/domain/session\";\r\n\r\n/**\r\n * Runtime value so consumers can use:\r\n * import { ATDomainDTO } from \"at-shared-types/domain\";\r\n * ATDomainDTO.<autocomplete>\r\n */\r\nexport const ATDomainDTO = {} as const;\r\n\r\n/**\r\n * Merge types into the runtime value for dot-access.\r\n * This is emitted correctly by tsc (not tsup dts bundler).\r\n */\r\nexport namespace ATDomainDTO {\r\n export type ATChatMessageContentDTO =\r\n import(\"./ai/domain/engine\").ATChatMessageContentDTO;\r\n\r\n export type AIChatMessageDTO =\r\n import(\"./ai/domain/engine\").AIChatMessageDTO;\r\n\r\n export type AIChatOptionsResponseFormatDTO =\r\n import(\"./ai/domain/engine\").AIChatOptionsResponseFormatDTO;\r\n\r\n export type AIRequestContextDTO =\r\n import(\"./ai/domain/engine\").AIRequestContextDTO;\r\n\r\n export type AIChatOptionsDTO =\r\n import(\"./ai/domain/engine\").AIChatOptionsDTO;\r\n\r\n export type AIIntentDTO =\r\n import(\"./ai/domain/engine\").AIIntentDTO;\r\n\r\n export type AICapabilityDTO =\r\n import(\"./ai/domain/engine\").AICapabilityDTO;\r\n\r\n export type AIPageContextDTO =\r\n import(\"./ai/domain/engine\").AIPageContextDTO;\r\n\r\n export type AIChatWithIntentOptionsDTO =\r\n import(\"./ai/domain/engine\").AIChatWithIntentOptionsDTO;\r\n\r\n export type AIPromptRoleDTO =\r\n import(\"./ai/domain/session\").AIPromptRoleDTO;\r\n\r\n export type AISessionConfigDTO =\r\n import(\"./ai/domain/session\").AISessionConfigDTO;\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,IAAM,cAAc,CAAC;","names":[]}
|
package/dist/domain.d.ts
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
export type * from "./ai/domain/engine";
|
|
2
2
|
export type * from "./ai/domain/session";
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Runtime value so consumers can use:
|
|
5
|
+
* import { ATDomainDTO } from "at-shared-types/domain";
|
|
6
|
+
* ATDomainDTO.<autocomplete>
|
|
7
|
+
*/
|
|
8
|
+
export declare const ATDomainDTO: {};
|
|
9
|
+
/**
|
|
10
|
+
* Merge types into the runtime value for dot-access.
|
|
11
|
+
* This is emitted correctly by tsc (not tsup dts bundler).
|
|
12
|
+
*/
|
|
13
|
+
export declare namespace ATDomainDTO {
|
|
14
|
+
type ATChatMessageContentDTO = import("./ai/domain/engine").ATChatMessageContentDTO;
|
|
15
|
+
type AIChatMessageDTO = import("./ai/domain/engine").AIChatMessageDTO;
|
|
16
|
+
type AIChatOptionsResponseFormatDTO = import("./ai/domain/engine").AIChatOptionsResponseFormatDTO;
|
|
17
|
+
type AIRequestContextDTO = import("./ai/domain/engine").AIRequestContextDTO;
|
|
18
|
+
type AIChatOptionsDTO = import("./ai/domain/engine").AIChatOptionsDTO;
|
|
19
|
+
type AIIntentDTO = import("./ai/domain/engine").AIIntentDTO;
|
|
20
|
+
type AICapabilityDTO = import("./ai/domain/engine").AICapabilityDTO;
|
|
21
|
+
type AIPageContextDTO = import("./ai/domain/engine").AIPageContextDTO;
|
|
22
|
+
type AIChatWithIntentOptionsDTO = import("./ai/domain/engine").AIChatWithIntentOptionsDTO;
|
|
23
|
+
type AIPromptRoleDTO = import("./ai/domain/session").AIPromptRoleDTO;
|
|
24
|
+
type AISessionConfigDTO = import("./ai/domain/session").AISessionConfigDTO;
|
|
25
|
+
}
|
|
4
26
|
//# sourceMappingURL=domain.d.ts.map
|
package/dist/domain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../src/domain.ts"],"names":[],"mappings":"AAAA,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../src/domain.ts"],"names":[],"mappings":"AAAA,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,qBAAqB,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,WAAW,IAAc,CAAC;AAEvC;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IACzB,KAAY,uBAAuB,GAC/B,OAAO,oBAAoB,EAAE,uBAAuB,CAAC;IAEzD,KAAY,gBAAgB,GACxB,OAAO,oBAAoB,EAAE,gBAAgB,CAAC;IAElD,KAAY,8BAA8B,GACtC,OAAO,oBAAoB,EAAE,8BAA8B,CAAC;IAEhE,KAAY,mBAAmB,GAC3B,OAAO,oBAAoB,EAAE,mBAAmB,CAAC;IAErD,KAAY,gBAAgB,GACxB,OAAO,oBAAoB,EAAE,gBAAgB,CAAC;IAElD,KAAY,WAAW,GACnB,OAAO,oBAAoB,EAAE,WAAW,CAAC;IAE7C,KAAY,eAAe,GACvB,OAAO,oBAAoB,EAAE,eAAe,CAAC;IAEjD,KAAY,gBAAgB,GACxB,OAAO,oBAAoB,EAAE,gBAAgB,CAAC;IAElD,KAAY,0BAA0B,GAClC,OAAO,oBAAoB,EAAE,0BAA0B,CAAC;IAE5D,KAAY,eAAe,GACvB,OAAO,qBAAqB,EAAE,eAAe,CAAC;IAElD,KAAY,kBAAkB,GAC1B,OAAO,qBAAqB,EAAE,kBAAkB,CAAC;CACxD"}
|
package/dist/domain.mjs
CHANGED
package/dist/domain.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/domain.ts"],"sourcesContent":["export type * from \"./ai/domain/engine\";\r\nexport type * from \"./ai/domain/session\";\r\n\r\n/**\r\n * Runtime value so consumers can use:\r\n * import { ATDomainDTO } from \"at-shared-types/domain\";\r\n * ATDomainDTO.<autocomplete>\r\n */\r\nexport const ATDomainDTO = {} as const;\r\n\r\n/**\r\n * Merge types into the runtime value for dot-access.\r\n * This is emitted correctly by tsc (not tsup dts bundler).\r\n */\r\nexport namespace ATDomainDTO {\r\n export type ATChatMessageContentDTO =\r\n import(\"./ai/domain/engine\").ATChatMessageContentDTO;\r\n\r\n export type AIChatMessageDTO =\r\n import(\"./ai/domain/engine\").AIChatMessageDTO;\r\n\r\n export type AIChatOptionsResponseFormatDTO =\r\n import(\"./ai/domain/engine\").AIChatOptionsResponseFormatDTO;\r\n\r\n export type AIRequestContextDTO =\r\n import(\"./ai/domain/engine\").AIRequestContextDTO;\r\n\r\n export type AIChatOptionsDTO =\r\n import(\"./ai/domain/engine\").AIChatOptionsDTO;\r\n\r\n export type AIIntentDTO =\r\n import(\"./ai/domain/engine\").AIIntentDTO;\r\n\r\n export type AICapabilityDTO =\r\n import(\"./ai/domain/engine\").AICapabilityDTO;\r\n\r\n export type AIPageContextDTO =\r\n import(\"./ai/domain/engine\").AIPageContextDTO;\r\n\r\n export type AIChatWithIntentOptionsDTO =\r\n import(\"./ai/domain/engine\").AIChatWithIntentOptionsDTO;\r\n\r\n export type AIPromptRoleDTO =\r\n import(\"./ai/domain/session\").AIPromptRoleDTO;\r\n\r\n export type AISessionConfigDTO =\r\n import(\"./ai/domain/session\").AISessionConfigDTO;\r\n}\r\n"],"mappings":";;;AAQO,IAAM,cAAc,CAAC;","names":[]}
|
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/casing/index.ts","../src/casing/case.types.ts","../src/casing/case.runtime.ts"],"sourcesContent":["// src/casing/index.ts\r\nexport * from \"./case.types\";\r\nexport * from \"./case.runtime\";\r\n\r\n// (optional) if you still like namespaces, keep them too:\r\nimport * as Types from \"./case.types\";\r\nimport * as Runtime from \"./case.runtime\";\r\nexport { Types, Runtime };\r\n","export type SnakeCase<S extends string> =\r\n S extends `${infer H}${infer T}`\r\n ? T extends Uncapitalize<T>\r\n ? `${Lowercase<H>}${SnakeCase<T>}`\r\n : `${Lowercase<H>}_${SnakeCase<Uncapitalize<T>>}`\r\n : S;\r\n\r\nexport type CamelCase<S extends string> =\r\n S extends `${infer A}_${infer B}`\r\n ? `${A}${Capitalize<CamelCase<B>>}`\r\n : S;\r\n\r\ntype Primitive = string | number | boolean | bigint | symbol | null | undefined;\r\ntype Builtin = Primitive | Date | RegExp | Error;\r\n\r\nexport type DeepSnakeKeys<T> =\r\n T extends Builtin ? T :\r\n T extends (...args: any[]) => any ? T :\r\n T extends readonly [any, ...any[]]\r\n ? { [I in keyof T]: DeepSnakeKeys<T[I]> } :\r\n T extends ReadonlyArray<infer U>\r\n ? ReadonlyArray<DeepSnakeKeys<U>> :\r\n T extends Map<infer K, infer V>\r\n ? Map<DeepSnakeKeys<K>, DeepSnakeKeys<V>> :\r\n T extends Set<infer U>\r\n ? Set<DeepSnakeKeys<U>> :\r\n T extends object\r\n ? { [K in keyof T as K extends string ? SnakeCase<K> : K]: DeepSnakeKeys<T[K]> }\r\n : T;\r\n\r\nexport type DeepCamelKeys<T> =\r\n T extends Builtin ? T :\r\n T extends (...args: any[]) => any ? T :\r\n T extends readonly [any, ...any[]]\r\n ? { [I in keyof T]: DeepCamelKeys<T[I]> } :\r\n T extends ReadonlyArray<infer U>\r\n ? ReadonlyArray<DeepCamelKeys<U>> :\r\n T extends Map<infer K, infer V>\r\n ? Map<DeepCamelKeys<K>, DeepCamelKeys<V>> :\r\n T extends Set<infer U>\r\n ? Set<DeepCamelKeys<U>> :\r\n T extends object\r\n ? { [K in keyof T as K extends string ? CamelCase<K> : K]: DeepCamelKeys<T[K]> }\r\n : T;\r\n","const CAMEL_TO_SNAKE = /[A-Z]/g;\r\nconst SNAKE_TO_CAMEL = /_([a-z])/g;\r\n\r\nexport const toSnakeKey = (k: string) =>\r\n k.replace(CAMEL_TO_SNAKE, m => `_${m.toLowerCase()}`);\r\n\r\nexport const toCamelKey = (k: string) =>\r\n k.replace(SNAKE_TO_CAMEL, (_, c) => c.toUpperCase());\r\n\r\nexport function toSnakeDeep<T>(value: T, exceptions = new Set<string>()): any {\r\n if (Array.isArray(value)) return value.map(v => toSnakeDeep(v, exceptions));\r\n if (value instanceof Date) return value;\r\n if (value && typeof value === \"object\") {\r\n const out: Record<string, any> = {};\r\n for (const [k, v] of Object.entries(value as any)) {\r\n const nk = exceptions.has(k) ? k : toSnakeKey(k);\r\n out[nk] = toSnakeDeep(v, exceptions);\r\n }\r\n return out;\r\n }\r\n return value;\r\n}\r\n\r\nexport function toCamelDeep<T>(value: T): any {\r\n if (Array.isArray(value)) return value.map(toCamelDeep);\r\n if (value instanceof Date) return value;\r\n if (value && typeof value === \"object\") {\r\n const out: Record<string, any> = {};\r\n for (const [k, v] of Object.entries(value as any)) {\r\n out[toCamelKey(k)] = toCamelDeep(v);\r\n }\r\n return out;\r\n }\r\n return value;\r\n}\r\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/casing/index.ts","../src/casing/case.types.ts","../src/casing/case.runtime.ts"],"sourcesContent":["// src/casing/index.ts\r\nexport * from \"./case.types\";\r\nexport * from \"./case.runtime\";\r\n\r\n// (optional) if you still like namespaces, keep them too:\r\nimport * as Types from \"./case.types\";\r\nimport * as Runtime from \"./case.runtime\";\r\nexport { Types, Runtime };\r\n","export type SnakeCase<S extends string> =\r\n S extends `${infer H}${infer T}`\r\n ? T extends Uncapitalize<T>\r\n ? `${Lowercase<H>}${SnakeCase<T>}`\r\n : `${Lowercase<H>}_${SnakeCase<Uncapitalize<T>>}`\r\n : S;\r\n\r\nexport type CamelCase<S extends string> =\r\n S extends `${infer A}_${infer B}`\r\n ? `${A}${Capitalize<CamelCase<B>>}`\r\n : S;\r\n\r\ntype Primitive = string | number | boolean | bigint | symbol | null | undefined;\r\ntype Builtin = Primitive | Date | RegExp | Error;\r\n\r\nexport type DeepSnakeKeys<T> =\r\n T extends Builtin ? T :\r\n T extends (...args: any[]) => any ? T :\r\n T extends readonly [any, ...any[]]\r\n ? { [I in keyof T]: DeepSnakeKeys<T[I]> } :\r\n T extends ReadonlyArray<infer U>\r\n ? ReadonlyArray<DeepSnakeKeys<U>> :\r\n T extends Map<infer K, infer V>\r\n ? Map<DeepSnakeKeys<K>, DeepSnakeKeys<V>> :\r\n T extends Set<infer U>\r\n ? Set<DeepSnakeKeys<U>> :\r\n T extends object\r\n ? { [K in keyof T as K extends string ? SnakeCase<K> : K]: DeepSnakeKeys<T[K]> }\r\n : T;\r\n\r\nexport type DeepCamelKeys<T> =\r\n T extends Builtin ? T :\r\n T extends (...args: any[]) => any ? T :\r\n T extends readonly [any, ...any[]]\r\n ? { [I in keyof T]: DeepCamelKeys<T[I]> } :\r\n T extends ReadonlyArray<infer U>\r\n ? ReadonlyArray<DeepCamelKeys<U>> :\r\n T extends Map<infer K, infer V>\r\n ? Map<DeepCamelKeys<K>, DeepCamelKeys<V>> :\r\n T extends Set<infer U>\r\n ? Set<DeepCamelKeys<U>> :\r\n T extends object\r\n ? { [K in keyof T as K extends string ? CamelCase<K> : K]: DeepCamelKeys<T[K]> }\r\n : T;\r\n","const CAMEL_TO_SNAKE = /[A-Z]/g;\r\nconst SNAKE_TO_CAMEL = /_([a-z])/g;\r\n\r\nexport const toSnakeKey = (k: string) =>\r\n k.replace(CAMEL_TO_SNAKE, m => `_${m.toLowerCase()}`);\r\n\r\nexport const toCamelKey = (k: string) =>\r\n k.replace(SNAKE_TO_CAMEL, (_, c) => c.toUpperCase());\r\n\r\nexport function toSnakeDeep<T>(value: T, exceptions = new Set<string>()): any {\r\n if (Array.isArray(value)) return value.map(v => toSnakeDeep(v, exceptions));\r\n if (value instanceof Date) return value;\r\n if (value && typeof value === \"object\") {\r\n const out: Record<string, any> = {};\r\n for (const [k, v] of Object.entries(value as any)) {\r\n const nk = exceptions.has(k) ? k : toSnakeKey(k);\r\n out[nk] = toSnakeDeep(v, exceptions);\r\n }\r\n return out;\r\n }\r\n return value;\r\n}\r\n\r\nexport function toCamelDeep<T>(value: T): any {\r\n if (Array.isArray(value)) return value.map(toCamelDeep);\r\n if (value instanceof Date) return value;\r\n if (value && typeof value === \"object\") {\r\n const out: Record<string, any> = {};\r\n for (const [k, v] of Object.entries(value as any)) {\r\n out[toCamelKey(k)] = toCamelDeep(v);\r\n }\r\n return out;\r\n }\r\n return value;\r\n}\r\n"],"mappings":";;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAM,iBAAiB;AACvB,IAAM,iBAAiB;AAEhB,IAAM,aAAa,CAAC,MACvB,EAAE,QAAQ,gBAAgB,OAAK,IAAI,EAAE,YAAY,CAAC,EAAE;AAEjD,IAAM,aAAa,CAAC,MACvB,EAAE,QAAQ,gBAAgB,CAAC,GAAG,MAAM,EAAE,YAAY,CAAC;AAEhD,SAAS,YAAe,OAAU,aAAa,oBAAI,IAAY,GAAQ;AAC1E,MAAI,MAAM,QAAQ,KAAK,EAAG,QAAO,MAAM,IAAI,OAAK,YAAY,GAAG,UAAU,CAAC;AAC1E,MAAI,iBAAiB,KAAM,QAAO;AAClC,MAAI,SAAS,OAAO,UAAU,UAAU;AACpC,UAAM,MAA2B,CAAC;AAClC,eAAW,CAAC,GAAG,CAAC,KAAK,OAAO,QAAQ,KAAY,GAAG;AAC/C,YAAM,KAAK,WAAW,IAAI,CAAC,IAAI,IAAI,WAAW,CAAC;AAC/C,UAAI,EAAE,IAAI,YAAY,GAAG,UAAU;AAAA,IACvC;AACA,WAAO;AAAA,EACX;AACA,SAAO;AACX;AAEO,SAAS,YAAe,OAAe;AAC1C,MAAI,MAAM,QAAQ,KAAK,EAAG,QAAO,MAAM,IAAI,WAAW;AACtD,MAAI,iBAAiB,KAAM,QAAO;AAClC,MAAI,SAAS,OAAO,UAAU,UAAU;AACpC,UAAM,MAA2B,CAAC;AAClC,eAAW,CAAC,GAAG,CAAC,KAAK,OAAO,QAAQ,KAAY,GAAG;AAC/C,UAAI,WAAW,CAAC,CAAC,IAAI,YAAY,CAAC;AAAA,IACtC;AACA,WAAO;AAAA,EACX;AACA,SAAO;AACX;","names":[]}
|
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\nexport { ATAPIErrorCodeDTO } from \"./core/transport/errors\";\r\nexport type { ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType } from \"./core/transport/errors\";\r\n\r\nexport
|
|
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\nexport { ATAPIErrorCodeDTO } from \"./core/transport/errors\";\r\nexport type { ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType } from \"./core/transport/errors\";\r\n\r\nexport namespace ATTransportDTO {\r\n export type ResponseSuccessDTO<T> =\r\n import(\"./core/transport/responses\").ResponseSuccessDTO<T>;\r\n\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\r\n export type AIChatResponseDTO =\r\n import(\"./ai/transport/chat\").AIChatResponseDTO;\r\n\r\n export type AIChatWithIntentRequestDTO =\r\n import(\"./ai/transport/chat\").AIChatWithIntentRequestDTO;\r\n\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\r\n export type AIChatOptionsWireDTO =\r\n import(\"./ai/transport/wire.types\").AIChatOptionsWireDTO;\r\n\r\n export type AIRequestContextWireDTO =\r\n import(\"./ai/transport/wire.types\").AIRequestContextWireDTO;\r\n\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\r\n export type AICapabilityWireDTO =\r\n import(\"./ai/transport/wire.types\").AICapabilityWireDTO;\r\n\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;;;ACAO,IAAM,oBAAoB;AAAA;AAAA,EAE7B,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAChC;","names":[]}
|
package/dist/transport.d.ts
CHANGED
|
@@ -3,5 +3,20 @@ export type * from "./ai/transport/chat";
|
|
|
3
3
|
export type * from "./core/transport/responses";
|
|
4
4
|
export { ATAPIErrorCodeDTO } from "./core/transport/errors";
|
|
5
5
|
export type { ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType } from "./core/transport/errors";
|
|
6
|
-
export
|
|
6
|
+
export declare namespace ATTransportDTO {
|
|
7
|
+
type ResponseSuccessDTO<T> = import("./core/transport/responses").ResponseSuccessDTO<T>;
|
|
8
|
+
type ResponseErrorDTO = import("./core/transport/responses").ResponseErrorDTO;
|
|
9
|
+
type AIChatRequestDTO = import("./ai/transport/chat").AIChatRequestDTO;
|
|
10
|
+
type AIChatResponseDTO = import("./ai/transport/chat").AIChatResponseDTO;
|
|
11
|
+
type AIChatWithIntentRequestDTO = import("./ai/transport/chat").AIChatWithIntentRequestDTO;
|
|
12
|
+
type AIChatWithIntentResponseDTO = import("./ai/transport/chat").AIChatWithIntentResponseDTO;
|
|
13
|
+
type AIChatMessageWireDTO = import("./ai/transport/wire.types").AIChatMessageWireDTO;
|
|
14
|
+
type AIChatOptionsWireDTO = import("./ai/transport/wire.types").AIChatOptionsWireDTO;
|
|
15
|
+
type AIRequestContextWireDTO = import("./ai/transport/wire.types").AIRequestContextWireDTO;
|
|
16
|
+
type AIChatWithIntentOptionsWireDTO = import("./ai/transport/wire.types").AIChatWithIntentOptionsWireDTO;
|
|
17
|
+
type AIIntentWireDTO = import("./ai/transport/wire.types").AIIntentWireDTO;
|
|
18
|
+
type AICapabilityWireDTO = import("./ai/transport/wire.types").AICapabilityWireDTO;
|
|
19
|
+
type AIPageContextWireDTO = import("./ai/transport/wire.types").AIPageContextWireDTO;
|
|
20
|
+
type AISessionConfigWireDTO = import("./ai/transport/wire.types").AISessionConfigWireDTO;
|
|
21
|
+
}
|
|
7
22
|
//# sourceMappingURL=transport.d.ts.map
|
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;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,
|
|
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;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAE1F,yBAAiB,cAAc,CAAC;IAC9B,KAAY,kBAAkB,CAAC,CAAC,IAC9B,OAAO,4BAA4B,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAE7D,KAAY,gBAAgB,GAC1B,OAAO,4BAA4B,EAAE,gBAAgB,CAAC;IAExD,KAAY,gBAAgB,GAC1B,OAAO,qBAAqB,EAAE,gBAAgB,CAAC;IAEjD,KAAY,iBAAiB,GAC3B,OAAO,qBAAqB,EAAE,iBAAiB,CAAC;IAElD,KAAY,0BAA0B,GACpC,OAAO,qBAAqB,EAAE,0BAA0B,CAAC;IAE3D,KAAY,2BAA2B,GACrC,OAAO,qBAAqB,EAAE,2BAA2B,CAAC;IAE5D,KAAY,oBAAoB,GAC9B,OAAO,2BAA2B,EAAE,oBAAoB,CAAC;IAE3D,KAAY,oBAAoB,GAC9B,OAAO,2BAA2B,EAAE,oBAAoB,CAAC;IAE3D,KAAY,uBAAuB,GACjC,OAAO,2BAA2B,EAAE,uBAAuB,CAAC;IAE9D,KAAY,8BAA8B,GACxC,OAAO,2BAA2B,EAAE,8BAA8B,CAAC;IAErE,KAAY,eAAe,GACzB,OAAO,2BAA2B,EAAE,eAAe,CAAC;IAEtD,KAAY,mBAAmB,GAC7B,OAAO,2BAA2B,EAAE,mBAAmB,CAAC;IAE1D,KAAY,oBAAoB,GAC9B,OAAO,2BAA2B,EAAE,oBAAoB,CAAC;IAE3D,KAAY,sBAAsB,GAChC,OAAO,2BAA2B,EAAE,sBAAsB,CAAC;CAC9D"}
|
package/dist/transport.mjs
CHANGED
package/package.json
CHANGED
package/dist/chunk-CML7M53V.mjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __export = (target, all) => {
|
|
3
|
-
for (var name in all)
|
|
4
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
// src/core/transport/errors.ts
|
|
8
|
-
var ATAPIErrorCodeDTO = {
|
|
9
|
-
// 45xx – AI / workflow
|
|
10
|
-
AI_SESSION_EXPIRED: 4501,
|
|
11
|
-
AI_SESSION_NOT_FOUND: 4502,
|
|
12
|
-
AI_REQUEST_CONTEXT_MISSING: 4503
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
|
-
__export,
|
|
17
|
-
ATAPIErrorCodeDTO
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=chunk-CML7M53V.mjs.map
|