at-shared-types 1.1.11 → 1.1.12

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.
@@ -43,6 +43,11 @@ export interface AICapabilityDTO {
43
43
  id: string;
44
44
  description: string;
45
45
  }
46
+ export interface AIPageContextDTO {
47
+ location?: string;
48
+ data?: unknown;
49
+ }
46
50
  export interface AIChatWithIntentOptionsDTO extends AIChatOptionsDTO {
47
51
  capabilities?: AICapabilityDTO[];
52
+ pageContext?: AIPageContextDTO;
48
53
  }
@@ -1,5 +1,6 @@
1
1
  export declare const ATAPIErrorCodeDTO: {
2
2
  readonly AI_SESSION_EXPIRED: 4501;
3
3
  readonly AI_SESSION_NOT_FOUND: 4502;
4
+ readonly AI_REQUEST_CONTEXT_MISSING: 4503;
4
5
  };
5
6
  export type ATAPIErrorCodeDTO = typeof ATAPIErrorCodeDTO[keyof typeof ATAPIErrorCodeDTO];
@@ -5,4 +5,5 @@ exports.ATAPIErrorCodeDTO = {
5
5
  // 45xx – AI / workflow
6
6
  AI_SESSION_EXPIRED: 4501,
7
7
  AI_SESSION_NOT_FOUND: 4502,
8
+ AI_REQUEST_CONTEXT_MISSING: 4503,
8
9
  };
@@ -43,6 +43,11 @@ export interface AICapabilityDTO {
43
43
  id: string;
44
44
  description: string;
45
45
  }
46
+ export interface AIPageContextDTO {
47
+ location?: string;
48
+ data?: unknown;
49
+ }
46
50
  export interface AIChatWithIntentOptionsDTO extends AIChatOptionsDTO {
47
51
  capabilities?: AICapabilityDTO[];
52
+ pageContext?: AIPageContextDTO;
48
53
  }
@@ -1,5 +1,6 @@
1
1
  export declare const ATAPIErrorCodeDTO: {
2
2
  readonly AI_SESSION_EXPIRED: 4501;
3
3
  readonly AI_SESSION_NOT_FOUND: 4502;
4
+ readonly AI_REQUEST_CONTEXT_MISSING: 4503;
4
5
  };
5
6
  export type ATAPIErrorCodeDTO = typeof ATAPIErrorCodeDTO[keyof typeof ATAPIErrorCodeDTO];
@@ -2,4 +2,5 @@ export const ATAPIErrorCodeDTO = {
2
2
  // 45xx – AI / workflow
3
3
  AI_SESSION_EXPIRED: 4501,
4
4
  AI_SESSION_NOT_FOUND: 4502,
5
+ AI_REQUEST_CONTEXT_MISSING: 4503,
5
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "at-shared-types",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "main": "./dist/cjs/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",