daishi-sdk 0.2.20 → 0.2.21
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/dist/generated.d.ts +61 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -187,6 +187,8 @@ export interface ExperimentReport {
|
|
|
187
187
|
limitations: ExperimentReportLimitation[];
|
|
188
188
|
plain: string;
|
|
189
189
|
what_differed: ExperimentReportWhatDiffered[];
|
|
190
|
+
replication: Replication | null;
|
|
191
|
+
reruns: RerunTally | null;
|
|
190
192
|
cost: Cost;
|
|
191
193
|
note: string | null;
|
|
192
194
|
note_at_ms: number | null;
|
|
@@ -714,6 +716,8 @@ export interface BatchReportModel {
|
|
|
714
716
|
median: number;
|
|
715
717
|
sd: number | null;
|
|
716
718
|
half_width: number | null;
|
|
719
|
+
design_effect: number | null;
|
|
720
|
+
effective_seats: number | null;
|
|
717
721
|
best: number;
|
|
718
722
|
worst: number;
|
|
719
723
|
survival_rate: number;
|
|
@@ -1042,6 +1046,63 @@ export interface ExperimentReportWhatDiffered {
|
|
|
1042
1046
|
label: string;
|
|
1043
1047
|
changes: string[];
|
|
1044
1048
|
}
|
|
1049
|
+
export interface Replication {
|
|
1050
|
+
original: ReplicationOriginal;
|
|
1051
|
+
state: 'read' | 'playing' | 'incomplete' | 'cancelled' | 'unpublished' | 'original_open';
|
|
1052
|
+
comparisons: StudyDifference[];
|
|
1053
|
+
text: string;
|
|
1054
|
+
}
|
|
1055
|
+
export interface ReplicationOriginal {
|
|
1056
|
+
experiment_id: string;
|
|
1057
|
+
name: string;
|
|
1058
|
+
handle: string | null;
|
|
1059
|
+
study_url: string | null;
|
|
1060
|
+
own: boolean;
|
|
1061
|
+
exact: boolean;
|
|
1062
|
+
}
|
|
1063
|
+
export interface StudyDifference {
|
|
1064
|
+
arm: number;
|
|
1065
|
+
label: string;
|
|
1066
|
+
control: string;
|
|
1067
|
+
original: StudyUnits;
|
|
1068
|
+
rerun: StudyUnits;
|
|
1069
|
+
difference: number | null;
|
|
1070
|
+
interval: WelchInterval | null;
|
|
1071
|
+
apart: boolean | null;
|
|
1072
|
+
text: string;
|
|
1073
|
+
}
|
|
1074
|
+
export interface StudyUnits {
|
|
1075
|
+
unit: 'pair' | 'world';
|
|
1076
|
+
n: number;
|
|
1077
|
+
mean_diff: number | null;
|
|
1078
|
+
}
|
|
1079
|
+
export interface WelchInterval {
|
|
1080
|
+
lo: number;
|
|
1081
|
+
hi: number;
|
|
1082
|
+
level: number;
|
|
1083
|
+
df: number;
|
|
1084
|
+
}
|
|
1085
|
+
export interface RerunTally {
|
|
1086
|
+
reruns: RerunEntry[];
|
|
1087
|
+
counted: number;
|
|
1088
|
+
apart: number;
|
|
1089
|
+
no_interval: number;
|
|
1090
|
+
not_counted: number;
|
|
1091
|
+
own: number;
|
|
1092
|
+
more: boolean;
|
|
1093
|
+
text: string;
|
|
1094
|
+
}
|
|
1095
|
+
export interface RerunEntry {
|
|
1096
|
+
experiment_id: string;
|
|
1097
|
+
name: string;
|
|
1098
|
+
handle: string | null;
|
|
1099
|
+
study_url: string | null;
|
|
1100
|
+
own: boolean;
|
|
1101
|
+
exact: boolean;
|
|
1102
|
+
state: 'read' | 'playing' | 'incomplete' | 'cancelled' | 'unpublished' | 'original_open';
|
|
1103
|
+
apart: boolean | null;
|
|
1104
|
+
comparisons: StudyDifference[];
|
|
1105
|
+
}
|
|
1045
1106
|
/** One setup of a run set: how many runs are filed under it and the series batches among them, the harness versions their seats registered under (a set may span versions; nothing is pooled across them), when the earliest run ever filed under it started its match (a run moved out does not raise it), its design, and its counts summed over its runs (null while none carries one; `uncounted` runs whose match could not be read add nothing). */
|
|
1046
1107
|
export interface RunSetSetup {
|
|
1047
1108
|
key: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Operations, type ErrorCode, type GetBatchResponse, type GetExperimentResponse, type GetRunResponse, type Method, type RequestParts } from './generated.js';
|
|
2
2
|
export * from './generated.js';
|
|
3
|
-
export declare const VERSION = "0.2.
|
|
3
|
+
export declare const VERSION = "0.2.21";
|
|
4
4
|
export declare const DEFAULT_BASE_URL = "https://daishi.ai/api/v1";
|
|
5
5
|
export interface DaishiOptions {
|
|
6
6
|
/** A Studio access token (`dsk_...`). Default: the `DAISHI_TOKEN` environment variable. */
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Operations } from './generated.js';
|
|
2
2
|
export * from './generated.js';
|
|
3
|
-
export const VERSION = '0.2.
|
|
3
|
+
export const VERSION = '0.2.21';
|
|
4
4
|
export const DEFAULT_BASE_URL = 'https://daishi.ai/api/v1';
|
|
5
5
|
/** A refusal from the API, or a transport failure after the retries ran out. */
|
|
6
6
|
export class DaishiError extends Error {
|
package/package.json
CHANGED