keplar-api 0.0.22 → 0.0.24

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 (33) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/models/AttributeKindGroupPurpose.d.ts +1 -0
  4. package/dist/models/AttributeKindGroupPurpose.js +2 -1
  5. package/dist/models/ProjectFileCategory.d.ts +1 -0
  6. package/dist/models/ProjectFileCategory.js +1 -0
  7. package/dist/models/ScreenerQuestionChooseMultiple.d.ts +6 -0
  8. package/dist/models/ScreenerQuestionChooseMultiple.js +2 -0
  9. package/dist/models/ScreenerQuestionChooseMultiplePublic.d.ts +12 -0
  10. package/dist/models/ScreenerQuestionChooseMultiplePublic.js +4 -0
  11. package/dist/models/ScreenerQuestionChooseOne.d.ts +6 -0
  12. package/dist/models/ScreenerQuestionChooseOne.js +2 -0
  13. package/dist/models/ScreenerQuestionChooseOnePublic.d.ts +12 -0
  14. package/dist/models/ScreenerQuestionChooseOnePublic.js +4 -0
  15. package/dist/models/Transcript.d.ts +7 -0
  16. package/dist/models/Transcript.js +3 -0
  17. package/dist/models/TranscriptAttributesInner.d.ts +38 -0
  18. package/dist/models/TranscriptAttributesInner.js +55 -0
  19. package/dist/models/TranscriptResponseAttribute.d.ts +38 -0
  20. package/dist/models/TranscriptResponseAttribute.js +55 -0
  21. package/dist/models/index.d.ts +2 -0
  22. package/dist/models/index.js +2 -0
  23. package/package.json +1 -1
  24. package/src/models/AttributeKindGroupPurpose.ts +2 -1
  25. package/src/models/ProjectFileCategory.ts +1 -0
  26. package/src/models/ScreenerQuestionChooseMultiple.ts +8 -0
  27. package/src/models/ScreenerQuestionChooseMultiplePublic.ts +16 -0
  28. package/src/models/ScreenerQuestionChooseOne.ts +8 -0
  29. package/src/models/ScreenerQuestionChooseOnePublic.ts +16 -0
  30. package/src/models/Transcript.ts +15 -0
  31. package/src/models/TranscriptAttributesInner.ts +75 -0
  32. package/src/models/TranscriptResponseAttribute.ts +75 -0
  33. package/src/models/index.ts +2 -0
@@ -219,9 +219,11 @@ src/models/ThreadKind.ts
219
219
  src/models/ThreadMetadata.ts
220
220
  src/models/TokenKind.ts
221
221
  src/models/Transcript.ts
222
+ src/models/TranscriptAttributesInner.ts
222
223
  src/models/TranscriptMessage.ts
223
224
  src/models/TranscriptMessagesInner.ts
224
225
  src/models/TranscriptQuality.ts
226
+ src/models/TranscriptResponseAttribute.ts
225
227
  src/models/UnauthorizedErrorResponse.ts
226
228
  src/models/UpdateArtifactRequest.ts
227
229
  src/models/UpdateCallForCodeInviteResponseRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## keplar-api@0.0.22
1
+ ## keplar-api@0.0.24
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install keplar-api@0.0.22 --save
39
+ npm install keplar-api@0.0.24 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -16,6 +16,7 @@
16
16
  export declare const AttributeKindGroupPurpose: {
17
17
  readonly ScreenerResponse: "screener_response";
18
18
  readonly Codebook: "codebook";
19
+ readonly SurveyParams: "survey_params";
19
20
  };
20
21
  export type AttributeKindGroupPurpose = typeof AttributeKindGroupPurpose[keyof typeof AttributeKindGroupPurpose];
21
22
  export declare function instanceOfAttributeKindGroupPurpose(value: any): boolean;
@@ -25,7 +25,8 @@ exports.AttributeKindGroupPurposeToJSONTyped = AttributeKindGroupPurposeToJSONTy
25
25
  */
26
26
  exports.AttributeKindGroupPurpose = {
27
27
  ScreenerResponse: 'screener_response',
28
- Codebook: 'codebook'
28
+ Codebook: 'codebook',
29
+ SurveyParams: 'survey_params'
29
30
  };
30
31
  function instanceOfAttributeKindGroupPurpose(value) {
31
32
  for (var key in exports.AttributeKindGroupPurpose) {
@@ -17,6 +17,7 @@ export declare const ProjectFileCategory: {
17
17
  readonly Transcript: "transcript";
18
18
  readonly Attachment: "attachment";
19
19
  readonly VisualAsset: "visual_asset";
20
+ readonly ScreenerQuestionImage: "screener_question_image";
20
21
  readonly Report: "report";
21
22
  readonly Analysis: "analysis";
22
23
  readonly Other: "other";
@@ -27,6 +27,7 @@ exports.ProjectFileCategory = {
27
27
  Transcript: 'transcript',
28
28
  Attachment: 'attachment',
29
29
  VisualAsset: 'visual_asset',
30
+ ScreenerQuestionImage: 'screener_question_image',
30
31
  Report: 'report',
31
32
  Analysis: 'analysis',
32
33
  Other: 'other'
@@ -28,6 +28,12 @@ export interface ScreenerQuestionChooseMultiple {
28
28
  * @memberof ScreenerQuestionChooseMultiple
29
29
  */
30
30
  question: string;
31
+ /**
32
+ * File ID for question image
33
+ * @type {string}
34
+ * @memberof ScreenerQuestionChooseMultiple
35
+ */
36
+ imageFileId?: string;
31
37
  /**
32
38
  *
33
39
  * @type {{ [key: string]: ScreenerQuestionChooseMultipleOptionsValue; }}
@@ -55,6 +55,7 @@ function ScreenerQuestionChooseMultipleFromJSONTyped(json, ignoreDiscriminator)
55
55
  return {
56
56
  'type': json['type'],
57
57
  'question': json['question'],
58
+ 'imageFileId': json['imageFileId'] == null ? undefined : json['imageFileId'],
58
59
  'options': ((0, runtime_1.mapValues)(json['options'], ScreenerQuestionChooseMultipleOptionsValue_1.ScreenerQuestionChooseMultipleOptionsValueFromJSON)),
59
60
  'minPassingOptions': json['minPassingOptions'],
60
61
  'randomizeOrder': json['randomizeOrder'] == null ? undefined : json['randomizeOrder'],
@@ -73,6 +74,7 @@ function ScreenerQuestionChooseMultipleToJSONTyped(value, ignoreDiscriminator) {
73
74
  return {
74
75
  'type': value['type'],
75
76
  'question': value['question'],
77
+ 'imageFileId': value['imageFileId'],
76
78
  'options': ((0, runtime_1.mapValues)(value['options'], ScreenerQuestionChooseMultipleOptionsValue_1.ScreenerQuestionChooseMultipleOptionsValueToJSON)),
77
79
  'minPassingOptions': value['minPassingOptions'],
78
80
  'randomizeOrder': value['randomizeOrder'],
@@ -28,6 +28,12 @@ export interface ScreenerQuestionChooseMultiplePublic {
28
28
  * @memberof ScreenerQuestionChooseMultiplePublic
29
29
  */
30
30
  question: string;
31
+ /**
32
+ * File ID for question image
33
+ * @type {string}
34
+ * @memberof ScreenerQuestionChooseMultiplePublic
35
+ */
36
+ imageFileId?: string;
31
37
  /**
32
38
  *
33
39
  * @type {{ [key: string]: ScreenerQuestionChooseMultipleOptionsValue; }}
@@ -54,6 +60,12 @@ export interface ScreenerQuestionChooseMultiplePublic {
54
60
  * @memberof ScreenerQuestionChooseMultiplePublic
55
61
  */
56
62
  showSelectNoneOfAbove: boolean;
63
+ /**
64
+ * Signed URL for question image (enriched for participant view)
65
+ * @type {string}
66
+ * @memberof ScreenerQuestionChooseMultiplePublic
67
+ */
68
+ imageUrl?: string;
57
69
  }
58
70
  /**
59
71
  * @export
@@ -53,10 +53,12 @@ function ScreenerQuestionChooseMultiplePublicFromJSONTyped(json, ignoreDiscrimin
53
53
  return {
54
54
  'type': json['type'],
55
55
  'question': json['question'],
56
+ 'imageFileId': json['imageFileId'] == null ? undefined : json['imageFileId'],
56
57
  'options': ((0, runtime_1.mapValues)(json['options'], ScreenerQuestionChooseMultipleOptionsValue_1.ScreenerQuestionChooseMultipleOptionsValueFromJSON)),
57
58
  'randomizeOrder': json['randomizeOrder'] == null ? undefined : json['randomizeOrder'],
58
59
  'showSelectAllOfAbove': json['showSelectAllOfAbove'],
59
60
  'showSelectNoneOfAbove': json['showSelectNoneOfAbove'],
61
+ 'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
60
62
  };
61
63
  }
62
64
  function ScreenerQuestionChooseMultiplePublicToJSON(json) {
@@ -70,9 +72,11 @@ function ScreenerQuestionChooseMultiplePublicToJSONTyped(value, ignoreDiscrimina
70
72
  return {
71
73
  'type': value['type'],
72
74
  'question': value['question'],
75
+ 'imageFileId': value['imageFileId'],
73
76
  'options': ((0, runtime_1.mapValues)(value['options'], ScreenerQuestionChooseMultipleOptionsValue_1.ScreenerQuestionChooseMultipleOptionsValueToJSON)),
74
77
  'randomizeOrder': value['randomizeOrder'],
75
78
  'showSelectAllOfAbove': value['showSelectAllOfAbove'],
76
79
  'showSelectNoneOfAbove': value['showSelectNoneOfAbove'],
80
+ 'imageUrl': value['imageUrl'],
77
81
  };
78
82
  }
@@ -27,6 +27,12 @@ export interface ScreenerQuestionChooseOne {
27
27
  * @memberof ScreenerQuestionChooseOne
28
28
  */
29
29
  question: string;
30
+ /**
31
+ * File ID for question image
32
+ * @type {string}
33
+ * @memberof ScreenerQuestionChooseOne
34
+ */
35
+ imageFileId?: string;
30
36
  /**
31
37
  *
32
38
  * @type {Array<string>}
@@ -49,6 +49,7 @@ function ScreenerQuestionChooseOneFromJSONTyped(json, ignoreDiscriminator) {
49
49
  return {
50
50
  'type': json['type'],
51
51
  'question': json['question'],
52
+ 'imageFileId': json['imageFileId'] == null ? undefined : json['imageFileId'],
52
53
  'options': json['options'],
53
54
  'passingOptions': json['passingOptions'],
54
55
  };
@@ -64,6 +65,7 @@ function ScreenerQuestionChooseOneToJSONTyped(value, ignoreDiscriminator) {
64
65
  return {
65
66
  'type': value['type'],
66
67
  'question': value['question'],
68
+ 'imageFileId': value['imageFileId'],
67
69
  'options': value['options'],
68
70
  'passingOptions': value['passingOptions'],
69
71
  };
@@ -27,12 +27,24 @@ export interface ScreenerQuestionChooseOnePublic {
27
27
  * @memberof ScreenerQuestionChooseOnePublic
28
28
  */
29
29
  question: string;
30
+ /**
31
+ * File ID for question image
32
+ * @type {string}
33
+ * @memberof ScreenerQuestionChooseOnePublic
34
+ */
35
+ imageFileId?: string;
30
36
  /**
31
37
  *
32
38
  * @type {Array<string>}
33
39
  * @memberof ScreenerQuestionChooseOnePublic
34
40
  */
35
41
  options: Array<string>;
42
+ /**
43
+ * Signed URL for question image (enriched for participant view)
44
+ * @type {string}
45
+ * @memberof ScreenerQuestionChooseOnePublic
46
+ */
47
+ imageUrl?: string;
36
48
  }
37
49
  /**
38
50
  * @export
@@ -47,7 +47,9 @@ function ScreenerQuestionChooseOnePublicFromJSONTyped(json, ignoreDiscriminator)
47
47
  return {
48
48
  'type': json['type'],
49
49
  'question': json['question'],
50
+ 'imageFileId': json['imageFileId'] == null ? undefined : json['imageFileId'],
50
51
  'options': json['options'],
52
+ 'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
51
53
  };
52
54
  }
53
55
  function ScreenerQuestionChooseOnePublicToJSON(json) {
@@ -61,6 +63,8 @@ function ScreenerQuestionChooseOnePublicToJSONTyped(value, ignoreDiscriminator)
61
63
  return {
62
64
  'type': value['type'],
63
65
  'question': value['question'],
66
+ 'imageFileId': value['imageFileId'],
64
67
  'options': value['options'],
68
+ 'imageUrl': value['imageUrl'],
65
69
  };
66
70
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { TranscriptAttributesInner } from './TranscriptAttributesInner';
12
13
  import type { TranscriptMessagesInner } from './TranscriptMessagesInner';
13
14
  /**
14
15
  *
@@ -34,6 +35,12 @@ export interface Transcript {
34
35
  * @memberof Transcript
35
36
  */
36
37
  messages: Array<TranscriptMessagesInner>;
38
+ /**
39
+ *
40
+ * @type {Array<TranscriptAttributesInner>}
41
+ * @memberof Transcript
42
+ */
43
+ attributes?: Array<TranscriptAttributesInner>;
37
44
  }
38
45
  /**
39
46
  * Check if a given object implements the Transcript interface.
@@ -18,6 +18,7 @@ exports.TranscriptFromJSON = TranscriptFromJSON;
18
18
  exports.TranscriptFromJSONTyped = TranscriptFromJSONTyped;
19
19
  exports.TranscriptToJSON = TranscriptToJSON;
20
20
  exports.TranscriptToJSONTyped = TranscriptToJSONTyped;
21
+ var TranscriptAttributesInner_1 = require("./TranscriptAttributesInner");
21
22
  var TranscriptMessagesInner_1 = require("./TranscriptMessagesInner");
22
23
  /**
23
24
  * Check if a given object implements the Transcript interface.
@@ -42,6 +43,7 @@ function TranscriptFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'id': json['id'],
43
44
  'responseId': json['responseId'],
44
45
  'messages': (json['messages'].map(TranscriptMessagesInner_1.TranscriptMessagesInnerFromJSON)),
46
+ 'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(TranscriptAttributesInner_1.TranscriptAttributesInnerFromJSON)),
45
47
  };
46
48
  }
47
49
  function TranscriptToJSON(json) {
@@ -56,5 +58,6 @@ function TranscriptToJSONTyped(value, ignoreDiscriminator) {
56
58
  'id': value['id'],
57
59
  'responseId': value['responseId'],
58
60
  'messages': (value['messages'].map(TranscriptMessagesInner_1.TranscriptMessagesInnerToJSON)),
61
+ 'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(TranscriptAttributesInner_1.TranscriptAttributesInnerToJSON)),
59
62
  };
60
63
  }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TranscriptAttributesInner
16
+ */
17
+ export interface TranscriptAttributesInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TranscriptAttributesInner
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TranscriptAttributesInner
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TranscriptAttributesInner interface.
33
+ */
34
+ export declare function instanceOfTranscriptAttributesInner(value: object): value is TranscriptAttributesInner;
35
+ export declare function TranscriptAttributesInnerFromJSON(json: any): TranscriptAttributesInner;
36
+ export declare function TranscriptAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptAttributesInner;
37
+ export declare function TranscriptAttributesInnerToJSON(json: any): TranscriptAttributesInner;
38
+ export declare function TranscriptAttributesInnerToJSONTyped(value?: TranscriptAttributesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fastify Template API
6
+ * API documentation using Swagger
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfTranscriptAttributesInner = instanceOfTranscriptAttributesInner;
17
+ exports.TranscriptAttributesInnerFromJSON = TranscriptAttributesInnerFromJSON;
18
+ exports.TranscriptAttributesInnerFromJSONTyped = TranscriptAttributesInnerFromJSONTyped;
19
+ exports.TranscriptAttributesInnerToJSON = TranscriptAttributesInnerToJSON;
20
+ exports.TranscriptAttributesInnerToJSONTyped = TranscriptAttributesInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TranscriptAttributesInner interface.
23
+ */
24
+ function instanceOfTranscriptAttributesInner(value) {
25
+ if (!('label' in value) || value['label'] === undefined)
26
+ return false;
27
+ if (!('value' in value) || value['value'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function TranscriptAttributesInnerFromJSON(json) {
32
+ return TranscriptAttributesInnerFromJSONTyped(json, false);
33
+ }
34
+ function TranscriptAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'label': json['label'],
40
+ 'value': json['value'],
41
+ };
42
+ }
43
+ function TranscriptAttributesInnerToJSON(json) {
44
+ return TranscriptAttributesInnerToJSONTyped(json, false);
45
+ }
46
+ function TranscriptAttributesInnerToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'label': value['label'],
53
+ 'value': value['value'],
54
+ };
55
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Fastify Template API
3
+ * API documentation using Swagger
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TranscriptResponseAttribute
16
+ */
17
+ export interface TranscriptResponseAttribute {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TranscriptResponseAttribute
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TranscriptResponseAttribute
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TranscriptResponseAttribute interface.
33
+ */
34
+ export declare function instanceOfTranscriptResponseAttribute(value: object): value is TranscriptResponseAttribute;
35
+ export declare function TranscriptResponseAttributeFromJSON(json: any): TranscriptResponseAttribute;
36
+ export declare function TranscriptResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptResponseAttribute;
37
+ export declare function TranscriptResponseAttributeToJSON(json: any): TranscriptResponseAttribute;
38
+ export declare function TranscriptResponseAttributeToJSONTyped(value?: TranscriptResponseAttribute | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fastify Template API
6
+ * API documentation using Swagger
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfTranscriptResponseAttribute = instanceOfTranscriptResponseAttribute;
17
+ exports.TranscriptResponseAttributeFromJSON = TranscriptResponseAttributeFromJSON;
18
+ exports.TranscriptResponseAttributeFromJSONTyped = TranscriptResponseAttributeFromJSONTyped;
19
+ exports.TranscriptResponseAttributeToJSON = TranscriptResponseAttributeToJSON;
20
+ exports.TranscriptResponseAttributeToJSONTyped = TranscriptResponseAttributeToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the TranscriptResponseAttribute interface.
23
+ */
24
+ function instanceOfTranscriptResponseAttribute(value) {
25
+ if (!('label' in value) || value['label'] === undefined)
26
+ return false;
27
+ if (!('value' in value) || value['value'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function TranscriptResponseAttributeFromJSON(json) {
32
+ return TranscriptResponseAttributeFromJSONTyped(json, false);
33
+ }
34
+ function TranscriptResponseAttributeFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'label': json['label'],
40
+ 'value': json['value'],
41
+ };
42
+ }
43
+ function TranscriptResponseAttributeToJSON(json) {
44
+ return TranscriptResponseAttributeToJSONTyped(json, false);
45
+ }
46
+ function TranscriptResponseAttributeToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'label': value['label'],
53
+ 'value': value['value'],
54
+ };
55
+ }
@@ -211,9 +211,11 @@ export * from './ThreadKind';
211
211
  export * from './ThreadMetadata';
212
212
  export * from './TokenKind';
213
213
  export * from './Transcript';
214
+ export * from './TranscriptAttributesInner';
214
215
  export * from './TranscriptMessage';
215
216
  export * from './TranscriptMessagesInner';
216
217
  export * from './TranscriptQuality';
218
+ export * from './TranscriptResponseAttribute';
217
219
  export * from './UnauthorizedErrorResponse';
218
220
  export * from './UpdateArtifactRequest';
219
221
  export * from './UpdateCallForCodeInviteResponseRequest';
@@ -229,9 +229,11 @@ __exportStar(require("./ThreadKind"), exports);
229
229
  __exportStar(require("./ThreadMetadata"), exports);
230
230
  __exportStar(require("./TokenKind"), exports);
231
231
  __exportStar(require("./Transcript"), exports);
232
+ __exportStar(require("./TranscriptAttributesInner"), exports);
232
233
  __exportStar(require("./TranscriptMessage"), exports);
233
234
  __exportStar(require("./TranscriptMessagesInner"), exports);
234
235
  __exportStar(require("./TranscriptQuality"), exports);
236
+ __exportStar(require("./TranscriptResponseAttribute"), exports);
235
237
  __exportStar(require("./UnauthorizedErrorResponse"), exports);
236
238
  __exportStar(require("./UpdateArtifactRequest"), exports);
237
239
  __exportStar(require("./UpdateCallForCodeInviteResponseRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keplar-api",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "OpenAPI client for keplar-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,7 +19,8 @@
19
19
  */
20
20
  export const AttributeKindGroupPurpose = {
21
21
  ScreenerResponse: 'screener_response',
22
- Codebook: 'codebook'
22
+ Codebook: 'codebook',
23
+ SurveyParams: 'survey_params'
23
24
  } as const;
24
25
  export type AttributeKindGroupPurpose = typeof AttributeKindGroupPurpose[keyof typeof AttributeKindGroupPurpose];
25
26
 
@@ -21,6 +21,7 @@ export const ProjectFileCategory = {
21
21
  Transcript: 'transcript',
22
22
  Attachment: 'attachment',
23
23
  VisualAsset: 'visual_asset',
24
+ ScreenerQuestionImage: 'screener_question_image',
24
25
  Report: 'report',
25
26
  Analysis: 'analysis',
26
27
  Other: 'other'
@@ -39,6 +39,12 @@ export interface ScreenerQuestionChooseMultiple {
39
39
  * @memberof ScreenerQuestionChooseMultiple
40
40
  */
41
41
  question: string;
42
+ /**
43
+ * File ID for question image
44
+ * @type {string}
45
+ * @memberof ScreenerQuestionChooseMultiple
46
+ */
47
+ imageFileId?: string;
42
48
  /**
43
49
  *
44
50
  * @type {{ [key: string]: ScreenerQuestionChooseMultipleOptionsValue; }}
@@ -106,6 +112,7 @@ export function ScreenerQuestionChooseMultipleFromJSONTyped(json: any, ignoreDis
106
112
 
107
113
  'type': json['type'],
108
114
  'question': json['question'],
115
+ 'imageFileId': json['imageFileId'] == null ? undefined : json['imageFileId'],
109
116
  'options': (mapValues(json['options'], ScreenerQuestionChooseMultipleOptionsValueFromJSON)),
110
117
  'minPassingOptions': json['minPassingOptions'],
111
118
  'randomizeOrder': json['randomizeOrder'] == null ? undefined : json['randomizeOrder'],
@@ -127,6 +134,7 @@ export function ScreenerQuestionChooseMultipleToJSONTyped(value?: ScreenerQuesti
127
134
 
128
135
  'type': value['type'],
129
136
  'question': value['question'],
137
+ 'imageFileId': value['imageFileId'],
130
138
  'options': (mapValues(value['options'], ScreenerQuestionChooseMultipleOptionsValueToJSON)),
131
139
  'minPassingOptions': value['minPassingOptions'],
132
140
  'randomizeOrder': value['randomizeOrder'],
@@ -39,6 +39,12 @@ export interface ScreenerQuestionChooseMultiplePublic {
39
39
  * @memberof ScreenerQuestionChooseMultiplePublic
40
40
  */
41
41
  question: string;
42
+ /**
43
+ * File ID for question image
44
+ * @type {string}
45
+ * @memberof ScreenerQuestionChooseMultiplePublic
46
+ */
47
+ imageFileId?: string;
42
48
  /**
43
49
  *
44
50
  * @type {{ [key: string]: ScreenerQuestionChooseMultipleOptionsValue; }}
@@ -63,6 +69,12 @@ export interface ScreenerQuestionChooseMultiplePublic {
63
69
  * @memberof ScreenerQuestionChooseMultiplePublic
64
70
  */
65
71
  showSelectNoneOfAbove: boolean;
72
+ /**
73
+ * Signed URL for question image (enriched for participant view)
74
+ * @type {string}
75
+ * @memberof ScreenerQuestionChooseMultiplePublic
76
+ */
77
+ imageUrl?: string;
66
78
  }
67
79
 
68
80
 
@@ -99,10 +111,12 @@ export function ScreenerQuestionChooseMultiplePublicFromJSONTyped(json: any, ign
99
111
 
100
112
  'type': json['type'],
101
113
  'question': json['question'],
114
+ 'imageFileId': json['imageFileId'] == null ? undefined : json['imageFileId'],
102
115
  'options': (mapValues(json['options'], ScreenerQuestionChooseMultipleOptionsValueFromJSON)),
103
116
  'randomizeOrder': json['randomizeOrder'] == null ? undefined : json['randomizeOrder'],
104
117
  'showSelectAllOfAbove': json['showSelectAllOfAbove'],
105
118
  'showSelectNoneOfAbove': json['showSelectNoneOfAbove'],
119
+ 'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
106
120
  };
107
121
  }
108
122
 
@@ -119,10 +133,12 @@ export function ScreenerQuestionChooseMultiplePublicToJSONTyped(value?: Screener
119
133
 
120
134
  'type': value['type'],
121
135
  'question': value['question'],
136
+ 'imageFileId': value['imageFileId'],
122
137
  'options': (mapValues(value['options'], ScreenerQuestionChooseMultipleOptionsValueToJSON)),
123
138
  'randomizeOrder': value['randomizeOrder'],
124
139
  'showSelectAllOfAbove': value['showSelectAllOfAbove'],
125
140
  'showSelectNoneOfAbove': value['showSelectNoneOfAbove'],
141
+ 'imageUrl': value['imageUrl'],
126
142
  };
127
143
  }
128
144
 
@@ -31,6 +31,12 @@ export interface ScreenerQuestionChooseOne {
31
31
  * @memberof ScreenerQuestionChooseOne
32
32
  */
33
33
  question: string;
34
+ /**
35
+ * File ID for question image
36
+ * @type {string}
37
+ * @memberof ScreenerQuestionChooseOne
38
+ */
39
+ imageFileId?: string;
34
40
  /**
35
41
  *
36
42
  * @type {Array<string>}
@@ -78,6 +84,7 @@ export function ScreenerQuestionChooseOneFromJSONTyped(json: any, ignoreDiscrimi
78
84
 
79
85
  'type': json['type'],
80
86
  'question': json['question'],
87
+ 'imageFileId': json['imageFileId'] == null ? undefined : json['imageFileId'],
81
88
  'options': json['options'],
82
89
  'passingOptions': json['passingOptions'],
83
90
  };
@@ -96,6 +103,7 @@ export function ScreenerQuestionChooseOneToJSONTyped(value?: ScreenerQuestionCho
96
103
 
97
104
  'type': value['type'],
98
105
  'question': value['question'],
106
+ 'imageFileId': value['imageFileId'],
99
107
  'options': value['options'],
100
108
  'passingOptions': value['passingOptions'],
101
109
  };
@@ -31,12 +31,24 @@ export interface ScreenerQuestionChooseOnePublic {
31
31
  * @memberof ScreenerQuestionChooseOnePublic
32
32
  */
33
33
  question: string;
34
+ /**
35
+ * File ID for question image
36
+ * @type {string}
37
+ * @memberof ScreenerQuestionChooseOnePublic
38
+ */
39
+ imageFileId?: string;
34
40
  /**
35
41
  *
36
42
  * @type {Array<string>}
37
43
  * @memberof ScreenerQuestionChooseOnePublic
38
44
  */
39
45
  options: Array<string>;
46
+ /**
47
+ * Signed URL for question image (enriched for participant view)
48
+ * @type {string}
49
+ * @memberof ScreenerQuestionChooseOnePublic
50
+ */
51
+ imageUrl?: string;
40
52
  }
41
53
 
42
54
 
@@ -71,7 +83,9 @@ export function ScreenerQuestionChooseOnePublicFromJSONTyped(json: any, ignoreDi
71
83
 
72
84
  'type': json['type'],
73
85
  'question': json['question'],
86
+ 'imageFileId': json['imageFileId'] == null ? undefined : json['imageFileId'],
74
87
  'options': json['options'],
88
+ 'imageUrl': json['imageUrl'] == null ? undefined : json['imageUrl'],
75
89
  };
76
90
  }
77
91
 
@@ -88,7 +102,9 @@ export function ScreenerQuestionChooseOnePublicToJSONTyped(value?: ScreenerQuest
88
102
 
89
103
  'type': value['type'],
90
104
  'question': value['question'],
105
+ 'imageFileId': value['imageFileId'],
91
106
  'options': value['options'],
107
+ 'imageUrl': value['imageUrl'],
92
108
  };
93
109
  }
94
110
 
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TranscriptAttributesInner } from './TranscriptAttributesInner';
17
+ import {
18
+ TranscriptAttributesInnerFromJSON,
19
+ TranscriptAttributesInnerFromJSONTyped,
20
+ TranscriptAttributesInnerToJSON,
21
+ TranscriptAttributesInnerToJSONTyped,
22
+ } from './TranscriptAttributesInner';
16
23
  import type { TranscriptMessagesInner } from './TranscriptMessagesInner';
17
24
  import {
18
25
  TranscriptMessagesInnerFromJSON,
@@ -45,6 +52,12 @@ export interface Transcript {
45
52
  * @memberof Transcript
46
53
  */
47
54
  messages: Array<TranscriptMessagesInner>;
55
+ /**
56
+ *
57
+ * @type {Array<TranscriptAttributesInner>}
58
+ * @memberof Transcript
59
+ */
60
+ attributes?: Array<TranscriptAttributesInner>;
48
61
  }
49
62
 
50
63
  /**
@@ -70,6 +83,7 @@ export function TranscriptFromJSONTyped(json: any, ignoreDiscriminator: boolean)
70
83
  'id': json['id'],
71
84
  'responseId': json['responseId'],
72
85
  'messages': ((json['messages'] as Array<any>).map(TranscriptMessagesInnerFromJSON)),
86
+ 'attributes': json['attributes'] == null ? undefined : ((json['attributes'] as Array<any>).map(TranscriptAttributesInnerFromJSON)),
73
87
  };
74
88
  }
75
89
 
@@ -87,6 +101,7 @@ export function TranscriptToJSONTyped(value?: Transcript | null, ignoreDiscrimin
87
101
  'id': value['id'],
88
102
  'responseId': value['responseId'],
89
103
  'messages': ((value['messages'] as Array<any>).map(TranscriptMessagesInnerToJSON)),
104
+ 'attributes': value['attributes'] == null ? undefined : ((value['attributes'] as Array<any>).map(TranscriptAttributesInnerToJSON)),
90
105
  };
91
106
  }
92
107
 
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface TranscriptAttributesInner
20
+ */
21
+ export interface TranscriptAttributesInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof TranscriptAttributesInner
26
+ */
27
+ label: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TranscriptAttributesInner
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the TranscriptAttributesInner interface.
38
+ */
39
+ export function instanceOfTranscriptAttributesInner(value: object): value is TranscriptAttributesInner {
40
+ if (!('label' in value) || value['label'] === undefined) return false;
41
+ if (!('value' in value) || value['value'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function TranscriptAttributesInnerFromJSON(json: any): TranscriptAttributesInner {
46
+ return TranscriptAttributesInnerFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function TranscriptAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptAttributesInner {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'label': json['label'],
56
+ 'value': json['value'],
57
+ };
58
+ }
59
+
60
+ export function TranscriptAttributesInnerToJSON(json: any): TranscriptAttributesInner {
61
+ return TranscriptAttributesInnerToJSONTyped(json, false);
62
+ }
63
+
64
+ export function TranscriptAttributesInnerToJSONTyped(value?: TranscriptAttributesInner | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'label': value['label'],
72
+ 'value': value['value'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fastify Template API
5
+ * API documentation using Swagger
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface TranscriptResponseAttribute
20
+ */
21
+ export interface TranscriptResponseAttribute {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof TranscriptResponseAttribute
26
+ */
27
+ label: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TranscriptResponseAttribute
32
+ */
33
+ value: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the TranscriptResponseAttribute interface.
38
+ */
39
+ export function instanceOfTranscriptResponseAttribute(value: object): value is TranscriptResponseAttribute {
40
+ if (!('label' in value) || value['label'] === undefined) return false;
41
+ if (!('value' in value) || value['value'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function TranscriptResponseAttributeFromJSON(json: any): TranscriptResponseAttribute {
46
+ return TranscriptResponseAttributeFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function TranscriptResponseAttributeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TranscriptResponseAttribute {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'label': json['label'],
56
+ 'value': json['value'],
57
+ };
58
+ }
59
+
60
+ export function TranscriptResponseAttributeToJSON(json: any): TranscriptResponseAttribute {
61
+ return TranscriptResponseAttributeToJSONTyped(json, false);
62
+ }
63
+
64
+ export function TranscriptResponseAttributeToJSONTyped(value?: TranscriptResponseAttribute | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'label': value['label'],
72
+ 'value': value['value'],
73
+ };
74
+ }
75
+
@@ -213,9 +213,11 @@ export * from './ThreadKind';
213
213
  export * from './ThreadMetadata';
214
214
  export * from './TokenKind';
215
215
  export * from './Transcript';
216
+ export * from './TranscriptAttributesInner';
216
217
  export * from './TranscriptMessage';
217
218
  export * from './TranscriptMessagesInner';
218
219
  export * from './TranscriptQuality';
220
+ export * from './TranscriptResponseAttribute';
219
221
  export * from './UnauthorizedErrorResponse';
220
222
  export * from './UpdateArtifactRequest';
221
223
  export * from './UpdateCallForCodeInviteResponseRequest';