@rastrokit/sdk 0.16.0 → 0.17.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,9 +1,9 @@
1
- type AddonCapability = 'auth' | 'dataSource' | 'analytics' | 'watcher' | 'calendar' | 'punch' | 'theme';
1
+ type AddonCapability = 'auth' | 'dataSource' | 'analytics' | 'observer' | 'calendar' | 'punch' | 'theme';
2
2
  declare const VALID_ADDON_CAPABILITIES: readonly AddonCapability[];
3
3
  declare function isAddonCapability(value: string): value is AddonCapability;
4
4
  declare function hasCapability(capabilities: readonly AddonCapability[] | undefined | null, capability: AddonCapability): boolean;
5
5
  declare function isDataSource(capabilities: readonly AddonCapability[] | undefined | null): boolean;
6
- declare function isWatcher(capabilities: readonly AddonCapability[] | undefined | null): boolean;
6
+ declare function isObserver(capabilities: readonly AddonCapability[] | undefined | null): boolean;
7
7
  declare function isTheme(capabilities: readonly AddonCapability[] | undefined | null): boolean;
8
8
  declare function isAnalytics(capabilities: readonly AddonCapability[] | undefined | null): boolean;
9
9
 
@@ -101,8 +101,49 @@ declare function isWorkspaceScoped(value: unknown): value is {
101
101
  workspaceId: string;
102
102
  };
103
103
 
104
+ type ConnectionCardinality = 'single' | 'multi';
105
+ interface AuthorizationRoleRequirement {
106
+ readonly authorizationRole: string;
107
+ readonly allowedAuthProfileIds: readonly string[];
108
+ readonly defaultAuthProfileId: string | null;
109
+ readonly required?: boolean;
110
+ readonly label?: string;
111
+ }
112
+ type ConnectionProfileDescriptor = Readonly<{
113
+ connectionProfileId: string;
114
+ cardinality: ConnectionCardinality;
115
+ default: boolean;
116
+ capabilities: readonly AddonCapability[];
117
+ allowedAuthProfileIds?: readonly string[];
118
+ defaultAuthProfileId?: string | null;
119
+ roles?: readonly AuthorizationRoleRequirement[];
120
+ }>;
121
+
122
+ type ConnectionIdentity = {
123
+ kind: 'human';
124
+ providerId: string;
125
+ tenantId: string;
126
+ providerSubjectId: string;
127
+ displayName: string;
128
+ avatarUrl?: string;
129
+ } | {
130
+ kind: 'bot';
131
+ providerId: string;
132
+ tenantId: string;
133
+ providerSubjectId: string;
134
+ displayName: string;
135
+ avatarUrl?: string;
136
+ } | {
137
+ kind: 'installation';
138
+ providerId: string;
139
+ tenantId: string;
140
+ providerSubjectId: string;
141
+ displayName: string;
142
+ };
143
+
104
144
  type AddonTier = 'free' | 'plus';
105
- declare const VALID_ADDON_TIERS: AddonTier[];
145
+ declare const VALID_ADDON_TIERS: readonly AddonTier[];
146
+
106
147
  interface AddonScreenshot {
107
148
  url: string;
108
149
  caption?: string;
@@ -195,46 +236,6 @@ type AddonConfig = {
195
236
  packages?: AddonPackage[];
196
237
  };
197
238
 
198
- type ConnectionCardinality = 'single' | 'multi';
199
- interface AuthorizationRoleRequirement {
200
- readonly authorizationRole: string;
201
- readonly allowedAuthProfileIds: readonly string[];
202
- readonly defaultAuthProfileId: string | null;
203
- readonly required?: boolean;
204
- readonly label?: string;
205
- }
206
- type ConnectionProfileDescriptor = Readonly<{
207
- connectionProfileId: string;
208
- cardinality: ConnectionCardinality;
209
- default: boolean;
210
- allowedAuthProfileIds?: readonly string[];
211
- defaultAuthProfileId?: string | null;
212
- roles?: readonly AuthorizationRoleRequirement[];
213
- capability?: string;
214
- }>;
215
-
216
- type ConnectionIdentity = {
217
- kind: 'human';
218
- providerId: string;
219
- tenantId: string;
220
- providerSubjectId: string;
221
- displayName: string;
222
- avatarUrl?: string;
223
- } | {
224
- kind: 'bot';
225
- providerId: string;
226
- tenantId: string;
227
- providerSubjectId: string;
228
- displayName: string;
229
- avatarUrl?: string;
230
- } | {
231
- kind: 'installation';
232
- providerId: string;
233
- tenantId: string;
234
- providerSubjectId: string;
235
- displayName: string;
236
- };
237
-
238
239
  interface AddonInstallerViewModel {
239
240
  id: string;
240
241
  packages: {
@@ -843,11 +844,17 @@ interface IRequest<TBody = void> {
843
844
  body: TBody;
844
845
  }
845
846
 
847
+ type AddonApplicationStatus = 'applied' | 'pending' | 'failed';
846
848
  type AddonSettingsSnapshot = {
847
849
  schemaVersion: 1;
848
850
  revision: number;
849
851
  values: AddonSettingsValues;
850
852
  };
853
+ type AddonSettingsView = AddonSettingsSnapshot & {
854
+ credentialStates: Record<string, 'configured' | 'absent'>;
855
+ applicationStatus?: AddonApplicationStatus;
856
+ applicationError?: string;
857
+ };
851
858
 
852
859
  type AddonVaultScope = {
853
860
  kind: 'addon';
@@ -1263,6 +1270,7 @@ interface AddonObserverTimelineItem {
1263
1270
  readonly endedAt: string;
1264
1271
  readonly durationSeconds: number;
1265
1272
  readonly availableActions: readonly AddonOperationalActionDefinition[];
1273
+ readonly metadata?: Readonly<Record<string, AddonSettingScalarValue>>;
1266
1274
  }
1267
1275
  interface AddonObserverTimelineRequest {
1268
1276
  readonly scope: AddonVaultScope;
@@ -1271,6 +1279,23 @@ interface AddonObserverTimelineRequest {
1271
1279
  interface AddonObserverTimelineResponse {
1272
1280
  readonly items: readonly AddonObserverTimelineItem[];
1273
1281
  }
1282
+ interface AddonObserverTimelineTrackSummary {
1283
+ readonly addonId: string;
1284
+ readonly addonName: string;
1285
+ readonly addonIconUrl?: string;
1286
+ readonly totalSeconds: number;
1287
+ readonly items: readonly AddonObserverTimelineItem[];
1288
+ }
1289
+ interface SystemIdleIntervalSummary {
1290
+ readonly startedAt: string;
1291
+ readonly endedAt: string;
1292
+ readonly durationSeconds: number;
1293
+ }
1294
+ interface AddonObserverTimelineSnapshot {
1295
+ readonly date: string;
1296
+ readonly tracks: readonly AddonObserverTimelineTrackSummary[];
1297
+ readonly idleIntervals: readonly SystemIdleIntervalSummary[];
1298
+ }
1274
1299
  type AddonObserverTimelineProvider = (request: AddonObserverTimelineRequest) => Promise<Either<AppError, AddonObserverTimelineResponse>> | Either<AppError, AddonObserverTimelineResponse>;
1275
1300
  type AddonSettingsSchemaProvider = AddonSettingsSchema | ((context?: AddonSettingsContext) => Promise<AddonSettingsSchema> | AddonSettingsSchema);
1276
1301
 
@@ -1348,7 +1373,7 @@ interface CoreConnection extends CoreConnectionScope {
1348
1373
  cardinality: 'single' | 'multi';
1349
1374
  status: 'connected' | 'disabled' | 'disconnected' | 'archived';
1350
1375
  identity: CoreConnectionIdentity | null;
1351
- capability?: string;
1376
+ capabilities: readonly AddonCapability[];
1352
1377
  }
1353
1378
  interface CoreConnectionIdentity {
1354
1379
  kind: 'human' | 'bot' | 'installation';
@@ -1492,6 +1517,53 @@ type AddonConnectionAuthenticator = {
1492
1517
  completeAuthentication(scope: CoreConnectionScope, parameters: OAuthTokenExchangeParameters): Promise<Either<AppError, AuthenticationResult>>;
1493
1518
  } & OAuthRevocationCapability);
1494
1519
 
1520
+ interface AddonScreenshotDTO {
1521
+ url: string;
1522
+ caption?: string;
1523
+ }
1524
+ interface AddonPackageDTO {
1525
+ version: string;
1526
+ requiredApiVersion?: string;
1527
+ releaseDate?: string;
1528
+ downloadUrl: string;
1529
+ sha256?: string;
1530
+ size?: number;
1531
+ changelog?: string[];
1532
+ }
1533
+ interface AddonManifestDTO {
1534
+ id: string;
1535
+ version: string;
1536
+ name: string;
1537
+ creator: string;
1538
+ description: string;
1539
+ path: string;
1540
+ logo: string;
1541
+ downloads: number;
1542
+ stars: number;
1543
+ installed: boolean;
1544
+ capabilities: readonly AddonCapability[];
1545
+ tier?: AddonTier;
1546
+ sha256?: string;
1547
+ size?: number;
1548
+ installerManifestUrl?: string;
1549
+ sourceUrl?: string;
1550
+ homepage?: string;
1551
+ tags?: string[];
1552
+ screenshots?: AddonScreenshotDTO[];
1553
+ downloadUrl?: string;
1554
+ requiredApiVersion?: string;
1555
+ releaseDate?: string;
1556
+ changelog?: string[];
1557
+ packages?: AddonPackageDTO[];
1558
+ updateAvailable?: boolean;
1559
+ latestVersion?: string;
1560
+ latestDownloadUrl?: string;
1561
+ latestSha256?: string;
1562
+ latestSize?: number;
1563
+ incompatibleUpdate?: boolean;
1564
+ incompatibleReason?: string;
1565
+ }
1566
+
1495
1567
  interface MemberDTO {
1496
1568
  /** Native provider identity: numeric IDs and opaque account IDs are both valid. */
1497
1569
  id: string | number;
@@ -2122,11 +2194,17 @@ interface AddonTimerbarPopoverItem {
2122
2194
  }
2123
2195
  type AddonTimerbarMenuItem = AddonTimerbarActionItem | AddonTimerbarPopoverItem;
2124
2196
 
2197
+ type CoreConnectionReadScope = 'own' | 'workspace';
2198
+ interface CoreConnectionListFilter {
2199
+ readonly capability?: AddonCapability;
2200
+ readonly scope?: CoreConnectionReadScope;
2201
+ }
2202
+ interface CoreConnectionGetOptions {
2203
+ readonly scope?: CoreConnectionReadScope;
2204
+ }
2125
2205
  interface ICoreConnectionsReadAPI {
2126
- list(workspaceId: string, filter?: {
2127
- capability?: string;
2128
- }): Promise<Either<AppError, CoreConnection[]>>;
2129
- get(scope: CoreConnectionScope): Promise<Either<AppError, CoreConnection>>;
2206
+ list(workspaceId: string, filter?: CoreConnectionListFilter): Promise<Either<AppError, CoreConnection[]>>;
2207
+ get(scope: CoreConnectionScope, options?: CoreConnectionGetOptions): Promise<Either<AppError, CoreConnection>>;
2130
2208
  }
2131
2209
  interface ICoreConnectionsAPI extends ICoreConnectionsReadAPI {
2132
2210
  create(input: CoreConnectionCreateInput): Promise<Either<AppError, CoreConnection>>;
@@ -2182,6 +2260,30 @@ interface ICoreAddonCapabilities extends ICoreReadAPI {
2182
2260
  readonly connections: ICoreConnectionsAPI;
2183
2261
  }
2184
2262
 
2263
+ interface CoreAddonUpdateSettingsRequest {
2264
+ readonly addonId: string;
2265
+ readonly scope: AddonVaultScope;
2266
+ readonly expectedRevision: number;
2267
+ readonly values: AddonSettingsValues;
2268
+ }
2269
+ interface ICoreAddonsAPI {
2270
+ listInstalled(): Promise<Either<AppError, AddonManifestDTO[]>>;
2271
+ listCatalog(): Promise<Either<AppError, AddonManifestDTO[]>>;
2272
+ install(addonId: string): Promise<Either<AppError, AddonManifestDTO>>;
2273
+ uninstall(addonId: string): Promise<Either<AppError, void>>;
2274
+ getSettings(addonId: string, scope: AddonVaultScope): Promise<Either<AppError, AddonSettingsView>>;
2275
+ updateSettings(request: CoreAddonUpdateSettingsRequest): Promise<Either<AppError, AddonSettingsView>>;
2276
+ }
2277
+
2278
+ interface CoreObserverTimelineRequest {
2279
+ readonly workspaceId: string;
2280
+ readonly date: string;
2281
+ readonly addonId?: string;
2282
+ }
2283
+ interface ICoreObserverAPI {
2284
+ getTimeline(request: CoreObserverTimelineRequest): Promise<Either<AppError, AddonObserverTimelineSnapshot>>;
2285
+ }
2286
+
2185
2287
  type ICoreTimeEntriesAPI = ILocalTimeEntriesCapability;
2186
2288
 
2187
2289
  type ICoreTimerAPI = ILocalTimerCapability;
@@ -2190,6 +2292,8 @@ type ICoreTimerAPI = ILocalTimerCapability;
2190
2292
  interface ICoreAPI extends ICoreAddonCapabilities {
2191
2293
  readonly timer: ICoreTimerAPI;
2192
2294
  readonly timeEntries: ICoreTimeEntriesAPI;
2295
+ readonly observer: ICoreObserverAPI;
2296
+ readonly addons: ICoreAddonsAPI;
2193
2297
  }
2194
2298
 
2195
2299
  interface IMemberProvider {
@@ -2644,4 +2748,4 @@ interface ExchangeAuthorizationCodeOptions {
2644
2748
  */
2645
2749
  declare function exchangeAuthorizationCode(options: ExchangeAuthorizationCodeOptions): Promise<OAuthStoredToken>;
2646
2750
 
2647
- export { ADDON_CATALOG_RECEIPT_FILE, type LocalTimerStateDTO as ActiveTimeEntryDTO, type AddonActionResponse, type AddonBaseSettingsField, type AddonCapability, type AddonCatalogFileEntry, type AddonCatalogManifestV1, type AddonCatalogManifestV2, type AddonCollectionItemEnvelope, type AddonCollectionItemField, type AddonCollectionItemRecord, type AddonConfig, type AddonConnectionAuthenticator, type AddonConnectionContext, type AddonContext, type AddonEvaluateFormRequest, type AddonExecuteOperationalActionRequest, type AddonFieldAddress, type AddonFieldAddressStep, type AddonFieldDisabledEntry, type AddonFieldMessageEntry, type AddonFieldVisibilityEntry, type AddonFormEvaluationResponse, type AddonInstallerViewModel, type AddonLoadFailureReason, type AddonLoadFailureStage, type AddonLoadFailureViewModel, type AddonLoadFailuresSnapshot, type AddonManifestViewModel, type AddonMappingPreset, type AddonObserverSnapshot, type AddonObserverSnapshotProvider, type AddonObserverSnapshotRequest, type AddonObserverTimelineItem, type AddonObserverTimelineProvider, type AddonObserverTimelineRequest, type AddonObserverTimelineResponse, type AddonOperationalActionDefinition, type AddonOperationalItem, type AddonOperationalListPagination, type AddonOperationalListRequest, type AddonOperationalListResponse, type AddonPackage, type AddonPackageViewModel, type AddonResolveOptionsPagination, type AddonResolveOptionsRequest, type AddonResolveOptionsResponse, type AddonResolvedDependencyEntry, AddonRuntimeCapabilities, type AddonScreenshot, type AddonScreenshotViewModel, type AddonSettingArrayValue, type AddonSettingObjectValue, type AddonSettingScalarValue, type AddonSettingValue, type AddonSettingsApplyContext, type AddonSettingsApplyHandler, type AddonSettingsApplyState, type AddonSettingsApplyStatus, type AddonSettingsAuthType, type AddonSettingsBooleanField, type AddonSettingsButtonField, type AddonSettingsCollectionField, type AddonSettingsContext, type AddonSettingsDataSourceInstancesField, type AddonSettingsDateField, type AddonSettingsDirectoryField, type AddonSettingsField, type AddonSettingsFieldDependency, type AddonSettingsFieldScope, type AddonSettingsFieldType, type AddonSettingsFileField, type AddonSettingsFormEvaluatorHandler, type AddonSettingsGroup, type AddonSettingsGroupField, type AddonSettingsInfoCardField, type AddonSettingsJsonField, type AddonSettingsMappingField, type AddonSettingsMultiSelectField, type AddonSettingsMultiSelectOption, type AddonSettingsMultiSelectSource, type AddonSettingsNumberField, type AddonSettingsOperationalActionHandler, type AddonSettingsOperationalListField, type AddonSettingsOperationalListProviderHandler, type AddonSettingsOption, type AddonSettingsOptionGroup, type AddonSettingsOptionPresentation, type AddonSettingsOptionsProviderHandler, type AddonSettingsPasswordField, type AddonSettingsRegisterOptions, type AddonSettingsSchema, type AddonSettingsSchemaProvider, type AddonSettingsSelectField, type AddonSettingsSelectSource, type AddonSettingsSnapshot, type AddonSettingsTab, type AddonSettingsTabKind, type AddonSettingsTaskReferenceField, type AddonSettingsTextField, type AddonSettingsTextareaField, type AddonSettingsTimeField, type AddonSettingsTimezoneField, type AddonSettingsValidateHandler, type AddonSettingsValues, type AddonSidebarMenuItem, type AddonStorageEntry, type AddonStorageListPage, type AddonStorageListPagination, type AddonStorageListRequest, type AddonSystemEvents, type AddonTaskReferenceValue, type AddonTheme, type AddonThemeViewModel, type AddonTier, type AddonTierViewModel, AddonTimerControlLock, type AddonTimerbarActionItem, type AddonTimerbarMenuItem, type AddonTimerbarPopoverItem, type AddonTimerbarPopoverSubItem, type AddonValidateSettingsRequest, type AddonVaultScope, type AnalyticsAggregateMeasure, type AnalyticsBatchInfo, type AnalyticsCanonicalEntity, type AnalyticsColumnOrigin, type AnalyticsColumnSchema, type AnalyticsColumnType, type AnalyticsColumnUnit, type AnalyticsContinuation, type AnalyticsDatasetCellValue, type AnalyticsDatasetExecution, type AnalyticsDatasetManifest, type AnalyticsDatasetPayload, type AnalyticsDatasetQueryInput, type AnalyticsDatasetResult, type AnalyticsDatasetRow, type AnalyticsDatasetScope, type AnalyticsExecutionKind, type AnalyticsExecutionMetrics, type AnalyticsExecutionRequest, type AnalyticsExtractionDescriptor, type AnalyticsFilterDefinition, type AnalyticsFilterDynamicSource, type AnalyticsFilterOption, type AnalyticsFilterType, type AnalyticsFilterValue, type AnalyticsHydrateInput, type AnalyticsHydrateResult, type AnalyticsLoadInput, type AnalyticsLoadResult, type AnalyticsLocalFilter, type AnalyticsLocalMeasure, type AnalyticsPlanNode, type AnalyticsProviderContext, type AnalyticsPublication, type AnalyticsPublicationEntry, type AnalyticsQueryInput, type AnalyticsQueryResult, type AnalyticsRefreshMode, type AnalyticsRefreshPolicy, type AnalyticsRowIdentity, type AnalyticsSyncState, type AnalyticsSyncStrategy, type AnalyticsWorkspaceState, AppError, type AuthenticationDTO, type AuthenticationResult, type AuthenticationViewModel, type CommandArgument, type CommandHandler, type CommandResult, type ConfiguredFieldMapping, type ConnectionCredentialOperation, type ConnectionProfileDescriptor, type ConnectionResultViewModel, type CoreConnection, type CoreConnectionAuthenticationInput, type CoreConnectionAuthorizationRequest, type CoreConnectionAuthorizationResponse, type CoreConnectionCreateInput, type CoreConnectionScope, type CoreMember, type CoreMetadata, type CoreRuntimeState, type CoreTask, type CoreTaskListRequest, type CoreTaskPage, type CoreTaskReference, type CoreWorkspace, type CreatedTaskResult, type CreatedTimeEntryResult, type DataSourceConfigPreset, type DataSourceContext, Either, type EstimatedTime$1 as EstimatedTime, type ExchangeAuthorizationCodeOptions, FetchHttpClient, type HttpPayload, type HttpResponseValidator, type IAddon, type IAddonAnalyticsAPI, type IAddonCommandsAPI, type IAddonConnectionsContributionAPI, type IAddonContributionsAPI, type IAddonDataSourcesAPI, type IAddonEventsAPI, type IAddonHostAPI, type IAddonManifest, type IAddonMenusAPI, type IAddonNotificationsAPI, type IAddonOAuthAPI, type IAddonSettingsAPI, type IAddonSidebarAPI, type IAddonStorageAPI, type IAddonThemesAPI, type IAddonTimerbarAPI, type IAddonVaultAPI, type IAnalyticsProvider, type IAnalyticsSource, type ICoreAPI, type ICoreConnectionsAPI, type ICoreMembersAPI, type ICoreMetadataAPI, type ICoreRuntimeAPI, type ICoreTasksAPI, type ICoreTimeEntriesAPI, type ICoreTimerAPI, type ICoreWorkspacesAPI, type IDataSource, type IDataSourceInstance, type IHeaders, type IHttpClient, type IHttpClientConfig, type IHttpClientFactory, type IHttpRequestOptions, type IMemberProvider, type IMetadataProvider, type IRegistry, type IRequest, type ITaskProvider, type ITimeEntryProvider, type JsonValue, type LicensingStatusStateViewModel, type LicensingStatusViewModel, type LocalEntryChanges, type LocalEntryFilter, type LocalEntryInput, type LocalMetadataSnapshot, type LocalOperationIdentity, type LocalTimerInput, type MappingFieldDefinition, MarkupConverter, type MemberDTO, type MemberViewModel, type MetadataDTO, type MetadataItem, type MetadataViewModel, type OAuthAuthorizationParameters, type OAuthAuthorizeOptions, type OAuthRenewalResult, type OAuthResult, type OAuthStoredToken, type OAuthTokenExchangeParameters, type OAuthTokenResponse, type PKCEPair, type PagedResultDTO, type PaginatedViewModel, type PaginationOptionsDTO, type Participants, type RuntimeAddonIdentity, type SaveAnalyticsWorkspaceStateInput, type SidebarMenuItem, type SidebarSubItem, type SignedAddonCatalogManifestV1, type SignedAddonCatalogManifestV2, type StatusChange, type SyncDocumentViewModel, type SyncFailureViewModel, type TaskDTO, type TaskViewModel, type TimeEntryCreateIdempotency, type TimeEntryDTO, type TimeEntryRecordDTO as TimeEntryItemDTO, type TimeEntryPullCheckpointDTO, type TimeEntryPullPageDTO, type TimeEntryRecordDTO, type TimeEntryViewModel, type TimerStateDTO, type TimerbarActionItem, type TimerbarItemType, type TimerbarMenuItem, type TimerbarPopoverItem, type TimerbarPopoverSubItem, TokenRefreshError, type TokenRefreshErrorOptions, type UpdatedTaskResult, type UpdatedTimeEntryResult, VALID_ADDON_CAPABILITIES, VALID_ADDON_TIERS, type ViewModel, type WorkspaceConnectionIdentityViewModel, type WorkspaceConnectionMemberViewModel, type WorkspaceConnectionViewModel, type WorkspaceDTO, type WorkspaceStatus$1 as WorkspaceStatus, type WorkspaceViewModel, createAnalyticsDatasetScope, createTimeEntrySnapshotPage, exchangeAuthorizationCode, formatStoredToken, generateOAuthState, generatePKCE, hasCapability, hasProperty, isAddonCapability, isAnalytics, isArray, isBoolean, isDataSource, isFunction, isNonEmptyString, isNumber, isRecord, isString, isTheme, isWatcher, isWorkspaceScoped };
2751
+ export { ADDON_CATALOG_RECEIPT_FILE, type LocalTimerStateDTO as ActiveTimeEntryDTO, type AddonActionResponse, type AddonBaseSettingsField, type AddonCapability, type AddonCatalogFileEntry, type AddonCatalogManifestV1, type AddonCatalogManifestV2, type AddonCollectionItemEnvelope, type AddonCollectionItemField, type AddonCollectionItemRecord, type AddonConfig, type AddonConnectionAuthenticator, type AddonConnectionContext, type AddonContext, type AddonEvaluateFormRequest, type AddonExecuteOperationalActionRequest, type AddonFieldAddress, type AddonFieldAddressStep, type AddonFieldDisabledEntry, type AddonFieldMessageEntry, type AddonFieldVisibilityEntry, type AddonFormEvaluationResponse, type AddonInstallerViewModel, type AddonLoadFailureReason, type AddonLoadFailureStage, type AddonLoadFailureViewModel, type AddonLoadFailuresSnapshot, type AddonManifestViewModel, type AddonMappingPreset, type AddonObserverSnapshot, type AddonObserverSnapshotProvider, type AddonObserverSnapshotRequest, type AddonObserverTimelineItem, type AddonObserverTimelineProvider, type AddonObserverTimelineRequest, type AddonObserverTimelineResponse, type AddonOperationalActionDefinition, type AddonOperationalItem, type AddonOperationalListPagination, type AddonOperationalListRequest, type AddonOperationalListResponse, type AddonPackage, type AddonPackageViewModel, type AddonResolveOptionsPagination, type AddonResolveOptionsRequest, type AddonResolveOptionsResponse, type AddonResolvedDependencyEntry, AddonRuntimeCapabilities, type AddonScreenshot, type AddonScreenshotViewModel, type AddonSettingArrayValue, type AddonSettingObjectValue, type AddonSettingScalarValue, type AddonSettingValue, type AddonSettingsApplyContext, type AddonSettingsApplyHandler, type AddonSettingsApplyState, type AddonSettingsApplyStatus, type AddonSettingsAuthType, type AddonSettingsBooleanField, type AddonSettingsButtonField, type AddonSettingsCollectionField, type AddonSettingsContext, type AddonSettingsDataSourceInstancesField, type AddonSettingsDateField, type AddonSettingsDirectoryField, type AddonSettingsField, type AddonSettingsFieldDependency, type AddonSettingsFieldScope, type AddonSettingsFieldType, type AddonSettingsFileField, type AddonSettingsFormEvaluatorHandler, type AddonSettingsGroup, type AddonSettingsGroupField, type AddonSettingsInfoCardField, type AddonSettingsJsonField, type AddonSettingsMappingField, type AddonSettingsMultiSelectField, type AddonSettingsMultiSelectOption, type AddonSettingsMultiSelectSource, type AddonSettingsNumberField, type AddonSettingsOperationalActionHandler, type AddonSettingsOperationalListField, type AddonSettingsOperationalListProviderHandler, type AddonSettingsOption, type AddonSettingsOptionGroup, type AddonSettingsOptionPresentation, type AddonSettingsOptionsProviderHandler, type AddonSettingsPasswordField, type AddonSettingsRegisterOptions, type AddonSettingsSchema, type AddonSettingsSchemaProvider, type AddonSettingsSelectField, type AddonSettingsSelectSource, type AddonSettingsSnapshot, type AddonSettingsTab, type AddonSettingsTabKind, type AddonSettingsTaskReferenceField, type AddonSettingsTextField, type AddonSettingsTextareaField, type AddonSettingsTimeField, type AddonSettingsTimezoneField, type AddonSettingsValidateHandler, type AddonSettingsValues, type AddonSidebarMenuItem, type AddonStorageEntry, type AddonStorageListPage, type AddonStorageListPagination, type AddonStorageListRequest, type AddonSystemEvents, type AddonTaskReferenceValue, type AddonTheme, type AddonThemeViewModel, type AddonTier, type AddonTierViewModel, AddonTimerControlLock, type AddonTimerbarActionItem, type AddonTimerbarMenuItem, type AddonTimerbarPopoverItem, type AddonTimerbarPopoverSubItem, type AddonValidateSettingsRequest, type AddonVaultScope, type AnalyticsAggregateMeasure, type AnalyticsBatchInfo, type AnalyticsCanonicalEntity, type AnalyticsColumnOrigin, type AnalyticsColumnSchema, type AnalyticsColumnType, type AnalyticsColumnUnit, type AnalyticsContinuation, type AnalyticsDatasetCellValue, type AnalyticsDatasetExecution, type AnalyticsDatasetManifest, type AnalyticsDatasetPayload, type AnalyticsDatasetQueryInput, type AnalyticsDatasetResult, type AnalyticsDatasetRow, type AnalyticsDatasetScope, type AnalyticsExecutionKind, type AnalyticsExecutionMetrics, type AnalyticsExecutionRequest, type AnalyticsExtractionDescriptor, type AnalyticsFilterDefinition, type AnalyticsFilterDynamicSource, type AnalyticsFilterOption, type AnalyticsFilterType, type AnalyticsFilterValue, type AnalyticsHydrateInput, type AnalyticsHydrateResult, type AnalyticsLoadInput, type AnalyticsLoadResult, type AnalyticsLocalFilter, type AnalyticsLocalMeasure, type AnalyticsPlanNode, type AnalyticsProviderContext, type AnalyticsPublication, type AnalyticsPublicationEntry, type AnalyticsQueryInput, type AnalyticsQueryResult, type AnalyticsRefreshMode, type AnalyticsRefreshPolicy, type AnalyticsRowIdentity, type AnalyticsSyncState, type AnalyticsSyncStrategy, type AnalyticsWorkspaceState, AppError, type AuthenticationDTO, type AuthenticationResult, type AuthenticationViewModel, type CommandArgument, type CommandHandler, type CommandResult, type ConfiguredFieldMapping, type ConnectionCredentialOperation, type ConnectionProfileDescriptor, type ConnectionResultViewModel, type CoreAddonUpdateSettingsRequest, type CoreConnection, type CoreConnectionAuthenticationInput, type CoreConnectionAuthorizationRequest, type CoreConnectionAuthorizationResponse, type CoreConnectionCreateInput, type CoreConnectionGetOptions, type CoreConnectionListFilter, type CoreConnectionReadScope, type CoreConnectionScope, type CoreMember, type CoreMetadata, type CoreObserverTimelineRequest, type CoreRuntimeState, type CoreTask, type CoreTaskListRequest, type CoreTaskPage, type CoreTaskReference, type CoreWorkspace, type CreatedTaskResult, type CreatedTimeEntryResult, type DataSourceConfigPreset, type DataSourceContext, Either, type EstimatedTime$1 as EstimatedTime, type ExchangeAuthorizationCodeOptions, FetchHttpClient, type HttpPayload, type HttpResponseValidator, type IAddon, type IAddonAnalyticsAPI, type IAddonCommandsAPI, type IAddonConnectionsContributionAPI, type IAddonContributionsAPI, type IAddonDataSourcesAPI, type IAddonEventsAPI, type IAddonHostAPI, type IAddonManifest, type IAddonMenusAPI, type IAddonNotificationsAPI, type IAddonOAuthAPI, type IAddonSettingsAPI, type IAddonSidebarAPI, type IAddonStorageAPI, type IAddonThemesAPI, type IAddonTimerbarAPI, type IAddonVaultAPI, type IAnalyticsProvider, type IAnalyticsSource, type ICoreAPI, type ICoreAddonsAPI, type ICoreConnectionsAPI, type ICoreMembersAPI, type ICoreMetadataAPI, type ICoreObserverAPI, type ICoreRuntimeAPI, type ICoreTasksAPI, type ICoreTimeEntriesAPI, type ICoreTimerAPI, type ICoreWorkspacesAPI, type IDataSource, type IDataSourceInstance, type IHeaders, type IHttpClient, type IHttpClientConfig, type IHttpClientFactory, type IHttpRequestOptions, type IMemberProvider, type IMetadataProvider, type IRegistry, type IRequest, type ITaskProvider, type ITimeEntryProvider, type JsonValue, type LicensingStatusStateViewModel, type LicensingStatusViewModel, type LocalEntryChanges, type LocalEntryFilter, type LocalEntryInput, type LocalMetadataSnapshot, type LocalOperationIdentity, type LocalTimerInput, type MappingFieldDefinition, MarkupConverter, type MemberDTO, type MemberViewModel, type MetadataDTO, type MetadataItem, type MetadataViewModel, type OAuthAuthorizationParameters, type OAuthAuthorizeOptions, type OAuthRenewalResult, type OAuthResult, type OAuthStoredToken, type OAuthTokenExchangeParameters, type OAuthTokenResponse, type PKCEPair, type PagedResultDTO, type PaginatedViewModel, type PaginationOptionsDTO, type Participants, type RuntimeAddonIdentity, type SaveAnalyticsWorkspaceStateInput, type SidebarMenuItem, type SidebarSubItem, type SignedAddonCatalogManifestV1, type SignedAddonCatalogManifestV2, type StatusChange, type SyncDocumentViewModel, type SyncFailureViewModel, type TaskDTO, type TaskViewModel, type TimeEntryCreateIdempotency, type TimeEntryDTO, type TimeEntryRecordDTO as TimeEntryItemDTO, type TimeEntryPullCheckpointDTO, type TimeEntryPullPageDTO, type TimeEntryRecordDTO, type TimeEntryViewModel, type TimerStateDTO, type TimerbarActionItem, type TimerbarItemType, type TimerbarMenuItem, type TimerbarPopoverItem, type TimerbarPopoverSubItem, TokenRefreshError, type TokenRefreshErrorOptions, type UpdatedTaskResult, type UpdatedTimeEntryResult, VALID_ADDON_CAPABILITIES, VALID_ADDON_TIERS, type ViewModel, type WorkspaceConnectionIdentityViewModel, type WorkspaceConnectionMemberViewModel, type WorkspaceConnectionViewModel, type WorkspaceDTO, type WorkspaceStatus$1 as WorkspaceStatus, type WorkspaceViewModel, createAnalyticsDatasetScope, createTimeEntrySnapshotPage, exchangeAuthorizationCode, formatStoredToken, generateOAuthState, generatePKCE, hasCapability, hasProperty, isAddonCapability, isAnalytics, isArray, isBoolean, isDataSource, isFunction, isNonEmptyString, isNumber, isObserver, isRecord, isString, isTheme, isWorkspaceScoped };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- type AddonCapability = 'auth' | 'dataSource' | 'analytics' | 'watcher' | 'calendar' | 'punch' | 'theme';
1
+ type AddonCapability = 'auth' | 'dataSource' | 'analytics' | 'observer' | 'calendar' | 'punch' | 'theme';
2
2
  declare const VALID_ADDON_CAPABILITIES: readonly AddonCapability[];
3
3
  declare function isAddonCapability(value: string): value is AddonCapability;
4
4
  declare function hasCapability(capabilities: readonly AddonCapability[] | undefined | null, capability: AddonCapability): boolean;
5
5
  declare function isDataSource(capabilities: readonly AddonCapability[] | undefined | null): boolean;
6
- declare function isWatcher(capabilities: readonly AddonCapability[] | undefined | null): boolean;
6
+ declare function isObserver(capabilities: readonly AddonCapability[] | undefined | null): boolean;
7
7
  declare function isTheme(capabilities: readonly AddonCapability[] | undefined | null): boolean;
8
8
  declare function isAnalytics(capabilities: readonly AddonCapability[] | undefined | null): boolean;
9
9
 
@@ -101,8 +101,49 @@ declare function isWorkspaceScoped(value: unknown): value is {
101
101
  workspaceId: string;
102
102
  };
103
103
 
104
+ type ConnectionCardinality = 'single' | 'multi';
105
+ interface AuthorizationRoleRequirement {
106
+ readonly authorizationRole: string;
107
+ readonly allowedAuthProfileIds: readonly string[];
108
+ readonly defaultAuthProfileId: string | null;
109
+ readonly required?: boolean;
110
+ readonly label?: string;
111
+ }
112
+ type ConnectionProfileDescriptor = Readonly<{
113
+ connectionProfileId: string;
114
+ cardinality: ConnectionCardinality;
115
+ default: boolean;
116
+ capabilities: readonly AddonCapability[];
117
+ allowedAuthProfileIds?: readonly string[];
118
+ defaultAuthProfileId?: string | null;
119
+ roles?: readonly AuthorizationRoleRequirement[];
120
+ }>;
121
+
122
+ type ConnectionIdentity = {
123
+ kind: 'human';
124
+ providerId: string;
125
+ tenantId: string;
126
+ providerSubjectId: string;
127
+ displayName: string;
128
+ avatarUrl?: string;
129
+ } | {
130
+ kind: 'bot';
131
+ providerId: string;
132
+ tenantId: string;
133
+ providerSubjectId: string;
134
+ displayName: string;
135
+ avatarUrl?: string;
136
+ } | {
137
+ kind: 'installation';
138
+ providerId: string;
139
+ tenantId: string;
140
+ providerSubjectId: string;
141
+ displayName: string;
142
+ };
143
+
104
144
  type AddonTier = 'free' | 'plus';
105
- declare const VALID_ADDON_TIERS: AddonTier[];
145
+ declare const VALID_ADDON_TIERS: readonly AddonTier[];
146
+
106
147
  interface AddonScreenshot {
107
148
  url: string;
108
149
  caption?: string;
@@ -195,46 +236,6 @@ type AddonConfig = {
195
236
  packages?: AddonPackage[];
196
237
  };
197
238
 
198
- type ConnectionCardinality = 'single' | 'multi';
199
- interface AuthorizationRoleRequirement {
200
- readonly authorizationRole: string;
201
- readonly allowedAuthProfileIds: readonly string[];
202
- readonly defaultAuthProfileId: string | null;
203
- readonly required?: boolean;
204
- readonly label?: string;
205
- }
206
- type ConnectionProfileDescriptor = Readonly<{
207
- connectionProfileId: string;
208
- cardinality: ConnectionCardinality;
209
- default: boolean;
210
- allowedAuthProfileIds?: readonly string[];
211
- defaultAuthProfileId?: string | null;
212
- roles?: readonly AuthorizationRoleRequirement[];
213
- capability?: string;
214
- }>;
215
-
216
- type ConnectionIdentity = {
217
- kind: 'human';
218
- providerId: string;
219
- tenantId: string;
220
- providerSubjectId: string;
221
- displayName: string;
222
- avatarUrl?: string;
223
- } | {
224
- kind: 'bot';
225
- providerId: string;
226
- tenantId: string;
227
- providerSubjectId: string;
228
- displayName: string;
229
- avatarUrl?: string;
230
- } | {
231
- kind: 'installation';
232
- providerId: string;
233
- tenantId: string;
234
- providerSubjectId: string;
235
- displayName: string;
236
- };
237
-
238
239
  interface AddonInstallerViewModel {
239
240
  id: string;
240
241
  packages: {
@@ -843,11 +844,17 @@ interface IRequest<TBody = void> {
843
844
  body: TBody;
844
845
  }
845
846
 
847
+ type AddonApplicationStatus = 'applied' | 'pending' | 'failed';
846
848
  type AddonSettingsSnapshot = {
847
849
  schemaVersion: 1;
848
850
  revision: number;
849
851
  values: AddonSettingsValues;
850
852
  };
853
+ type AddonSettingsView = AddonSettingsSnapshot & {
854
+ credentialStates: Record<string, 'configured' | 'absent'>;
855
+ applicationStatus?: AddonApplicationStatus;
856
+ applicationError?: string;
857
+ };
851
858
 
852
859
  type AddonVaultScope = {
853
860
  kind: 'addon';
@@ -1263,6 +1270,7 @@ interface AddonObserverTimelineItem {
1263
1270
  readonly endedAt: string;
1264
1271
  readonly durationSeconds: number;
1265
1272
  readonly availableActions: readonly AddonOperationalActionDefinition[];
1273
+ readonly metadata?: Readonly<Record<string, AddonSettingScalarValue>>;
1266
1274
  }
1267
1275
  interface AddonObserverTimelineRequest {
1268
1276
  readonly scope: AddonVaultScope;
@@ -1271,6 +1279,23 @@ interface AddonObserverTimelineRequest {
1271
1279
  interface AddonObserverTimelineResponse {
1272
1280
  readonly items: readonly AddonObserverTimelineItem[];
1273
1281
  }
1282
+ interface AddonObserverTimelineTrackSummary {
1283
+ readonly addonId: string;
1284
+ readonly addonName: string;
1285
+ readonly addonIconUrl?: string;
1286
+ readonly totalSeconds: number;
1287
+ readonly items: readonly AddonObserverTimelineItem[];
1288
+ }
1289
+ interface SystemIdleIntervalSummary {
1290
+ readonly startedAt: string;
1291
+ readonly endedAt: string;
1292
+ readonly durationSeconds: number;
1293
+ }
1294
+ interface AddonObserverTimelineSnapshot {
1295
+ readonly date: string;
1296
+ readonly tracks: readonly AddonObserverTimelineTrackSummary[];
1297
+ readonly idleIntervals: readonly SystemIdleIntervalSummary[];
1298
+ }
1274
1299
  type AddonObserverTimelineProvider = (request: AddonObserverTimelineRequest) => Promise<Either<AppError, AddonObserverTimelineResponse>> | Either<AppError, AddonObserverTimelineResponse>;
1275
1300
  type AddonSettingsSchemaProvider = AddonSettingsSchema | ((context?: AddonSettingsContext) => Promise<AddonSettingsSchema> | AddonSettingsSchema);
1276
1301
 
@@ -1348,7 +1373,7 @@ interface CoreConnection extends CoreConnectionScope {
1348
1373
  cardinality: 'single' | 'multi';
1349
1374
  status: 'connected' | 'disabled' | 'disconnected' | 'archived';
1350
1375
  identity: CoreConnectionIdentity | null;
1351
- capability?: string;
1376
+ capabilities: readonly AddonCapability[];
1352
1377
  }
1353
1378
  interface CoreConnectionIdentity {
1354
1379
  kind: 'human' | 'bot' | 'installation';
@@ -1492,6 +1517,53 @@ type AddonConnectionAuthenticator = {
1492
1517
  completeAuthentication(scope: CoreConnectionScope, parameters: OAuthTokenExchangeParameters): Promise<Either<AppError, AuthenticationResult>>;
1493
1518
  } & OAuthRevocationCapability);
1494
1519
 
1520
+ interface AddonScreenshotDTO {
1521
+ url: string;
1522
+ caption?: string;
1523
+ }
1524
+ interface AddonPackageDTO {
1525
+ version: string;
1526
+ requiredApiVersion?: string;
1527
+ releaseDate?: string;
1528
+ downloadUrl: string;
1529
+ sha256?: string;
1530
+ size?: number;
1531
+ changelog?: string[];
1532
+ }
1533
+ interface AddonManifestDTO {
1534
+ id: string;
1535
+ version: string;
1536
+ name: string;
1537
+ creator: string;
1538
+ description: string;
1539
+ path: string;
1540
+ logo: string;
1541
+ downloads: number;
1542
+ stars: number;
1543
+ installed: boolean;
1544
+ capabilities: readonly AddonCapability[];
1545
+ tier?: AddonTier;
1546
+ sha256?: string;
1547
+ size?: number;
1548
+ installerManifestUrl?: string;
1549
+ sourceUrl?: string;
1550
+ homepage?: string;
1551
+ tags?: string[];
1552
+ screenshots?: AddonScreenshotDTO[];
1553
+ downloadUrl?: string;
1554
+ requiredApiVersion?: string;
1555
+ releaseDate?: string;
1556
+ changelog?: string[];
1557
+ packages?: AddonPackageDTO[];
1558
+ updateAvailable?: boolean;
1559
+ latestVersion?: string;
1560
+ latestDownloadUrl?: string;
1561
+ latestSha256?: string;
1562
+ latestSize?: number;
1563
+ incompatibleUpdate?: boolean;
1564
+ incompatibleReason?: string;
1565
+ }
1566
+
1495
1567
  interface MemberDTO {
1496
1568
  /** Native provider identity: numeric IDs and opaque account IDs are both valid. */
1497
1569
  id: string | number;
@@ -2122,11 +2194,17 @@ interface AddonTimerbarPopoverItem {
2122
2194
  }
2123
2195
  type AddonTimerbarMenuItem = AddonTimerbarActionItem | AddonTimerbarPopoverItem;
2124
2196
 
2197
+ type CoreConnectionReadScope = 'own' | 'workspace';
2198
+ interface CoreConnectionListFilter {
2199
+ readonly capability?: AddonCapability;
2200
+ readonly scope?: CoreConnectionReadScope;
2201
+ }
2202
+ interface CoreConnectionGetOptions {
2203
+ readonly scope?: CoreConnectionReadScope;
2204
+ }
2125
2205
  interface ICoreConnectionsReadAPI {
2126
- list(workspaceId: string, filter?: {
2127
- capability?: string;
2128
- }): Promise<Either<AppError, CoreConnection[]>>;
2129
- get(scope: CoreConnectionScope): Promise<Either<AppError, CoreConnection>>;
2206
+ list(workspaceId: string, filter?: CoreConnectionListFilter): Promise<Either<AppError, CoreConnection[]>>;
2207
+ get(scope: CoreConnectionScope, options?: CoreConnectionGetOptions): Promise<Either<AppError, CoreConnection>>;
2130
2208
  }
2131
2209
  interface ICoreConnectionsAPI extends ICoreConnectionsReadAPI {
2132
2210
  create(input: CoreConnectionCreateInput): Promise<Either<AppError, CoreConnection>>;
@@ -2182,6 +2260,30 @@ interface ICoreAddonCapabilities extends ICoreReadAPI {
2182
2260
  readonly connections: ICoreConnectionsAPI;
2183
2261
  }
2184
2262
 
2263
+ interface CoreAddonUpdateSettingsRequest {
2264
+ readonly addonId: string;
2265
+ readonly scope: AddonVaultScope;
2266
+ readonly expectedRevision: number;
2267
+ readonly values: AddonSettingsValues;
2268
+ }
2269
+ interface ICoreAddonsAPI {
2270
+ listInstalled(): Promise<Either<AppError, AddonManifestDTO[]>>;
2271
+ listCatalog(): Promise<Either<AppError, AddonManifestDTO[]>>;
2272
+ install(addonId: string): Promise<Either<AppError, AddonManifestDTO>>;
2273
+ uninstall(addonId: string): Promise<Either<AppError, void>>;
2274
+ getSettings(addonId: string, scope: AddonVaultScope): Promise<Either<AppError, AddonSettingsView>>;
2275
+ updateSettings(request: CoreAddonUpdateSettingsRequest): Promise<Either<AppError, AddonSettingsView>>;
2276
+ }
2277
+
2278
+ interface CoreObserverTimelineRequest {
2279
+ readonly workspaceId: string;
2280
+ readonly date: string;
2281
+ readonly addonId?: string;
2282
+ }
2283
+ interface ICoreObserverAPI {
2284
+ getTimeline(request: CoreObserverTimelineRequest): Promise<Either<AppError, AddonObserverTimelineSnapshot>>;
2285
+ }
2286
+
2185
2287
  type ICoreTimeEntriesAPI = ILocalTimeEntriesCapability;
2186
2288
 
2187
2289
  type ICoreTimerAPI = ILocalTimerCapability;
@@ -2190,6 +2292,8 @@ type ICoreTimerAPI = ILocalTimerCapability;
2190
2292
  interface ICoreAPI extends ICoreAddonCapabilities {
2191
2293
  readonly timer: ICoreTimerAPI;
2192
2294
  readonly timeEntries: ICoreTimeEntriesAPI;
2295
+ readonly observer: ICoreObserverAPI;
2296
+ readonly addons: ICoreAddonsAPI;
2193
2297
  }
2194
2298
 
2195
2299
  interface IMemberProvider {
@@ -2644,4 +2748,4 @@ interface ExchangeAuthorizationCodeOptions {
2644
2748
  */
2645
2749
  declare function exchangeAuthorizationCode(options: ExchangeAuthorizationCodeOptions): Promise<OAuthStoredToken>;
2646
2750
 
2647
- export { ADDON_CATALOG_RECEIPT_FILE, type LocalTimerStateDTO as ActiveTimeEntryDTO, type AddonActionResponse, type AddonBaseSettingsField, type AddonCapability, type AddonCatalogFileEntry, type AddonCatalogManifestV1, type AddonCatalogManifestV2, type AddonCollectionItemEnvelope, type AddonCollectionItemField, type AddonCollectionItemRecord, type AddonConfig, type AddonConnectionAuthenticator, type AddonConnectionContext, type AddonContext, type AddonEvaluateFormRequest, type AddonExecuteOperationalActionRequest, type AddonFieldAddress, type AddonFieldAddressStep, type AddonFieldDisabledEntry, type AddonFieldMessageEntry, type AddonFieldVisibilityEntry, type AddonFormEvaluationResponse, type AddonInstallerViewModel, type AddonLoadFailureReason, type AddonLoadFailureStage, type AddonLoadFailureViewModel, type AddonLoadFailuresSnapshot, type AddonManifestViewModel, type AddonMappingPreset, type AddonObserverSnapshot, type AddonObserverSnapshotProvider, type AddonObserverSnapshotRequest, type AddonObserverTimelineItem, type AddonObserverTimelineProvider, type AddonObserverTimelineRequest, type AddonObserverTimelineResponse, type AddonOperationalActionDefinition, type AddonOperationalItem, type AddonOperationalListPagination, type AddonOperationalListRequest, type AddonOperationalListResponse, type AddonPackage, type AddonPackageViewModel, type AddonResolveOptionsPagination, type AddonResolveOptionsRequest, type AddonResolveOptionsResponse, type AddonResolvedDependencyEntry, AddonRuntimeCapabilities, type AddonScreenshot, type AddonScreenshotViewModel, type AddonSettingArrayValue, type AddonSettingObjectValue, type AddonSettingScalarValue, type AddonSettingValue, type AddonSettingsApplyContext, type AddonSettingsApplyHandler, type AddonSettingsApplyState, type AddonSettingsApplyStatus, type AddonSettingsAuthType, type AddonSettingsBooleanField, type AddonSettingsButtonField, type AddonSettingsCollectionField, type AddonSettingsContext, type AddonSettingsDataSourceInstancesField, type AddonSettingsDateField, type AddonSettingsDirectoryField, type AddonSettingsField, type AddonSettingsFieldDependency, type AddonSettingsFieldScope, type AddonSettingsFieldType, type AddonSettingsFileField, type AddonSettingsFormEvaluatorHandler, type AddonSettingsGroup, type AddonSettingsGroupField, type AddonSettingsInfoCardField, type AddonSettingsJsonField, type AddonSettingsMappingField, type AddonSettingsMultiSelectField, type AddonSettingsMultiSelectOption, type AddonSettingsMultiSelectSource, type AddonSettingsNumberField, type AddonSettingsOperationalActionHandler, type AddonSettingsOperationalListField, type AddonSettingsOperationalListProviderHandler, type AddonSettingsOption, type AddonSettingsOptionGroup, type AddonSettingsOptionPresentation, type AddonSettingsOptionsProviderHandler, type AddonSettingsPasswordField, type AddonSettingsRegisterOptions, type AddonSettingsSchema, type AddonSettingsSchemaProvider, type AddonSettingsSelectField, type AddonSettingsSelectSource, type AddonSettingsSnapshot, type AddonSettingsTab, type AddonSettingsTabKind, type AddonSettingsTaskReferenceField, type AddonSettingsTextField, type AddonSettingsTextareaField, type AddonSettingsTimeField, type AddonSettingsTimezoneField, type AddonSettingsValidateHandler, type AddonSettingsValues, type AddonSidebarMenuItem, type AddonStorageEntry, type AddonStorageListPage, type AddonStorageListPagination, type AddonStorageListRequest, type AddonSystemEvents, type AddonTaskReferenceValue, type AddonTheme, type AddonThemeViewModel, type AddonTier, type AddonTierViewModel, AddonTimerControlLock, type AddonTimerbarActionItem, type AddonTimerbarMenuItem, type AddonTimerbarPopoverItem, type AddonTimerbarPopoverSubItem, type AddonValidateSettingsRequest, type AddonVaultScope, type AnalyticsAggregateMeasure, type AnalyticsBatchInfo, type AnalyticsCanonicalEntity, type AnalyticsColumnOrigin, type AnalyticsColumnSchema, type AnalyticsColumnType, type AnalyticsColumnUnit, type AnalyticsContinuation, type AnalyticsDatasetCellValue, type AnalyticsDatasetExecution, type AnalyticsDatasetManifest, type AnalyticsDatasetPayload, type AnalyticsDatasetQueryInput, type AnalyticsDatasetResult, type AnalyticsDatasetRow, type AnalyticsDatasetScope, type AnalyticsExecutionKind, type AnalyticsExecutionMetrics, type AnalyticsExecutionRequest, type AnalyticsExtractionDescriptor, type AnalyticsFilterDefinition, type AnalyticsFilterDynamicSource, type AnalyticsFilterOption, type AnalyticsFilterType, type AnalyticsFilterValue, type AnalyticsHydrateInput, type AnalyticsHydrateResult, type AnalyticsLoadInput, type AnalyticsLoadResult, type AnalyticsLocalFilter, type AnalyticsLocalMeasure, type AnalyticsPlanNode, type AnalyticsProviderContext, type AnalyticsPublication, type AnalyticsPublicationEntry, type AnalyticsQueryInput, type AnalyticsQueryResult, type AnalyticsRefreshMode, type AnalyticsRefreshPolicy, type AnalyticsRowIdentity, type AnalyticsSyncState, type AnalyticsSyncStrategy, type AnalyticsWorkspaceState, AppError, type AuthenticationDTO, type AuthenticationResult, type AuthenticationViewModel, type CommandArgument, type CommandHandler, type CommandResult, type ConfiguredFieldMapping, type ConnectionCredentialOperation, type ConnectionProfileDescriptor, type ConnectionResultViewModel, type CoreConnection, type CoreConnectionAuthenticationInput, type CoreConnectionAuthorizationRequest, type CoreConnectionAuthorizationResponse, type CoreConnectionCreateInput, type CoreConnectionScope, type CoreMember, type CoreMetadata, type CoreRuntimeState, type CoreTask, type CoreTaskListRequest, type CoreTaskPage, type CoreTaskReference, type CoreWorkspace, type CreatedTaskResult, type CreatedTimeEntryResult, type DataSourceConfigPreset, type DataSourceContext, Either, type EstimatedTime$1 as EstimatedTime, type ExchangeAuthorizationCodeOptions, FetchHttpClient, type HttpPayload, type HttpResponseValidator, type IAddon, type IAddonAnalyticsAPI, type IAddonCommandsAPI, type IAddonConnectionsContributionAPI, type IAddonContributionsAPI, type IAddonDataSourcesAPI, type IAddonEventsAPI, type IAddonHostAPI, type IAddonManifest, type IAddonMenusAPI, type IAddonNotificationsAPI, type IAddonOAuthAPI, type IAddonSettingsAPI, type IAddonSidebarAPI, type IAddonStorageAPI, type IAddonThemesAPI, type IAddonTimerbarAPI, type IAddonVaultAPI, type IAnalyticsProvider, type IAnalyticsSource, type ICoreAPI, type ICoreConnectionsAPI, type ICoreMembersAPI, type ICoreMetadataAPI, type ICoreRuntimeAPI, type ICoreTasksAPI, type ICoreTimeEntriesAPI, type ICoreTimerAPI, type ICoreWorkspacesAPI, type IDataSource, type IDataSourceInstance, type IHeaders, type IHttpClient, type IHttpClientConfig, type IHttpClientFactory, type IHttpRequestOptions, type IMemberProvider, type IMetadataProvider, type IRegistry, type IRequest, type ITaskProvider, type ITimeEntryProvider, type JsonValue, type LicensingStatusStateViewModel, type LicensingStatusViewModel, type LocalEntryChanges, type LocalEntryFilter, type LocalEntryInput, type LocalMetadataSnapshot, type LocalOperationIdentity, type LocalTimerInput, type MappingFieldDefinition, MarkupConverter, type MemberDTO, type MemberViewModel, type MetadataDTO, type MetadataItem, type MetadataViewModel, type OAuthAuthorizationParameters, type OAuthAuthorizeOptions, type OAuthRenewalResult, type OAuthResult, type OAuthStoredToken, type OAuthTokenExchangeParameters, type OAuthTokenResponse, type PKCEPair, type PagedResultDTO, type PaginatedViewModel, type PaginationOptionsDTO, type Participants, type RuntimeAddonIdentity, type SaveAnalyticsWorkspaceStateInput, type SidebarMenuItem, type SidebarSubItem, type SignedAddonCatalogManifestV1, type SignedAddonCatalogManifestV2, type StatusChange, type SyncDocumentViewModel, type SyncFailureViewModel, type TaskDTO, type TaskViewModel, type TimeEntryCreateIdempotency, type TimeEntryDTO, type TimeEntryRecordDTO as TimeEntryItemDTO, type TimeEntryPullCheckpointDTO, type TimeEntryPullPageDTO, type TimeEntryRecordDTO, type TimeEntryViewModel, type TimerStateDTO, type TimerbarActionItem, type TimerbarItemType, type TimerbarMenuItem, type TimerbarPopoverItem, type TimerbarPopoverSubItem, TokenRefreshError, type TokenRefreshErrorOptions, type UpdatedTaskResult, type UpdatedTimeEntryResult, VALID_ADDON_CAPABILITIES, VALID_ADDON_TIERS, type ViewModel, type WorkspaceConnectionIdentityViewModel, type WorkspaceConnectionMemberViewModel, type WorkspaceConnectionViewModel, type WorkspaceDTO, type WorkspaceStatus$1 as WorkspaceStatus, type WorkspaceViewModel, createAnalyticsDatasetScope, createTimeEntrySnapshotPage, exchangeAuthorizationCode, formatStoredToken, generateOAuthState, generatePKCE, hasCapability, hasProperty, isAddonCapability, isAnalytics, isArray, isBoolean, isDataSource, isFunction, isNonEmptyString, isNumber, isRecord, isString, isTheme, isWatcher, isWorkspaceScoped };
2751
+ export { ADDON_CATALOG_RECEIPT_FILE, type LocalTimerStateDTO as ActiveTimeEntryDTO, type AddonActionResponse, type AddonBaseSettingsField, type AddonCapability, type AddonCatalogFileEntry, type AddonCatalogManifestV1, type AddonCatalogManifestV2, type AddonCollectionItemEnvelope, type AddonCollectionItemField, type AddonCollectionItemRecord, type AddonConfig, type AddonConnectionAuthenticator, type AddonConnectionContext, type AddonContext, type AddonEvaluateFormRequest, type AddonExecuteOperationalActionRequest, type AddonFieldAddress, type AddonFieldAddressStep, type AddonFieldDisabledEntry, type AddonFieldMessageEntry, type AddonFieldVisibilityEntry, type AddonFormEvaluationResponse, type AddonInstallerViewModel, type AddonLoadFailureReason, type AddonLoadFailureStage, type AddonLoadFailureViewModel, type AddonLoadFailuresSnapshot, type AddonManifestViewModel, type AddonMappingPreset, type AddonObserverSnapshot, type AddonObserverSnapshotProvider, type AddonObserverSnapshotRequest, type AddonObserverTimelineItem, type AddonObserverTimelineProvider, type AddonObserverTimelineRequest, type AddonObserverTimelineResponse, type AddonOperationalActionDefinition, type AddonOperationalItem, type AddonOperationalListPagination, type AddonOperationalListRequest, type AddonOperationalListResponse, type AddonPackage, type AddonPackageViewModel, type AddonResolveOptionsPagination, type AddonResolveOptionsRequest, type AddonResolveOptionsResponse, type AddonResolvedDependencyEntry, AddonRuntimeCapabilities, type AddonScreenshot, type AddonScreenshotViewModel, type AddonSettingArrayValue, type AddonSettingObjectValue, type AddonSettingScalarValue, type AddonSettingValue, type AddonSettingsApplyContext, type AddonSettingsApplyHandler, type AddonSettingsApplyState, type AddonSettingsApplyStatus, type AddonSettingsAuthType, type AddonSettingsBooleanField, type AddonSettingsButtonField, type AddonSettingsCollectionField, type AddonSettingsContext, type AddonSettingsDataSourceInstancesField, type AddonSettingsDateField, type AddonSettingsDirectoryField, type AddonSettingsField, type AddonSettingsFieldDependency, type AddonSettingsFieldScope, type AddonSettingsFieldType, type AddonSettingsFileField, type AddonSettingsFormEvaluatorHandler, type AddonSettingsGroup, type AddonSettingsGroupField, type AddonSettingsInfoCardField, type AddonSettingsJsonField, type AddonSettingsMappingField, type AddonSettingsMultiSelectField, type AddonSettingsMultiSelectOption, type AddonSettingsMultiSelectSource, type AddonSettingsNumberField, type AddonSettingsOperationalActionHandler, type AddonSettingsOperationalListField, type AddonSettingsOperationalListProviderHandler, type AddonSettingsOption, type AddonSettingsOptionGroup, type AddonSettingsOptionPresentation, type AddonSettingsOptionsProviderHandler, type AddonSettingsPasswordField, type AddonSettingsRegisterOptions, type AddonSettingsSchema, type AddonSettingsSchemaProvider, type AddonSettingsSelectField, type AddonSettingsSelectSource, type AddonSettingsSnapshot, type AddonSettingsTab, type AddonSettingsTabKind, type AddonSettingsTaskReferenceField, type AddonSettingsTextField, type AddonSettingsTextareaField, type AddonSettingsTimeField, type AddonSettingsTimezoneField, type AddonSettingsValidateHandler, type AddonSettingsValues, type AddonSidebarMenuItem, type AddonStorageEntry, type AddonStorageListPage, type AddonStorageListPagination, type AddonStorageListRequest, type AddonSystemEvents, type AddonTaskReferenceValue, type AddonTheme, type AddonThemeViewModel, type AddonTier, type AddonTierViewModel, AddonTimerControlLock, type AddonTimerbarActionItem, type AddonTimerbarMenuItem, type AddonTimerbarPopoverItem, type AddonTimerbarPopoverSubItem, type AddonValidateSettingsRequest, type AddonVaultScope, type AnalyticsAggregateMeasure, type AnalyticsBatchInfo, type AnalyticsCanonicalEntity, type AnalyticsColumnOrigin, type AnalyticsColumnSchema, type AnalyticsColumnType, type AnalyticsColumnUnit, type AnalyticsContinuation, type AnalyticsDatasetCellValue, type AnalyticsDatasetExecution, type AnalyticsDatasetManifest, type AnalyticsDatasetPayload, type AnalyticsDatasetQueryInput, type AnalyticsDatasetResult, type AnalyticsDatasetRow, type AnalyticsDatasetScope, type AnalyticsExecutionKind, type AnalyticsExecutionMetrics, type AnalyticsExecutionRequest, type AnalyticsExtractionDescriptor, type AnalyticsFilterDefinition, type AnalyticsFilterDynamicSource, type AnalyticsFilterOption, type AnalyticsFilterType, type AnalyticsFilterValue, type AnalyticsHydrateInput, type AnalyticsHydrateResult, type AnalyticsLoadInput, type AnalyticsLoadResult, type AnalyticsLocalFilter, type AnalyticsLocalMeasure, type AnalyticsPlanNode, type AnalyticsProviderContext, type AnalyticsPublication, type AnalyticsPublicationEntry, type AnalyticsQueryInput, type AnalyticsQueryResult, type AnalyticsRefreshMode, type AnalyticsRefreshPolicy, type AnalyticsRowIdentity, type AnalyticsSyncState, type AnalyticsSyncStrategy, type AnalyticsWorkspaceState, AppError, type AuthenticationDTO, type AuthenticationResult, type AuthenticationViewModel, type CommandArgument, type CommandHandler, type CommandResult, type ConfiguredFieldMapping, type ConnectionCredentialOperation, type ConnectionProfileDescriptor, type ConnectionResultViewModel, type CoreAddonUpdateSettingsRequest, type CoreConnection, type CoreConnectionAuthenticationInput, type CoreConnectionAuthorizationRequest, type CoreConnectionAuthorizationResponse, type CoreConnectionCreateInput, type CoreConnectionGetOptions, type CoreConnectionListFilter, type CoreConnectionReadScope, type CoreConnectionScope, type CoreMember, type CoreMetadata, type CoreObserverTimelineRequest, type CoreRuntimeState, type CoreTask, type CoreTaskListRequest, type CoreTaskPage, type CoreTaskReference, type CoreWorkspace, type CreatedTaskResult, type CreatedTimeEntryResult, type DataSourceConfigPreset, type DataSourceContext, Either, type EstimatedTime$1 as EstimatedTime, type ExchangeAuthorizationCodeOptions, FetchHttpClient, type HttpPayload, type HttpResponseValidator, type IAddon, type IAddonAnalyticsAPI, type IAddonCommandsAPI, type IAddonConnectionsContributionAPI, type IAddonContributionsAPI, type IAddonDataSourcesAPI, type IAddonEventsAPI, type IAddonHostAPI, type IAddonManifest, type IAddonMenusAPI, type IAddonNotificationsAPI, type IAddonOAuthAPI, type IAddonSettingsAPI, type IAddonSidebarAPI, type IAddonStorageAPI, type IAddonThemesAPI, type IAddonTimerbarAPI, type IAddonVaultAPI, type IAnalyticsProvider, type IAnalyticsSource, type ICoreAPI, type ICoreAddonsAPI, type ICoreConnectionsAPI, type ICoreMembersAPI, type ICoreMetadataAPI, type ICoreObserverAPI, type ICoreRuntimeAPI, type ICoreTasksAPI, type ICoreTimeEntriesAPI, type ICoreTimerAPI, type ICoreWorkspacesAPI, type IDataSource, type IDataSourceInstance, type IHeaders, type IHttpClient, type IHttpClientConfig, type IHttpClientFactory, type IHttpRequestOptions, type IMemberProvider, type IMetadataProvider, type IRegistry, type IRequest, type ITaskProvider, type ITimeEntryProvider, type JsonValue, type LicensingStatusStateViewModel, type LicensingStatusViewModel, type LocalEntryChanges, type LocalEntryFilter, type LocalEntryInput, type LocalMetadataSnapshot, type LocalOperationIdentity, type LocalTimerInput, type MappingFieldDefinition, MarkupConverter, type MemberDTO, type MemberViewModel, type MetadataDTO, type MetadataItem, type MetadataViewModel, type OAuthAuthorizationParameters, type OAuthAuthorizeOptions, type OAuthRenewalResult, type OAuthResult, type OAuthStoredToken, type OAuthTokenExchangeParameters, type OAuthTokenResponse, type PKCEPair, type PagedResultDTO, type PaginatedViewModel, type PaginationOptionsDTO, type Participants, type RuntimeAddonIdentity, type SaveAnalyticsWorkspaceStateInput, type SidebarMenuItem, type SidebarSubItem, type SignedAddonCatalogManifestV1, type SignedAddonCatalogManifestV2, type StatusChange, type SyncDocumentViewModel, type SyncFailureViewModel, type TaskDTO, type TaskViewModel, type TimeEntryCreateIdempotency, type TimeEntryDTO, type TimeEntryRecordDTO as TimeEntryItemDTO, type TimeEntryPullCheckpointDTO, type TimeEntryPullPageDTO, type TimeEntryRecordDTO, type TimeEntryViewModel, type TimerStateDTO, type TimerbarActionItem, type TimerbarItemType, type TimerbarMenuItem, type TimerbarPopoverItem, type TimerbarPopoverSubItem, TokenRefreshError, type TokenRefreshErrorOptions, type UpdatedTaskResult, type UpdatedTimeEntryResult, VALID_ADDON_CAPABILITIES, VALID_ADDON_TIERS, type ViewModel, type WorkspaceConnectionIdentityViewModel, type WorkspaceConnectionMemberViewModel, type WorkspaceConnectionViewModel, type WorkspaceDTO, type WorkspaceStatus$1 as WorkspaceStatus, type WorkspaceViewModel, createAnalyticsDatasetScope, createTimeEntrySnapshotPage, exchangeAuthorizationCode, formatStoredToken, generateOAuthState, generatePKCE, hasCapability, hasProperty, isAddonCapability, isAnalytics, isArray, isBoolean, isDataSource, isFunction, isNonEmptyString, isNumber, isObserver, isRecord, isString, isTheme, isWorkspaceScoped };