@ideascol/agents-generator-sdk 0.3.0 → 0.3.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.
- package/dist/bin/cli.js +112 -40
- package/dist/index.js +112 -40
- package/dist/lib/clients/agents-generator/services/AdminCredentialsService.d.ts +17 -11
- package/dist/lib/clients/agents-generator/services/AdminFileLibraryService.d.ts +13 -9
- package/dist/lib/clients/agents-generator/services/CredentialsService.d.ts +17 -11
- package/dist/lib/clients/agents-generator/services/FileLibraryService.d.ts +13 -9
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -1049,16 +1049,13 @@ var init_AdminConversationsService = __esm(() => {
|
|
|
1049
1049
|
|
|
1050
1050
|
// src/lib/clients/agents-generator/services/AdminCredentialsService.ts
|
|
1051
1051
|
class AdminCredentialsService {
|
|
1052
|
-
static
|
|
1053
|
-
return request(OpenAPI, {
|
|
1054
|
-
method: "GET",
|
|
1055
|
-
url: "/credentials"
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
static createCredential(requestBody) {
|
|
1052
|
+
static createCredential(requestBody, workspaceId) {
|
|
1059
1053
|
return request(OpenAPI, {
|
|
1060
1054
|
method: "POST",
|
|
1061
1055
|
url: "/credentials",
|
|
1056
|
+
query: {
|
|
1057
|
+
workspace_id: workspaceId
|
|
1058
|
+
},
|
|
1062
1059
|
body: requestBody,
|
|
1063
1060
|
mediaType: "application/json",
|
|
1064
1061
|
errors: {
|
|
@@ -1066,25 +1063,43 @@ class AdminCredentialsService {
|
|
|
1066
1063
|
}
|
|
1067
1064
|
});
|
|
1068
1065
|
}
|
|
1069
|
-
static
|
|
1066
|
+
static getCredentials(workspaceId) {
|
|
1067
|
+
return request(OpenAPI, {
|
|
1068
|
+
method: "GET",
|
|
1069
|
+
url: "/credentials",
|
|
1070
|
+
query: {
|
|
1071
|
+
workspace_id: workspaceId
|
|
1072
|
+
},
|
|
1073
|
+
errors: {
|
|
1074
|
+
422: `Validation Error`
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
static getCredential(credentialId, workspaceId) {
|
|
1070
1079
|
return request(OpenAPI, {
|
|
1071
1080
|
method: "GET",
|
|
1072
1081
|
url: "/credentials/{credential_id}",
|
|
1073
1082
|
path: {
|
|
1074
1083
|
credential_id: credentialId
|
|
1075
1084
|
},
|
|
1085
|
+
query: {
|
|
1086
|
+
workspace_id: workspaceId
|
|
1087
|
+
},
|
|
1076
1088
|
errors: {
|
|
1077
1089
|
422: `Validation Error`
|
|
1078
1090
|
}
|
|
1079
1091
|
});
|
|
1080
1092
|
}
|
|
1081
|
-
static updateCredential(credentialId, requestBody) {
|
|
1093
|
+
static updateCredential(credentialId, requestBody, workspaceId) {
|
|
1082
1094
|
return request(OpenAPI, {
|
|
1083
1095
|
method: "PUT",
|
|
1084
1096
|
url: "/credentials/{credential_id}",
|
|
1085
1097
|
path: {
|
|
1086
1098
|
credential_id: credentialId
|
|
1087
1099
|
},
|
|
1100
|
+
query: {
|
|
1101
|
+
workspace_id: workspaceId
|
|
1102
|
+
},
|
|
1088
1103
|
body: requestBody,
|
|
1089
1104
|
mediaType: "application/json",
|
|
1090
1105
|
errors: {
|
|
@@ -1092,25 +1107,31 @@ class AdminCredentialsService {
|
|
|
1092
1107
|
}
|
|
1093
1108
|
});
|
|
1094
1109
|
}
|
|
1095
|
-
static deleteCredential(credentialId) {
|
|
1110
|
+
static deleteCredential(credentialId, workspaceId) {
|
|
1096
1111
|
return request(OpenAPI, {
|
|
1097
1112
|
method: "DELETE",
|
|
1098
1113
|
url: "/credentials/{credential_id}",
|
|
1099
1114
|
path: {
|
|
1100
1115
|
credential_id: credentialId
|
|
1101
1116
|
},
|
|
1117
|
+
query: {
|
|
1118
|
+
workspace_id: workspaceId
|
|
1119
|
+
},
|
|
1102
1120
|
errors: {
|
|
1103
1121
|
422: `Validation Error`
|
|
1104
1122
|
}
|
|
1105
1123
|
});
|
|
1106
1124
|
}
|
|
1107
|
-
static getCredentialDecrypted(credentialId) {
|
|
1125
|
+
static getCredentialDecrypted(credentialId, workspaceId) {
|
|
1108
1126
|
return request(OpenAPI, {
|
|
1109
1127
|
method: "GET",
|
|
1110
1128
|
url: "/credentials/{credential_id}/decrypt",
|
|
1111
1129
|
path: {
|
|
1112
1130
|
credential_id: credentialId
|
|
1113
1131
|
},
|
|
1132
|
+
query: {
|
|
1133
|
+
workspace_id: workspaceId
|
|
1134
|
+
},
|
|
1114
1135
|
errors: {
|
|
1115
1136
|
422: `Validation Error`
|
|
1116
1137
|
}
|
|
@@ -1124,16 +1145,13 @@ var init_AdminCredentialsService = __esm(() => {
|
|
|
1124
1145
|
|
|
1125
1146
|
// src/lib/clients/agents-generator/services/AdminFileLibraryService.ts
|
|
1126
1147
|
class AdminFileLibraryService {
|
|
1127
|
-
static
|
|
1128
|
-
return request(OpenAPI, {
|
|
1129
|
-
method: "GET",
|
|
1130
|
-
url: "/file-library/buckets"
|
|
1131
|
-
});
|
|
1132
|
-
}
|
|
1133
|
-
static createBucket(requestBody) {
|
|
1148
|
+
static createBucket(requestBody, workspaceId) {
|
|
1134
1149
|
return request(OpenAPI, {
|
|
1135
1150
|
method: "POST",
|
|
1136
1151
|
url: "/file-library/buckets",
|
|
1152
|
+
query: {
|
|
1153
|
+
workspace_id: workspaceId
|
|
1154
|
+
},
|
|
1137
1155
|
body: requestBody,
|
|
1138
1156
|
mediaType: "application/json",
|
|
1139
1157
|
errors: {
|
|
@@ -1141,25 +1159,43 @@ class AdminFileLibraryService {
|
|
|
1141
1159
|
}
|
|
1142
1160
|
});
|
|
1143
1161
|
}
|
|
1144
|
-
static
|
|
1162
|
+
static getBuckets(workspaceId) {
|
|
1163
|
+
return request(OpenAPI, {
|
|
1164
|
+
method: "GET",
|
|
1165
|
+
url: "/file-library/buckets",
|
|
1166
|
+
query: {
|
|
1167
|
+
workspace_id: workspaceId
|
|
1168
|
+
},
|
|
1169
|
+
errors: {
|
|
1170
|
+
422: `Validation Error`
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
}
|
|
1174
|
+
static getBucket(bucketId, workspaceId) {
|
|
1145
1175
|
return request(OpenAPI, {
|
|
1146
1176
|
method: "GET",
|
|
1147
1177
|
url: "/file-library/buckets/{bucket_id}",
|
|
1148
1178
|
path: {
|
|
1149
1179
|
bucket_id: bucketId
|
|
1150
1180
|
},
|
|
1181
|
+
query: {
|
|
1182
|
+
workspace_id: workspaceId
|
|
1183
|
+
},
|
|
1151
1184
|
errors: {
|
|
1152
1185
|
422: `Validation Error`
|
|
1153
1186
|
}
|
|
1154
1187
|
});
|
|
1155
1188
|
}
|
|
1156
|
-
static deleteBucket(bucketId) {
|
|
1189
|
+
static deleteBucket(bucketId, workspaceId) {
|
|
1157
1190
|
return request(OpenAPI, {
|
|
1158
1191
|
method: "DELETE",
|
|
1159
1192
|
url: "/file-library/buckets/{bucket_id}",
|
|
1160
1193
|
path: {
|
|
1161
1194
|
bucket_id: bucketId
|
|
1162
1195
|
},
|
|
1196
|
+
query: {
|
|
1197
|
+
workspace_id: workspaceId
|
|
1198
|
+
},
|
|
1163
1199
|
errors: {
|
|
1164
1200
|
422: `Validation Error`
|
|
1165
1201
|
}
|
|
@@ -1621,16 +1657,13 @@ var init_ConversationsService = __esm(() => {
|
|
|
1621
1657
|
|
|
1622
1658
|
// src/lib/clients/agents-generator/services/CredentialsService.ts
|
|
1623
1659
|
class CredentialsService {
|
|
1624
|
-
static
|
|
1625
|
-
return request(OpenAPI, {
|
|
1626
|
-
method: "GET",
|
|
1627
|
-
url: "/credentials"
|
|
1628
|
-
});
|
|
1629
|
-
}
|
|
1630
|
-
static createCredential(requestBody) {
|
|
1660
|
+
static createCredential(requestBody, workspaceId) {
|
|
1631
1661
|
return request(OpenAPI, {
|
|
1632
1662
|
method: "POST",
|
|
1633
1663
|
url: "/credentials",
|
|
1664
|
+
query: {
|
|
1665
|
+
workspace_id: workspaceId
|
|
1666
|
+
},
|
|
1634
1667
|
body: requestBody,
|
|
1635
1668
|
mediaType: "application/json",
|
|
1636
1669
|
errors: {
|
|
@@ -1638,25 +1671,43 @@ class CredentialsService {
|
|
|
1638
1671
|
}
|
|
1639
1672
|
});
|
|
1640
1673
|
}
|
|
1641
|
-
static
|
|
1674
|
+
static getCredentials(workspaceId) {
|
|
1675
|
+
return request(OpenAPI, {
|
|
1676
|
+
method: "GET",
|
|
1677
|
+
url: "/credentials",
|
|
1678
|
+
query: {
|
|
1679
|
+
workspace_id: workspaceId
|
|
1680
|
+
},
|
|
1681
|
+
errors: {
|
|
1682
|
+
422: `Validation Error`
|
|
1683
|
+
}
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
static getCredential(credentialId, workspaceId) {
|
|
1642
1687
|
return request(OpenAPI, {
|
|
1643
1688
|
method: "GET",
|
|
1644
1689
|
url: "/credentials/{credential_id}",
|
|
1645
1690
|
path: {
|
|
1646
1691
|
credential_id: credentialId
|
|
1647
1692
|
},
|
|
1693
|
+
query: {
|
|
1694
|
+
workspace_id: workspaceId
|
|
1695
|
+
},
|
|
1648
1696
|
errors: {
|
|
1649
1697
|
422: `Validation Error`
|
|
1650
1698
|
}
|
|
1651
1699
|
});
|
|
1652
1700
|
}
|
|
1653
|
-
static updateCredential(credentialId, requestBody) {
|
|
1701
|
+
static updateCredential(credentialId, requestBody, workspaceId) {
|
|
1654
1702
|
return request(OpenAPI, {
|
|
1655
1703
|
method: "PUT",
|
|
1656
1704
|
url: "/credentials/{credential_id}",
|
|
1657
1705
|
path: {
|
|
1658
1706
|
credential_id: credentialId
|
|
1659
1707
|
},
|
|
1708
|
+
query: {
|
|
1709
|
+
workspace_id: workspaceId
|
|
1710
|
+
},
|
|
1660
1711
|
body: requestBody,
|
|
1661
1712
|
mediaType: "application/json",
|
|
1662
1713
|
errors: {
|
|
@@ -1664,25 +1715,31 @@ class CredentialsService {
|
|
|
1664
1715
|
}
|
|
1665
1716
|
});
|
|
1666
1717
|
}
|
|
1667
|
-
static deleteCredential(credentialId) {
|
|
1718
|
+
static deleteCredential(credentialId, workspaceId) {
|
|
1668
1719
|
return request(OpenAPI, {
|
|
1669
1720
|
method: "DELETE",
|
|
1670
1721
|
url: "/credentials/{credential_id}",
|
|
1671
1722
|
path: {
|
|
1672
1723
|
credential_id: credentialId
|
|
1673
1724
|
},
|
|
1725
|
+
query: {
|
|
1726
|
+
workspace_id: workspaceId
|
|
1727
|
+
},
|
|
1674
1728
|
errors: {
|
|
1675
1729
|
422: `Validation Error`
|
|
1676
1730
|
}
|
|
1677
1731
|
});
|
|
1678
1732
|
}
|
|
1679
|
-
static getCredentialDecrypted(credentialId) {
|
|
1733
|
+
static getCredentialDecrypted(credentialId, workspaceId) {
|
|
1680
1734
|
return request(OpenAPI, {
|
|
1681
1735
|
method: "GET",
|
|
1682
1736
|
url: "/credentials/{credential_id}/decrypt",
|
|
1683
1737
|
path: {
|
|
1684
1738
|
credential_id: credentialId
|
|
1685
1739
|
},
|
|
1740
|
+
query: {
|
|
1741
|
+
workspace_id: workspaceId
|
|
1742
|
+
},
|
|
1686
1743
|
errors: {
|
|
1687
1744
|
422: `Validation Error`
|
|
1688
1745
|
}
|
|
@@ -1696,16 +1753,13 @@ var init_CredentialsService = __esm(() => {
|
|
|
1696
1753
|
|
|
1697
1754
|
// src/lib/clients/agents-generator/services/FileLibraryService.ts
|
|
1698
1755
|
class FileLibraryService {
|
|
1699
|
-
static
|
|
1700
|
-
return request(OpenAPI, {
|
|
1701
|
-
method: "GET",
|
|
1702
|
-
url: "/file-library/buckets"
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
static createBucket(requestBody) {
|
|
1756
|
+
static createBucket(requestBody, workspaceId) {
|
|
1706
1757
|
return request(OpenAPI, {
|
|
1707
1758
|
method: "POST",
|
|
1708
1759
|
url: "/file-library/buckets",
|
|
1760
|
+
query: {
|
|
1761
|
+
workspace_id: workspaceId
|
|
1762
|
+
},
|
|
1709
1763
|
body: requestBody,
|
|
1710
1764
|
mediaType: "application/json",
|
|
1711
1765
|
errors: {
|
|
@@ -1713,25 +1767,43 @@ class FileLibraryService {
|
|
|
1713
1767
|
}
|
|
1714
1768
|
});
|
|
1715
1769
|
}
|
|
1716
|
-
static
|
|
1770
|
+
static getBuckets(workspaceId) {
|
|
1771
|
+
return request(OpenAPI, {
|
|
1772
|
+
method: "GET",
|
|
1773
|
+
url: "/file-library/buckets",
|
|
1774
|
+
query: {
|
|
1775
|
+
workspace_id: workspaceId
|
|
1776
|
+
},
|
|
1777
|
+
errors: {
|
|
1778
|
+
422: `Validation Error`
|
|
1779
|
+
}
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1782
|
+
static getBucket(bucketId, workspaceId) {
|
|
1717
1783
|
return request(OpenAPI, {
|
|
1718
1784
|
method: "GET",
|
|
1719
1785
|
url: "/file-library/buckets/{bucket_id}",
|
|
1720
1786
|
path: {
|
|
1721
1787
|
bucket_id: bucketId
|
|
1722
1788
|
},
|
|
1789
|
+
query: {
|
|
1790
|
+
workspace_id: workspaceId
|
|
1791
|
+
},
|
|
1723
1792
|
errors: {
|
|
1724
1793
|
422: `Validation Error`
|
|
1725
1794
|
}
|
|
1726
1795
|
});
|
|
1727
1796
|
}
|
|
1728
|
-
static deleteBucket(bucketId) {
|
|
1797
|
+
static deleteBucket(bucketId, workspaceId) {
|
|
1729
1798
|
return request(OpenAPI, {
|
|
1730
1799
|
method: "DELETE",
|
|
1731
1800
|
url: "/file-library/buckets/{bucket_id}",
|
|
1732
1801
|
path: {
|
|
1733
1802
|
bucket_id: bucketId
|
|
1734
1803
|
},
|
|
1804
|
+
query: {
|
|
1805
|
+
workspace_id: workspaceId
|
|
1806
|
+
},
|
|
1735
1807
|
errors: {
|
|
1736
1808
|
422: `Validation Error`
|
|
1737
1809
|
}
|
package/dist/index.js
CHANGED
|
@@ -617,16 +617,13 @@ var init_AdminConversationsService = __esm(() => {
|
|
|
617
617
|
|
|
618
618
|
// src/lib/clients/agents-generator/services/AdminCredentialsService.ts
|
|
619
619
|
class AdminCredentialsService {
|
|
620
|
-
static
|
|
621
|
-
return request(OpenAPI, {
|
|
622
|
-
method: "GET",
|
|
623
|
-
url: "/credentials"
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
static createCredential(requestBody) {
|
|
620
|
+
static createCredential(requestBody, workspaceId) {
|
|
627
621
|
return request(OpenAPI, {
|
|
628
622
|
method: "POST",
|
|
629
623
|
url: "/credentials",
|
|
624
|
+
query: {
|
|
625
|
+
workspace_id: workspaceId
|
|
626
|
+
},
|
|
630
627
|
body: requestBody,
|
|
631
628
|
mediaType: "application/json",
|
|
632
629
|
errors: {
|
|
@@ -634,25 +631,43 @@ class AdminCredentialsService {
|
|
|
634
631
|
}
|
|
635
632
|
});
|
|
636
633
|
}
|
|
637
|
-
static
|
|
634
|
+
static getCredentials(workspaceId) {
|
|
635
|
+
return request(OpenAPI, {
|
|
636
|
+
method: "GET",
|
|
637
|
+
url: "/credentials",
|
|
638
|
+
query: {
|
|
639
|
+
workspace_id: workspaceId
|
|
640
|
+
},
|
|
641
|
+
errors: {
|
|
642
|
+
422: `Validation Error`
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
static getCredential(credentialId, workspaceId) {
|
|
638
647
|
return request(OpenAPI, {
|
|
639
648
|
method: "GET",
|
|
640
649
|
url: "/credentials/{credential_id}",
|
|
641
650
|
path: {
|
|
642
651
|
credential_id: credentialId
|
|
643
652
|
},
|
|
653
|
+
query: {
|
|
654
|
+
workspace_id: workspaceId
|
|
655
|
+
},
|
|
644
656
|
errors: {
|
|
645
657
|
422: `Validation Error`
|
|
646
658
|
}
|
|
647
659
|
});
|
|
648
660
|
}
|
|
649
|
-
static updateCredential(credentialId, requestBody) {
|
|
661
|
+
static updateCredential(credentialId, requestBody, workspaceId) {
|
|
650
662
|
return request(OpenAPI, {
|
|
651
663
|
method: "PUT",
|
|
652
664
|
url: "/credentials/{credential_id}",
|
|
653
665
|
path: {
|
|
654
666
|
credential_id: credentialId
|
|
655
667
|
},
|
|
668
|
+
query: {
|
|
669
|
+
workspace_id: workspaceId
|
|
670
|
+
},
|
|
656
671
|
body: requestBody,
|
|
657
672
|
mediaType: "application/json",
|
|
658
673
|
errors: {
|
|
@@ -660,25 +675,31 @@ class AdminCredentialsService {
|
|
|
660
675
|
}
|
|
661
676
|
});
|
|
662
677
|
}
|
|
663
|
-
static deleteCredential(credentialId) {
|
|
678
|
+
static deleteCredential(credentialId, workspaceId) {
|
|
664
679
|
return request(OpenAPI, {
|
|
665
680
|
method: "DELETE",
|
|
666
681
|
url: "/credentials/{credential_id}",
|
|
667
682
|
path: {
|
|
668
683
|
credential_id: credentialId
|
|
669
684
|
},
|
|
685
|
+
query: {
|
|
686
|
+
workspace_id: workspaceId
|
|
687
|
+
},
|
|
670
688
|
errors: {
|
|
671
689
|
422: `Validation Error`
|
|
672
690
|
}
|
|
673
691
|
});
|
|
674
692
|
}
|
|
675
|
-
static getCredentialDecrypted(credentialId) {
|
|
693
|
+
static getCredentialDecrypted(credentialId, workspaceId) {
|
|
676
694
|
return request(OpenAPI, {
|
|
677
695
|
method: "GET",
|
|
678
696
|
url: "/credentials/{credential_id}/decrypt",
|
|
679
697
|
path: {
|
|
680
698
|
credential_id: credentialId
|
|
681
699
|
},
|
|
700
|
+
query: {
|
|
701
|
+
workspace_id: workspaceId
|
|
702
|
+
},
|
|
682
703
|
errors: {
|
|
683
704
|
422: `Validation Error`
|
|
684
705
|
}
|
|
@@ -692,16 +713,13 @@ var init_AdminCredentialsService = __esm(() => {
|
|
|
692
713
|
|
|
693
714
|
// src/lib/clients/agents-generator/services/AdminFileLibraryService.ts
|
|
694
715
|
class AdminFileLibraryService {
|
|
695
|
-
static
|
|
696
|
-
return request(OpenAPI, {
|
|
697
|
-
method: "GET",
|
|
698
|
-
url: "/file-library/buckets"
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
static createBucket(requestBody) {
|
|
716
|
+
static createBucket(requestBody, workspaceId) {
|
|
702
717
|
return request(OpenAPI, {
|
|
703
718
|
method: "POST",
|
|
704
719
|
url: "/file-library/buckets",
|
|
720
|
+
query: {
|
|
721
|
+
workspace_id: workspaceId
|
|
722
|
+
},
|
|
705
723
|
body: requestBody,
|
|
706
724
|
mediaType: "application/json",
|
|
707
725
|
errors: {
|
|
@@ -709,25 +727,43 @@ class AdminFileLibraryService {
|
|
|
709
727
|
}
|
|
710
728
|
});
|
|
711
729
|
}
|
|
712
|
-
static
|
|
730
|
+
static getBuckets(workspaceId) {
|
|
731
|
+
return request(OpenAPI, {
|
|
732
|
+
method: "GET",
|
|
733
|
+
url: "/file-library/buckets",
|
|
734
|
+
query: {
|
|
735
|
+
workspace_id: workspaceId
|
|
736
|
+
},
|
|
737
|
+
errors: {
|
|
738
|
+
422: `Validation Error`
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
static getBucket(bucketId, workspaceId) {
|
|
713
743
|
return request(OpenAPI, {
|
|
714
744
|
method: "GET",
|
|
715
745
|
url: "/file-library/buckets/{bucket_id}",
|
|
716
746
|
path: {
|
|
717
747
|
bucket_id: bucketId
|
|
718
748
|
},
|
|
749
|
+
query: {
|
|
750
|
+
workspace_id: workspaceId
|
|
751
|
+
},
|
|
719
752
|
errors: {
|
|
720
753
|
422: `Validation Error`
|
|
721
754
|
}
|
|
722
755
|
});
|
|
723
756
|
}
|
|
724
|
-
static deleteBucket(bucketId) {
|
|
757
|
+
static deleteBucket(bucketId, workspaceId) {
|
|
725
758
|
return request(OpenAPI, {
|
|
726
759
|
method: "DELETE",
|
|
727
760
|
url: "/file-library/buckets/{bucket_id}",
|
|
728
761
|
path: {
|
|
729
762
|
bucket_id: bucketId
|
|
730
763
|
},
|
|
764
|
+
query: {
|
|
765
|
+
workspace_id: workspaceId
|
|
766
|
+
},
|
|
731
767
|
errors: {
|
|
732
768
|
422: `Validation Error`
|
|
733
769
|
}
|
|
@@ -1189,16 +1225,13 @@ var init_ConversationsService = __esm(() => {
|
|
|
1189
1225
|
|
|
1190
1226
|
// src/lib/clients/agents-generator/services/CredentialsService.ts
|
|
1191
1227
|
class CredentialsService {
|
|
1192
|
-
static
|
|
1193
|
-
return request(OpenAPI, {
|
|
1194
|
-
method: "GET",
|
|
1195
|
-
url: "/credentials"
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
static createCredential(requestBody) {
|
|
1228
|
+
static createCredential(requestBody, workspaceId) {
|
|
1199
1229
|
return request(OpenAPI, {
|
|
1200
1230
|
method: "POST",
|
|
1201
1231
|
url: "/credentials",
|
|
1232
|
+
query: {
|
|
1233
|
+
workspace_id: workspaceId
|
|
1234
|
+
},
|
|
1202
1235
|
body: requestBody,
|
|
1203
1236
|
mediaType: "application/json",
|
|
1204
1237
|
errors: {
|
|
@@ -1206,25 +1239,43 @@ class CredentialsService {
|
|
|
1206
1239
|
}
|
|
1207
1240
|
});
|
|
1208
1241
|
}
|
|
1209
|
-
static
|
|
1242
|
+
static getCredentials(workspaceId) {
|
|
1243
|
+
return request(OpenAPI, {
|
|
1244
|
+
method: "GET",
|
|
1245
|
+
url: "/credentials",
|
|
1246
|
+
query: {
|
|
1247
|
+
workspace_id: workspaceId
|
|
1248
|
+
},
|
|
1249
|
+
errors: {
|
|
1250
|
+
422: `Validation Error`
|
|
1251
|
+
}
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
static getCredential(credentialId, workspaceId) {
|
|
1210
1255
|
return request(OpenAPI, {
|
|
1211
1256
|
method: "GET",
|
|
1212
1257
|
url: "/credentials/{credential_id}",
|
|
1213
1258
|
path: {
|
|
1214
1259
|
credential_id: credentialId
|
|
1215
1260
|
},
|
|
1261
|
+
query: {
|
|
1262
|
+
workspace_id: workspaceId
|
|
1263
|
+
},
|
|
1216
1264
|
errors: {
|
|
1217
1265
|
422: `Validation Error`
|
|
1218
1266
|
}
|
|
1219
1267
|
});
|
|
1220
1268
|
}
|
|
1221
|
-
static updateCredential(credentialId, requestBody) {
|
|
1269
|
+
static updateCredential(credentialId, requestBody, workspaceId) {
|
|
1222
1270
|
return request(OpenAPI, {
|
|
1223
1271
|
method: "PUT",
|
|
1224
1272
|
url: "/credentials/{credential_id}",
|
|
1225
1273
|
path: {
|
|
1226
1274
|
credential_id: credentialId
|
|
1227
1275
|
},
|
|
1276
|
+
query: {
|
|
1277
|
+
workspace_id: workspaceId
|
|
1278
|
+
},
|
|
1228
1279
|
body: requestBody,
|
|
1229
1280
|
mediaType: "application/json",
|
|
1230
1281
|
errors: {
|
|
@@ -1232,25 +1283,31 @@ class CredentialsService {
|
|
|
1232
1283
|
}
|
|
1233
1284
|
});
|
|
1234
1285
|
}
|
|
1235
|
-
static deleteCredential(credentialId) {
|
|
1286
|
+
static deleteCredential(credentialId, workspaceId) {
|
|
1236
1287
|
return request(OpenAPI, {
|
|
1237
1288
|
method: "DELETE",
|
|
1238
1289
|
url: "/credentials/{credential_id}",
|
|
1239
1290
|
path: {
|
|
1240
1291
|
credential_id: credentialId
|
|
1241
1292
|
},
|
|
1293
|
+
query: {
|
|
1294
|
+
workspace_id: workspaceId
|
|
1295
|
+
},
|
|
1242
1296
|
errors: {
|
|
1243
1297
|
422: `Validation Error`
|
|
1244
1298
|
}
|
|
1245
1299
|
});
|
|
1246
1300
|
}
|
|
1247
|
-
static getCredentialDecrypted(credentialId) {
|
|
1301
|
+
static getCredentialDecrypted(credentialId, workspaceId) {
|
|
1248
1302
|
return request(OpenAPI, {
|
|
1249
1303
|
method: "GET",
|
|
1250
1304
|
url: "/credentials/{credential_id}/decrypt",
|
|
1251
1305
|
path: {
|
|
1252
1306
|
credential_id: credentialId
|
|
1253
1307
|
},
|
|
1308
|
+
query: {
|
|
1309
|
+
workspace_id: workspaceId
|
|
1310
|
+
},
|
|
1254
1311
|
errors: {
|
|
1255
1312
|
422: `Validation Error`
|
|
1256
1313
|
}
|
|
@@ -1264,16 +1321,13 @@ var init_CredentialsService = __esm(() => {
|
|
|
1264
1321
|
|
|
1265
1322
|
// src/lib/clients/agents-generator/services/FileLibraryService.ts
|
|
1266
1323
|
class FileLibraryService {
|
|
1267
|
-
static
|
|
1268
|
-
return request(OpenAPI, {
|
|
1269
|
-
method: "GET",
|
|
1270
|
-
url: "/file-library/buckets"
|
|
1271
|
-
});
|
|
1272
|
-
}
|
|
1273
|
-
static createBucket(requestBody) {
|
|
1324
|
+
static createBucket(requestBody, workspaceId) {
|
|
1274
1325
|
return request(OpenAPI, {
|
|
1275
1326
|
method: "POST",
|
|
1276
1327
|
url: "/file-library/buckets",
|
|
1328
|
+
query: {
|
|
1329
|
+
workspace_id: workspaceId
|
|
1330
|
+
},
|
|
1277
1331
|
body: requestBody,
|
|
1278
1332
|
mediaType: "application/json",
|
|
1279
1333
|
errors: {
|
|
@@ -1281,25 +1335,43 @@ class FileLibraryService {
|
|
|
1281
1335
|
}
|
|
1282
1336
|
});
|
|
1283
1337
|
}
|
|
1284
|
-
static
|
|
1338
|
+
static getBuckets(workspaceId) {
|
|
1339
|
+
return request(OpenAPI, {
|
|
1340
|
+
method: "GET",
|
|
1341
|
+
url: "/file-library/buckets",
|
|
1342
|
+
query: {
|
|
1343
|
+
workspace_id: workspaceId
|
|
1344
|
+
},
|
|
1345
|
+
errors: {
|
|
1346
|
+
422: `Validation Error`
|
|
1347
|
+
}
|
|
1348
|
+
});
|
|
1349
|
+
}
|
|
1350
|
+
static getBucket(bucketId, workspaceId) {
|
|
1285
1351
|
return request(OpenAPI, {
|
|
1286
1352
|
method: "GET",
|
|
1287
1353
|
url: "/file-library/buckets/{bucket_id}",
|
|
1288
1354
|
path: {
|
|
1289
1355
|
bucket_id: bucketId
|
|
1290
1356
|
},
|
|
1357
|
+
query: {
|
|
1358
|
+
workspace_id: workspaceId
|
|
1359
|
+
},
|
|
1291
1360
|
errors: {
|
|
1292
1361
|
422: `Validation Error`
|
|
1293
1362
|
}
|
|
1294
1363
|
});
|
|
1295
1364
|
}
|
|
1296
|
-
static deleteBucket(bucketId) {
|
|
1365
|
+
static deleteBucket(bucketId, workspaceId) {
|
|
1297
1366
|
return request(OpenAPI, {
|
|
1298
1367
|
method: "DELETE",
|
|
1299
1368
|
url: "/file-library/buckets/{bucket_id}",
|
|
1300
1369
|
path: {
|
|
1301
1370
|
bucket_id: bucketId
|
|
1302
1371
|
},
|
|
1372
|
+
query: {
|
|
1373
|
+
workspace_id: workspaceId
|
|
1374
|
+
},
|
|
1303
1375
|
errors: {
|
|
1304
1376
|
422: `Validation Error`
|
|
1305
1377
|
}
|
|
@@ -3,51 +3,57 @@ import type { CredentialUpdate } from '../models/CredentialUpdate';
|
|
|
3
3
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
4
|
export declare class AdminCredentialsService {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Create Credential
|
|
7
|
+
* Create a new credential
|
|
8
|
+
* @param requestBody
|
|
9
|
+
* @param workspaceId
|
|
8
10
|
* @returns any Successful Response
|
|
9
11
|
* @throws ApiError
|
|
10
12
|
*/
|
|
11
|
-
static
|
|
13
|
+
static createCredential(requestBody: CredentialCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param
|
|
15
|
+
* Get Credentials
|
|
16
|
+
* Get all credentials for a user
|
|
17
|
+
* @param workspaceId
|
|
16
18
|
* @returns any Successful Response
|
|
17
19
|
* @throws ApiError
|
|
18
20
|
*/
|
|
19
|
-
static
|
|
21
|
+
static getCredentials(workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
20
22
|
/**
|
|
21
23
|
* Get Credential
|
|
22
24
|
* Get a specific credential by ID
|
|
23
25
|
* @param credentialId
|
|
26
|
+
* @param workspaceId
|
|
24
27
|
* @returns any Successful Response
|
|
25
28
|
* @throws ApiError
|
|
26
29
|
*/
|
|
27
|
-
static getCredential(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
30
|
+
static getCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
28
31
|
/**
|
|
29
32
|
* Update Credential
|
|
30
33
|
* Update a credential
|
|
31
34
|
* @param credentialId
|
|
32
35
|
* @param requestBody
|
|
36
|
+
* @param workspaceId
|
|
33
37
|
* @returns any Successful Response
|
|
34
38
|
* @throws ApiError
|
|
35
39
|
*/
|
|
36
|
-
static updateCredential(credentialId: string, requestBody: CredentialUpdate): CancelablePromise<Record<string, any>>;
|
|
40
|
+
static updateCredential(credentialId: string, requestBody: CredentialUpdate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
37
41
|
/**
|
|
38
42
|
* Delete Credential
|
|
39
43
|
* Delete a credential
|
|
40
44
|
* @param credentialId
|
|
45
|
+
* @param workspaceId
|
|
41
46
|
* @returns any Successful Response
|
|
42
47
|
* @throws ApiError
|
|
43
48
|
*/
|
|
44
|
-
static deleteCredential(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
49
|
+
static deleteCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
45
50
|
/**
|
|
46
51
|
* Get Credential Decrypted
|
|
47
52
|
* Get a credential with decrypted value
|
|
48
53
|
* @param credentialId
|
|
54
|
+
* @param workspaceId
|
|
49
55
|
* @returns any Successful Response
|
|
50
56
|
* @throws ApiError
|
|
51
57
|
*/
|
|
52
|
-
static getCredentialDecrypted(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
58
|
+
static getCredentialDecrypted(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
53
59
|
}
|
|
@@ -9,36 +9,40 @@ import type { FolderUploadResponse } from '../models/FolderUploadResponse';
|
|
|
9
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
10
|
export declare class AdminFileLibraryService {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Create Bucket
|
|
13
|
+
* Create a new S3 bucket
|
|
14
|
+
* @param requestBody
|
|
15
|
+
* @param workspaceId
|
|
14
16
|
* @returns BucketResponse Successful Response
|
|
15
17
|
* @throws ApiError
|
|
16
18
|
*/
|
|
17
|
-
static
|
|
19
|
+
static createBucket(requestBody: BucketCreate, workspaceId?: (string | null)): CancelablePromise<BucketResponse>;
|
|
18
20
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @param
|
|
21
|
+
* Get Buckets
|
|
22
|
+
* Get all buckets for the user
|
|
23
|
+
* @param workspaceId
|
|
22
24
|
* @returns BucketResponse Successful Response
|
|
23
25
|
* @throws ApiError
|
|
24
26
|
*/
|
|
25
|
-
static
|
|
27
|
+
static getBuckets(workspaceId?: (string | null)): CancelablePromise<Array<BucketResponse>>;
|
|
26
28
|
/**
|
|
27
29
|
* Get Bucket
|
|
28
30
|
* Get a specific bucket
|
|
29
31
|
* @param bucketId
|
|
32
|
+
* @param workspaceId
|
|
30
33
|
* @returns BucketResponse Successful Response
|
|
31
34
|
* @throws ApiError
|
|
32
35
|
*/
|
|
33
|
-
static getBucket(bucketId: string): CancelablePromise<BucketResponse>;
|
|
36
|
+
static getBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<BucketResponse>;
|
|
34
37
|
/**
|
|
35
38
|
* Delete Bucket
|
|
36
39
|
* Delete a bucket
|
|
37
40
|
* @param bucketId
|
|
41
|
+
* @param workspaceId
|
|
38
42
|
* @returns any Successful Response
|
|
39
43
|
* @throws ApiError
|
|
40
44
|
*/
|
|
41
|
-
static deleteBucket(bucketId: string): CancelablePromise<any>;
|
|
45
|
+
static deleteBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<any>;
|
|
42
46
|
/**
|
|
43
47
|
* Create Folder
|
|
44
48
|
* Create a new folder
|
|
@@ -3,51 +3,57 @@ import type { CredentialUpdate } from '../models/CredentialUpdate';
|
|
|
3
3
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
4
|
export declare class CredentialsService {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Create Credential
|
|
7
|
+
* Create a new credential
|
|
8
|
+
* @param requestBody
|
|
9
|
+
* @param workspaceId
|
|
8
10
|
* @returns any Successful Response
|
|
9
11
|
* @throws ApiError
|
|
10
12
|
*/
|
|
11
|
-
static
|
|
13
|
+
static createCredential(requestBody: CredentialCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @param
|
|
15
|
+
* Get Credentials
|
|
16
|
+
* Get all credentials for a user
|
|
17
|
+
* @param workspaceId
|
|
16
18
|
* @returns any Successful Response
|
|
17
19
|
* @throws ApiError
|
|
18
20
|
*/
|
|
19
|
-
static
|
|
21
|
+
static getCredentials(workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
20
22
|
/**
|
|
21
23
|
* Get Credential
|
|
22
24
|
* Get a specific credential by ID
|
|
23
25
|
* @param credentialId
|
|
26
|
+
* @param workspaceId
|
|
24
27
|
* @returns any Successful Response
|
|
25
28
|
* @throws ApiError
|
|
26
29
|
*/
|
|
27
|
-
static getCredential(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
30
|
+
static getCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
28
31
|
/**
|
|
29
32
|
* Update Credential
|
|
30
33
|
* Update a credential
|
|
31
34
|
* @param credentialId
|
|
32
35
|
* @param requestBody
|
|
36
|
+
* @param workspaceId
|
|
33
37
|
* @returns any Successful Response
|
|
34
38
|
* @throws ApiError
|
|
35
39
|
*/
|
|
36
|
-
static updateCredential(credentialId: string, requestBody: CredentialUpdate): CancelablePromise<Record<string, any>>;
|
|
40
|
+
static updateCredential(credentialId: string, requestBody: CredentialUpdate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
37
41
|
/**
|
|
38
42
|
* Delete Credential
|
|
39
43
|
* Delete a credential
|
|
40
44
|
* @param credentialId
|
|
45
|
+
* @param workspaceId
|
|
41
46
|
* @returns any Successful Response
|
|
42
47
|
* @throws ApiError
|
|
43
48
|
*/
|
|
44
|
-
static deleteCredential(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
49
|
+
static deleteCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
45
50
|
/**
|
|
46
51
|
* Get Credential Decrypted
|
|
47
52
|
* Get a credential with decrypted value
|
|
48
53
|
* @param credentialId
|
|
54
|
+
* @param workspaceId
|
|
49
55
|
* @returns any Successful Response
|
|
50
56
|
* @throws ApiError
|
|
51
57
|
*/
|
|
52
|
-
static getCredentialDecrypted(credentialId: string): CancelablePromise<Record<string, any>>;
|
|
58
|
+
static getCredentialDecrypted(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
|
|
53
59
|
}
|
|
@@ -9,36 +9,40 @@ import type { FolderUploadResponse } from '../models/FolderUploadResponse';
|
|
|
9
9
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
10
10
|
export declare class FileLibraryService {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Create Bucket
|
|
13
|
+
* Create a new S3 bucket
|
|
14
|
+
* @param requestBody
|
|
15
|
+
* @param workspaceId
|
|
14
16
|
* @returns BucketResponse Successful Response
|
|
15
17
|
* @throws ApiError
|
|
16
18
|
*/
|
|
17
|
-
static
|
|
19
|
+
static createBucket(requestBody: BucketCreate, workspaceId?: (string | null)): CancelablePromise<BucketResponse>;
|
|
18
20
|
/**
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @param
|
|
21
|
+
* Get Buckets
|
|
22
|
+
* Get all buckets for the user
|
|
23
|
+
* @param workspaceId
|
|
22
24
|
* @returns BucketResponse Successful Response
|
|
23
25
|
* @throws ApiError
|
|
24
26
|
*/
|
|
25
|
-
static
|
|
27
|
+
static getBuckets(workspaceId?: (string | null)): CancelablePromise<Array<BucketResponse>>;
|
|
26
28
|
/**
|
|
27
29
|
* Get Bucket
|
|
28
30
|
* Get a specific bucket
|
|
29
31
|
* @param bucketId
|
|
32
|
+
* @param workspaceId
|
|
30
33
|
* @returns BucketResponse Successful Response
|
|
31
34
|
* @throws ApiError
|
|
32
35
|
*/
|
|
33
|
-
static getBucket(bucketId: string): CancelablePromise<BucketResponse>;
|
|
36
|
+
static getBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<BucketResponse>;
|
|
34
37
|
/**
|
|
35
38
|
* Delete Bucket
|
|
36
39
|
* Delete a bucket
|
|
37
40
|
* @param bucketId
|
|
41
|
+
* @param workspaceId
|
|
38
42
|
* @returns any Successful Response
|
|
39
43
|
* @throws ApiError
|
|
40
44
|
*/
|
|
41
|
-
static deleteBucket(bucketId: string): CancelablePromise<any>;
|
|
45
|
+
static deleteBucket(bucketId: string, workspaceId?: (string | null)): CancelablePromise<any>;
|
|
42
46
|
/**
|
|
43
47
|
* Create Folder
|
|
44
48
|
* Create a new folder
|