scorecard-ai 1.1.0 → 1.2.0

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 (100) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +4 -5
  3. package/client.d.mts +11 -11
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +11 -11
  6. package/client.d.ts.map +1 -1
  7. package/client.js +27 -25
  8. package/client.js.map +1 -1
  9. package/client.mjs +16 -14
  10. package/client.mjs.map +1 -1
  11. package/core/resource.d.mts +1 -1
  12. package/core/resource.d.mts.map +1 -1
  13. package/core/resource.d.ts +1 -1
  14. package/core/resource.d.ts.map +1 -1
  15. package/core/resource.js.map +1 -1
  16. package/core/resource.mjs.map +1 -1
  17. package/internal/headers.d.mts.map +1 -1
  18. package/internal/headers.d.ts.map +1 -1
  19. package/internal/headers.js +4 -4
  20. package/internal/headers.js.map +1 -1
  21. package/internal/headers.mjs +4 -4
  22. package/internal/headers.mjs.map +1 -1
  23. package/internal/request-options.d.mts +1 -0
  24. package/internal/request-options.d.mts.map +1 -1
  25. package/internal/request-options.d.ts +1 -0
  26. package/internal/request-options.d.ts.map +1 -1
  27. package/internal/request-options.js.map +1 -1
  28. package/internal/request-options.mjs.map +1 -1
  29. package/internal/uploads.js +1 -1
  30. package/internal/uploads.js.map +1 -1
  31. package/internal/uploads.mjs +1 -1
  32. package/internal/uploads.mjs.map +1 -1
  33. package/internal/utils/log.js +1 -1
  34. package/internal/utils/log.js.map +1 -1
  35. package/internal/utils/log.mjs +1 -1
  36. package/internal/utils/log.mjs.map +1 -1
  37. package/internal/utils/path.d.mts.map +1 -1
  38. package/internal/utils/path.d.ts.map +1 -1
  39. package/internal/utils/path.js.map +1 -1
  40. package/internal/utils/path.mjs +1 -1
  41. package/internal/utils/path.mjs.map +1 -1
  42. package/internal/utils/values.d.mts +2 -0
  43. package/internal/utils/values.d.mts.map +1 -1
  44. package/internal/utils/values.d.ts +2 -0
  45. package/internal/utils/values.d.ts.map +1 -1
  46. package/internal/utils/values.js +4 -1
  47. package/internal/utils/values.js.map +1 -1
  48. package/internal/utils/values.mjs +2 -0
  49. package/internal/utils/values.mjs.map +1 -1
  50. package/package.json +1 -1
  51. package/resources/records.d.mts +18 -7
  52. package/resources/records.d.mts.map +1 -1
  53. package/resources/records.d.ts +18 -7
  54. package/resources/records.d.ts.map +1 -1
  55. package/resources/records.js.map +1 -1
  56. package/resources/records.mjs.map +1 -1
  57. package/resources/scores.d.mts +6 -2
  58. package/resources/scores.d.mts.map +1 -1
  59. package/resources/scores.d.ts +6 -2
  60. package/resources/scores.d.ts.map +1 -1
  61. package/resources/shared.d.mts +3 -1
  62. package/resources/shared.d.mts.map +1 -1
  63. package/resources/shared.d.ts +3 -1
  64. package/resources/shared.d.ts.map +1 -1
  65. package/resources/systems/systems.d.mts +27 -9
  66. package/resources/systems/systems.d.mts.map +1 -1
  67. package/resources/systems/systems.d.ts +27 -9
  68. package/resources/systems/systems.d.ts.map +1 -1
  69. package/resources/systems/versions.d.mts +6 -2
  70. package/resources/systems/versions.d.mts.map +1 -1
  71. package/resources/systems/versions.d.ts +6 -2
  72. package/resources/systems/versions.d.ts.map +1 -1
  73. package/resources/testcases.d.mts +15 -5
  74. package/resources/testcases.d.mts.map +1 -1
  75. package/resources/testcases.d.ts +15 -5
  76. package/resources/testcases.d.ts.map +1 -1
  77. package/resources/testsets.d.mts +9 -3
  78. package/resources/testsets.d.mts.map +1 -1
  79. package/resources/testsets.d.ts +9 -3
  80. package/resources/testsets.d.ts.map +1 -1
  81. package/src/client.ts +37 -25
  82. package/src/core/resource.ts +1 -1
  83. package/src/internal/headers.ts +5 -5
  84. package/src/internal/request-options.ts +1 -0
  85. package/src/internal/uploads.ts +1 -1
  86. package/src/internal/utils/log.ts +1 -1
  87. package/src/internal/utils/path.ts +1 -1
  88. package/src/internal/utils/values.ts +3 -0
  89. package/src/resources/records.ts +6 -7
  90. package/src/resources/scores.ts +2 -2
  91. package/src/resources/shared.ts +1 -1
  92. package/src/resources/systems/systems.ts +9 -9
  93. package/src/resources/systems/versions.ts +2 -2
  94. package/src/resources/testcases.ts +5 -5
  95. package/src/resources/testsets.ts +3 -3
  96. package/src/version.ts +1 -1
  97. package/version.d.mts +1 -1
  98. package/version.d.ts +1 -1
  99. package/version.js +1 -1
  100. package/version.mjs +1 -1
@@ -109,7 +109,7 @@ export interface SystemVersion {
109
109
  /**
110
110
  * The configuration of the system version.
111
111
  */
112
- config: Record<string, unknown>;
112
+ config: { [key: string]: unknown };
113
113
 
114
114
  /**
115
115
  * The name of the system version.
@@ -146,7 +146,7 @@ export interface VersionCreateParams {
146
146
  /**
147
147
  * The configuration of the system version.
148
148
  */
149
- config: Record<string, unknown>;
149
+ config: { [key: string]: unknown };
150
150
 
151
151
  /**
152
152
  * The name of the system version.
@@ -136,18 +136,18 @@ export interface Testcase {
136
136
  * Derived from data based on the Testset's fieldMapping. Contains all fields
137
137
  * marked as expected outputs, including those with validation errors.
138
138
  */
139
- expected: Record<string, unknown>;
139
+ expected: { [key: string]: unknown };
140
140
 
141
141
  /**
142
142
  * Derived from data based on the Testset's fieldMapping. Contains all fields
143
143
  * marked as inputs, including those with validation errors.
144
144
  */
145
- inputs: Record<string, unknown>;
145
+ inputs: { [key: string]: unknown };
146
146
 
147
147
  /**
148
148
  * The JSON data of the Testcase, which is validated against the Testset's schema.
149
149
  */
150
- jsonData: Record<string, unknown>;
150
+ jsonData: { [key: string]: unknown };
151
151
 
152
152
  /**
153
153
  * The ID of the Testset this Testcase belongs to.
@@ -198,7 +198,7 @@ export namespace TestcaseCreateParams {
198
198
  /**
199
199
  * The JSON data of the Testcase, which is validated against the Testset's schema.
200
200
  */
201
- jsonData: Record<string, unknown>;
201
+ jsonData: { [key: string]: unknown };
202
202
  }
203
203
  }
204
204
 
@@ -206,7 +206,7 @@ export interface TestcaseUpdateParams {
206
206
  /**
207
207
  * The JSON data of the Testcase, which is validated against the Testset's schema.
208
208
  */
209
- jsonData: Record<string, unknown>;
209
+ jsonData: { [key: string]: unknown };
210
210
  }
211
211
 
212
212
  export interface TestcaseListParams extends PaginatedResponseParams {}
@@ -162,7 +162,7 @@ export interface Testset {
162
162
  /**
163
163
  * The JSON schema for each Testcase in the Testset.
164
164
  */
165
- jsonSchema: Record<string, unknown>;
165
+ jsonSchema: { [key: string]: unknown };
166
166
 
167
167
  /**
168
168
  * The name of the Testset.
@@ -215,7 +215,7 @@ export interface TestsetCreateParams {
215
215
  /**
216
216
  * The JSON schema for each Testcase in the Testset.
217
217
  */
218
- jsonSchema: Record<string, unknown>;
218
+ jsonSchema: { [key: string]: unknown };
219
219
 
220
220
  /**
221
221
  * The name of the Testset.
@@ -261,7 +261,7 @@ export interface TestsetUpdateParams {
261
261
  /**
262
262
  * The JSON schema for each Testcase in the Testset.
263
263
  */
264
- jsonSchema?: Record<string, unknown>;
264
+ jsonSchema?: { [key: string]: unknown };
265
265
 
266
266
  /**
267
267
  * The name of the Testset.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.1.0'; // x-release-please-version
1
+ export const VERSION = '1.2.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.1.0";
1
+ export declare const VERSION = "1.2.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.1.0";
1
+ export declare const VERSION = "1.2.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.1.0'; // x-release-please-version
4
+ exports.VERSION = '1.2.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.1.0'; // x-release-please-version
1
+ export const VERSION = '1.2.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map