@burdenoff/microfe-movethewheels 2026.1108.2 → 2026.1108.3

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.
@@ -61994,6 +61994,56 @@ export declare enum MtwDistanceUnit {
61994
61994
  /** Miles */
61995
61995
  MI = "MI"
61996
61996
  }
61997
+ /**
61998
+ * A single extraction run over one platform File. `acceptedFields` is exactly
61999
+ * what a human accepted, `appliedActions` records what those accepts did —
62000
+ * the audit trail for a dispute is which file was read and which fields a
62001
+ * human accepted.
62002
+ */
62003
+ export type MtwDocumentExtraction = {
62004
+ __typename?: 'MtwDocumentExtraction';
62005
+ acceptedFields: Array<Scalars['String']['output']>;
62006
+ appliedAt?: Maybe<Scalars['DateTime']['output']>;
62007
+ appliedBy?: Maybe<Scalars['String']['output']>;
62008
+ costMicroUsd?: Maybe<Scalars['String']['output']>;
62009
+ createdAt: Scalars['DateTime']['output'];
62010
+ createdBy: Scalars['String']['output'];
62011
+ docType: MtwDocumentType;
62012
+ fields: Array<MtwExtractionField>;
62013
+ fileId: Scalars['ID']['output'];
62014
+ id: Scalars['ID']['output'];
62015
+ model: Scalars['String']['output'];
62016
+ shipmentId?: Maybe<Scalars['ID']['output']>;
62017
+ status: MtwDocumentExtractionStatus;
62018
+ workspaceId: Scalars['ID']['output'];
62019
+ };
62020
+ export declare enum MtwDocumentExtractionStatus {
62021
+ APPLIED = "APPLIED",
62022
+ PARTIALLY_APPLIED = "PARTIALLY_APPLIED",
62023
+ PROPOSED = "PROPOSED"
62024
+ }
62025
+ /**
62026
+ * Freight document intelligence (BOFF-3892).
62027
+ *
62028
+ * A vision model reads a freight document (BOL / POD / carrier invoice / packing
62029
+ * list) attached to a MoveTheWheels entity as a platform File and PROPOSES typed
62030
+ * fields with per-field confidence. The extraction writes nothing to the
62031
+ * operations spine by itself: a human reviews the proposed fields and accepts
62032
+ * them per-field through mtwApplyDocumentExtraction, and only the accepted,
62033
+ * mapped fields perform writes — a POD acceptance advances its shipment through
62034
+ * the normal ShipmentService.addTrackingEvent path, a carrier-invoice
62035
+ * acceptance records a freight-invoice comparison (variance) against the pinned
62036
+ * estimate. The model call is metered and ledgered on the shared AI runtime
62037
+ * (BOFF-3601) and made with store:false; extracted values stay in this
62038
+ * workspace's tables with the same lifecycle as the source file and are never
62039
+ * surfaced as assistant pageContext.
62040
+ */
62041
+ export declare enum MtwDocumentType {
62042
+ BILL_OF_LADING = "BILL_OF_LADING",
62043
+ CARRIER_INVOICE = "CARRIER_INVOICE",
62044
+ PACKING_LIST = "PACKING_LIST",
62045
+ PROOF_OF_DELIVERY = "PROOF_OF_DELIVERY"
62046
+ }
61997
62047
  export type MtwDriver = {
61998
62048
  __typename?: 'MtwDriver';
61999
62049
  baseSalary?: Maybe<Scalars['Float']['output']>;
@@ -62182,6 +62232,19 @@ export type MtwExportJob = {
62182
62232
  status: Scalars['String']['output'];
62183
62233
  workspaceId: Scalars['ID']['output'];
62184
62234
  };
62235
+ export type MtwExtractionCorrectionInput = {
62236
+ key: Scalars['String']['input'];
62237
+ value: Scalars['String']['input'];
62238
+ };
62239
+ /** One extracted field: a bounded, normalized value with the model's confidence in it. */
62240
+ export type MtwExtractionField = {
62241
+ __typename?: 'MtwExtractionField';
62242
+ confidence: Scalars['Float']['output'];
62243
+ key: Scalars['String']['output'];
62244
+ label: Scalars['String']['output'];
62245
+ /** Normalized value (ISO dates, plain numbers, JSON text for line items); null when the document did not show it. */
62246
+ value?: Maybe<Scalars['String']['output']>;
62247
+ };
62185
62248
  export type MtwFinanceMetrics = {
62186
62249
  __typename?: 'MtwFinanceMetrics';
62187
62250
  fuelCost: Scalars['Float']['output'];
@@ -68721,6 +68784,8 @@ export type Mutation = {
68721
68784
  deleteWorkspace: Scalars['Boolean']['output'];
68722
68785
  /** Delete a workspace resource */
68723
68786
  deleteWorkspaceResource: Scalars['Boolean']['output'];
68787
+ /** Remove your applet from the marketplace; it leaves every workspace that installed it. */
68788
+ delistTimeCampusAppletFromMarketplace: Scalars['Boolean']['output'];
68724
68789
  /** Operator-only: denies an UNDER_REVIEW claim with a required reason. */
68725
68790
  denyGgnomadDamageClaim: GgnomadDamageClaim;
68726
68791
  /** 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`. */
@@ -69790,6 +69855,8 @@ export type Mutation = {
69790
69855
  installStorePluginOnAgent: AgentPluginActionResult;
69791
69856
  /** Install an applet for the whole workspace. Idempotent. */
69792
69857
  installTimeCampusApplet: TimeCampusApplet;
69858
+ /** Install a certified marketplace applet, granting a subset of the scopes it asks for. Installing again replaces the grant. */
69859
+ installTimeCampusMarketplaceApplet: TimeCampusStoreApplet;
69793
69860
  /** Install a published applet, granting a subset of the scopes it asks for. Installing again replaces the grant. */
69794
69861
  installTimeCampusThirdPartyApplet: TimeCampusStoreApplet;
69795
69862
  /** Install (enable) a registered widget type for a workspace, so it appears in that workspace's builder palette. */
@@ -70209,6 +70276,15 @@ export type Mutation = {
70209
70276
  * An empty list rejects the whole plan.
70210
70277
  */
70211
70278
  mtwApplyDispatchPlan: MtwDispatchPlan;
70279
+ /**
70280
+ * Accept extracted fields per-field. Accepts are cumulative and idempotent;
70281
+ * the writes each accepted field triggers happen once. POD accepts advance
70282
+ * the referenced shipment via ShipmentService.addTrackingEvent(DELIVERED);
70283
+ * invoice accepts record a freight-invoice comparison against the shipment's
70284
+ * pinned estimate. Fields with no write mapping are recorded as accepted
70285
+ * (audit) without a write.
70286
+ */
70287
+ mtwApplyDocumentExtraction: MtwDocumentExtraction;
70212
70288
  /** Register, verify or repair the workspace's scheduled-reports job. Idempotent. */
70213
70289
  mtwEnsureReportSchedule?: Maybe<MtwReportSchedule>;
70214
70290
  /**
@@ -70216,6 +70292,13 @@ export type Mutation = {
70216
70292
  * scheduler. Idempotent; leaves a job an operator paused alone.
70217
70293
  */
70218
70294
  mtwEnsureRiskSweepSchedule?: Maybe<MtwRiskSweepSchedule>;
70295
+ /**
70296
+ * Run the shared vision model over a platform File and store the proposed
70297
+ * fields. Reads the file bytes through wspace-files-svc (presigned URL),
70298
+ * gates on checkAiCreditsFor and charges + ledger-records the call on the
70299
+ * shared AI runtime. Writes nothing onto orders / shipments / invoices.
70300
+ */
70301
+ mtwExtractDocument: MtwDocumentExtraction;
70219
70302
  /**
70220
70303
  * Generate (or reuse) the AI narration for a shipment's current risk forecast
70221
70304
  * and return the forecast with it attached. With AI disabled, credits spent or
@@ -70986,6 +71069,8 @@ export type Mutation = {
70986
71069
  pswMarkInvoicePaid: PswInvoice;
70987
71070
  pswMarkTimeEntriesBilled: Array<PswTimeEntry>;
70988
71071
  pswPrepareObligationReminder: PswObligationReminder;
71072
+ /** 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. */
71073
+ pswRebuildSearchIndex: PswSearchIndexRebuildResult;
70989
71074
  /** 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. */
70990
71075
  pswReconcileTrustAccount: PswTrustReconciliationReport;
70991
71076
  pswRecordCredentialReview: PswCredentialReview;
@@ -71231,6 +71316,8 @@ export type Mutation = {
71231
71316
  registerWidgetType: BigConsoleWidgetTypeRegistration;
71232
71317
  /** 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. */
71233
71318
  reindexCrewSkillsGraph: CrewSkillsGraphReindexReport;
71319
+ /** Reinstate a suspended listing (super-admins only). */
71320
+ reinstateTimeCampusMarketplaceListing: TimeCampusMarketplaceListing;
71234
71321
  /** Reinstate a suspended applet. */
71235
71322
  reinstateTimeCampusThirdPartyApplet: TimeCampusThirdPartyApplet;
71236
71323
  /** Reject a pending request with a reason. Refused for your own request. */
@@ -71617,6 +71704,8 @@ export type Mutation = {
71617
71704
  /** BOFF-10614 — operator-only: verifies or rejects a PENDING payout profile. Operators cannot review their own partner profile. */
71618
71705
  reviewGgnomadAffiliatePayoutKyc: GgnomadAffiliatePayoutProfile;
71619
71706
  reviewHousingvistaRentalApplication: HousingVistaRentalApplication;
71707
+ /** Certify (APPROVE) or reject a submission (super-admins only). Rejecting needs notes. */
71708
+ reviewTimeCampusMarketplaceSubmission: TimeCampusMarketplaceListing;
71620
71709
  /** Publish (APPROVE) or reject a version in review. Rejecting needs notes. */
71621
71710
  reviewTimeCampusThirdPartyAppletVersion: TimeCampusThirdPartyApplet;
71622
71711
  reviewVaultSecurityEvent: VaultSecurityEvent;
@@ -72305,6 +72394,8 @@ export type Mutation = {
72305
72394
  submitHousingvistaOffer: HousingVistaOffer;
72306
72395
  submitHousingvistaRentalApplication: HousingVistaRentalApplication;
72307
72396
  submitMtwInspectorQualification: MtwInspectorQualification;
72397
+ /** Offer one of your applets to every workspace: its live, workspace-published version goes to platform certification. */
72398
+ submitTimeCampusAppletToMarketplace: TimeCampusMarketplaceListing;
72308
72399
  /** Submit a DRAFT version for review. */
72309
72400
  submitTimeCampusThirdPartyAppletVersion: TimeCampusThirdPartyApplet;
72310
72401
  /** Subscribe the current workspace to a product. Workspace ID is read from gateway context (x-workspace-id header). */
@@ -72316,6 +72407,8 @@ export type Mutation = {
72316
72407
  suggestNextNode: WorkflowProposal;
72317
72408
  /** 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. */
72318
72409
  suggestTimeCampusCaptureEventCategory: TimeCampusCategorySuggestion;
72410
+ /** Suspend a live listing in every workspace (super-admins only). */
72411
+ suspendTimeCampusMarketplaceListing: TimeCampusMarketplaceListing;
72319
72412
  /** Suspend a published applet; its widgets stop rendering. */
72320
72413
  suspendTimeCampusThirdPartyApplet: TimeCampusThirdPartyApplet;
72321
72414
  /** 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) */
@@ -72570,6 +72663,10 @@ export type Mutation = {
72570
72663
  theAddSupplierContact: TheSupplierContact;
72571
72664
  /** Approve (lock) a DRAFT allocation so it counts toward net positions. */
72572
72665
  theApproveProductionAllocation: TheProductionAllocation;
72666
+ /** Assign a work order to a ProServiceWorld contractor, optionally requiring an unexpired credential. */
72667
+ theAssignWorkOrderToContractor: TheWorkOrder;
72668
+ /** Assign a work order to a CrewFoundry crew, optionally requiring a certified member. */
72669
+ theAssignWorkOrderToCrew: TheWorkOrder;
72573
72670
  /** Assign (or clear) the contracted vendor performing a maintenance work order. */
72574
72671
  theAssignWorkOrderVendor: TheWorkOrder;
72575
72672
  /** Attribute (or, with null, detach) a finished work order's downtime to a production record of the same asset, after the fact. */
@@ -72578,11 +72675,14 @@ export type Mutation = {
72578
72675
  theBulkAllocateProduction: TheBulkAllocationResult;
72579
72676
  /** Cancel a holding registered in error. Refused once anything has been retired. */
72580
72677
  theCancelCarbonCredit: TheCarbonCredit;
72678
+ /** Remove a work order's external crew or contractor assignment. */
72679
+ theClearWorkOrderExternalAssignment: TheWorkOrder;
72581
72680
  /** Close a reporting period so its allocations cannot be created, approved or reversed until it is reopened. */
72582
72681
  theCloseAllocationPeriod: TheAllocationPeriodClose;
72583
72682
  /** Record a prior-period correction (signed volume deltas) against an APPROVED allocation (creates a DRAFT). */
72584
72683
  theCreateAllocationCorrection: TheProductionAllocation;
72585
72684
  theCreateAsset: TheAsset;
72685
+ theCreateChainNetwork: TheChainNetwork;
72586
72686
  theCreateComplianceCert: TheComplianceCert;
72587
72687
  theCreateContract: TheOfftakeContract;
72588
72688
  /** Assign net volume from an approved allocation entry to a sell contract. */
@@ -72594,15 +72694,21 @@ export type Mutation = {
72594
72694
  theCreateInterestDeck: TheInterestDeck;
72595
72695
  theCreateInventoryLot: TheInventoryLot;
72596
72696
  theCreateMaintenanceSchedule: TheMaintenanceSchedule;
72697
+ theCreatePriceIndex: ThePriceIndex;
72597
72698
  /** Allocate a measured production record across its contributing assets (creates a DRAFT). */
72598
72699
  theCreateProductionAllocation: TheProductionAllocation;
72599
72700
  theCreateReserveEstimate: TheReserveEstimate;
72600
72701
  theCreateServiceContract: TheServiceContract;
72601
72702
  theCreateSupplier: TheSupplier;
72602
72703
  theCreateWorkOrder: TheWorkOrder;
72704
+ theDeleteChainNetwork: Scalars['Boolean']['output'];
72603
72705
  theDeleteForecastScenario: Scalars['Boolean']['output'];
72706
+ theDeleteForecastSnapshot: Scalars['Boolean']['output'];
72604
72707
  /** Delete an interest deck that no live allocation uses. */
72605
72708
  theDeleteInterestDeck: TheInterestDeck;
72709
+ /** Deletes the index and its price points. */
72710
+ theDeletePriceIndex: Scalars['Boolean']['output'];
72711
+ theDeletePricePoint: Scalars['Boolean']['output'];
72606
72712
  /** Mark a shipment delivered and roll its volume into the contract's delivered total. */
72607
72713
  theDeliverShipment: TheShipment;
72608
72714
  /** Finalize a draft ESG disclosure (locks it as the reported-on-record snapshot). */
@@ -72611,15 +72717,21 @@ export type Mutation = {
72611
72717
  theGenerateEsgDisclosure: TheEsgDisclosure;
72612
72718
  /** Raise a PLANNED work order for every active schedule due within the horizon that does not already have an unfinished work order. Idempotent. */
72613
72719
  theGenerateScheduledWorkOrders: TheGenerateWorkOrdersResult;
72720
+ /** Link equipment to an AssetHandler asset, or unlink it with a null asset id. New work orders on linked equipment are mirrored to AssetHandler. */
72721
+ theLinkEquipmentToAssetHandler: TheEquipment;
72614
72722
  /** Link (or, with a null supplierId, unlink) an offtake contract's counterparty to the supplier register. */
72615
72723
  theLinkOfftakeContractSupplier: TheOfftakeContract;
72616
72724
  /** Link (or unlink) a shipment's carrier to the supplier register. */
72617
72725
  theLinkShipmentCarrier: TheShipment;
72618
72726
  /** Record how much of an inventory lot was loaded onto a shipment. */
72619
72727
  theLinkShipmentSource: TheShipmentSource;
72728
+ /** Run a saved scenario and freeze its per-asset daily forecast as a plan of record. */
72729
+ theLockForecastScenario: TheForecastSnapshot;
72620
72730
  theRecordEmission: TheEmissionRecord;
72621
72731
  /** 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. */
72622
72732
  theRecordLegalAcceptance: TheLegalAcceptance;
72733
+ /** 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. */
72734
+ theRecordPricePoints: ThePriceImportResult;
72623
72735
  theRecordProduction: TheProductionRecord;
72624
72736
  theRecordSupplierScorecard: TheSupplierScorecard;
72625
72737
  /** Register a carbon-credit holding (registry project, vintage and quantity). */
@@ -72641,10 +72753,15 @@ export type Mutation = {
72641
72753
  /** 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). */
72642
72754
  theSetAssetPhoto: TheAsset;
72643
72755
  theSetInventoryLotStatus: TheInventoryLot;
72756
+ theSetMaintenanceIntegrations: TheMaintenanceIntegrations;
72644
72757
  /** Change a supplier's qualification status. ON_HOLD and BLOCKED need a reason. Blocking or deactivating a supplier suspends its ACTIVE service contracts. */
72645
72758
  theSetSupplierStatus: TheSupplier;
72646
72759
  /** Set this workspace's conversion factor for a commodity and unit pair. */
72647
72760
  theSetUnitConversion: TheUnitConversion;
72761
+ /** 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. */
72762
+ theSyncAssetHandlerWorkOrders: TheWorkOrderBulkSyncResult;
72763
+ /** Reconcile one work order with its AssetHandler mirror (status, downtime, completion), creating the mirror if it is missing. */
72764
+ theSyncWorkOrderWithAssetHandler: TheWorkOrderSyncResult;
72648
72765
  /** Advance an asset through its lifecycle (validated transitions). */
72649
72766
  theTransitionAsset: TheAsset;
72650
72767
  /** Advance a compliance certification through its lifecycle (validated transitions). */
@@ -72664,11 +72781,14 @@ export type Mutation = {
72664
72781
  /** Remove a source lot from a shipment whose sources can still change. */
72665
72782
  theUnlinkShipmentSource: TheShipmentSource;
72666
72783
  theUpdateAsset: TheAsset;
72784
+ theUpdateChainNetwork: TheChainNetwork;
72667
72785
  theUpdateContract: TheOfftakeContract;
72668
72786
  theUpdateEquipment: TheEquipment;
72669
72787
  theUpdateForecastScenario: TheForecastScenario;
72788
+ theUpdateForecastSnapshot: TheForecastSnapshot;
72670
72789
  theUpdateIncidentInvestigation: TheSafetyIncident;
72671
72790
  theUpdateMaintenanceSchedule: TheMaintenanceSchedule;
72791
+ theUpdatePriceIndex: ThePriceIndex;
72672
72792
  theUpdateServiceContract: TheServiceContract;
72673
72793
  /** 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. */
72674
72794
  theUpdateShipment: TheShipment;
@@ -72771,6 +72891,8 @@ export type Mutation = {
72771
72891
  uninstallRemoteAgent: Scalars['Boolean']['output'];
72772
72892
  /** Uninstall an applet from the workspace. Idempotent; its widgets leave every layout. */
72773
72893
  uninstallTimeCampusApplet: TimeCampusApplet;
72894
+ /** Uninstall a marketplace applet. Idempotent; its widgets leave every layout. */
72895
+ uninstallTimeCampusMarketplaceApplet: TimeCampusStoreApplet;
72774
72896
  /** Uninstall a third-party applet. Idempotent; its widgets leave every layout. */
72775
72897
  uninstallTimeCampusThirdPartyApplet: TimeCampusStoreApplet;
72776
72898
  /** Uninstall (disable) a widget type for a workspace, removing it from the palette. */
@@ -73473,6 +73595,8 @@ export type Mutation = {
73473
73595
  withdrawConnectorSubmission: ConnectorSubmission;
73474
73596
  withdrawHousingvistaOffer: HousingVistaOffer;
73475
73597
  withdrawRequest: TimeApprovalRequest;
73598
+ /** Take your marketplace submission back out of certification. */
73599
+ withdrawTimeCampusAppletFromMarketplace: TimeCampusMarketplaceListing;
73476
73600
  /** Take a version back out of review, to DRAFT. */
73477
73601
  withdrawTimeCampusThirdPartyAppletVersion: TimeCampusThirdPartyApplet;
73478
73602
  /**
@@ -80916,6 +81040,10 @@ export type MutationDeleteWorkspaceResourceArgs = {
80916
81040
  id: Scalars['ID']['input'];
80917
81041
  };
80918
81042
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
81043
+ export type MutationDelistTimeCampusAppletFromMarketplaceArgs = {
81044
+ appletId: Scalars['ID']['input'];
81045
+ };
81046
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
80919
81047
  export type MutationDenyGgnomadDamageClaimArgs = {
80920
81048
  id: Scalars['ID']['input'];
80921
81049
  reason: Scalars['String']['input'];
@@ -83721,6 +83849,11 @@ export type MutationInstallTimeCampusAppletArgs = {
83721
83849
  key: Scalars['ID']['input'];
83722
83850
  };
83723
83851
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
83852
+ export type MutationInstallTimeCampusMarketplaceAppletArgs = {
83853
+ grantedScopes: Array<Scalars['String']['input']>;
83854
+ id: Scalars['ID']['input'];
83855
+ };
83856
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
83724
83857
  export type MutationInstallTimeCampusThirdPartyAppletArgs = {
83725
83858
  grantedScopes: Array<Scalars['String']['input']>;
83726
83859
  id: Scalars['ID']['input'];
@@ -84852,6 +84985,17 @@ export type MutationMtwApplyDispatchPlanArgs = {
84852
84985
  planId: Scalars['ID']['input'];
84853
84986
  };
84854
84987
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
84988
+ export type MutationMtwApplyDocumentExtractionArgs = {
84989
+ accept: Array<Scalars['String']['input']>;
84990
+ corrections?: InputMaybe<Array<MtwExtractionCorrectionInput>>;
84991
+ extractionId: Scalars['ID']['input'];
84992
+ };
84993
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
84994
+ export type MutationMtwExtractDocumentArgs = {
84995
+ docType: MtwDocumentType;
84996
+ fileId: Scalars['ID']['input'];
84997
+ };
84998
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
84855
84999
  export type MutationMtwNarrateShipmentRiskForecastArgs = {
84856
85000
  shipmentId: Scalars['ID']['input'];
84857
85001
  };
@@ -87360,6 +87504,10 @@ export type MutationRegisterWidgetTypeArgs = {
87360
87504
  input: BigConsoleRegisterWidgetTypeInput;
87361
87505
  };
87362
87506
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
87507
+ export type MutationReinstateTimeCampusMarketplaceListingArgs = {
87508
+ id: Scalars['ID']['input'];
87509
+ };
87510
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
87363
87511
  export type MutationReinstateTimeCampusThirdPartyAppletArgs = {
87364
87512
  id: Scalars['ID']['input'];
87365
87513
  };
@@ -88327,6 +88475,12 @@ export type MutationReviewHousingvistaRentalApplicationArgs = {
88327
88475
  input: HousingVistaReviewRentalApplicationInput;
88328
88476
  };
88329
88477
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88478
+ export type MutationReviewTimeCampusMarketplaceSubmissionArgs = {
88479
+ decision: TimeCampusAppletReviewDecision;
88480
+ notes?: InputMaybe<Scalars['String']['input']>;
88481
+ submissionId: Scalars['ID']['input'];
88482
+ };
88483
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88330
88484
  export type MutationReviewTimeCampusThirdPartyAppletVersionArgs = {
88331
88485
  decision: TimeCampusAppletReviewDecision;
88332
88486
  notes?: InputMaybe<Scalars['String']['input']>;
@@ -90016,6 +90170,10 @@ export type MutationSubmitMtwInspectorQualificationArgs = {
90016
90170
  input: SubmitMtwInspectorQualificationInput;
90017
90171
  };
90018
90172
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90173
+ export type MutationSubmitTimeCampusAppletToMarketplaceArgs = {
90174
+ appletId: Scalars['ID']['input'];
90175
+ };
90176
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90019
90177
  export type MutationSubmitTimeCampusThirdPartyAppletVersionArgs = {
90020
90178
  versionId: Scalars['ID']['input'];
90021
90179
  };
@@ -90032,6 +90190,11 @@ export type MutationSuggestTimeCampusCaptureEventCategoryArgs = {
90032
90190
  id: Scalars['ID']['input'];
90033
90191
  };
90034
90192
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90193
+ export type MutationSuspendTimeCampusMarketplaceListingArgs = {
90194
+ id: Scalars['ID']['input'];
90195
+ reason: Scalars['String']['input'];
90196
+ };
90197
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90035
90198
  export type MutationSuspendTimeCampusThirdPartyAppletArgs = {
90036
90199
  id: Scalars['ID']['input'];
90037
90200
  reason: Scalars['String']['input'];
@@ -90636,6 +90799,16 @@ export type MutationTheApproveProductionAllocationArgs = {
90636
90799
  id: Scalars['ID']['input'];
90637
90800
  };
90638
90801
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90802
+ export type MutationTheAssignWorkOrderToContractorArgs = {
90803
+ id: Scalars['ID']['input'];
90804
+ input: TheAssignWorkOrderContractorInput;
90805
+ };
90806
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90807
+ export type MutationTheAssignWorkOrderToCrewArgs = {
90808
+ id: Scalars['ID']['input'];
90809
+ input: TheAssignWorkOrderCrewInput;
90810
+ };
90811
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90639
90812
  export type MutationTheAssignWorkOrderVendorArgs = {
90640
90813
  supplierId?: InputMaybe<Scalars['ID']['input']>;
90641
90814
  workOrderId: Scalars['ID']['input'];
@@ -90655,6 +90828,10 @@ export type MutationTheCancelCarbonCreditArgs = {
90655
90828
  id: Scalars['ID']['input'];
90656
90829
  };
90657
90830
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90831
+ export type MutationTheClearWorkOrderExternalAssignmentArgs = {
90832
+ id: Scalars['ID']['input'];
90833
+ };
90834
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90658
90835
  export type MutationTheCloseAllocationPeriodArgs = {
90659
90836
  input: TheCloseAllocationPeriodInput;
90660
90837
  };
@@ -90667,6 +90844,10 @@ export type MutationTheCreateAssetArgs = {
90667
90844
  input: TheCreateAssetInput;
90668
90845
  };
90669
90846
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90847
+ export type MutationTheCreateChainNetworkArgs = {
90848
+ input: TheChainNetworkInput;
90849
+ };
90850
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90670
90851
  export type MutationTheCreateComplianceCertArgs = {
90671
90852
  input: TheCreateComplianceCertInput;
90672
90853
  };
@@ -90703,6 +90884,10 @@ export type MutationTheCreateMaintenanceScheduleArgs = {
90703
90884
  input: TheCreateMaintenanceScheduleInput;
90704
90885
  };
90705
90886
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90887
+ export type MutationTheCreatePriceIndexArgs = {
90888
+ input: ThePriceIndexInput;
90889
+ };
90890
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90706
90891
  export type MutationTheCreateProductionAllocationArgs = {
90707
90892
  input: TheCreateProductionAllocationInput;
90708
90893
  };
@@ -90723,14 +90908,30 @@ export type MutationTheCreateWorkOrderArgs = {
90723
90908
  input: TheCreateWorkOrderInput;
90724
90909
  };
90725
90910
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90911
+ export type MutationTheDeleteChainNetworkArgs = {
90912
+ id: Scalars['ID']['input'];
90913
+ };
90914
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90726
90915
  export type MutationTheDeleteForecastScenarioArgs = {
90727
90916
  id: Scalars['ID']['input'];
90728
90917
  };
90729
90918
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90919
+ export type MutationTheDeleteForecastSnapshotArgs = {
90920
+ id: Scalars['ID']['input'];
90921
+ };
90922
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90730
90923
  export type MutationTheDeleteInterestDeckArgs = {
90731
90924
  id: Scalars['ID']['input'];
90732
90925
  };
90733
90926
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90927
+ export type MutationTheDeletePriceIndexArgs = {
90928
+ id: Scalars['ID']['input'];
90929
+ };
90930
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90931
+ export type MutationTheDeletePricePointArgs = {
90932
+ id: Scalars['ID']['input'];
90933
+ };
90934
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90734
90935
  export type MutationTheDeliverShipmentArgs = {
90735
90936
  id: Scalars['ID']['input'];
90736
90937
  };
@@ -90747,6 +90948,11 @@ export type MutationTheGenerateScheduledWorkOrdersArgs = {
90747
90948
  horizonDays?: InputMaybe<Scalars['Int']['input']>;
90748
90949
  };
90749
90950
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90951
+ export type MutationTheLinkEquipmentToAssetHandlerArgs = {
90952
+ assetHandlerAssetId?: InputMaybe<Scalars['ID']['input']>;
90953
+ equipmentId: Scalars['ID']['input'];
90954
+ };
90955
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90750
90956
  export type MutationTheLinkOfftakeContractSupplierArgs = {
90751
90957
  contractId: Scalars['ID']['input'];
90752
90958
  supplierId?: InputMaybe<Scalars['ID']['input']>;
@@ -90761,6 +90967,11 @@ export type MutationTheLinkShipmentSourceArgs = {
90761
90967
  input: TheLinkShipmentSourceInput;
90762
90968
  };
90763
90969
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90970
+ export type MutationTheLockForecastScenarioArgs = {
90971
+ id: Scalars['ID']['input'];
90972
+ input?: InputMaybe<TheLockForecastScenarioInput>;
90973
+ };
90974
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90764
90975
  export type MutationTheRecordEmissionArgs = {
90765
90976
  input: TheRecordEmissionInput;
90766
90977
  };
@@ -90770,6 +90981,12 @@ export type MutationTheRecordLegalAcceptanceArgs = {
90770
90981
  documentVersion: Scalars['String']['input'];
90771
90982
  };
90772
90983
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90984
+ export type MutationTheRecordPricePointsArgs = {
90985
+ indexId: Scalars['ID']['input'];
90986
+ points: Array<ThePricePointInput>;
90987
+ source?: InputMaybe<Scalars['String']['input']>;
90988
+ };
90989
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90773
90990
  export type MutationTheRecordProductionArgs = {
90774
90991
  input: TheRecordProductionInput;
90775
90992
  };
@@ -90830,6 +91047,10 @@ export type MutationTheSetInventoryLotStatusArgs = {
90830
91047
  status: TheInventoryStatus;
90831
91048
  };
90832
91049
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
91050
+ export type MutationTheSetMaintenanceIntegrationsArgs = {
91051
+ input: TheSetMaintenanceIntegrationsInput;
91052
+ };
91053
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90833
91054
  export type MutationTheSetSupplierStatusArgs = {
90834
91055
  id: Scalars['ID']['input'];
90835
91056
  reason?: InputMaybe<Scalars['String']['input']>;
@@ -90840,6 +91061,14 @@ export type MutationTheSetUnitConversionArgs = {
90840
91061
  input: TheSetUnitConversionInput;
90841
91062
  };
90842
91063
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
91064
+ export type MutationTheSyncAssetHandlerWorkOrdersArgs = {
91065
+ limit?: InputMaybe<Scalars['Int']['input']>;
91066
+ };
91067
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
91068
+ export type MutationTheSyncWorkOrderWithAssetHandlerArgs = {
91069
+ id: Scalars['ID']['input'];
91070
+ };
91071
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90843
91072
  export type MutationTheTransitionAssetArgs = {
90844
91073
  id: Scalars['ID']['input'];
90845
91074
  status: TheAssetStatus;
@@ -90891,6 +91120,11 @@ export type MutationTheUpdateAssetArgs = {
90891
91120
  input: TheUpdateAssetInput;
90892
91121
  };
90893
91122
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
91123
+ export type MutationTheUpdateChainNetworkArgs = {
91124
+ id: Scalars['ID']['input'];
91125
+ input: TheUpdateChainNetworkInput;
91126
+ };
91127
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90894
91128
  export type MutationTheUpdateContractArgs = {
90895
91129
  id: Scalars['ID']['input'];
90896
91130
  input: TheUpdateOfftakeContractInput;
@@ -90906,6 +91140,11 @@ export type MutationTheUpdateForecastScenarioArgs = {
90906
91140
  input: TheUpdateForecastScenarioInput;
90907
91141
  };
90908
91142
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
91143
+ export type MutationTheUpdateForecastSnapshotArgs = {
91144
+ id: Scalars['ID']['input'];
91145
+ input: TheUpdateForecastSnapshotInput;
91146
+ };
91147
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90909
91148
  export type MutationTheUpdateIncidentInvestigationArgs = {
90910
91149
  id: Scalars['ID']['input'];
90911
91150
  investigationNotes: Scalars['String']['input'];
@@ -90916,6 +91155,11 @@ export type MutationTheUpdateMaintenanceScheduleArgs = {
90916
91155
  input: TheUpdateMaintenanceScheduleInput;
90917
91156
  };
90918
91157
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
91158
+ export type MutationTheUpdatePriceIndexArgs = {
91159
+ id: Scalars['ID']['input'];
91160
+ input: ThePriceIndexInput;
91161
+ };
91162
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
90919
91163
  export type MutationTheUpdateServiceContractArgs = {
90920
91164
  id: Scalars['ID']['input'];
90921
91165
  input: TheUpdateServiceContractInput;
@@ -91154,6 +91398,10 @@ export type MutationUninstallTimeCampusAppletArgs = {
91154
91398
  key: Scalars['ID']['input'];
91155
91399
  };
91156
91400
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
91401
+ export type MutationUninstallTimeCampusMarketplaceAppletArgs = {
91402
+ id: Scalars['ID']['input'];
91403
+ };
91404
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
91157
91405
  export type MutationUninstallTimeCampusThirdPartyAppletArgs = {
91158
91406
  id: Scalars['ID']['input'];
91159
91407
  };
@@ -93491,6 +93739,10 @@ export type MutationWithdrawRequestArgs = {
93491
93739
  id: Scalars['ID']['input'];
93492
93740
  };
93493
93741
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
93742
+ export type MutationWithdrawTimeCampusAppletFromMarketplaceArgs = {
93743
+ appletId: Scalars['ID']['input'];
93744
+ };
93745
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
93494
93746
  export type MutationWithdrawTimeCampusThirdPartyAppletVersionArgs = {
93495
93747
  versionId: Scalars['ID']['input'];
93496
93748
  };
@@ -103694,6 +103946,7 @@ export declare enum PswCredentialWriteOperation {
103694
103946
  UPDATE_CREDENTIAL = "UPDATE_CREDENTIAL",
103695
103947
  UPDATE_OBLIGATION = "UPDATE_OBLIGATION"
103696
103948
  }
103949
+ /** 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. */
103697
103950
  export type PswDashboardStats = {
103698
103951
  __typename?: 'PswDashboardStats';
103699
103952
  activeClients: Scalars['Int']['output'];
@@ -103702,6 +103955,8 @@ export type PswDashboardStats = {
103702
103955
  agedReceivables: PswAgedReceivables;
103703
103956
  billedHours: Scalars['Float']['output'];
103704
103957
  billedValue: Scalars['Float']['output'];
103958
+ /** ISO 4217 currency code (upper-case) of every monetary figure in this result. */
103959
+ currency: Scalars['String']['output'];
103705
103960
  engagementsByStatus: Array<PswStatusCount>;
103706
103961
  invoicesByStatus: Array<PswStatusCount>;
103707
103962
  mattersByStatus: Array<PswStatusCount>;
@@ -103713,7 +103968,7 @@ export type PswDashboardStats = {
103713
103968
  realizationPct: Scalars['Float']['output'];
103714
103969
  revenueByMonth: Array<PswMonthlyAmount>;
103715
103970
  totalClients: Scalars['Int']['output'];
103716
- /** 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. */
103971
+ /** 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. */
103717
103972
  trustHeldTotal: Scalars['Float']['output'];
103718
103973
  unbilledHours: Scalars['Float']['output'];
103719
103974
  workedValue: Scalars['Float']['output'];
@@ -103960,6 +104215,16 @@ export declare enum PswFeeArrangement {
103960
104215
  RETAINER = "RETAINER",
103961
104216
  VALUE_BASED = "VALUE_BASED"
103962
104217
  }
104218
+ export type PswFindPrecedentsInput = {
104219
+ clientId?: InputMaybe<Scalars['ID']['input']>;
104220
+ entityTypes?: InputMaybe<Array<PswPrecedentEntityType>>;
104221
+ /** Matter id to derive the query from ("have we done a matter like this before?"). The referenced matter itself is excluded from results. */
104222
+ matterId?: InputMaybe<Scalars['ID']['input']>;
104223
+ practiceAreaId?: InputMaybe<Scalars['ID']['input']>;
104224
+ /** 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. */
104225
+ query?: InputMaybe<Scalars['String']['input']>;
104226
+ status?: InputMaybe<Scalars['String']['input']>;
104227
+ };
103963
104228
  export type PswInviteClientPortalUserInput = {
103964
104229
  /** 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). */
103965
104230
  actorId: Scalars['ID']['input'];
@@ -104247,6 +104512,33 @@ export type PswPractitionerPage = {
104247
104512
  items: Array<PswPractitioner>;
104248
104513
  totalCount: Scalars['Int']['output'];
104249
104514
  };
104515
+ export declare enum PswPrecedentEntityType {
104516
+ DELIVERABLE = "DELIVERABLE",
104517
+ DOCUMENT = "DOCUMENT",
104518
+ ENGAGEMENT = "ENGAGEMENT",
104519
+ MATTER = "MATTER"
104520
+ }
104521
+ /** 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. */
104522
+ export type PswPrecedentMatch = {
104523
+ __typename?: 'PswPrecedentMatch';
104524
+ clientId?: Maybe<Scalars['ID']['output']>;
104525
+ engagementId?: Maybe<Scalars['ID']['output']>;
104526
+ isPrivileged: Scalars['Boolean']['output'];
104527
+ matchedFields: Array<Scalars['String']['output']>;
104528
+ matterId?: Maybe<Scalars['ID']['output']>;
104529
+ score: Scalars['Float']['output'];
104530
+ snippet: Scalars['String']['output'];
104531
+ sourceId: Scalars['ID']['output'];
104532
+ sourceType: PswPrecedentEntityType;
104533
+ title: Scalars['String']['output'];
104534
+ updatedAt: Scalars['DateTime']['output'];
104535
+ };
104536
+ export type PswPrecedentSearchConnection = {
104537
+ __typename?: 'PswPrecedentSearchConnection';
104538
+ items: Array<PswPrecedentMatch>;
104539
+ pageInfo: PswPageInfo;
104540
+ totalCount: Scalars['Int']['output'];
104541
+ };
104250
104542
  export type PswPrepareObligationReminderInput = {
104251
104543
  consent: Scalars['Boolean']['input'];
104252
104544
  expectedRevision: Scalars['Int']['input'];
@@ -104342,6 +104634,13 @@ export type PswReviewEducationCreditInput = {
104342
104634
  note: Scalars['String']['input'];
104343
104635
  requestKey: Scalars['String']['input'];
104344
104636
  };
104637
+ export type PswSearchIndexRebuildResult = {
104638
+ __typename?: 'PswSearchIndexRebuildResult';
104639
+ deliverables: Scalars['Int']['output'];
104640
+ documents: Scalars['Int']['output'];
104641
+ engagements: Scalars['Int']['output'];
104642
+ matters: Scalars['Int']['output'];
104643
+ };
104345
104644
  export type PswSignDocumentInput = {
104346
104645
  /** Required when signatureType = DRAWN — an inline image data URI (e.g. PNG exported from a `<canvas>` pad). */
104347
104646
  signatureImage?: InputMaybe<Scalars['String']['input']>;
@@ -108234,6 +108533,10 @@ export type Query = {
108234
108533
  mtwCustomerNotifications: MtwCustomerNotificationPage;
108235
108534
  mtwDispatchPlan?: Maybe<MtwDispatchPlan>;
108236
108535
  mtwDispatchPlans: Array<MtwDispatchPlan>;
108536
+ /** One extraction, by id. */
108537
+ mtwDocumentExtraction?: Maybe<MtwDocumentExtraction>;
108538
+ /** Every extraction (newest first) that ran against this platform File. */
108539
+ mtwDocumentExtractions: Array<MtwDocumentExtraction>;
108237
108540
  /** Exact immutable instruction, including a proposal's historical owner; not a current-eligibility claim. */
108238
108541
  mtwEmptyReturnInstruction: MtwEmptyReturnInstruction;
108239
108542
  mtwEmptyReturnInstructionPage: MtwEmptyReturnInstructionPage;
@@ -108901,12 +109204,14 @@ export type Query = {
108901
109204
  pswCredentialRecordedReadiness: PswCredentialRecordedReadiness;
108902
109205
  pswCredentialRequestOutcome: PswCredentialRequestOutcome;
108903
109206
  pswCredentialReviews: PswCredentialReviewPage;
108904
- /** Aggregate practice metrics for the current workspace (real counts). */
109207
+ /** 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. */
108905
109208
  pswDashboardStats: PswDashboardStats;
108906
109209
  pswDocument?: Maybe<PswDocument>;
108907
109210
  pswEducationCredit?: Maybe<PswEducationCredit>;
108908
109211
  pswEducationCredits: PswEducationCreditPage;
108909
109212
  pswEngagement?: Maybe<PswEngagement>;
109213
+ /** 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. */
109214
+ pswFindPrecedents: PswPrecedentSearchConnection;
108910
109215
  /** Liveness/identity probe for the ProServiceWorld subgraph. */
108911
109216
  pswHealth: Scalars['String']['output'];
108912
109217
  pswInvoice?: Maybe<PswInvoice>;
@@ -109528,6 +109833,7 @@ export type Query = {
109528
109833
  theCarbonCredit?: Maybe<TheCarbonCredit>;
109529
109834
  /** Net the period's emissions against the carbon credits retired for it. */
109530
109835
  theCarbonOffsetPosition: TheCarbonOffsetPosition;
109836
+ theChainNetwork?: Maybe<TheChainNetwork>;
109531
109837
  /** Run up to four saved scenarios side by side. */
109532
109838
  theCompareForecastScenarios: Array<TheScenarioResult>;
109533
109839
  theComplianceCert?: Maybe<TheComplianceCert>;
@@ -109538,9 +109844,14 @@ export type Query = {
109538
109844
  theDemandForecast: TheDemandForecast;
109539
109845
  theEquipment?: Maybe<TheEquipment>;
109540
109846
  theEsgDisclosure?: Maybe<TheEsgDisclosure>;
109847
+ /** 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. */
109848
+ theExplainProvenance: TheProvenanceExplanation;
109541
109849
  /** Audit-ready CSV export of a disclosure with record-level lineage. */
109542
109850
  theExportEsgDisclosure: TheEsgDisclosureExport;
109851
+ /** Compare a locked forecast with the production reported since; optionally for one asset. */
109852
+ theForecastAccuracy: TheForecastAccuracy;
109543
109853
  theForecastScenario?: Maybe<TheForecastScenario>;
109854
+ theForecastSnapshot?: Maybe<TheForecastSnapshot>;
109544
109855
  /** Liveness/identity probe for the Theglobalfuel subgraph. */
109545
109856
  theHealth: Scalars['String']['output'];
109546
109857
  theInterestDeck?: Maybe<TheInterestDeck>;
@@ -109548,9 +109859,12 @@ export type Query = {
109548
109859
  theInterestDeckInForce?: Maybe<TheInterestDeck>;
109549
109860
  /** Period closes, newest period first. Includes REOPENED rows: this is the close / reopen audit trail. */
109550
109861
  theListAllocationPeriodCloses: TheAllocationPeriodCloseConnection;
109862
+ /** Browse AssetHandler assets to link equipment to (AssetHandler must be enabled). */
109863
+ theListAssetHandlerAssets: TheAssetHandlerAssetPage;
109551
109864
  theListAssets: TheAssetConnection;
109552
109865
  theListCarbonCredits: TheCarbonCreditConnection;
109553
109866
  theListCarbonRetirements: TheCarbonRetirementConnection;
109867
+ theListChainNetworks: TheChainNetworkConnection;
109554
109868
  theListComplianceCerts: TheComplianceCertConnection;
109555
109869
  /** Active entitlements (their allocation is APPROVED), newest period first. */
109556
109870
  theListContractEntitlements: TheContractEntitlementConnection;
@@ -109560,9 +109874,12 @@ export type Query = {
109560
109874
  theListEquipment: TheEquipmentConnection;
109561
109875
  theListEsgDisclosures: TheEsgDisclosureConnection;
109562
109876
  theListForecastScenarios: TheForecastScenarioConnection;
109877
+ theListForecastSnapshots: TheForecastSnapshotConnection;
109563
109878
  theListInterestDecks: TheInterestDeckConnection;
109564
109879
  theListInventoryLots: TheInventoryLotConnection;
109565
109880
  theListMaintenanceSchedules: TheMaintenanceScheduleConnection;
109881
+ theListPriceIndexes: ThePriceIndexConnection;
109882
+ theListPricePoints: ThePricePointConnection;
109566
109883
  theListProductionAllocations: TheProductionAllocationConnection;
109567
109884
  theListProductionRecords: TheProductionRecordConnection;
109568
109885
  theListReserveEstimates: TheReserveEstimateConnection;
@@ -109576,14 +109893,22 @@ export type Query = {
109576
109893
  theListWorkOrders: TheWorkOrderConnection;
109577
109894
  theMaintenanceDashboard: TheMaintenanceDashboard;
109578
109895
  theMaintenanceHistory: TheMaintenanceHistory;
109896
+ theMaintenanceIntegrations: TheMaintenanceIntegrations;
109579
109897
  /** 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. */
109580
109898
  theMyLegalAcceptances: TheLegalAcceptanceConnection;
109581
109899
  /** Net production position per asset over [periodStart, periodEnd], from APPROVED allocations only. */
109582
109900
  theNetProductionPosition: TheNetProductionPosition;
109901
+ /** Optimize a saved network: forecast every node, then minimise cost and carbon within its constraints. */
109902
+ theOptimizeChainNetwork: TheChainPlan;
109583
109903
  /** 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). */
109584
109904
  thePortfolioOverview: ThePortfolioOverview;
109905
+ /** Value committed contracts and AVAILABLE inventory against index prices and report the long / short position by month. */
109906
+ thePositionValuation: ThePositionValuation;
109907
+ /** Optimize an unsaved network (what-if) without storing it. */
109908
+ thePreviewChainNetwork: TheChainPlan;
109585
109909
  /** Run unsaved assumptions (what-if) without storing them. */
109586
109910
  thePreviewForecastScenario: TheScenarioResult;
109911
+ thePriceIndex?: Maybe<ThePriceIndex>;
109587
109912
  theProductionAllocation?: Maybe<TheProductionAllocation>;
109588
109913
  /** Forecast one asset's daily production from its reported history. */
109589
109914
  theProductionForecast: TheProductionForecast;
@@ -109597,6 +109922,10 @@ export type Query = {
109597
109922
  theShipmentSources: Array<TheShipmentSource>;
109598
109923
  theSupplier?: Maybe<TheSupplier>;
109599
109924
  theSupplierRegisterSummary: TheSupplierRegisterSummary;
109925
+ /** 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. */
109926
+ theTraceProvenance: TheProvenanceTrace;
109927
+ /** Weather-driven generation forecast for a wind or solar asset with coordinates. */
109928
+ theWeatherGenerationForecast: TheWeatherGenerationForecast;
109600
109929
  theWorkOrder?: Maybe<TheWorkOrder>;
109601
109930
  thread: MessageConnection;
109602
109931
  /** Activation milestones for the calling workspace (BOFF-3450). */
@@ -109649,6 +109978,12 @@ export type Query = {
109649
109978
  timeCampusInvoices: TimeCampusInvoiceListResponse;
109650
109979
  timeCampusLakeDatasets: Array<TimeCampusLakeDataset>;
109651
109980
  timeCampusLakeRows?: Maybe<TimeCampusLakePage>;
109981
+ /** Certified marketplace applets with this workspace's install state. */
109982
+ timeCampusMarketplaceApplets: Array<TimeCampusStoreApplet>;
109983
+ /** Platform certification queue (super-admins only): submissions in the given state, IN_REVIEW by default, oldest first. */
109984
+ timeCampusMarketplaceCertificationQueue: Array<TimeCampusMarketplaceReviewItem>;
109985
+ /** Listings that are or were live, for suspension and reinstatement (super-admins only). */
109986
+ timeCampusMarketplaceCertifiedListings: Array<TimeCampusMarketplaceListing>;
109652
109987
  /** One of the caller's applets; another developer's applet is NOT_FOUND. */
109653
109988
  timeCampusMyThirdPartyApplet: TimeCampusThirdPartyApplet;
109654
109989
  /** The applets the caller registered, newest first. */
@@ -119298,6 +119633,14 @@ export type QueryMtwDispatchPlansArgs = {
119298
119633
  status?: InputMaybe<MtwDispatchPlanStatus>;
119299
119634
  };
119300
119635
  /** Base Query type with placeholder field. Extended by individual query files. */
119636
+ export type QueryMtwDocumentExtractionArgs = {
119637
+ id: Scalars['ID']['input'];
119638
+ };
119639
+ /** Base Query type with placeholder field. Extended by individual query files. */
119640
+ export type QueryMtwDocumentExtractionsArgs = {
119641
+ fileId: Scalars['ID']['input'];
119642
+ };
119643
+ /** Base Query type with placeholder field. Extended by individual query files. */
119301
119644
  export type QueryMtwEmptyReturnInstructionArgs = {
119302
119645
  id: Scalars['ID']['input'];
119303
119646
  };
@@ -121086,6 +121429,10 @@ export type QueryPswCredentialReviewsArgs = {
121086
121429
  offset?: InputMaybe<Scalars['Int']['input']>;
121087
121430
  };
121088
121431
  /** Base Query type with placeholder field. Extended by individual query files. */
121432
+ export type QueryPswDashboardStatsArgs = {
121433
+ currency?: InputMaybe<Scalars['String']['input']>;
121434
+ };
121435
+ /** Base Query type with placeholder field. Extended by individual query files. */
121089
121436
  export type QueryPswDocumentArgs = {
121090
121437
  id: Scalars['ID']['input'];
121091
121438
  };
@@ -121104,6 +121451,11 @@ export type QueryPswEngagementArgs = {
121104
121451
  id: Scalars['ID']['input'];
121105
121452
  };
121106
121453
  /** Base Query type with placeholder field. Extended by individual query files. */
121454
+ export type QueryPswFindPrecedentsArgs = {
121455
+ input: PswFindPrecedentsInput;
121456
+ pagination?: InputMaybe<PaginationInput>;
121457
+ };
121458
+ /** Base Query type with placeholder field. Extended by individual query files. */
121107
121459
  export type QueryPswInvoiceArgs = {
121108
121460
  id: Scalars['ID']['input'];
121109
121461
  };
@@ -122789,6 +123141,10 @@ export type QueryTheCarbonOffsetPositionArgs = {
122789
123141
  periodStart: Scalars['DateTime']['input'];
122790
123142
  };
122791
123143
  /** Base Query type with placeholder field. Extended by individual query files. */
123144
+ export type QueryTheChainNetworkArgs = {
123145
+ id: Scalars['ID']['input'];
123146
+ };
123147
+ /** Base Query type with placeholder field. Extended by individual query files. */
122792
123148
  export type QueryTheCompareForecastScenariosArgs = {
122793
123149
  ids: Array<Scalars['ID']['input']>;
122794
123150
  };
@@ -122820,14 +123176,28 @@ export type QueryTheEsgDisclosureArgs = {
122820
123176
  id: Scalars['ID']['input'];
122821
123177
  };
122822
123178
  /** Base Query type with placeholder field. Extended by individual query files. */
123179
+ export type QueryTheExplainProvenanceArgs = {
123180
+ entityId: Scalars['ID']['input'];
123181
+ };
123182
+ /** Base Query type with placeholder field. Extended by individual query files. */
122823
123183
  export type QueryTheExportEsgDisclosureArgs = {
122824
123184
  id: Scalars['ID']['input'];
122825
123185
  };
122826
123186
  /** Base Query type with placeholder field. Extended by individual query files. */
123187
+ export type QueryTheForecastAccuracyArgs = {
123188
+ assetId?: InputMaybe<Scalars['ID']['input']>;
123189
+ period?: InputMaybe<TheForecastAccuracyPeriod>;
123190
+ snapshotId: Scalars['ID']['input'];
123191
+ };
123192
+ /** Base Query type with placeholder field. Extended by individual query files. */
122827
123193
  export type QueryTheForecastScenarioArgs = {
122828
123194
  id: Scalars['ID']['input'];
122829
123195
  };
122830
123196
  /** Base Query type with placeholder field. Extended by individual query files. */
123197
+ export type QueryTheForecastSnapshotArgs = {
123198
+ id: Scalars['ID']['input'];
123199
+ };
123200
+ /** Base Query type with placeholder field. Extended by individual query files. */
122831
123201
  export type QueryTheInterestDeckArgs = {
122832
123202
  id: Scalars['ID']['input'];
122833
123203
  };
@@ -122843,6 +123213,11 @@ export type QueryTheListAllocationPeriodClosesArgs = {
122843
123213
  status?: InputMaybe<TheAllocationPeriodStatus>;
122844
123214
  };
122845
123215
  /** Base Query type with placeholder field. Extended by individual query files. */
123216
+ export type QueryTheListAssetHandlerAssetsArgs = {
123217
+ cursor?: InputMaybe<Scalars['String']['input']>;
123218
+ limit?: InputMaybe<Scalars['Int']['input']>;
123219
+ };
123220
+ /** Base Query type with placeholder field. Extended by individual query files. */
122846
123221
  export type QueryTheListAssetsArgs = {
122847
123222
  commodity?: InputMaybe<TheCommodityType>;
122848
123223
  kind?: InputMaybe<TheAssetKind>;
@@ -122863,6 +123238,10 @@ export type QueryTheListCarbonRetirementsArgs = {
122863
123238
  pagination?: InputMaybe<PaginationInput>;
122864
123239
  };
122865
123240
  /** Base Query type with placeholder field. Extended by individual query files. */
123241
+ export type QueryTheListChainNetworksArgs = {
123242
+ pagination?: InputMaybe<PaginationInput>;
123243
+ };
123244
+ /** Base Query type with placeholder field. Extended by individual query files. */
122866
123245
  export type QueryTheListComplianceCertsArgs = {
122867
123246
  assetId?: InputMaybe<Scalars['ID']['input']>;
122868
123247
  category?: InputMaybe<TheComplianceCategory>;
@@ -122912,6 +123291,12 @@ export type QueryTheListForecastScenariosArgs = {
122912
123291
  pagination?: InputMaybe<PaginationInput>;
122913
123292
  };
122914
123293
  /** Base Query type with placeholder field. Extended by individual query files. */
123294
+ export type QueryTheListForecastSnapshotsArgs = {
123295
+ commodity?: InputMaybe<TheCommodityType>;
123296
+ pagination?: InputMaybe<PaginationInput>;
123297
+ scenarioId?: InputMaybe<Scalars['ID']['input']>;
123298
+ };
123299
+ /** Base Query type with placeholder field. Extended by individual query files. */
122915
123300
  export type QueryTheListInterestDecksArgs = {
122916
123301
  assetId?: InputMaybe<Scalars['ID']['input']>;
122917
123302
  pagination?: InputMaybe<PaginationInput>;
@@ -122930,6 +123315,19 @@ export type QueryTheListMaintenanceSchedulesArgs = {
122930
123315
  pagination?: InputMaybe<PaginationInput>;
122931
123316
  };
122932
123317
  /** Base Query type with placeholder field. Extended by individual query files. */
123318
+ export type QueryTheListPriceIndexesArgs = {
123319
+ commodity?: InputMaybe<TheCommodityType>;
123320
+ pagination?: InputMaybe<PaginationInput>;
123321
+ };
123322
+ /** Base Query type with placeholder field. Extended by individual query files. */
123323
+ export type QueryTheListPricePointsArgs = {
123324
+ from?: InputMaybe<Scalars['DateTime']['input']>;
123325
+ indexId: Scalars['ID']['input'];
123326
+ kind?: InputMaybe<ThePricePointKind>;
123327
+ pagination?: InputMaybe<PaginationInput>;
123328
+ to?: InputMaybe<Scalars['DateTime']['input']>;
123329
+ };
123330
+ /** Base Query type with placeholder field. Extended by individual query files. */
122933
123331
  export type QueryTheListProductionAllocationsArgs = {
122934
123332
  correctsAllocationId?: InputMaybe<Scalars['ID']['input']>;
122935
123333
  measurementAssetId?: InputMaybe<Scalars['ID']['input']>;
@@ -123017,6 +123415,10 @@ export type QueryTheNetProductionPositionArgs = {
123017
123415
  reportingUnit?: InputMaybe<TheUnit>;
123018
123416
  };
123019
123417
  /** Base Query type with placeholder field. Extended by individual query files. */
123418
+ export type QueryTheOptimizeChainNetworkArgs = {
123419
+ id: Scalars['ID']['input'];
123420
+ };
123421
+ /** Base Query type with placeholder field. Extended by individual query files. */
123020
123422
  export type QueryThePortfolioOverviewArgs = {
123021
123423
  commodity?: InputMaybe<TheCommodityType>;
123022
123424
  periodEnd?: InputMaybe<Scalars['DateTime']['input']>;
@@ -123024,10 +123426,22 @@ export type QueryThePortfolioOverviewArgs = {
123024
123426
  region?: InputMaybe<Scalars['String']['input']>;
123025
123427
  };
123026
123428
  /** Base Query type with placeholder field. Extended by individual query files. */
123429
+ export type QueryThePositionValuationArgs = {
123430
+ input: ThePositionValuationInput;
123431
+ };
123432
+ /** Base Query type with placeholder field. Extended by individual query files. */
123433
+ export type QueryThePreviewChainNetworkArgs = {
123434
+ input: TheChainNetworkInput;
123435
+ };
123436
+ /** Base Query type with placeholder field. Extended by individual query files. */
123027
123437
  export type QueryThePreviewForecastScenarioArgs = {
123028
123438
  input: TheForecastScenarioInput;
123029
123439
  };
123030
123440
  /** Base Query type with placeholder field. Extended by individual query files. */
123441
+ export type QueryThePriceIndexArgs = {
123442
+ id: Scalars['ID']['input'];
123443
+ };
123444
+ /** Base Query type with placeholder field. Extended by individual query files. */
123031
123445
  export type QueryTheProductionAllocationArgs = {
123032
123446
  id: Scalars['ID']['input'];
123033
123447
  };
@@ -123064,6 +123478,18 @@ export type QueryTheSupplierArgs = {
123064
123478
  id: Scalars['ID']['input'];
123065
123479
  };
123066
123480
  /** Base Query type with placeholder field. Extended by individual query files. */
123481
+ export type QueryTheTraceProvenanceArgs = {
123482
+ direction: TheProvenanceDirection;
123483
+ entityId: Scalars['ID']['input'];
123484
+ };
123485
+ /** Base Query type with placeholder field. Extended by individual query files. */
123486
+ export type QueryTheWeatherGenerationForecastArgs = {
123487
+ assetId: Scalars['ID']['input'];
123488
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
123489
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
123490
+ unit?: InputMaybe<TheUnit>;
123491
+ };
123492
+ /** Base Query type with placeholder field. Extended by individual query files. */
123067
123493
  export type QueryTheWorkOrderArgs = {
123068
123494
  id: Scalars['ID']['input'];
123069
123495
  };
@@ -123085,6 +123511,7 @@ export type QueryTimeCampusAppletArgs = {
123085
123511
  export type QueryTimeCampusAppletBridgeDataArgs = {
123086
123512
  appletKey: Scalars['String']['input'];
123087
123513
  scope: Scalars['String']['input'];
123514
+ source?: InputMaybe<TimeCampusAppletSource>;
123088
123515
  };
123089
123516
  /** Base Query type with placeholder field. Extended by individual query files. */
123090
123517
  export type QueryTimeCampusAppletReviewQueueArgs = {
@@ -123180,6 +123607,10 @@ export type QueryTimeCampusLakeRowsArgs = {
123180
123607
  offset?: InputMaybe<Scalars['Int']['input']>;
123181
123608
  };
123182
123609
  /** Base Query type with placeholder field. Extended by individual query files. */
123610
+ export type QueryTimeCampusMarketplaceCertificationQueueArgs = {
123611
+ status?: InputMaybe<TimeCampusMarketplaceSubmissionStatus>;
123612
+ };
123613
+ /** Base Query type with placeholder field. Extended by individual query files. */
123183
123614
  export type QueryTimeCampusMyThirdPartyAppletArgs = {
123184
123615
  id: Scalars['ID']['input'];
123185
123616
  };
@@ -137256,6 +137687,30 @@ export type TheAssetConnection = {
137256
137687
  items: Array<TheAsset>;
137257
137688
  pageInfo: ThePageInfo;
137258
137689
  };
137690
+ export type TheAssetForecastAccuracy = {
137691
+ __typename?: 'TheAssetForecastAccuracy';
137692
+ actualToDate: Scalars['Float']['output'];
137693
+ assetId: Scalars['ID']['output'];
137694
+ assetName: Scalars['String']['output'];
137695
+ /** (actual - forecast) / forecast over the reported days, in percent. */
137696
+ biasPct?: Maybe<Scalars['Float']['output']>;
137697
+ /** Reported days whose actual fell outside the locked P10-P90 band. */
137698
+ daysOutsideBand: Scalars['Int']['output'];
137699
+ driftReason?: Maybe<Scalars['String']['output']>;
137700
+ /** Locked forecast summed over the reported days only. */
137701
+ forecastToDate: Scalars['Float']['output'];
137702
+ mape?: Maybe<Scalars['Float']['output']>;
137703
+ /** Days since the lock with reported production. */
137704
+ observedDays: Scalars['Int']['output'];
137705
+ periods: Array<TheForecastPeriodAccuracy>;
137706
+ /** Best-fitting alternative method and history window; set only for drifting assets. */
137707
+ recommendation?: Maybe<TheForecastRecommendation>;
137708
+ status: TheForecastDriftStatus;
137709
+ /** Plain-language next step; set only for drifting assets. */
137710
+ suggestion?: Maybe<Scalars['String']['output']>;
137711
+ /** Locked central forecast over the whole horizon. */
137712
+ totalForecast: Scalars['Float']['output'];
137713
+ };
137259
137714
  export type TheAssetForecastSummary = {
137260
137715
  __typename?: 'TheAssetForecastSummary';
137261
137716
  assetId: Scalars['ID']['output'];
@@ -137266,6 +137721,22 @@ export type TheAssetForecastSummary = {
137266
137721
  status: TheAssetStatus;
137267
137722
  totalForecast: Scalars['Float']['output'];
137268
137723
  };
137724
+ /** An AssetHandler asset, as read through the internal gateway for the equipment link picker. */
137725
+ export type TheAssetHandlerAsset = {
137726
+ __typename?: 'TheAssetHandlerAsset';
137727
+ assetNumber: Scalars['String']['output'];
137728
+ category: Scalars['String']['output'];
137729
+ id: Scalars['ID']['output'];
137730
+ locationName?: Maybe<Scalars['String']['output']>;
137731
+ name: Scalars['String']['output'];
137732
+ status: Scalars['String']['output'];
137733
+ };
137734
+ export type TheAssetHandlerAssetPage = {
137735
+ __typename?: 'TheAssetHandlerAssetPage';
137736
+ items: Array<TheAssetHandlerAsset>;
137737
+ /** Pass as `cursor` to read the next page; null on the last page. */
137738
+ nextCursor?: Maybe<Scalars['String']['output']>;
137739
+ };
137269
137740
  export declare enum TheAssetKind {
137270
137741
  GAS_FIELD = "GAS_FIELD",
137271
137742
  MINE = "MINE",
@@ -137289,6 +137760,18 @@ export declare enum TheAssetStatus {
137289
137760
  RETIRED = "RETIRED",
137290
137761
  SUSPENDED = "SUSPENDED"
137291
137762
  }
137763
+ export type TheAssignWorkOrderContractorInput = {
137764
+ /** Require this recorded ProServiceWorld credential of the contractor to be unexpired. */
137765
+ credentialId?: InputMaybe<Scalars['ID']['input']>;
137766
+ practitionerId: Scalars['ID']['input'];
137767
+ };
137768
+ export type TheAssignWorkOrderCrewInput = {
137769
+ crewTeamId: Scalars['ID']['input'];
137770
+ /** Minimum proficiency (1-5) for the required skill. */
137771
+ minProficiency?: InputMaybe<Scalars['Int']['input']>;
137772
+ /** Require at least one crew member (or the lead) to hold this CrewFoundry skill. */
137773
+ requiredSkillId?: InputMaybe<Scalars['ID']['input']>;
137774
+ };
137292
137775
  export type TheBulkAllocateProductionInput = {
137293
137776
  /** Also approve each allocation it creates. */
137294
137777
  approve?: InputMaybe<Scalars['Boolean']['input']>;
@@ -137436,6 +137919,298 @@ export type TheCarbonRetirementConnection = {
137436
137919
  items: Array<TheCarbonRetirement>;
137437
137920
  pageInfo: ThePageInfo;
137438
137921
  };
137922
+ export type TheChainAssetForecast = {
137923
+ __typename?: 'TheChainAssetForecast';
137924
+ assetId: Scalars['ID']['output'];
137925
+ assetName: Scalars['String']['output'];
137926
+ backtestMape?: Maybe<Scalars['Float']['output']>;
137927
+ calibration?: Maybe<TheWeatherCalibrationMethod>;
137928
+ dailyRate: Scalars['Float']['output'];
137929
+ /** WEATHER, or the statistical method used (a TheForecastMethod value). */
137930
+ method: Scalars['String']['output'];
137931
+ nodeId: Scalars['ID']['output'];
137932
+ technology?: Maybe<TheWeatherTechnology>;
137933
+ totalForecast: Scalars['Float']['output'];
137934
+ weatherDays: Scalars['Int']['output'];
137935
+ };
137936
+ /** 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. */
137937
+ export type TheChainBindingConstraint = {
137938
+ __typename?: 'TheChainBindingConstraint';
137939
+ description: Scalars['String']['output'];
137940
+ kind: TheChainConstraintKind;
137941
+ limit?: Maybe<Scalars['Float']['output']>;
137942
+ periods: Array<Scalars['Int']['output']>;
137943
+ relaxationValue: Scalars['Float']['output'];
137944
+ shadowPrice: Scalars['Float']['output'];
137945
+ subjectId?: Maybe<Scalars['ID']['output']>;
137946
+ subjectName: Scalars['String']['output'];
137947
+ };
137948
+ /** Where a link's capacity in a plan came from. */
137949
+ export declare enum TheChainCapacitySource {
137950
+ MOVETHEWHEELS = "MOVETHEWHEELS",
137951
+ NETWORK = "NETWORK",
137952
+ UNCONSTRAINED = "UNCONSTRAINED"
137953
+ }
137954
+ export declare enum TheChainConstraintKind {
137955
+ CARBON_BUDGET = "CARBON_BUDGET",
137956
+ LINK_CAPACITY = "LINK_CAPACITY",
137957
+ STORAGE_CAPACITY = "STORAGE_CAPACITY",
137958
+ SUPPLY = "SUPPLY"
137959
+ }
137960
+ export type TheChainContractPlan = {
137961
+ __typename?: 'TheChainContractPlan';
137962
+ contractId: Scalars['ID']['output'];
137963
+ counterparty: Scalars['String']['output'];
137964
+ delivered: Scalars['Float']['output'];
137965
+ demand: Scalars['Float']['output'];
137966
+ fulfilmentPct: Scalars['Float']['output'];
137967
+ nodeId: Scalars['ID']['output'];
137968
+ reference: Scalars['String']['output'];
137969
+ shortfall: Scalars['Float']['output'];
137970
+ };
137971
+ /** A transport route or conversion step between two nodes. */
137972
+ export type TheChainLink = {
137973
+ __typename?: 'TheChainLink';
137974
+ /** Maximum input volume per day in the from-node unit; null means unconstrained. */
137975
+ capacityPerDay?: Maybe<Scalars['Float']['output']>;
137976
+ /** kg CO2e per unit of input volume; null when not set (0 in plans, or derived from the MoveTheWheels route when one is named). */
137977
+ carbonKgPerUnit?: Maybe<Scalars['Float']['output']>;
137978
+ costPerUnit: Scalars['Float']['output'];
137979
+ fromNodeId: Scalars['ID']['output'];
137980
+ id: Scalars['ID']['output'];
137981
+ kind: TheChainLinkKind;
137982
+ lossPct: Scalars['Float']['output'];
137983
+ mode?: Maybe<TheTransportMode>;
137984
+ movethewheelsRouteId?: Maybe<Scalars['ID']['output']>;
137985
+ name: Scalars['String']['output'];
137986
+ toNodeId: Scalars['ID']['output'];
137987
+ /** Output units per input unit (CONVERSION only). */
137988
+ yieldFactor?: Maybe<Scalars['Float']['output']>;
137989
+ };
137990
+ export type TheChainLinkInput = {
137991
+ capacityPerDay?: InputMaybe<Scalars['Float']['input']>;
137992
+ /** 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. */
137993
+ carbonKgPerUnit?: InputMaybe<Scalars['Float']['input']>;
137994
+ costPerUnit?: InputMaybe<Scalars['Float']['input']>;
137995
+ /** Name of the from-node. */
137996
+ from: Scalars['String']['input'];
137997
+ kind?: InputMaybe<TheChainLinkKind>;
137998
+ lossPct?: InputMaybe<Scalars['Float']['input']>;
137999
+ mode?: InputMaybe<TheTransportMode>;
138000
+ movethewheelsRouteId?: InputMaybe<Scalars['ID']['input']>;
138001
+ name: Scalars['String']['input'];
138002
+ /** Name of the to-node. */
138003
+ to: Scalars['String']['input'];
138004
+ yieldFactor?: InputMaybe<Scalars['Float']['input']>;
138005
+ };
138006
+ /** TRANSPORT moves one commodity between nodes; CONVERSION turns the input commodity into the output commodity at a yield. */
138007
+ export declare enum TheChainLinkKind {
138008
+ CONVERSION = "CONVERSION",
138009
+ TRANSPORT = "TRANSPORT"
138010
+ }
138011
+ export type TheChainLinkPeriod = {
138012
+ __typename?: 'TheChainLinkPeriod';
138013
+ capacity?: Maybe<Scalars['Float']['output']>;
138014
+ flow: Scalars['Float']['output'];
138015
+ period: Scalars['Int']['output'];
138016
+ utilisationPct?: Maybe<Scalars['Float']['output']>;
138017
+ };
138018
+ export type TheChainLinkPlan = {
138019
+ __typename?: 'TheChainLinkPlan';
138020
+ capacityPerDay?: Maybe<Scalars['Float']['output']>;
138021
+ capacitySource: TheChainCapacitySource;
138022
+ carbonKgPerUnit: Scalars['Float']['output'];
138023
+ carbonTonnes: Scalars['Float']['output'];
138024
+ cost: Scalars['Float']['output'];
138025
+ fromNodeId: Scalars['ID']['output'];
138026
+ kind: TheChainLinkKind;
138027
+ linkId: Scalars['ID']['output'];
138028
+ movethewheelsRouteId?: Maybe<Scalars['ID']['output']>;
138029
+ name: Scalars['String']['output'];
138030
+ periods: Array<TheChainLinkPeriod>;
138031
+ toNodeId: Scalars['ID']['output'];
138032
+ totalFlow: Scalars['Float']['output'];
138033
+ totalOutput: Scalars['Float']['output'];
138034
+ utilisationPct?: Maybe<Scalars['Float']['output']>;
138035
+ /** Output per input unit used by the plan (unit conversion, loss and conversion yield). */
138036
+ yieldFactor: Scalars['Float']['output'];
138037
+ };
138038
+ /** A saved model of a multi-site resource chain. Only the network is stored; plans are always computed from live data. */
138039
+ export type TheChainNetwork = {
138040
+ __typename?: 'TheChainNetwork';
138041
+ carbonBudgetTonnes?: Maybe<Scalars['Float']['output']>;
138042
+ carbonPricePerTonne: Scalars['Float']['output'];
138043
+ createdAt: Scalars['DateTime']['output'];
138044
+ currency: Scalars['String']['output'];
138045
+ description?: Maybe<Scalars['String']['output']>;
138046
+ historyDays: Scalars['Int']['output'];
138047
+ horizonDays: Scalars['Int']['output'];
138048
+ id: Scalars['ID']['output'];
138049
+ links: Array<TheChainLink>;
138050
+ method: TheForecastMethod;
138051
+ name: Scalars['String']['output'];
138052
+ nodes: Array<TheChainNode>;
138053
+ objective: TheChainObjective;
138054
+ /** Penalty per unit of unserved demand; null derives one from the link costs. */
138055
+ shortfallPenalty?: Maybe<Scalars['Float']['output']>;
138056
+ updatedAt: Scalars['DateTime']['output'];
138057
+ /** Forecast wind and solar assets with coordinates from the weather. */
138058
+ useWeather: Scalars['Boolean']['output'];
138059
+ workspaceId: Scalars['ID']['output'];
138060
+ };
138061
+ export type TheChainNetworkConnection = {
138062
+ __typename?: 'TheChainNetworkConnection';
138063
+ items: Array<TheChainNetwork>;
138064
+ pageInfo: ThePageInfo;
138065
+ };
138066
+ export type TheChainNetworkInput = {
138067
+ carbonBudgetTonnes?: InputMaybe<Scalars['Float']['input']>;
138068
+ carbonPricePerTonne?: InputMaybe<Scalars['Float']['input']>;
138069
+ currency?: InputMaybe<Scalars['String']['input']>;
138070
+ description?: InputMaybe<Scalars['String']['input']>;
138071
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
138072
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
138073
+ links?: InputMaybe<Array<TheChainLinkInput>>;
138074
+ method?: InputMaybe<TheForecastMethod>;
138075
+ name: Scalars['String']['input'];
138076
+ nodes: Array<TheChainNodeInput>;
138077
+ objective?: InputMaybe<TheChainObjective>;
138078
+ shortfallPenalty?: InputMaybe<Scalars['Float']['input']>;
138079
+ useWeather?: InputMaybe<Scalars['Boolean']['input']>;
138080
+ };
138081
+ /** One commodity stock at one location. */
138082
+ export type TheChainNode = {
138083
+ __typename?: 'TheChainNode';
138084
+ assetIds: Array<Scalars['ID']['output']>;
138085
+ commodity: TheCommodityType;
138086
+ contractIds: Array<Scalars['ID']['output']>;
138087
+ holdingCostPerUnitDay: Scalars['Float']['output'];
138088
+ id: Scalars['ID']['output'];
138089
+ kind: TheChainNodeKind;
138090
+ latitude?: Maybe<Scalars['Float']['output']>;
138091
+ longitude?: Maybe<Scalars['Float']['output']>;
138092
+ name: Scalars['String']['output'];
138093
+ /** Opening stock; null sums AVAILABLE inventory lots whose location matches the node name. */
138094
+ openingStock?: Maybe<Scalars['Float']['output']>;
138095
+ storageCapacity?: Maybe<Scalars['Float']['output']>;
138096
+ unit: TheUnit;
138097
+ };
138098
+ export type TheChainNodeInput = {
138099
+ assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
138100
+ commodity: TheCommodityType;
138101
+ contractIds?: InputMaybe<Array<Scalars['ID']['input']>>;
138102
+ holdingCostPerUnitDay?: InputMaybe<Scalars['Float']['input']>;
138103
+ kind?: InputMaybe<TheChainNodeKind>;
138104
+ latitude?: InputMaybe<Scalars['Float']['input']>;
138105
+ longitude?: InputMaybe<Scalars['Float']['input']>;
138106
+ /** Unique within the network; links refer to nodes by name. */
138107
+ name: Scalars['String']['input'];
138108
+ openingStock?: InputMaybe<Scalars['Float']['input']>;
138109
+ storageCapacity?: InputMaybe<Scalars['Float']['input']>;
138110
+ unit: TheUnit;
138111
+ };
138112
+ export declare enum TheChainNodeKind {
138113
+ DELIVERY_POINT = "DELIVERY_POINT",
138114
+ PROCESSING = "PROCESSING",
138115
+ STORAGE = "STORAGE",
138116
+ SUPPLY_SITE = "SUPPLY_SITE"
138117
+ }
138118
+ export type TheChainNodePeriod = {
138119
+ __typename?: 'TheChainNodePeriod';
138120
+ closingStock: Scalars['Float']['output'];
138121
+ curtailed: Scalars['Float']['output'];
138122
+ delivered: Scalars['Float']['output'];
138123
+ demand: Scalars['Float']['output'];
138124
+ inbound: Scalars['Float']['output'];
138125
+ period: Scalars['Int']['output'];
138126
+ production: Scalars['Float']['output'];
138127
+ received: Scalars['Float']['output'];
138128
+ sent: Scalars['Float']['output'];
138129
+ shortfall: Scalars['Float']['output'];
138130
+ };
138131
+ export type TheChainNodePlan = {
138132
+ __typename?: 'TheChainNodePlan';
138133
+ closingStock: Scalars['Float']['output'];
138134
+ commodity: TheCommodityType;
138135
+ curtailed: Scalars['Float']['output'];
138136
+ delivered: Scalars['Float']['output'];
138137
+ demand: Scalars['Float']['output'];
138138
+ inbound: Scalars['Float']['output'];
138139
+ name: Scalars['String']['output'];
138140
+ nodeId: Scalars['ID']['output'];
138141
+ openingStock: Scalars['Float']['output'];
138142
+ peakStock: Scalars['Float']['output'];
138143
+ periods: Array<TheChainNodePeriod>;
138144
+ production: Scalars['Float']['output'];
138145
+ shortfall: Scalars['Float']['output'];
138146
+ unit: TheUnit;
138147
+ };
138148
+ /** What the optimizer minimises. COST: logistics and holding cost. CARBON: emissions. BALANCED: cost plus emissions priced at the network's carbon price. */
138149
+ export declare enum TheChainObjective {
138150
+ BALANCED = "BALANCED",
138151
+ CARBON = "CARBON",
138152
+ COST = "COST"
138153
+ }
138154
+ export type TheChainPeriod = {
138155
+ __typename?: 'TheChainPeriod';
138156
+ days: Scalars['Int']['output'];
138157
+ end: Scalars['DateTime']['output'];
138158
+ index: Scalars['Int']['output'];
138159
+ start: Scalars['DateTime']['output'];
138160
+ };
138161
+ export type TheChainPlan = {
138162
+ __typename?: 'TheChainPlan';
138163
+ assets: Array<TheChainAssetForecast>;
138164
+ /** Most limiting first. */
138165
+ bindingConstraints: Array<TheChainBindingConstraint>;
138166
+ carbonPricePerTonne: Scalars['Float']['output'];
138167
+ contracts: Array<TheChainContractPlan>;
138168
+ currency: Scalars['String']['output'];
138169
+ generatedAt: Scalars['DateTime']['output'];
138170
+ horizonDays: Scalars['Int']['output'];
138171
+ links: Array<TheChainLinkPlan>;
138172
+ name: Scalars['String']['output'];
138173
+ /** The saved network; null for a preview of an unsaved network. */
138174
+ network?: Maybe<TheChainNetwork>;
138175
+ nodes: Array<TheChainNodePlan>;
138176
+ objective: TheChainObjective;
138177
+ periods: Array<TheChainPeriod>;
138178
+ recommendations: Array<Scalars['String']['output']>;
138179
+ shipments: Array<TheChainShipment>;
138180
+ status: TheChainPlanStatus;
138181
+ summary: TheChainPlanSummary;
138182
+ warnings: Array<Scalars['String']['output']>;
138183
+ };
138184
+ export declare enum TheChainPlanStatus {
138185
+ INFEASIBLE = "INFEASIBLE",
138186
+ ITERATION_LIMIT = "ITERATION_LIMIT",
138187
+ OPTIMAL = "OPTIMAL",
138188
+ UNBOUNDED = "UNBOUNDED"
138189
+ }
138190
+ export type TheChainPlanSummary = {
138191
+ __typename?: 'TheChainPlanSummary';
138192
+ fulfilmentPct: Scalars['Float']['output'];
138193
+ objectiveValue: Scalars['Float']['output'];
138194
+ shortfallPenalty: Scalars['Float']['output'];
138195
+ totalCarbonTonnes: Scalars['Float']['output'];
138196
+ /** Logistics plus holding cost, in the network currency. */
138197
+ totalCost: Scalars['Float']['output'];
138198
+ totalCurtailed: Scalars['Float']['output'];
138199
+ totalDelivered: Scalars['Float']['output'];
138200
+ totalDemand: Scalars['Float']['output'];
138201
+ totalInbound: Scalars['Float']['output'];
138202
+ totalProduction: Scalars['Float']['output'];
138203
+ totalShortfall: Scalars['Float']['output'];
138204
+ };
138205
+ /** Recommended volume to move over a link in a planning period. */
138206
+ export type TheChainShipment = {
138207
+ __typename?: 'TheChainShipment';
138208
+ linkId: Scalars['ID']['output'];
138209
+ linkName: Scalars['String']['output'];
138210
+ period: Scalars['Int']['output'];
138211
+ periodStart: Scalars['DateTime']['output'];
138212
+ volume: Scalars['Float']['output'];
138213
+ };
137439
138214
  export type TheCloseAllocationPeriodInput = {
137440
138215
  /** Close the period for one measurement asset only; omit to close it for every asset. */
137441
138216
  assetId?: InputMaybe<Scalars['ID']['input']>;
@@ -137581,6 +138356,32 @@ export declare enum TheContractStatus {
137581
138356
  SUSPENDED = "SUSPENDED",
137582
138357
  TERMINATED = "TERMINATED"
137583
138358
  }
138359
+ /** 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. */
138360
+ export type TheContractValuation = {
138361
+ __typename?: 'TheContractValuation';
138362
+ contractId: Scalars['ID']['output'];
138363
+ /** Fixed price, or the differential for index-priced contracts. */
138364
+ contractPrice: Scalars['Float']['output'];
138365
+ counterparty: Scalars['String']['output'];
138366
+ currency: Scalars['String']['output'];
138367
+ /** Index price in the index's own unit, when the contract is index-priced. */
138368
+ indexPrice?: Maybe<Scalars['Float']['output']>;
138369
+ /** When UNAVAILABLE: the price source that is missing and how to add it. */
138370
+ missingSource?: Maybe<Scalars['String']['output']>;
138371
+ priceDate?: Maybe<Scalars['DateTime']['output']>;
138372
+ priceIndex?: Maybe<Scalars['String']['output']>;
138373
+ priceKind?: Maybe<ThePricePointKind>;
138374
+ priceSource?: Maybe<Scalars['String']['output']>;
138375
+ pricingBasis: ThePricingBasis;
138376
+ reference: Scalars['String']['output'];
138377
+ remainingVolume: Scalars['Float']['output'];
138378
+ side: TheContractSide;
138379
+ status: TheValuationStatus;
138380
+ unit: TheUnit;
138381
+ valuedAmount?: Maybe<Scalars['Float']['output']>;
138382
+ /** Price per contract unit used for the valuation. */
138383
+ valuedPrice?: Maybe<Scalars['Float']['output']>;
138384
+ };
137584
138385
  export type TheCorrectiveAction = {
137585
138386
  __typename?: 'TheCorrectiveAction';
137586
138387
  closedAt?: Maybe<Scalars['DateTime']['output']>;
@@ -137866,6 +138667,8 @@ export declare enum TheEmissionScope {
137866
138667
  }
137867
138668
  export type TheEquipment = {
137868
138669
  __typename?: 'TheEquipment';
138670
+ /** The AssetHandler asset this equipment is linked to, if any. */
138671
+ assetHandlerLink?: Maybe<TheEquipmentExternalLink>;
137869
138672
  assetId: Scalars['ID']['output'];
137870
138673
  category: TheEquipmentCategory;
137871
138674
  createdAt: Scalars['DateTime']['output'];
@@ -137901,6 +138704,18 @@ export type TheEquipmentConnection = {
137901
138704
  items: Array<TheEquipment>;
137902
138705
  pageInfo: ThePageInfo;
137903
138706
  };
138707
+ /** Link from TheGlobalFuel equipment to an AssetHandler asset. */
138708
+ export type TheEquipmentExternalLink = {
138709
+ __typename?: 'TheEquipmentExternalLink';
138710
+ createdAt: Scalars['DateTime']['output'];
138711
+ equipmentId: Scalars['ID']['output'];
138712
+ externalAssetId: Scalars['ID']['output'];
138713
+ externalAssetName?: Maybe<Scalars['String']['output']>;
138714
+ externalAssetNumber?: Maybe<Scalars['String']['output']>;
138715
+ id: Scalars['ID']['output'];
138716
+ provider: Scalars['String']['output'];
138717
+ updatedAt: Scalars['DateTime']['output'];
138718
+ };
137904
138719
  export declare enum TheEquipmentStatus {
137905
138720
  DEGRADED = "DEGRADED",
137906
138721
  DOWN = "DOWN",
@@ -137956,6 +138771,61 @@ export declare enum TheEsgFramework {
137956
138771
  SASB = "SASB",
137957
138772
  SEC_CLIMATE = "SEC_CLIMATE"
137958
138773
  }
138774
+ export declare enum TheExternalAssigneeKind {
138775
+ /** A ProServiceWorld contractor (practitioner). */
138776
+ CONTRACTOR = "CONTRACTOR",
138777
+ /** A CrewFoundry crew (team). */
138778
+ CREW = "CREW"
138779
+ }
138780
+ /** 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. */
138781
+ export type TheForecastAccuracy = {
138782
+ __typename?: 'TheForecastAccuracy';
138783
+ actualToDate: Scalars['Float']['output'];
138784
+ asOf: Scalars['DateTime']['output'];
138785
+ assets: Array<TheAssetForecastAccuracy>;
138786
+ biasPct?: Maybe<Scalars['Float']['output']>;
138787
+ daysOutsideBand: Scalars['Int']['output'];
138788
+ driftReason?: Maybe<Scalars['String']['output']>;
138789
+ driftingAssets: Scalars['Int']['output'];
138790
+ /** Complete days since the lock, capped at the horizon. */
138791
+ elapsedDays: Scalars['Int']['output'];
138792
+ forecastToDate: Scalars['Float']['output'];
138793
+ mape?: Maybe<Scalars['Float']['output']>;
138794
+ observedDays: Scalars['Int']['output'];
138795
+ period: TheForecastAccuracyPeriod;
138796
+ periods: Array<TheForecastPeriodAccuracy>;
138797
+ series: Array<TheForecastAccuracyPoint>;
138798
+ snapshot: TheForecastSnapshot;
138799
+ status: TheForecastDriftStatus;
138800
+ warnings: Array<Scalars['String']['output']>;
138801
+ };
138802
+ /** Calendar period the forecast-vs-actual error is reported per (UTC; weeks start Monday). */
138803
+ export declare enum TheForecastAccuracyPeriod {
138804
+ MONTH = "MONTH",
138805
+ WEEK = "WEEK"
138806
+ }
138807
+ /** One day of the locked plan: the frozen forecast and band, and what was reported. */
138808
+ export type TheForecastAccuracyPoint = {
138809
+ __typename?: 'TheForecastAccuracyPoint';
138810
+ /** Reported production; null for days not yet complete or with no report. */
138811
+ actual?: Maybe<Scalars['Float']['output']>;
138812
+ date: Scalars['DateTime']['output'];
138813
+ forecast: Scalars['Float']['output'];
138814
+ high: Scalars['Float']['output'];
138815
+ low: Scalars['Float']['output'];
138816
+ /** Assets that reported production that day. */
138817
+ reportedAssets: Scalars['Int']['output'];
138818
+ /** Locked forecast of only the assets that reported that day, comparable with actual; null when none reported. */
138819
+ reportedForecast?: Maybe<Scalars['Float']['output']>;
138820
+ };
138821
+ /** 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. */
138822
+ export declare enum TheForecastDriftStatus {
138823
+ DRIFTING = "DRIFTING",
138824
+ INSUFFICIENT_DATA = "INSUFFICIENT_DATA",
138825
+ NO_ACTUALS = "NO_ACTUALS",
138826
+ ON_TRACK = "ON_TRACK",
138827
+ PENDING = "PENDING"
138828
+ }
137959
138829
  /** Reported daily production used to fit the forecast. */
137960
138830
  export type TheForecastHistoryPoint = {
137961
138831
  __typename?: 'TheForecastHistoryPoint';
@@ -137968,6 +138838,21 @@ export declare enum TheForecastMethod {
137968
138838
  LINEAR_TREND = "LINEAR_TREND",
137969
138839
  MOVING_AVERAGE = "MOVING_AVERAGE"
137970
138840
  }
138841
+ /** Forecast versus actual for one calendar period. Only days with reported production are compared. */
138842
+ export type TheForecastPeriodAccuracy = {
138843
+ __typename?: 'TheForecastPeriodAccuracy';
138844
+ actual: Scalars['Float']['output'];
138845
+ drifting: Scalars['Boolean']['output'];
138846
+ /** (actual - forecast) / forecast, in percent; null when nothing was reported or the forecast is zero. */
138847
+ errorPct?: Maybe<Scalars['Float']['output']>;
138848
+ forecast: Scalars['Float']['output'];
138849
+ /** Mean absolute percentage error of the reported days. */
138850
+ mape?: Maybe<Scalars['Float']['output']>;
138851
+ observedDays: Scalars['Int']['output'];
138852
+ /** Exclusive end of the period, clipped to the days compared so far. */
138853
+ periodEnd: Scalars['DateTime']['output'];
138854
+ periodStart: Scalars['DateTime']['output'];
138855
+ };
137971
138856
  /** One forecast day: the central daily rate and its P10–P90 band. */
137972
138857
  export type TheForecastPoint = {
137973
138858
  __typename?: 'TheForecastPoint';
@@ -137976,6 +138861,16 @@ export type TheForecastPoint = {
137976
138861
  low: Scalars['Float']['output'];
137977
138862
  value: Scalars['Float']['output'];
137978
138863
  };
138864
+ /** Settings that would have predicted the production reported since the lock better. */
138865
+ export type TheForecastRecommendation = {
138866
+ __typename?: 'TheForecastRecommendation';
138867
+ /** Daily MAPE of the locked forecast over the same days. */
138868
+ currentMape?: Maybe<Scalars['Float']['output']>;
138869
+ historyDays: Scalars['Int']['output'];
138870
+ /** Daily MAPE these settings would have scored against the actuals. */
138871
+ mape: Scalars['Float']['output'];
138872
+ method: TheForecastMethod;
138873
+ };
137979
138874
  /** 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. */
137980
138875
  export type TheForecastScenario = {
137981
138876
  __typename?: 'TheForecastScenario';
@@ -138024,6 +138919,41 @@ export type TheForecastScenarioInput = {
138024
138919
  storageCapacity?: InputMaybe<Scalars['Float']['input']>;
138025
138920
  unit?: InputMaybe<TheUnit>;
138026
138921
  };
138922
+ /** 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. */
138923
+ export type TheForecastSnapshot = {
138924
+ __typename?: 'TheForecastSnapshot';
138925
+ /** Assets whose forecast was frozen. */
138926
+ assetIds: Array<Scalars['ID']['output']>;
138927
+ commodity: TheCommodityType;
138928
+ createdAt: Scalars['DateTime']['output'];
138929
+ createdBy: Scalars['String']['output'];
138930
+ /** Absolute percentage error beyond which an asset is flagged as drifting. */
138931
+ driftThresholdPct: Scalars['Float']['output'];
138932
+ /** Day after the last forecast day. */
138933
+ endDate: Scalars['DateTime']['output'];
138934
+ historyDays: Scalars['Int']['output'];
138935
+ horizonDays: Scalars['Int']['output'];
138936
+ id: Scalars['ID']['output'];
138937
+ lockedAt: Scalars['DateTime']['output'];
138938
+ method: TheForecastMethod;
138939
+ name: Scalars['String']['output'];
138940
+ notes?: Maybe<Scalars['String']['output']>;
138941
+ productionFactor: Scalars['Float']['output'];
138942
+ /** Scenario the plan was locked from; null once that scenario is deleted. */
138943
+ scenarioId?: Maybe<Scalars['ID']['output']>;
138944
+ /** First forecast day (midnight UTC of the lock day). */
138945
+ startDate: Scalars['DateTime']['output'];
138946
+ /** Frozen central forecast over the whole horizon, all assets. */
138947
+ totalForecast: Scalars['Float']['output'];
138948
+ unit: TheUnit;
138949
+ updatedAt: Scalars['DateTime']['output'];
138950
+ workspaceId: Scalars['ID']['output'];
138951
+ };
138952
+ export type TheForecastSnapshotConnection = {
138953
+ __typename?: 'TheForecastSnapshotConnection';
138954
+ items: Array<TheForecastSnapshot>;
138955
+ pageInfo: ThePageInfo;
138956
+ };
138027
138957
  export type TheGenerateEsgDisclosureInput = {
138028
138958
  framework: TheEsgFramework;
138029
138959
  notes?: InputMaybe<Scalars['String']['input']>;
@@ -138119,6 +139049,26 @@ export declare enum TheInventoryStatus {
138119
139049
  RESERVED = "RESERVED",
138120
139050
  WRITTEN_OFF = "WRITTEN_OFF"
138121
139051
  }
139052
+ /** AVAILABLE inventory valued at the commodity benchmark plus a differential. */
139053
+ export type TheInventoryValuation = {
139054
+ __typename?: 'TheInventoryValuation';
139055
+ /** Sum of each lot's recorded unit value, per currency, for comparison. */
139056
+ bookValue: Array<TheCurrencyAmount>;
139057
+ currency?: Maybe<Scalars['String']['output']>;
139058
+ differential: Scalars['Float']['output'];
139059
+ indexId?: Maybe<Scalars['ID']['output']>;
139060
+ indexName?: Maybe<Scalars['String']['output']>;
139061
+ indexPrice?: Maybe<Scalars['Float']['output']>;
139062
+ lotCount: Scalars['Int']['output'];
139063
+ missingSource?: Maybe<Scalars['String']['output']>;
139064
+ priceDate?: Maybe<Scalars['DateTime']['output']>;
139065
+ priceKind?: Maybe<ThePricePointKind>;
139066
+ priceSource?: Maybe<Scalars['String']['output']>;
139067
+ quantity: Scalars['Float']['output'];
139068
+ status: TheValuationStatus;
139069
+ valuedAmount?: Maybe<Scalars['Float']['output']>;
139070
+ valuedPrice?: Maybe<Scalars['Float']['output']>;
139071
+ };
138122
139072
  export type TheLegalAcceptance = {
138123
139073
  __typename?: 'TheLegalAcceptance';
138124
139074
  acceptedAt: Scalars['DateTime']['output'];
@@ -138161,6 +139111,15 @@ export type TheLinkShipmentSourceInput = {
138161
139111
  quantity: Scalars['Float']['input'];
138162
139112
  shipmentId: Scalars['ID']['input'];
138163
139113
  };
139114
+ export type TheLockForecastScenarioInput = {
139115
+ /** 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. */
139116
+ asOf?: InputMaybe<Scalars['DateTime']['input']>;
139117
+ /** Percent; defaults to 20. */
139118
+ driftThresholdPct?: InputMaybe<Scalars['Float']['input']>;
139119
+ /** Defaults to the scenario name and the lock date. */
139120
+ name?: InputMaybe<Scalars['String']['input']>;
139121
+ notes?: InputMaybe<Scalars['String']['input']>;
139122
+ };
138164
139123
  /** Live counts for the maintenance dashboard. */
138165
139124
  export type TheMaintenanceDashboard = {
138166
139125
  __typename?: 'TheMaintenanceDashboard';
@@ -138187,6 +139146,14 @@ export type TheMaintenanceHistory = {
138187
139146
  pageInfo: ThePageInfo;
138188
139147
  totalDowntimeHours: Scalars['Float']['output'];
138189
139148
  };
139149
+ /** Which ecosystem products the maintenance path integrates with in this workspace. All are off until switched on. */
139150
+ export type TheMaintenanceIntegrations = {
139151
+ __typename?: 'TheMaintenanceIntegrations';
139152
+ assetHandlerEnabled: Scalars['Boolean']['output'];
139153
+ crewFoundryEnabled: Scalars['Boolean']['output'];
139154
+ proServiceWorldEnabled: Scalars['Boolean']['output'];
139155
+ updatedAt?: Maybe<Scalars['DateTime']['output']>;
139156
+ };
138190
139157
  export declare enum TheMaintenancePriority {
138191
139158
  HIGH = "HIGH",
138192
139159
  LOW = "LOW",
@@ -138368,6 +139335,145 @@ export type ThePortfolioTotals = {
138368
139335
  producingAssetCount: Scalars['Int']['output'];
138369
139336
  regionCount: Scalars['Int']['output'];
138370
139337
  };
139338
+ /** LONG: more supply (production plus purchases) than contracted sales. SHORT: more contracted sales than supply. FLAT: balanced. */
139339
+ export declare enum ThePositionDirection {
139340
+ FLAT = "FLAT",
139341
+ LONG = "LONG",
139342
+ SHORT = "SHORT"
139343
+ }
139344
+ /** One calendar month of the physical position, in the report unit. */
139345
+ export type ThePositionPeriod = {
139346
+ __typename?: 'ThePositionPeriod';
139347
+ /** Reported production on days before today. */
139348
+ actualProduction: Scalars['Float']['output'];
139349
+ contractedPurchases: Scalars['Float']['output'];
139350
+ /** Contracted sales, straight-line over each contract's term. */
139351
+ contractedSales: Scalars['Float']['output'];
139352
+ deliveredPurchases: Scalars['Float']['output'];
139353
+ /** Volume of DELIVERED shipments in the month. */
139354
+ deliveredSales: Scalars['Float']['output'];
139355
+ direction: ThePositionDirection;
139356
+ /** Forecast production from today on. */
139357
+ forecastProduction: Scalars['Float']['output'];
139358
+ missingSource?: Maybe<Scalars['String']['output']>;
139359
+ /** production + contractedPurchases − contractedSales. */
139360
+ netPosition: Scalars['Float']['output'];
139361
+ periodEnd: Scalars['DateTime']['output'];
139362
+ periodStart: Scalars['DateTime']['output'];
139363
+ /** Mean benchmark price over the month, per report unit. */
139364
+ price?: Maybe<Scalars['Float']['output']>;
139365
+ priceKind?: Maybe<ThePricePointKind>;
139366
+ production: Scalars['Float']['output'];
139367
+ status: TheValuationStatus;
139368
+ valuedNet?: Maybe<Scalars['Float']['output']>;
139369
+ };
139370
+ export type ThePositionValuation = {
139371
+ __typename?: 'ThePositionValuation';
139372
+ asOf: Scalars['DateTime']['output'];
139373
+ /** The commodity's benchmark index, when one is set. */
139374
+ benchmark?: Maybe<ThePriceIndex>;
139375
+ commodity: TheCommodityType;
139376
+ contracts: Array<TheContractValuation>;
139377
+ /** Currency of the inventory and monthly valuations (the benchmark's). */
139378
+ currency?: Maybe<Scalars['String']['output']>;
139379
+ generatedAt: Scalars['DateTime']['output'];
139380
+ inventory: TheInventoryValuation;
139381
+ periods: Array<ThePositionPeriod>;
139382
+ /** Totals of the AVAILABLE contract valuations, per currency. */
139383
+ totals: Array<TheValuationTotal>;
139384
+ /** Valuations that could not be computed for want of a price. */
139385
+ unavailableCount: Scalars['Int']['output'];
139386
+ unit: TheUnit;
139387
+ warnings: Array<Scalars['String']['output']>;
139388
+ };
139389
+ export type ThePositionValuationInput = {
139390
+ commodity: TheCommodityType;
139391
+ /** Months from the current one (1–12, default 6). */
139392
+ horizonMonths?: InputMaybe<Scalars['Int']['input']>;
139393
+ /** Added to the benchmark price when valuing inventory (default 0). */
139394
+ inventoryDifferential?: InputMaybe<Scalars['Float']['input']>;
139395
+ /** Complete months before the current one (0–12, default 1). */
139396
+ lookbackMonths?: InputMaybe<Scalars['Int']['input']>;
139397
+ /** Unit of the inventory and monthly volumes. Default BARRELS. */
139398
+ unit?: InputMaybe<TheUnit>;
139399
+ };
139400
+ export type ThePriceImportResult = {
139401
+ __typename?: 'ThePriceImportResult';
139402
+ created: Scalars['Int']['output'];
139403
+ index: ThePriceIndex;
139404
+ updated: Scalars['Int']['output'];
139405
+ };
139406
+ /** 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). */
139407
+ export type ThePriceIndex = {
139408
+ __typename?: 'ThePriceIndex';
139409
+ /** The benchmark for its commodity: AVAILABLE inventory and the monthly position are valued against it. At most one per commodity. */
139410
+ benchmark: Scalars['Boolean']['output'];
139411
+ /** Commodity the index prices; null for a cross-commodity index. */
139412
+ commodity?: Maybe<TheCommodityType>;
139413
+ createdAt: Scalars['DateTime']['output'];
139414
+ currency: Scalars['String']['output'];
139415
+ description?: Maybe<Scalars['String']['output']>;
139416
+ id: Scalars['ID']['output'];
139417
+ /** The newest ACTUAL price. */
139418
+ latestPrice?: Maybe<ThePricePoint>;
139419
+ name: Scalars['String']['output'];
139420
+ /** Default source of the series (e.g. "ICE Brent settlement"). */
139421
+ source: Scalars['String']['output'];
139422
+ /** Unit one quoted price is per. */
139423
+ unit: TheUnit;
139424
+ updatedAt: Scalars['DateTime']['output'];
139425
+ workspaceId: Scalars['ID']['output'];
139426
+ };
139427
+ export type ThePriceIndexConnection = {
139428
+ __typename?: 'ThePriceIndexConnection';
139429
+ items: Array<ThePriceIndex>;
139430
+ pageInfo: ThePageInfo;
139431
+ };
139432
+ export type ThePriceIndexInput = {
139433
+ benchmark?: InputMaybe<Scalars['Boolean']['input']>;
139434
+ commodity?: InputMaybe<TheCommodityType>;
139435
+ currency?: InputMaybe<Scalars['String']['input']>;
139436
+ description?: InputMaybe<Scalars['String']['input']>;
139437
+ name?: InputMaybe<Scalars['String']['input']>;
139438
+ source?: InputMaybe<Scalars['String']['input']>;
139439
+ unit?: InputMaybe<TheUnit>;
139440
+ };
139441
+ /** One dated price on an index, with where it came from and when it was recorded. */
139442
+ export type ThePricePoint = {
139443
+ __typename?: 'ThePricePoint';
139444
+ createdAt: Scalars['DateTime']['output'];
139445
+ createdBy: Scalars['String']['output'];
139446
+ id: Scalars['ID']['output'];
139447
+ indexId: Scalars['ID']['output'];
139448
+ kind: ThePricePointKind;
139449
+ price: Scalars['Float']['output'];
139450
+ /** The day the price applies to (UTC midnight). */
139451
+ priceDate: Scalars['DateTime']['output'];
139452
+ /** When the source published or the user recorded the price. */
139453
+ recordedAt: Scalars['DateTime']['output'];
139454
+ source: Scalars['String']['output'];
139455
+ sourceReference?: Maybe<Scalars['String']['output']>;
139456
+ };
139457
+ export type ThePricePointConnection = {
139458
+ __typename?: 'ThePricePointConnection';
139459
+ items: Array<ThePricePoint>;
139460
+ pageInfo: ThePageInfo;
139461
+ };
139462
+ export type ThePricePointInput = {
139463
+ kind?: InputMaybe<ThePricePointKind>;
139464
+ price: Scalars['Float']['input'];
139465
+ /** ISO date (YYYY-MM-DD) or timestamp; stored as that UTC day. */
139466
+ priceDate: Scalars['String']['input'];
139467
+ recordedAt?: InputMaybe<Scalars['DateTime']['input']>;
139468
+ /** Defaults to the batch source, then the index source. */
139469
+ source?: InputMaybe<Scalars['String']['input']>;
139470
+ sourceReference?: InputMaybe<Scalars['String']['input']>;
139471
+ };
139472
+ /** ACTUAL: an observed settlement / assessment. FORECAST: a forward price. On a day with both, the ACTUAL price is used. */
139473
+ export declare enum ThePricePointKind {
139474
+ ACTUAL = "ACTUAL",
139475
+ FORECAST = "FORECAST"
139476
+ }
138371
139477
  export declare enum ThePricingBasis {
138372
139478
  FIXED = "FIXED",
138373
139479
  FORMULA = "FORMULA",
@@ -138475,6 +139581,17 @@ export type TheProductionRecordConnection = {
138475
139581
  items: Array<TheProductionRecord>;
138476
139582
  pageInfo: ThePageInfo;
138477
139583
  };
139584
+ /** Compliance posture of one chain-relevant certificate. */
139585
+ export type TheProvenanceCertSummary = {
139586
+ __typename?: 'TheProvenanceCertSummary';
139587
+ assetId?: Maybe<Scalars['ID']['output']>;
139588
+ category: Scalars['String']['output'];
139589
+ evidenceFileId?: Maybe<Scalars['String']['output']>;
139590
+ expiresAt?: Maybe<Scalars['DateTime']['output']>;
139591
+ id: Scalars['ID']['output'];
139592
+ status: Scalars['String']['output'];
139593
+ title: Scalars['String']['output'];
139594
+ };
138478
139595
  /** 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. */
138479
139596
  export type TheProvenanceCertificate = {
138480
139597
  __typename?: 'TheProvenanceCertificate';
@@ -138495,16 +139612,94 @@ export type TheProvenanceCertification = {
138495
139612
  /** APPROVED and unexpired on the certificate reference date. */
138496
139613
  validAtReference: Scalars['Boolean']['output'];
138497
139614
  };
138498
- /** A link in a custody chain that is missing, which keeps the certificate from being complete. */
138499
- export declare enum TheProvenanceGap {
139615
+ /** 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. */
139616
+ export type TheProvenanceCitation = {
139617
+ __typename?: 'TheProvenanceCitation';
139618
+ entityId: Scalars['ID']['output'];
139619
+ entityType: TheProvenanceEntityType;
139620
+ route: Scalars['String']['output'];
139621
+ };
139622
+ /** 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). */
139623
+ export declare enum TheProvenanceDirection {
139624
+ DOWNSTREAM = "DOWNSTREAM",
139625
+ UPSTREAM = "UPSTREAM"
139626
+ }
139627
+ /** Aggregated emissions footprint of one contributing asset. */
139628
+ export type TheProvenanceEmissionSummary = {
139629
+ __typename?: 'TheProvenanceEmissionSummary';
139630
+ assetId: Scalars['ID']['output'];
139631
+ assetName: Scalars['String']['output'];
139632
+ recordCount: Scalars['Int']['output'];
139633
+ totalCo2eTonnes: Scalars['Float']['output'];
139634
+ verifiedCount: Scalars['Int']['output'];
139635
+ };
139636
+ /** The entity kinds that participate in the custody chain. */
139637
+ export declare enum TheProvenanceEntityType {
139638
+ ASSET = "ASSET",
139639
+ INVENTORY_LOT = "INVENTORY_LOT",
139640
+ OFFTAKE_CONTRACT = "OFFTAKE_CONTRACT",
139641
+ PRODUCTION_RECORD = "PRODUCTION_RECORD",
139642
+ SHIPMENT = "SHIPMENT"
139643
+ }
139644
+ /** 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. */
139645
+ export type TheProvenanceExplanation = {
139646
+ __typename?: 'TheProvenanceExplanation';
139647
+ citations: Array<TheProvenanceCitation>;
139648
+ entityId: Scalars['ID']['output'];
139649
+ entityType: TheProvenanceEntityType;
139650
+ gaps: Array<TheProvenanceGap>;
139651
+ generatedByModel: Scalars['Boolean']['output'];
139652
+ /** Provider-qualified model id when a model produced the narrative. */
139653
+ model?: Maybe<Scalars['String']['output']>;
139654
+ narrative: Scalars['String']['output'];
139655
+ };
139656
+ /** A chain defect found while walking. `entityType`/`entityId` identify the record the gap belongs to when it belongs to one. */
139657
+ export type TheProvenanceGap = {
139658
+ __typename?: 'TheProvenanceGap';
139659
+ code: TheProvenanceGapCode;
139660
+ entityId?: Maybe<Scalars['ID']['output']>;
139661
+ entityType?: Maybe<TheProvenanceEntityType>;
139662
+ message: Scalars['String']['output'];
139663
+ };
139664
+ /** 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. */
139665
+ export declare enum TheProvenanceGapCode {
139666
+ /** An asset has production records but no emission record at all. */
139667
+ ASSET_PRODUCTION_WITHOUT_EMISSIONS = "ASSET_PRODUCTION_WITHOUT_EMISSIONS",
139668
+ /** A chain-relevant certificate has expired. */
139669
+ CERT_EXPIRED = "CERT_EXPIRED",
139670
+ /** A chain-relevant certificate is not APPROVED. */
139671
+ CERT_NOT_APPROVED = "CERT_NOT_APPROVED",
139672
+ /** A chain-of-custody certificate has no evidence document linked. */
139673
+ CERT_WITHOUT_EVIDENCE = "CERT_WITHOUT_EVIDENCE",
139674
+ /** A chain link crosses a workspace boundary and was not followed. */
139675
+ CROSS_WORKSPACE_LINK = "CROSS_WORKSPACE_LINK",
139676
+ /** An inventory lot has no producing asset linked. */
138500
139677
  LOT_WITHOUT_ASSET = "LOT_WITHOUT_ASSET",
138501
- NOT_DELIVERED = "NOT_DELIVERED",
138502
- NO_PRODUCTION_RECORD = "NO_PRODUCTION_RECORD",
138503
- NO_SOURCES = "NO_SOURCES",
138504
- NO_TRANSPORT_DOCUMENT = "NO_TRANSPORT_DOCUMENT",
138505
- NO_VALID_CERTIFICATION = "NO_VALID_CERTIFICATION",
138506
- UNSOURCED_VOLUME = "UNSOURCED_VOLUME"
139678
+ /** A shipment has no inventory-lot source linked. */
139679
+ SHIPMENT_WITHOUT_SOURCE = "SHIPMENT_WITHOUT_SOURCE"
138507
139680
  }
139681
+ /** 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. */
139682
+ export type TheProvenanceNode = {
139683
+ __typename?: 'TheProvenanceNode';
139684
+ deliveredAt?: Maybe<Scalars['DateTime']['output']>;
139685
+ entityId: Scalars['ID']['output'];
139686
+ entityType: TheProvenanceEntityType;
139687
+ /** Measured grade/quality where recorded. */
139688
+ grade?: Maybe<Scalars['Float']['output']>;
139689
+ /** Graph hops from the starting entity. */
139690
+ hops: Scalars['Int']['output'];
139691
+ /** Human label: asset name, lot code, shipment/contract reference, … */
139692
+ label: Scalars['String']['output'];
139693
+ periodEnd?: Maybe<Scalars['DateTime']['output']>;
139694
+ periodStart?: Maybe<Scalars['DateTime']['output']>;
139695
+ producedAt?: Maybe<Scalars['DateTime']['output']>;
139696
+ /** MFE-relative route of the real record page, e.g. `shipments/<id>`. */
139697
+ route: Scalars['String']['output'];
139698
+ status?: Maybe<Scalars['String']['output']>;
139699
+ unit?: Maybe<TheUnit>;
139700
+ /** Volume/quantity where the record carries one (production, lot, shipment). */
139701
+ volume?: Maybe<Scalars['Float']['output']>;
139702
+ };
138508
139703
  /** 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. */
138509
139704
  export type TheProvenanceSourceLink = {
138510
139705
  __typename?: 'TheProvenanceSourceLink';
@@ -138518,6 +139713,19 @@ export type TheProvenanceSourceLink = {
138518
139713
  productionRecords: Array<TheProductionRecord>;
138519
139714
  source: TheShipmentSource;
138520
139715
  };
139716
+ /** The deterministic traversal result: the walked chain, the contributing assets' emissions footprint, the compliance posture, and every gap. */
139717
+ export type TheProvenanceTrace = {
139718
+ __typename?: 'TheProvenanceTrace';
139719
+ certificates: Array<TheProvenanceCertSummary>;
139720
+ /** True only when the chain has no gaps. */
139721
+ complete: Scalars['Boolean']['output'];
139722
+ direction: TheProvenanceDirection;
139723
+ emissions: Array<TheProvenanceEmissionSummary>;
139724
+ entityId: Scalars['ID']['output'];
139725
+ entityType: TheProvenanceEntityType;
139726
+ gaps: Array<TheProvenanceGap>;
139727
+ nodes: Array<TheProvenanceNode>;
139728
+ };
138521
139729
  export type TheRecordEmissionInput = {
138522
139730
  assetId?: InputMaybe<Scalars['ID']['input']>;
138523
139731
  co2eTonnes: Scalars['Float']['input'];
@@ -138791,6 +139999,11 @@ export declare enum TheServiceContractStatus {
138791
139999
  SUSPENDED = "SUSPENDED",
138792
140000
  TERMINATED = "TERMINATED"
138793
140001
  }
140002
+ export type TheSetMaintenanceIntegrationsInput = {
140003
+ assetHandlerEnabled?: InputMaybe<Scalars['Boolean']['input']>;
140004
+ crewFoundryEnabled?: InputMaybe<Scalars['Boolean']['input']>;
140005
+ proServiceWorldEnabled?: InputMaybe<Scalars['Boolean']['input']>;
140006
+ };
138794
140007
  export type TheSetUnitConversionInput = {
138795
140008
  commodity: TheCommodityType;
138796
140009
  /** One fromUnit equals this many toUnit (> 0). */
@@ -139062,6 +140275,22 @@ export type TheUpdateAssetInput = {
139062
140275
  waterDepth?: InputMaybe<Scalars['Float']['input']>;
139063
140276
  workingInterestPct?: InputMaybe<Scalars['Float']['input']>;
139064
140277
  };
140278
+ /** 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. */
140279
+ export type TheUpdateChainNetworkInput = {
140280
+ carbonBudgetTonnes?: InputMaybe<Scalars['Float']['input']>;
140281
+ carbonPricePerTonne?: InputMaybe<Scalars['Float']['input']>;
140282
+ currency?: InputMaybe<Scalars['String']['input']>;
140283
+ description?: InputMaybe<Scalars['String']['input']>;
140284
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
140285
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
140286
+ links?: InputMaybe<Array<TheChainLinkInput>>;
140287
+ method?: InputMaybe<TheForecastMethod>;
140288
+ name?: InputMaybe<Scalars['String']['input']>;
140289
+ nodes?: InputMaybe<Array<TheChainNodeInput>>;
140290
+ objective?: InputMaybe<TheChainObjective>;
140291
+ shortfallPenalty?: InputMaybe<Scalars['Float']['input']>;
140292
+ useWeather?: InputMaybe<Scalars['Boolean']['input']>;
140293
+ };
139065
140294
  export type TheUpdateEquipmentInput = {
139066
140295
  category?: InputMaybe<TheEquipmentCategory>;
139067
140296
  criticality?: InputMaybe<TheMaintenancePriority>;
@@ -139090,6 +140319,12 @@ export type TheUpdateForecastScenarioInput = {
139090
140319
  storageCapacity?: InputMaybe<Scalars['Float']['input']>;
139091
140320
  unit?: InputMaybe<TheUnit>;
139092
140321
  };
140322
+ /** Fields left out keep their stored value. The frozen forecast itself never changes. */
140323
+ export type TheUpdateForecastSnapshotInput = {
140324
+ driftThresholdPct?: InputMaybe<Scalars['Float']['input']>;
140325
+ name?: InputMaybe<Scalars['String']['input']>;
140326
+ notes?: InputMaybe<Scalars['String']['input']>;
140327
+ };
139093
140328
  export type TheUpdateMaintenanceScheduleInput = {
139094
140329
  active?: InputMaybe<Scalars['Boolean']['input']>;
139095
140330
  description?: InputMaybe<Scalars['String']['input']>;
@@ -139169,6 +140404,19 @@ export type TheUpdateWorkOrderInput = {
139169
140404
  scheduledStart?: InputMaybe<Scalars['DateTime']['input']>;
139170
140405
  title?: InputMaybe<Scalars['String']['input']>;
139171
140406
  };
140407
+ /** 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. */
140408
+ export declare enum TheValuationStatus {
140409
+ AVAILABLE = "AVAILABLE",
140410
+ UNAVAILABLE = "UNAVAILABLE"
140411
+ }
140412
+ /** Valued contract amounts per currency: sales receivable, purchases payable. */
140413
+ export type TheValuationTotal = {
140414
+ __typename?: 'TheValuationTotal';
140415
+ currency: Scalars['String']['output'];
140416
+ net: Scalars['Float']['output'];
140417
+ purchases: Scalars['Float']['output'];
140418
+ sales: Scalars['Float']['output'];
140419
+ };
139172
140420
  export type TheVintageOffsetRow = {
139173
140421
  __typename?: 'TheVintageOffsetRow';
139174
140422
  /** True when the vintage is more than five years older than the reporting period. */
@@ -139177,8 +140425,79 @@ export type TheVintageOffsetRow = {
139177
140425
  tonnes: Scalars['Float']['output'];
139178
140426
  vintageYear: Scalars['Int']['output'];
139179
140427
  };
140428
+ export type TheWeatherCalibration = {
140429
+ __typename?: 'TheWeatherCalibration';
140430
+ /** Output per unit of driver (per kWh/m² for solar, at capacity factor 1 for wind). */
140431
+ coefficient: Scalars['Float']['output'];
140432
+ method: TheWeatherCalibrationMethod;
140433
+ /** Days where both production and historical weather are known. */
140434
+ observations: Scalars['Int']['output'];
140435
+ rSquared?: Maybe<Scalars['Float']['output']>;
140436
+ /** Standard deviation of the daily residuals. */
140437
+ sigma: Scalars['Float']['output'];
140438
+ };
140439
+ /** 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. */
140440
+ export declare enum TheWeatherCalibrationMethod {
140441
+ FITTED = "FITTED",
140442
+ NONE = "NONE",
140443
+ PHYSICAL = "PHYSICAL"
140444
+ }
140445
+ export type TheWeatherForecastPoint = {
140446
+ __typename?: 'TheWeatherForecastPoint';
140447
+ date: Scalars['DateTime']['output'];
140448
+ /** Weather driver for the day: kWh/m² (solar) or turbine capacity factor (wind). */
140449
+ driver?: Maybe<Scalars['Float']['output']>;
140450
+ high: Scalars['Float']['output'];
140451
+ low: Scalars['Float']['output'];
140452
+ source: TheWeatherPointSource;
140453
+ value: Scalars['Float']['output'];
140454
+ };
140455
+ export type TheWeatherGenerationForecast = {
140456
+ __typename?: 'TheWeatherGenerationForecast';
140457
+ assetId: Scalars['ID']['output'];
140458
+ assetName: Scalars['String']['output'];
140459
+ /** Hold-out MAPE of the weather model (fit on 80% of overlapping days, scored on the rest). */
140460
+ backtestMape?: Maybe<Scalars['Float']['output']>;
140461
+ calibration: TheWeatherCalibration;
140462
+ capacityPerDay?: Maybe<Scalars['Float']['output']>;
140463
+ dailyRate: Scalars['Float']['output'];
140464
+ history: Array<TheWeatherHistoryPoint>;
140465
+ historyDays: Scalars['Int']['output'];
140466
+ horizonDays: Scalars['Int']['output'];
140467
+ /** Coordinates sent to the provider, rounded to two decimals. */
140468
+ latitude: Scalars['Float']['output'];
140469
+ longitude: Scalars['Float']['output'];
140470
+ points: Array<TheWeatherForecastPoint>;
140471
+ /** Weather data provider (open-meteo). */
140472
+ provider: Scalars['String']['output'];
140473
+ technology: TheWeatherTechnology;
140474
+ totalForecast: Scalars['Float']['output'];
140475
+ unit: TheUnit;
140476
+ warnings: Array<Scalars['String']['output']>;
140477
+ /** Leading forecast days covered by the numerical weather forecast. */
140478
+ weatherDays: Scalars['Int']['output'];
140479
+ };
140480
+ export type TheWeatherHistoryPoint = {
140481
+ __typename?: 'TheWeatherHistoryPoint';
140482
+ actual?: Maybe<Scalars['Float']['output']>;
140483
+ date: Scalars['DateTime']['output'];
140484
+ driver?: Maybe<Scalars['Float']['output']>;
140485
+ modelled?: Maybe<Scalars['Float']['output']>;
140486
+ };
140487
+ /** FORECAST: the day is inside the weather provider's forecast window. CLIMATOLOGY: the same calendar day last year (or the history mean) stands in. */
140488
+ export declare enum TheWeatherPointSource {
140489
+ CLIMATOLOGY = "CLIMATOLOGY",
140490
+ FORECAST = "FORECAST"
140491
+ }
140492
+ /** Weather driver of a renewable asset. SOLAR uses daily irradiation; WIND uses a turbine power curve on hourly hub-height wind speed. */
140493
+ export declare enum TheWeatherTechnology {
140494
+ SOLAR = "SOLAR",
140495
+ WIND = "WIND"
140496
+ }
139180
140497
  export type TheWorkOrder = {
139181
140498
  __typename?: 'TheWorkOrder';
140499
+ /** The AssetHandler mirror of this work order, if any. */
140500
+ assetHandlerLink?: Maybe<TheWorkOrderExternalLink>;
139182
140501
  assetId: Scalars['ID']['output'];
139183
140502
  assigneeId?: Maybe<Scalars['ID']['output']>;
139184
140503
  cancelledAt?: Maybe<Scalars['DateTime']['output']>;
@@ -139193,6 +140512,8 @@ export type TheWorkOrder = {
139193
140512
  downtimeHours?: Maybe<Scalars['Float']['output']>;
139194
140513
  equipment?: Maybe<TheEquipment>;
139195
140514
  equipmentId?: Maybe<Scalars['ID']['output']>;
140515
+ /** The external crew or contractor assigned to this work order, if any. */
140516
+ externalAssignment?: Maybe<TheWorkOrderExternalAssignment>;
139196
140517
  id: Scalars['ID']['output'];
139197
140518
  /** The production record whose downtime this work order explains, if attributed. */
139198
140519
  linkedProductionRecordId?: Maybe<Scalars['ID']['output']>;
@@ -139214,11 +140535,62 @@ export type TheWorkOrder = {
139214
140535
  vendorSupplierId?: Maybe<Scalars['ID']['output']>;
139215
140536
  workspaceId: Scalars['ID']['output'];
139216
140537
  };
140538
+ export type TheWorkOrderBulkSyncResult = {
140539
+ __typename?: 'TheWorkOrderBulkSyncResult';
140540
+ conflicts: Scalars['Int']['output'];
140541
+ created: Scalars['Int']['output'];
140542
+ failed: Scalars['Int']['output'];
140543
+ inSync: Scalars['Int']['output'];
140544
+ processed: Scalars['Int']['output'];
140545
+ results: Array<TheWorkOrderSyncResult>;
140546
+ updated: Scalars['Int']['output'];
140547
+ };
139217
140548
  export type TheWorkOrderConnection = {
139218
140549
  __typename?: 'TheWorkOrderConnection';
139219
140550
  items: Array<TheWorkOrder>;
139220
140551
  pageInfo: ThePageInfo;
139221
140552
  };
140553
+ /** Assignment of a work order to an external crew or contractor. */
140554
+ export type TheWorkOrderExternalAssignment = {
140555
+ __typename?: 'TheWorkOrderExternalAssignment';
140556
+ /** Crew members holding the required skill when the work was assigned. */
140557
+ certifiedMemberCount?: Maybe<Scalars['Int']['output']>;
140558
+ createdAt: Scalars['DateTime']['output'];
140559
+ credentialExpiresAt?: Maybe<Scalars['DateTime']['output']>;
140560
+ /** The ProServiceWorld credential the contractor was checked against. */
140561
+ credentialId?: Maybe<Scalars['ID']['output']>;
140562
+ displayName: Scalars['String']['output'];
140563
+ /** CrewFoundry crew id or ProServiceWorld practitioner id. */
140564
+ externalId: Scalars['ID']['output'];
140565
+ id: Scalars['ID']['output'];
140566
+ kind: TheExternalAssigneeKind;
140567
+ /** CREWFOUNDRY or PROSERVICEWORLD. */
140568
+ provider: Scalars['String']['output'];
140569
+ /** The CrewFoundry skill (certification) the crew was checked against. */
140570
+ requiredSkillId?: Maybe<Scalars['ID']['output']>;
140571
+ requiredSkillName?: Maybe<Scalars['String']['output']>;
140572
+ updatedAt: Scalars['DateTime']['output'];
140573
+ workOrderId: Scalars['ID']['output'];
140574
+ };
140575
+ /** Link from a TheGlobalFuel work order to its AssetHandler mirror, with the bookkeeping of the last sync. */
140576
+ export type TheWorkOrderExternalLink = {
140577
+ __typename?: 'TheWorkOrderExternalLink';
140578
+ createdAt: Scalars['DateTime']['output'];
140579
+ /** The AssetHandler work order downtime in hours as last seen. */
140580
+ externalDowntimeHours?: Maybe<Scalars['Float']['output']>;
140581
+ /** The AssetHandler work order status as last seen. */
140582
+ externalStatus?: Maybe<Scalars['String']['output']>;
140583
+ /** Null while the mirror is pending (its creation failed and will be retried). */
140584
+ externalWorkOrderId?: Maybe<Scalars['ID']['output']>;
140585
+ id: Scalars['ID']['output'];
140586
+ lastPulledAt?: Maybe<Scalars['DateTime']['output']>;
140587
+ lastPushedAt?: Maybe<Scalars['DateTime']['output']>;
140588
+ lastSyncError?: Maybe<Scalars['String']['output']>;
140589
+ lastSyncOutcome?: Maybe<TheWorkOrderSyncOutcome>;
140590
+ provider: Scalars['String']['output'];
140591
+ updatedAt: Scalars['DateTime']['output'];
140592
+ workOrderId: Scalars['ID']['output'];
140593
+ };
139222
140594
  export declare enum TheWorkOrderStatus {
139223
140595
  CANCELLED = "CANCELLED",
139224
140596
  CLOSED = "CLOSED",
@@ -139232,6 +140604,31 @@ export type TheWorkOrderStatusCount = {
139232
140604
  count: Scalars['Int']['output'];
139233
140605
  status: TheWorkOrderStatus;
139234
140606
  };
140607
+ /** Outcome of reconciling a work order with its AssetHandler mirror. */
140608
+ export declare enum TheWorkOrderSyncOutcome {
140609
+ /** The two sides diverged; nothing was overwritten. */
140610
+ CONFLICT = "CONFLICT",
140611
+ /** The AssetHandler mirror was created. */
140612
+ CREATED = "CREATED",
140613
+ /** Both sides already agree. */
140614
+ IN_SYNC = "IN_SYNC",
140615
+ /** AssetHandler refused the change (permissions, validation or a missing record). */
140616
+ REJECTED = "REJECTED",
140617
+ /** AssetHandler could not be reached. */
140618
+ UNREACHABLE = "UNREACHABLE",
140619
+ /** One side was brought up to date with the other. */
140620
+ UPDATED = "UPDATED"
140621
+ }
140622
+ export type TheWorkOrderSyncResult = {
140623
+ __typename?: 'TheWorkOrderSyncResult';
140624
+ /** TheGlobalFuel statuses applied from AssetHandler, in order. */
140625
+ appliedStatuses: Array<TheWorkOrderStatus>;
140626
+ link?: Maybe<TheWorkOrderExternalLink>;
140627
+ message?: Maybe<Scalars['String']['output']>;
140628
+ outcome: TheWorkOrderSyncOutcome;
140629
+ workOrder?: Maybe<TheWorkOrder>;
140630
+ workOrderId: Scalars['ID']['output'];
140631
+ };
139235
140632
  /** Optional details captured with a lifecycle transition. Scheduling fields apply to SCHEDULED; completion fields apply to COMPLETED. */
139236
140633
  export type TheWorkOrderTransitionInput = {
139237
140634
  completionNotes?: InputMaybe<Scalars['String']['input']>;
@@ -139412,6 +140809,10 @@ export type TimeCampusAppletReviewItem = {
139412
140809
  applet: TimeCampusThirdPartyApplet;
139413
140810
  version: TimeCampusThirdPartyAppletVersion;
139414
140811
  };
140812
+ export declare enum TimeCampusAppletSource {
140813
+ MARKETPLACE = "MARKETPLACE",
140814
+ WORKSPACE = "WORKSPACE"
140815
+ }
139415
140816
  export declare enum TimeCampusAppletVersionStatus {
139416
140817
  DRAFT = "DRAFT",
139417
140818
  IN_REVIEW = "IN_REVIEW",
@@ -140345,6 +141746,68 @@ export type TimeCampusLoadWeek = {
140345
141746
  weekEnd: Scalars['String']['output'];
140346
141747
  weekStart: Scalars['String']['output'];
140347
141748
  };
141749
+ /** An applet's listing in the public TimeCampus marketplace. */
141750
+ export type TimeCampusMarketplaceListing = {
141751
+ __typename?: 'TimeCampusMarketplaceListing';
141752
+ category: TimeCampusAppletCategory;
141753
+ createdAt: Scalars['DateTime']['output'];
141754
+ description: Scalars['String']['output'];
141755
+ developerId: Scalars['ID']['output'];
141756
+ developerName?: Maybe<Scalars['String']['output']>;
141757
+ icon: Scalars['String']['output'];
141758
+ id: Scalars['ID']['output'];
141759
+ key: Scalars['String']['output'];
141760
+ latestSubmission: TimeCampusMarketplaceSubmission;
141761
+ /** The certified submission workspaces install, if any. */
141762
+ liveSubmission?: Maybe<TimeCampusMarketplaceSubmission>;
141763
+ name: Scalars['String']['output'];
141764
+ sourceAppletId: Scalars['ID']['output'];
141765
+ /** Workspace the applet was registered in. */
141766
+ sourceWorkspaceId: Scalars['ID']['output'];
141767
+ status: TimeCampusMarketplaceListingStatus;
141768
+ /** Every submission, newest first. */
141769
+ submissions: Array<TimeCampusMarketplaceSubmission>;
141770
+ suspendedAt?: Maybe<Scalars['DateTime']['output']>;
141771
+ suspendedReason?: Maybe<Scalars['String']['output']>;
141772
+ };
141773
+ export declare enum TimeCampusMarketplaceListingStatus {
141774
+ IN_REVIEW = "IN_REVIEW",
141775
+ PUBLISHED = "PUBLISHED",
141776
+ REJECTED = "REJECTED",
141777
+ SUSPENDED = "SUSPENDED",
141778
+ WITHDRAWN = "WITHDRAWN"
141779
+ }
141780
+ export type TimeCampusMarketplaceReviewItem = {
141781
+ __typename?: 'TimeCampusMarketplaceReviewItem';
141782
+ listing: TimeCampusMarketplaceListing;
141783
+ submission: TimeCampusMarketplaceSubmission;
141784
+ };
141785
+ /** One version of an applet submitted for platform certification. */
141786
+ export type TimeCampusMarketplaceSubmission = {
141787
+ __typename?: 'TimeCampusMarketplaceSubmission';
141788
+ certifiedAt?: Maybe<Scalars['DateTime']['output']>;
141789
+ id: Scalars['ID']['output'];
141790
+ listingId: Scalars['ID']['output'];
141791
+ /** The manifest as it was when submitted. */
141792
+ manifest: Scalars['JSON']['output'];
141793
+ requestedScopes: Array<Scalars['String']['output']>;
141794
+ /** Platform reviewer notes; always set on a rejection. */
141795
+ reviewNotes?: Maybe<Scalars['String']['output']>;
141796
+ reviewedAt?: Maybe<Scalars['DateTime']['output']>;
141797
+ reviewedBy?: Maybe<Scalars['ID']['output']>;
141798
+ status: TimeCampusMarketplaceSubmissionStatus;
141799
+ submittedAt: Scalars['DateTime']['output'];
141800
+ submittedBy: Scalars['ID']['output'];
141801
+ version: Scalars['String']['output'];
141802
+ };
141803
+ export declare enum TimeCampusMarketplaceSubmissionStatus {
141804
+ CERTIFIED = "CERTIFIED",
141805
+ IN_REVIEW = "IN_REVIEW",
141806
+ REJECTED = "REJECTED",
141807
+ /** A later submission was certified. */
141808
+ SUPERSEDED = "SUPERSEDED",
141809
+ WITHDRAWN = "WITHDRAWN"
141810
+ }
140348
141811
  export declare enum TimeCampusOwnershipContext {
140349
141812
  CORPORATE = "CORPORATE",
140350
141813
  PERSONAL = "PERSONAL"
@@ -140511,6 +141974,8 @@ export type TimeCampusStoreApplet = {
140511
141974
  key: Scalars['String']['output'];
140512
141975
  name: Scalars['String']['output'];
140513
141976
  requestedScopes: Array<Scalars['String']['output']>;
141977
+ /** WORKSPACE for an applet registered in this workspace, MARKETPLACE for a certified public one (id is then the marketplace listing id). */
141978
+ source: TimeCampusAppletSource;
140514
141979
  /** Scopes the live version asks for that this workspace has not granted (re-consent to add them). */
140515
141980
  ungrantedScopes: Array<Scalars['String']['output']>;
140516
141981
  version: Scalars['String']['output'];
@@ -140581,6 +142046,8 @@ export type TimeCampusThirdPartyApplet = {
140581
142046
  latestVersion: TimeCampusThirdPartyAppletVersion;
140582
142047
  /** The version that is live (published or suspended), if any. */
140583
142048
  liveVersion?: Maybe<TimeCampusThirdPartyAppletVersion>;
142049
+ /** The applet's public marketplace listing, if it was ever offered. */
142050
+ marketplace?: Maybe<TimeCampusMarketplaceListing>;
140584
142051
  name: Scalars['String']['output'];
140585
142052
  status: TimeCampusAppletListingStatus;
140586
142053
  /** Every version, newest first. */
@@ -140878,6 +142345,8 @@ export type TimeCampusWidgetFrame = {
140878
142345
  height: Scalars['Int']['output'];
140879
142346
  /** Origin of url; the host only frames this origin. */
140880
142347
  origin: Scalars['String']['output'];
142348
+ /** Registry the applet key belongs to; pass it to timeCampusAppletBridgeData. */
142349
+ source: TimeCampusAppletSource;
140881
142350
  /** Absolute HTTPS URL of the widget page. */
140882
142351
  url: Scalars['String']['output'];
140883
142352
  widgetKey: Scalars['String']['output'];