@salesforce/lds-adapters-industries-nlpservice 1.229.0-dev1 → 1.229.0-dev10

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.
@@ -7,7 +7,7 @@
7
7
  import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$2 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
- const { keys: ObjectKeys, create: ObjectCreate } = Object;
10
+ const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
11
11
  const { isArray: ArrayIsArray$1 } = Array;
12
12
  /**
13
13
  * Validates an adapter config is well-formed.
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
31
31
  throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
32
32
  }
33
33
  const supported = required.concat(optional);
34
- if (ObjectKeys(config).some(key => !supported.includes(key))) {
34
+ if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
35
35
  throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
36
36
  }
37
37
  }
@@ -71,6 +71,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
71
71
  }
72
72
  const keyPrefix = 'NlpService';
73
73
 
74
+ const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
74
75
  const { isArray: ArrayIsArray } = Array;
75
76
  const { stringify: JSONStringify } = JSON;
76
77
  function createLink(ref) {
@@ -79,11 +80,58 @@ function createLink(ref) {
79
80
  };
80
81
  }
81
82
 
83
+ function validate$4(obj, path = 'NullableAdditionalParametersInputMap') {
84
+ const v_error = (() => {
85
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
86
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
87
+ }
88
+ const obj_keys = ObjectKeys(obj);
89
+ for (let i = 0; i < obj_keys.length; i++) {
90
+ const key = obj_keys[i];
91
+ const obj_prop = obj[key];
92
+ const path_prop = path + '["' + key + '"]';
93
+ if (obj_prop === undefined) {
94
+ return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
95
+ }
96
+ }
97
+ })();
98
+ return v_error === undefined ? null : v_error;
99
+ }
100
+
101
+ function validate$3(obj, path = 'AdditionalParametersInputMap') {
102
+ const v_error = (() => {
103
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
104
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
105
+ }
106
+ if (obj.additionalParameters !== undefined) {
107
+ const obj_additionalParameters = obj.additionalParameters;
108
+ const path_additionalParameters = path + '.additionalParameters';
109
+ const referencepath_additionalParametersValidationError = validate$4(obj_additionalParameters, path_additionalParameters);
110
+ if (referencepath_additionalParametersValidationError !== null) {
111
+ let message = 'Object doesn\'t match NullableAdditionalParametersInputMap (at "' + path_additionalParameters + '")\n';
112
+ message += referencepath_additionalParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
113
+ return new TypeError(message);
114
+ }
115
+ }
116
+ })();
117
+ return v_error === undefined ? null : v_error;
118
+ }
119
+
82
120
  function validate$2(obj, path = 'AINaturalLangProcessResultInputRepresentation') {
83
121
  const v_error = (() => {
84
122
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
85
123
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
86
124
  }
125
+ if (obj.additionalParameters !== undefined) {
126
+ const obj_additionalParameters = obj.additionalParameters;
127
+ const path_additionalParameters = path + '.additionalParameters';
128
+ const referencepath_additionalParametersValidationError = validate$3(obj_additionalParameters, path_additionalParameters);
129
+ if (referencepath_additionalParametersValidationError !== null) {
130
+ let message = 'Object doesn\'t match AdditionalParametersInputMap (at "' + path_additionalParameters + '")\n';
131
+ message += referencepath_additionalParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
132
+ return new TypeError(message);
133
+ }
134
+ }
87
135
  if (obj.query !== undefined) {
88
136
  const obj_query = obj.query;
89
137
  const path_query = path + '.query';
@@ -1,5 +1,6 @@
1
+ import { AdditionalParametersInputMap as AdditionalParametersInputMap_AdditionalParametersInputMap } from './AdditionalParametersInputMap';
1
2
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
- export declare const VERSION = "03c3a2a041972ab9bf12b287f2cfe595";
3
+ export declare const VERSION = "0c058aa70c964e5f9c52617324bc03da";
3
4
  export declare function validate(obj: any, path?: string): TypeError | null;
4
5
  export declare const RepresentationType: string;
5
6
  export declare function normalize(input: AINaturalLangProcessResultInputRepresentation, existing: AINaturalLangProcessResultInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AINaturalLangProcessResultInputRepresentationNormalized;
@@ -14,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
15
  * (none)
15
16
  */
16
17
  export interface AINaturalLangProcessResultInputRepresentationNormalized {
18
+ /** Additional Parameters */
19
+ additionalParameters?: AdditionalParametersInputMap_AdditionalParametersInputMap;
17
20
  /** Query */
18
21
  query?: string;
19
22
  /** Service Type */
@@ -26,6 +29,7 @@ export interface AINaturalLangProcessResultInputRepresentationNormalized {
26
29
  * (none)
27
30
  */
28
31
  export interface AINaturalLangProcessResultInputRepresentation {
32
+ additionalParameters?: AdditionalParametersInputMap_AdditionalParametersInputMap;
29
33
  query?: string;
30
34
  serviceType?: string;
31
35
  }
@@ -0,0 +1,28 @@
1
+ import { NullableAdditionalParametersInputMap as NullableAdditionalParametersInputMap_NullableAdditionalParametersInputMap } from './NullableAdditionalParametersInputMap';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "32a675f18d4e87e59653cde5fb93e006";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: AdditionalParametersInputMap, existing: AdditionalParametersInputMapNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AdditionalParametersInputMapNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: AdditionalParametersInputMapNormalized, incoming: AdditionalParametersInputMapNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AdditionalParametersInputMap, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents a map of additional parameters.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface AdditionalParametersInputMapNormalized {
18
+ additionalParameters?: NullableAdditionalParametersInputMap_NullableAdditionalParametersInputMap;
19
+ }
20
+ /**
21
+ * Represents a map of additional parameters.
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface AdditionalParametersInputMap {
27
+ additionalParameters?: NullableAdditionalParametersInputMap_NullableAdditionalParametersInputMap;
28
+ }
@@ -0,0 +1,31 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "00afa7e60a8201c64074ac5356795a7d";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ErrorRepresentation, existing: ErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ErrorRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ErrorRepresentationNormalized, incoming: ErrorRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents clause results fetched from OpenAI
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ErrorRepresentationNormalized {
17
+ /** Represents error code */
18
+ errorCode: number;
19
+ /** Represents error message */
20
+ errorMessage: string;
21
+ }
22
+ /**
23
+ * Represents clause results fetched from OpenAI
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ErrorRepresentation {
29
+ errorCode: number;
30
+ errorMessage: string;
31
+ }
@@ -0,0 +1,27 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "b175ba6bc288736f40f6c4f59fab798c";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: NullableAdditionalParametersInputMap, existing: NullableAdditionalParametersInputMapNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NullableAdditionalParametersInputMapNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: NullableAdditionalParametersInputMapNormalized, incoming: NullableAdditionalParametersInputMapNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: NullableAdditionalParametersInputMap, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Wrapper for Nullable Map Object.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface NullableAdditionalParametersInputMapNormalized {
17
+ [key: string]: unknown;
18
+ }
19
+ /**
20
+ * Wrapper for Nullable Map Object.
21
+ *
22
+ * Keys:
23
+ * (none)
24
+ */
25
+ export interface NullableAdditionalParametersInputMap {
26
+ [key: string]: unknown;
27
+ }
@@ -0,0 +1,32 @@
1
+ import { SurveyStructRepresentation as SurveyStructRepresentation_SurveyStructRepresentation } from './SurveyStructRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "2be0b5c65b2e7d8a86ccb3827fa81c10";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: OpenAISurveyGenerationRepresentation, existing: OpenAISurveyGenerationRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): OpenAISurveyGenerationRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: OpenAISurveyGenerationRepresentationNormalized, incoming: OpenAISurveyGenerationRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: OpenAISurveyGenerationRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents survey generationr results from OpenAI
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface OpenAISurveyGenerationRepresentationNormalized {
18
+ /** Represents the total count of survey questions */
19
+ questionCount: number;
20
+ /** Represents a list of survey questions */
21
+ questions: Array<SurveyStructRepresentation_SurveyStructRepresentation>;
22
+ }
23
+ /**
24
+ * Represents survey generationr results from OpenAI
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface OpenAISurveyGenerationRepresentation {
30
+ questionCount: number;
31
+ questions: Array<SurveyStructRepresentation_SurveyStructRepresentation>;
32
+ }
@@ -0,0 +1,40 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "82568a3fb0ce245db4c8ff3daf3d32cf";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: SurveyStructRepresentation, existing: SurveyStructRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SurveyStructRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: SurveyStructRepresentationNormalized, incoming: SurveyStructRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SurveyStructRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Contents within a survey question
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface SurveyStructRepresentationNormalized {
17
+ /** List of question choices */
18
+ questionChoices: Array<string>;
19
+ /** The question description */
20
+ questionDescription: string;
21
+ /** The question label */
22
+ questionLabel: string;
23
+ /** Generated question type */
24
+ questionType: string;
25
+ /** Is question required */
26
+ required: boolean;
27
+ }
28
+ /**
29
+ * Contents within a survey question
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface SurveyStructRepresentation {
35
+ questionChoices: Array<string>;
36
+ questionDescription: string;
37
+ questionLabel: string;
38
+ questionType: string;
39
+ required: boolean;
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-nlpservice",
3
- "version": "1.229.0-dev1",
3
+ "version": "1.229.0-dev10",
4
4
  "description": "Ai Natural Language Processing Service",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-nlpservice.js",
@@ -43,11 +43,11 @@
43
43
  "test:compat": "karma start --single-run --compat"
44
44
  },
45
45
  "dependencies": {
46
- "@salesforce/lds-bindings": "1.229.0-dev1"
46
+ "@salesforce/lds-bindings": "1.229.0-dev10"
47
47
  },
48
48
  "devDependencies": {
49
- "@salesforce/lds-compiler-plugins": "1.229.0-dev1",
50
- "@salesforce/lds-karma": "1.229.0-dev1"
49
+ "@salesforce/lds-compiler-plugins": "1.229.0-dev10",
50
+ "@salesforce/lds-karma": "1.229.0-dev10"
51
51
  },
52
52
  "nx": {
53
53
  "targets": {
package/sfdc/index.js CHANGED
@@ -17,7 +17,7 @@ import { withDefaultLuvio } from 'force/ldsEngine';
17
17
  import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$2, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$1, typeCheckConfig as typeCheckConfig$2 } from 'force/luvioEngine';
18
18
 
19
19
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
- const { keys: ObjectKeys, create: ObjectCreate } = Object;
20
+ const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
21
21
  const { isArray: ArrayIsArray$1 } = Array;
22
22
  /**
23
23
  * Validates an adapter config is well-formed.
@@ -41,7 +41,7 @@ function validateConfig(config, adapter, oneOf) {
41
41
  throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
42
42
  }
43
43
  const supported = required.concat(optional);
44
- if (ObjectKeys(config).some(key => !supported.includes(key))) {
44
+ if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
45
45
  throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
46
46
  }
47
47
  }
@@ -81,6 +81,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
81
81
  }
82
82
  const keyPrefix = 'NlpService';
83
83
 
84
+ const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
84
85
  const { isArray: ArrayIsArray } = Array;
85
86
  const { stringify: JSONStringify } = JSON;
86
87
  function createLink(ref) {
@@ -89,11 +90,58 @@ function createLink(ref) {
89
90
  };
90
91
  }
91
92
 
93
+ function validate$4(obj, path = 'NullableAdditionalParametersInputMap') {
94
+ const v_error = (() => {
95
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
96
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
97
+ }
98
+ const obj_keys = ObjectKeys(obj);
99
+ for (let i = 0; i < obj_keys.length; i++) {
100
+ const key = obj_keys[i];
101
+ const obj_prop = obj[key];
102
+ const path_prop = path + '["' + key + '"]';
103
+ if (obj_prop === undefined) {
104
+ return new TypeError('Expected "defined" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
105
+ }
106
+ }
107
+ })();
108
+ return v_error === undefined ? null : v_error;
109
+ }
110
+
111
+ function validate$3(obj, path = 'AdditionalParametersInputMap') {
112
+ const v_error = (() => {
113
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
114
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
115
+ }
116
+ if (obj.additionalParameters !== undefined) {
117
+ const obj_additionalParameters = obj.additionalParameters;
118
+ const path_additionalParameters = path + '.additionalParameters';
119
+ const referencepath_additionalParametersValidationError = validate$4(obj_additionalParameters, path_additionalParameters);
120
+ if (referencepath_additionalParametersValidationError !== null) {
121
+ let message = 'Object doesn\'t match NullableAdditionalParametersInputMap (at "' + path_additionalParameters + '")\n';
122
+ message += referencepath_additionalParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
123
+ return new TypeError(message);
124
+ }
125
+ }
126
+ })();
127
+ return v_error === undefined ? null : v_error;
128
+ }
129
+
92
130
  function validate$2(obj, path = 'AINaturalLangProcessResultInputRepresentation') {
93
131
  const v_error = (() => {
94
132
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
95
133
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
96
134
  }
135
+ if (obj.additionalParameters !== undefined) {
136
+ const obj_additionalParameters = obj.additionalParameters;
137
+ const path_additionalParameters = path + '.additionalParameters';
138
+ const referencepath_additionalParametersValidationError = validate$3(obj_additionalParameters, path_additionalParameters);
139
+ if (referencepath_additionalParametersValidationError !== null) {
140
+ let message = 'Object doesn\'t match AdditionalParametersInputMap (at "' + path_additionalParameters + '")\n';
141
+ message += referencepath_additionalParametersValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
142
+ return new TypeError(message);
143
+ }
144
+ }
97
145
  if (obj.query !== undefined) {
98
146
  const obj_query = obj.query;
99
147
  const path_query = path + '.query';
@@ -569,4 +617,4 @@ withDefaultLuvio((luvio) => {
569
617
  });
570
618
 
571
619
  export { createAINaturalLangProcessResult, getAINaturalLangProcessResultsBySourceId, getAINaturalLangProcessResultsBySourceId_imperative };
572
- // version: 1.229.0-dev1-5b6d3db67
620
+ // version: 1.229.0-dev10-abb060196
package/src/raml/api.raml CHANGED
@@ -25,6 +25,20 @@ annotationTypes:
25
25
  type: string
26
26
  allowedTargets: TypeDeclaration
27
27
  types:
28
+ AdditionalParametersInputMap:
29
+ description: Represents a map of additional parameters.
30
+ properties:
31
+ additionalParameters:
32
+ description: Additional context input parameters.
33
+ type: NullableAdditionalParametersInputMap
34
+ required: false
35
+ type: object
36
+ NullableAdditionalParametersInputMap:
37
+ description: Wrapper for Nullable Map Object.
38
+ type: object
39
+ properties:
40
+ //:
41
+ type: any
28
42
  AINaturalLangProcessResultCollectionRepresentation:
29
43
  description: The output representation of the list for AINaturalLangProcessResult
30
44
  type: object
@@ -45,6 +59,10 @@ types:
45
59
  description: Input representation for AINaturalLangProcessResult
46
60
  type: object
47
61
  properties:
62
+ additionalParameters:
63
+ description: Additional Parameters
64
+ type: AdditionalParametersInputMap
65
+ required: false # TODO Hand-rolled W-9314597
48
66
  query:
49
67
  description: Query
50
68
  type: string
@@ -56,6 +74,7 @@ types:
56
74
  - OpenAIClauseExtraction
57
75
  - OpenAIClauseGeneration
58
76
  - OpenAIEntityRecognition
77
+ - OpenAISurveyGeneration
59
78
  required: false # TODO Hand-rolled W-9314597
60
79
  AINaturalLangProcessResultRepresentation:
61
80
  description: The output representation of the AINaturalLangProcessResult
@@ -102,6 +121,16 @@ types:
102
121
  type: array
103
122
  items:
104
123
  type: string
124
+ ErrorRepresentation:
125
+ description: Represents clause results fetched from OpenAI
126
+ properties:
127
+ errorCode:
128
+ description: Represents error code
129
+ type: integer
130
+ errorMessage:
131
+ description: Represents error message
132
+ type: string
133
+ type: object
105
134
  OpenAIClauseRepresentation:
106
135
  description: Represents clause results fetched from OpenAI
107
136
  type: object
@@ -114,6 +143,39 @@ types:
114
143
  totalResults:
115
144
  description: Represents total number of clauses
116
145
  type: integer
146
+ OpenAISurveyGenerationRepresentation:
147
+ description: Represents survey generationr results from OpenAI
148
+ properties:
149
+ questionCount:
150
+ description: Represents the total count of survey questions
151
+ type: integer
152
+ questions:
153
+ description: Represents a list of survey questions
154
+ items:
155
+ type: SurveyStructRepresentation
156
+ type: array
157
+ type: object
158
+ SurveyStructRepresentation:
159
+ description: Contents within a survey question
160
+ properties:
161
+ questionChoices:
162
+ description: List of question choices
163
+ items:
164
+ type: string
165
+ type: array
166
+ questionDescription:
167
+ description: The question description
168
+ type: string
169
+ questionLabel:
170
+ description: The question label
171
+ type: string
172
+ questionType:
173
+ description: Generated question type
174
+ type: string
175
+ required:
176
+ description: Is question required
177
+ type: boolean
178
+ type: object
117
179
  OpenAIEntityRepresentation:
118
180
  description: Represents entity results fetched from OpenAI
119
181
  type: object
@@ -162,6 +224,7 @@ types:
162
224
  - OpenAIClauseExtraction
163
225
  - OpenAIClauseGeneration
164
226
  - OpenAIEntityRecognition
227
+ - OpenAISurveyGeneration
165
228
  (oas-collectionFormat): csv
166
229
  uriParameters:
167
230
  sourceRecordId: