at-shared-types 1.1.34 → 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.
@@ -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":";;;;;;;AAAO,IAAM,oBAAoB;AAAA;AAAA,EAE7B,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAChC;","names":[]}
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,10 @@
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
+ export {
8
+ __export
9
+ };
10
+ //# sourceMappingURL=chunk-J5LGTIGS.mjs.map
@@ -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
@@ -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// named bucket type for auto-import\r\nexport type ATDomainDTO = typeof import(\"./domain\");\r\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","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":";;;;;;;;;;;;;;;;;;;;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
- export type ATDomainDTO = typeof import("./domain");
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
@@ -1 +1 @@
1
- {"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../src/domain.ts"],"names":[],"mappings":"AAAA,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,qBAAqB,CAAC;AAGzC,MAAM,MAAM,WAAW,GAAG,cAAc,UAAU,CAAC,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
@@ -1 +1,8 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/domain.ts
4
+ var ATDomainDTO = {};
5
+ export {
6
+ ATDomainDTO
7
+ };
1
8
  //# sourceMappingURL=domain.mjs.map
@@ -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
@@ -1,7 +1,9 @@
1
1
  import {
2
- ATAPIErrorCodeDTO,
2
+ ATAPIErrorCodeDTO
3
+ } from "./chunk-5N6VWLFC.mjs";
4
+ import {
3
5
  __export
4
- } from "./chunk-CML7M53V.mjs";
6
+ } from "./chunk-J5LGTIGS.mjs";
5
7
 
6
8
  // src/casing/index.ts
7
9
  var casing_exports = {};
@@ -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":";;;;;;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":[]}
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":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};
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
@@ -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 type ATTransportDTO = typeof import(\"./transport\");\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":[]}
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":[]}
@@ -1,7 +1,31 @@
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
- export { ATAPIErrorCodeDTO } from "./core/transport/errors";
5
- export type { ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType } from "./core/transport/errors";
6
- export type ATTransportDTO = typeof import("./transport");
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
+ };
14
+ export declare namespace ATTransportDTO {
15
+ type ATAPIErrorCodeDTO = ATAPIErrorCodeDTOType;
16
+ type ResponseSuccessDTO<T> = import("./core/transport/responses").ResponseSuccessDTO<T>;
17
+ type ResponseErrorDTO = import("./core/transport/responses").ResponseErrorDTO;
18
+ type AIChatRequestDTO = import("./ai/transport/chat").AIChatRequestDTO;
19
+ type AIChatResponseDTO = import("./ai/transport/chat").AIChatResponseDTO;
20
+ type AIChatWithIntentRequestDTO = import("./ai/transport/chat").AIChatWithIntentRequestDTO;
21
+ type AIChatWithIntentResponseDTO = import("./ai/transport/chat").AIChatWithIntentResponseDTO;
22
+ type AIChatMessageWireDTO = import("./ai/transport/wire.types").AIChatMessageWireDTO;
23
+ type AIChatOptionsWireDTO = import("./ai/transport/wire.types").AIChatOptionsWireDTO;
24
+ type AIRequestContextWireDTO = import("./ai/transport/wire.types").AIRequestContextWireDTO;
25
+ type AIChatWithIntentOptionsWireDTO = import("./ai/transport/wire.types").AIChatWithIntentOptionsWireDTO;
26
+ type AIIntentWireDTO = import("./ai/transport/wire.types").AIIntentWireDTO;
27
+ type AICapabilityWireDTO = import("./ai/transport/wire.types").AICapabilityWireDTO;
28
+ type AIPageContextWireDTO = import("./ai/transport/wire.types").AIPageContextWireDTO;
29
+ type AISessionConfigWireDTO = import("./ai/transport/wire.types").AISessionConfigWireDTO;
30
+ }
7
31
  //# sourceMappingURL=transport.d.ts.map
@@ -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,E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AAO,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"}
@@ -1,7 +1,14 @@
1
1
  import {
2
2
  ATAPIErrorCodeDTO
3
- } from "./chunk-CML7M53V.mjs";
4
- export {
3
+ } from "./chunk-5N6VWLFC.mjs";
4
+ import "./chunk-J5LGTIGS.mjs";
5
+
6
+ // src/transport.ts
7
+ var ATTransportDTO = {
5
8
  ATAPIErrorCodeDTO
6
9
  };
10
+ export {
11
+ ATAPIErrorCodeDTO,
12
+ ATTransportDTO
13
+ };
7
14
  //# sourceMappingURL=transport.mjs.map
@@ -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":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "at-shared-types",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",
@@ -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