@proteos/sdk 0.42.3 → 0.44.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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-Biohdxjn.cjs';
2
- export { e as App, f as AppSchema, g as AppService, h as ArrayAttributeMeta, i as AttributeSchema, j as AttributeType, k as AuditFieldsSchema, C as ClientOptions, l as Column, m as ColumnSchema, n as ComparisonOperator, o as Component, p as ComponentSchema, q as ComponentService, r as CreateAppRequest, s as CreateComponentRequest, t as CreateDesignReferenceRequest, u as CreateEntityRequest, v as CreateListRequest, w as CreateListViewRequest, x as CreateMenuConfigurationRequest, y as CreatePageRequest, z as CreateVariableRequest, B as CurrencyAttributeMeta, D as CurrencyAttributeMetaSchema, E as CurrencySymbolSide, G as CurrencyValue, H as DEFAULT_OPTIONS, I as DEFAULT_PAGE_SIZE, J as DONE, K as DeployModuleRequest, M as DesignReference, N as DesignReferenceContent, O as DesignReferenceSchema, Q as DesignReferenceService, R as Done, S as Entity, T as EntitySchema, V as EntityService, W as EntityWithSchema, X as EntityWithSchemaSchema, Y as EnumAttributeMeta, Z as EnumValue, _ as FileAttributeMeta, $ as FileRefSchema, a0 as FilterElement, a1 as FilterElementSchema, a2 as FilterGroup, a3 as FilterGroupSchema, a4 as List, a5 as ListAppsOptions, a6 as ListComponentsOptions, a7 as ListDesignReferencesOptions, a8 as ListEntitiesOptions, a9 as ListFn, aa as ListListViewsOptions, ab as ListListsOptions, ac as ListMenuConfigurationsOptions, ad as ListModulesOptions, ae as ListPagesOptions, af as ListSchema, ag as ListService, ah as ListVariablesOptions, ai as ListView, aj as ListViewSchema, ak as ListViewService, al as LogicalOperator, am as MenuConfiguration, an as MenuConfigurationSchema, ao as MenuConfigurationService, ap as MenuItem, aq as MenuItemSchema, ar as MenuItemType, as as MetaClient, at as MetaListOptions, au as Module, av as ModuleSchema, aw as ModuleService, ax as ModuleStatus, ay as OnDeleteAction, az as OnDeleteActionSchema, aA as PLATFORM_ATTRIBUTE_NAMES, aB as PLATFORM_USER_ID, aC as Page, aD as PageAction, aE as PageActionSchema, aF as PageLayout, aG as PageLayoutSchema, aH as PageSchema, aI as PageService, aJ as PageType, aK as PublicPageComponent, aL as PublicPageResponse, aM as RelationAttributeMeta, aN as RelationAttributeMetaSchema, aO as RequestOptions, aP as ResolvedClientOptions, aQ as ResponseMeta, aR as ResponseMetaSchema, aS as SortConfig, aT as SortConfigSchema, aU as SortDirection, aV as Timestamps, aW as TokenProvider, aX as UpdateAppRequest, aY as UpdateComponentRequest, aZ as UpdateDesignReferenceRequest, a_ as UpdateEntityRequest, a$ as UpdateListRequest, b0 as UpdateListViewRequest, b1 as UpdateMenuConfigurationRequest, b2 as UpdatePageRequest, b3 as UpdateVariableRequest, b4 as UserRefSchema, b5 as UserType, b6 as Variable, b7 as VariableSchema, b8 as VariableService, b9 as allCurrencyCodes, ba as createIterator, bb as createListResultSchema, bc as currencyLabel, bd as currencySymbol, be as currencySymbolSide, bf as formatAmount, bg as formatMoney, bh as isPlatformAttributeName, bi as localeNumberSeparators, bj as parseAmount, bk as parseCurrencyMeta, bl as parseFileMeta, bm as parseRelationMeta, bn as platformAttributes, bo as resolveOptions } from './types-Biohdxjn.cjs';
1
+ import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-BTdBFq34.cjs';
2
+ export { e as App, f as AppSchema, g as AppService, h as ArrayAttributeMeta, i as AttributeSchema, j as AttributeType, k as AuditFieldsSchema, C as ClientOptions, l as Column, m as ColumnSchema, n as ComparisonOperator, o as Component, p as ComponentSchema, q as ComponentService, r as CreateAppRequest, s as CreateComponentRequest, t as CreateDesignReferenceRequest, u as CreateEntityRequest, v as CreateListRequest, w as CreateListViewRequest, x as CreateMenuConfigurationRequest, y as CreatePageRequest, z as CreateVariableRequest, B as CurrencyAttributeMeta, D as CurrencyAttributeMetaSchema, E as CurrencySymbolSide, G as CurrencyValue, H as DEFAULT_OPTIONS, I as DEFAULT_PAGE_SIZE, J as DONE, K as DeployModuleRequest, M as DesignReference, N as DesignReferenceContent, O as DesignReferenceSchema, Q as DesignReferenceService, R as Done, S as Entity, T as EntitySchema, V as EntityService, W as EntityWithSchema, X as EntityWithSchemaSchema, Y as EnumAttributeMeta, Z as EnumValue, _ as FileAttributeMeta, $ as FileRefSchema, a0 as FilterElement, a1 as FilterElementSchema, a2 as FilterGroup, a3 as FilterGroupSchema, a4 as List, a5 as ListAppsOptions, a6 as ListComponentsOptions, a7 as ListDesignReferencesOptions, a8 as ListEntitiesOptions, a9 as ListFn, aa as ListListViewsOptions, ab as ListListsOptions, ac as ListMenuConfigurationsOptions, ad as ListModulesOptions, ae as ListPagesOptions, af as ListSchema, ag as ListService, ah as ListVariablesOptions, ai as ListView, aj as ListViewSchema, ak as ListViewService, al as LogicalOperator, am as MenuConfiguration, an as MenuConfigurationSchema, ao as MenuConfigurationService, ap as MenuItem, aq as MenuItemSchema, ar as MenuItemType, as as MetaClient, at as MetaListOptions, au as Module, av as ModuleSchema, aw as ModuleService, ax as ModuleStatus, ay as OnDeleteAction, az as OnDeleteActionSchema, aA as PLATFORM_ATTRIBUTE_NAMES, aB as PLATFORM_USER_ID, aC as Page, aD as PageAction, aE as PageActionSchema, aF as PageLayout, aG as PageLayoutSchema, aH as PageSchema, aI as PageService, aJ as PageType, aK as PublicPageComponent, aL as PublicPageResponse, aM as RelationAttributeMeta, aN as RelationAttributeMetaSchema, aO as RequestOptions, aP as ResolvedClientOptions, aQ as ResponseMeta, aR as ResponseMetaSchema, aS as SortConfig, aT as SortConfigSchema, aU as SortDirection, aV as Timestamps, aW as TokenProvider, aX as UpdateAppRequest, aY as UpdateComponentRequest, aZ as UpdateDesignReferenceRequest, a_ as UpdateEntityRequest, a$ as UpdateListRequest, b0 as UpdateListViewRequest, b1 as UpdateMenuConfigurationRequest, b2 as UpdatePageRequest, b3 as UpdateVariableRequest, b4 as UserRefSchema, b5 as UserType, b6 as Variable, b7 as VariableSchema, b8 as VariableService, b9 as allCurrencyCodes, ba as createIterator, bb as createListResultSchema, bc as currencyLabel, bd as currencySymbol, be as currencySymbolSide, bf as formatAmount, bg as formatMoney, bh as isPlatformAttributeName, bi as localeNumberSeparators, bj as parseAmount, bk as parseCurrencyMeta, bl as parseFileMeta, bm as parseRelationMeta, bn as platformAttributes, bo as resolveOptions } from './types-BTdBFq34.cjs';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -3288,6 +3288,12 @@ interface Transcription {
3288
3288
  is_diarized: boolean;
3289
3289
  turns: TranscriptTurn[];
3290
3290
  speaker_count: number;
3291
+ /**
3292
+ * Index-aligned speaker identities: `speakers[turn.speaker]` is the person
3293
+ * behind the turn (provider participant id, name, email, resolved contact).
3294
+ * Empty for transcriptions whose source carries no speaker identities.
3295
+ */
3296
+ speakers?: ContactRef[];
3291
3297
  provider_request_id: string;
3292
3298
  conversation_id: string;
3293
3299
  error: string;
@@ -5764,6 +5770,18 @@ interface FileService {
5764
5770
  * survives repeated GETs (≈1 h TTL) for consumers that probe the URL before
5765
5771
  * downloading.
5766
5772
  */
5773
+ /**
5774
+ * Permanently deletes a file: every version's stored bytes, its access
5775
+ * tokens and parsed content. Irreversible. Locked files are refused
5776
+ * (409 `delete_locked_file`) — unlock via {@link FileService.update} first.
5777
+ */
5778
+ delete(id: string): Promise<void>;
5779
+ /**
5780
+ * Permanently deletes a single non-current version and its stored bytes.
5781
+ * Irreversible. Deleting the current version is refused
5782
+ * (409 `delete_current_version`), as are locked files (409 `delete_locked_file`).
5783
+ */
5784
+ deleteVersion(id: string, versionId: string): Promise<void>;
5767
5785
  createDownloadUrl(id: string, options?: {
5768
5786
  allowsMultiUse?: boolean;
5769
5787
  }): Promise<{
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-Biohdxjn.js';
2
- export { e as App, f as AppSchema, g as AppService, h as ArrayAttributeMeta, i as AttributeSchema, j as AttributeType, k as AuditFieldsSchema, C as ClientOptions, l as Column, m as ColumnSchema, n as ComparisonOperator, o as Component, p as ComponentSchema, q as ComponentService, r as CreateAppRequest, s as CreateComponentRequest, t as CreateDesignReferenceRequest, u as CreateEntityRequest, v as CreateListRequest, w as CreateListViewRequest, x as CreateMenuConfigurationRequest, y as CreatePageRequest, z as CreateVariableRequest, B as CurrencyAttributeMeta, D as CurrencyAttributeMetaSchema, E as CurrencySymbolSide, G as CurrencyValue, H as DEFAULT_OPTIONS, I as DEFAULT_PAGE_SIZE, J as DONE, K as DeployModuleRequest, M as DesignReference, N as DesignReferenceContent, O as DesignReferenceSchema, Q as DesignReferenceService, R as Done, S as Entity, T as EntitySchema, V as EntityService, W as EntityWithSchema, X as EntityWithSchemaSchema, Y as EnumAttributeMeta, Z as EnumValue, _ as FileAttributeMeta, $ as FileRefSchema, a0 as FilterElement, a1 as FilterElementSchema, a2 as FilterGroup, a3 as FilterGroupSchema, a4 as List, a5 as ListAppsOptions, a6 as ListComponentsOptions, a7 as ListDesignReferencesOptions, a8 as ListEntitiesOptions, a9 as ListFn, aa as ListListViewsOptions, ab as ListListsOptions, ac as ListMenuConfigurationsOptions, ad as ListModulesOptions, ae as ListPagesOptions, af as ListSchema, ag as ListService, ah as ListVariablesOptions, ai as ListView, aj as ListViewSchema, ak as ListViewService, al as LogicalOperator, am as MenuConfiguration, an as MenuConfigurationSchema, ao as MenuConfigurationService, ap as MenuItem, aq as MenuItemSchema, ar as MenuItemType, as as MetaClient, at as MetaListOptions, au as Module, av as ModuleSchema, aw as ModuleService, ax as ModuleStatus, ay as OnDeleteAction, az as OnDeleteActionSchema, aA as PLATFORM_ATTRIBUTE_NAMES, aB as PLATFORM_USER_ID, aC as Page, aD as PageAction, aE as PageActionSchema, aF as PageLayout, aG as PageLayoutSchema, aH as PageSchema, aI as PageService, aJ as PageType, aK as PublicPageComponent, aL as PublicPageResponse, aM as RelationAttributeMeta, aN as RelationAttributeMetaSchema, aO as RequestOptions, aP as ResolvedClientOptions, aQ as ResponseMeta, aR as ResponseMetaSchema, aS as SortConfig, aT as SortConfigSchema, aU as SortDirection, aV as Timestamps, aW as TokenProvider, aX as UpdateAppRequest, aY as UpdateComponentRequest, aZ as UpdateDesignReferenceRequest, a_ as UpdateEntityRequest, a$ as UpdateListRequest, b0 as UpdateListViewRequest, b1 as UpdateMenuConfigurationRequest, b2 as UpdatePageRequest, b3 as UpdateVariableRequest, b4 as UserRefSchema, b5 as UserType, b6 as Variable, b7 as VariableSchema, b8 as VariableService, b9 as allCurrencyCodes, ba as createIterator, bb as createListResultSchema, bc as currencyLabel, bd as currencySymbol, be as currencySymbolSide, bf as formatAmount, bg as formatMoney, bh as isPlatformAttributeName, bi as localeNumberSeparators, bj as parseAmount, bk as parseCurrencyMeta, bl as parseFileMeta, bm as parseRelationMeta, bn as platformAttributes, bo as resolveOptions } from './types-Biohdxjn.js';
1
+ import { A as AuditFields, L as ListOptions, a as Attribute, U as UserRef$2, P as PageIterator, b as ListResult, c as ProteosClient, F as FileRef, d as PublicAccessOperation } from './types-BTdBFq34.js';
2
+ export { e as App, f as AppSchema, g as AppService, h as ArrayAttributeMeta, i as AttributeSchema, j as AttributeType, k as AuditFieldsSchema, C as ClientOptions, l as Column, m as ColumnSchema, n as ComparisonOperator, o as Component, p as ComponentSchema, q as ComponentService, r as CreateAppRequest, s as CreateComponentRequest, t as CreateDesignReferenceRequest, u as CreateEntityRequest, v as CreateListRequest, w as CreateListViewRequest, x as CreateMenuConfigurationRequest, y as CreatePageRequest, z as CreateVariableRequest, B as CurrencyAttributeMeta, D as CurrencyAttributeMetaSchema, E as CurrencySymbolSide, G as CurrencyValue, H as DEFAULT_OPTIONS, I as DEFAULT_PAGE_SIZE, J as DONE, K as DeployModuleRequest, M as DesignReference, N as DesignReferenceContent, O as DesignReferenceSchema, Q as DesignReferenceService, R as Done, S as Entity, T as EntitySchema, V as EntityService, W as EntityWithSchema, X as EntityWithSchemaSchema, Y as EnumAttributeMeta, Z as EnumValue, _ as FileAttributeMeta, $ as FileRefSchema, a0 as FilterElement, a1 as FilterElementSchema, a2 as FilterGroup, a3 as FilterGroupSchema, a4 as List, a5 as ListAppsOptions, a6 as ListComponentsOptions, a7 as ListDesignReferencesOptions, a8 as ListEntitiesOptions, a9 as ListFn, aa as ListListViewsOptions, ab as ListListsOptions, ac as ListMenuConfigurationsOptions, ad as ListModulesOptions, ae as ListPagesOptions, af as ListSchema, ag as ListService, ah as ListVariablesOptions, ai as ListView, aj as ListViewSchema, ak as ListViewService, al as LogicalOperator, am as MenuConfiguration, an as MenuConfigurationSchema, ao as MenuConfigurationService, ap as MenuItem, aq as MenuItemSchema, ar as MenuItemType, as as MetaClient, at as MetaListOptions, au as Module, av as ModuleSchema, aw as ModuleService, ax as ModuleStatus, ay as OnDeleteAction, az as OnDeleteActionSchema, aA as PLATFORM_ATTRIBUTE_NAMES, aB as PLATFORM_USER_ID, aC as Page, aD as PageAction, aE as PageActionSchema, aF as PageLayout, aG as PageLayoutSchema, aH as PageSchema, aI as PageService, aJ as PageType, aK as PublicPageComponent, aL as PublicPageResponse, aM as RelationAttributeMeta, aN as RelationAttributeMetaSchema, aO as RequestOptions, aP as ResolvedClientOptions, aQ as ResponseMeta, aR as ResponseMetaSchema, aS as SortConfig, aT as SortConfigSchema, aU as SortDirection, aV as Timestamps, aW as TokenProvider, aX as UpdateAppRequest, aY as UpdateComponentRequest, aZ as UpdateDesignReferenceRequest, a_ as UpdateEntityRequest, a$ as UpdateListRequest, b0 as UpdateListViewRequest, b1 as UpdateMenuConfigurationRequest, b2 as UpdatePageRequest, b3 as UpdateVariableRequest, b4 as UserRefSchema, b5 as UserType, b6 as Variable, b7 as VariableSchema, b8 as VariableService, b9 as allCurrencyCodes, ba as createIterator, bb as createListResultSchema, bc as currencyLabel, bd as currencySymbol, be as currencySymbolSide, bf as formatAmount, bg as formatMoney, bh as isPlatformAttributeName, bi as localeNumberSeparators, bj as parseAmount, bk as parseCurrencyMeta, bl as parseFileMeta, bm as parseRelationMeta, bn as platformAttributes, bo as resolveOptions } from './types-BTdBFq34.js';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -3288,6 +3288,12 @@ interface Transcription {
3288
3288
  is_diarized: boolean;
3289
3289
  turns: TranscriptTurn[];
3290
3290
  speaker_count: number;
3291
+ /**
3292
+ * Index-aligned speaker identities: `speakers[turn.speaker]` is the person
3293
+ * behind the turn (provider participant id, name, email, resolved contact).
3294
+ * Empty for transcriptions whose source carries no speaker identities.
3295
+ */
3296
+ speakers?: ContactRef[];
3291
3297
  provider_request_id: string;
3292
3298
  conversation_id: string;
3293
3299
  error: string;
@@ -5764,6 +5770,18 @@ interface FileService {
5764
5770
  * survives repeated GETs (≈1 h TTL) for consumers that probe the URL before
5765
5771
  * downloading.
5766
5772
  */
5773
+ /**
5774
+ * Permanently deletes a file: every version's stored bytes, its access
5775
+ * tokens and parsed content. Irreversible. Locked files are refused
5776
+ * (409 `delete_locked_file`) — unlock via {@link FileService.update} first.
5777
+ */
5778
+ delete(id: string): Promise<void>;
5779
+ /**
5780
+ * Permanently deletes a single non-current version and its stored bytes.
5781
+ * Irreversible. Deleting the current version is refused
5782
+ * (409 `delete_current_version`), as are locked files (409 `delete_locked_file`).
5783
+ */
5784
+ deleteVersion(id: string, versionId: string): Promise<void>;
5767
5785
  createDownloadUrl(id: string, options?: {
5768
5786
  allowsMultiUse?: boolean;
5769
5787
  }): Promise<{
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { AuditFieldsSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-ONMJ52OX.js';
2
- export { AppSchema, AttributeSchema, AuditFieldsSchema, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-ONMJ52OX.js';
1
+ import { AuditFieldsSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-IGIAJVX6.js';
2
+ export { AppSchema, AttributeSchema, AuditFieldsSchema, ColumnSchema, ComponentSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntitySchema, EntityWithSchemaSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListSchema, ListViewSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionSchema, PageIterator, PageLayoutSchema, PageSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, UserRefSchema, VariableSchema, allCurrencyCodes, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-IGIAJVX6.js';
3
3
  import { z } from 'zod';
4
4
  import { fetchEventSource } from '@microsoft/fetch-event-source';
5
5
 
@@ -2591,6 +2591,12 @@ var FileServiceImpl = class {
2591
2591
  );
2592
2592
  return response.data;
2593
2593
  }
2594
+ async delete(id) {
2595
+ await this.client.request("DELETE", `${FILES_BASE_PATH}/${id}`);
2596
+ }
2597
+ async deleteVersion(id, versionId) {
2598
+ await this.client.request("DELETE", `${FILES_BASE_PATH}/${id}/versions/${versionId}`);
2599
+ }
2594
2600
  async createDownloadUrl(id, options) {
2595
2601
  const body = options?.allowsMultiUse !== void 0 ? { allows_multi_use: options.allowsMultiUse } : void 0;
2596
2602
  const response = await this.client.request(