@burdenoff/microfe-movethewheels 2026.1108.2 → 2026.1108.4

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.
Files changed (26) hide show
  1. package/dist/components/DocumentsCard.js +183 -55
  2. package/dist/generated/tracking-quality-operations.d.ts +328 -1
  3. package/dist/generated/wspace-types.d.ts +1479 -10
  4. package/dist/hooks/useCarrierIntegrations.js +30 -29
  5. package/dist/hooks/useDocumentExtractions.js +100 -0
  6. package/dist/movethewheels/hooks/useCarrierIntegrations.d.ts +9 -3
  7. package/dist/movethewheels/hooks/useDocumentExtractions.d.ts +49 -0
  8. package/dist/movethewheels/hooks/useEntityDocuments.d.ts +5 -5
  9. package/dist/movethewheels/utils/carrierIntegrations.d.ts +90 -9
  10. package/dist/node_modules/lucide-react/dist/esm/icons/cloud-download.js +18 -0
  11. package/dist/node_modules/lucide-react/dist/esm/icons/file-search.js +24 -0
  12. package/dist/pages/IntegrationsPage.js +551 -329
  13. package/dist/pages/MultiModalShipmentPage.js +125 -121
  14. package/dist/pages/RouteDetailsPage.js +212 -207
  15. package/dist/utils/carrierIntegrations.js +127 -30
  16. package/package.json +1 -1
  17. package/src/generated/tracking-quality-operations.ts +373 -0
  18. package/src/generated/wspace-types.ts +1672 -10
  19. package/src/movethewheels/components/DocumentsCard.tsx +174 -29
  20. package/src/movethewheels/hooks/useCarrierIntegrations.ts +19 -2
  21. package/src/movethewheels/hooks/useDocumentExtractions.ts +246 -0
  22. package/src/movethewheels/hooks/useEntityDocuments.ts +5 -5
  23. package/src/movethewheels/pages/IntegrationsPage.tsx +292 -36
  24. package/src/movethewheels/pages/MultiModalShipmentPage.tsx +2 -0
  25. package/src/movethewheels/pages/RouteDetailsPage.tsx +2 -0
  26. package/src/movethewheels/utils/carrierIntegrations.ts +252 -10
@@ -67617,6 +67617,59 @@ export enum MtwDistanceUnit {
67617
67617
  MI = 'MI'
67618
67618
  }
67619
67619
 
67620
+ /**
67621
+ * A single extraction run over one platform File. `acceptedFields` is exactly
67622
+ * what a human accepted, `appliedActions` records what those accepts did —
67623
+ * the audit trail for a dispute is which file was read and which fields a
67624
+ * human accepted.
67625
+ */
67626
+ export type MtwDocumentExtraction = {
67627
+ __typename?: 'MtwDocumentExtraction';
67628
+ acceptedFields: Array<Scalars['String']['output']>;
67629
+ appliedAt?: Maybe<Scalars['DateTime']['output']>;
67630
+ appliedBy?: Maybe<Scalars['String']['output']>;
67631
+ costMicroUsd?: Maybe<Scalars['String']['output']>;
67632
+ createdAt: Scalars['DateTime']['output'];
67633
+ createdBy: Scalars['String']['output'];
67634
+ docType: MtwDocumentType;
67635
+ fields: Array<MtwExtractionField>;
67636
+ fileId: Scalars['ID']['output'];
67637
+ id: Scalars['ID']['output'];
67638
+ model: Scalars['String']['output'];
67639
+ shipmentId?: Maybe<Scalars['ID']['output']>;
67640
+ status: MtwDocumentExtractionStatus;
67641
+ workspaceId: Scalars['ID']['output'];
67642
+ };
67643
+
67644
+ export enum MtwDocumentExtractionStatus {
67645
+ APPLIED = 'APPLIED',
67646
+ PARTIALLY_APPLIED = 'PARTIALLY_APPLIED',
67647
+ PROPOSED = 'PROPOSED'
67648
+ }
67649
+
67650
+ /**
67651
+ * Freight document intelligence (BOFF-3892).
67652
+ *
67653
+ * A vision model reads a freight document (BOL / POD / carrier invoice / packing
67654
+ * list) attached to a MoveTheWheels entity as a platform File and PROPOSES typed
67655
+ * fields with per-field confidence. The extraction writes nothing to the
67656
+ * operations spine by itself: a human reviews the proposed fields and accepts
67657
+ * them per-field through mtwApplyDocumentExtraction, and only the accepted,
67658
+ * mapped fields perform writes — a POD acceptance advances its shipment through
67659
+ * the normal ShipmentService.addTrackingEvent path, a carrier-invoice
67660
+ * acceptance records a freight-invoice comparison (variance) against the pinned
67661
+ * estimate. The model call is metered and ledgered on the shared AI runtime
67662
+ * (BOFF-3601) and made with store:false; extracted values stay in this
67663
+ * workspace's tables with the same lifecycle as the source file and are never
67664
+ * surfaced as assistant pageContext.
67665
+ */
67666
+ export enum MtwDocumentType {
67667
+ BILL_OF_LADING = 'BILL_OF_LADING',
67668
+ CARRIER_INVOICE = 'CARRIER_INVOICE',
67669
+ PACKING_LIST = 'PACKING_LIST',
67670
+ PROOF_OF_DELIVERY = 'PROOF_OF_DELIVERY'
67671
+ }
67672
+
67620
67673
  export type MtwDriver = {
67621
67674
  __typename?: 'MtwDriver';
67622
67675
  baseSalary?: Maybe<Scalars['Float']['output']>;
@@ -67819,6 +67872,21 @@ export type MtwExportJob = {
67819
67872
  workspaceId: Scalars['ID']['output'];
67820
67873
  };
67821
67874
 
67875
+ export type MtwExtractionCorrectionInput = {
67876
+ key: Scalars['String']['input'];
67877
+ value: Scalars['String']['input'];
67878
+ };
67879
+
67880
+ /** One extracted field: a bounded, normalized value with the model's confidence in it. */
67881
+ export type MtwExtractionField = {
67882
+ __typename?: 'MtwExtractionField';
67883
+ confidence: Scalars['Float']['output'];
67884
+ key: Scalars['String']['output'];
67885
+ label: Scalars['String']['output'];
67886
+ /** Normalized value (ISO dates, plain numbers, JSON text for line items); null when the document did not show it. */
67887
+ value?: Maybe<Scalars['String']['output']>;
67888
+ };
67889
+
67822
67890
  export type MtwFinanceMetrics = {
67823
67891
  __typename?: 'MtwFinanceMetrics';
67824
67892
  fuelCost: Scalars['Float']['output'];
@@ -74723,6 +74791,8 @@ export type Mutation = {
74723
74791
  deleteWorkspace: Scalars['Boolean']['output'];
74724
74792
  /** Delete a workspace resource */
74725
74793
  deleteWorkspaceResource: Scalars['Boolean']['output'];
74794
+ /** Remove your applet from the marketplace; it leaves every workspace that installed it. */
74795
+ delistTimeCampusAppletFromMarketplace: Scalars['Boolean']['output'];
74726
74796
  /** Operator-only: denies an UNDER_REVIEW claim with a required reason. */
74727
74797
  denyGgnomadDamageClaim: GgnomadDamageClaim;
74728
74798
  /** Drive a mesh deploy THROUGH a root agent: SSH/local-install a new agent on a target and onboard it (fresh OAuth app + graph node + edge). The backend proxies to the root agent's /api/profiles/<p>/mesh/deploy, which runs the pipeline async and returns a job id. Poll `meshDeployJobStatus`. */
@@ -75792,6 +75862,8 @@ export type Mutation = {
75792
75862
  installStorePluginOnAgent: AgentPluginActionResult;
75793
75863
  /** Install an applet for the whole workspace. Idempotent. */
75794
75864
  installTimeCampusApplet: TimeCampusApplet;
75865
+ /** Install a certified marketplace applet, granting a subset of the scopes it asks for. Installing again replaces the grant. */
75866
+ installTimeCampusMarketplaceApplet: TimeCampusStoreApplet;
75795
75867
  /** Install a published applet, granting a subset of the scopes it asks for. Installing again replaces the grant. */
75796
75868
  installTimeCampusThirdPartyApplet: TimeCampusStoreApplet;
75797
75869
  /** Install (enable) a registered widget type for a workspace, so it appears in that workspace's builder palette. */
@@ -76211,6 +76283,15 @@ export type Mutation = {
76211
76283
  * An empty list rejects the whole plan.
76212
76284
  */
76213
76285
  mtwApplyDispatchPlan: MtwDispatchPlan;
76286
+ /**
76287
+ * Accept extracted fields per-field. Accepts are cumulative and idempotent;
76288
+ * the writes each accepted field triggers happen once. POD accepts advance
76289
+ * the referenced shipment via ShipmentService.addTrackingEvent(DELIVERED);
76290
+ * invoice accepts record a freight-invoice comparison against the shipment's
76291
+ * pinned estimate. Fields with no write mapping are recorded as accepted
76292
+ * (audit) without a write.
76293
+ */
76294
+ mtwApplyDocumentExtraction: MtwDocumentExtraction;
76214
76295
  /** Register, verify or repair the workspace's scheduled-reports job. Idempotent. */
76215
76296
  mtwEnsureReportSchedule?: Maybe<MtwReportSchedule>;
76216
76297
  /**
@@ -76218,6 +76299,13 @@ export type Mutation = {
76218
76299
  * scheduler. Idempotent; leaves a job an operator paused alone.
76219
76300
  */
76220
76301
  mtwEnsureRiskSweepSchedule?: Maybe<MtwRiskSweepSchedule>;
76302
+ /**
76303
+ * Run the shared vision model over a platform File and store the proposed
76304
+ * fields. Reads the file bytes through wspace-files-svc (presigned URL),
76305
+ * gates on checkAiCreditsFor and charges + ledger-records the call on the
76306
+ * shared AI runtime. Writes nothing onto orders / shipments / invoices.
76307
+ */
76308
+ mtwExtractDocument: MtwDocumentExtraction;
76221
76309
  /**
76222
76310
  * Generate (or reuse) the AI narration for a shipment's current risk forecast
76223
76311
  * and return the forecast with it attached. With AI disabled, credits spent or
@@ -76988,6 +77076,8 @@ export type Mutation = {
76988
77076
  pswMarkInvoicePaid: PswInvoice;
76989
77077
  pswMarkTimeEntriesBilled: Array<PswTimeEntry>;
76990
77078
  pswPrepareObligationReminder: PswObligationReminder;
77079
+ /** Rebuild the workspace's precedent search index from the source tables (BOFF-3879). Backfills workspaces that had data before the index existed. super_admin only. */
77080
+ pswRebuildSearchIndex: PswSearchIndexRebuildResult;
76991
77081
  /** Three-way trust reconciliation: computes the trust account's book balance and per-client subsidiary-ledger balances as of `asOf` (default now), compares against an optional bank `statementBalance`, and marks every not-yet-reconciled transaction up to `asOf` as reconciled. */
76992
77082
  pswReconcileTrustAccount: PswTrustReconciliationReport;
76993
77083
  pswRecordCredentialReview: PswCredentialReview;
@@ -77233,6 +77323,8 @@ export type Mutation = {
77233
77323
  registerWidgetType: BigConsoleWidgetTypeRegistration;
77234
77324
  /** Re-publish this workspace's skills graph (skills, employees' directory cards, holdings and typed skill relations) and its directory records (departments, teams, projects, job postings, announcements) to the platform knowledge graph and global search. Idempotent: use it to backfill or repair the projection. */
77235
77325
  reindexCrewSkillsGraph: CrewSkillsGraphReindexReport;
77326
+ /** Reinstate a suspended listing (super-admins only). */
77327
+ reinstateTimeCampusMarketplaceListing: TimeCampusMarketplaceListing;
77236
77328
  /** Reinstate a suspended applet. */
77237
77329
  reinstateTimeCampusThirdPartyApplet: TimeCampusThirdPartyApplet;
77238
77330
  /** Reject a pending request with a reason. Refused for your own request. */
@@ -77619,6 +77711,8 @@ export type Mutation = {
77619
77711
  /** BOFF-10614 — operator-only: verifies or rejects a PENDING payout profile. Operators cannot review their own partner profile. */
77620
77712
  reviewGgnomadAffiliatePayoutKyc: GgnomadAffiliatePayoutProfile;
77621
77713
  reviewHousingvistaRentalApplication: HousingVistaRentalApplication;
77714
+ /** Certify (APPROVE) or reject a submission (super-admins only). Rejecting needs notes. */
77715
+ reviewTimeCampusMarketplaceSubmission: TimeCampusMarketplaceListing;
77622
77716
  /** Publish (APPROVE) or reject a version in review. Rejecting needs notes. */
77623
77717
  reviewTimeCampusThirdPartyAppletVersion: TimeCampusThirdPartyApplet;
77624
77718
  reviewVaultSecurityEvent: VaultSecurityEvent;
@@ -78307,6 +78401,8 @@ export type Mutation = {
78307
78401
  submitHousingvistaOffer: HousingVistaOffer;
78308
78402
  submitHousingvistaRentalApplication: HousingVistaRentalApplication;
78309
78403
  submitMtwInspectorQualification: MtwInspectorQualification;
78404
+ /** Offer one of your applets to every workspace: its live, workspace-published version goes to platform certification. */
78405
+ submitTimeCampusAppletToMarketplace: TimeCampusMarketplaceListing;
78310
78406
  /** Submit a DRAFT version for review. */
78311
78407
  submitTimeCampusThirdPartyAppletVersion: TimeCampusThirdPartyApplet;
78312
78408
  /** Subscribe the current workspace to a product. Workspace ID is read from gateway context (x-workspace-id header). */
@@ -78318,6 +78414,8 @@ export type Mutation = {
78318
78414
  suggestNextNode: WorkflowProposal;
78319
78415
  /** Compute (and persist) an AI/ML category suggestion for a capture event: the user's own earlier project choices for the same site/app and a deterministic keyword classifier always run (ingest stores the same local suggestion automatically); an LLM refinement is attempted only when a real provider key is configured, and its result is used only on success (BOFF-4146). Does not change `projectId` — the suggestion must be explicitly accepted. */
78320
78416
  suggestTimeCampusCaptureEventCategory: TimeCampusCategorySuggestion;
78417
+ /** Suspend a live listing in every workspace (super-admins only). */
78418
+ suspendTimeCampusMarketplaceListing: TimeCampusMarketplaceListing;
78321
78419
  /** Suspend a published applet; its widgets stop rendering. */
78322
78420
  suspendTimeCampusThirdPartyApplet: TimeCampusThirdPartyApplet;
78323
78421
  /** Switch to a project and generate a project-scoped JWT (24h). Gateway gates on `project:read` at workspace scope; the resolver (`ProjectLifecycleService.switchProject`) re-asserts that the caller is a member of `projectId` AND that `projectId` belongs to the current workspace, and that the project is not archived. Defense in depth on a field that mints a long-lived authn token. (BOFF-2655) */
@@ -78572,6 +78670,10 @@ export type Mutation = {
78572
78670
  theAddSupplierContact: TheSupplierContact;
78573
78671
  /** Approve (lock) a DRAFT allocation so it counts toward net positions. */
78574
78672
  theApproveProductionAllocation: TheProductionAllocation;
78673
+ /** Assign a work order to a ProServiceWorld contractor, optionally requiring an unexpired credential. */
78674
+ theAssignWorkOrderToContractor: TheWorkOrder;
78675
+ /** Assign a work order to a CrewFoundry crew, optionally requiring a certified member. */
78676
+ theAssignWorkOrderToCrew: TheWorkOrder;
78575
78677
  /** Assign (or clear) the contracted vendor performing a maintenance work order. */
78576
78678
  theAssignWorkOrderVendor: TheWorkOrder;
78577
78679
  /** Attribute (or, with null, detach) a finished work order's downtime to a production record of the same asset, after the fact. */
@@ -78580,11 +78682,14 @@ export type Mutation = {
78580
78682
  theBulkAllocateProduction: TheBulkAllocationResult;
78581
78683
  /** Cancel a holding registered in error. Refused once anything has been retired. */
78582
78684
  theCancelCarbonCredit: TheCarbonCredit;
78685
+ /** Remove a work order's external crew or contractor assignment. */
78686
+ theClearWorkOrderExternalAssignment: TheWorkOrder;
78583
78687
  /** Close a reporting period so its allocations cannot be created, approved or reversed until it is reopened. */
78584
78688
  theCloseAllocationPeriod: TheAllocationPeriodClose;
78585
78689
  /** Record a prior-period correction (signed volume deltas) against an APPROVED allocation (creates a DRAFT). */
78586
78690
  theCreateAllocationCorrection: TheProductionAllocation;
78587
78691
  theCreateAsset: TheAsset;
78692
+ theCreateChainNetwork: TheChainNetwork;
78588
78693
  theCreateComplianceCert: TheComplianceCert;
78589
78694
  theCreateContract: TheOfftakeContract;
78590
78695
  /** Assign net volume from an approved allocation entry to a sell contract. */
@@ -78596,15 +78701,21 @@ export type Mutation = {
78596
78701
  theCreateInterestDeck: TheInterestDeck;
78597
78702
  theCreateInventoryLot: TheInventoryLot;
78598
78703
  theCreateMaintenanceSchedule: TheMaintenanceSchedule;
78704
+ theCreatePriceIndex: ThePriceIndex;
78599
78705
  /** Allocate a measured production record across its contributing assets (creates a DRAFT). */
78600
78706
  theCreateProductionAllocation: TheProductionAllocation;
78601
78707
  theCreateReserveEstimate: TheReserveEstimate;
78602
78708
  theCreateServiceContract: TheServiceContract;
78603
78709
  theCreateSupplier: TheSupplier;
78604
78710
  theCreateWorkOrder: TheWorkOrder;
78711
+ theDeleteChainNetwork: Scalars['Boolean']['output'];
78605
78712
  theDeleteForecastScenario: Scalars['Boolean']['output'];
78713
+ theDeleteForecastSnapshot: Scalars['Boolean']['output'];
78606
78714
  /** Delete an interest deck that no live allocation uses. */
78607
78715
  theDeleteInterestDeck: TheInterestDeck;
78716
+ /** Deletes the index and its price points. */
78717
+ theDeletePriceIndex: Scalars['Boolean']['output'];
78718
+ theDeletePricePoint: Scalars['Boolean']['output'];
78608
78719
  /** Mark a shipment delivered and roll its volume into the contract's delivered total. */
78609
78720
  theDeliverShipment: TheShipment;
78610
78721
  /** Finalize a draft ESG disclosure (locks it as the reported-on-record snapshot). */
@@ -78613,15 +78724,21 @@ export type Mutation = {
78613
78724
  theGenerateEsgDisclosure: TheEsgDisclosure;
78614
78725
  /** Raise a PLANNED work order for every active schedule due within the horizon that does not already have an unfinished work order. Idempotent. */
78615
78726
  theGenerateScheduledWorkOrders: TheGenerateWorkOrdersResult;
78727
+ /** Link equipment to an AssetHandler asset, or unlink it with a null asset id. New work orders on linked equipment are mirrored to AssetHandler. */
78728
+ theLinkEquipmentToAssetHandler: TheEquipment;
78616
78729
  /** Link (or, with a null supplierId, unlink) an offtake contract's counterparty to the supplier register. */
78617
78730
  theLinkOfftakeContractSupplier: TheOfftakeContract;
78618
78731
  /** Link (or unlink) a shipment's carrier to the supplier register. */
78619
78732
  theLinkShipmentCarrier: TheShipment;
78620
78733
  /** Record how much of an inventory lot was loaded onto a shipment. */
78621
78734
  theLinkShipmentSource: TheShipmentSource;
78735
+ /** Run a saved scenario and freeze its per-asset daily forecast as a plan of record. */
78736
+ theLockForecastScenario: TheForecastSnapshot;
78622
78737
  theRecordEmission: TheEmissionRecord;
78623
78738
  /** Record that the CALLING actor accepted a legal document/version at an in-product checkpoint. Self-scoped (Type A): no identity arg. Idempotent — re-accepting the same (checkpointType, documentVersion) updates the timestamp/audit fields rather than duplicating the row. */
78624
78739
  theRecordLegalAcceptance: TheLegalAcceptance;
78740
+ /** Create or replace up to 1000 price points on an index (manual entry or import). A point is keyed by its day and kind, so re-importing converges. */
78741
+ theRecordPricePoints: ThePriceImportResult;
78625
78742
  theRecordProduction: TheProductionRecord;
78626
78743
  theRecordSupplierScorecard: TheSupplierScorecard;
78627
78744
  /** Register a carbon-credit holding (registry project, vintage and quantity). */
@@ -78643,10 +78760,15 @@ export type Mutation = {
78643
78760
  /** Attach, replace or remove (photoFileId: null) the asset's photo. The id is a wspace-files-svc File id from the platform upload flow (BOFF-10630). */
78644
78761
  theSetAssetPhoto: TheAsset;
78645
78762
  theSetInventoryLotStatus: TheInventoryLot;
78763
+ theSetMaintenanceIntegrations: TheMaintenanceIntegrations;
78646
78764
  /** Change a supplier's qualification status. ON_HOLD and BLOCKED need a reason. Blocking or deactivating a supplier suspends its ACTIVE service contracts. */
78647
78765
  theSetSupplierStatus: TheSupplier;
78648
78766
  /** Set this workspace's conversion factor for a commodity and unit pair. */
78649
78767
  theSetUnitConversion: TheUnitConversion;
78768
+ /** Reconcile up to `limit` (max 50) mirrored work orders, never-pulled and least recently pulled first, and create missing mirrors for unfinished work on linked equipment. */
78769
+ theSyncAssetHandlerWorkOrders: TheWorkOrderBulkSyncResult;
78770
+ /** Reconcile one work order with its AssetHandler mirror (status, downtime, completion), creating the mirror if it is missing. */
78771
+ theSyncWorkOrderWithAssetHandler: TheWorkOrderSyncResult;
78650
78772
  /** Advance an asset through its lifecycle (validated transitions). */
78651
78773
  theTransitionAsset: TheAsset;
78652
78774
  /** Advance a compliance certification through its lifecycle (validated transitions). */
@@ -78666,11 +78788,14 @@ export type Mutation = {
78666
78788
  /** Remove a source lot from a shipment whose sources can still change. */
78667
78789
  theUnlinkShipmentSource: TheShipmentSource;
78668
78790
  theUpdateAsset: TheAsset;
78791
+ theUpdateChainNetwork: TheChainNetwork;
78669
78792
  theUpdateContract: TheOfftakeContract;
78670
78793
  theUpdateEquipment: TheEquipment;
78671
78794
  theUpdateForecastScenario: TheForecastScenario;
78795
+ theUpdateForecastSnapshot: TheForecastSnapshot;
78672
78796
  theUpdateIncidentInvestigation: TheSafetyIncident;
78673
78797
  theUpdateMaintenanceSchedule: TheMaintenanceSchedule;
78798
+ theUpdatePriceIndex: ThePriceIndex;
78674
78799
  theUpdateServiceContract: TheServiceContract;
78675
78800
  /** Update the logistics metadata of an existing shipment (carrier, tracking number, route, schedule, document reference, notes). Status and volume are deliberately not updatable here — see TheUpdateShipmentInput. */
78676
78801
  theUpdateShipment: TheShipment;
@@ -78773,6 +78898,8 @@ export type Mutation = {
78773
78898
  uninstallRemoteAgent: Scalars['Boolean']['output'];
78774
78899
  /** Uninstall an applet from the workspace. Idempotent; its widgets leave every layout. */
78775
78900
  uninstallTimeCampusApplet: TimeCampusApplet;
78901
+ /** Uninstall a marketplace applet. Idempotent; its widgets leave every layout. */
78902
+ uninstallTimeCampusMarketplaceApplet: TimeCampusStoreApplet;
78776
78903
  /** Uninstall a third-party applet. Idempotent; its widgets leave every layout. */
78777
78904
  uninstallTimeCampusThirdPartyApplet: TimeCampusStoreApplet;
78778
78905
  /** Uninstall (disable) a widget type for a workspace, removing it from the palette. */
@@ -79475,6 +79602,8 @@ export type Mutation = {
79475
79602
  withdrawConnectorSubmission: ConnectorSubmission;
79476
79603
  withdrawHousingvistaOffer: HousingVistaOffer;
79477
79604
  withdrawRequest: TimeApprovalRequest;
79605
+ /** Take your marketplace submission back out of certification. */
79606
+ withdrawTimeCampusAppletFromMarketplace: TimeCampusMarketplaceListing;
79478
79607
  /** Take a version back out of review, to DRAFT. */
79479
79608
  withdrawTimeCampusThirdPartyAppletVersion: TimeCampusThirdPartyApplet;
79480
79609
  /**
@@ -90213,6 +90342,12 @@ export type MutationDeleteWorkspaceResourceArgs = {
90213
90342
  };
90214
90343
 
90215
90344
 
90345
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90346
+ export type MutationDelistTimeCampusAppletFromMarketplaceArgs = {
90347
+ appletId: Scalars['ID']['input'];
90348
+ };
90349
+
90350
+
90216
90351
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90217
90352
  export type MutationDenyGgnomadDamageClaimArgs = {
90218
90353
  id: Scalars['ID']['input'];
@@ -94290,6 +94425,13 @@ export type MutationInstallTimeCampusAppletArgs = {
94290
94425
  };
94291
94426
 
94292
94427
 
94428
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
94429
+ export type MutationInstallTimeCampusMarketplaceAppletArgs = {
94430
+ grantedScopes: Array<Scalars['String']['input']>;
94431
+ id: Scalars['ID']['input'];
94432
+ };
94433
+
94434
+
94293
94435
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
94294
94436
  export type MutationInstallTimeCampusThirdPartyAppletArgs = {
94295
94437
  grantedScopes: Array<Scalars['String']['input']>;
@@ -95921,6 +96063,21 @@ export type MutationMtwApplyDispatchPlanArgs = {
95921
96063
  };
95922
96064
 
95923
96065
 
96066
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
96067
+ export type MutationMtwApplyDocumentExtractionArgs = {
96068
+ accept: Array<Scalars['String']['input']>;
96069
+ corrections?: InputMaybe<Array<MtwExtractionCorrectionInput>>;
96070
+ extractionId: Scalars['ID']['input'];
96071
+ };
96072
+
96073
+
96074
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
96075
+ export type MutationMtwExtractDocumentArgs = {
96076
+ docType: MtwDocumentType;
96077
+ fileId: Scalars['ID']['input'];
96078
+ };
96079
+
96080
+
95924
96081
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
95925
96082
  export type MutationMtwNarrateShipmentRiskForecastArgs = {
95926
96083
  shipmentId: Scalars['ID']['input'];
@@ -99555,6 +99712,12 @@ export type MutationRegisterWidgetTypeArgs = {
99555
99712
  };
99556
99713
 
99557
99714
 
99715
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
99716
+ export type MutationReinstateTimeCampusMarketplaceListingArgs = {
99717
+ id: Scalars['ID']['input'];
99718
+ };
99719
+
99720
+
99558
99721
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
99559
99722
  export type MutationReinstateTimeCampusThirdPartyAppletArgs = {
99560
99723
  id: Scalars['ID']['input'];
@@ -100956,6 +101119,14 @@ export type MutationReviewHousingvistaRentalApplicationArgs = {
100956
101119
  };
100957
101120
 
100958
101121
 
101122
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
101123
+ export type MutationReviewTimeCampusMarketplaceSubmissionArgs = {
101124
+ decision: TimeCampusAppletReviewDecision;
101125
+ notes?: InputMaybe<Scalars['String']['input']>;
101126
+ submissionId: Scalars['ID']['input'];
101127
+ };
101128
+
101129
+
100959
101130
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
100960
101131
  export type MutationReviewTimeCampusThirdPartyAppletVersionArgs = {
100961
101132
  decision: TimeCampusAppletReviewDecision;
@@ -103405,6 +103576,12 @@ export type MutationSubmitMtwInspectorQualificationArgs = {
103405
103576
  };
103406
103577
 
103407
103578
 
103579
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
103580
+ export type MutationSubmitTimeCampusAppletToMarketplaceArgs = {
103581
+ appletId: Scalars['ID']['input'];
103582
+ };
103583
+
103584
+
103408
103585
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
103409
103586
  export type MutationSubmitTimeCampusThirdPartyAppletVersionArgs = {
103410
103587
  versionId: Scalars['ID']['input'];
@@ -103429,6 +103606,13 @@ export type MutationSuggestTimeCampusCaptureEventCategoryArgs = {
103429
103606
  };
103430
103607
 
103431
103608
 
103609
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
103610
+ export type MutationSuspendTimeCampusMarketplaceListingArgs = {
103611
+ id: Scalars['ID']['input'];
103612
+ reason: Scalars['String']['input'];
103613
+ };
103614
+
103615
+
103432
103616
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
103433
103617
  export type MutationSuspendTimeCampusThirdPartyAppletArgs = {
103434
103618
  id: Scalars['ID']['input'];
@@ -104313,6 +104497,20 @@ export type MutationTheApproveProductionAllocationArgs = {
104313
104497
  };
104314
104498
 
104315
104499
 
104500
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104501
+ export type MutationTheAssignWorkOrderToContractorArgs = {
104502
+ id: Scalars['ID']['input'];
104503
+ input: TheAssignWorkOrderContractorInput;
104504
+ };
104505
+
104506
+
104507
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104508
+ export type MutationTheAssignWorkOrderToCrewArgs = {
104509
+ id: Scalars['ID']['input'];
104510
+ input: TheAssignWorkOrderCrewInput;
104511
+ };
104512
+
104513
+
104316
104514
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104317
104515
  export type MutationTheAssignWorkOrderVendorArgs = {
104318
104516
  supplierId?: InputMaybe<Scalars['ID']['input']>;
@@ -104340,6 +104538,12 @@ export type MutationTheCancelCarbonCreditArgs = {
104340
104538
  };
104341
104539
 
104342
104540
 
104541
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104542
+ export type MutationTheClearWorkOrderExternalAssignmentArgs = {
104543
+ id: Scalars['ID']['input'];
104544
+ };
104545
+
104546
+
104343
104547
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104344
104548
  export type MutationTheCloseAllocationPeriodArgs = {
104345
104549
  input: TheCloseAllocationPeriodInput;
@@ -104358,6 +104562,12 @@ export type MutationTheCreateAssetArgs = {
104358
104562
  };
104359
104563
 
104360
104564
 
104565
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104566
+ export type MutationTheCreateChainNetworkArgs = {
104567
+ input: TheChainNetworkInput;
104568
+ };
104569
+
104570
+
104361
104571
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104362
104572
  export type MutationTheCreateComplianceCertArgs = {
104363
104573
  input: TheCreateComplianceCertInput;
@@ -104412,6 +104622,12 @@ export type MutationTheCreateMaintenanceScheduleArgs = {
104412
104622
  };
104413
104623
 
104414
104624
 
104625
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104626
+ export type MutationTheCreatePriceIndexArgs = {
104627
+ input: ThePriceIndexInput;
104628
+ };
104629
+
104630
+
104415
104631
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104416
104632
  export type MutationTheCreateProductionAllocationArgs = {
104417
104633
  input: TheCreateProductionAllocationInput;
@@ -104442,18 +104658,42 @@ export type MutationTheCreateWorkOrderArgs = {
104442
104658
  };
104443
104659
 
104444
104660
 
104661
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104662
+ export type MutationTheDeleteChainNetworkArgs = {
104663
+ id: Scalars['ID']['input'];
104664
+ };
104665
+
104666
+
104445
104667
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104446
104668
  export type MutationTheDeleteForecastScenarioArgs = {
104447
104669
  id: Scalars['ID']['input'];
104448
104670
  };
104449
104671
 
104450
104672
 
104673
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104674
+ export type MutationTheDeleteForecastSnapshotArgs = {
104675
+ id: Scalars['ID']['input'];
104676
+ };
104677
+
104678
+
104451
104679
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104452
104680
  export type MutationTheDeleteInterestDeckArgs = {
104453
104681
  id: Scalars['ID']['input'];
104454
104682
  };
104455
104683
 
104456
104684
 
104685
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104686
+ export type MutationTheDeletePriceIndexArgs = {
104687
+ id: Scalars['ID']['input'];
104688
+ };
104689
+
104690
+
104691
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104692
+ export type MutationTheDeletePricePointArgs = {
104693
+ id: Scalars['ID']['input'];
104694
+ };
104695
+
104696
+
104457
104697
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104458
104698
  export type MutationTheDeliverShipmentArgs = {
104459
104699
  id: Scalars['ID']['input'];
@@ -104478,6 +104718,13 @@ export type MutationTheGenerateScheduledWorkOrdersArgs = {
104478
104718
  };
104479
104719
 
104480
104720
 
104721
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104722
+ export type MutationTheLinkEquipmentToAssetHandlerArgs = {
104723
+ assetHandlerAssetId?: InputMaybe<Scalars['ID']['input']>;
104724
+ equipmentId: Scalars['ID']['input'];
104725
+ };
104726
+
104727
+
104481
104728
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104482
104729
  export type MutationTheLinkOfftakeContractSupplierArgs = {
104483
104730
  contractId: Scalars['ID']['input'];
@@ -104498,6 +104745,13 @@ export type MutationTheLinkShipmentSourceArgs = {
104498
104745
  };
104499
104746
 
104500
104747
 
104748
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104749
+ export type MutationTheLockForecastScenarioArgs = {
104750
+ id: Scalars['ID']['input'];
104751
+ input?: InputMaybe<TheLockForecastScenarioInput>;
104752
+ };
104753
+
104754
+
104501
104755
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104502
104756
  export type MutationTheRecordEmissionArgs = {
104503
104757
  input: TheRecordEmissionInput;
@@ -104511,6 +104765,14 @@ export type MutationTheRecordLegalAcceptanceArgs = {
104511
104765
  };
104512
104766
 
104513
104767
 
104768
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104769
+ export type MutationTheRecordPricePointsArgs = {
104770
+ indexId: Scalars['ID']['input'];
104771
+ points: Array<ThePricePointInput>;
104772
+ source?: InputMaybe<Scalars['String']['input']>;
104773
+ };
104774
+
104775
+
104514
104776
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104515
104777
  export type MutationTheRecordProductionArgs = {
104516
104778
  input: TheRecordProductionInput;
@@ -104599,6 +104861,12 @@ export type MutationTheSetInventoryLotStatusArgs = {
104599
104861
  };
104600
104862
 
104601
104863
 
104864
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104865
+ export type MutationTheSetMaintenanceIntegrationsArgs = {
104866
+ input: TheSetMaintenanceIntegrationsInput;
104867
+ };
104868
+
104869
+
104602
104870
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104603
104871
  export type MutationTheSetSupplierStatusArgs = {
104604
104872
  id: Scalars['ID']['input'];
@@ -104613,6 +104881,18 @@ export type MutationTheSetUnitConversionArgs = {
104613
104881
  };
104614
104882
 
104615
104883
 
104884
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104885
+ export type MutationTheSyncAssetHandlerWorkOrdersArgs = {
104886
+ limit?: InputMaybe<Scalars['Int']['input']>;
104887
+ };
104888
+
104889
+
104890
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104891
+ export type MutationTheSyncWorkOrderWithAssetHandlerArgs = {
104892
+ id: Scalars['ID']['input'];
104893
+ };
104894
+
104895
+
104616
104896
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104617
104897
  export type MutationTheTransitionAssetArgs = {
104618
104898
  id: Scalars['ID']['input'];
@@ -104684,6 +104964,13 @@ export type MutationTheUpdateAssetArgs = {
104684
104964
  };
104685
104965
 
104686
104966
 
104967
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104968
+ export type MutationTheUpdateChainNetworkArgs = {
104969
+ id: Scalars['ID']['input'];
104970
+ input: TheUpdateChainNetworkInput;
104971
+ };
104972
+
104973
+
104687
104974
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104688
104975
  export type MutationTheUpdateContractArgs = {
104689
104976
  id: Scalars['ID']['input'];
@@ -104705,6 +104992,13 @@ export type MutationTheUpdateForecastScenarioArgs = {
104705
104992
  };
104706
104993
 
104707
104994
 
104995
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104996
+ export type MutationTheUpdateForecastSnapshotArgs = {
104997
+ id: Scalars['ID']['input'];
104998
+ input: TheUpdateForecastSnapshotInput;
104999
+ };
105000
+
105001
+
104708
105002
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104709
105003
  export type MutationTheUpdateIncidentInvestigationArgs = {
104710
105004
  id: Scalars['ID']['input'];
@@ -104719,6 +105013,13 @@ export type MutationTheUpdateMaintenanceScheduleArgs = {
104719
105013
  };
104720
105014
 
104721
105015
 
105016
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
105017
+ export type MutationTheUpdatePriceIndexArgs = {
105018
+ id: Scalars['ID']['input'];
105019
+ input: ThePriceIndexInput;
105020
+ };
105021
+
105022
+
104722
105023
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
104723
105024
  export type MutationTheUpdateServiceContractArgs = {
104724
105025
  id: Scalars['ID']['input'];
@@ -105063,6 +105364,12 @@ export type MutationUninstallTimeCampusAppletArgs = {
105063
105364
  };
105064
105365
 
105065
105366
 
105367
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
105368
+ export type MutationUninstallTimeCampusMarketplaceAppletArgs = {
105369
+ id: Scalars['ID']['input'];
105370
+ };
105371
+
105372
+
105066
105373
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
105067
105374
  export type MutationUninstallTimeCampusThirdPartyAppletArgs = {
105068
105375
  id: Scalars['ID']['input'];
@@ -108392,6 +108699,12 @@ export type MutationWithdrawRequestArgs = {
108392
108699
  };
108393
108700
 
108394
108701
 
108702
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
108703
+ export type MutationWithdrawTimeCampusAppletFromMarketplaceArgs = {
108704
+ appletId: Scalars['ID']['input'];
108705
+ };
108706
+
108707
+
108395
108708
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
108396
108709
  export type MutationWithdrawTimeCampusThirdPartyAppletVersionArgs = {
108397
108710
  versionId: Scalars['ID']['input'];
@@ -119598,6 +119911,7 @@ export enum PswCredentialWriteOperation {
119598
119911
  UPDATE_OBLIGATION = 'UPDATE_OBLIGATION'
119599
119912
  }
119600
119913
 
119914
+ /** Practice dashboard aggregates. Counts and hours cover the whole workspace; every monetary figure (invoice totals, revenue by month, trust funds held, worked/billed value, realization, aged receivables and write-offs) covers only `currency`, with no implicit FX conversion. */
119601
119915
  export type PswDashboardStats = {
119602
119916
  __typename?: 'PswDashboardStats';
119603
119917
  activeClients: Scalars['Int']['output'];
@@ -119606,6 +119920,8 @@ export type PswDashboardStats = {
119606
119920
  agedReceivables: PswAgedReceivables;
119607
119921
  billedHours: Scalars['Float']['output'];
119608
119922
  billedValue: Scalars['Float']['output'];
119923
+ /** ISO 4217 currency code (upper-case) of every monetary figure in this result. */
119924
+ currency: Scalars['String']['output'];
119609
119925
  engagementsByStatus: Array<PswStatusCount>;
119610
119926
  invoicesByStatus: Array<PswStatusCount>;
119611
119927
  mattersByStatus: Array<PswStatusCount>;
@@ -119617,7 +119933,7 @@ export type PswDashboardStats = {
119617
119933
  realizationPct: Scalars['Float']['output'];
119618
119934
  revenueByMonth: Array<PswMonthlyAmount>;
119619
119935
  totalClients: Scalars['Int']['output'];
119620
- /** Total client funds currently held across all ACTIVE trust accounts (sum of every non-deleted trust transaction's signed amount) — compliance/audit reporting for IOLTA/trust accounting, never fabricated in the client. */
119936
+ /** Total client funds currently held across all ACTIVE trust accounts in the reporting currency (sum of every non-deleted trust transaction's signed amount) — compliance/audit reporting for IOLTA/trust accounting, never fabricated in the client. */
119621
119937
  trustHeldTotal: Scalars['Float']['output'];
119622
119938
  unbilledHours: Scalars['Float']['output'];
119623
119939
  workedValue: Scalars['Float']['output'];
@@ -119893,6 +120209,17 @@ export enum PswFeeArrangement {
119893
120209
  VALUE_BASED = 'VALUE_BASED'
119894
120210
  }
119895
120211
 
120212
+ export type PswFindPrecedentsInput = {
120213
+ clientId?: InputMaybe<Scalars['ID']['input']>;
120214
+ entityTypes?: InputMaybe<Array<PswPrecedentEntityType>>;
120215
+ /** Matter id to derive the query from ("have we done a matter like this before?"). The referenced matter itself is excluded from results. */
120216
+ matterId?: InputMaybe<Scalars['ID']['input']>;
120217
+ practiceAreaId?: InputMaybe<Scalars['ID']['input']>;
120218
+ /** Free-text query. Omit only when `matterId` is given — a matter-derived search builds the query text from that matter's title, description, reference, and practice area. */
120219
+ query?: InputMaybe<Scalars['String']['input']>;
120220
+ status?: InputMaybe<Scalars['String']['input']>;
120221
+ };
120222
+
119896
120223
  export type PswInviteClientPortalUserInput = {
119897
120224
  /** auth-svc user id of the client contact — must already be an authenticated platform actor (e.g. invited to the workspace via the existing wspace-workspace-svc invitation flow). */
119898
120225
  actorId: Scalars['ID']['input'];
@@ -120208,6 +120535,36 @@ export type PswPractitionerPage = {
120208
120535
  totalCount: Scalars['Int']['output'];
120209
120536
  };
120210
120537
 
120538
+ export enum PswPrecedentEntityType {
120539
+ DELIVERABLE = 'DELIVERABLE',
120540
+ DOCUMENT = 'DOCUMENT',
120541
+ ENGAGEMENT = 'ENGAGEMENT',
120542
+ MATTER = 'MATTER'
120543
+ }
120544
+
120545
+ /** A single ranked precedent result with cited evidence: which source entity matched, which matter/engagement/client it belongs to, which fields matched, and an excerpt snippet. Access is enforced at query time — a caller scoped away from a matter never receives its rows. */
120546
+ export type PswPrecedentMatch = {
120547
+ __typename?: 'PswPrecedentMatch';
120548
+ clientId?: Maybe<Scalars['ID']['output']>;
120549
+ engagementId?: Maybe<Scalars['ID']['output']>;
120550
+ isPrivileged: Scalars['Boolean']['output'];
120551
+ matchedFields: Array<Scalars['String']['output']>;
120552
+ matterId?: Maybe<Scalars['ID']['output']>;
120553
+ score: Scalars['Float']['output'];
120554
+ snippet: Scalars['String']['output'];
120555
+ sourceId: Scalars['ID']['output'];
120556
+ sourceType: PswPrecedentEntityType;
120557
+ title: Scalars['String']['output'];
120558
+ updatedAt: Scalars['DateTime']['output'];
120559
+ };
120560
+
120561
+ export type PswPrecedentSearchConnection = {
120562
+ __typename?: 'PswPrecedentSearchConnection';
120563
+ items: Array<PswPrecedentMatch>;
120564
+ pageInfo: PswPageInfo;
120565
+ totalCount: Scalars['Int']['output'];
120566
+ };
120567
+
120211
120568
  export type PswPrepareObligationReminderInput = {
120212
120569
  consent: Scalars['Boolean']['input'];
120213
120570
  expectedRevision: Scalars['Int']['input'];
@@ -120315,6 +120672,14 @@ export type PswReviewEducationCreditInput = {
120315
120672
  requestKey: Scalars['String']['input'];
120316
120673
  };
120317
120674
 
120675
+ export type PswSearchIndexRebuildResult = {
120676
+ __typename?: 'PswSearchIndexRebuildResult';
120677
+ deliverables: Scalars['Int']['output'];
120678
+ documents: Scalars['Int']['output'];
120679
+ engagements: Scalars['Int']['output'];
120680
+ matters: Scalars['Int']['output'];
120681
+ };
120682
+
120318
120683
  export type PswSignDocumentInput = {
120319
120684
  /** Required when signatureType = DRAWN — an inline image data URI (e.g. PNG exported from a `<canvas>` pad). */
120320
120685
  signatureImage?: InputMaybe<Scalars['String']['input']>;
@@ -124265,6 +124630,10 @@ export type Query = {
124265
124630
  mtwCustomerNotifications: MtwCustomerNotificationPage;
124266
124631
  mtwDispatchPlan?: Maybe<MtwDispatchPlan>;
124267
124632
  mtwDispatchPlans: Array<MtwDispatchPlan>;
124633
+ /** One extraction, by id. */
124634
+ mtwDocumentExtraction?: Maybe<MtwDocumentExtraction>;
124635
+ /** Every extraction (newest first) that ran against this platform File. */
124636
+ mtwDocumentExtractions: Array<MtwDocumentExtraction>;
124268
124637
  /** Exact immutable instruction, including a proposal's historical owner; not a current-eligibility claim. */
124269
124638
  mtwEmptyReturnInstruction: MtwEmptyReturnInstruction;
124270
124639
  mtwEmptyReturnInstructionPage: MtwEmptyReturnInstructionPage;
@@ -124932,12 +125301,14 @@ export type Query = {
124932
125301
  pswCredentialRecordedReadiness: PswCredentialRecordedReadiness;
124933
125302
  pswCredentialRequestOutcome: PswCredentialRequestOutcome;
124934
125303
  pswCredentialReviews: PswCredentialReviewPage;
124935
- /** Aggregate practice metrics for the current workspace (real counts). */
125304
+ /** Aggregate practice metrics for the current workspace (real counts). Monetary figures include only the requested currency (USD by default), with no implicit FX conversion; an invalid code is rejected with BAD_USER_INPUT. */
124936
125305
  pswDashboardStats: PswDashboardStats;
124937
125306
  pswDocument?: Maybe<PswDocument>;
124938
125307
  pswEducationCredit?: Maybe<PswEducationCredit>;
124939
125308
  pswEducationCredits: PswEducationCreditPage;
124940
125309
  pswEngagement?: Maybe<PswEngagement>;
125310
+ /** Ranked precedent/document search over the firm's own corpus (BOFF-3879): prior matters, engagements, deliverables, and documents matching a free-text or matter-derived query, with cited evidence per hit. Retrieval is a product-local Postgres full-text index maintained on every write; semantic re-ranking is a documented seam pending a platform embedding model. Results are filtered at query time — soft-deleted rows never surface, and actors without workspace-wide access only see matters they are assigned to. */
125311
+ pswFindPrecedents: PswPrecedentSearchConnection;
124941
125312
  /** Liveness/identity probe for the ProServiceWorld subgraph. */
124942
125313
  pswHealth: Scalars['String']['output'];
124943
125314
  pswInvoice?: Maybe<PswInvoice>;
@@ -125559,6 +125930,7 @@ export type Query = {
125559
125930
  theCarbonCredit?: Maybe<TheCarbonCredit>;
125560
125931
  /** Net the period's emissions against the carbon credits retired for it. */
125561
125932
  theCarbonOffsetPosition: TheCarbonOffsetPosition;
125933
+ theChainNetwork?: Maybe<TheChainNetwork>;
125562
125934
  /** Run up to four saved scenarios side by side. */
125563
125935
  theCompareForecastScenarios: Array<TheScenarioResult>;
125564
125936
  theComplianceCert?: Maybe<TheComplianceCert>;
@@ -125569,9 +125941,14 @@ export type Query = {
125569
125941
  theDemandForecast: TheDemandForecast;
125570
125942
  theEquipment?: Maybe<TheEquipment>;
125571
125943
  theEsgDisclosure?: Maybe<TheEsgDisclosure>;
125944
+ /** Cited AI narrative over the provenance traversal, consuming the shared platform AI runtime (be-sdk LLMRouter + the prompts-svc ledger). The narrative is grounded strictly in the returned subgraph; citations are filtered to records the traversal verified. */
125945
+ theExplainProvenance: TheProvenanceExplanation;
125572
125946
  /** Audit-ready CSV export of a disclosure with record-level lineage. */
125573
125947
  theExportEsgDisclosure: TheEsgDisclosureExport;
125948
+ /** Compare a locked forecast with the production reported since; optionally for one asset. */
125949
+ theForecastAccuracy: TheForecastAccuracy;
125574
125950
  theForecastScenario?: Maybe<TheForecastScenario>;
125951
+ theForecastSnapshot?: Maybe<TheForecastSnapshot>;
125575
125952
  /** Liveness/identity probe for the Theglobalfuel subgraph. */
125576
125953
  theHealth: Scalars['String']['output'];
125577
125954
  theInterestDeck?: Maybe<TheInterestDeck>;
@@ -125579,9 +125956,12 @@ export type Query = {
125579
125956
  theInterestDeckInForce?: Maybe<TheInterestDeck>;
125580
125957
  /** Period closes, newest period first. Includes REOPENED rows: this is the close / reopen audit trail. */
125581
125958
  theListAllocationPeriodCloses: TheAllocationPeriodCloseConnection;
125959
+ /** Browse AssetHandler assets to link equipment to (AssetHandler must be enabled). */
125960
+ theListAssetHandlerAssets: TheAssetHandlerAssetPage;
125582
125961
  theListAssets: TheAssetConnection;
125583
125962
  theListCarbonCredits: TheCarbonCreditConnection;
125584
125963
  theListCarbonRetirements: TheCarbonRetirementConnection;
125964
+ theListChainNetworks: TheChainNetworkConnection;
125585
125965
  theListComplianceCerts: TheComplianceCertConnection;
125586
125966
  /** Active entitlements (their allocation is APPROVED), newest period first. */
125587
125967
  theListContractEntitlements: TheContractEntitlementConnection;
@@ -125591,9 +125971,12 @@ export type Query = {
125591
125971
  theListEquipment: TheEquipmentConnection;
125592
125972
  theListEsgDisclosures: TheEsgDisclosureConnection;
125593
125973
  theListForecastScenarios: TheForecastScenarioConnection;
125974
+ theListForecastSnapshots: TheForecastSnapshotConnection;
125594
125975
  theListInterestDecks: TheInterestDeckConnection;
125595
125976
  theListInventoryLots: TheInventoryLotConnection;
125596
125977
  theListMaintenanceSchedules: TheMaintenanceScheduleConnection;
125978
+ theListPriceIndexes: ThePriceIndexConnection;
125979
+ theListPricePoints: ThePricePointConnection;
125597
125980
  theListProductionAllocations: TheProductionAllocationConnection;
125598
125981
  theListProductionRecords: TheProductionRecordConnection;
125599
125982
  theListReserveEstimates: TheReserveEstimateConnection;
@@ -125607,14 +125990,22 @@ export type Query = {
125607
125990
  theListWorkOrders: TheWorkOrderConnection;
125608
125991
  theMaintenanceDashboard: TheMaintenanceDashboard;
125609
125992
  theMaintenanceHistory: TheMaintenanceHistory;
125993
+ theMaintenanceIntegrations: TheMaintenanceIntegrations;
125610
125994
  /** Legal-acceptance checkpoints recorded by the CALLING actor for a specific checkpoint type. Self-scoped (Type C): the ctx.actorId filter IS the access control, no identity arg. Used by the app shell to decide whether to show the acceptance gate before letting the actor into core flows. */
125611
125995
  theMyLegalAcceptances: TheLegalAcceptanceConnection;
125612
125996
  /** Net production position per asset over [periodStart, periodEnd], from APPROVED allocations only. */
125613
125997
  theNetProductionPosition: TheNetProductionPosition;
125998
+ /** Optimize a saved network: forecast every node, then minimise cost and carbon within its constraints. */
125999
+ theOptimizeChainNetwork: TheChainPlan;
125614
126000
  /** Portfolio control room: multi-asset, multi-commodity, multi-region rollup of production, inventory, commitments and ESG for a period (default: the last 30 days, at most about five years). */
125615
126001
  thePortfolioOverview: ThePortfolioOverview;
126002
+ /** Value committed contracts and AVAILABLE inventory against index prices and report the long / short position by month. */
126003
+ thePositionValuation: ThePositionValuation;
126004
+ /** Optimize an unsaved network (what-if) without storing it. */
126005
+ thePreviewChainNetwork: TheChainPlan;
125616
126006
  /** Run unsaved assumptions (what-if) without storing them. */
125617
126007
  thePreviewForecastScenario: TheScenarioResult;
126008
+ thePriceIndex?: Maybe<ThePriceIndex>;
125618
126009
  theProductionAllocation?: Maybe<TheProductionAllocation>;
125619
126010
  /** Forecast one asset's daily production from its reported history. */
125620
126011
  theProductionForecast: TheProductionForecast;
@@ -125628,6 +126019,10 @@ export type Query = {
125628
126019
  theShipmentSources: Array<TheShipmentSource>;
125629
126020
  theSupplier?: Maybe<TheSupplier>;
125630
126021
  theSupplierRegisterSummary: TheSupplierRegisterSummary;
126022
+ /** Walk the custody chain from any chain entity. The traversal is deterministic over the workspace's own records and surfaces chain gaps explicitly instead of smoothing over them. */
126023
+ theTraceProvenance: TheProvenanceTrace;
126024
+ /** Weather-driven generation forecast for a wind or solar asset with coordinates. */
126025
+ theWeatherGenerationForecast: TheWeatherGenerationForecast;
125631
126026
  theWorkOrder?: Maybe<TheWorkOrder>;
125632
126027
  thread: MessageConnection;
125633
126028
  /** Activation milestones for the calling workspace (BOFF-3450). */
@@ -125680,6 +126075,12 @@ export type Query = {
125680
126075
  timeCampusInvoices: TimeCampusInvoiceListResponse;
125681
126076
  timeCampusLakeDatasets: Array<TimeCampusLakeDataset>;
125682
126077
  timeCampusLakeRows?: Maybe<TimeCampusLakePage>;
126078
+ /** Certified marketplace applets with this workspace's install state. */
126079
+ timeCampusMarketplaceApplets: Array<TimeCampusStoreApplet>;
126080
+ /** Platform certification queue (super-admins only): submissions in the given state, IN_REVIEW by default, oldest first. */
126081
+ timeCampusMarketplaceCertificationQueue: Array<TimeCampusMarketplaceReviewItem>;
126082
+ /** Listings that are or were live, for suspension and reinstatement (super-admins only). */
126083
+ timeCampusMarketplaceCertifiedListings: Array<TimeCampusMarketplaceListing>;
125683
126084
  /** One of the caller's applets; another developer's applet is NOT_FOUND. */
125684
126085
  timeCampusMyThirdPartyApplet: TimeCampusThirdPartyApplet;
125685
126086
  /** The applets the caller registered, newest first. */
@@ -138994,6 +139395,18 @@ export type QueryMtwDispatchPlansArgs = {
138994
139395
  };
138995
139396
 
138996
139397
 
139398
+ /** Base Query type with placeholder field. Extended by individual query files. */
139399
+ export type QueryMtwDocumentExtractionArgs = {
139400
+ id: Scalars['ID']['input'];
139401
+ };
139402
+
139403
+
139404
+ /** Base Query type with placeholder field. Extended by individual query files. */
139405
+ export type QueryMtwDocumentExtractionsArgs = {
139406
+ fileId: Scalars['ID']['input'];
139407
+ };
139408
+
139409
+
138997
139410
  /** Base Query type with placeholder field. Extended by individual query files. */
138998
139411
  export type QueryMtwEmptyReturnInstructionArgs = {
138999
139412
  id: Scalars['ID']['input'];
@@ -141494,6 +141907,12 @@ export type QueryPswCredentialReviewsArgs = {
141494
141907
  };
141495
141908
 
141496
141909
 
141910
+ /** Base Query type with placeholder field. Extended by individual query files. */
141911
+ export type QueryPswDashboardStatsArgs = {
141912
+ currency?: InputMaybe<Scalars['String']['input']>;
141913
+ };
141914
+
141915
+
141497
141916
  /** Base Query type with placeholder field. Extended by individual query files. */
141498
141917
  export type QueryPswDocumentArgs = {
141499
141918
  id: Scalars['ID']['input'];
@@ -141520,6 +141939,13 @@ export type QueryPswEngagementArgs = {
141520
141939
  };
141521
141940
 
141522
141941
 
141942
+ /** Base Query type with placeholder field. Extended by individual query files. */
141943
+ export type QueryPswFindPrecedentsArgs = {
141944
+ input: PswFindPrecedentsInput;
141945
+ pagination?: InputMaybe<PaginationInput>;
141946
+ };
141947
+
141948
+
141523
141949
  /** Base Query type with placeholder field. Extended by individual query files. */
141524
141950
  export type QueryPswInvoiceArgs = {
141525
141951
  id: Scalars['ID']['input'];
@@ -143875,6 +144301,12 @@ export type QueryTheCarbonOffsetPositionArgs = {
143875
144301
  };
143876
144302
 
143877
144303
 
144304
+ /** Base Query type with placeholder field. Extended by individual query files. */
144305
+ export type QueryTheChainNetworkArgs = {
144306
+ id: Scalars['ID']['input'];
144307
+ };
144308
+
144309
+
143878
144310
  /** Base Query type with placeholder field. Extended by individual query files. */
143879
144311
  export type QueryTheCompareForecastScenariosArgs = {
143880
144312
  ids: Array<Scalars['ID']['input']>;
@@ -143920,18 +144352,38 @@ export type QueryTheEsgDisclosureArgs = {
143920
144352
  };
143921
144353
 
143922
144354
 
144355
+ /** Base Query type with placeholder field. Extended by individual query files. */
144356
+ export type QueryTheExplainProvenanceArgs = {
144357
+ entityId: Scalars['ID']['input'];
144358
+ };
144359
+
144360
+
143923
144361
  /** Base Query type with placeholder field. Extended by individual query files. */
143924
144362
  export type QueryTheExportEsgDisclosureArgs = {
143925
144363
  id: Scalars['ID']['input'];
143926
144364
  };
143927
144365
 
143928
144366
 
144367
+ /** Base Query type with placeholder field. Extended by individual query files. */
144368
+ export type QueryTheForecastAccuracyArgs = {
144369
+ assetId?: InputMaybe<Scalars['ID']['input']>;
144370
+ period?: InputMaybe<TheForecastAccuracyPeriod>;
144371
+ snapshotId: Scalars['ID']['input'];
144372
+ };
144373
+
144374
+
143929
144375
  /** Base Query type with placeholder field. Extended by individual query files. */
143930
144376
  export type QueryTheForecastScenarioArgs = {
143931
144377
  id: Scalars['ID']['input'];
143932
144378
  };
143933
144379
 
143934
144380
 
144381
+ /** Base Query type with placeholder field. Extended by individual query files. */
144382
+ export type QueryTheForecastSnapshotArgs = {
144383
+ id: Scalars['ID']['input'];
144384
+ };
144385
+
144386
+
143935
144387
  /** Base Query type with placeholder field. Extended by individual query files. */
143936
144388
  export type QueryTheInterestDeckArgs = {
143937
144389
  id: Scalars['ID']['input'];
@@ -143953,6 +144405,13 @@ export type QueryTheListAllocationPeriodClosesArgs = {
143953
144405
  };
143954
144406
 
143955
144407
 
144408
+ /** Base Query type with placeholder field. Extended by individual query files. */
144409
+ export type QueryTheListAssetHandlerAssetsArgs = {
144410
+ cursor?: InputMaybe<Scalars['String']['input']>;
144411
+ limit?: InputMaybe<Scalars['Int']['input']>;
144412
+ };
144413
+
144414
+
143956
144415
  /** Base Query type with placeholder field. Extended by individual query files. */
143957
144416
  export type QueryTheListAssetsArgs = {
143958
144417
  commodity?: InputMaybe<TheCommodityType>;
@@ -143979,6 +144438,12 @@ export type QueryTheListCarbonRetirementsArgs = {
143979
144438
  };
143980
144439
 
143981
144440
 
144441
+ /** Base Query type with placeholder field. Extended by individual query files. */
144442
+ export type QueryTheListChainNetworksArgs = {
144443
+ pagination?: InputMaybe<PaginationInput>;
144444
+ };
144445
+
144446
+
143982
144447
  /** Base Query type with placeholder field. Extended by individual query files. */
143983
144448
  export type QueryTheListComplianceCertsArgs = {
143984
144449
  assetId?: InputMaybe<Scalars['ID']['input']>;
@@ -144044,6 +144509,14 @@ export type QueryTheListForecastScenariosArgs = {
144044
144509
  };
144045
144510
 
144046
144511
 
144512
+ /** Base Query type with placeholder field. Extended by individual query files. */
144513
+ export type QueryTheListForecastSnapshotsArgs = {
144514
+ commodity?: InputMaybe<TheCommodityType>;
144515
+ pagination?: InputMaybe<PaginationInput>;
144516
+ scenarioId?: InputMaybe<Scalars['ID']['input']>;
144517
+ };
144518
+
144519
+
144047
144520
  /** Base Query type with placeholder field. Extended by individual query files. */
144048
144521
  export type QueryTheListInterestDecksArgs = {
144049
144522
  assetId?: InputMaybe<Scalars['ID']['input']>;
@@ -144068,6 +144541,23 @@ export type QueryTheListMaintenanceSchedulesArgs = {
144068
144541
  };
144069
144542
 
144070
144543
 
144544
+ /** Base Query type with placeholder field. Extended by individual query files. */
144545
+ export type QueryTheListPriceIndexesArgs = {
144546
+ commodity?: InputMaybe<TheCommodityType>;
144547
+ pagination?: InputMaybe<PaginationInput>;
144548
+ };
144549
+
144550
+
144551
+ /** Base Query type with placeholder field. Extended by individual query files. */
144552
+ export type QueryTheListPricePointsArgs = {
144553
+ from?: InputMaybe<Scalars['DateTime']['input']>;
144554
+ indexId: Scalars['ID']['input'];
144555
+ kind?: InputMaybe<ThePricePointKind>;
144556
+ pagination?: InputMaybe<PaginationInput>;
144557
+ to?: InputMaybe<Scalars['DateTime']['input']>;
144558
+ };
144559
+
144560
+
144071
144561
  /** Base Query type with placeholder field. Extended by individual query files. */
144072
144562
  export type QueryTheListProductionAllocationsArgs = {
144073
144563
  correctsAllocationId?: InputMaybe<Scalars['ID']['input']>;
@@ -144181,6 +144671,12 @@ export type QueryTheNetProductionPositionArgs = {
144181
144671
  };
144182
144672
 
144183
144673
 
144674
+ /** Base Query type with placeholder field. Extended by individual query files. */
144675
+ export type QueryTheOptimizeChainNetworkArgs = {
144676
+ id: Scalars['ID']['input'];
144677
+ };
144678
+
144679
+
144184
144680
  /** Base Query type with placeholder field. Extended by individual query files. */
144185
144681
  export type QueryThePortfolioOverviewArgs = {
144186
144682
  commodity?: InputMaybe<TheCommodityType>;
@@ -144190,12 +144686,30 @@ export type QueryThePortfolioOverviewArgs = {
144190
144686
  };
144191
144687
 
144192
144688
 
144689
+ /** Base Query type with placeholder field. Extended by individual query files. */
144690
+ export type QueryThePositionValuationArgs = {
144691
+ input: ThePositionValuationInput;
144692
+ };
144693
+
144694
+
144695
+ /** Base Query type with placeholder field. Extended by individual query files. */
144696
+ export type QueryThePreviewChainNetworkArgs = {
144697
+ input: TheChainNetworkInput;
144698
+ };
144699
+
144700
+
144193
144701
  /** Base Query type with placeholder field. Extended by individual query files. */
144194
144702
  export type QueryThePreviewForecastScenarioArgs = {
144195
144703
  input: TheForecastScenarioInput;
144196
144704
  };
144197
144705
 
144198
144706
 
144707
+ /** Base Query type with placeholder field. Extended by individual query files. */
144708
+ export type QueryThePriceIndexArgs = {
144709
+ id: Scalars['ID']['input'];
144710
+ };
144711
+
144712
+
144199
144713
  /** Base Query type with placeholder field. Extended by individual query files. */
144200
144714
  export type QueryTheProductionAllocationArgs = {
144201
144715
  id: Scalars['ID']['input'];
@@ -144248,6 +144762,22 @@ export type QueryTheSupplierArgs = {
144248
144762
  };
144249
144763
 
144250
144764
 
144765
+ /** Base Query type with placeholder field. Extended by individual query files. */
144766
+ export type QueryTheTraceProvenanceArgs = {
144767
+ direction: TheProvenanceDirection;
144768
+ entityId: Scalars['ID']['input'];
144769
+ };
144770
+
144771
+
144772
+ /** Base Query type with placeholder field. Extended by individual query files. */
144773
+ export type QueryTheWeatherGenerationForecastArgs = {
144774
+ assetId: Scalars['ID']['input'];
144775
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
144776
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
144777
+ unit?: InputMaybe<TheUnit>;
144778
+ };
144779
+
144780
+
144251
144781
  /** Base Query type with placeholder field. Extended by individual query files. */
144252
144782
  export type QueryTheWorkOrderArgs = {
144253
144783
  id: Scalars['ID']['input'];
@@ -144278,6 +144808,7 @@ export type QueryTimeCampusAppletArgs = {
144278
144808
  export type QueryTimeCampusAppletBridgeDataArgs = {
144279
144809
  appletKey: Scalars['String']['input'];
144280
144810
  scope: Scalars['String']['input'];
144811
+ source?: InputMaybe<TimeCampusAppletSource>;
144281
144812
  };
144282
144813
 
144283
144814
 
@@ -144412,6 +144943,12 @@ export type QueryTimeCampusLakeRowsArgs = {
144412
144943
  };
144413
144944
 
144414
144945
 
144946
+ /** Base Query type with placeholder field. Extended by individual query files. */
144947
+ export type QueryTimeCampusMarketplaceCertificationQueueArgs = {
144948
+ status?: InputMaybe<TimeCampusMarketplaceSubmissionStatus>;
144949
+ };
144950
+
144951
+
144415
144952
  /** Base Query type with placeholder field. Extended by individual query files. */
144416
144953
  export type QueryTimeCampusMyThirdPartyAppletArgs = {
144417
144954
  id: Scalars['ID']['input'];
@@ -160301,6 +160838,31 @@ export type TheAssetConnection = {
160301
160838
  pageInfo: ThePageInfo;
160302
160839
  };
160303
160840
 
160841
+ export type TheAssetForecastAccuracy = {
160842
+ __typename?: 'TheAssetForecastAccuracy';
160843
+ actualToDate: Scalars['Float']['output'];
160844
+ assetId: Scalars['ID']['output'];
160845
+ assetName: Scalars['String']['output'];
160846
+ /** (actual - forecast) / forecast over the reported days, in percent. */
160847
+ biasPct?: Maybe<Scalars['Float']['output']>;
160848
+ /** Reported days whose actual fell outside the locked P10-P90 band. */
160849
+ daysOutsideBand: Scalars['Int']['output'];
160850
+ driftReason?: Maybe<Scalars['String']['output']>;
160851
+ /** Locked forecast summed over the reported days only. */
160852
+ forecastToDate: Scalars['Float']['output'];
160853
+ mape?: Maybe<Scalars['Float']['output']>;
160854
+ /** Days since the lock with reported production. */
160855
+ observedDays: Scalars['Int']['output'];
160856
+ periods: Array<TheForecastPeriodAccuracy>;
160857
+ /** Best-fitting alternative method and history window; set only for drifting assets. */
160858
+ recommendation?: Maybe<TheForecastRecommendation>;
160859
+ status: TheForecastDriftStatus;
160860
+ /** Plain-language next step; set only for drifting assets. */
160861
+ suggestion?: Maybe<Scalars['String']['output']>;
160862
+ /** Locked central forecast over the whole horizon. */
160863
+ totalForecast: Scalars['Float']['output'];
160864
+ };
160865
+
160304
160866
  export type TheAssetForecastSummary = {
160305
160867
  __typename?: 'TheAssetForecastSummary';
160306
160868
  assetId: Scalars['ID']['output'];
@@ -160312,6 +160874,24 @@ export type TheAssetForecastSummary = {
160312
160874
  totalForecast: Scalars['Float']['output'];
160313
160875
  };
160314
160876
 
160877
+ /** An AssetHandler asset, as read through the internal gateway for the equipment link picker. */
160878
+ export type TheAssetHandlerAsset = {
160879
+ __typename?: 'TheAssetHandlerAsset';
160880
+ assetNumber: Scalars['String']['output'];
160881
+ category: Scalars['String']['output'];
160882
+ id: Scalars['ID']['output'];
160883
+ locationName?: Maybe<Scalars['String']['output']>;
160884
+ name: Scalars['String']['output'];
160885
+ status: Scalars['String']['output'];
160886
+ };
160887
+
160888
+ export type TheAssetHandlerAssetPage = {
160889
+ __typename?: 'TheAssetHandlerAssetPage';
160890
+ items: Array<TheAssetHandlerAsset>;
160891
+ /** Pass as `cursor` to read the next page; null on the last page. */
160892
+ nextCursor?: Maybe<Scalars['String']['output']>;
160893
+ };
160894
+
160315
160895
  export enum TheAssetKind {
160316
160896
  GAS_FIELD = 'GAS_FIELD',
160317
160897
  MINE = 'MINE',
@@ -160337,6 +160917,20 @@ export enum TheAssetStatus {
160337
160917
  SUSPENDED = 'SUSPENDED'
160338
160918
  }
160339
160919
 
160920
+ export type TheAssignWorkOrderContractorInput = {
160921
+ /** Require this recorded ProServiceWorld credential of the contractor to be unexpired. */
160922
+ credentialId?: InputMaybe<Scalars['ID']['input']>;
160923
+ practitionerId: Scalars['ID']['input'];
160924
+ };
160925
+
160926
+ export type TheAssignWorkOrderCrewInput = {
160927
+ crewTeamId: Scalars['ID']['input'];
160928
+ /** Minimum proficiency (1-5) for the required skill. */
160929
+ minProficiency?: InputMaybe<Scalars['Int']['input']>;
160930
+ /** Require at least one crew member (or the lead) to hold this CrewFoundry skill. */
160931
+ requiredSkillId?: InputMaybe<Scalars['ID']['input']>;
160932
+ };
160933
+
160340
160934
  export type TheBulkAllocateProductionInput = {
160341
160935
  /** Also approve each allocation it creates. */
160342
160936
  approve?: InputMaybe<Scalars['Boolean']['input']>;
@@ -160495,6 +161089,322 @@ export type TheCarbonRetirementConnection = {
160495
161089
  pageInfo: ThePageInfo;
160496
161090
  };
160497
161091
 
161092
+ export type TheChainAssetForecast = {
161093
+ __typename?: 'TheChainAssetForecast';
161094
+ assetId: Scalars['ID']['output'];
161095
+ assetName: Scalars['String']['output'];
161096
+ backtestMape?: Maybe<Scalars['Float']['output']>;
161097
+ calibration?: Maybe<TheWeatherCalibrationMethod>;
161098
+ dailyRate: Scalars['Float']['output'];
161099
+ /** WEATHER, or the statistical method used (a TheForecastMethod value). */
161100
+ method: Scalars['String']['output'];
161101
+ nodeId: Scalars['ID']['output'];
161102
+ technology?: Maybe<TheWeatherTechnology>;
161103
+ totalForecast: Scalars['Float']['output'];
161104
+ weatherDays: Scalars['Int']['output'];
161105
+ };
161106
+
161107
+ /** A constraint that limits the plan. The shadow price is the objective improvement per extra unit of the limit; relaxationValue is the improvement from relaxing it by 10%, which makes constraints of different units comparable. */
161108
+ export type TheChainBindingConstraint = {
161109
+ __typename?: 'TheChainBindingConstraint';
161110
+ description: Scalars['String']['output'];
161111
+ kind: TheChainConstraintKind;
161112
+ limit?: Maybe<Scalars['Float']['output']>;
161113
+ periods: Array<Scalars['Int']['output']>;
161114
+ relaxationValue: Scalars['Float']['output'];
161115
+ shadowPrice: Scalars['Float']['output'];
161116
+ subjectId?: Maybe<Scalars['ID']['output']>;
161117
+ subjectName: Scalars['String']['output'];
161118
+ };
161119
+
161120
+ /** Where a link's capacity in a plan came from. */
161121
+ export enum TheChainCapacitySource {
161122
+ MOVETHEWHEELS = 'MOVETHEWHEELS',
161123
+ NETWORK = 'NETWORK',
161124
+ UNCONSTRAINED = 'UNCONSTRAINED'
161125
+ }
161126
+
161127
+ export enum TheChainConstraintKind {
161128
+ CARBON_BUDGET = 'CARBON_BUDGET',
161129
+ LINK_CAPACITY = 'LINK_CAPACITY',
161130
+ STORAGE_CAPACITY = 'STORAGE_CAPACITY',
161131
+ SUPPLY = 'SUPPLY'
161132
+ }
161133
+
161134
+ export type TheChainContractPlan = {
161135
+ __typename?: 'TheChainContractPlan';
161136
+ contractId: Scalars['ID']['output'];
161137
+ counterparty: Scalars['String']['output'];
161138
+ delivered: Scalars['Float']['output'];
161139
+ demand: Scalars['Float']['output'];
161140
+ fulfilmentPct: Scalars['Float']['output'];
161141
+ nodeId: Scalars['ID']['output'];
161142
+ reference: Scalars['String']['output'];
161143
+ shortfall: Scalars['Float']['output'];
161144
+ };
161145
+
161146
+ /** A transport route or conversion step between two nodes. */
161147
+ export type TheChainLink = {
161148
+ __typename?: 'TheChainLink';
161149
+ /** Maximum input volume per day in the from-node unit; null means unconstrained. */
161150
+ capacityPerDay?: Maybe<Scalars['Float']['output']>;
161151
+ /** kg CO2e per unit of input volume; null when not set (0 in plans, or derived from the MoveTheWheels route when one is named). */
161152
+ carbonKgPerUnit?: Maybe<Scalars['Float']['output']>;
161153
+ costPerUnit: Scalars['Float']['output'];
161154
+ fromNodeId: Scalars['ID']['output'];
161155
+ id: Scalars['ID']['output'];
161156
+ kind: TheChainLinkKind;
161157
+ lossPct: Scalars['Float']['output'];
161158
+ mode?: Maybe<TheTransportMode>;
161159
+ movethewheelsRouteId?: Maybe<Scalars['ID']['output']>;
161160
+ name: Scalars['String']['output'];
161161
+ toNodeId: Scalars['ID']['output'];
161162
+ /** Output units per input unit (CONVERSION only). */
161163
+ yieldFactor?: Maybe<Scalars['Float']['output']>;
161164
+ };
161165
+
161166
+ export type TheChainLinkInput = {
161167
+ capacityPerDay?: InputMaybe<Scalars['Float']['input']>;
161168
+ /** kg CO2e per unit of input volume. Leave it out to derive emissions from the MoveTheWheels route (or 0 without one); 0 means zero-emission. */
161169
+ carbonKgPerUnit?: InputMaybe<Scalars['Float']['input']>;
161170
+ costPerUnit?: InputMaybe<Scalars['Float']['input']>;
161171
+ /** Name of the from-node. */
161172
+ from: Scalars['String']['input'];
161173
+ kind?: InputMaybe<TheChainLinkKind>;
161174
+ lossPct?: InputMaybe<Scalars['Float']['input']>;
161175
+ mode?: InputMaybe<TheTransportMode>;
161176
+ movethewheelsRouteId?: InputMaybe<Scalars['ID']['input']>;
161177
+ name: Scalars['String']['input'];
161178
+ /** Name of the to-node. */
161179
+ to: Scalars['String']['input'];
161180
+ yieldFactor?: InputMaybe<Scalars['Float']['input']>;
161181
+ };
161182
+
161183
+ /** TRANSPORT moves one commodity between nodes; CONVERSION turns the input commodity into the output commodity at a yield. */
161184
+ export enum TheChainLinkKind {
161185
+ CONVERSION = 'CONVERSION',
161186
+ TRANSPORT = 'TRANSPORT'
161187
+ }
161188
+
161189
+ export type TheChainLinkPeriod = {
161190
+ __typename?: 'TheChainLinkPeriod';
161191
+ capacity?: Maybe<Scalars['Float']['output']>;
161192
+ flow: Scalars['Float']['output'];
161193
+ period: Scalars['Int']['output'];
161194
+ utilisationPct?: Maybe<Scalars['Float']['output']>;
161195
+ };
161196
+
161197
+ export type TheChainLinkPlan = {
161198
+ __typename?: 'TheChainLinkPlan';
161199
+ capacityPerDay?: Maybe<Scalars['Float']['output']>;
161200
+ capacitySource: TheChainCapacitySource;
161201
+ carbonKgPerUnit: Scalars['Float']['output'];
161202
+ carbonTonnes: Scalars['Float']['output'];
161203
+ cost: Scalars['Float']['output'];
161204
+ fromNodeId: Scalars['ID']['output'];
161205
+ kind: TheChainLinkKind;
161206
+ linkId: Scalars['ID']['output'];
161207
+ movethewheelsRouteId?: Maybe<Scalars['ID']['output']>;
161208
+ name: Scalars['String']['output'];
161209
+ periods: Array<TheChainLinkPeriod>;
161210
+ toNodeId: Scalars['ID']['output'];
161211
+ totalFlow: Scalars['Float']['output'];
161212
+ totalOutput: Scalars['Float']['output'];
161213
+ utilisationPct?: Maybe<Scalars['Float']['output']>;
161214
+ /** Output per input unit used by the plan (unit conversion, loss and conversion yield). */
161215
+ yieldFactor: Scalars['Float']['output'];
161216
+ };
161217
+
161218
+ /** A saved model of a multi-site resource chain. Only the network is stored; plans are always computed from live data. */
161219
+ export type TheChainNetwork = {
161220
+ __typename?: 'TheChainNetwork';
161221
+ carbonBudgetTonnes?: Maybe<Scalars['Float']['output']>;
161222
+ carbonPricePerTonne: Scalars['Float']['output'];
161223
+ createdAt: Scalars['DateTime']['output'];
161224
+ currency: Scalars['String']['output'];
161225
+ description?: Maybe<Scalars['String']['output']>;
161226
+ historyDays: Scalars['Int']['output'];
161227
+ horizonDays: Scalars['Int']['output'];
161228
+ id: Scalars['ID']['output'];
161229
+ links: Array<TheChainLink>;
161230
+ method: TheForecastMethod;
161231
+ name: Scalars['String']['output'];
161232
+ nodes: Array<TheChainNode>;
161233
+ objective: TheChainObjective;
161234
+ /** Penalty per unit of unserved demand; null derives one from the link costs. */
161235
+ shortfallPenalty?: Maybe<Scalars['Float']['output']>;
161236
+ updatedAt: Scalars['DateTime']['output'];
161237
+ /** Forecast wind and solar assets with coordinates from the weather. */
161238
+ useWeather: Scalars['Boolean']['output'];
161239
+ workspaceId: Scalars['ID']['output'];
161240
+ };
161241
+
161242
+ export type TheChainNetworkConnection = {
161243
+ __typename?: 'TheChainNetworkConnection';
161244
+ items: Array<TheChainNetwork>;
161245
+ pageInfo: ThePageInfo;
161246
+ };
161247
+
161248
+ export type TheChainNetworkInput = {
161249
+ carbonBudgetTonnes?: InputMaybe<Scalars['Float']['input']>;
161250
+ carbonPricePerTonne?: InputMaybe<Scalars['Float']['input']>;
161251
+ currency?: InputMaybe<Scalars['String']['input']>;
161252
+ description?: InputMaybe<Scalars['String']['input']>;
161253
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
161254
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
161255
+ links?: InputMaybe<Array<TheChainLinkInput>>;
161256
+ method?: InputMaybe<TheForecastMethod>;
161257
+ name: Scalars['String']['input'];
161258
+ nodes: Array<TheChainNodeInput>;
161259
+ objective?: InputMaybe<TheChainObjective>;
161260
+ shortfallPenalty?: InputMaybe<Scalars['Float']['input']>;
161261
+ useWeather?: InputMaybe<Scalars['Boolean']['input']>;
161262
+ };
161263
+
161264
+ /** One commodity stock at one location. */
161265
+ export type TheChainNode = {
161266
+ __typename?: 'TheChainNode';
161267
+ assetIds: Array<Scalars['ID']['output']>;
161268
+ commodity: TheCommodityType;
161269
+ contractIds: Array<Scalars['ID']['output']>;
161270
+ holdingCostPerUnitDay: Scalars['Float']['output'];
161271
+ id: Scalars['ID']['output'];
161272
+ kind: TheChainNodeKind;
161273
+ latitude?: Maybe<Scalars['Float']['output']>;
161274
+ longitude?: Maybe<Scalars['Float']['output']>;
161275
+ name: Scalars['String']['output'];
161276
+ /** Opening stock; null sums AVAILABLE inventory lots whose location matches the node name. */
161277
+ openingStock?: Maybe<Scalars['Float']['output']>;
161278
+ storageCapacity?: Maybe<Scalars['Float']['output']>;
161279
+ unit: TheUnit;
161280
+ };
161281
+
161282
+ export type TheChainNodeInput = {
161283
+ assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
161284
+ commodity: TheCommodityType;
161285
+ contractIds?: InputMaybe<Array<Scalars['ID']['input']>>;
161286
+ holdingCostPerUnitDay?: InputMaybe<Scalars['Float']['input']>;
161287
+ kind?: InputMaybe<TheChainNodeKind>;
161288
+ latitude?: InputMaybe<Scalars['Float']['input']>;
161289
+ longitude?: InputMaybe<Scalars['Float']['input']>;
161290
+ /** Unique within the network; links refer to nodes by name. */
161291
+ name: Scalars['String']['input'];
161292
+ openingStock?: InputMaybe<Scalars['Float']['input']>;
161293
+ storageCapacity?: InputMaybe<Scalars['Float']['input']>;
161294
+ unit: TheUnit;
161295
+ };
161296
+
161297
+ export enum TheChainNodeKind {
161298
+ DELIVERY_POINT = 'DELIVERY_POINT',
161299
+ PROCESSING = 'PROCESSING',
161300
+ STORAGE = 'STORAGE',
161301
+ SUPPLY_SITE = 'SUPPLY_SITE'
161302
+ }
161303
+
161304
+ export type TheChainNodePeriod = {
161305
+ __typename?: 'TheChainNodePeriod';
161306
+ closingStock: Scalars['Float']['output'];
161307
+ curtailed: Scalars['Float']['output'];
161308
+ delivered: Scalars['Float']['output'];
161309
+ demand: Scalars['Float']['output'];
161310
+ inbound: Scalars['Float']['output'];
161311
+ period: Scalars['Int']['output'];
161312
+ production: Scalars['Float']['output'];
161313
+ received: Scalars['Float']['output'];
161314
+ sent: Scalars['Float']['output'];
161315
+ shortfall: Scalars['Float']['output'];
161316
+ };
161317
+
161318
+ export type TheChainNodePlan = {
161319
+ __typename?: 'TheChainNodePlan';
161320
+ closingStock: Scalars['Float']['output'];
161321
+ commodity: TheCommodityType;
161322
+ curtailed: Scalars['Float']['output'];
161323
+ delivered: Scalars['Float']['output'];
161324
+ demand: Scalars['Float']['output'];
161325
+ inbound: Scalars['Float']['output'];
161326
+ name: Scalars['String']['output'];
161327
+ nodeId: Scalars['ID']['output'];
161328
+ openingStock: Scalars['Float']['output'];
161329
+ peakStock: Scalars['Float']['output'];
161330
+ periods: Array<TheChainNodePeriod>;
161331
+ production: Scalars['Float']['output'];
161332
+ shortfall: Scalars['Float']['output'];
161333
+ unit: TheUnit;
161334
+ };
161335
+
161336
+ /** What the optimizer minimises. COST: logistics and holding cost. CARBON: emissions. BALANCED: cost plus emissions priced at the network's carbon price. */
161337
+ export enum TheChainObjective {
161338
+ BALANCED = 'BALANCED',
161339
+ CARBON = 'CARBON',
161340
+ COST = 'COST'
161341
+ }
161342
+
161343
+ export type TheChainPeriod = {
161344
+ __typename?: 'TheChainPeriod';
161345
+ days: Scalars['Int']['output'];
161346
+ end: Scalars['DateTime']['output'];
161347
+ index: Scalars['Int']['output'];
161348
+ start: Scalars['DateTime']['output'];
161349
+ };
161350
+
161351
+ export type TheChainPlan = {
161352
+ __typename?: 'TheChainPlan';
161353
+ assets: Array<TheChainAssetForecast>;
161354
+ /** Most limiting first. */
161355
+ bindingConstraints: Array<TheChainBindingConstraint>;
161356
+ carbonPricePerTonne: Scalars['Float']['output'];
161357
+ contracts: Array<TheChainContractPlan>;
161358
+ currency: Scalars['String']['output'];
161359
+ generatedAt: Scalars['DateTime']['output'];
161360
+ horizonDays: Scalars['Int']['output'];
161361
+ links: Array<TheChainLinkPlan>;
161362
+ name: Scalars['String']['output'];
161363
+ /** The saved network; null for a preview of an unsaved network. */
161364
+ network?: Maybe<TheChainNetwork>;
161365
+ nodes: Array<TheChainNodePlan>;
161366
+ objective: TheChainObjective;
161367
+ periods: Array<TheChainPeriod>;
161368
+ recommendations: Array<Scalars['String']['output']>;
161369
+ shipments: Array<TheChainShipment>;
161370
+ status: TheChainPlanStatus;
161371
+ summary: TheChainPlanSummary;
161372
+ warnings: Array<Scalars['String']['output']>;
161373
+ };
161374
+
161375
+ export enum TheChainPlanStatus {
161376
+ INFEASIBLE = 'INFEASIBLE',
161377
+ ITERATION_LIMIT = 'ITERATION_LIMIT',
161378
+ OPTIMAL = 'OPTIMAL',
161379
+ UNBOUNDED = 'UNBOUNDED'
161380
+ }
161381
+
161382
+ export type TheChainPlanSummary = {
161383
+ __typename?: 'TheChainPlanSummary';
161384
+ fulfilmentPct: Scalars['Float']['output'];
161385
+ objectiveValue: Scalars['Float']['output'];
161386
+ shortfallPenalty: Scalars['Float']['output'];
161387
+ totalCarbonTonnes: Scalars['Float']['output'];
161388
+ /** Logistics plus holding cost, in the network currency. */
161389
+ totalCost: Scalars['Float']['output'];
161390
+ totalCurtailed: Scalars['Float']['output'];
161391
+ totalDelivered: Scalars['Float']['output'];
161392
+ totalDemand: Scalars['Float']['output'];
161393
+ totalInbound: Scalars['Float']['output'];
161394
+ totalProduction: Scalars['Float']['output'];
161395
+ totalShortfall: Scalars['Float']['output'];
161396
+ };
161397
+
161398
+ /** Recommended volume to move over a link in a planning period. */
161399
+ export type TheChainShipment = {
161400
+ __typename?: 'TheChainShipment';
161401
+ linkId: Scalars['ID']['output'];
161402
+ linkName: Scalars['String']['output'];
161403
+ period: Scalars['Int']['output'];
161404
+ periodStart: Scalars['DateTime']['output'];
161405
+ volume: Scalars['Float']['output'];
161406
+ };
161407
+
160498
161408
  export type TheCloseAllocationPeriodInput = {
160499
161409
  /** Close the period for one measurement asset only; omit to close it for every asset. */
160500
161410
  assetId?: InputMaybe<Scalars['ID']['input']>;
@@ -160653,6 +161563,33 @@ export enum TheContractStatus {
160653
161563
  TERMINATED = 'TERMINATED'
160654
161564
  }
160655
161565
 
161566
+ /** A committed contract's undelivered volume valued today: FIXED at its own price, INDEX_LINKED / FORMULA / SPOT at the index price plus the contract differential, in the contract's unit and currency. */
161567
+ export type TheContractValuation = {
161568
+ __typename?: 'TheContractValuation';
161569
+ contractId: Scalars['ID']['output'];
161570
+ /** Fixed price, or the differential for index-priced contracts. */
161571
+ contractPrice: Scalars['Float']['output'];
161572
+ counterparty: Scalars['String']['output'];
161573
+ currency: Scalars['String']['output'];
161574
+ /** Index price in the index's own unit, when the contract is index-priced. */
161575
+ indexPrice?: Maybe<Scalars['Float']['output']>;
161576
+ /** When UNAVAILABLE: the price source that is missing and how to add it. */
161577
+ missingSource?: Maybe<Scalars['String']['output']>;
161578
+ priceDate?: Maybe<Scalars['DateTime']['output']>;
161579
+ priceIndex?: Maybe<Scalars['String']['output']>;
161580
+ priceKind?: Maybe<ThePricePointKind>;
161581
+ priceSource?: Maybe<Scalars['String']['output']>;
161582
+ pricingBasis: ThePricingBasis;
161583
+ reference: Scalars['String']['output'];
161584
+ remainingVolume: Scalars['Float']['output'];
161585
+ side: TheContractSide;
161586
+ status: TheValuationStatus;
161587
+ unit: TheUnit;
161588
+ valuedAmount?: Maybe<Scalars['Float']['output']>;
161589
+ /** Price per contract unit used for the valuation. */
161590
+ valuedPrice?: Maybe<Scalars['Float']['output']>;
161591
+ };
161592
+
160656
161593
  export type TheCorrectiveAction = {
160657
161594
  __typename?: 'TheCorrectiveAction';
160658
161595
  closedAt?: Maybe<Scalars['DateTime']['output']>;
@@ -160964,6 +161901,8 @@ export enum TheEmissionScope {
160964
161901
 
160965
161902
  export type TheEquipment = {
160966
161903
  __typename?: 'TheEquipment';
161904
+ /** The AssetHandler asset this equipment is linked to, if any. */
161905
+ assetHandlerLink?: Maybe<TheEquipmentExternalLink>;
160967
161906
  assetId: Scalars['ID']['output'];
160968
161907
  category: TheEquipmentCategory;
160969
161908
  createdAt: Scalars['DateTime']['output'];
@@ -161002,6 +161941,19 @@ export type TheEquipmentConnection = {
161002
161941
  pageInfo: ThePageInfo;
161003
161942
  };
161004
161943
 
161944
+ /** Link from TheGlobalFuel equipment to an AssetHandler asset. */
161945
+ export type TheEquipmentExternalLink = {
161946
+ __typename?: 'TheEquipmentExternalLink';
161947
+ createdAt: Scalars['DateTime']['output'];
161948
+ equipmentId: Scalars['ID']['output'];
161949
+ externalAssetId: Scalars['ID']['output'];
161950
+ externalAssetName?: Maybe<Scalars['String']['output']>;
161951
+ externalAssetNumber?: Maybe<Scalars['String']['output']>;
161952
+ id: Scalars['ID']['output'];
161953
+ provider: Scalars['String']['output'];
161954
+ updatedAt: Scalars['DateTime']['output'];
161955
+ };
161956
+
161005
161957
  export enum TheEquipmentStatus {
161006
161958
  DEGRADED = 'DEGRADED',
161007
161959
  DOWN = 'DOWN',
@@ -161063,6 +162015,66 @@ export enum TheEsgFramework {
161063
162015
  SEC_CLIMATE = 'SEC_CLIMATE'
161064
162016
  }
161065
162017
 
162018
+ export enum TheExternalAssigneeKind {
162019
+ /** A ProServiceWorld contractor (practitioner). */
162020
+ CONTRACTOR = 'CONTRACTOR',
162021
+ /** A CrewFoundry crew (team). */
162022
+ CREW = 'CREW'
162023
+ }
162024
+
162025
+ /** A locked forecast compared with the production reported since the lock. The top-level figures compare, day by day, the summed forecast of the assets that reported with their summed actuals. */
162026
+ export type TheForecastAccuracy = {
162027
+ __typename?: 'TheForecastAccuracy';
162028
+ actualToDate: Scalars['Float']['output'];
162029
+ asOf: Scalars['DateTime']['output'];
162030
+ assets: Array<TheAssetForecastAccuracy>;
162031
+ biasPct?: Maybe<Scalars['Float']['output']>;
162032
+ daysOutsideBand: Scalars['Int']['output'];
162033
+ driftReason?: Maybe<Scalars['String']['output']>;
162034
+ driftingAssets: Scalars['Int']['output'];
162035
+ /** Complete days since the lock, capped at the horizon. */
162036
+ elapsedDays: Scalars['Int']['output'];
162037
+ forecastToDate: Scalars['Float']['output'];
162038
+ mape?: Maybe<Scalars['Float']['output']>;
162039
+ observedDays: Scalars['Int']['output'];
162040
+ period: TheForecastAccuracyPeriod;
162041
+ periods: Array<TheForecastPeriodAccuracy>;
162042
+ series: Array<TheForecastAccuracyPoint>;
162043
+ snapshot: TheForecastSnapshot;
162044
+ status: TheForecastDriftStatus;
162045
+ warnings: Array<Scalars['String']['output']>;
162046
+ };
162047
+
162048
+ /** Calendar period the forecast-vs-actual error is reported per (UTC; weeks start Monday). */
162049
+ export enum TheForecastAccuracyPeriod {
162050
+ MONTH = 'MONTH',
162051
+ WEEK = 'WEEK'
162052
+ }
162053
+
162054
+ /** One day of the locked plan: the frozen forecast and band, and what was reported. */
162055
+ export type TheForecastAccuracyPoint = {
162056
+ __typename?: 'TheForecastAccuracyPoint';
162057
+ /** Reported production; null for days not yet complete or with no report. */
162058
+ actual?: Maybe<Scalars['Float']['output']>;
162059
+ date: Scalars['DateTime']['output'];
162060
+ forecast: Scalars['Float']['output'];
162061
+ high: Scalars['Float']['output'];
162062
+ low: Scalars['Float']['output'];
162063
+ /** Assets that reported production that day. */
162064
+ reportedAssets: Scalars['Int']['output'];
162065
+ /** Locked forecast of only the assets that reported that day, comparable with actual; null when none reported. */
162066
+ reportedForecast?: Maybe<Scalars['Float']['output']>;
162067
+ };
162068
+
162069
+ /** PENDING: no complete day has passed since the lock. NO_ACTUALS: days have passed but no production was reported for them. INSUFFICIENT_DATA: too few reported days (fewer than 7) to judge drift. ON_TRACK: actuals are within the drift threshold of the locked forecast. DRIFTING: actuals are beyond the drift threshold, overall or in the latest period. */
162070
+ export enum TheForecastDriftStatus {
162071
+ DRIFTING = 'DRIFTING',
162072
+ INSUFFICIENT_DATA = 'INSUFFICIENT_DATA',
162073
+ NO_ACTUALS = 'NO_ACTUALS',
162074
+ ON_TRACK = 'ON_TRACK',
162075
+ PENDING = 'PENDING'
162076
+ }
162077
+
161066
162078
  /** Reported daily production used to fit the forecast. */
161067
162079
  export type TheForecastHistoryPoint = {
161068
162080
  __typename?: 'TheForecastHistoryPoint';
@@ -161077,6 +162089,22 @@ export enum TheForecastMethod {
161077
162089
  MOVING_AVERAGE = 'MOVING_AVERAGE'
161078
162090
  }
161079
162091
 
162092
+ /** Forecast versus actual for one calendar period. Only days with reported production are compared. */
162093
+ export type TheForecastPeriodAccuracy = {
162094
+ __typename?: 'TheForecastPeriodAccuracy';
162095
+ actual: Scalars['Float']['output'];
162096
+ drifting: Scalars['Boolean']['output'];
162097
+ /** (actual - forecast) / forecast, in percent; null when nothing was reported or the forecast is zero. */
162098
+ errorPct?: Maybe<Scalars['Float']['output']>;
162099
+ forecast: Scalars['Float']['output'];
162100
+ /** Mean absolute percentage error of the reported days. */
162101
+ mape?: Maybe<Scalars['Float']['output']>;
162102
+ observedDays: Scalars['Int']['output'];
162103
+ /** Exclusive end of the period, clipped to the days compared so far. */
162104
+ periodEnd: Scalars['DateTime']['output'];
162105
+ periodStart: Scalars['DateTime']['output'];
162106
+ };
162107
+
161080
162108
  /** One forecast day: the central daily rate and its P10–P90 band. */
161081
162109
  export type TheForecastPoint = {
161082
162110
  __typename?: 'TheForecastPoint';
@@ -161086,6 +162114,17 @@ export type TheForecastPoint = {
161086
162114
  value: Scalars['Float']['output'];
161087
162115
  };
161088
162116
 
162117
+ /** Settings that would have predicted the production reported since the lock better. */
162118
+ export type TheForecastRecommendation = {
162119
+ __typename?: 'TheForecastRecommendation';
162120
+ /** Daily MAPE of the locked forecast over the same days. */
162121
+ currentMape?: Maybe<Scalars['Float']['output']>;
162122
+ historyDays: Scalars['Int']['output'];
162123
+ /** Daily MAPE these settings would have scored against the actuals. */
162124
+ mape: Scalars['Float']['output'];
162125
+ method: TheForecastMethod;
162126
+ };
162127
+
161089
162128
  /** A saved set of planning assumptions for one commodity. Running it projects production, derives demand from committed contracts, simulates inventory and recommends dispatches. Only the assumptions are stored; results are always computed from live data. */
161090
162129
  export type TheForecastScenario = {
161091
162130
  __typename?: 'TheForecastScenario';
@@ -161137,6 +162176,43 @@ export type TheForecastScenarioInput = {
161137
162176
  unit?: InputMaybe<TheUnit>;
161138
162177
  };
161139
162178
 
162179
+ /** A scenario's per-asset daily production forecast, frozen as the plan of record when it was locked. Actuals are measured against it as production is reported. */
162180
+ export type TheForecastSnapshot = {
162181
+ __typename?: 'TheForecastSnapshot';
162182
+ /** Assets whose forecast was frozen. */
162183
+ assetIds: Array<Scalars['ID']['output']>;
162184
+ commodity: TheCommodityType;
162185
+ createdAt: Scalars['DateTime']['output'];
162186
+ createdBy: Scalars['String']['output'];
162187
+ /** Absolute percentage error beyond which an asset is flagged as drifting. */
162188
+ driftThresholdPct: Scalars['Float']['output'];
162189
+ /** Day after the last forecast day. */
162190
+ endDate: Scalars['DateTime']['output'];
162191
+ historyDays: Scalars['Int']['output'];
162192
+ horizonDays: Scalars['Int']['output'];
162193
+ id: Scalars['ID']['output'];
162194
+ lockedAt: Scalars['DateTime']['output'];
162195
+ method: TheForecastMethod;
162196
+ name: Scalars['String']['output'];
162197
+ notes?: Maybe<Scalars['String']['output']>;
162198
+ productionFactor: Scalars['Float']['output'];
162199
+ /** Scenario the plan was locked from; null once that scenario is deleted. */
162200
+ scenarioId?: Maybe<Scalars['ID']['output']>;
162201
+ /** First forecast day (midnight UTC of the lock day). */
162202
+ startDate: Scalars['DateTime']['output'];
162203
+ /** Frozen central forecast over the whole horizon, all assets. */
162204
+ totalForecast: Scalars['Float']['output'];
162205
+ unit: TheUnit;
162206
+ updatedAt: Scalars['DateTime']['output'];
162207
+ workspaceId: Scalars['ID']['output'];
162208
+ };
162209
+
162210
+ export type TheForecastSnapshotConnection = {
162211
+ __typename?: 'TheForecastSnapshotConnection';
162212
+ items: Array<TheForecastSnapshot>;
162213
+ pageInfo: ThePageInfo;
162214
+ };
162215
+
161140
162216
  export type TheGenerateEsgDisclosureInput = {
161141
162217
  framework: TheEsgFramework;
161142
162218
  notes?: InputMaybe<Scalars['String']['input']>;
@@ -161242,6 +162318,27 @@ export enum TheInventoryStatus {
161242
162318
  WRITTEN_OFF = 'WRITTEN_OFF'
161243
162319
  }
161244
162320
 
162321
+ /** AVAILABLE inventory valued at the commodity benchmark plus a differential. */
162322
+ export type TheInventoryValuation = {
162323
+ __typename?: 'TheInventoryValuation';
162324
+ /** Sum of each lot's recorded unit value, per currency, for comparison. */
162325
+ bookValue: Array<TheCurrencyAmount>;
162326
+ currency?: Maybe<Scalars['String']['output']>;
162327
+ differential: Scalars['Float']['output'];
162328
+ indexId?: Maybe<Scalars['ID']['output']>;
162329
+ indexName?: Maybe<Scalars['String']['output']>;
162330
+ indexPrice?: Maybe<Scalars['Float']['output']>;
162331
+ lotCount: Scalars['Int']['output'];
162332
+ missingSource?: Maybe<Scalars['String']['output']>;
162333
+ priceDate?: Maybe<Scalars['DateTime']['output']>;
162334
+ priceKind?: Maybe<ThePricePointKind>;
162335
+ priceSource?: Maybe<Scalars['String']['output']>;
162336
+ quantity: Scalars['Float']['output'];
162337
+ status: TheValuationStatus;
162338
+ valuedAmount?: Maybe<Scalars['Float']['output']>;
162339
+ valuedPrice?: Maybe<Scalars['Float']['output']>;
162340
+ };
162341
+
161245
162342
  export type TheLegalAcceptance = {
161246
162343
  __typename?: 'TheLegalAcceptance';
161247
162344
  acceptedAt: Scalars['DateTime']['output'];
@@ -161289,6 +162386,16 @@ export type TheLinkShipmentSourceInput = {
161289
162386
  shipmentId: Scalars['ID']['input'];
161290
162387
  };
161291
162388
 
162389
+ export type TheLockForecastScenarioInput = {
162390
+ /** First day of the plan; defaults to today. A past day (up to 365 days back) records a plan that took effect earlier: the forecast is fitted only on production reported before that day, using the assets' current status and capacity. */
162391
+ asOf?: InputMaybe<Scalars['DateTime']['input']>;
162392
+ /** Percent; defaults to 20. */
162393
+ driftThresholdPct?: InputMaybe<Scalars['Float']['input']>;
162394
+ /** Defaults to the scenario name and the lock date. */
162395
+ name?: InputMaybe<Scalars['String']['input']>;
162396
+ notes?: InputMaybe<Scalars['String']['input']>;
162397
+ };
162398
+
161292
162399
  /** Live counts for the maintenance dashboard. */
161293
162400
  export type TheMaintenanceDashboard = {
161294
162401
  __typename?: 'TheMaintenanceDashboard';
@@ -161317,6 +162424,15 @@ export type TheMaintenanceHistory = {
161317
162424
  totalDowntimeHours: Scalars['Float']['output'];
161318
162425
  };
161319
162426
 
162427
+ /** Which ecosystem products the maintenance path integrates with in this workspace. All are off until switched on. */
162428
+ export type TheMaintenanceIntegrations = {
162429
+ __typename?: 'TheMaintenanceIntegrations';
162430
+ assetHandlerEnabled: Scalars['Boolean']['output'];
162431
+ crewFoundryEnabled: Scalars['Boolean']['output'];
162432
+ proServiceWorldEnabled: Scalars['Boolean']['output'];
162433
+ updatedAt?: Maybe<Scalars['DateTime']['output']>;
162434
+ };
162435
+
161320
162436
  export enum TheMaintenancePriority {
161321
162437
  HIGH = 'HIGH',
161322
162438
  LOW = 'LOW',
@@ -161516,6 +162632,157 @@ export type ThePortfolioTotals = {
161516
162632
  regionCount: Scalars['Int']['output'];
161517
162633
  };
161518
162634
 
162635
+ /** LONG: more supply (production plus purchases) than contracted sales. SHORT: more contracted sales than supply. FLAT: balanced. */
162636
+ export enum ThePositionDirection {
162637
+ FLAT = 'FLAT',
162638
+ LONG = 'LONG',
162639
+ SHORT = 'SHORT'
162640
+ }
162641
+
162642
+ /** One calendar month of the physical position, in the report unit. */
162643
+ export type ThePositionPeriod = {
162644
+ __typename?: 'ThePositionPeriod';
162645
+ /** Reported production on days before today. */
162646
+ actualProduction: Scalars['Float']['output'];
162647
+ contractedPurchases: Scalars['Float']['output'];
162648
+ /** Contracted sales, straight-line over each contract's term. */
162649
+ contractedSales: Scalars['Float']['output'];
162650
+ deliveredPurchases: Scalars['Float']['output'];
162651
+ /** Volume of DELIVERED shipments in the month. */
162652
+ deliveredSales: Scalars['Float']['output'];
162653
+ direction: ThePositionDirection;
162654
+ /** Forecast production from today on. */
162655
+ forecastProduction: Scalars['Float']['output'];
162656
+ missingSource?: Maybe<Scalars['String']['output']>;
162657
+ /** production + contractedPurchases − contractedSales. */
162658
+ netPosition: Scalars['Float']['output'];
162659
+ periodEnd: Scalars['DateTime']['output'];
162660
+ periodStart: Scalars['DateTime']['output'];
162661
+ /** Mean benchmark price over the month, per report unit. */
162662
+ price?: Maybe<Scalars['Float']['output']>;
162663
+ priceKind?: Maybe<ThePricePointKind>;
162664
+ production: Scalars['Float']['output'];
162665
+ status: TheValuationStatus;
162666
+ valuedNet?: Maybe<Scalars['Float']['output']>;
162667
+ };
162668
+
162669
+ export type ThePositionValuation = {
162670
+ __typename?: 'ThePositionValuation';
162671
+ asOf: Scalars['DateTime']['output'];
162672
+ /** The commodity's benchmark index, when one is set. */
162673
+ benchmark?: Maybe<ThePriceIndex>;
162674
+ commodity: TheCommodityType;
162675
+ contracts: Array<TheContractValuation>;
162676
+ /** Currency of the inventory and monthly valuations (the benchmark's). */
162677
+ currency?: Maybe<Scalars['String']['output']>;
162678
+ generatedAt: Scalars['DateTime']['output'];
162679
+ inventory: TheInventoryValuation;
162680
+ periods: Array<ThePositionPeriod>;
162681
+ /** Totals of the AVAILABLE contract valuations, per currency. */
162682
+ totals: Array<TheValuationTotal>;
162683
+ /** Valuations that could not be computed for want of a price. */
162684
+ unavailableCount: Scalars['Int']['output'];
162685
+ unit: TheUnit;
162686
+ warnings: Array<Scalars['String']['output']>;
162687
+ };
162688
+
162689
+ export type ThePositionValuationInput = {
162690
+ commodity: TheCommodityType;
162691
+ /** Months from the current one (1–12, default 6). */
162692
+ horizonMonths?: InputMaybe<Scalars['Int']['input']>;
162693
+ /** Added to the benchmark price when valuing inventory (default 0). */
162694
+ inventoryDifferential?: InputMaybe<Scalars['Float']['input']>;
162695
+ /** Complete months before the current one (0–12, default 1). */
162696
+ lookbackMonths?: InputMaybe<Scalars['Int']['input']>;
162697
+ /** Unit of the inventory and monthly volumes. Default BARRELS. */
162698
+ unit?: InputMaybe<TheUnit>;
162699
+ };
162700
+
162701
+ export type ThePriceImportResult = {
162702
+ __typename?: 'ThePriceImportResult';
162703
+ created: Scalars['Int']['output'];
162704
+ index: ThePriceIndex;
162705
+ updated: Scalars['Int']['output'];
162706
+ };
162707
+
162708
+ /** A named reference price series (e.g. Brent, Henry Hub, LME lithium) quoted in one currency per one unit. Contracts reference it by name in `priceIndex` (matched case-insensitively). */
162709
+ export type ThePriceIndex = {
162710
+ __typename?: 'ThePriceIndex';
162711
+ /** The benchmark for its commodity: AVAILABLE inventory and the monthly position are valued against it. At most one per commodity. */
162712
+ benchmark: Scalars['Boolean']['output'];
162713
+ /** Commodity the index prices; null for a cross-commodity index. */
162714
+ commodity?: Maybe<TheCommodityType>;
162715
+ createdAt: Scalars['DateTime']['output'];
162716
+ currency: Scalars['String']['output'];
162717
+ description?: Maybe<Scalars['String']['output']>;
162718
+ id: Scalars['ID']['output'];
162719
+ /** The newest ACTUAL price. */
162720
+ latestPrice?: Maybe<ThePricePoint>;
162721
+ name: Scalars['String']['output'];
162722
+ /** Default source of the series (e.g. "ICE Brent settlement"). */
162723
+ source: Scalars['String']['output'];
162724
+ /** Unit one quoted price is per. */
162725
+ unit: TheUnit;
162726
+ updatedAt: Scalars['DateTime']['output'];
162727
+ workspaceId: Scalars['ID']['output'];
162728
+ };
162729
+
162730
+ export type ThePriceIndexConnection = {
162731
+ __typename?: 'ThePriceIndexConnection';
162732
+ items: Array<ThePriceIndex>;
162733
+ pageInfo: ThePageInfo;
162734
+ };
162735
+
162736
+ export type ThePriceIndexInput = {
162737
+ benchmark?: InputMaybe<Scalars['Boolean']['input']>;
162738
+ commodity?: InputMaybe<TheCommodityType>;
162739
+ currency?: InputMaybe<Scalars['String']['input']>;
162740
+ description?: InputMaybe<Scalars['String']['input']>;
162741
+ name?: InputMaybe<Scalars['String']['input']>;
162742
+ source?: InputMaybe<Scalars['String']['input']>;
162743
+ unit?: InputMaybe<TheUnit>;
162744
+ };
162745
+
162746
+ /** One dated price on an index, with where it came from and when it was recorded. */
162747
+ export type ThePricePoint = {
162748
+ __typename?: 'ThePricePoint';
162749
+ createdAt: Scalars['DateTime']['output'];
162750
+ createdBy: Scalars['String']['output'];
162751
+ id: Scalars['ID']['output'];
162752
+ indexId: Scalars['ID']['output'];
162753
+ kind: ThePricePointKind;
162754
+ price: Scalars['Float']['output'];
162755
+ /** The day the price applies to (UTC midnight). */
162756
+ priceDate: Scalars['DateTime']['output'];
162757
+ /** When the source published or the user recorded the price. */
162758
+ recordedAt: Scalars['DateTime']['output'];
162759
+ source: Scalars['String']['output'];
162760
+ sourceReference?: Maybe<Scalars['String']['output']>;
162761
+ };
162762
+
162763
+ export type ThePricePointConnection = {
162764
+ __typename?: 'ThePricePointConnection';
162765
+ items: Array<ThePricePoint>;
162766
+ pageInfo: ThePageInfo;
162767
+ };
162768
+
162769
+ export type ThePricePointInput = {
162770
+ kind?: InputMaybe<ThePricePointKind>;
162771
+ price: Scalars['Float']['input'];
162772
+ /** ISO date (YYYY-MM-DD) or timestamp; stored as that UTC day. */
162773
+ priceDate: Scalars['String']['input'];
162774
+ recordedAt?: InputMaybe<Scalars['DateTime']['input']>;
162775
+ /** Defaults to the batch source, then the index source. */
162776
+ source?: InputMaybe<Scalars['String']['input']>;
162777
+ sourceReference?: InputMaybe<Scalars['String']['input']>;
162778
+ };
162779
+
162780
+ /** ACTUAL: an observed settlement / assessment. FORECAST: a forward price. On a day with both, the ACTUAL price is used. */
162781
+ export enum ThePricePointKind {
162782
+ ACTUAL = 'ACTUAL',
162783
+ FORECAST = 'FORECAST'
162784
+ }
162785
+
161519
162786
  export enum ThePricingBasis {
161520
162787
  FIXED = 'FIXED',
161521
162788
  FORMULA = 'FORMULA',
@@ -161629,6 +162896,18 @@ export type TheProductionRecordConnection = {
161629
162896
  pageInfo: ThePageInfo;
161630
162897
  };
161631
162898
 
162899
+ /** Compliance posture of one chain-relevant certificate. */
162900
+ export type TheProvenanceCertSummary = {
162901
+ __typename?: 'TheProvenanceCertSummary';
162902
+ assetId?: Maybe<Scalars['ID']['output']>;
162903
+ category: Scalars['String']['output'];
162904
+ evidenceFileId?: Maybe<Scalars['String']['output']>;
162905
+ expiresAt?: Maybe<Scalars['DateTime']['output']>;
162906
+ id: Scalars['ID']['output'];
162907
+ status: Scalars['String']['output'];
162908
+ title: Scalars['String']['output'];
162909
+ };
162910
+
161632
162911
  /** Responsible-sourcing certificate for one shipment, assembled from the real records: asset, production, inventory lot, shipment and delivery. `digest` is a SHA-256 over the canonical chain so a shared certificate can be checked. */
161633
162912
  export type TheProvenanceCertificate = {
161634
162913
  __typename?: 'TheProvenanceCertificate';
@@ -161651,17 +162930,102 @@ export type TheProvenanceCertification = {
161651
162930
  validAtReference: Scalars['Boolean']['output'];
161652
162931
  };
161653
162932
 
161654
- /** A link in a custody chain that is missing, which keeps the certificate from being complete. */
161655
- export enum TheProvenanceGap {
162933
+ /** One citation grounding an AI narrative sentence to a real record the traversal returned. The resolver only ever emits citations whose ids were present in the subgraph, so a citation can never point at a record the traversal did not verify. */
162934
+ export type TheProvenanceCitation = {
162935
+ __typename?: 'TheProvenanceCitation';
162936
+ entityId: Scalars['ID']['output'];
162937
+ entityType: TheProvenanceEntityType;
162938
+ route: Scalars['String']['output'];
162939
+ };
162940
+
162941
+ /** Which way to walk the custody chain from the starting entity. UPSTREAM walks toward origin (shipments → lots → production → assets); DOWNSTREAM walks toward market (assets → lots → shipments → contracts). */
162942
+ export enum TheProvenanceDirection {
162943
+ DOWNSTREAM = 'DOWNSTREAM',
162944
+ UPSTREAM = 'UPSTREAM'
162945
+ }
162946
+
162947
+ /** Aggregated emissions footprint of one contributing asset. */
162948
+ export type TheProvenanceEmissionSummary = {
162949
+ __typename?: 'TheProvenanceEmissionSummary';
162950
+ assetId: Scalars['ID']['output'];
162951
+ assetName: Scalars['String']['output'];
162952
+ recordCount: Scalars['Int']['output'];
162953
+ totalCo2eTonnes: Scalars['Float']['output'];
162954
+ verifiedCount: Scalars['Int']['output'];
162955
+ };
162956
+
162957
+ /** The entity kinds that participate in the custody chain. */
162958
+ export enum TheProvenanceEntityType {
162959
+ ASSET = 'ASSET',
162960
+ INVENTORY_LOT = 'INVENTORY_LOT',
162961
+ OFFTAKE_CONTRACT = 'OFFTAKE_CONTRACT',
162962
+ PRODUCTION_RECORD = 'PRODUCTION_RECORD',
162963
+ SHIPMENT = 'SHIPMENT'
162964
+ }
162965
+
162966
+ /** AI narrative over the traversal. `generatedByModel` is false when no provider key is configured — the deterministic narrative is then returned instead, built from the same subgraph with the same citation guarantee. */
162967
+ export type TheProvenanceExplanation = {
162968
+ __typename?: 'TheProvenanceExplanation';
162969
+ citations: Array<TheProvenanceCitation>;
162970
+ entityId: Scalars['ID']['output'];
162971
+ entityType: TheProvenanceEntityType;
162972
+ gaps: Array<TheProvenanceGap>;
162973
+ generatedByModel: Scalars['Boolean']['output'];
162974
+ /** Provider-qualified model id when a model produced the narrative. */
162975
+ model?: Maybe<Scalars['String']['output']>;
162976
+ narrative: Scalars['String']['output'];
162977
+ };
162978
+
162979
+ /** A chain defect found while walking. `entityType`/`entityId` identify the record the gap belongs to when it belongs to one. */
162980
+ export type TheProvenanceGap = {
162981
+ __typename?: 'TheProvenanceGap';
162982
+ code: TheProvenanceGapCode;
162983
+ entityId?: Maybe<Scalars['ID']['output']>;
162984
+ entityType?: Maybe<TheProvenanceEntityType>;
162985
+ message: Scalars['String']['output'];
162986
+ };
162987
+
162988
+ /** Machine-readable identifiers for the chain gaps the traversal surfaces. A provenance claim that hid these would be worse than no claim, so every gap is reported explicitly and `complete` stays false until none remain. */
162989
+ export enum TheProvenanceGapCode {
162990
+ /** An asset has production records but no emission record at all. */
162991
+ ASSET_PRODUCTION_WITHOUT_EMISSIONS = 'ASSET_PRODUCTION_WITHOUT_EMISSIONS',
162992
+ /** A chain-relevant certificate has expired. */
162993
+ CERT_EXPIRED = 'CERT_EXPIRED',
162994
+ /** A chain-relevant certificate is not APPROVED. */
162995
+ CERT_NOT_APPROVED = 'CERT_NOT_APPROVED',
162996
+ /** A chain-of-custody certificate has no evidence document linked. */
162997
+ CERT_WITHOUT_EVIDENCE = 'CERT_WITHOUT_EVIDENCE',
162998
+ /** A chain link crosses a workspace boundary and was not followed. */
162999
+ CROSS_WORKSPACE_LINK = 'CROSS_WORKSPACE_LINK',
163000
+ /** An inventory lot has no producing asset linked. */
161656
163001
  LOT_WITHOUT_ASSET = 'LOT_WITHOUT_ASSET',
161657
- NOT_DELIVERED = 'NOT_DELIVERED',
161658
- NO_PRODUCTION_RECORD = 'NO_PRODUCTION_RECORD',
161659
- NO_SOURCES = 'NO_SOURCES',
161660
- NO_TRANSPORT_DOCUMENT = 'NO_TRANSPORT_DOCUMENT',
161661
- NO_VALID_CERTIFICATION = 'NO_VALID_CERTIFICATION',
161662
- UNSOURCED_VOLUME = 'UNSOURCED_VOLUME'
163002
+ /** A shipment has no inventory-lot source linked. */
163003
+ SHIPMENT_WITHOUT_SOURCE = 'SHIPMENT_WITHOUT_SOURCE'
161663
163004
  }
161664
163005
 
163006
+ /** One record reached by the traversal. `route` is the MFE-relative deep link to the real record page so every rendered assertion can link to evidence. */
163007
+ export type TheProvenanceNode = {
163008
+ __typename?: 'TheProvenanceNode';
163009
+ deliveredAt?: Maybe<Scalars['DateTime']['output']>;
163010
+ entityId: Scalars['ID']['output'];
163011
+ entityType: TheProvenanceEntityType;
163012
+ /** Measured grade/quality where recorded. */
163013
+ grade?: Maybe<Scalars['Float']['output']>;
163014
+ /** Graph hops from the starting entity. */
163015
+ hops: Scalars['Int']['output'];
163016
+ /** Human label: asset name, lot code, shipment/contract reference, … */
163017
+ label: Scalars['String']['output'];
163018
+ periodEnd?: Maybe<Scalars['DateTime']['output']>;
163019
+ periodStart?: Maybe<Scalars['DateTime']['output']>;
163020
+ producedAt?: Maybe<Scalars['DateTime']['output']>;
163021
+ /** MFE-relative route of the real record page, e.g. `shipments/<id>`. */
163022
+ route: Scalars['String']['output'];
163023
+ status?: Maybe<Scalars['String']['output']>;
163024
+ unit?: Maybe<TheUnit>;
163025
+ /** Volume/quantity where the record carries one (production, lot, shipment). */
163026
+ volume?: Maybe<Scalars['Float']['output']>;
163027
+ };
163028
+
161665
163029
  /** One source lot of a shipment traced back to its producing asset, the production records it came from, the certifications covering that asset, and the asset's emission intensity over the same window. */
161666
163030
  export type TheProvenanceSourceLink = {
161667
163031
  __typename?: 'TheProvenanceSourceLink';
@@ -161676,6 +163040,20 @@ export type TheProvenanceSourceLink = {
161676
163040
  source: TheShipmentSource;
161677
163041
  };
161678
163042
 
163043
+ /** The deterministic traversal result: the walked chain, the contributing assets' emissions footprint, the compliance posture, and every gap. */
163044
+ export type TheProvenanceTrace = {
163045
+ __typename?: 'TheProvenanceTrace';
163046
+ certificates: Array<TheProvenanceCertSummary>;
163047
+ /** True only when the chain has no gaps. */
163048
+ complete: Scalars['Boolean']['output'];
163049
+ direction: TheProvenanceDirection;
163050
+ emissions: Array<TheProvenanceEmissionSummary>;
163051
+ entityId: Scalars['ID']['output'];
163052
+ entityType: TheProvenanceEntityType;
163053
+ gaps: Array<TheProvenanceGap>;
163054
+ nodes: Array<TheProvenanceNode>;
163055
+ };
163056
+
161679
163057
  export type TheRecordEmissionInput = {
161680
163058
  assetId?: InputMaybe<Scalars['ID']['input']>;
161681
163059
  co2eTonnes: Scalars['Float']['input'];
@@ -161974,6 +163352,12 @@ export enum TheServiceContractStatus {
161974
163352
  TERMINATED = 'TERMINATED'
161975
163353
  }
161976
163354
 
163355
+ export type TheSetMaintenanceIntegrationsInput = {
163356
+ assetHandlerEnabled?: InputMaybe<Scalars['Boolean']['input']>;
163357
+ crewFoundryEnabled?: InputMaybe<Scalars['Boolean']['input']>;
163358
+ proServiceWorldEnabled?: InputMaybe<Scalars['Boolean']['input']>;
163359
+ };
163360
+
161977
163361
  export type TheSetUnitConversionInput = {
161978
163362
  commodity: TheCommodityType;
161979
163363
  /** One fromUnit equals this many toUnit (> 0). */
@@ -162268,6 +163652,23 @@ export type TheUpdateAssetInput = {
162268
163652
  workingInterestPct?: InputMaybe<Scalars['Float']['input']>;
162269
163653
  };
162270
163654
 
163655
+ /** Fields left out keep their stored value. Passing nodes replaces every node; links left out are kept and matched to the new nodes by name. Node and link ids are reissued whenever the topology is replaced. */
163656
+ export type TheUpdateChainNetworkInput = {
163657
+ carbonBudgetTonnes?: InputMaybe<Scalars['Float']['input']>;
163658
+ carbonPricePerTonne?: InputMaybe<Scalars['Float']['input']>;
163659
+ currency?: InputMaybe<Scalars['String']['input']>;
163660
+ description?: InputMaybe<Scalars['String']['input']>;
163661
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
163662
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
163663
+ links?: InputMaybe<Array<TheChainLinkInput>>;
163664
+ method?: InputMaybe<TheForecastMethod>;
163665
+ name?: InputMaybe<Scalars['String']['input']>;
163666
+ nodes?: InputMaybe<Array<TheChainNodeInput>>;
163667
+ objective?: InputMaybe<TheChainObjective>;
163668
+ shortfallPenalty?: InputMaybe<Scalars['Float']['input']>;
163669
+ useWeather?: InputMaybe<Scalars['Boolean']['input']>;
163670
+ };
163671
+
162271
163672
  export type TheUpdateEquipmentInput = {
162272
163673
  category?: InputMaybe<TheEquipmentCategory>;
162273
163674
  criticality?: InputMaybe<TheMaintenancePriority>;
@@ -162298,6 +163699,13 @@ export type TheUpdateForecastScenarioInput = {
162298
163699
  unit?: InputMaybe<TheUnit>;
162299
163700
  };
162300
163701
 
163702
+ /** Fields left out keep their stored value. The frozen forecast itself never changes. */
163703
+ export type TheUpdateForecastSnapshotInput = {
163704
+ driftThresholdPct?: InputMaybe<Scalars['Float']['input']>;
163705
+ name?: InputMaybe<Scalars['String']['input']>;
163706
+ notes?: InputMaybe<Scalars['String']['input']>;
163707
+ };
163708
+
162301
163709
  export type TheUpdateMaintenanceScheduleInput = {
162302
163710
  active?: InputMaybe<Scalars['Boolean']['input']>;
162303
163711
  description?: InputMaybe<Scalars['String']['input']>;
@@ -162384,6 +163792,21 @@ export type TheUpdateWorkOrderInput = {
162384
163792
  title?: InputMaybe<Scalars['String']['input']>;
162385
163793
  };
162386
163794
 
163795
+ /** AVAILABLE: a price was found and the value is computed. UNAVAILABLE: no usable price exists; `missingSource` names what is missing. A missing price is never valued at zero. */
163796
+ export enum TheValuationStatus {
163797
+ AVAILABLE = 'AVAILABLE',
163798
+ UNAVAILABLE = 'UNAVAILABLE'
163799
+ }
163800
+
163801
+ /** Valued contract amounts per currency: sales receivable, purchases payable. */
163802
+ export type TheValuationTotal = {
163803
+ __typename?: 'TheValuationTotal';
163804
+ currency: Scalars['String']['output'];
163805
+ net: Scalars['Float']['output'];
163806
+ purchases: Scalars['Float']['output'];
163807
+ sales: Scalars['Float']['output'];
163808
+ };
163809
+
162387
163810
  export type TheVintageOffsetRow = {
162388
163811
  __typename?: 'TheVintageOffsetRow';
162389
163812
  /** True when the vintage is more than five years older than the reporting period. */
@@ -162393,8 +163816,86 @@ export type TheVintageOffsetRow = {
162393
163816
  vintageYear: Scalars['Int']['output'];
162394
163817
  };
162395
163818
 
163819
+ export type TheWeatherCalibration = {
163820
+ __typename?: 'TheWeatherCalibration';
163821
+ /** Output per unit of driver (per kWh/m² for solar, at capacity factor 1 for wind). */
163822
+ coefficient: Scalars['Float']['output'];
163823
+ method: TheWeatherCalibrationMethod;
163824
+ /** Days where both production and historical weather are known. */
163825
+ observations: Scalars['Int']['output'];
163826
+ rSquared?: Maybe<Scalars['Float']['output']>;
163827
+ /** Standard deviation of the daily residuals. */
163828
+ sigma: Scalars['Float']['output'];
163829
+ };
163830
+
163831
+ /** How the weather-to-output coefficient was obtained. FITTED: least squares on the asset's own production against historical weather. PHYSICAL: from nameplate capacity (too little overlapping history to fit). NONE: no history and no capacity, so no forecast could be made. */
163832
+ export enum TheWeatherCalibrationMethod {
163833
+ FITTED = 'FITTED',
163834
+ NONE = 'NONE',
163835
+ PHYSICAL = 'PHYSICAL'
163836
+ }
163837
+
163838
+ export type TheWeatherForecastPoint = {
163839
+ __typename?: 'TheWeatherForecastPoint';
163840
+ date: Scalars['DateTime']['output'];
163841
+ /** Weather driver for the day: kWh/m² (solar) or turbine capacity factor (wind). */
163842
+ driver?: Maybe<Scalars['Float']['output']>;
163843
+ high: Scalars['Float']['output'];
163844
+ low: Scalars['Float']['output'];
163845
+ source: TheWeatherPointSource;
163846
+ value: Scalars['Float']['output'];
163847
+ };
163848
+
163849
+ export type TheWeatherGenerationForecast = {
163850
+ __typename?: 'TheWeatherGenerationForecast';
163851
+ assetId: Scalars['ID']['output'];
163852
+ assetName: Scalars['String']['output'];
163853
+ /** Hold-out MAPE of the weather model (fit on 80% of overlapping days, scored on the rest). */
163854
+ backtestMape?: Maybe<Scalars['Float']['output']>;
163855
+ calibration: TheWeatherCalibration;
163856
+ capacityPerDay?: Maybe<Scalars['Float']['output']>;
163857
+ dailyRate: Scalars['Float']['output'];
163858
+ history: Array<TheWeatherHistoryPoint>;
163859
+ historyDays: Scalars['Int']['output'];
163860
+ horizonDays: Scalars['Int']['output'];
163861
+ /** Coordinates sent to the provider, rounded to two decimals. */
163862
+ latitude: Scalars['Float']['output'];
163863
+ longitude: Scalars['Float']['output'];
163864
+ points: Array<TheWeatherForecastPoint>;
163865
+ /** Weather data provider (open-meteo). */
163866
+ provider: Scalars['String']['output'];
163867
+ technology: TheWeatherTechnology;
163868
+ totalForecast: Scalars['Float']['output'];
163869
+ unit: TheUnit;
163870
+ warnings: Array<Scalars['String']['output']>;
163871
+ /** Leading forecast days covered by the numerical weather forecast. */
163872
+ weatherDays: Scalars['Int']['output'];
163873
+ };
163874
+
163875
+ export type TheWeatherHistoryPoint = {
163876
+ __typename?: 'TheWeatherHistoryPoint';
163877
+ actual?: Maybe<Scalars['Float']['output']>;
163878
+ date: Scalars['DateTime']['output'];
163879
+ driver?: Maybe<Scalars['Float']['output']>;
163880
+ modelled?: Maybe<Scalars['Float']['output']>;
163881
+ };
163882
+
163883
+ /** FORECAST: the day is inside the weather provider's forecast window. CLIMATOLOGY: the same calendar day last year (or the history mean) stands in. */
163884
+ export enum TheWeatherPointSource {
163885
+ CLIMATOLOGY = 'CLIMATOLOGY',
163886
+ FORECAST = 'FORECAST'
163887
+ }
163888
+
163889
+ /** Weather driver of a renewable asset. SOLAR uses daily irradiation; WIND uses a turbine power curve on hourly hub-height wind speed. */
163890
+ export enum TheWeatherTechnology {
163891
+ SOLAR = 'SOLAR',
163892
+ WIND = 'WIND'
163893
+ }
163894
+
162396
163895
  export type TheWorkOrder = {
162397
163896
  __typename?: 'TheWorkOrder';
163897
+ /** The AssetHandler mirror of this work order, if any. */
163898
+ assetHandlerLink?: Maybe<TheWorkOrderExternalLink>;
162398
163899
  assetId: Scalars['ID']['output'];
162399
163900
  assigneeId?: Maybe<Scalars['ID']['output']>;
162400
163901
  cancelledAt?: Maybe<Scalars['DateTime']['output']>;
@@ -162409,6 +163910,8 @@ export type TheWorkOrder = {
162409
163910
  downtimeHours?: Maybe<Scalars['Float']['output']>;
162410
163911
  equipment?: Maybe<TheEquipment>;
162411
163912
  equipmentId?: Maybe<Scalars['ID']['output']>;
163913
+ /** The external crew or contractor assigned to this work order, if any. */
163914
+ externalAssignment?: Maybe<TheWorkOrderExternalAssignment>;
162412
163915
  id: Scalars['ID']['output'];
162413
163916
  /** The production record whose downtime this work order explains, if attributed. */
162414
163917
  linkedProductionRecordId?: Maybe<Scalars['ID']['output']>;
@@ -162431,12 +163934,66 @@ export type TheWorkOrder = {
162431
163934
  workspaceId: Scalars['ID']['output'];
162432
163935
  };
162433
163936
 
163937
+ export type TheWorkOrderBulkSyncResult = {
163938
+ __typename?: 'TheWorkOrderBulkSyncResult';
163939
+ conflicts: Scalars['Int']['output'];
163940
+ created: Scalars['Int']['output'];
163941
+ failed: Scalars['Int']['output'];
163942
+ inSync: Scalars['Int']['output'];
163943
+ processed: Scalars['Int']['output'];
163944
+ results: Array<TheWorkOrderSyncResult>;
163945
+ updated: Scalars['Int']['output'];
163946
+ };
163947
+
162434
163948
  export type TheWorkOrderConnection = {
162435
163949
  __typename?: 'TheWorkOrderConnection';
162436
163950
  items: Array<TheWorkOrder>;
162437
163951
  pageInfo: ThePageInfo;
162438
163952
  };
162439
163953
 
163954
+ /** Assignment of a work order to an external crew or contractor. */
163955
+ export type TheWorkOrderExternalAssignment = {
163956
+ __typename?: 'TheWorkOrderExternalAssignment';
163957
+ /** Crew members holding the required skill when the work was assigned. */
163958
+ certifiedMemberCount?: Maybe<Scalars['Int']['output']>;
163959
+ createdAt: Scalars['DateTime']['output'];
163960
+ credentialExpiresAt?: Maybe<Scalars['DateTime']['output']>;
163961
+ /** The ProServiceWorld credential the contractor was checked against. */
163962
+ credentialId?: Maybe<Scalars['ID']['output']>;
163963
+ displayName: Scalars['String']['output'];
163964
+ /** CrewFoundry crew id or ProServiceWorld practitioner id. */
163965
+ externalId: Scalars['ID']['output'];
163966
+ id: Scalars['ID']['output'];
163967
+ kind: TheExternalAssigneeKind;
163968
+ /** CREWFOUNDRY or PROSERVICEWORLD. */
163969
+ provider: Scalars['String']['output'];
163970
+ /** The CrewFoundry skill (certification) the crew was checked against. */
163971
+ requiredSkillId?: Maybe<Scalars['ID']['output']>;
163972
+ requiredSkillName?: Maybe<Scalars['String']['output']>;
163973
+ updatedAt: Scalars['DateTime']['output'];
163974
+ workOrderId: Scalars['ID']['output'];
163975
+ };
163976
+
163977
+ /** Link from a TheGlobalFuel work order to its AssetHandler mirror, with the bookkeeping of the last sync. */
163978
+ export type TheWorkOrderExternalLink = {
163979
+ __typename?: 'TheWorkOrderExternalLink';
163980
+ createdAt: Scalars['DateTime']['output'];
163981
+ /** The AssetHandler work order downtime in hours as last seen. */
163982
+ externalDowntimeHours?: Maybe<Scalars['Float']['output']>;
163983
+ /** The AssetHandler work order status as last seen. */
163984
+ externalStatus?: Maybe<Scalars['String']['output']>;
163985
+ /** Null while the mirror is pending (its creation failed and will be retried). */
163986
+ externalWorkOrderId?: Maybe<Scalars['ID']['output']>;
163987
+ id: Scalars['ID']['output'];
163988
+ lastPulledAt?: Maybe<Scalars['DateTime']['output']>;
163989
+ lastPushedAt?: Maybe<Scalars['DateTime']['output']>;
163990
+ lastSyncError?: Maybe<Scalars['String']['output']>;
163991
+ lastSyncOutcome?: Maybe<TheWorkOrderSyncOutcome>;
163992
+ provider: Scalars['String']['output'];
163993
+ updatedAt: Scalars['DateTime']['output'];
163994
+ workOrderId: Scalars['ID']['output'];
163995
+ };
163996
+
162440
163997
  export enum TheWorkOrderStatus {
162441
163998
  CANCELLED = 'CANCELLED',
162442
163999
  CLOSED = 'CLOSED',
@@ -162452,6 +164009,33 @@ export type TheWorkOrderStatusCount = {
162452
164009
  status: TheWorkOrderStatus;
162453
164010
  };
162454
164011
 
164012
+ /** Outcome of reconciling a work order with its AssetHandler mirror. */
164013
+ export enum TheWorkOrderSyncOutcome {
164014
+ /** The two sides diverged; nothing was overwritten. */
164015
+ CONFLICT = 'CONFLICT',
164016
+ /** The AssetHandler mirror was created. */
164017
+ CREATED = 'CREATED',
164018
+ /** Both sides already agree. */
164019
+ IN_SYNC = 'IN_SYNC',
164020
+ /** AssetHandler refused the change (permissions, validation or a missing record). */
164021
+ REJECTED = 'REJECTED',
164022
+ /** AssetHandler could not be reached. */
164023
+ UNREACHABLE = 'UNREACHABLE',
164024
+ /** One side was brought up to date with the other. */
164025
+ UPDATED = 'UPDATED'
164026
+ }
164027
+
164028
+ export type TheWorkOrderSyncResult = {
164029
+ __typename?: 'TheWorkOrderSyncResult';
164030
+ /** TheGlobalFuel statuses applied from AssetHandler, in order. */
164031
+ appliedStatuses: Array<TheWorkOrderStatus>;
164032
+ link?: Maybe<TheWorkOrderExternalLink>;
164033
+ message?: Maybe<Scalars['String']['output']>;
164034
+ outcome: TheWorkOrderSyncOutcome;
164035
+ workOrder?: Maybe<TheWorkOrder>;
164036
+ workOrderId: Scalars['ID']['output'];
164037
+ };
164038
+
162455
164039
  /** Optional details captured with a lifecycle transition. Scheduling fields apply to SCHEDULED; completion fields apply to COMPLETED. */
162456
164040
  export type TheWorkOrderTransitionInput = {
162457
164041
  completionNotes?: InputMaybe<Scalars['String']['input']>;
@@ -162654,6 +164238,11 @@ export type TimeCampusAppletReviewItem = {
162654
164238
  version: TimeCampusThirdPartyAppletVersion;
162655
164239
  };
162656
164240
 
164241
+ export enum TimeCampusAppletSource {
164242
+ MARKETPLACE = 'MARKETPLACE',
164243
+ WORKSPACE = 'WORKSPACE'
164244
+ }
164245
+
162657
164246
  export enum TimeCampusAppletVersionStatus {
162658
164247
  DRAFT = 'DRAFT',
162659
164248
  IN_REVIEW = 'IN_REVIEW',
@@ -163677,6 +165266,73 @@ export type TimeCampusLoadWeek = {
163677
165266
  weekStart: Scalars['String']['output'];
163678
165267
  };
163679
165268
 
165269
+ /** An applet's listing in the public TimeCampus marketplace. */
165270
+ export type TimeCampusMarketplaceListing = {
165271
+ __typename?: 'TimeCampusMarketplaceListing';
165272
+ category: TimeCampusAppletCategory;
165273
+ createdAt: Scalars['DateTime']['output'];
165274
+ description: Scalars['String']['output'];
165275
+ developerId: Scalars['ID']['output'];
165276
+ developerName?: Maybe<Scalars['String']['output']>;
165277
+ icon: Scalars['String']['output'];
165278
+ id: Scalars['ID']['output'];
165279
+ key: Scalars['String']['output'];
165280
+ latestSubmission: TimeCampusMarketplaceSubmission;
165281
+ /** The certified submission workspaces install, if any. */
165282
+ liveSubmission?: Maybe<TimeCampusMarketplaceSubmission>;
165283
+ name: Scalars['String']['output'];
165284
+ sourceAppletId: Scalars['ID']['output'];
165285
+ /** Workspace the applet was registered in. */
165286
+ sourceWorkspaceId: Scalars['ID']['output'];
165287
+ status: TimeCampusMarketplaceListingStatus;
165288
+ /** Every submission, newest first. */
165289
+ submissions: Array<TimeCampusMarketplaceSubmission>;
165290
+ suspendedAt?: Maybe<Scalars['DateTime']['output']>;
165291
+ suspendedReason?: Maybe<Scalars['String']['output']>;
165292
+ };
165293
+
165294
+ export enum TimeCampusMarketplaceListingStatus {
165295
+ IN_REVIEW = 'IN_REVIEW',
165296
+ PUBLISHED = 'PUBLISHED',
165297
+ REJECTED = 'REJECTED',
165298
+ SUSPENDED = 'SUSPENDED',
165299
+ WITHDRAWN = 'WITHDRAWN'
165300
+ }
165301
+
165302
+ export type TimeCampusMarketplaceReviewItem = {
165303
+ __typename?: 'TimeCampusMarketplaceReviewItem';
165304
+ listing: TimeCampusMarketplaceListing;
165305
+ submission: TimeCampusMarketplaceSubmission;
165306
+ };
165307
+
165308
+ /** One version of an applet submitted for platform certification. */
165309
+ export type TimeCampusMarketplaceSubmission = {
165310
+ __typename?: 'TimeCampusMarketplaceSubmission';
165311
+ certifiedAt?: Maybe<Scalars['DateTime']['output']>;
165312
+ id: Scalars['ID']['output'];
165313
+ listingId: Scalars['ID']['output'];
165314
+ /** The manifest as it was when submitted. */
165315
+ manifest: Scalars['JSON']['output'];
165316
+ requestedScopes: Array<Scalars['String']['output']>;
165317
+ /** Platform reviewer notes; always set on a rejection. */
165318
+ reviewNotes?: Maybe<Scalars['String']['output']>;
165319
+ reviewedAt?: Maybe<Scalars['DateTime']['output']>;
165320
+ reviewedBy?: Maybe<Scalars['ID']['output']>;
165321
+ status: TimeCampusMarketplaceSubmissionStatus;
165322
+ submittedAt: Scalars['DateTime']['output'];
165323
+ submittedBy: Scalars['ID']['output'];
165324
+ version: Scalars['String']['output'];
165325
+ };
165326
+
165327
+ export enum TimeCampusMarketplaceSubmissionStatus {
165328
+ CERTIFIED = 'CERTIFIED',
165329
+ IN_REVIEW = 'IN_REVIEW',
165330
+ REJECTED = 'REJECTED',
165331
+ /** A later submission was certified. */
165332
+ SUPERSEDED = 'SUPERSEDED',
165333
+ WITHDRAWN = 'WITHDRAWN'
165334
+ }
165335
+
163680
165336
  export enum TimeCampusOwnershipContext {
163681
165337
  CORPORATE = 'CORPORATE',
163682
165338
  PERSONAL = 'PERSONAL'
@@ -163860,6 +165516,8 @@ export type TimeCampusStoreApplet = {
163860
165516
  key: Scalars['String']['output'];
163861
165517
  name: Scalars['String']['output'];
163862
165518
  requestedScopes: Array<Scalars['String']['output']>;
165519
+ /** WORKSPACE for an applet registered in this workspace, MARKETPLACE for a certified public one (id is then the marketplace listing id). */
165520
+ source: TimeCampusAppletSource;
163863
165521
  /** Scopes the live version asks for that this workspace has not granted (re-consent to add them). */
163864
165522
  ungrantedScopes: Array<Scalars['String']['output']>;
163865
165523
  version: Scalars['String']['output'];
@@ -163935,6 +165593,8 @@ export type TimeCampusThirdPartyApplet = {
163935
165593
  latestVersion: TimeCampusThirdPartyAppletVersion;
163936
165594
  /** The version that is live (published or suspended), if any. */
163937
165595
  liveVersion?: Maybe<TimeCampusThirdPartyAppletVersion>;
165596
+ /** The applet's public marketplace listing, if it was ever offered. */
165597
+ marketplace?: Maybe<TimeCampusMarketplaceListing>;
163938
165598
  name: Scalars['String']['output'];
163939
165599
  status: TimeCampusAppletListingStatus;
163940
165600
  /** Every version, newest first. */
@@ -164255,6 +165915,8 @@ export type TimeCampusWidgetFrame = {
164255
165915
  height: Scalars['Int']['output'];
164256
165916
  /** Origin of url; the host only frames this origin. */
164257
165917
  origin: Scalars['String']['output'];
165918
+ /** Registry the applet key belongs to; pass it to timeCampusAppletBridgeData. */
165919
+ source: TimeCampusAppletSource;
164258
165920
  /** Absolute HTTPS URL of the widget page. */
164259
165921
  url: Scalars['String']['output'];
164260
165922
  widgetKey: Scalars['String']['output'];