Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(typings): Add Copilot Entities #192

Merged
merged 3 commits into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 92 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,19 @@ export class EntityTypes {
static ClientCorporationTask: 'ClientCorporationTask' = 'ClientCorporationTask';
static ClientCorporationTaxExemptionStatusLookup: 'ClientCorporationTaxExemptionStatusLookup' = 'ClientCorporationTaxExemptionStatusLookup';
static ComposeMessage: 'ComposeMessage' = 'ComposeMessage';
static CopilotEntityType: 'CopilotEntityType' = 'CopilotEntityType';
static CopilotFilteredFieldMaps: 'CopilotFilteredFieldMaps' = 'CopilotFilteredFieldMaps';
static CopilotGenerativeConfig: 'CopilotGenerativeConfig' = 'CopilotGenerativeConfig';
static CopilotGenerativeModel: 'CopilotGenerativeModel' = 'CopilotGenerativeModel';
static CopilotLanguage: 'CopilotLanguage' = 'CopilotLanguage';
static CopilotLength: 'CopilotLength' = 'CopilotLength';
static CopilotPrompt: 'CopilotPrompt' = 'CopilotPrompt';
static CopilotPromptDataPoint: 'CopilotPromptDataPoint' = 'CopilotPromptDataPoint';
static CopilotPromptLocation: 'CopilotPromptLocation' = 'CopilotPromptLocation';
static CopilotProvider: 'CopilotProvider' = 'CopilotProvider';
static CopilotRole: 'CopilotRole' = 'CopilotRole';
static CopilotTask: 'CopilotTask' = 'CopilotTask';
static CopilotTone: 'CopilotTone' = 'CopilotTone';
static CorpFile: 'CorpFile' = 'CorpFile';
static CorporateUser: 'CorporateUser' = 'CorporateUser';
static Corporation: 'Corporation' = 'Corporation';
Expand Down Expand Up @@ -4647,24 +4660,91 @@ export interface ClientCorporationTaxExemptionStatusLookup {
isDeleted?: boolean;
label?: Strings;
}

export interface CopilotEntityType {
id?: number;
entityTypeLookupID?: {
id?: number;
label?: string;
schemaName?: string;
tableName?: string;
};
}
export interface CopilotFilteredFieldMaps {
fieldMaps?: [{
name?: string;
label?: string;
}];
}
export interface CopilotGenerativeConfig {
copilotGenerativeProviderLookup?: CopilotGenerativeProvider;
apiKey?: string;
defaultCopilotGenerativeModel?: CopilotGenerativeModel;
}
export interface CopilotGenerativeModel {
modelName?: string;
tokenLimit?: number;
instanceName?: string;
apiVersion?: string;
}
export interface CopilotGenerativeProvider {
id?: number;
label?: string;
}
export interface CopilotLanguage {
id?: number;
abbreviation?: string;
label?: string;
languageCodeWithLocale?: string;
}
export interface CopilotLength {
id?: number;
label?: string;
prompt?: string;
}
export interface CopilotPrompt {
id?: number;
privateLabelID?: number;
label?: Strings;
copilotRoleID?: number;
copilotTaskID?: number;
copilotToneID?: number;
copilotLengthID?: number;
copilotLanguageID?: number;
label?: string;
labelTranslationKey?: string;
copilotRole?: CopilotRole;
copilotTask?: CopilotTask;
copilotTone?: CopilotTone;
copilotLength?: CopilotLength;
copilotLanguage?: CopilotLanguage;
isSecondaryEntityRequired?: boolean;
customAction?: Strings;
customAction?: string;
isEnabled?: boolean;
copilotPromptLocationID?: number;
copilotPrimaryEntityTypeID?: number;
copilotSecondaryEntityTypeID?: number;
copilotPromptLocation?: CopilotPromptLocation;
copilotPrimaryEntityType?: CopilotEntityType;
copilotSecondaryEntityType?: CopilotEntityType;
copilotPromptDataPoints?: CopilotPromptDataPoint[];
}
export interface CopilotPromptDataPoint {
id?: number;
copilotEntityType?: CopilotEntityType;
field?: string;
}
export interface CopilotPromptLocation {
id?: number;
label?: string;
value?: string;
}
export interface CopilotRole {
id?: number;
label?: string;
prompt?: string;
isHidden?: boolean;
}
export interface CopilotTask {
id?: number;
label?: string;
prompt?: any;
}
export interface CopilotTone {
id?: number;
label?: string;
prompt?: string;
}

export interface CorpFile {
id?: number;
contentSubType?: Strings;
Expand Down
Loading