at-shared-types 1.1.36 → 1.1.38

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.
@@ -1,3 +1,4 @@
1
+ import * as Protocol from "./protocol";
1
2
  import * as Transport from "./transport";
2
- export { Transport };
3
+ export { Protocol, Transport };
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const ATAPIErrorCodeMap: {
2
+ readonly AI_SESSION_EXPIRED: 4501;
3
+ readonly AI_SESSION_NOT_FOUND: 4502;
4
+ readonly AI_REQUEST_CONTEXT_MISSING: 4503;
5
+ };
6
+ export type ATAPIErrorCode = typeof ATAPIErrorCodeMap[keyof typeof ATAPIErrorCodeMap];
7
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/core/protocol/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./errors";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/protocol/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,3 +1,2 @@
1
1
  export * from "./responses";
2
- export * from "./errors";
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/transport/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/transport/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
package/dist/index.cjs CHANGED
@@ -20,7 +20,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var src_exports = {};
22
22
  __export(src_exports, {
23
- ATAPIErrorCodeDTO: () => ATAPIErrorCodeDTO,
24
23
  Casing: () => casing_exports
25
24
  });
26
25
  module.exports = __toCommonJS(src_exports);
@@ -76,17 +75,8 @@ function toCamelDeep(value) {
76
75
  }
77
76
  return value;
78
77
  }
79
-
80
- // src/core/transport/errors.ts
81
- var ATAPIErrorCodeDTO = {
82
- // 45xx – AI / workflow
83
- AI_SESSION_EXPIRED: 4501,
84
- AI_SESSION_NOT_FOUND: 4502,
85
- AI_REQUEST_CONTEXT_MISSING: 4503
86
- };
87
78
  // Annotate the CommonJS export names for ESM import in node:
88
79
  0 && (module.exports = {
89
- ATAPIErrorCodeDTO,
90
80
  Casing
91
81
  });
92
82
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/casing/index.ts","../src/casing/case.types.ts","../src/casing/case.runtime.ts","../src/core/transport/errors.ts"],"sourcesContent":["export * as Casing from \"./casing\";\r\n\r\n// optional: re-export runtime things people commonly use\r\nexport { ATAPIErrorCodeDTO } from \"./core/transport/errors\";\r\nexport type { ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType } from \"./core/transport/errors\";\r\n","// 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","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;;;ACAA;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;;;AClCO,IAAM,oBAAoB;AAAA;AAAA,EAE7B,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAChC;","names":[]}
1
+ {"version":3,"sources":["../src/index.ts","../src/casing/index.ts","../src/casing/case.types.ts","../src/casing/case.runtime.ts"],"sourcesContent":["export * as Casing from \"./casing\";\r\n\r\n","// 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;;;ACAA;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/index.d.ts CHANGED
@@ -1,4 +1,2 @@
1
1
  export * as Casing from "./casing";
2
- export { ATAPIErrorCodeDTO } from "./core/transport/errors";
3
- export type { ATAPIErrorCodeDTO as ATAPIErrorCodeDTOType } from "./core/transport/errors";
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAGnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,iBAAiB,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
package/dist/index.mjs CHANGED
@@ -1,6 +1,3 @@
1
- import {
2
- ATAPIErrorCodeDTO
3
- } from "./chunk-5N6VWLFC.mjs";
4
1
  import {
5
2
  __export
6
3
  } from "./chunk-J5LGTIGS.mjs";
@@ -57,7 +54,6 @@ function toCamelDeep(value) {
57
54
  return value;
58
55
  }
59
56
  export {
60
- ATAPIErrorCodeDTO,
61
57
  casing_exports as Casing
62
58
  };
63
59
  //# sourceMappingURL=index.mjs.map
@@ -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":";;;;;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":[]}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
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
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/protocol.ts
21
+ var protocol_exports = {};
22
+ __export(protocol_exports, {
23
+ ATAPIErrorCodeMap: () => ATAPIErrorCodeMap,
24
+ ATProtocol: () => ATProtocol
25
+ });
26
+ module.exports = __toCommonJS(protocol_exports);
27
+
28
+ // src/core/protocol/errors.ts
29
+ var ATAPIErrorCodeMap = {
30
+ AI_SESSION_EXPIRED: 4501,
31
+ AI_SESSION_NOT_FOUND: 4502,
32
+ AI_REQUEST_CONTEXT_MISSING: 4503
33
+ };
34
+
35
+ // src/protocol.ts
36
+ var ATProtocol = { ATAPIErrorCodeMap };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ ATAPIErrorCodeMap,
40
+ ATProtocol
41
+ });
42
+ //# sourceMappingURL=protocol.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/protocol.ts","../src/core/protocol/errors.ts"],"sourcesContent":["export * from \"./core/protocol/errors\";\r\n\r\nimport { ATAPIErrorCodeMap } from \"./core/protocol/errors\";\r\n\r\nexport const ATProtocol = { ATAPIErrorCodeMap } as const;\r\n\r\nexport namespace ATProtocol {\r\n export type ATAPIErrorCode =\r\n import(\"./core/protocol/errors\").ATAPIErrorCode;\r\n}\r\n","export const ATAPIErrorCodeMap = {\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 ATAPIErrorCode = typeof ATAPIErrorCodeMap[keyof typeof ATAPIErrorCodeMap];\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,oBAAoB;AAAA,EAC7B,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAChC;;;ADAO,IAAM,aAAa,EAAE,kBAAkB;","names":[]}
@@ -0,0 +1,12 @@
1
+ export * from "./core/protocol/errors";
2
+ export declare const ATProtocol: {
3
+ readonly ATAPIErrorCodeMap: {
4
+ readonly AI_SESSION_EXPIRED: 4501;
5
+ readonly AI_SESSION_NOT_FOUND: 4502;
6
+ readonly AI_REQUEST_CONTEXT_MISSING: 4503;
7
+ };
8
+ };
9
+ export declare namespace ATProtocol {
10
+ type ATAPIErrorCode = import("./core/protocol/errors").ATAPIErrorCode;
11
+ }
12
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AAIvC,eAAO,MAAM,UAAU;;;;;;CAAiC,CAAC;AAEzD,yBAAiB,UAAU,CAAC;IACxB,KAAY,cAAc,GACtB,OAAO,wBAAwB,EAAE,cAAc,CAAC;CACvD"}
@@ -0,0 +1,16 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/core/protocol/errors.ts
4
+ var ATAPIErrorCodeMap = {
5
+ AI_SESSION_EXPIRED: 4501,
6
+ AI_SESSION_NOT_FOUND: 4502,
7
+ AI_REQUEST_CONTEXT_MISSING: 4503
8
+ };
9
+
10
+ // src/protocol.ts
11
+ var ATProtocol = { ATAPIErrorCodeMap };
12
+ export {
13
+ ATAPIErrorCodeMap,
14
+ ATProtocol
15
+ };
16
+ //# sourceMappingURL=protocol.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core/protocol/errors.ts","../src/protocol.ts"],"sourcesContent":["export const ATAPIErrorCodeMap = {\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 ATAPIErrorCode = typeof ATAPIErrorCodeMap[keyof typeof ATAPIErrorCodeMap];\r\n","export * from \"./core/protocol/errors\";\r\n\r\nimport { ATAPIErrorCodeMap } from \"./core/protocol/errors\";\r\n\r\nexport const ATProtocol = { ATAPIErrorCodeMap } as const;\r\n\r\nexport namespace ATProtocol {\r\n export type ATAPIErrorCode =\r\n import(\"./core/protocol/errors\").ATAPIErrorCode;\r\n}\r\n"],"mappings":";;;AAAO,IAAM,oBAAoB;AAAA,EAC7B,oBAAoB;AAAA,EACpB,sBAAsB;AAAA,EACtB,4BAA4B;AAChC;;;ACAO,IAAM,aAAa,EAAE,kBAAkB;","names":[]}
@@ -20,26 +20,12 @@ 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,
24
23
  ATTransportDTO: () => ATTransportDTO
25
24
  });
26
25
  module.exports = __toCommonJS(transport_exports);
27
-
28
- // src/core/transport/errors.ts
29
- var ATAPIErrorCodeDTO = {
30
- // 45xx – AI / workflow
31
- AI_SESSION_EXPIRED: 4501,
32
- AI_SESSION_NOT_FOUND: 4502,
33
- AI_REQUEST_CONTEXT_MISSING: 4503
34
- };
35
-
36
- // src/transport.ts
37
- var ATTransportDTO = {
38
- ATAPIErrorCodeDTO
39
- };
26
+ var ATTransportDTO = {};
40
27
  // Annotate the CommonJS export names for ESM import in node:
41
28
  0 && (module.exports = {
42
- ATAPIErrorCodeDTO,
43
29
  ATTransportDTO
44
30
  });
45
31
  //# 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\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
+ {"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\nexport const ATTransportDTO = {} as const;\r\n\r\n// ✅ type bucket (so ATTransportDTO.ResponseErrorDTO etc works)\r\nexport namespace ATTransportDTO {\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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,IAAM,iBAAiB,CAAC;","names":[]}
@@ -1,18 +1,8 @@
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
- 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
- };
4
+ export declare const ATTransportDTO: {};
14
5
  export declare namespace ATTransportDTO {
15
- type ATAPIErrorCodeDTO = ATAPIErrorCodeDTOType;
16
6
  type ResponseSuccessDTO<T> = import("./core/transport/responses").ResponseSuccessDTO<T>;
17
7
  type ResponseErrorDTO = import("./core/transport/responses").ResponseErrorDTO;
18
8
  type AIChatRequestDTO = import("./ai/transport/chat").AIChatRequestDTO;
@@ -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;AAGhD,OAAO,EACL,iBAAiB,IAAI,sBAAsB,EAC5C,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,i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
10
5
  export {
11
- ATAPIErrorCodeDTO,
12
6
  ATTransportDTO
13
7
  };
14
8
  //# sourceMappingURL=transport.mjs.map
@@ -1 +1 @@
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":[]}
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\nexport const ATTransportDTO = {} as const;\r\n\r\n// ✅ type bucket (so ATTransportDTO.ResponseErrorDTO etc works)\r\nexport namespace ATTransportDTO {\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":";;;AAIO,IAAM,iBAAiB,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "at-shared-types",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",
@@ -19,6 +19,11 @@
19
19
  "types": "./dist/transport.d.ts",
20
20
  "require": "./dist/transport.cjs",
21
21
  "import": "./dist/transport.mjs"
22
+ },
23
+ "./protocol": {
24
+ "types": "./dist/protocol.d.ts",
25
+ "require": "./dist/protocol.cjs",
26
+ "import": "./dist/protocol.mjs"
22
27
  }
23
28
  },
24
29
  "files": [
@@ -1,27 +0,0 @@
1
- import type * as Engine from "./ai/domain/engine";
2
- import type * as Session from "./ai/domain/session";
3
- /**
4
- * Runtime value (empty on purpose) so consumers can:
5
- * import { ATDomainDTO } from "at-shared-types"
6
- * and then use:
7
- * ATDomainDTO.SomeType
8
- */
9
- export declare const ATDomainDTO: {};
10
- /**
11
- * Namespace holds ONLY types (and could hold values too if you ever need).
12
- * TS merges this with the const above.
13
- */
14
- export declare namespace ATDomainDTO {
15
- type ATChatMessageContentDTO = Engine.ATChatMessageContentDTO;
16
- type AIChatMessageDTO = Engine.AIChatMessageDTO;
17
- type AIChatOptionsResponseFormatDTO = Engine.AIChatOptionsResponseFormatDTO;
18
- type AIRequestContextDTO = Engine.AIRequestContextDTO;
19
- type AIChatOptionsDTO = Engine.AIChatOptionsDTO;
20
- type AIIntentDTO = Engine.AIIntentDTO;
21
- type AICapabilityDTO = Engine.AICapabilityDTO;
22
- type AIPageContextDTO = Engine.AIPageContextDTO;
23
- type AIChatWithIntentOptionsDTO = Engine.AIChatWithIntentOptionsDTO;
24
- type AIPromptRoleDTO = Session.AIPromptRoleDTO;
25
- type AISessionConfigDTO = Session.AISessionConfigDTO;
26
- }
27
- //# sourceMappingURL=at-domain-dto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"at-domain-dto.d.ts","sourceRoot":"","sources":["../src/at-domain-dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,IAAc,CAAC;AAEvC;;;GAGG;AACH,yBAAiB,WAAW,CAAC;IACzB,KAAY,uBAAuB,GAAG,MAAM,CAAC,uBAAuB,CAAC;IAErE,KAAY,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IACvD,KAAY,8BAA8B,GAAG,MAAM,CAAC,8BAA8B,CAAC;IAEnF,KAAY,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAC7D,KAAY,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IAEvD,KAAY,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;IAC7C,KAAY,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;IACrD,KAAY,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,CAAC;IAEvD,KAAY,0BAA0B,GAAG,MAAM,CAAC,0BAA0B,CAAC;IAE3E,KAAY,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IACtD,KAAY,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAC/D"}
@@ -1,29 +0,0 @@
1
- import type * as AIWire from "./ai/transport/wire.types";
2
- import type * as AIChat from "./ai/transport/chat";
3
- import { type ATAPIErrorCodeDTO as ATAPIErrorCodeType } from "./core/transport/errors";
4
- import type * as CoreResponses from "./core/transport/responses";
5
- export declare const ATTransportDTO: {
6
- readonly ATAPIErrorCodeDTO: {
7
- readonly AI_SESSION_EXPIRED: 4501;
8
- readonly AI_SESSION_NOT_FOUND: 4502;
9
- readonly AI_REQUEST_CONTEXT_MISSING: 4503;
10
- };
11
- };
12
- export declare namespace ATTransportDTO {
13
- type ATAPIErrorCodeDTO = ATAPIErrorCodeType;
14
- type ResponseSuccessDTO<T> = CoreResponses.ResponseSuccessDTO<T>;
15
- type ResponseErrorDTO = CoreResponses.ResponseErrorDTO;
16
- type AIChatRequestDTO = AIChat.AIChatRequestDTO;
17
- type AIChatResponseDTO = AIChat.AIChatResponseDTO;
18
- type AIChatWithIntentRequestDTO = AIChat.AIChatWithIntentRequestDTO;
19
- type AIChatWithIntentResponseDTO = AIChat.AIChatWithIntentResponseDTO;
20
- type AIChatMessageWireDTO = AIWire.AIChatMessageWireDTO;
21
- type AIChatOptionsWireDTO = AIWire.AIChatOptionsWireDTO;
22
- type AIRequestContextWireDTO = AIWire.AIRequestContextWireDTO;
23
- type AIChatWithIntentOptionsWireDTO = AIWire.AIChatWithIntentOptionsWireDTO;
24
- type AIIntentWireDTO = AIWire.AIIntentWireDTO;
25
- type AICapabilityWireDTO = AIWire.AICapabilityWireDTO;
26
- type AIPageContextWireDTO = AIWire.AIPageContextWireDTO;
27
- type AISessionConfigWireDTO = AIWire.AISessionConfigWireDTO;
28
- }
29
- //# sourceMappingURL=at-transport-dto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"at-transport-dto.d.ts","sourceRoot":"","sources":["../src/at-transport-dto.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,KAAK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
8
-
9
- export {
10
- ATAPIErrorCodeDTO
11
- };
12
- //# sourceMappingURL=chunk-5N6VWLFC.mjs.map
@@ -1 +0,0 @@
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":[]}
package/dist/cjs.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { ATDomainDTO } from "./at-domain-dto";
2
- export { ATTransportDTO } from "./at-transport-dto";
3
- export * as Casing from "./casing";
4
- //# sourceMappingURL=cjs.d.ts.map
package/dist/cjs.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cjs.d.ts","sourceRoot":"","sources":["../src/cjs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC"}
@@ -1,7 +0,0 @@
1
- export declare const ATAPIErrorCodeDTO: {
2
- readonly AI_SESSION_EXPIRED: 4501;
3
- readonly AI_SESSION_NOT_FOUND: 4502;
4
- readonly AI_REQUEST_CONTEXT_MISSING: 4503;
5
- };
6
- export type ATAPIErrorCodeDTO = typeof ATAPIErrorCodeDTO[keyof typeof ATAPIErrorCodeDTO];
7
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/core/transport/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;CAKpB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"}