Skip to content

Commit 7634371

Browse files
barklundgithub-actions[bot]
authored andcommitted
refactor(types): sync embedded types
1 parent c92e5d1 commit 7634371

3 files changed

Lines changed: 61 additions & 1 deletion

File tree

src/types/generated/interview-details.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,50 @@ export type EmbeddedInterviewDetails = {
8686
customTemplateId: null;
8787
state: "generated" | "pending" | "error" | "stale" | "missing_template";
8888
}
89+
| {
90+
/** Unique document identifier */
91+
id: string;
92+
/** Document name */
93+
name: string;
94+
/** Language code for document output */
95+
outputLanguage: string;
96+
/** Whether document is streamed */
97+
isStream: boolean;
98+
/** Document sections */
99+
sections: {
100+
/** Unique identifier for the section */
101+
key: string;
102+
/** Display name of the section */
103+
name: string;
104+
/** Section content text */
105+
text: string;
106+
/** Sort order for displaying sections */
107+
sort: number;
108+
/** ISO 8601 timestamp when section was created */
109+
createdAt: string;
110+
/** ISO 8601 timestamp when section was last updated */
111+
updatedAt: string;
112+
/** Markdown formatted content */
113+
markdown?: (string | null) | undefined;
114+
/** HTML formatted content */
115+
htmlText?: string | undefined;
116+
/** Plain text content */
117+
plainText?: string | undefined;
118+
}[];
119+
/** Usage information */
120+
usageInfo?:
121+
| {
122+
creditsConsumed: number;
123+
}
124+
| undefined;
125+
/** Reference to the template used */
126+
templateRef: string;
127+
/** Type of template used */
128+
templateType: "schema-driven";
129+
/** Not applicable for schema-driven templates */
130+
customTemplateId: null;
131+
state: "generated" | "pending" | "error" | "stale" | "missing_template";
132+
}
89133
| {
90134
/** Unique document identifier */
91135
id: string;

src/types/payloads.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ export interface InteractionTemplateSources {
8686
personal?: {
8787
enabled: boolean;
8888
};
89+
standard?: {
90+
enabled?: boolean;
91+
include?: {
92+
regions?: string[];
93+
families?: string[];
94+
};
95+
};
8996
}
9097

9198
export interface InteractionTemplateOptions {
@@ -97,6 +104,7 @@ export interface InteractionDocumentOptions {
97104
actions?: {
98105
sync?: boolean;
99106
};
107+
allowedLanguages?: string[];
100108
}
101109

102110
export interface SetInteractionOptionsPayload {

src/types/responses.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,20 @@ export interface EmbeddedTemplate {
3030
id: string;
3131
name: string;
3232
description?: string;
33+
templateType?: "built-in" | "custom" | "schema-driven";
3334
language: {
3435
code: string;
3536
name: string;
3637
locale?: string;
38+
localName?: string;
3739
};
38-
sections: Array<{
40+
outputLanguages?: Array<{
41+
code: string;
42+
name: string;
43+
locale?: string;
44+
hasPreview: boolean;
45+
}>;
46+
sections?: Array<{
3947
id: string;
4048
title: string;
4149
}>;

0 commit comments

Comments
 (0)