@takeshape/schema 11.124.1 → 11.124.3

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.
@@ -94,6 +94,17 @@ export declare const schema: {
94
94
  readonly type: "boolean";
95
95
  readonly description: "Indicates whether the agent session has any messages with feedback.";
96
96
  };
97
+ readonly suspend: {
98
+ readonly type: "boolean";
99
+ readonly description: "Indicates whether the agent session is suspended.";
100
+ };
101
+ readonly suspendedTransitionIndices: {
102
+ readonly type: "array";
103
+ readonly description: "An array of indices of suspended transitions in the agent session.";
104
+ readonly items: {
105
+ readonly type: "integer";
106
+ };
107
+ };
97
108
  };
98
109
  readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
99
110
  readonly additionalProperties: false;
@@ -125,6 +136,8 @@ export declare const validate: import("ajv").ValidateFunction<{
125
136
  previousStateId?: string | undefined;
126
137
  hasAgentHistory?: boolean | undefined;
127
138
  hasFeedback?: boolean | undefined;
139
+ suspend?: boolean | undefined;
140
+ suspendedTransitionIndices?: number[] | undefined;
128
141
  id: string;
129
142
  createdAt: string;
130
143
  updatedAt: string;
@@ -64,11 +64,42 @@ export declare const schema: {
64
64
  readonly type: "boolean";
65
65
  readonly description: "Indicates whether the agent session has any messages with feedback.";
66
66
  };
67
+ readonly suspend: {
68
+ readonly type: "boolean";
69
+ readonly description: "Indicates whether the agent session is suspended.";
70
+ };
71
+ readonly suspendedTransitionIndices: {
72
+ readonly type: "array";
73
+ readonly description: "An array of indices of suspended transitions in the agent session.";
74
+ readonly items: {
75
+ readonly type: "integer";
76
+ };
77
+ };
67
78
  };
68
79
  readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
69
80
  readonly additionalProperties: false;
70
81
  };
71
- export type AgentSessionPayload = FromSchema<typeof schema> & {
72
- suspended?: boolean;
73
- };
74
- export declare const validate: import("ajv").ValidateFunction<AgentSessionPayload>;
82
+ export type AgentSessionPayload = FromSchema<typeof schema>;
83
+ export declare const validate: import("ajv").ValidateFunction<{
84
+ suspended?: boolean | undefined;
85
+ previousStateId?: string | undefined;
86
+ hasAgentHistory?: boolean | undefined;
87
+ hasFeedback?: boolean | undefined;
88
+ suspend?: boolean | undefined;
89
+ suspendedTransitionIndices?: number[] | undefined;
90
+ id: string;
91
+ createdAt: string;
92
+ updatedAt: string;
93
+ agentName: string;
94
+ projectId: string;
95
+ schemaId: string;
96
+ schemaHash: string;
97
+ done: boolean;
98
+ currentStateId: string;
99
+ chatSessionIds: {
100
+ [x: string]: unknown;
101
+ };
102
+ sessionMemory: {
103
+ [x: string]: unknown;
104
+ };
105
+ }>;
@@ -63,6 +63,17 @@ export const schema = {
63
63
  hasFeedback: {
64
64
  type: 'boolean',
65
65
  description: 'Indicates whether the agent session has any messages with feedback.'
66
+ },
67
+ suspend: {
68
+ type: 'boolean',
69
+ description: 'Indicates whether the agent session is suspended.'
70
+ },
71
+ suspendedTransitionIndices: {
72
+ type: 'array',
73
+ description: 'An array of indices of suspended transitions in the agent session.',
74
+ items: {
75
+ type: 'integer'
76
+ }
66
77
  }
67
78
  },
68
79
  required: [
@@ -56,6 +56,17 @@ export declare const schema: {
56
56
  readonly type: "boolean";
57
57
  readonly description: "Indicates whether the agent session has any messages with feedback.";
58
58
  };
59
+ readonly suspend: {
60
+ readonly type: "boolean";
61
+ readonly description: "Indicates whether the agent session is suspended.";
62
+ };
63
+ readonly suspendedTransitionIndices: {
64
+ readonly type: "array";
65
+ readonly description: "An array of indices of suspended transitions in the agent session.";
66
+ readonly items: {
67
+ readonly type: "integer";
68
+ };
69
+ };
59
70
  };
60
71
  readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory"];
61
72
  readonly additionalProperties: false;
@@ -70,6 +81,8 @@ export declare const validate: import("ajv").ValidateFunction<{
70
81
  previousStateId?: string | undefined;
71
82
  hasAgentHistory?: boolean | undefined;
72
83
  hasFeedback?: boolean | undefined;
84
+ suspend?: boolean | undefined;
85
+ suspendedTransitionIndices?: number[] | undefined;
73
86
  id: string;
74
87
  agentName: string;
75
88
  done: boolean;
@@ -79,6 +79,17 @@ export declare const schema: {
79
79
  readonly type: "boolean";
80
80
  readonly description: "Indicates whether the agent session has any messages with feedback.";
81
81
  };
82
+ readonly suspend: {
83
+ readonly type: "boolean";
84
+ readonly description: "Indicates whether the agent session is suspended.";
85
+ };
86
+ readonly suspendedTransitionIndices: {
87
+ readonly type: "array";
88
+ readonly description: "An array of indices of suspended transitions in the agent session.";
89
+ readonly items: {
90
+ readonly type: "integer";
91
+ };
92
+ };
82
93
  };
83
94
  readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
84
95
  readonly additionalProperties: false;
@@ -72,6 +72,17 @@ export declare const schema: {
72
72
  readonly type: "boolean";
73
73
  readonly description: "Indicates whether the agent session has any messages with feedback.";
74
74
  };
75
+ readonly suspend: {
76
+ readonly type: "boolean";
77
+ readonly description: "Indicates whether the agent session is suspended.";
78
+ };
79
+ readonly suspendedTransitionIndices: {
80
+ readonly type: "array";
81
+ readonly description: "An array of indices of suspended transitions in the agent session.";
82
+ readonly items: {
83
+ readonly type: "integer";
84
+ };
85
+ };
75
86
  };
76
87
  readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory", "agentHistory", "messages"];
77
88
  readonly additionalProperties: false;
@@ -71,6 +71,17 @@ export declare const schema: {
71
71
  readonly type: "boolean";
72
72
  readonly description: "Indicates whether the agent session has any messages with feedback.";
73
73
  };
74
+ readonly suspend: {
75
+ readonly type: "boolean";
76
+ readonly description: "Indicates whether the agent session is suspended.";
77
+ };
78
+ readonly suspendedTransitionIndices: {
79
+ readonly type: "array";
80
+ readonly description: "An array of indices of suspended transitions in the agent session.";
81
+ readonly items: {
82
+ readonly type: "integer";
83
+ };
84
+ };
74
85
  };
75
86
  readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "projectId", "schemaId", "schemaHash"];
76
87
  readonly additionalProperties: false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "11.124.1",
3
+ "version": "11.124.3",
4
4
  "description": "TakeShape Schema",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -56,9 +56,9 @@
56
56
  "p-reduce": "2.1.0",
57
57
  "semver": "7.7.2",
58
58
  "tiny-invariant": "1.3.3",
59
- "@takeshape/errors": "11.124.1",
60
- "@takeshape/json-schema": "11.124.1",
61
- "@takeshape/util": "11.124.1"
59
+ "@takeshape/errors": "11.124.3",
60
+ "@takeshape/json-schema": "11.124.3",
61
+ "@takeshape/util": "11.124.3"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@takeshape/json-schema-to-typescript": "11.0.0",
@@ -75,8 +75,8 @@
75
75
  "glob": "7.2.3",
76
76
  "json-schema-to-ts": "3.1.1",
77
77
  "shortid": "2.2.16",
78
- "@takeshape/logger": "11.124.1",
79
- "@takeshape/infra": "11.124.1"
78
+ "@takeshape/infra": "11.124.3",
79
+ "@takeshape/logger": "11.124.3"
80
80
  },
81
81
  "engines": {
82
82
  "node": ">=22"