@quesmed/types-rn 2.6.155 → 2.6.156

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types-rn",
3
- "version": "2.6.155",
3
+ "version": "2.6.156",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",
@@ -7,6 +7,7 @@ export interface AISettings {
7
7
  userPrompt?: string;
8
8
  apiKey: string;
9
9
  model?: string;
10
+ n?: number;
10
11
  }
11
12
  export interface IHighYieldVar {
12
13
  chapterIds: Id[];
@@ -20,3 +21,19 @@ export interface IDownloadBatchVar {
20
21
  }
21
22
  export type IDownloadBatchData = AdminData<graphqlNormalize & string, 'downloadBatch'>;
22
23
  export declare const DOWNLOAD_BATCH: import("@apollo/client").DocumentNode;
24
+ export interface IPromptLabVar {
25
+ input: AISettings;
26
+ }
27
+ interface IPromptLabMessage {
28
+ role: string;
29
+ content: string;
30
+ refusal: string;
31
+ }
32
+ interface IPromptLabResult {
33
+ index: number;
34
+ finishReason: string;
35
+ message: IPromptLabMessage;
36
+ }
37
+ export type IPromptLabData = AdminData<graphqlNormalize & Array<IPromptLabResult>, 'promptLab'>;
38
+ export declare const PROMPT_LAB: import("@apollo/client").DocumentNode;
39
+ export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DOWNLOAD_BATCH = exports.HIGH_YIELD = void 0;
3
+ exports.PROMPT_LAB = exports.DOWNLOAD_BATCH = exports.HIGH_YIELD = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  exports.HIGH_YIELD = (0, client_1.gql) `
6
6
  mutation HighYield($chapterIds: [Int!]!, $settings: AISettingsInput!) {
@@ -16,3 +16,18 @@ exports.DOWNLOAD_BATCH = (0, client_1.gql) `
16
16
  }
17
17
  }
18
18
  `;
19
+ exports.PROMPT_LAB = (0, client_1.gql) `
20
+ mutation promptLab($input: AISettingsInput!) {
21
+ admin {
22
+ promptLab(input: $input) {
23
+ index
24
+ finishReason
25
+ message {
26
+ role
27
+ content
28
+ refusal
29
+ }
30
+ }
31
+ }
32
+ }
33
+ `;