scorecard-ai 0.6.0 → 0.6.1

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.
Files changed (111) hide show
  1. package/README.md +9 -9
  2. package/api/resources/prompt/client/Client.d.ts +27 -8
  3. package/api/resources/prompt/client/Client.js +126 -15
  4. package/api/resources/prompt/client/requests/PromptCreateParams.d.ts +8 -2
  5. package/api/resources/prompt/client/requests/PromptGetByNameRequest.d.ts +4 -0
  6. package/api/resources/prompt/client/requests/PromptListPromptsRequest.d.ts +21 -0
  7. package/api/resources/prompt/client/requests/PromptListPromptsRequest.js +5 -0
  8. package/api/resources/prompt/client/requests/index.d.ts +1 -0
  9. package/api/resources/run/client/Client.js +3 -3
  10. package/api/resources/runMetric/client/Client.js +1 -1
  11. package/api/resources/score/client/Client.js +2 -2
  12. package/api/resources/scoringConfig/client/Client.d.ts +17 -1
  13. package/api/resources/scoringConfig/client/Client.js +90 -3
  14. package/api/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +3 -1
  15. package/api/resources/testcase/client/Client.d.ts +1 -1
  16. package/api/resources/testcase/client/Client.js +7 -7
  17. package/api/resources/testrecord/client/Client.js +2 -2
  18. package/api/resources/testset/client/Client.d.ts +4 -4
  19. package/api/resources/testset/client/Client.js +21 -12
  20. package/api/resources/testset/client/requests/TestsetCreateParams.d.ts +2 -0
  21. package/api/resources/testset/client/requests/TestsetGetRequest.d.ts +11 -0
  22. package/api/resources/testset/client/requests/TestsetGetRequest.js +5 -0
  23. package/api/resources/testset/client/requests/index.d.ts +1 -0
  24. package/api/resources/tracing/client/Client.js +3 -3
  25. package/api/types/Prompt.d.ts +2 -0
  26. package/api/types/PromptCursorPage.d.ts +17 -0
  27. package/api/types/PromptCursorPage.js +5 -0
  28. package/api/types/ScoringConfig.d.ts +2 -0
  29. package/api/types/Testset.d.ts +2 -0
  30. package/api/types/TestsetCursorPage.d.ts +17 -0
  31. package/api/types/TestsetCursorPage.js +5 -0
  32. package/api/types/index.d.ts +2 -0
  33. package/api/types/index.js +2 -0
  34. package/dist/api/resources/prompt/client/Client.d.ts +27 -8
  35. package/dist/api/resources/prompt/client/Client.js +126 -15
  36. package/dist/api/resources/prompt/client/requests/PromptCreateParams.d.ts +8 -2
  37. package/dist/api/resources/prompt/client/requests/PromptGetByNameRequest.d.ts +4 -0
  38. package/dist/api/resources/prompt/client/requests/PromptListPromptsRequest.d.ts +21 -0
  39. package/dist/api/resources/prompt/client/requests/PromptListPromptsRequest.js +5 -0
  40. package/dist/api/resources/prompt/client/requests/index.d.ts +1 -0
  41. package/dist/api/resources/run/client/Client.js +3 -3
  42. package/dist/api/resources/runMetric/client/Client.js +1 -1
  43. package/dist/api/resources/score/client/Client.js +2 -2
  44. package/dist/api/resources/scoringConfig/client/Client.d.ts +17 -1
  45. package/dist/api/resources/scoringConfig/client/Client.js +90 -3
  46. package/dist/api/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +3 -1
  47. package/dist/api/resources/testcase/client/Client.d.ts +1 -1
  48. package/dist/api/resources/testcase/client/Client.js +7 -7
  49. package/dist/api/resources/testrecord/client/Client.js +2 -2
  50. package/dist/api/resources/testset/client/Client.d.ts +4 -4
  51. package/dist/api/resources/testset/client/Client.js +21 -12
  52. package/dist/api/resources/testset/client/requests/TestsetCreateParams.d.ts +2 -0
  53. package/dist/api/resources/testset/client/requests/TestsetGetRequest.d.ts +11 -0
  54. package/dist/api/resources/testset/client/requests/TestsetGetRequest.js +5 -0
  55. package/dist/api/resources/testset/client/requests/index.d.ts +1 -0
  56. package/dist/api/resources/tracing/client/Client.js +3 -3
  57. package/dist/api/types/Prompt.d.ts +2 -0
  58. package/dist/api/types/PromptCursorPage.d.ts +17 -0
  59. package/dist/api/types/PromptCursorPage.js +5 -0
  60. package/dist/api/types/ScoringConfig.d.ts +2 -0
  61. package/dist/api/types/Testset.d.ts +2 -0
  62. package/dist/api/types/TestsetCursorPage.d.ts +17 -0
  63. package/dist/api/types/TestsetCursorPage.js +5 -0
  64. package/dist/api/types/index.d.ts +2 -0
  65. package/dist/api/types/index.js +2 -0
  66. package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +2 -0
  67. package/dist/serialization/resources/prompt/client/requests/PromptCreateParams.js +2 -0
  68. package/dist/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +1 -0
  69. package/dist/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.js +1 -0
  70. package/dist/serialization/resources/testcase/client/batchCopy.d.ts +11 -0
  71. package/dist/serialization/resources/testcase/client/batchCopy.js +32 -0
  72. package/dist/serialization/resources/testcase/client/index.d.ts +1 -0
  73. package/dist/serialization/resources/testcase/client/index.js +14 -0
  74. package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +1 -0
  75. package/dist/serialization/resources/testset/client/requests/TestsetCreateParams.js +1 -0
  76. package/dist/serialization/types/Prompt.d.ts +1 -0
  77. package/dist/serialization/types/Prompt.js +1 -0
  78. package/dist/serialization/types/PromptCursorPage.d.ts +18 -0
  79. package/dist/serialization/types/PromptCursorPage.js +39 -0
  80. package/dist/serialization/types/ScoringConfig.d.ts +1 -0
  81. package/dist/serialization/types/ScoringConfig.js +1 -0
  82. package/dist/serialization/types/Testset.d.ts +1 -0
  83. package/dist/serialization/types/Testset.js +1 -0
  84. package/dist/serialization/types/TestsetCursorPage.d.ts +18 -0
  85. package/dist/serialization/types/TestsetCursorPage.js +39 -0
  86. package/dist/serialization/types/index.d.ts +2 -0
  87. package/dist/serialization/types/index.js +2 -0
  88. package/package.json +1 -1
  89. package/reference.md +140 -11
  90. package/serialization/resources/prompt/client/requests/PromptCreateParams.d.ts +2 -0
  91. package/serialization/resources/prompt/client/requests/PromptCreateParams.js +2 -0
  92. package/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.d.ts +1 -0
  93. package/serialization/resources/scoringConfig/client/requests/ScoringConfigCreateParams.js +1 -0
  94. package/serialization/resources/testcase/client/batchCopy.d.ts +11 -0
  95. package/serialization/resources/testcase/client/batchCopy.js +32 -0
  96. package/serialization/resources/testcase/client/index.d.ts +1 -0
  97. package/serialization/resources/testcase/client/index.js +14 -0
  98. package/serialization/resources/testset/client/requests/TestsetCreateParams.d.ts +1 -0
  99. package/serialization/resources/testset/client/requests/TestsetCreateParams.js +1 -0
  100. package/serialization/types/Prompt.d.ts +1 -0
  101. package/serialization/types/Prompt.js +1 -0
  102. package/serialization/types/PromptCursorPage.d.ts +18 -0
  103. package/serialization/types/PromptCursorPage.js +39 -0
  104. package/serialization/types/ScoringConfig.d.ts +1 -0
  105. package/serialization/types/ScoringConfig.js +1 -0
  106. package/serialization/types/Testset.d.ts +1 -0
  107. package/serialization/types/Testset.js +1 -0
  108. package/serialization/types/TestsetCursorPage.d.ts +18 -0
  109. package/serialization/types/TestsetCursorPage.js +39 -0
  110. package/serialization/types/index.d.ts +2 -0
  111. package/serialization/types/index.js +2 -0
@@ -12,6 +12,7 @@ export * from "./NotFoundErrorBody";
12
12
  export * from "./PaginatedTestcaseResponse";
13
13
  export * from "./PromptModelParamsValue";
14
14
  export * from "./Prompt";
15
+ export * from "./PromptCursorPage";
15
16
  export * from "./RoleEnum";
16
17
  export * from "./Run";
17
18
  export * from "./RunMetric";
@@ -31,6 +32,7 @@ export * from "./TestrecordModelParamsValue";
31
32
  export * from "./TestrecordModelDebugInfoValue";
32
33
  export * from "./Testrecord";
33
34
  export * from "./Testset";
35
+ export * from "./TestsetCursorPage";
34
36
  export * from "./Trace";
35
37
  export * from "./UnauthenticatedError";
36
38
  export * from "./UnauthorizedErrorBody";
@@ -28,6 +28,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
28
28
  __exportStar(require("./PaginatedTestcaseResponse"), exports);
29
29
  __exportStar(require("./PromptModelParamsValue"), exports);
30
30
  __exportStar(require("./Prompt"), exports);
31
+ __exportStar(require("./PromptCursorPage"), exports);
31
32
  __exportStar(require("./RoleEnum"), exports);
32
33
  __exportStar(require("./Run"), exports);
33
34
  __exportStar(require("./RunMetric"), exports);
@@ -47,6 +48,7 @@ __exportStar(require("./TestrecordModelParamsValue"), exports);
47
48
  __exportStar(require("./TestrecordModelDebugInfoValue"), exports);
48
49
  __exportStar(require("./Testrecord"), exports);
49
50
  __exportStar(require("./Testset"), exports);
51
+ __exportStar(require("./TestsetCursorPage"), exports);
50
52
  __exportStar(require("./Trace"), exports);
51
53
  __exportStar(require("./UnauthenticatedError"), exports);
52
54
  __exportStar(require("./UnauthorizedErrorBody"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scorecard-ai",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/scorecard-ai/scorecard-node",
6
6
  "license": "See LICENSE",
package/reference.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Testset
4
4
 
5
- <details><summary><code>client.testset.<a href="/src/api/resources/testset/client/Client.ts">get</a>(testsetId) -> Scorecard.Testset</code></summary>
5
+ <details><summary><code>client.testset.<a href="/src/api/resources/testset/client/Client.ts">get</a>({ ...params }) -> Scorecard.TestsetCursorPage</code></summary>
6
6
  <dl>
7
7
  <dd>
8
8
 
@@ -14,7 +14,7 @@
14
14
  <dl>
15
15
  <dd>
16
16
 
17
- Retrieve Testset metadata without Testcase data
17
+ Retrieve all Testsets with cursor-based pagination
18
18
 
19
19
  </dd>
20
20
  </dl>
@@ -30,7 +30,7 @@ Retrieve Testset metadata without Testcase data
30
30
  <dd>
31
31
 
32
32
  ```typescript
33
- await client.testset.get(1);
33
+ await client.testset.get();
34
34
  ```
35
35
 
36
36
  </dd>
@@ -46,7 +46,7 @@ await client.testset.get(1);
46
46
  <dl>
47
47
  <dd>
48
48
 
49
- **testsetId:** `number` — The ID of the Testset to retrieve.
49
+ **request:** `Scorecard.TestsetGetRequest`
50
50
 
51
51
  </dd>
52
52
  </dl>
@@ -692,7 +692,7 @@ await client.testcase.update(1, 1);
692
692
  </dl>
693
693
  </details>
694
694
 
695
- <details><summary><code>client.testcase.<a href="/src/api/resources/testcase/client/Client.ts">batchCopy</a>(testsetId, { ...params }) -> Scorecard.TestCase</code></summary>
695
+ <details><summary><code>client.testcase.<a href="/src/api/resources/testcase/client/Client.ts">batchCopy</a>(testsetId, { ...params }) -> Scorecard.TestCase[]</code></summary>
696
696
  <dl>
697
697
  <dd>
698
698
 
@@ -1617,7 +1617,7 @@ await client.tracing.span("trace_id", "span_id");
1617
1617
  <dl>
1618
1618
  <dd>
1619
1619
 
1620
- Retrieve a prod prompt by name
1620
+ Retrieve a prompt by name, defaulting to the production prompt, unless a tag to select the prompt by is specified
1621
1621
 
1622
1622
  </dd>
1623
1623
  </dl>
@@ -1682,11 +1682,11 @@ await client.prompt.getByName({
1682
1682
  <dl>
1683
1683
  <dd>
1684
1684
 
1685
- Two types of prompts can be created - a root prompt or a child prompt (aka Prompt Version in app).
1685
+ Two types of prompts can be created - a root prompt or a child prompt (aka Prompt Version in the app).
1686
1686
 
1687
- A root prompt can be created by providing the `name` param, and it will always be tagged as prod.
1687
+ A root prompt can be created by providing the `name` param, and it will always be tagged as production.
1688
1688
 
1689
- A child prompt can be created by providing the `parent_id` param. Note that the `name` param in this case will be ignored as all descendents from a root prompt would share the root's name. `is_prod` can also be provided to configure whether a child should be tagged as prod.
1689
+ A child prompt can be created by providing the `parent_id` param. Note that the `name` param in this case will be ignored as all descendants from a root prompt would share the root's name. `is_prod` can also be provided to configure whether a child should be tagged as production.
1690
1690
 
1691
1691
  </dd>
1692
1692
  </dl>
@@ -1713,6 +1713,8 @@ await client.prompt.create({
1713
1713
  param3: 100,
1714
1714
  param4: true,
1715
1715
  },
1716
+ tag: "1.0",
1717
+ projectId: 1,
1716
1718
  });
1717
1719
  ```
1718
1720
 
@@ -1748,6 +1750,69 @@ await client.prompt.create({
1748
1750
  </dl>
1749
1751
  </details>
1750
1752
 
1753
+ <details><summary><code>client.prompt.<a href="/src/api/resources/prompt/client/Client.ts">listPrompts</a>({ ...params }) -> Scorecard.PromptCursorPage</code></summary>
1754
+ <dl>
1755
+ <dd>
1756
+
1757
+ #### 📝 Description
1758
+
1759
+ <dl>
1760
+ <dd>
1761
+
1762
+ <dl>
1763
+ <dd>
1764
+
1765
+ List all prompts with cursor-based pagination
1766
+
1767
+ </dd>
1768
+ </dl>
1769
+ </dd>
1770
+ </dl>
1771
+
1772
+ #### 🔌 Usage
1773
+
1774
+ <dl>
1775
+ <dd>
1776
+
1777
+ <dl>
1778
+ <dd>
1779
+
1780
+ ```typescript
1781
+ await client.prompt.listPrompts();
1782
+ ```
1783
+
1784
+ </dd>
1785
+ </dl>
1786
+ </dd>
1787
+ </dl>
1788
+
1789
+ #### ⚙️ Parameters
1790
+
1791
+ <dl>
1792
+ <dd>
1793
+
1794
+ <dl>
1795
+ <dd>
1796
+
1797
+ **request:** `Scorecard.PromptListPromptsRequest`
1798
+
1799
+ </dd>
1800
+ </dl>
1801
+
1802
+ <dl>
1803
+ <dd>
1804
+
1805
+ **requestOptions:** `Prompt.RequestOptions`
1806
+
1807
+ </dd>
1808
+ </dl>
1809
+ </dd>
1810
+ </dl>
1811
+
1812
+ </dd>
1813
+ </dl>
1814
+ </details>
1815
+
1751
1816
  <details><summary><code>client.prompt.<a href="/src/api/resources/prompt/client/Client.ts">get</a>(id) -> Scorecard.Prompt</code></summary>
1752
1817
  <dl>
1753
1818
  <dd>
@@ -1823,7 +1888,7 @@ await client.prompt.get("id");
1823
1888
  <dl>
1824
1889
  <dd>
1825
1890
 
1826
- Delete a scoring config.
1891
+ Delete a root prompt and all of its children.
1827
1892
 
1828
1893
  </dd>
1829
1894
  </dl>
@@ -1855,7 +1920,7 @@ await client.prompt.delete("id");
1855
1920
  <dl>
1856
1921
  <dd>
1857
1922
 
1858
- **id:** `string` — The id of the scoring config to delete.
1923
+ **id:** `string` — The id of the root prompt to delete.
1859
1924
 
1860
1925
  </dd>
1861
1926
  </dl>
@@ -1983,6 +2048,7 @@ await client.scoringConfig.create({
1983
2048
  name: "Scoring Config Name",
1984
2049
  description: "Description of the scoring config",
1985
2050
  metrics: [1, 2, 3],
2051
+ projectId: 1,
1986
2052
  });
1987
2053
  ```
1988
2054
 
@@ -2080,3 +2146,66 @@ await client.scoringConfig.get("id");
2080
2146
  </dd>
2081
2147
  </dl>
2082
2148
  </details>
2149
+
2150
+ <details><summary><code>client.scoringConfig.<a href="/src/api/resources/scoringConfig/client/Client.ts">delete</a>(id) -> unknown</code></summary>
2151
+ <dl>
2152
+ <dd>
2153
+
2154
+ #### 📝 Description
2155
+
2156
+ <dl>
2157
+ <dd>
2158
+
2159
+ <dl>
2160
+ <dd>
2161
+
2162
+ Delete a scoring config.
2163
+
2164
+ </dd>
2165
+ </dl>
2166
+ </dd>
2167
+ </dl>
2168
+
2169
+ #### 🔌 Usage
2170
+
2171
+ <dl>
2172
+ <dd>
2173
+
2174
+ <dl>
2175
+ <dd>
2176
+
2177
+ ```typescript
2178
+ await client.scoringConfig.delete("id");
2179
+ ```
2180
+
2181
+ </dd>
2182
+ </dl>
2183
+ </dd>
2184
+ </dl>
2185
+
2186
+ #### ⚙️ Parameters
2187
+
2188
+ <dl>
2189
+ <dd>
2190
+
2191
+ <dl>
2192
+ <dd>
2193
+
2194
+ **id:** `string` — The id of the scoring config to delete.
2195
+
2196
+ </dd>
2197
+ </dl>
2198
+
2199
+ <dl>
2200
+ <dd>
2201
+
2202
+ **requestOptions:** `ScoringConfig.RequestOptions`
2203
+
2204
+ </dd>
2205
+ </dl>
2206
+ </dd>
2207
+ </dl>
2208
+
2209
+ </dd>
2210
+ </dl>
2211
+ </details>
@@ -13,6 +13,8 @@ export declare namespace PromptCreateParams {
13
13
  parent_id?: string | null;
14
14
  description?: string | null;
15
15
  model_params?: Record<string, PromptCreateParamsModelParamsValue.Raw | null | undefined> | null;
16
+ tag?: string | null;
16
17
  is_prod?: boolean | null;
18
+ project_id?: number | null;
17
19
  }
18
20
  }
@@ -35,5 +35,7 @@ exports.PromptCreateParams = core.serialization.object({
35
35
  parentId: core.serialization.property("parent_id", core.serialization.string().optional()),
36
36
  description: core.serialization.string().optional(),
37
37
  modelParams: core.serialization.property("model_params", core.serialization.record(core.serialization.string(), PromptCreateParamsModelParamsValue_1.PromptCreateParamsModelParamsValue.optional()).optional()),
38
+ tag: core.serialization.string().optional(),
38
39
  isProd: core.serialization.property("is_prod", core.serialization.boolean().optional()),
40
+ projectId: core.serialization.property("project_id", core.serialization.number().optional()),
39
41
  });
@@ -10,5 +10,6 @@ export declare namespace ScoringConfigCreateParams {
10
10
  name?: string | null;
11
11
  description?: string | null;
12
12
  metrics?: number[] | null;
13
+ project_id?: number | null;
13
14
  }
14
15
  }
@@ -32,4 +32,5 @@ exports.ScoringConfigCreateParams = core.serialization.object({
32
32
  name: core.serialization.string().optional(),
33
33
  description: core.serialization.string().optional(),
34
34
  metrics: core.serialization.list(core.serialization.number()).optional(),
35
+ projectId: core.serialization.property("project_id", core.serialization.number().optional()),
35
36
  });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Scorecard from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { TestCase } from "../../../types/TestCase";
8
+ export declare const Response: core.serialization.Schema<serializers.testcase.batchCopy.Response.Raw, Scorecard.TestCase[]>;
9
+ export declare namespace Response {
10
+ type Raw = TestCase.Raw[];
11
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Response = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const TestCase_1 = require("../../../types/TestCase");
32
+ exports.Response = core.serialization.list(TestCase_1.TestCase);
@@ -1 +1,2 @@
1
+ export * as batchCopy from "./batchCopy";
1
2
  export * from "./requests";
@@ -10,8 +10,22 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
10
  if (k2 === undefined) k2 = k;
11
11
  o[k2] = m[k];
12
12
  }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
13
25
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
27
  };
16
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.batchCopy = void 0;
30
+ exports.batchCopy = __importStar(require("./batchCopy"));
17
31
  __exportStar(require("./requests"), exports);
@@ -16,5 +16,6 @@ export declare namespace TestsetCreateParams {
16
16
  project_id?: number | null;
17
17
  ingestion_method?: IngestionMethod.Raw | null;
18
18
  published?: boolean | null;
19
+ created_by_playground?: boolean | null;
19
20
  }
20
21
  }
@@ -38,4 +38,5 @@ exports.TestsetCreateParams = core.serialization.object({
38
38
  projectId: core.serialization.property("project_id", core.serialization.number().optional()),
39
39
  ingestionMethod: core.serialization.property("ingestion_method", IngestionMethod_1.IngestionMethod.optional()),
40
40
  published: core.serialization.boolean().optional(),
41
+ createdByPlayground: core.serialization.property("created_by_playground", core.serialization.boolean().optional()),
41
42
  });
@@ -20,5 +20,6 @@ export declare namespace Prompt {
20
20
  parent_id?: string | null;
21
21
  merge_parent_id?: string | null;
22
22
  created_at?: string | null;
23
+ project_id?: number | null;
23
24
  }
24
25
  }
@@ -42,4 +42,5 @@ exports.Prompt = core.serialization.object({
42
42
  parentId: core.serialization.property("parent_id", core.serialization.string().optional()),
43
43
  mergeParentId: core.serialization.property("merge_parent_id", core.serialization.string().optional()),
44
44
  createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
45
+ projectId: core.serialization.property("project_id", core.serialization.number().optional()),
45
46
  });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Scorecard from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { Prompt } from "./Prompt";
8
+ export declare const PromptCursorPage: core.serialization.ObjectSchema<serializers.PromptCursorPage.Raw, Scorecard.PromptCursorPage>;
9
+ export declare namespace PromptCursorPage {
10
+ interface Raw {
11
+ items: Prompt.Raw[];
12
+ total?: number | null;
13
+ current_page?: string | null;
14
+ current_page_backwards?: string | null;
15
+ previous_page?: string | null;
16
+ next_page?: string | null;
17
+ }
18
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PromptCursorPage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Prompt_1 = require("./Prompt");
32
+ exports.PromptCursorPage = core.serialization.object({
33
+ items: core.serialization.list(Prompt_1.Prompt),
34
+ total: core.serialization.number().optional(),
35
+ currentPage: core.serialization.property("current_page", core.serialization.string().optional()),
36
+ currentPageBackwards: core.serialization.property("current_page_backwards", core.serialization.string().optional()),
37
+ previousPage: core.serialization.property("previous_page", core.serialization.string().optional()),
38
+ nextPage: core.serialization.property("next_page", core.serialization.string().optional()),
39
+ });
@@ -16,5 +16,6 @@ export declare namespace ScoringConfig {
16
16
  is_archived?: boolean | null;
17
17
  metrics?: number[] | null;
18
18
  created_at?: string | null;
19
+ project_id?: number | null;
19
20
  }
20
21
  }
@@ -38,4 +38,5 @@ exports.ScoringConfig = core.serialization.object({
38
38
  isArchived: core.serialization.property("is_archived", core.serialization.boolean().optional()),
39
39
  metrics: core.serialization.list(core.serialization.number()).optional(),
40
40
  createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
41
+ projectId: core.serialization.property("project_id", core.serialization.number().optional()),
41
42
  });
@@ -20,5 +20,6 @@ export declare namespace Testset {
20
20
  is_archived?: boolean | null;
21
21
  project_id?: number | null;
22
22
  custom_schema?: CustomSchema.Raw | null;
23
+ created_by_playground?: boolean | null;
23
24
  }
24
25
  }
@@ -42,4 +42,5 @@ exports.Testset = core.serialization.object({
42
42
  isArchived: core.serialization.property("is_archived", core.serialization.boolean().optional()),
43
43
  projectId: core.serialization.property("project_id", core.serialization.number().optional()),
44
44
  customSchema: core.serialization.property("custom_schema", CustomSchema_1.CustomSchema.optional()),
45
+ createdByPlayground: core.serialization.property("created_by_playground", core.serialization.boolean().optional()),
45
46
  });
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Scorecard from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { Testset } from "./Testset";
8
+ export declare const TestsetCursorPage: core.serialization.ObjectSchema<serializers.TestsetCursorPage.Raw, Scorecard.TestsetCursorPage>;
9
+ export declare namespace TestsetCursorPage {
10
+ interface Raw {
11
+ items: Testset.Raw[];
12
+ total?: number | null;
13
+ current_page?: string | null;
14
+ current_page_backwards?: string | null;
15
+ previous_page?: string | null;
16
+ next_page?: string | null;
17
+ }
18
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TestsetCursorPage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Testset_1 = require("./Testset");
32
+ exports.TestsetCursorPage = core.serialization.object({
33
+ items: core.serialization.list(Testset_1.Testset),
34
+ total: core.serialization.number().optional(),
35
+ currentPage: core.serialization.property("current_page", core.serialization.string().optional()),
36
+ currentPageBackwards: core.serialization.property("current_page_backwards", core.serialization.string().optional()),
37
+ previousPage: core.serialization.property("previous_page", core.serialization.string().optional()),
38
+ nextPage: core.serialization.property("next_page", core.serialization.string().optional()),
39
+ });
@@ -12,6 +12,7 @@ export * from "./NotFoundErrorBody";
12
12
  export * from "./PaginatedTestcaseResponse";
13
13
  export * from "./PromptModelParamsValue";
14
14
  export * from "./Prompt";
15
+ export * from "./PromptCursorPage";
15
16
  export * from "./RoleEnum";
16
17
  export * from "./Run";
17
18
  export * from "./RunMetric";
@@ -31,6 +32,7 @@ export * from "./TestrecordModelParamsValue";
31
32
  export * from "./TestrecordModelDebugInfoValue";
32
33
  export * from "./Testrecord";
33
34
  export * from "./Testset";
35
+ export * from "./TestsetCursorPage";
34
36
  export * from "./Trace";
35
37
  export * from "./UnauthenticatedError";
36
38
  export * from "./UnauthorizedErrorBody";
@@ -28,6 +28,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
28
28
  __exportStar(require("./PaginatedTestcaseResponse"), exports);
29
29
  __exportStar(require("./PromptModelParamsValue"), exports);
30
30
  __exportStar(require("./Prompt"), exports);
31
+ __exportStar(require("./PromptCursorPage"), exports);
31
32
  __exportStar(require("./RoleEnum"), exports);
32
33
  __exportStar(require("./Run"), exports);
33
34
  __exportStar(require("./RunMetric"), exports);
@@ -47,6 +48,7 @@ __exportStar(require("./TestrecordModelParamsValue"), exports);
47
48
  __exportStar(require("./TestrecordModelDebugInfoValue"), exports);
48
49
  __exportStar(require("./Testrecord"), exports);
49
50
  __exportStar(require("./Testset"), exports);
51
+ __exportStar(require("./TestsetCursorPage"), exports);
50
52
  __exportStar(require("./Trace"), exports);
51
53
  __exportStar(require("./UnauthenticatedError"), exports);
52
54
  __exportStar(require("./UnauthorizedErrorBody"), exports);