@getsupervisor/agents-studio-sdk 1.23.0 → 1.24.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.
- package/dist/index.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -4
- package/dist/index.d.ts +18 -4
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -16,6 +16,8 @@ type components = {
|
|
|
16
16
|
versionId?: string;
|
|
17
17
|
status: 'inactive' | 'training' | 'active' | 'archived';
|
|
18
18
|
description?: string | null;
|
|
19
|
+
avatarUrl?: string | null;
|
|
20
|
+
debounceDelayMs?: number | null;
|
|
19
21
|
toneId?: string | null;
|
|
20
22
|
messageStyleId?: string | null;
|
|
21
23
|
ownerUserId?: string | null;
|
|
@@ -772,10 +774,22 @@ type WorkspaceEnableResponse = components['schemas']['WorkspaceEnableResponse'];
|
|
|
772
774
|
type VoiceSummary = components['schemas']['VoiceSummary'];
|
|
773
775
|
type VoiceListResponse = components['schemas']['VoiceListResponse'];
|
|
774
776
|
type CatalogItemLinks = components['schemas']['CatalogItemLinks'];
|
|
775
|
-
type
|
|
776
|
-
type
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
type CatalogItemSummarySchema = components['schemas']['CatalogItemSummary'];
|
|
778
|
+
type CatalogItemSummary = Omit<CatalogItemSummarySchema, 'metadata'> & {
|
|
779
|
+
metadata: Record<string, unknown>;
|
|
780
|
+
};
|
|
781
|
+
type CatalogItemDetailSchema = components['schemas']['CatalogItemDetail'];
|
|
782
|
+
type CatalogItemDetail = Omit<CatalogItemDetailSchema, 'metadata'> & {
|
|
783
|
+
metadata: Record<string, unknown>;
|
|
784
|
+
};
|
|
785
|
+
type CatalogItemListResponseSchema = components['schemas']['CatalogItemListResponse'];
|
|
786
|
+
type CatalogItemListResponse = Omit<CatalogItemListResponseSchema, 'data'> & {
|
|
787
|
+
data: CatalogItemSummary[];
|
|
788
|
+
};
|
|
789
|
+
type CatalogItemCreateRequestSchema = components['schemas']['CatalogItemCreateRequest'];
|
|
790
|
+
type CatalogItemCreateRequest = Omit<CatalogItemCreateRequestSchema, 'metadata'> & {
|
|
791
|
+
metadata: Record<string, unknown>;
|
|
792
|
+
};
|
|
779
793
|
type ApiKeySummary = {
|
|
780
794
|
id: string;
|
|
781
795
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ type components = {
|
|
|
16
16
|
versionId?: string;
|
|
17
17
|
status: 'inactive' | 'training' | 'active' | 'archived';
|
|
18
18
|
description?: string | null;
|
|
19
|
+
avatarUrl?: string | null;
|
|
20
|
+
debounceDelayMs?: number | null;
|
|
19
21
|
toneId?: string | null;
|
|
20
22
|
messageStyleId?: string | null;
|
|
21
23
|
ownerUserId?: string | null;
|
|
@@ -772,10 +774,22 @@ type WorkspaceEnableResponse = components['schemas']['WorkspaceEnableResponse'];
|
|
|
772
774
|
type VoiceSummary = components['schemas']['VoiceSummary'];
|
|
773
775
|
type VoiceListResponse = components['schemas']['VoiceListResponse'];
|
|
774
776
|
type CatalogItemLinks = components['schemas']['CatalogItemLinks'];
|
|
775
|
-
type
|
|
776
|
-
type
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
type CatalogItemSummarySchema = components['schemas']['CatalogItemSummary'];
|
|
778
|
+
type CatalogItemSummary = Omit<CatalogItemSummarySchema, 'metadata'> & {
|
|
779
|
+
metadata: Record<string, unknown>;
|
|
780
|
+
};
|
|
781
|
+
type CatalogItemDetailSchema = components['schemas']['CatalogItemDetail'];
|
|
782
|
+
type CatalogItemDetail = Omit<CatalogItemDetailSchema, 'metadata'> & {
|
|
783
|
+
metadata: Record<string, unknown>;
|
|
784
|
+
};
|
|
785
|
+
type CatalogItemListResponseSchema = components['schemas']['CatalogItemListResponse'];
|
|
786
|
+
type CatalogItemListResponse = Omit<CatalogItemListResponseSchema, 'data'> & {
|
|
787
|
+
data: CatalogItemSummary[];
|
|
788
|
+
};
|
|
789
|
+
type CatalogItemCreateRequestSchema = components['schemas']['CatalogItemCreateRequest'];
|
|
790
|
+
type CatalogItemCreateRequest = Omit<CatalogItemCreateRequestSchema, 'metadata'> & {
|
|
791
|
+
metadata: Record<string, unknown>;
|
|
792
|
+
};
|
|
779
793
|
type ApiKeySummary = {
|
|
780
794
|
id: string;
|
|
781
795
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -1476,7 +1476,7 @@ function ensureCatalogTypeFilter(filter, type) {
|
|
|
1476
1476
|
if (isQueryBuilderLike(filter)) {
|
|
1477
1477
|
return ensureTypeForBuilder(filter, requiredQuery, requiredExpression);
|
|
1478
1478
|
}
|
|
1479
|
-
if (
|
|
1479
|
+
if (isFilterRecord(filter)) {
|
|
1480
1480
|
return ensureTypeForObject(filter, type);
|
|
1481
1481
|
}
|
|
1482
1482
|
return filter;
|
|
@@ -1506,7 +1506,7 @@ function ensureTypeForObject(candidate, type) {
|
|
|
1506
1506
|
return candidate;
|
|
1507
1507
|
}
|
|
1508
1508
|
const typeConfig = candidate.type;
|
|
1509
|
-
const normalizedType =
|
|
1509
|
+
const normalizedType = isFilterOperators(typeConfig) ? { ...typeConfig, eq: type } : { eq: type };
|
|
1510
1510
|
return {
|
|
1511
1511
|
...candidate,
|
|
1512
1512
|
type: normalizedType
|
|
@@ -1517,10 +1517,11 @@ function hasTypeEquality(candidate, type) {
|
|
|
1517
1517
|
if (typeof typeConfig === "string") {
|
|
1518
1518
|
return typeConfig === type;
|
|
1519
1519
|
}
|
|
1520
|
-
if (!
|
|
1520
|
+
if (!isFilterOperators(typeConfig)) {
|
|
1521
1521
|
return false;
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
const equality = typeConfig.eq;
|
|
1524
|
+
return typeof equality === "string" ? equality === type : false;
|
|
1524
1525
|
}
|
|
1525
1526
|
function containsTypePredicate(expression, required) {
|
|
1526
1527
|
const normalizedExpression = expression.replace(/\s+/g, "").toLowerCase();
|
|
@@ -1537,6 +1538,12 @@ function isPlainObject2(value) {
|
|
|
1537
1538
|
const proto = Object.getPrototypeOf(value);
|
|
1538
1539
|
return proto === Object.prototype || proto === null;
|
|
1539
1540
|
}
|
|
1541
|
+
function isFilterRecord(value) {
|
|
1542
|
+
return isPlainObject2(value);
|
|
1543
|
+
}
|
|
1544
|
+
function isFilterOperators(value) {
|
|
1545
|
+
return isPlainObject2(value);
|
|
1546
|
+
}
|
|
1540
1547
|
|
|
1541
1548
|
// src/api/voices.ts
|
|
1542
1549
|
function mapCatalogResponseToVoiceList(response) {
|