@scalemule/sdk 0.0.75 → 0.0.77

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/README.md CHANGED
@@ -567,3 +567,29 @@ Mutations require optimistic revisions. Collection/feature edits never auto-publ
567
567
  Submission/report retries reuse the same UUID `idempotency_key` for unchanged input.
568
568
  Residential `EXACT_PUBLIC` locations are rejected. Photo approval and publication
569
569
  are separate actions; `mediaPath()` returns a path to proxy, never a signed file URL.
570
+
571
+
572
+ ### Local intelligence (BaseNews foundation)
573
+
574
+ `sdk.localIntelligence` provides typed access to the existing News service's opt-in
575
+ `basenews/1` contract: approved record projections, supporting evidence, scoped
576
+ changes, concise briefings, explicit preferences/follows, and voluntary utility
577
+ feedback. Publication publish permission and a human review are required for
578
+ `release`; being allowed to read intelligence never grants editorial authority.
579
+
580
+ Use `briefing(publicationId, { geography, personalized: false })` for a useful
581
+ nonpersonalized community view. `briefingForPreferences` accepts ephemeral
582
+ explicit preferences for agents without reading another person's saved profile.
583
+ Existing SDK authentication and request context apply; publication API keys remain
584
+ server-side and no internal platform token belongs in an application.
585
+
586
+ Cache records per application/publication, honor `refresh_after`, and remove
587
+ tombstones. `applyIntelligenceChanges` preserves sequence precision, rejects gaps
588
+ and cross-scope pages, and ignores replayed changes. When bootstrapping with
589
+ `records`, retain the first page's `changes_cursor` and `changes_sequence`; use
590
+ that sequence to initialize the cache, then consume changes serially. Leases must
591
+ be refreshed even when the change feed is quiet. Responses represent current
592
+ authorized state, not access to historical source documents.
593
+
594
+ This feature requires the new News migration and explicit operator enablement.
595
+ It does not change existing publishing, maps, jobs, classifieds or reader flows.
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Experiments (A/B tests) on top of scalemule-flags variants.
3
+ *
4
+ * Convention shared by every ScaleMule client and the analytics service:
5
+ * - An experiment is a flag with two or more weighted variants. Evaluating it with a stable
6
+ * identifier (`session_id` or `user_id`) yields the visitor's `variant_key`.
7
+ * - Every analytics event sent while a visitor is in an experiment carries
8
+ * `properties.experiments = { "<flag_key>": "<variant_key>" }`.
9
+ * - `experiment_exposed` is tracked once per visitor and flag when the variant is first shown.
10
+ * - The analytics service reports per-variant results from those properties
11
+ * (`GET /v1/analytics/admin/experiments/{flag_key}`), so any tracked event can be the goal.
12
+ */
13
+ declare const EXPERIMENTS_PROPERTY = "experiments";
14
+ declare const EXPERIMENT_EXPOSED_EVENT = "experiment_exposed";
15
+ declare const MAX_EXPERIMENTS_PER_EVENT = 10;
16
+ /** Active assignments for one visitor: flag key → variant key. */
17
+ type ExperimentAssignments = Record<string, string>;
18
+ interface ExperimentAssignment<T = unknown> {
19
+ flag_key: string;
20
+ /** The variant the visitor is in, or null when the flag is off, missing or has no variants. */
21
+ variant: string | null;
22
+ /** The raw flag evaluation this assignment came from, when one was made. */
23
+ evaluation?: ExperimentEvaluationLike<T> | null;
24
+ }
25
+ /** The subset of a flag evaluation the experiment helpers read. */
26
+ interface ExperimentEvaluationLike<T = unknown> {
27
+ flag_key?: string;
28
+ value?: T;
29
+ reason?: string;
30
+ variant_key?: string | null;
31
+ }
32
+ declare function isExperimentKey(value: unknown): value is string;
33
+ declare function isVariantKey(value: unknown): value is string;
34
+ /**
35
+ * The variant a flag evaluation puts the visitor in.
36
+ * Weighted variants report `variant_key`; a rule or default that serves a string value counts as
37
+ * that variant (so a rule can pin everyone to "modern" and the report still groups them).
38
+ */
39
+ declare function experimentVariant(evaluation: ExperimentEvaluationLike | null | undefined): string | null;
40
+ /** Keeps only well-formed `{ flag_key: variant_key }` pairs, at most MAX_EXPERIMENTS_PER_EVENT. */
41
+ declare function normalizeExperiments(input: unknown): ExperimentAssignments;
42
+ /** Merges the visitor's assignments into event properties under `experiments`. Empty assignments add nothing. */
43
+ declare function withExperiments(properties: Record<string, unknown> | undefined, experiments: ExperimentAssignments | undefined): Record<string, unknown> | undefined;
44
+ /** The `experiment_exposed` event for one assignment. */
45
+ declare function exposureEvent(flagKey: string, variant: string): {
46
+ event_name: string;
47
+ event_category: string;
48
+ properties: Record<string, unknown>;
49
+ };
50
+ /** Key under which a client remembers that an exposure was already sent this session. */
51
+ declare function exposureStorageKey(flagKey: string): string;
52
+
53
+ export { type ExperimentAssignment as E, MAX_EXPERIMENTS_PER_EVENT as M, EXPERIMENTS_PROPERTY as a, EXPERIMENT_EXPOSED_EVENT as b, type ExperimentAssignments as c, type ExperimentEvaluationLike as d, experimentVariant as e, exposureEvent as f, exposureStorageKey as g, isVariantKey as h, isExperimentKey as i, normalizeExperiments as n, withExperiments as w };
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Experiments (A/B tests) on top of scalemule-flags variants.
3
+ *
4
+ * Convention shared by every ScaleMule client and the analytics service:
5
+ * - An experiment is a flag with two or more weighted variants. Evaluating it with a stable
6
+ * identifier (`session_id` or `user_id`) yields the visitor's `variant_key`.
7
+ * - Every analytics event sent while a visitor is in an experiment carries
8
+ * `properties.experiments = { "<flag_key>": "<variant_key>" }`.
9
+ * - `experiment_exposed` is tracked once per visitor and flag when the variant is first shown.
10
+ * - The analytics service reports per-variant results from those properties
11
+ * (`GET /v1/analytics/admin/experiments/{flag_key}`), so any tracked event can be the goal.
12
+ */
13
+ declare const EXPERIMENTS_PROPERTY = "experiments";
14
+ declare const EXPERIMENT_EXPOSED_EVENT = "experiment_exposed";
15
+ declare const MAX_EXPERIMENTS_PER_EVENT = 10;
16
+ /** Active assignments for one visitor: flag key → variant key. */
17
+ type ExperimentAssignments = Record<string, string>;
18
+ interface ExperimentAssignment<T = unknown> {
19
+ flag_key: string;
20
+ /** The variant the visitor is in, or null when the flag is off, missing or has no variants. */
21
+ variant: string | null;
22
+ /** The raw flag evaluation this assignment came from, when one was made. */
23
+ evaluation?: ExperimentEvaluationLike<T> | null;
24
+ }
25
+ /** The subset of a flag evaluation the experiment helpers read. */
26
+ interface ExperimentEvaluationLike<T = unknown> {
27
+ flag_key?: string;
28
+ value?: T;
29
+ reason?: string;
30
+ variant_key?: string | null;
31
+ }
32
+ declare function isExperimentKey(value: unknown): value is string;
33
+ declare function isVariantKey(value: unknown): value is string;
34
+ /**
35
+ * The variant a flag evaluation puts the visitor in.
36
+ * Weighted variants report `variant_key`; a rule or default that serves a string value counts as
37
+ * that variant (so a rule can pin everyone to "modern" and the report still groups them).
38
+ */
39
+ declare function experimentVariant(evaluation: ExperimentEvaluationLike | null | undefined): string | null;
40
+ /** Keeps only well-formed `{ flag_key: variant_key }` pairs, at most MAX_EXPERIMENTS_PER_EVENT. */
41
+ declare function normalizeExperiments(input: unknown): ExperimentAssignments;
42
+ /** Merges the visitor's assignments into event properties under `experiments`. Empty assignments add nothing. */
43
+ declare function withExperiments(properties: Record<string, unknown> | undefined, experiments: ExperimentAssignments | undefined): Record<string, unknown> | undefined;
44
+ /** The `experiment_exposed` event for one assignment. */
45
+ declare function exposureEvent(flagKey: string, variant: string): {
46
+ event_name: string;
47
+ event_category: string;
48
+ properties: Record<string, unknown>;
49
+ };
50
+ /** Key under which a client remembers that an exposure was already sent this session. */
51
+ declare function exposureStorageKey(flagKey: string): string;
52
+
53
+ export { type ExperimentAssignment as E, MAX_EXPERIMENTS_PER_EVENT as M, EXPERIMENTS_PROPERTY as a, EXPERIMENT_EXPOSED_EVENT as b, type ExperimentAssignments as c, type ExperimentEvaluationLike as d, experimentVariant as e, exposureEvent as f, exposureStorageKey as g, isVariantKey as h, isExperimentKey as i, normalizeExperiments as n, withExperiments as w };
@@ -1,3 +1,5 @@
1
+ import { E as ExperimentAssignment } from '../experiments-RH_CTd1R.mjs';
2
+
1
3
  /** Wire format types matching the Rust FlagConfigWire from /v1/flags/config */
2
4
  interface FlagConfigWire {
3
5
  version: number;
@@ -96,6 +98,8 @@ declare class FlagClient {
96
98
  private doInit;
97
99
  private buildIndexes;
98
100
  evaluate(flagKey: string, context: EvaluationContext): FlagEvaluation;
101
+ /** Local-evaluation counterpart of `FlagsService.experiment`: the visitor's variant for a flag with weighted variants. */
102
+ experiment(flagKey: string, context: EvaluationContext): ExperimentAssignment;
99
103
  evaluateBatch(flagKeys: string[], context: EvaluationContext): Record<string, FlagEvaluation>;
100
104
  shutdown(): Promise<void>;
101
105
  private connectStream;
@@ -1,3 +1,5 @@
1
+ import { E as ExperimentAssignment } from '../experiments-RH_CTd1R.js';
2
+
1
3
  /** Wire format types matching the Rust FlagConfigWire from /v1/flags/config */
2
4
  interface FlagConfigWire {
3
5
  version: number;
@@ -96,6 +98,8 @@ declare class FlagClient {
96
98
  private doInit;
97
99
  private buildIndexes;
98
100
  evaluate(flagKey: string, context: EvaluationContext): FlagEvaluation;
101
+ /** Local-evaluation counterpart of `FlagsService.experiment`: the visitor's variant for a flag with weighted variants. */
102
+ experiment(flagKey: string, context: EvaluationContext): ExperimentAssignment;
99
103
  evaluateBatch(flagKeys: string[], context: EvaluationContext): Record<string, FlagEvaluation>;
100
104
  shutdown(): Promise<void>;
101
105
  private connectStream;
@@ -279,6 +279,18 @@ function result(flag, environment, value, reason) {
279
279
  };
280
280
  }
281
281
 
282
+ // src/experiments.ts
283
+ var VARIANT_PATTERN = /^[a-z0-9][a-z0-9_.:-]{0,63}$/;
284
+ function isVariantKey(value) {
285
+ return typeof value === "string" && VARIANT_PATTERN.test(value);
286
+ }
287
+ function experimentVariant(evaluation) {
288
+ if (!evaluation) return null;
289
+ if (isVariantKey(evaluation.variant_key)) return evaluation.variant_key;
290
+ if (isVariantKey(evaluation.value)) return evaluation.value;
291
+ return null;
292
+ }
293
+
282
294
  // src/flags/client.ts
283
295
  var FlagClient = class {
284
296
  constructor(options) {
@@ -353,6 +365,11 @@ var FlagClient = class {
353
365
  this.recordTelemetry(result2);
354
366
  return result2;
355
367
  }
368
+ /** Local-evaluation counterpart of `FlagsService.experiment`: the visitor's variant for a flag with weighted variants. */
369
+ experiment(flagKey, context) {
370
+ const evaluation = this.evaluate(flagKey, context);
371
+ return { flag_key: flagKey, variant: experimentVariant(evaluation), evaluation };
372
+ }
356
373
  evaluateBatch(flagKeys, context) {
357
374
  if (!this.config) throw new Error("FlagClient not initialized \u2014 call init() first");
358
375
  const results = {};
@@ -250,6 +250,18 @@ function result(flag, environment, value, reason) {
250
250
  };
251
251
  }
252
252
 
253
+ // src/experiments.ts
254
+ var VARIANT_PATTERN = /^[a-z0-9][a-z0-9_.:-]{0,63}$/;
255
+ function isVariantKey(value) {
256
+ return typeof value === "string" && VARIANT_PATTERN.test(value);
257
+ }
258
+ function experimentVariant(evaluation) {
259
+ if (!evaluation) return null;
260
+ if (isVariantKey(evaluation.variant_key)) return evaluation.variant_key;
261
+ if (isVariantKey(evaluation.value)) return evaluation.value;
262
+ return null;
263
+ }
264
+
253
265
  // src/flags/client.ts
254
266
  var FlagClient = class {
255
267
  constructor(options) {
@@ -324,6 +336,11 @@ var FlagClient = class {
324
336
  this.recordTelemetry(result2);
325
337
  return result2;
326
338
  }
339
+ /** Local-evaluation counterpart of `FlagsService.experiment`: the visitor's variant for a flag with weighted variants. */
340
+ experiment(flagKey, context) {
341
+ const evaluation = this.evaluate(flagKey, context);
342
+ return { flag_key: flagKey, variant: experimentVariant(evaluation), evaluation };
343
+ }
327
344
  evaluateBatch(flagKeys, context) {
328
345
  if (!this.config) throw new Error("FlagClient not initialized \u2014 call init() first");
329
346
  const results = {};
package/dist/index.d.mts CHANGED
@@ -1,4 +1,6 @@
1
1
  export { PHONE_COUNTRIES, PhoneCountry, PhoneNormalizationResult, composePhoneNumber, countryFlag, detectCountryFromE164, findPhoneCountryByCode, findPhoneCountryByDialCode, isValidE164Phone, normalizeAndValidatePhone, normalizePhoneNumber } from '@scalemule/ui/phone';
2
+ import { E as ExperimentAssignment } from './experiments-RH_CTd1R.mjs';
3
+ export { a as EXPERIMENTS_PROPERTY, b as EXPERIMENT_EXPOSED_EVENT, c as ExperimentAssignments, d as ExperimentEvaluationLike, M as MAX_EXPERIMENTS_PER_EVENT, e as experimentVariant, f as exposureEvent, g as exposureStorageKey, i as isExperimentKey, h as isVariantKey, n as normalizeExperiments, w as withExperiments } from './experiments-RH_CTd1R.mjs';
2
4
 
3
5
  /**
4
6
  * ScaleMule SDK Types
@@ -3689,6 +3691,13 @@ declare class AnalyticsService extends ServiceModule {
3689
3691
  track(event: string, properties?: Record<string, unknown>, userId?: string, options?: RequestOptions): Promise<ApiResponse<{
3690
3692
  tracked: boolean;
3691
3693
  }>>;
3694
+ /**
3695
+ * Track that a visitor saw an experiment variant. Send it once per visitor and flag; the event
3696
+ * carries `properties.experiments` so the experiment report attributes it.
3697
+ */
3698
+ trackExposure(flagKey: string, variant: string, userId?: string, options?: RequestOptions): Promise<ApiResponse<{
3699
+ tracked: boolean;
3700
+ }>>;
3692
3701
  trackBatch(events: Array<{
3693
3702
  event: string;
3694
3703
  properties?: Record<string, unknown>;
@@ -3877,6 +3886,12 @@ interface UpsertEnvironmentRequest {
3877
3886
  declare class FlagsService extends ServiceModule {
3878
3887
  protected basePath: string;
3879
3888
  evaluate<T = unknown>(flagKey: string, context?: Record<string, unknown>, environment?: string, options?: RequestOptions): Promise<ApiResponse<FlagEvaluation<T>>>;
3889
+ /**
3890
+ * Assign a visitor to an experiment: a flag with weighted variants, evaluated with a stable
3891
+ * identifier (`session_id` or `user_id`) so the assignment is sticky. Attach the result to
3892
+ * analytics events with `withExperiments` and track one exposure with `analytics.trackExposure`.
3893
+ */
3894
+ experiment<T = unknown>(flagKey: string, context?: Record<string, unknown>, environment?: string, options?: RequestOptions): Promise<ApiResponse<ExperimentAssignment<T>>>;
3880
3895
  evaluateBatch(flagKeys: string[], context?: Record<string, unknown>, environment?: string, options?: RequestOptions): Promise<ApiResponse<Record<string, FlagEvaluation>>>;
3881
3896
  evaluateAll(context?: Record<string, unknown>, environment?: string, options?: RequestOptions): Promise<ApiResponse<Record<string, FlagEvaluation>>>;
3882
3897
  list(params?: {
@@ -5626,6 +5641,242 @@ declare class CommunityMapsGeographyService extends ServiceModule {
5626
5641
  }>>;
5627
5642
  }
5628
5643
 
5644
+ /** BaseNews delivery through the existing News service and ScaleMule identity.
5645
+ * Records are evidence-backed projections; a release is not an article.
5646
+ * Honor refresh_after and removals. Never use this API as a source-text archive.
5647
+ */
5648
+
5649
+ type IntelligenceKind = 'event' | 'development' | 'community_story' | 'opportunity' | 'public_notice';
5650
+ type IntelligenceStatus = 'proposed' | 'approved' | 'scheduled' | 'ongoing' | 'completed' | 'canceled' | 'postponed' | 'disputed';
5651
+ type IntelligenceVerification = 'unverified' | 'community_submitted' | 'supported' | 'officially_confirmed' | 'independently_verified' | 'disputed';
5652
+ type IntelligenceSection = 'important' | 'around_you' | 'people' | 'discover' | 'participate';
5653
+ type CommunityValueOutcome = 'understand' | 'discover' | 'decide' | 'participate' | 'not_relevant';
5654
+ interface IntelligenceEvent {
5655
+ starts_at: string;
5656
+ ends_at: string;
5657
+ time_zone: string;
5658
+ place_entity_id: string | null;
5659
+ organizer_entity_id: string | null;
5660
+ series_entity_id: string | null;
5661
+ cost: string | null;
5662
+ accessibility: string | null;
5663
+ }
5664
+ interface IntelligenceAction {
5665
+ label: string;
5666
+ url: string;
5667
+ deadline: string | null;
5668
+ }
5669
+ interface IntelligenceSource {
5670
+ id: string;
5671
+ title: string;
5672
+ publisher: string;
5673
+ url: string;
5674
+ published_at: string | null;
5675
+ retrieved_at: string | null;
5676
+ kind: string;
5677
+ distance: string;
5678
+ interested_party: boolean | null;
5679
+ }
5680
+ interface IntelligenceClaim {
5681
+ id: string;
5682
+ text: string;
5683
+ verification: 'UNVERIFIED' | 'SUPPORTED' | 'VERIFIED' | 'DISPUTED';
5684
+ attribution: string | null;
5685
+ evidence: {
5686
+ source_id: string;
5687
+ role: 'DIRECT' | 'CORROBORATING' | 'CONTEXT' | 'CONTRADICTING' | 'ATTRIBUTED_CLAIM';
5688
+ }[];
5689
+ }
5690
+ interface LocalIntelligenceRecord {
5691
+ contract_version: 'basenews/1';
5692
+ id: string;
5693
+ revision: number;
5694
+ title: string;
5695
+ why_it_matters: string;
5696
+ kind: IntelligenceKind;
5697
+ status: IntelligenceStatus;
5698
+ section: IntelligenceSection;
5699
+ civic_importance: boolean;
5700
+ geography_ids: string[];
5701
+ related_entity_ids: string[];
5702
+ issue_entity_ids: string[];
5703
+ topics: string[];
5704
+ event: IntelligenceEvent | null;
5705
+ actions: IntelligenceAction[];
5706
+ claims: IntelligenceClaim[];
5707
+ sources: IntelligenceSource[];
5708
+ verification: IntelligenceVerification;
5709
+ last_verified_at: string | null;
5710
+ observed_at: string;
5711
+ effective_at: string | null;
5712
+ review_due_at: string;
5713
+ published_at: string;
5714
+ original_reporting_url: string | null;
5715
+ original_byline: string;
5716
+ originating_publication_id: string;
5717
+ license: string;
5718
+ supersedes_revision: number | null;
5719
+ canonical_references: {
5720
+ reporting_package_id: string;
5721
+ reporting_revision: number;
5722
+ event_id: string | null;
5723
+ event_version: number | null;
5724
+ };
5725
+ /** Refresh or remove the record after this time. Access may have been revoked. */
5726
+ refresh_after: string;
5727
+ relevance_reasons?: string[];
5728
+ }
5729
+ interface LocalIntelligencePreferences {
5730
+ personalized: boolean;
5731
+ geography_ids: string[];
5732
+ topic_codes: string[];
5733
+ entity_ids: string[];
5734
+ issue_ids: string[];
5735
+ record_ids: string[];
5736
+ }
5737
+ interface IntelligenceRecordPage {
5738
+ contract_version: 'basenews/1';
5739
+ items: LocalIntelligenceRecord[];
5740
+ next_cursor: string | null;
5741
+ /** Keep the FIRST page's checkpoint while bootstrapping the inventory. */
5742
+ changes_cursor: string;
5743
+ /** Initialize IntelligenceCache.sequence from the FIRST page's value. */
5744
+ changes_sequence: string;
5745
+ }
5746
+ interface IntelligenceChangePage {
5747
+ contract_version: 'basenews/1';
5748
+ scope: {
5749
+ application_id: string;
5750
+ publication_id: string;
5751
+ };
5752
+ items: {
5753
+ sequence: string;
5754
+ id: string;
5755
+ changed_at: string;
5756
+ removed: boolean;
5757
+ record: LocalIntelligenceRecord | null;
5758
+ }[];
5759
+ next_cursor: string;
5760
+ has_more: boolean;
5761
+ lease_seconds: number;
5762
+ }
5763
+ interface LocalBriefing {
5764
+ contract_version: 'basenews/1';
5765
+ policy_version: string;
5766
+ as_of: string;
5767
+ geography_id: string;
5768
+ personalized: boolean;
5769
+ items: LocalIntelligenceRecord[];
5770
+ more_available: boolean;
5771
+ lease_seconds: number;
5772
+ }
5773
+ interface IntelligenceRelease {
5774
+ package_id: string;
5775
+ package_revision: number;
5776
+ expected_revision: number;
5777
+ title: string;
5778
+ why_it_matters: string;
5779
+ kind: IntelligenceKind;
5780
+ status: IntelligenceStatus;
5781
+ section: IntelligenceSection;
5782
+ civic_importance: boolean;
5783
+ claim_ids: string[];
5784
+ geography_ids: string[];
5785
+ related_entity_ids: string[];
5786
+ issue_entity_ids: string[];
5787
+ topics: string[];
5788
+ event: IntelligenceEvent | null;
5789
+ actions: IntelligenceAction[];
5790
+ verification: IntelligenceVerification;
5791
+ last_verified_at: string | null;
5792
+ observed_at: string;
5793
+ effective_at: string | null;
5794
+ review_due_at: string;
5795
+ original_reporting_url: string | null;
5796
+ redistribution_permitted: boolean;
5797
+ privacy_and_consent_reviewed: boolean;
5798
+ license: string;
5799
+ reason: string;
5800
+ destinations: {
5801
+ application_id: string;
5802
+ publication_id: string;
5803
+ expires_at: string;
5804
+ }[];
5805
+ sensitivity_review: {
5806
+ policy_version: string;
5807
+ rule_ids: string[];
5808
+ reason: string;
5809
+ } | null;
5810
+ }
5811
+ interface IntelligenceReleaseReceipt {
5812
+ id: string;
5813
+ revision: number;
5814
+ contract_version: 'basenews/1';
5815
+ }
5816
+ /** API keys remain server-side in publication apps. Personal preference writes
5817
+ * use the reader's authenticated session; agents cannot impersonate a reader.
5818
+ * Methods retain the SDK's {data,error} contract and RequestOptions propagation.
5819
+ */
5820
+ declare class LocalIntelligenceService extends ServiceModule {
5821
+ protected basePath: string;
5822
+ private scope;
5823
+ records(publication: string, params?: {
5824
+ cursor?: string;
5825
+ limit?: number;
5826
+ geography?: string;
5827
+ kind?: IntelligenceKind;
5828
+ }, options?: RequestOptions): Promise<ApiResponse<IntelligenceRecordPage>>;
5829
+ get(publication: string, record: string, options?: RequestOptions): Promise<ApiResponse<LocalIntelligenceRecord>>;
5830
+ changes(publication: string, params?: {
5831
+ cursor?: string;
5832
+ limit?: number;
5833
+ }, options?: RequestOptions): Promise<ApiResponse<IntelligenceChangePage>>;
5834
+ briefing(publication: string, params: {
5835
+ geography: string;
5836
+ limit?: number;
5837
+ personalized?: boolean;
5838
+ }, options?: RequestOptions): Promise<ApiResponse<LocalBriefing>>;
5839
+ /** Agent-safe explicit preferences: evaluated for this request and never saved. */
5840
+ briefingForPreferences(publication: string, input: {
5841
+ geography: string;
5842
+ preferences: LocalIntelligencePreferences;
5843
+ limit?: number;
5844
+ }, options?: RequestOptions): Promise<ApiResponse<LocalBriefing>>;
5845
+ preferences(publication: string, options?: RequestOptions): Promise<ApiResponse<{
5846
+ revision: number;
5847
+ preferences: LocalIntelligencePreferences;
5848
+ }>>;
5849
+ savePreferences(publication: string, expectedRevision: number, preferences: LocalIntelligencePreferences, options?: RequestOptions): Promise<ApiResponse<{
5850
+ revision: number;
5851
+ preferences: LocalIntelligencePreferences;
5852
+ }>>;
5853
+ deletePreferences(publication: string, options?: RequestOptions): Promise<ApiResponse<void>>;
5854
+ feedback(publication: string, record: string, recordRevision: number, outcome: CommunityValueOutcome, options?: RequestOptions): Promise<ApiResponse<{
5855
+ recorded: boolean;
5856
+ }>>;
5857
+ deleteFeedback(publication: string, record: string, options?: RequestOptions): Promise<ApiResponse<void>>;
5858
+ /** Requires a human editor with publication publish authority. */
5859
+ release(publication: string, input: IntelligenceRelease, idempotencyKey: string, options?: RequestOptions): Promise<ApiResponse<IntelligenceReleaseReceipt>>;
5860
+ withdraw(publication: string, record: string, expectedRevision: number, reason: string, options?: RequestOptions): Promise<ApiResponse<{
5861
+ id: string;
5862
+ revision: number;
5863
+ removed: true;
5864
+ }>>;
5865
+ }
5866
+ /** Apply a change batch only to a cache already scoped by application AND
5867
+ * publication. Lease expiry is mandatory even when no change notification arrives.
5868
+ * No persistence, tracking or cross-publication identity joins are performed.
5869
+ */
5870
+ interface IntelligenceCache {
5871
+ scope: {
5872
+ application_id: string;
5873
+ publication_id: string;
5874
+ };
5875
+ sequence: string;
5876
+ records: ReadonlyMap<string, LocalIntelligenceRecord>;
5877
+ }
5878
+ declare function applyIntelligenceChanges(current: IntelligenceCache, changes: IntelligenceChangePage, now?: number): IntelligenceCache;
5879
+
5629
5880
  /**
5630
5881
  * Polls Service Module
5631
5882
  *
@@ -8239,6 +8490,7 @@ declare class ScaleMule {
8239
8490
  readonly leaderboard: LeaderboardService;
8240
8491
  readonly listings: ListingsService;
8241
8492
  readonly communityMaps: CommunityMapsService;
8493
+ readonly localIntelligence: LocalIntelligenceService;
8242
8494
  readonly polls: PollsService;
8243
8495
  readonly events: EventsService;
8244
8496
  readonly graph: GraphService;
@@ -8321,4 +8573,4 @@ declare class ScaleMule {
8321
8573
  getClient(): ScaleMuleClient;
8322
8574
  }
8323
8575
 
8324
- export { type AcceptQuoteInput, type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CommunityMapArea, type CommunityMapCanonicalArea, type CommunityMapCollection, type CommunityMapCollectionConfig, type CommunityMapComment, type CommunityMapCommentInput, type CommunityMapCommentPage, type CommunityMapConsent, type CommunityMapEditorialCollection, type CommunityMapEditorialComment, type CommunityMapEditorialFeature, type CommunityMapEditorialMedia, type CommunityMapFeature, type CommunityMapFeatureDraft, type CommunityMapFeatureQuery, type CommunityMapFeatureStatus, type CommunityMapGeometry, type CommunityMapMedia, type CommunityMapOwnSubmission, type CommunityMapOwnSubmissionPage, type CommunityMapPage, type CommunityMapPosition, type CommunityMapPrecision, type CommunityMapPrivateReport, type CommunityMapPrivateSubmission, type CommunityMapProposal, type CommunityMapPublicContent, type CommunityMapQueueQuery, type CommunityMapReactionDefinition, type CommunityMapReceipt, type CommunityMapReportInput, type CommunityMapReportReason, type CommunityMapRevision, type CommunityMapSource, type CommunityMapSubmissionInput, type CommunityMapSubmissionPolicy, type CommunityMapSubmissionStatus, type CommunityMapSubmissionUpdate, type CommunityMapView, type CommunityMapVote, CommunityMapsEditorialService, CommunityMapsGeographyService, CommunityMapsService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateLeadInput, type CreatePollInput, type CreateQuoteInput, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, type Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, MEDIA_PRESETS, type MediaAsset, type MediaCaptureSession, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, type SocialPolicyAction, type SocialPolicyBatchDecisionItem, type SocialPolicyBatchDecisionRequest, type SocialPolicyBatchDecisionResponse, type SocialPolicyBatchDecisionTarget, type SocialPolicyBlockRequest, type SocialPolicyContactRequest, type SocialPolicyContactRequestListItem, type SocialPolicyContactRequestQuery, type SocialPolicyContactRequestRequest, type SocialPolicyContext, type SocialPolicyDecision, type SocialPolicyDecisionLimits, type SocialPolicyDecisionRequest, type SocialPolicyDecisionResponse, type SocialPolicyIdentity, type SocialPolicyIdentityType, type SocialPolicyMuteRequest, type SocialPolicyPolicyPack, type SocialPolicyRelationship, type SocialPolicyRelationshipQuery, type SocialPolicyRelationshipRequest, type SocialPolicyReportRequest, SocialPolicyService, type SocialPolicySettings, type SocialPolicyUnblockRequest, type SocialPolicyUpdateSettingsRequest, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdatePollInput, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type VoteState, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, pollSharePercent, pollVoterKey, prepareCommunityMapAttachment, readAnonymousId, resolveStrategy, startMediaCapture, uploadMultipartToS3, uploadSingleToS3, validateIP };
8576
+ export { type AcceptQuoteInput, type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type AppointmentDepositValue, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type BookingCompletionResult, BookingsService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CommunityMapArea, type CommunityMapCanonicalArea, type CommunityMapCollection, type CommunityMapCollectionConfig, type CommunityMapComment, type CommunityMapCommentInput, type CommunityMapCommentPage, type CommunityMapConsent, type CommunityMapEditorialCollection, type CommunityMapEditorialComment, type CommunityMapEditorialFeature, type CommunityMapEditorialMedia, type CommunityMapFeature, type CommunityMapFeatureDraft, type CommunityMapFeatureQuery, type CommunityMapFeatureStatus, type CommunityMapGeometry, type CommunityMapMedia, type CommunityMapOwnSubmission, type CommunityMapOwnSubmissionPage, type CommunityMapPage, type CommunityMapPosition, type CommunityMapPrecision, type CommunityMapPrivateReport, type CommunityMapPrivateSubmission, type CommunityMapProposal, type CommunityMapPublicContent, type CommunityMapQueueQuery, type CommunityMapReactionDefinition, type CommunityMapReceipt, type CommunityMapReportInput, type CommunityMapReportReason, type CommunityMapRevision, type CommunityMapSource, type CommunityMapSubmissionInput, type CommunityMapSubmissionPolicy, type CommunityMapSubmissionStatus, type CommunityMapSubmissionUpdate, type CommunityMapView, type CommunityMapVote, CommunityMapsEditorialService, CommunityMapsGeographyService, CommunityMapsService, type CommunityValueOutcome, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateLeadInput, type CreatePollInput, type CreateQuoteInput, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type CustomerStats, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DecisionBatchItem, type DecisionBatchResult, type DecisionEvaluateOptions, type DecisionOutcome, type DecisionProposedAction, type DecisionReceipt, type DecisionResult, type DecisionTraceLevel, type DecisionVersions, DecisionsService, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, ExperimentAssignment, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type IntelligenceAction, type IntelligenceCache, type IntelligenceChangePage, type IntelligenceClaim, type IntelligenceEvent, type IntelligenceKind, type IntelligenceRecordPage, type IntelligenceRelease, type IntelligenceReleaseReceipt, type IntelligenceSection, type IntelligenceSource, type IntelligenceStatus, type IntelligenceVerification, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, LEGACY_ANONYMOUS_ID_KEYS, type Lead, type Leaderboard, type LeaderboardEntry, LeaderboardService, LeadsService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LocalBriefing, type LocalIntelligencePreferences, type LocalIntelligenceRecord, LocalIntelligenceService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, MEDIA_PRESETS, type MediaAsset, type MediaCaptureSession, type MediaKind, type MediaManifest, type MediaManifestOptions, type MediaPolicy, type MediaPreset, type MediaPresetSpec, MediaService, type MediaUploadEvent, type MediaUploadOptions, type MediaUploadPhase, type MediaUploadResult, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type Poll, type PollBallot, type PollChoice, type PollChoiceInput, type PollListOptions, type PollMedia, type PollMediaKind, type PollStatus, PollsService, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type Quote, type QuoteDeposit, type QuoteState, type ReadStatus, RealtimeService, type ReceiptVerification, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, STORAGE_KEYS, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialContentProjection, type SocialContentProjectionInput, type SocialDiscoveryCreatorInput, type SocialPolicyAction, type SocialPolicyBatchDecisionItem, type SocialPolicyBatchDecisionRequest, type SocialPolicyBatchDecisionResponse, type SocialPolicyBatchDecisionTarget, type SocialPolicyBlockRequest, type SocialPolicyContactRequest, type SocialPolicyContactRequestListItem, type SocialPolicyContactRequestQuery, type SocialPolicyContactRequestRequest, type SocialPolicyContext, type SocialPolicyDecision, type SocialPolicyDecisionLimits, type SocialPolicyDecisionRequest, type SocialPolicyDecisionResponse, type SocialPolicyIdentity, type SocialPolicyIdentityType, type SocialPolicyMuteRequest, type SocialPolicyPolicyPack, type SocialPolicyRelationship, type SocialPolicyRelationshipQuery, type SocialPolicyRelationshipRequest, type SocialPolicyReportRequest, SocialPolicyService, type SocialPolicySettings, type SocialPolicyUnblockRequest, type SocialPolicyUpdateSettingsRequest, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdatePollInput, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, type VoteState, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, applyIntelligenceChanges, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, ensureAnonymousId, extractClientContext, generateAnonymousId, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, pollSharePercent, pollVoterKey, prepareCommunityMapAttachment, readAnonymousId, resolveStrategy, startMediaCapture, uploadMultipartToS3, uploadSingleToS3, validateIP };