@vendasta/ai-assistants 0.1.0 → 0.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.
@@ -1324,6 +1324,9 @@ class ListPromptResponse {
1324
1324
  if (proto.prompts) {
1325
1325
  m.prompts = proto.prompts.map(Prompt.fromProto);
1326
1326
  }
1327
+ if (proto.deployedPromptVersions) {
1328
+ m.deployedPromptVersions = proto.deployedPromptVersions.map(PromptVersion.fromProto);
1329
+ }
1327
1330
  if (proto.metadata) {
1328
1331
  m.metadata = PagedResponseMetadata.fromProto(proto.metadata);
1329
1332
  }
@@ -1340,6 +1343,9 @@ class ListPromptResponse {
1340
1343
  if (typeof this.prompts !== 'undefined' && this.prompts !== null) {
1341
1344
  toReturn['prompts'] = 'toApiJson' in this.prompts ? this.prompts.toApiJson() : this.prompts;
1342
1345
  }
1346
+ if (typeof this.deployedPromptVersions !== 'undefined' && this.deployedPromptVersions !== null) {
1347
+ toReturn['deployedPromptVersions'] = 'toApiJson' in this.deployedPromptVersions ? this.deployedPromptVersions.toApiJson() : this.deployedPromptVersions;
1348
+ }
1343
1349
  if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1344
1350
  toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1345
1351
  }