@burdenoff/microfe-movethewheels 2026.1107.7 → 2026.1108.1

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.
@@ -5772,6 +5772,12 @@ export type AthCompleteSessionInput = {
5772
5772
  feedback?: InputMaybe<Scalars['String']['input']>;
5773
5773
  rating?: InputMaybe<Scalars['Int']['input']>;
5774
5774
  };
5775
+ export type AthConnectPaymentAccountInput = {
5776
+ /** Optional email to pre-fill the processor's onboarding form. */
5777
+ email?: InputMaybe<Scalars['String']['input']>;
5778
+ /** Where the processor sends the club back to; must be on an AthleteBridge app origin. */
5779
+ returnUrl: Scalars['String']['input'];
5780
+ };
5775
5781
  export type AthCreateFixtureInput = {
5776
5782
  awayTeamId?: InputMaybe<Scalars['ID']['input']>;
5777
5783
  competition?: InputMaybe<Scalars['String']['input']>;
@@ -6024,6 +6030,8 @@ export type AthMyRegistration = {
6024
6030
  formSlug: Scalars['String']['output'];
6025
6031
  formTitle: Scalars['String']['output'];
6026
6032
  id: Scalars['ID']['output'];
6033
+ /** True when the club takes online payments for this registration (BOFF-10805). */
6034
+ onlinePaymentAvailable: Scalars['Boolean']['output'];
6027
6035
  participantName: Scalars['String']['output'];
6028
6036
  paymentStatus: AthRegistrationPaymentStatus;
6029
6037
  status: AthRegistrationSubmissionStatus;
@@ -6034,11 +6042,45 @@ export type AthMyRegistrationConnection = {
6034
6042
  items: Array<AthMyRegistration>;
6035
6043
  pageInfo: AthPageInfo;
6036
6044
  };
6045
+ export type AthOnlinePaymentsStatus = {
6046
+ __typename?: 'AthOnlinePaymentsStatus';
6047
+ account?: Maybe<AthPaymentAccount>;
6048
+ /** True when families can pay this club online right now. */
6049
+ onlineCheckoutAvailable: Scalars['Boolean']['output'];
6050
+ /** True when this environment has a payment processor configured. */
6051
+ processorConfigured: Scalars['Boolean']['output'];
6052
+ /** True when the configured processor is in test mode (no real money moves). */
6053
+ testMode: Scalars['Boolean']['output'];
6054
+ };
6037
6055
  export type AthPageInfo = {
6038
6056
  __typename?: 'AthPageInfo';
6039
6057
  cursor?: Maybe<Scalars['String']['output']>;
6040
6058
  hasMore: Scalars['Boolean']['output'];
6041
6059
  };
6060
+ /** The club's connected processor account. */
6061
+ export type AthPaymentAccount = {
6062
+ __typename?: 'AthPaymentAccount';
6063
+ /** Processor account id (Stripe acct_...). */
6064
+ accountId: Scalars['String']['output'];
6065
+ /** True once the processor lets the account take card payments. */
6066
+ chargesEnabled: Scalars['Boolean']['output'];
6067
+ createdAt: Scalars['DateTime']['output'];
6068
+ /** True once the club has finished the processor's onboarding form. */
6069
+ detailsSubmitted: Scalars['Boolean']['output'];
6070
+ lastSyncedAt?: Maybe<Scalars['DateTime']['output']>;
6071
+ payoutsEnabled: Scalars['Boolean']['output'];
6072
+ provider: AthPaymentProvider;
6073
+ };
6074
+ /** A single-use link to the processor's hosted onboarding for the club. */
6075
+ export type AthPaymentAccountLink = {
6076
+ __typename?: 'AthPaymentAccountLink';
6077
+ account: AthPaymentAccount;
6078
+ expiresAt: Scalars['DateTime']['output'];
6079
+ url: Scalars['String']['output'];
6080
+ };
6081
+ export declare enum AthPaymentProvider {
6082
+ STRIPE = "STRIPE"
6083
+ }
6042
6084
  export type AthPerformanceMetric = {
6043
6085
  __typename?: 'AthPerformanceMetric';
6044
6086
  athleteId: Scalars['ID']['output'];
@@ -6125,6 +6167,8 @@ export type AthPublicRegistrationForm = {
6125
6167
  fields: Array<AthRegistrationField>;
6126
6168
  id: Scalars['ID']['output'];
6127
6169
  isOpen: Scalars['Boolean']['output'];
6170
+ /** True when the club takes online payments, so a family can pay right after submitting (BOFF-10805). */
6171
+ onlinePaymentAvailable: Scalars['Boolean']['output'];
6128
6172
  opensAt?: Maybe<Scalars['DateTime']['output']>;
6129
6173
  season?: Maybe<Scalars['String']['output']>;
6130
6174
  slug: Scalars['String']['output'];
@@ -6177,6 +6221,16 @@ export type AthRefundRegistrationPaymentInput = {
6177
6221
  amount: Scalars['Int']['input'];
6178
6222
  reason: Scalars['String']['input'];
6179
6223
  };
6224
+ /** A processor checkout the family is redirected to. */
6225
+ export type AthRegistrationCheckoutSession = {
6226
+ __typename?: 'AthRegistrationCheckoutSession';
6227
+ /** Amount requested, in minor units of currency. */
6228
+ amount: Scalars['Int']['output'];
6229
+ checkoutId: Scalars['ID']['output'];
6230
+ currency: Scalars['String']['output'];
6231
+ expiresAt?: Maybe<Scalars['DateTime']['output']>;
6232
+ url: Scalars['String']['output'];
6233
+ };
6180
6234
  /** Per-currency totals in minor units. Each registration's own amounts fit a 32-bit Int, but a workspace-wide sum can exceed it, so the aggregates are Float (always whole numbers, exact up to 2^53). */
6181
6235
  export type AthRegistrationCurrencyTotal = {
6182
6236
  __typename?: 'AthRegistrationCurrencyTotal';
@@ -6294,6 +6348,8 @@ export type AthRegistrationPayment = {
6294
6348
  /** amount - refundedAmount, or 0 for a voided payment. */
6295
6349
  netAmount: Scalars['Int']['output'];
6296
6350
  note?: Maybe<Scalars['String']['output']>;
6351
+ /** Set when the payment was collected through the club's connected processor account (BOFF-10805). */
6352
+ processor?: Maybe<AthPaymentProvider>;
6297
6353
  receivedAt: Scalars['DateTime']['output'];
6298
6354
  reference?: Maybe<Scalars['String']['output']>;
6299
6355
  refundReason?: Maybe<Scalars['String']['output']>;
@@ -6338,6 +6394,17 @@ export type AthRegistrationPaymentSummary = {
6338
6394
  totals: Array<AthRegistrationCurrencyTotal>;
6339
6395
  unpaidCount: Scalars['Int']['output'];
6340
6396
  };
6397
+ /** What accepting a registration for a team-linked form did to the team's roster. */
6398
+ export declare enum AthRegistrationRosterOutcome {
6399
+ /** A new roster member was created for the athlete. */
6400
+ ADDED = "ADDED",
6401
+ /** The athlete was already on the team's roster; nothing was created. */
6402
+ ALREADY_ON_ROSTER = "ALREADY_ON_ROSTER",
6403
+ /** The registration has no platform user for the athlete, so staff must add them by hand. */
6404
+ NO_LINKED_USER = "NO_LINKED_USER",
6405
+ /** The linked team was archived or deleted before the registration was accepted. */
6406
+ TEAM_UNAVAILABLE = "TEAM_UNAVAILABLE"
6407
+ }
6341
6408
  export declare enum AthRegistrationSource {
6342
6409
  /** Submitted by the family through the share link. */
6343
6410
  SELF_SERVICE = "SELF_SERVICE",
@@ -6359,11 +6426,21 @@ export type AthRegistrationSubmission = {
6359
6426
  formId: Scalars['ID']['output'];
6360
6427
  formTitle: Scalars['String']['output'];
6361
6428
  id: Scalars['ID']['output'];
6429
+ /** True when the self-service registrant said they are the athlete (submittedByUserId is the participant). */
6430
+ participantIsRegistrant: Scalars['Boolean']['output'];
6362
6431
  participantName: Scalars['String']['output'];
6363
6432
  participantUserId?: Maybe<Scalars['ID']['output']>;
6364
6433
  paymentStatus: AthRegistrationPaymentStatus;
6365
6434
  reviewNotes?: Maybe<Scalars['String']['output']>;
6366
6435
  reviewedAt?: Maybe<Scalars['DateTime']['output']>;
6436
+ /** The roster member the acceptance created or found. */
6437
+ rosterMemberId?: Maybe<Scalars['ID']['output']>;
6438
+ /** Roster outcome of the last acceptance of a team-linked form; null otherwise. */
6439
+ rosterOutcome?: Maybe<AthRegistrationRosterOutcome>;
6440
+ /** The team the acceptance targeted. */
6441
+ rosterTeamId?: Maybe<Scalars['ID']['output']>;
6442
+ /** Name of that team, when it still exists. */
6443
+ rosterTeamName?: Maybe<Scalars['String']['output']>;
6367
6444
  selectedFeeIds: Array<Scalars['ID']['output']>;
6368
6445
  source: AthRegistrationSource;
6369
6446
  status: AthRegistrationSubmissionStatus;
@@ -6466,12 +6543,19 @@ export type AthStandingConnection = {
6466
6543
  items: Array<AthStanding>;
6467
6544
  pageInfo: AthPageInfo;
6468
6545
  };
6546
+ export type AthStartRegistrationCheckoutInput = {
6547
+ /** Where the processor sends the family back to; must be on an AthleteBridge app origin. */
6548
+ returnUrl: Scalars['String']['input'];
6549
+ submissionId: Scalars['ID']['input'];
6550
+ };
6469
6551
  export type AthSubmitRegistrationInput = {
6470
6552
  /** Answers keyed by AthRegistrationField.key. */
6471
6553
  answers?: InputMaybe<Scalars['JSON']['input']>;
6472
6554
  contactEmail?: InputMaybe<Scalars['String']['input']>;
6473
6555
  contactName?: InputMaybe<Scalars['String']['input']>;
6474
6556
  contactPhone?: InputMaybe<Scalars['String']['input']>;
6557
+ /** Set when the signed-in registrant is the athlete, so acceptance can add them to the team roster. */
6558
+ participantIsRegistrant?: InputMaybe<Scalars['Boolean']['input']>;
6475
6559
  participantName: Scalars['String']['input'];
6476
6560
  /** OPTIONAL fees the registrant opts into; REQUIRED fees are always included. */
6477
6561
  selectedFeeIds?: InputMaybe<Array<Scalars['ID']['input']>>;
@@ -8583,6 +8667,99 @@ export type BigConsoleInstantiateDashboardTemplateInput = {
8583
8667
  /** Dashboard visibility */
8584
8668
  visibility?: InputMaybe<BigConsoleDashboardVisibility>;
8585
8669
  };
8670
+ /** A persisted narrative: the console explaining itself, with citations. */
8671
+ export type BigConsoleNarrative = {
8672
+ __typename?: 'BigConsoleNarrative';
8673
+ /** Structured, cited claims (empty on DECLINED/ERROR). */
8674
+ claims: Array<BigConsoleNarrativeClaim>;
8675
+ /** When the narrative was created. */
8676
+ createdAt: Scalars['DateTime']['output'];
8677
+ /** Dashboard the narrative belongs to (null for sink-only anomaly runs). */
8678
+ dashboardId?: Maybe<Scalars['ID']['output']>;
8679
+ /** Primary DataSink the narrative grounded in. */
8680
+ dataSinkId?: Maybe<Scalars['ID']['output']>;
8681
+ /** Why the narrative declined (set only when status is DECLINED). */
8682
+ declineReason?: Maybe<Scalars['String']['output']>;
8683
+ /** Narrative ID. */
8684
+ id: Scalars['ID']['output'];
8685
+ /** What the narrative explains. */
8686
+ kind: BigConsoleNarrativeKind;
8687
+ /** Model that produced the narrative (null on decline paths with no call). */
8688
+ model?: Maybe<Scalars['String']['output']>;
8689
+ /** Outcome of the run. */
8690
+ status: BigConsoleNarrativeStatus;
8691
+ /** Human-readable summary. On DECLINED this is the refusal wording. */
8692
+ summary: Scalars['String']['output'];
8693
+ /** Prompt tokens consumed by the run. */
8694
+ tokensIn?: Maybe<Scalars['Int']['output']>;
8695
+ /** Completion tokens produced by the run. */
8696
+ tokensOut?: Maybe<Scalars['Int']['output']>;
8697
+ /** How the narrative was triggered. */
8698
+ trigger: BigConsoleNarrativeTrigger;
8699
+ /** Widget the narrative explains (widget/dashboard kinds). */
8700
+ widgetId?: Maybe<Scalars['ID']['output']>;
8701
+ };
8702
+ /** A resolvable pointer to the data that supports one narrative claim. */
8703
+ export type BigConsoleNarrativeCitation = {
8704
+ __typename?: 'BigConsoleNarrativeCitation';
8705
+ /** The DataSink that carried the data. */
8706
+ dataSinkId?: Maybe<Scalars['ID']['output']>;
8707
+ /** The concrete field within the sink/parser rows the claim is about. */
8708
+ field?: Maybe<Scalars['String']['output']>;
8709
+ /** The Parser that shaped the rows (when the widget binds one). */
8710
+ parserId?: Maybe<Scalars['ID']['output']>;
8711
+ /** Clickable route to the evidence (e.g. /bigconsole/datasinks/:id). */
8712
+ route: Scalars['String']['output'];
8713
+ /** The Widget the narrative explains. */
8714
+ widgetId?: Maybe<Scalars['ID']['output']>;
8715
+ };
8716
+ /** One factual statement in a narrative. Every claim MUST carry at least one citation — an uncited claim is dropped before the narrative is persisted. */
8717
+ export type BigConsoleNarrativeClaim = {
8718
+ __typename?: 'BigConsoleNarrativeClaim';
8719
+ /** The evidence behind the claim. */
8720
+ citations: Array<BigConsoleNarrativeCitation>;
8721
+ /** The claim text, written for a human reader. */
8722
+ text: Scalars['String']['output'];
8723
+ };
8724
+ /** Runtime state of the narrative feature for the calling workspace. */
8725
+ export type BigConsoleNarrativeFeatureStatus = {
8726
+ __typename?: 'BigConsoleNarrativeFeatureStatus';
8727
+ /** Whether the workspace's bigconsole.ai.credits gate currently allows a call. */
8728
+ creditsAvailable: Scalars['Boolean']['output'];
8729
+ /** Server-side narrative flag (off by default). */
8730
+ enabled: Scalars['Boolean']['output'];
8731
+ /** Model provider configured (PROMPT_LLM_ENABLED + OPENAI_API_KEY). */
8732
+ modelConfigured: Scalars['Boolean']['output'];
8733
+ };
8734
+ /** What a narrative explains. */
8735
+ export declare enum BigConsoleNarrativeKind {
8736
+ /** An explanation of a fired alert (triggered by the alert runtime's events). */
8737
+ ANOMALY = "ANOMALY",
8738
+ /** An explanation across every widget on a dashboard. */
8739
+ DASHBOARD = "DASHBOARD",
8740
+ /** A scheduled workspace/console digest (FluidGrids-triggered). */
8741
+ DIGEST = "DIGEST",
8742
+ /** An explanation of a single widget's bound data. */
8743
+ WIDGET = "WIDGET"
8744
+ }
8745
+ /** Outcome of a narrative run. */
8746
+ export declare enum BigConsoleNarrativeStatus {
8747
+ /** The narrative completed with a summary and cited claims. */
8748
+ COMPLETED = "COMPLETED",
8749
+ /** The narrative declined (error/stale sink, model unavailable, or no credits). */
8750
+ DECLINED = "DECLINED",
8751
+ /** The narrative run failed unexpectedly. */
8752
+ ERROR = "ERROR"
8753
+ }
8754
+ /** How the narrative was triggered. */
8755
+ export declare enum BigConsoleNarrativeTrigger {
8756
+ /** An alert execution fired (the BOFF-3556 alert runtime's matched outcome). */
8757
+ EVENT = "EVENT",
8758
+ /** A user clicked the explain affordance (explainWidget / explainDashboard). */
8759
+ MANUAL = "MANUAL",
8760
+ /** A FluidGrids scheduled workflow invoked the console digest. */
8761
+ SCHEDULED = "SCHEDULED"
8762
+ }
8586
8763
  /** Input for rating a template */
8587
8764
  export type BigConsoleRateDashboardTemplateInput = {
8588
8765
  /** Rating value (1-5) */
@@ -18335,6 +18512,11 @@ export type ConfigureShipmentStatusSourceInput = {
18335
18512
  maxSourceAgeSeconds: Scalars['Int']['input'];
18336
18513
  reason: Scalars['String']['input'];
18337
18514
  };
18515
+ export type ConfigureSupervisorInput = {
18516
+ cron?: InputMaybe<Scalars['String']['input']>;
18517
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
18518
+ timezone?: InputMaybe<Scalars['String']['input']>;
18519
+ };
18338
18520
  export declare enum ConflictResolution {
18339
18521
  LOCAL_WINS = "LOCAL_WINS",
18340
18522
  MANUAL = "MANUAL",
@@ -54114,6 +54296,20 @@ export type InvalidateDataSinkCacheResult = {
54114
54296
  /** Success status */
54115
54297
  success: Scalars['Boolean']['output'];
54116
54298
  };
54299
+ export type InventoryCoverPlanInput = {
54300
+ /** Scenario demand change applied to every forecast, -100 to 500 percent. Default 0. */
54301
+ demandChangePct?: InputMaybe<Scalars['Float']['input']>;
54302
+ /** Weeks between ordering and receiving stock, 0-26. Default 2. */
54303
+ leadTimeWeeks?: InputMaybe<Scalars['Float']['input']>;
54304
+ /** Maximum rows returned, 1-1000. Default 200. */
54305
+ limit?: InputMaybe<Scalars['Int']['input']>;
54306
+ /** Only return rows in these statuses. The summary always counts every row. */
54307
+ statuses?: InputMaybe<Array<MtwInventoryCoverStatus>>;
54308
+ /** Weeks of demand a replenishment should cover once it lands, 1-52. Default 6. */
54309
+ targetCoverWeeks?: InputMaybe<Scalars['Float']['input']>;
54310
+ /** Only plan this warehouse. Omit for every warehouse. */
54311
+ warehouseId?: InputMaybe<Scalars['ID']['input']>;
54312
+ };
54117
54313
  export type InventoryFilterInput = {
54118
54314
  cargoItemId?: InputMaybe<Scalars['ID']['input']>;
54119
54315
  inventoryItemId?: InputMaybe<Scalars['ID']['input']>;
@@ -62111,6 +62307,103 @@ export declare enum MtwIntegrationProvider {
62111
62307
  SAMSARA = "SAMSARA",
62112
62308
  SHIPROCKET = "SHIPROCKET"
62113
62309
  }
62310
+ export type MtwInventoryCoverPlan = {
62311
+ __typename?: 'MtwInventoryCoverPlan';
62312
+ demandChangePct: Scalars['Float']['output'];
62313
+ generatedAt: Scalars['DateTime']['output'];
62314
+ /** End of the history window: the Monday the current week began. */
62315
+ historyEnd: Scalars['DateTime']['output'];
62316
+ /** First day (Monday) of the closed-week history window. */
62317
+ historyStart: Scalars['DateTime']['output'];
62318
+ historyWeeks: Scalars['Int']['output'];
62319
+ leadTimeWeeks: Scalars['Float']['output'];
62320
+ /** Rows matching the status filter, before the limit. */
62321
+ matchingItems: Scalars['Int']['output'];
62322
+ rows: Array<MtwInventoryCoverRow>;
62323
+ summary: MtwInventoryCoverSummary;
62324
+ targetCoverWeeks: Scalars['Float']['output'];
62325
+ /** More stock lines or delivery jobs existed than were read; the plan covers the newest. */
62326
+ truncated: Scalars['Boolean']['output'];
62327
+ unattributedJobs: Scalars['Int']['output'];
62328
+ /** Outbound units of stocked SKUs whose pickup warehouse could not be resolved (workspace-wide). */
62329
+ unattributedUnits: Scalars['Float']['output'];
62330
+ warehouseId?: Maybe<Scalars['ID']['output']>;
62331
+ };
62332
+ /** One warehouse and SKU: stock on hand against forecast outbound demand. */
62333
+ export type MtwInventoryCoverRow = {
62334
+ __typename?: 'MtwInventoryCoverRow';
62335
+ allocated: Scalars['Int']['output'];
62336
+ available: Scalars['Int']['output'];
62337
+ /** Forecast weekly units before the scenario demand change. */
62338
+ baselineWeeklyDemand?: Maybe<Scalars['Float']['output']>;
62339
+ cargoItemId: Scalars['ID']['output'];
62340
+ /** Units shipped so far this (open) week. Not part of the history. */
62341
+ currentWeekUnits: Scalars['Float']['output'];
62342
+ damaged: Scalars['Int']['output'];
62343
+ demandStatus: MtwInventoryDemandStatus;
62344
+ /** Forecast weekly units after the scenario demand change. */
62345
+ forecastWeeklyDemand?: Maybe<Scalars['Float']['output']>;
62346
+ /** The stock lines (locations) aggregated into this position. */
62347
+ inventoryItemIds: Array<Scalars['ID']['output']>;
62348
+ name: Scalars['String']['output'];
62349
+ onHand: Scalars['Int']['output'];
62350
+ /** Monday of the ISO week stock is projected to run out, within two years. */
62351
+ projectedStockOutWeek?: Maybe<Scalars['DateTime']['output']>;
62352
+ reorderPoint?: Maybe<Scalars['Int']['output']>;
62353
+ safetyStock?: Maybe<Scalars['Int']['output']>;
62354
+ sku: Scalars['String']['output'];
62355
+ status: MtwInventoryCoverStatus;
62356
+ /** Stock runs out before a replenishment ordered now would arrive. */
62357
+ stockOutBeforeLeadTime: Scalars['Boolean']['output'];
62358
+ /** Units to order now so the target cover (plus safety stock) is on hand when the order lands. */
62359
+ suggestedReorderQuantity?: Maybe<Scalars['Int']['output']>;
62360
+ /** On hand minus damaged: the stock that can still ship. */
62361
+ usableStock: Scalars['Int']['output'];
62362
+ warehouseCode: Scalars['String']['output'];
62363
+ warehouseId: Scalars['ID']['output'];
62364
+ warehouseName: Scalars['String']['output'];
62365
+ /** Units shipped per closed ISO week of the history window, oldest first. */
62366
+ weeklyUnits: Array<Scalars['Float']['output']>;
62367
+ /** Usable stock divided by forecast weekly demand. */
62368
+ weeksOfCover?: Maybe<Scalars['Float']['output']>;
62369
+ /** Closed weeks the demand rate rests on. */
62370
+ weeksOfHistory: Scalars['Int']['output'];
62371
+ };
62372
+ /**
62373
+ * Where a stock position stands against forecast outbound demand (BOFF-10926).
62374
+ * Statuses are listed most urgent first.
62375
+ */
62376
+ export declare enum MtwInventoryCoverStatus {
62377
+ /** Stock runs out before a replenishment ordered now would arrive (cover below the lead time). */
62378
+ AT_RISK = "AT_RISK",
62379
+ /** Stock covers the lead time and the target cover. */
62380
+ HEALTHY = "HEALTHY",
62381
+ /** Fewer than 4 closed weeks since the first outbound: no demand forecast yet. */
62382
+ NOT_ENOUGH_HISTORY = "NOT_ENOUGH_HISTORY",
62383
+ /** No outbound in the history window. */
62384
+ NO_DEMAND = "NO_DEMAND",
62385
+ /** Demand is forecast and there is no usable stock left. */
62386
+ OUT_OF_STOCK = "OUT_OF_STOCK",
62387
+ /** Order now to hold the target cover, or the stock is at or below its reorder point. */
62388
+ REORDER = "REORDER"
62389
+ }
62390
+ export type MtwInventoryCoverSummary = {
62391
+ __typename?: 'MtwInventoryCoverSummary';
62392
+ atRisk: Scalars['Int']['output'];
62393
+ healthy: Scalars['Int']['output'];
62394
+ noDemand: Scalars['Int']['output'];
62395
+ notEnoughHistory: Scalars['Int']['output'];
62396
+ outOfStock: Scalars['Int']['output'];
62397
+ reorder: Scalars['Int']['output'];
62398
+ totalItems: Scalars['Int']['output'];
62399
+ totalSuggestedReorderQuantity: Scalars['Int']['output'];
62400
+ };
62401
+ /** Whether a stock position has a demand forecast. */
62402
+ export declare enum MtwInventoryDemandStatus {
62403
+ FORECAST = "FORECAST",
62404
+ NOT_ENOUGH_HISTORY = "NOT_ENOUGH_HISTORY",
62405
+ NO_DEMAND = "NO_DEMAND"
62406
+ }
62114
62407
  export type MtwInventoryItem = {
62115
62408
  __typename?: 'MtwInventoryItem';
62116
62409
  allocated: Scalars['Int']['output'];
@@ -63564,6 +63857,125 @@ export type MtwShipmentLegsArgs = {
63564
63857
  export type MtwShipmentTrackingEventsArgs = {
63565
63858
  pagination?: InputMaybe<PaginationInput>;
63566
63859
  };
63860
+ export type MtwShipmentDecision = {
63861
+ __typename?: 'MtwShipmentDecision';
63862
+ /** Provider-qualified model that wrote the rationale, when one did. */
63863
+ aiModel?: Maybe<Scalars['String']['output']>;
63864
+ aiStatus: MtwDecisionRationaleStatus;
63865
+ aiSummary?: Maybe<Scalars['String']['output']>;
63866
+ breached?: Maybe<Scalars['Boolean']['output']>;
63867
+ chosenOptionId?: Maybe<Scalars['ID']['output']>;
63868
+ createdAt: Scalars['DateTime']['output'];
63869
+ createdBy: Scalars['String']['output'];
63870
+ /** The shipment's carrier when the proposal was made. */
63871
+ currentCarrierId?: Maybe<Scalars['String']['output']>;
63872
+ decidedAt?: Maybe<Scalars['DateTime']['output']>;
63873
+ decidedBy?: Maybe<Scalars['String']['output']>;
63874
+ decisionReason?: Maybe<Scalars['String']['output']>;
63875
+ expiresAt: Scalars['DateTime']['output'];
63876
+ /** Carrier recommendation: delivered shipments the ranking looked at. */
63877
+ historyCount?: Maybe<Scalars['Int']['output']>;
63878
+ id: Scalars['ID']['output'];
63879
+ kind: MtwShipmentDecisionKind;
63880
+ /** Carrier recommendation: whether the shipment had an origin and destination to match a lane on. */
63881
+ laneKnown?: Maybe<Scalars['Boolean']['output']>;
63882
+ /** The deterministic ranker that produced the options. */
63883
+ method: Scalars['String']['output'];
63884
+ /** Ranked options, best first. Empty when there is nothing to recommend (no carrier history yet). */
63885
+ options: Array<MtwShipmentDecisionOption>;
63886
+ outcome?: Maybe<MtwShipmentDecisionOutcome>;
63887
+ predictedSlipMinutes?: Maybe<Scalars['Int']['output']>;
63888
+ /** The shipment's promised delivery when the proposal was made. */
63889
+ promisedDelivery?: Maybe<Scalars['DateTime']['output']>;
63890
+ riskLevel?: Maybe<Scalars['String']['output']>;
63891
+ /** Exception remediation: the forecast the options were ranked from. */
63892
+ riskScore?: Maybe<Scalars['Int']['output']>;
63893
+ shipmentId: Scalars['ID']['output'];
63894
+ shipmentNumber?: Maybe<Scalars['String']['output']>;
63895
+ signals: Array<Scalars['String']['output']>;
63896
+ status: MtwShipmentDecisionStatus;
63897
+ };
63898
+ export declare enum MtwShipmentDecisionAction {
63899
+ /** Keep the shipment as it is and accept the delay. */
63900
+ ACCEPT_SLIP = "ACCEPT_SLIP",
63901
+ /** Move the shipment's order to another vehicle (follow-up on the order). */
63902
+ REASSIGN_VEHICLE = "REASSIGN_VEHICLE",
63903
+ /** Move the promised delivery to the predicted time. */
63904
+ REPROMISE_DELIVERY = "REPROMISE_DELIVERY",
63905
+ /** Get a fresh tracking update from the driver or carrier (follow-up). */
63906
+ REQUEST_TRACKING_UPDATE = "REQUEST_TRACKING_UPDATE",
63907
+ /** Hand the not-yet-collected shipment to a carrier with a better record on its lane. */
63908
+ SWITCH_CARRIER = "SWITCH_CARRIER",
63909
+ /** Use this carrier for the shipment. */
63910
+ USE_CARRIER = "USE_CARRIER"
63911
+ }
63912
+ export declare enum MtwShipmentDecisionExecution {
63913
+ /** Accepting changes the shipment. */
63914
+ APPLY = "APPLY",
63915
+ /** Accepting records the decision; followUpMutation names the manual step that carries it out. */
63916
+ FOLLOW_UP = "FOLLOW_UP",
63917
+ /** Accepting only records the decision. */
63918
+ RECORD = "RECORD"
63919
+ }
63920
+ export declare enum MtwShipmentDecisionKind {
63921
+ CARRIER_RECOMMENDATION = "CARRIER_RECOMMENDATION",
63922
+ EXCEPTION_REMEDIATION = "EXCEPTION_REMEDIATION"
63923
+ }
63924
+ /** One ranked option of a shipment decision. */
63925
+ export type MtwShipmentDecisionOption = {
63926
+ __typename?: 'MtwShipmentDecisionOption';
63927
+ action: MtwShipmentDecisionAction;
63928
+ /** Model-written rationale, when AI produced one. */
63929
+ aiRationale?: Maybe<Scalars['String']['output']>;
63930
+ /** The carrier accepting assigns (USE_CARRIER, SWITCH_CARRIER). */
63931
+ carrierId?: Maybe<Scalars['String']['output']>;
63932
+ /** Ranker confidence from 0 to 1, from how much evidence the option stands on. Not a probability of success. */
63933
+ confidence: Scalars['Float']['output'];
63934
+ currency?: Maybe<Scalars['String']['output']>;
63935
+ /** Delivered shipments of this carrier in the history window (carrier options). */
63936
+ deliveredCount?: Maybe<Scalars['Int']['output']>;
63937
+ execution: MtwShipmentDecisionExecution;
63938
+ /** Arguments for followUpMutation, e.g. the delivery job or shipment id. */
63939
+ followUpArgs?: Maybe<Scalars['JSON']['output']>;
63940
+ /** The existing mutation that carries out a FOLLOW_UP option. */
63941
+ followUpMutation?: Maybe<Scalars['String']['output']>;
63942
+ id: Scalars['ID']['output'];
63943
+ /** Delivered shipments of this carrier on this shipment's lane. */
63944
+ laneDeliveredCount?: Maybe<Scalars['Int']['output']>;
63945
+ laneOnTimeCount?: Maybe<Scalars['Int']['output']>;
63946
+ /** Median recorded freight cost of this carrier on the lane, in currency. */
63947
+ medianLaneCost?: Maybe<Scalars['Float']['output']>;
63948
+ /** The promised delivery accepting sets (REPROMISE_DELIVERY). */
63949
+ newEstimatedDelivery?: Maybe<Scalars['DateTime']['output']>;
63950
+ onTimeCount?: Maybe<Scalars['Int']['output']>;
63951
+ rank: Scalars['Int']['output'];
63952
+ /** The ranker's own factual rationale. */
63953
+ rationale: Scalars['String']['output'];
63954
+ /** Reason codes, e.g. LANE_HISTORY, ON_TIME_STRONG, LOWEST_LANE_COST, PREDICTED_SLIP, TRACKING_STALE. */
63955
+ reasons: Array<Scalars['String']['output']>;
63956
+ /** Carrier ranking score from 0 to 1 (carrier options only). */
63957
+ score?: Maybe<Scalars['Float']['output']>;
63958
+ };
63959
+ export declare enum MtwShipmentDecisionOutcome {
63960
+ /** The shipment was changed. */
63961
+ APPLIED = "APPLIED",
63962
+ /** The decision was recorded; the follow-up step is still to be done. */
63963
+ FOLLOW_UP = "FOLLOW_UP",
63964
+ /** The decision was recorded; nothing on the shipment changed. */
63965
+ RECORDED = "RECORDED"
63966
+ }
63967
+ export declare enum MtwShipmentDecisionStatus {
63968
+ /** An option was accepted; outcome says what that did. */
63969
+ ACCEPTED = "ACCEPTED",
63970
+ /** Superseded by a newer proposal or past its expiry without a decision. */
63971
+ EXPIRED = "EXPIRED",
63972
+ /** Waiting for a decision. */
63973
+ PROPOSED = "PROPOSED",
63974
+ /** Rejected; nothing on the shipment changed. */
63975
+ REJECTED = "REJECTED",
63976
+ /** An option was accepted but the shipment had changed since the proposal; decisionReason says how. Nothing was changed. */
63977
+ STALE = "STALE"
63978
+ }
63567
63979
  export type MtwShipmentLeg = {
63568
63980
  __typename?: 'MtwShipmentLeg';
63569
63981
  actualArrival?: Maybe<Scalars['DateTime']['output']>;
@@ -64788,7 +65200,11 @@ export type Mutation = {
64788
65200
  /** PUBLISHED -> CLOSED: the share link stops accepting registrations. */
64789
65201
  athCloseRegistrationForm: AthRegistrationForm;
64790
65202
  athCompleteSession: AthSession;
65203
+ /** Family-facing: settle your checkout after the processor sends you back (the processor is the source of truth). */
65204
+ athConfirmRegistrationCheckout: AthMyRegistration;
64791
65205
  athConfirmSession: AthSession;
65206
+ /** Create (first call) or resume the club's processor onboarding; returns the hosted onboarding link. */
65207
+ athConnectPaymentAccount: AthPaymentAccountLink;
64792
65208
  athCreateProgram: AthProgram;
64793
65209
  athCreateRegistrationForm: AthRegistrationForm;
64794
65210
  athCreateTeam: AthTeam;
@@ -64808,6 +65224,8 @@ export type Mutation = {
64808
65224
  athRecordRegistration: AthRegistrationSubmission;
64809
65225
  /** Record a fee payment the club received against a submission. */
64810
65226
  athRecordRegistrationPayment: AthRegistrationPayment;
65227
+ /** Re-read the connected account's onboarding state from the processor. */
65228
+ athRefreshPaymentAccount: AthPaymentAccount;
64811
65229
  /** Record money returned to the payer (full or partial). */
64812
65230
  athRefundRegistrationPayment: AthRegistrationPayment;
64813
65231
  /** Nudge roster members who have not yet responded (NO_RESPONSE or no row at all) to a fixture or session. Exactly one of fixtureId / sessionId must be supplied. This publishes `atheletebridge.availability.reminder_requested` on the domain event stream; the service's reminder consumer then sends a push notification to each nudged member's registered AthleteBridge mobile devices (members without a registered device are counted but receive no push). Returns the number of members nudged. */
@@ -64825,6 +65243,8 @@ export type Mutation = {
64825
65243
  athSetWorkspaceAutoPilot: AthWorkspaceAiConfig;
64826
65244
  /** Manually start a SCHEDULED fixture: transition it to LIVE. The automatic kickoff sweep applies the same transition when the fixture's kickoff time arrives; this mutation is the on-demand path (e.g. an early kickoff). Only SCHEDULED fixtures can be started — POSTPONED and CANCELLED fixtures never go LIVE. */
64827
65245
  athStartFixture: AthFixture;
65246
+ /** Family-facing: open a processor checkout for the outstanding balance of your own registration. */
65247
+ athStartRegistrationCheckout: AthRegistrationCheckoutSession;
64828
65248
  /** Family-facing: submit a registration through a form's share link. */
64829
65249
  athSubmitRegistration: AthMyRegistration;
64830
65250
  /** Advance a program through its publish lifecycle (validated transitions: DRAFT -> PUBLISHED -> ARCHIVED). */
@@ -65282,6 +65702,8 @@ export type Mutation = {
65282
65702
  /** Cancel a scheduled comment */
65283
65703
  cancelScheduledComment: Scalars['Boolean']['output'];
65284
65704
  cancelSecurityScan: SecurityScanRun;
65705
+ /** Cancel a RUNNING supervisor run. The runner observes the cancellation between detectors and persists no findings, so a cancelled run leaves no partial predictions behind. */
65706
+ cancelSupervisorRun: SupervisorRun;
65285
65707
  /** Withdraw one of the caller's own ACCEPTED focus blocks and delete its calendar hold. */
65286
65708
  cancelTimeCampusFocusBlock: TimeCampusFocusBlock;
65287
65709
  /**
@@ -65564,6 +65986,8 @@ export type Mutation = {
65564
65986
  /** Attach managed assistant workflows to an existing scoped agent without editing metadata manually. */
65565
65987
  configureAssistantRuntime: AssistantRuntimeConfiguration;
65566
65988
  configureShipmentStatusSource: MtwShipment;
65989
+ /** Create or update the calling workspace's supervisor configuration. Enabling provisions (idempotently) a FluidGrids workflow definition plus a cron scheduled job owned by wspace-workflow-svc; disabling deletes the scheduled job. No cron or scheduler lives in this service. */
65990
+ configureSupervisor: SupervisorConfig;
65567
65991
  confirmBooking: Booking;
65568
65992
  /** Host/operator manual confirmation for a PENDING, paid booking on a listing with instantBook: false. */
65569
65993
  confirmGgnomadBooking: GgnomadBooking;
@@ -66985,6 +67409,8 @@ export type Mutation = {
66985
67409
  * signature stay dismissed.
66986
67410
  */
66987
67411
  dismissRunFailureCluster: RunFailureCluster;
67412
+ /** HMAC-gated tick from the workspace's FluidGrids scheduled job. See SupervisorTickInput for the trust boundary. */
67413
+ dispatchBotmanorSupervisorTick: SupervisorRunResult;
66988
67414
  /** FluidGrids callback: sync every connected accounting integration in the workspace whose autoSyncDaily flag is on. Returns the number of integrations synced. Called anonymously by the workspace's daily accounting-sync cron over the internal gateway, so it is authorized by an HMAC dispatch secret (HMAC-SHA256 of workspaceId keyed by INTERNAL_SERVICE_TOKEN) rather than by a user token — the same shape as dispatchHealthyBowlAuctionSweep. */
66989
67415
  dispatchHealthyBowlAccountingSync: Scalars['Int']['output'];
66990
67416
  /** FluidGrids callback: close every LIVE auction in the workspace whose endTime has passed, creating each winner Order. Returns the number of auctions closed. Called anonymously by the workspace's auction-sweep cron over the internal gateway, so it is authorized by an HMAC dispatch secret (HMAC-SHA256 of workspaceId keyed by INTERNAL_SERVICE_TOKEN) rather than by a user token — the same shape as dispatchHealthyBowlWateringRun. */
@@ -68406,6 +68832,13 @@ export type Mutation = {
68406
68832
  moveWorkflowFolder: WorkflowFolder;
68407
68833
  /** Move a resource to a different workspace */
68408
68834
  moveWorkspaceResource: ResourceOperationResult;
68835
+ /**
68836
+ * Accept one option of an open decision. An APPLY option changes the shipment
68837
+ * (carrier or promised delivery); FOLLOW_UP and RECORD options only record the
68838
+ * decision. When the shipment changed since the proposal the decision is marked
68839
+ * STALE and nothing is changed.
68840
+ */
68841
+ mtwAcceptShipmentDecision: MtwShipmentDecision;
68409
68842
  /**
68410
68843
  * Accept the listed assignments of an open plan and reject the rest. One PLANNED
68411
68844
  * route is created per accepted assignment, through the normal route checks.
@@ -68432,8 +68865,22 @@ export type Mutation = {
68432
68865
  * expires any older open one.
68433
68866
  */
68434
68867
  mtwPlanDispatch: MtwDispatchPlan;
68868
+ /**
68869
+ * Rank the workspace's carriers for a PLANNED shipment's lane from its own
68870
+ * delivery history. Proposal only: the shipment's carrier is unchanged until an
68871
+ * option is accepted. A newer proposal expires the shipment's open one.
68872
+ */
68873
+ mtwRecommendCarrier: MtwShipmentDecision;
68435
68874
  /** Reject every assignment of an open plan. Writes no route or delivery job. */
68436
68875
  mtwRejectDispatchPlan: MtwDispatchPlan;
68876
+ /** Reject every option of an open decision. Nothing on the shipment changes. */
68877
+ mtwRejectShipmentDecision: MtwShipmentDecision;
68878
+ /**
68879
+ * Rank remediations for a shipment its risk forecast says is late or at risk.
68880
+ * Proposal only: nothing on the shipment changes until an option is accepted.
68881
+ * Refused when the shipment is neither at risk nor past its promise.
68882
+ */
68883
+ mtwResolveException: MtwShipmentDecision;
68437
68884
  /**
68438
68885
  * Re-forecast every in-flight shipment of the workspace and notify for any that
68439
68886
  * started slipping. Fired by wspace-scheduler-svc as this service's own service
@@ -69965,6 +70412,8 @@ export type Mutation = {
69965
70412
  /** Run a script inside the sandbox and capture its output. The sandbox must be running. The run is recorded (even on failure) so it can be reviewed before any real-target execution. */
69966
70413
  runSandboxScript: SandboxScriptRun;
69967
70414
  runSecurityScan: SecurityScanRun;
70415
+ /** Run the fleet review now for the calling workspace (trigger: manual). */
70416
+ runSupervisorNow: SupervisorRunResult;
69968
70417
  /** Run the workspace's time-intelligence sweep. Called by wspace-scheduler-svc as this service's own service actor; a super admin may run it on demand. Any other caller is refused. */
69969
70418
  runTimeCampusTimeIntelligenceSweep: TimeCampusTimeIntelligenceSweep;
69970
70419
  /** Self-scoped: check one of the caller's triggers now (ignores the check hour, still fires at most once a day). */
@@ -70753,12 +71202,17 @@ export type Mutation = {
70753
71202
  testWebhook: Scalars['Boolean']['output'];
70754
71203
  /** Test a webhook mapping by sending a test event */
70755
71204
  testWebhookMapping: BigConsoleWidgetWebhookTestResult;
71205
+ theAddSupplierContact: TheSupplierContact;
70756
71206
  /** Approve (lock) a DRAFT allocation so it counts toward net positions. */
70757
71207
  theApproveProductionAllocation: TheProductionAllocation;
71208
+ /** Assign (or clear) the contracted vendor performing a maintenance work order. */
71209
+ theAssignWorkOrderVendor: TheWorkOrder;
70758
71210
  /** Attribute (or, with null, detach) a finished work order's downtime to a production record of the same asset, after the fact. */
70759
71211
  theAttributeWorkOrderDowntime: TheWorkOrder;
70760
71212
  /** Apply one set of PRO_RATA factors to every unallocated record of a measurement asset in a window. */
70761
71213
  theBulkAllocateProduction: TheBulkAllocationResult;
71214
+ /** Cancel a holding registered in error. Refused once anything has been retired. */
71215
+ theCancelCarbonCredit: TheCarbonCredit;
70762
71216
  /** Close a reporting period so its allocations cannot be created, approved or reversed until it is reopened. */
70763
71217
  theCloseAllocationPeriod: TheAllocationPeriodClose;
70764
71218
  /** Record a prior-period correction (signed volume deltas) against an APPROVED allocation (creates a DRAFT). */
@@ -70770,6 +71224,7 @@ export type Mutation = {
70770
71224
  theCreateContractEntitlement: TheContractEntitlement;
70771
71225
  theCreateCorrectiveAction: TheCorrectiveAction;
70772
71226
  theCreateEquipment: TheEquipment;
71227
+ theCreateForecastScenario: TheForecastScenario;
70773
71228
  /** Record the ownership of an asset for an effective period. */
70774
71229
  theCreateInterestDeck: TheInterestDeck;
70775
71230
  theCreateInventoryLot: TheInventoryLot;
@@ -70777,7 +71232,10 @@ export type Mutation = {
70777
71232
  /** Allocate a measured production record across its contributing assets (creates a DRAFT). */
70778
71233
  theCreateProductionAllocation: TheProductionAllocation;
70779
71234
  theCreateReserveEstimate: TheReserveEstimate;
71235
+ theCreateServiceContract: TheServiceContract;
71236
+ theCreateSupplier: TheSupplier;
70780
71237
  theCreateWorkOrder: TheWorkOrder;
71238
+ theDeleteForecastScenario: Scalars['Boolean']['output'];
70781
71239
  /** Delete an interest deck that no live allocation uses. */
70782
71240
  theDeleteInterestDeck: TheInterestDeck;
70783
71241
  /** Mark a shipment delivered and roll its volume into the contract's delivered total. */
@@ -70788,24 +71246,38 @@ export type Mutation = {
70788
71246
  theGenerateEsgDisclosure: TheEsgDisclosure;
70789
71247
  /** Raise a PLANNED work order for every active schedule due within the horizon that does not already have an unfinished work order. Idempotent. */
70790
71248
  theGenerateScheduledWorkOrders: TheGenerateWorkOrdersResult;
71249
+ /** Link (or, with a null supplierId, unlink) an offtake contract's counterparty to the supplier register. */
71250
+ theLinkOfftakeContractSupplier: TheOfftakeContract;
71251
+ /** Link (or unlink) a shipment's carrier to the supplier register. */
71252
+ theLinkShipmentCarrier: TheShipment;
71253
+ /** Record how much of an inventory lot was loaded onto a shipment. */
71254
+ theLinkShipmentSource: TheShipmentSource;
70791
71255
  theRecordEmission: TheEmissionRecord;
70792
71256
  /** 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. */
70793
71257
  theRecordLegalAcceptance: TheLegalAcceptance;
70794
71258
  theRecordProduction: TheProductionRecord;
71259
+ theRecordSupplierScorecard: TheSupplierScorecard;
71260
+ /** Register a carbon-credit holding (registry project, vintage and quantity). */
71261
+ theRegisterCarbonCredit: TheCarbonCredit;
70795
71262
  /** Remove an entitlement, returning its volume to the allocation entry. */
70796
71263
  theRemoveContractEntitlement: TheContractEntitlement;
71264
+ theRemoveSupplierContact: Scalars['Boolean']['output'];
70797
71265
  /** Reopen a closed period (a reason is required). The close row is kept for the audit trail. */
70798
71266
  theReopenAllocationPeriod: TheAllocationPeriodClose;
70799
71267
  theReportSafetyIncident: TheSafetyIncident;
70800
71268
  /** Remove this workspace's override for a unit pair, restoring the built-in default. Returns false if there was none. */
70801
71269
  theResetUnitConversion: Scalars['Boolean']['output'];
70802
71270
  theRetireAsset: Scalars['Boolean']['output'];
71271
+ /** Permanently retire credits from a holding against a reporting period. */
71272
+ theRetireCarbonCredits: TheCarbonRetirement;
70803
71273
  /** Void a DRAFT or APPROVED allocation, freeing its production record for re-allocation. */
70804
71274
  theReverseProductionAllocation: TheProductionAllocation;
70805
71275
  theScheduleShipment: TheShipment;
70806
71276
  /** 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). */
70807
71277
  theSetAssetPhoto: TheAsset;
70808
71278
  theSetInventoryLotStatus: TheInventoryLot;
71279
+ /** Change a supplier's qualification status. ON_HOLD and BLOCKED need a reason. Blocking or deactivating a supplier suspends its ACTIVE service contracts. */
71280
+ theSetSupplierStatus: TheSupplier;
70809
71281
  /** Set this workspace's conversion factor for a commodity and unit pair. */
70810
71282
  theSetUnitConversion: TheUnitConversion;
70811
71283
  /** Advance an asset through its lifecycle (validated transitions). */
@@ -70818,17 +71290,25 @@ export type Mutation = {
70818
71290
  theTransitionCorrectiveAction: TheCorrectiveAction;
70819
71291
  /** Advance an incident through its investigation lifecycle (validated transitions). */
70820
71292
  theTransitionSafetyIncident: TheSafetyIncident;
71293
+ /** Advance a service contract (validated transitions). Activation requires an APPROVED supplier. */
71294
+ theTransitionServiceContract: TheServiceContract;
70821
71295
  /** Advance a shipment through its lifecycle (validated transitions): SCHEDULED → LOADING → IN_TRANSIT → DELIVERED, and any non-terminal state → CANCELLED. Transitioning to DELIVERED rolls the shipment volume into the contract's delivered total exactly once (same path as theDeliverShipment). */
70822
71296
  theTransitionShipment: TheShipment;
70823
71297
  /** Advance a work order through its lifecycle (validated transitions). Completing a work order raised from a schedule rolls the schedule's next due date forward. */
70824
71298
  theTransitionWorkOrder: TheWorkOrder;
71299
+ /** Remove a source lot from a shipment whose sources can still change. */
71300
+ theUnlinkShipmentSource: TheShipmentSource;
70825
71301
  theUpdateAsset: TheAsset;
70826
71302
  theUpdateContract: TheOfftakeContract;
70827
71303
  theUpdateEquipment: TheEquipment;
71304
+ theUpdateForecastScenario: TheForecastScenario;
70828
71305
  theUpdateIncidentInvestigation: TheSafetyIncident;
70829
71306
  theUpdateMaintenanceSchedule: TheMaintenanceSchedule;
71307
+ theUpdateServiceContract: TheServiceContract;
70830
71308
  /** 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. */
70831
71309
  theUpdateShipment: TheShipment;
71310
+ theUpdateSupplier: TheSupplier;
71311
+ theUpdateSupplierContact: TheSupplierContact;
70832
71312
  theUpdateWorkOrder: TheWorkOrder;
70833
71313
  /** Mark an emission figure third-party verified. */
70834
71314
  theVerifyEmission: TheEmissionRecord;
@@ -73049,10 +73529,18 @@ export type MutationAthCompleteSessionArgs = {
73049
73529
  input?: InputMaybe<AthCompleteSessionInput>;
73050
73530
  };
73051
73531
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
73532
+ export type MutationAthConfirmRegistrationCheckoutArgs = {
73533
+ checkoutId: Scalars['ID']['input'];
73534
+ };
73535
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
73052
73536
  export type MutationAthConfirmSessionArgs = {
73053
73537
  id: Scalars['ID']['input'];
73054
73538
  };
73055
73539
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
73540
+ export type MutationAthConnectPaymentAccountArgs = {
73541
+ input: AthConnectPaymentAccountInput;
73542
+ };
73543
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
73056
73544
  export type MutationAthCreateProgramArgs = {
73057
73545
  input: AthCreateProgramInput;
73058
73546
  };
@@ -73150,6 +73638,10 @@ export type MutationAthStartFixtureArgs = {
73150
73638
  id: Scalars['ID']['input'];
73151
73639
  };
73152
73640
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
73641
+ export type MutationAthStartRegistrationCheckoutArgs = {
73642
+ input: AthStartRegistrationCheckoutInput;
73643
+ };
73644
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
73153
73645
  export type MutationAthSubmitRegistrationArgs = {
73154
73646
  input: AthSubmitRegistrationInput;
73155
73647
  slug: Scalars['String']['input'];
@@ -74411,6 +74903,10 @@ export type MutationCancelSecurityScanArgs = {
74411
74903
  id: Scalars['ID']['input'];
74412
74904
  };
74413
74905
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
74906
+ export type MutationCancelSupervisorRunArgs = {
74907
+ runId: Scalars['ID']['input'];
74908
+ };
74909
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
74414
74910
  export type MutationCancelTimeCampusFocusBlockArgs = {
74415
74911
  id: Scalars['ID']['input'];
74416
74912
  };
@@ -75172,6 +75668,10 @@ export type MutationConfigureShipmentStatusSourceArgs = {
75172
75668
  input: ConfigureShipmentStatusSourceInput;
75173
75669
  };
75174
75670
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
75671
+ export type MutationConfigureSupervisorArgs = {
75672
+ input: ConfigureSupervisorInput;
75673
+ };
75674
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
75175
75675
  export type MutationConfirmBookingArgs = {
75176
75676
  id: Scalars['ID']['input'];
75177
75677
  };
@@ -79139,6 +79639,10 @@ export type MutationDismissRunFailureClusterArgs = {
79139
79639
  id: Scalars['ID']['input'];
79140
79640
  };
79141
79641
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
79642
+ export type MutationDispatchBotmanorSupervisorTickArgs = {
79643
+ input: SupervisorTickInput;
79644
+ };
79645
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
79142
79646
  export type MutationDispatchHealthyBowlAccountingSyncArgs = {
79143
79647
  input: DispatchHealthyBowlAccountingSyncInput;
79144
79648
  };
@@ -82914,6 +83418,11 @@ export type MutationMoveWorkspaceResourceArgs = {
82914
83418
  targetWorkspaceId: Scalars['ID']['input'];
82915
83419
  };
82916
83420
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
83421
+ export type MutationMtwAcceptShipmentDecisionArgs = {
83422
+ decisionId: Scalars['ID']['input'];
83423
+ optionId: Scalars['ID']['input'];
83424
+ };
83425
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
82917
83426
  export type MutationMtwApplyDispatchPlanArgs = {
82918
83427
  accept: Array<Scalars['ID']['input']>;
82919
83428
  planId: Scalars['ID']['input'];
@@ -82927,10 +83436,22 @@ export type MutationMtwPlanDispatchArgs = {
82927
83436
  input?: InputMaybe<MtwPlanDispatchInput>;
82928
83437
  };
82929
83438
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
83439
+ export type MutationMtwRecommendCarrierArgs = {
83440
+ shipmentId: Scalars['ID']['input'];
83441
+ };
83442
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
82930
83443
  export type MutationMtwRejectDispatchPlanArgs = {
82931
83444
  planId: Scalars['ID']['input'];
82932
83445
  };
82933
83446
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
83447
+ export type MutationMtwRejectShipmentDecisionArgs = {
83448
+ decisionId: Scalars['ID']['input'];
83449
+ };
83450
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
83451
+ export type MutationMtwResolveExceptionArgs = {
83452
+ shipmentId: Scalars['ID']['input'];
83453
+ };
83454
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
82934
83455
  export type MutationMtwRunRiskSweepArgs = {
82935
83456
  input?: InputMaybe<MtwRunRiskSweepInput>;
82936
83457
  };
@@ -88683,10 +89204,19 @@ export type MutationTestWebhookMappingArgs = {
88683
89204
  id: Scalars['ID']['input'];
88684
89205
  };
88685
89206
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89207
+ export type MutationTheAddSupplierContactArgs = {
89208
+ input: TheAddSupplierContactInput;
89209
+ };
89210
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88686
89211
  export type MutationTheApproveProductionAllocationArgs = {
88687
89212
  id: Scalars['ID']['input'];
88688
89213
  };
88689
89214
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89215
+ export type MutationTheAssignWorkOrderVendorArgs = {
89216
+ supplierId?: InputMaybe<Scalars['ID']['input']>;
89217
+ workOrderId: Scalars['ID']['input'];
89218
+ };
89219
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88690
89220
  export type MutationTheAttributeWorkOrderDowntimeArgs = {
88691
89221
  downtimeHours?: InputMaybe<Scalars['Float']['input']>;
88692
89222
  id: Scalars['ID']['input'];
@@ -88697,6 +89227,10 @@ export type MutationTheBulkAllocateProductionArgs = {
88697
89227
  input: TheBulkAllocateProductionInput;
88698
89228
  };
88699
89229
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89230
+ export type MutationTheCancelCarbonCreditArgs = {
89231
+ id: Scalars['ID']['input'];
89232
+ };
89233
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88700
89234
  export type MutationTheCloseAllocationPeriodArgs = {
88701
89235
  input: TheCloseAllocationPeriodInput;
88702
89236
  };
@@ -88729,6 +89263,10 @@ export type MutationTheCreateEquipmentArgs = {
88729
89263
  input: TheCreateEquipmentInput;
88730
89264
  };
88731
89265
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89266
+ export type MutationTheCreateForecastScenarioArgs = {
89267
+ input: TheForecastScenarioInput;
89268
+ };
89269
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88732
89270
  export type MutationTheCreateInterestDeckArgs = {
88733
89271
  input: TheCreateInterestDeckInput;
88734
89272
  };
@@ -88749,10 +89287,22 @@ export type MutationTheCreateReserveEstimateArgs = {
88749
89287
  input: TheCreateReserveEstimateInput;
88750
89288
  };
88751
89289
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89290
+ export type MutationTheCreateServiceContractArgs = {
89291
+ input: TheCreateServiceContractInput;
89292
+ };
89293
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89294
+ export type MutationTheCreateSupplierArgs = {
89295
+ input: TheCreateSupplierInput;
89296
+ };
89297
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88752
89298
  export type MutationTheCreateWorkOrderArgs = {
88753
89299
  input: TheCreateWorkOrderInput;
88754
89300
  };
88755
89301
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89302
+ export type MutationTheDeleteForecastScenarioArgs = {
89303
+ id: Scalars['ID']['input'];
89304
+ };
89305
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88756
89306
  export type MutationTheDeleteInterestDeckArgs = {
88757
89307
  id: Scalars['ID']['input'];
88758
89308
  };
@@ -88773,6 +89323,20 @@ export type MutationTheGenerateScheduledWorkOrdersArgs = {
88773
89323
  horizonDays?: InputMaybe<Scalars['Int']['input']>;
88774
89324
  };
88775
89325
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89326
+ export type MutationTheLinkOfftakeContractSupplierArgs = {
89327
+ contractId: Scalars['ID']['input'];
89328
+ supplierId?: InputMaybe<Scalars['ID']['input']>;
89329
+ };
89330
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89331
+ export type MutationTheLinkShipmentCarrierArgs = {
89332
+ shipmentId: Scalars['ID']['input'];
89333
+ supplierId?: InputMaybe<Scalars['ID']['input']>;
89334
+ };
89335
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89336
+ export type MutationTheLinkShipmentSourceArgs = {
89337
+ input: TheLinkShipmentSourceInput;
89338
+ };
89339
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88776
89340
  export type MutationTheRecordEmissionArgs = {
88777
89341
  input: TheRecordEmissionInput;
88778
89342
  };
@@ -88786,10 +89350,22 @@ export type MutationTheRecordProductionArgs = {
88786
89350
  input: TheRecordProductionInput;
88787
89351
  };
88788
89352
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89353
+ export type MutationTheRecordSupplierScorecardArgs = {
89354
+ input: TheRecordSupplierScorecardInput;
89355
+ };
89356
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89357
+ export type MutationTheRegisterCarbonCreditArgs = {
89358
+ input: TheRegisterCarbonCreditInput;
89359
+ };
89360
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88789
89361
  export type MutationTheRemoveContractEntitlementArgs = {
88790
89362
  id: Scalars['ID']['input'];
88791
89363
  };
88792
89364
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89365
+ export type MutationTheRemoveSupplierContactArgs = {
89366
+ id: Scalars['ID']['input'];
89367
+ };
89368
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88793
89369
  export type MutationTheReopenAllocationPeriodArgs = {
88794
89370
  id: Scalars['ID']['input'];
88795
89371
  reason: Scalars['String']['input'];
@@ -88807,6 +89383,10 @@ export type MutationTheRetireAssetArgs = {
88807
89383
  id: Scalars['ID']['input'];
88808
89384
  };
88809
89385
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89386
+ export type MutationTheRetireCarbonCreditsArgs = {
89387
+ input: TheRetireCarbonCreditsInput;
89388
+ };
89389
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88810
89390
  export type MutationTheReverseProductionAllocationArgs = {
88811
89391
  id: Scalars['ID']['input'];
88812
89392
  reason: Scalars['String']['input'];
@@ -88826,6 +89406,12 @@ export type MutationTheSetInventoryLotStatusArgs = {
88826
89406
  status: TheInventoryStatus;
88827
89407
  };
88828
89408
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89409
+ export type MutationTheSetSupplierStatusArgs = {
89410
+ id: Scalars['ID']['input'];
89411
+ reason?: InputMaybe<Scalars['String']['input']>;
89412
+ status: TheSupplierStatus;
89413
+ };
89414
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88829
89415
  export type MutationTheSetUnitConversionArgs = {
88830
89416
  input: TheSetUnitConversionInput;
88831
89417
  };
@@ -88855,6 +89441,12 @@ export type MutationTheTransitionSafetyIncidentArgs = {
88855
89441
  status: TheSafetyIncidentStatus;
88856
89442
  };
88857
89443
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89444
+ export type MutationTheTransitionServiceContractArgs = {
89445
+ id: Scalars['ID']['input'];
89446
+ reason?: InputMaybe<Scalars['String']['input']>;
89447
+ status: TheServiceContractStatus;
89448
+ };
89449
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88858
89450
  export type MutationTheTransitionShipmentArgs = {
88859
89451
  id: Scalars['ID']['input'];
88860
89452
  status: TheShipmentStatus;
@@ -88866,6 +89458,10 @@ export type MutationTheTransitionWorkOrderArgs = {
88866
89458
  status: TheWorkOrderStatus;
88867
89459
  };
88868
89460
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89461
+ export type MutationTheUnlinkShipmentSourceArgs = {
89462
+ id: Scalars['ID']['input'];
89463
+ };
89464
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88869
89465
  export type MutationTheUpdateAssetArgs = {
88870
89466
  id: Scalars['ID']['input'];
88871
89467
  input: TheUpdateAssetInput;
@@ -88881,6 +89477,11 @@ export type MutationTheUpdateEquipmentArgs = {
88881
89477
  input: TheUpdateEquipmentInput;
88882
89478
  };
88883
89479
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89480
+ export type MutationTheUpdateForecastScenarioArgs = {
89481
+ id: Scalars['ID']['input'];
89482
+ input: TheUpdateForecastScenarioInput;
89483
+ };
89484
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88884
89485
  export type MutationTheUpdateIncidentInvestigationArgs = {
88885
89486
  id: Scalars['ID']['input'];
88886
89487
  investigationNotes: Scalars['String']['input'];
@@ -88891,11 +89492,26 @@ export type MutationTheUpdateMaintenanceScheduleArgs = {
88891
89492
  input: TheUpdateMaintenanceScheduleInput;
88892
89493
  };
88893
89494
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89495
+ export type MutationTheUpdateServiceContractArgs = {
89496
+ id: Scalars['ID']['input'];
89497
+ input: TheUpdateServiceContractInput;
89498
+ };
89499
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88894
89500
  export type MutationTheUpdateShipmentArgs = {
88895
89501
  id: Scalars['ID']['input'];
88896
89502
  input: TheUpdateShipmentInput;
88897
89503
  };
88898
89504
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89505
+ export type MutationTheUpdateSupplierArgs = {
89506
+ id: Scalars['ID']['input'];
89507
+ input: TheUpdateSupplierInput;
89508
+ };
89509
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
89510
+ export type MutationTheUpdateSupplierContactArgs = {
89511
+ id: Scalars['ID']['input'];
89512
+ input: TheUpdateSupplierContactInput;
89513
+ };
89514
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
88899
89515
  export type MutationTheUpdateWorkOrderArgs = {
88900
89516
  id: Scalars['ID']['input'];
88901
89517
  input: TheUpdateWorkOrderInput;
@@ -103210,6 +103826,8 @@ export type Query = {
103210
103826
  athListWorkoutLogs: AthWorkoutLogConnection;
103211
103827
  /** Family-facing: the registrations the calling user has submitted. */
103212
103828
  athMyRegistrations: AthMyRegistrationConnection;
103829
+ /** The club's online-payment setup. */
103830
+ athOnlinePaymentsStatus: AthOnlinePaymentsStatus;
103213
103831
  athPerformanceMetrics: AthPerformanceMetricConnection;
103214
103832
  athProgram?: Maybe<AthProgram>;
103215
103833
  athRegistrationForm?: Maybe<AthRegistrationForm>;
@@ -104099,11 +104717,15 @@ export type Query = {
104099
104717
  expenseCategories: Array<Scalars['String']['output']>;
104100
104718
  expenseStats: ExpenseStats;
104101
104719
  expenses: Array<ExpenseEntry>;
104720
+ /** Explain a whole dashboard: one narrative spanning every widget's bound sinks. */
104721
+ explainDashboard: BigConsoleNarrative;
104102
104722
  /**
104103
104723
  * Explain why a run failed: the failing node, the cause, evidence log lines
104104
104724
  * and suggested fixes. Read-only; no model call.
104105
104725
  */
104106
104726
  explainRun: WorkflowRunExplanation;
104727
+ /** Explain one widget: assemble its bound DataSink rows + recent history, produce a grounded summary in which every factual claim carries a citation to the sink/parser/widget (and field) that supports it. The narrative is persisted (one AgentRun-equivalent ledger row per run) and metered against bigconsole.ai.credits. */
104728
+ explainWidget: BigConsoleNarrative;
104107
104729
  /**
104108
104730
  * Pull-based SIEM export: returns formatted (CEF/LEEF/JSON) lines for the
104109
104731
  * given date range. For push-based delivery, register a SiemDestination
@@ -105621,6 +106243,12 @@ export type Query = {
105621
106243
  integrationsCount: Scalars['Int']['output'];
105622
106244
  intelwatchtowerEntityTags: Array<IntEntityTagAssignment>;
105623
106245
  introspectNode?: Maybe<NodeIntrospection>;
106246
+ /**
106247
+ * Weeks of stock cover per warehouse and SKU against forecast outbound
106248
+ * demand from delivery-job cargo lines, with the projected stock-out week
106249
+ * and a suggested reorder quantity. Read-only; computed on request.
106250
+ */
106251
+ inventoryCoverPlan: MtwInventoryCoverPlan;
105624
106252
  inventoryItem?: Maybe<MtwInventoryItem>;
105625
106253
  inventoryItems: Array<MtwInventoryItem>;
105626
106254
  inventoryItemsCount: Scalars['Int']['output'];
@@ -105730,6 +106358,8 @@ export type Query = {
105730
106358
  labWorkspaceAiConfig?: Maybe<LabWorkspaceAiConfig>;
105731
106359
  /** Lightweight workspace totals for the LabsOfScience overview dashboard. Returns exact counts across all non-archived (deletedAt: null) domain entities in the caller's workspace. */
105732
106360
  labWorkspaceTotals: LabWorkspaceTotals;
106361
+ /** The most recent digest narrative for a dashboard (null when none exists). */
106362
+ latestDashboardDigest?: Maybe<BigConsoleNarrative>;
105733
106363
  legalHolds: Array<LegalHold>;
105734
106364
  licenseEntitlements: Array<LicenseEntitlement>;
105735
106365
  /** The whole-life timeline for the calling user: the same self-assembling timeline, summarized by life domain (WORK/SLEEP/HEALTH/...) with honest, interval-union totals and unaccounted time. Self-scoped — always your own data. */
@@ -105998,6 +106628,8 @@ export type Query = {
105998
106628
  mtwImportSpec: Array<MtwImportEntitySpec>;
105999
106629
  /** The workspace's most recent dispatch plan, whatever its status. */
106000
106630
  mtwLatestDispatchPlan?: Maybe<MtwDispatchPlan>;
106631
+ /** The shipment's most recent decision of this kind, whatever its status. */
106632
+ mtwLatestShipmentDecision?: Maybe<MtwShipmentDecision>;
106001
106633
  /** The workspace's MoveTheWheels operational defaults; platform defaults when none were saved. */
106002
106634
  mtwModuleSettings: MtwModuleSettings;
106003
106635
  mtwPalletGeometryPreview: MtwPalletGeometryPreview;
@@ -106029,6 +106661,7 @@ export type Query = {
106029
106661
  mtwRiskSweepSchedule?: Maybe<MtwRiskSweepSchedule>;
106030
106662
  /** Recent risk sweeps of the workspace, newest first. */
106031
106663
  mtwRiskSweeps: Array<MtwRiskSweep>;
106664
+ mtwShipmentDecision?: Maybe<MtwShipmentDecision>;
106032
106665
  /** The shipment's current or last risk episode, or null if it has never been at risk. */
106033
106666
  mtwShipmentRiskEpisode?: Maybe<MtwShipmentRiskEpisode>;
106034
106667
  mtwShipmentRiskForecast: MtwRiskForecast;
@@ -106208,6 +106841,8 @@ export type Query = {
106208
106841
  /** Rule-based recovery-aware guidance for today, with an optional richer AI-generated plain-language summary (BOFF-4174). The BYOK AI summary invocation goes through the platform LLM gateway and counts as one BYOK AI program/nutrition assist operation against `mybodyshield.ai_operations.daily` (BOFF-5949); the rule-based cards never depend on the LLM and never consume the quota. Same directive shape as the sibling DAILY AI-ops quota on `crewJobPostingMatches` in `wspace-crewfoundry-svc/src/modules/workforce/schema/matching.gql`. */
106209
106842
  mybTodayGuidance: MybTodayGuidance;
106210
106843
  mybWorkoutExercises: MybExerciseConnection;
106844
+ /** Runtime state of the narrative feature for this workspace (admin visibility). */
106845
+ narrativeStatus: BigConsoleNarrativeFeatureStatus;
106211
106846
  /** Get a specific node endpoint configuration */
106212
106847
  nodeEndpointConfig?: Maybe<NodeEndpointConfig>;
106213
106848
  /** Get list of node endpoint configurations */
@@ -107037,6 +107672,10 @@ export type Query = {
107037
107672
  subscribedProduct?: Maybe<SubscribedProduct>;
107038
107673
  /** Get all subscribed products for the current workspace. Workspace ID is read from gateway context (x-workspace-id header). */
107039
107674
  subscribedProducts: SubscribedProductList;
107675
+ /** The calling workspace's supervisor configuration (created lazily with defaults when none exists yet). */
107676
+ supervisorConfig: SupervisorConfig;
107677
+ /** Recent supervisor runs for the calling workspace, newest first. */
107678
+ supervisorRuns: SupervisorRunList;
107040
107679
  /** Get system configuration */
107041
107680
  systemConfig: SystemConfig;
107042
107681
  /** Get high-level system metrics and statistics */
@@ -107253,12 +107892,22 @@ export type Query = {
107253
107892
  /** Allocation statement for [periodStart, periodEnd]: net position, per-asset allocation detail and CSV. */
107254
107893
  theAllocationStatement: TheAllocationStatement;
107255
107894
  theAsset?: Maybe<TheAsset>;
107895
+ theCarbonCredit?: Maybe<TheCarbonCredit>;
107896
+ /** Net the period's emissions against the carbon credits retired for it. */
107897
+ theCarbonOffsetPosition: TheCarbonOffsetPosition;
107898
+ /** Run up to four saved scenarios side by side. */
107899
+ theCompareForecastScenarios: Array<TheScenarioResult>;
107256
107900
  theComplianceCert?: Maybe<TheComplianceCert>;
107257
107901
  theContract?: Maybe<TheOfftakeContract>;
107258
107902
  /** Over/under-lift position per contract. With contractId, that contract only; otherwise every contract with active entitlements. */
107259
107903
  theContractLiftingPositions: Array<TheContractLiftingPosition>;
107904
+ /** Daily demand and inbound supply implied by signed and active contracts of a commodity. */
107905
+ theDemandForecast: TheDemandForecast;
107260
107906
  theEquipment?: Maybe<TheEquipment>;
107261
107907
  theEsgDisclosure?: Maybe<TheEsgDisclosure>;
107908
+ /** Audit-ready CSV export of a disclosure with record-level lineage. */
107909
+ theExportEsgDisclosure: TheEsgDisclosureExport;
107910
+ theForecastScenario?: Maybe<TheForecastScenario>;
107262
107911
  /** Liveness/identity probe for the Theglobalfuel subgraph. */
107263
107912
  theHealth: Scalars['String']['output'];
107264
107913
  theInterestDeck?: Maybe<TheInterestDeck>;
@@ -107267,6 +107916,8 @@ export type Query = {
107267
107916
  /** Period closes, newest period first. Includes REOPENED rows: this is the close / reopen audit trail. */
107268
107917
  theListAllocationPeriodCloses: TheAllocationPeriodCloseConnection;
107269
107918
  theListAssets: TheAssetConnection;
107919
+ theListCarbonCredits: TheCarbonCreditConnection;
107920
+ theListCarbonRetirements: TheCarbonRetirementConnection;
107270
107921
  theListComplianceCerts: TheComplianceCertConnection;
107271
107922
  /** Active entitlements (their allocation is APPROVED), newest period first. */
107272
107923
  theListContractEntitlements: TheContractEntitlementConnection;
@@ -107275,6 +107926,7 @@ export type Query = {
107275
107926
  theListEmissionRecords: TheEmissionRecordConnection;
107276
107927
  theListEquipment: TheEquipmentConnection;
107277
107928
  theListEsgDisclosures: TheEsgDisclosureConnection;
107929
+ theListForecastScenarios: TheForecastScenarioConnection;
107278
107930
  theListInterestDecks: TheInterestDeckConnection;
107279
107931
  theListInventoryLots: TheInventoryLotConnection;
107280
107932
  theListMaintenanceSchedules: TheMaintenanceScheduleConnection;
@@ -107282,7 +107934,10 @@ export type Query = {
107282
107934
  theListProductionRecords: TheProductionRecordConnection;
107283
107935
  theListReserveEstimates: TheReserveEstimateConnection;
107284
107936
  theListSafetyIncidents: TheSafetyIncidentConnection;
107937
+ theListServiceContracts: TheServiceContractConnection;
107285
107938
  theListShipments: TheShipmentConnection;
107939
+ theListSupplierScorecards: TheSupplierScorecardConnection;
107940
+ theListSuppliers: TheSupplierConnection;
107286
107941
  /** Effective unit conversion factors for a commodity (built-in defaults merged with this workspace's overrides). */
107287
107942
  theListUnitConversions: Array<TheUnitConversion>;
107288
107943
  theListWorkOrders: TheWorkOrderConnection;
@@ -107292,9 +107947,23 @@ export type Query = {
107292
107947
  theMyLegalAcceptances: TheLegalAcceptanceConnection;
107293
107948
  /** Net production position per asset over [periodStart, periodEnd], from APPROVED allocations only. */
107294
107949
  theNetProductionPosition: TheNetProductionPosition;
107950
+ /** 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). */
107951
+ thePortfolioOverview: ThePortfolioOverview;
107952
+ /** Run unsaved assumptions (what-if) without storing them. */
107953
+ thePreviewForecastScenario: TheScenarioResult;
107295
107954
  theProductionAllocation?: Maybe<TheProductionAllocation>;
107955
+ /** Forecast one asset's daily production from its reported history. */
107956
+ theProductionForecast: TheProductionForecast;
107957
+ /** Assemble the chain-of-custody certificate for a shipment. */
107958
+ theProvenanceCertificate: TheProvenanceCertificate;
107959
+ /** Run a saved scenario: forecast, inventory simulation and dispatch plan. */
107960
+ theRunForecastScenario: TheScenarioResult;
107296
107961
  theSafetyDashboard: TheSafetyDashboard;
107297
107962
  theSafetyIncident?: Maybe<TheSafetyIncident>;
107963
+ theServiceContract?: Maybe<TheServiceContract>;
107964
+ theShipmentSources: Array<TheShipmentSource>;
107965
+ theSupplier?: Maybe<TheSupplier>;
107966
+ theSupplierRegisterSummary: TheSupplierRegisterSummary;
107298
107967
  theWorkOrder?: Maybe<TheWorkOrder>;
107299
107968
  thread: MessageConnection;
107300
107969
  /** Activation milestones for the calling workspace (BOFF-3450). */
@@ -111317,10 +111986,18 @@ export type QueryExpensesArgs = {
111317
111986
  workspaceId: Scalars['ID']['input'];
111318
111987
  };
111319
111988
  /** Base Query type with placeholder field. Extended by individual query files. */
111989
+ export type QueryExplainDashboardArgs = {
111990
+ dashboardId: Scalars['ID']['input'];
111991
+ };
111992
+ /** Base Query type with placeholder field. Extended by individual query files. */
111320
111993
  export type QueryExplainRunArgs = {
111321
111994
  runId: Scalars['ID']['input'];
111322
111995
  };
111323
111996
  /** Base Query type with placeholder field. Extended by individual query files. */
111997
+ export type QueryExplainWidgetArgs = {
111998
+ widgetId: Scalars['ID']['input'];
111999
+ };
112000
+ /** Base Query type with placeholder field. Extended by individual query files. */
111324
112001
  export type QueryExportActivityLogsSiemArgs = {
111325
112002
  dateFrom: Scalars['DateTime']['input'];
111326
112003
  dateTo: Scalars['DateTime']['input'];
@@ -115736,6 +116413,10 @@ export type QueryIntrospectNodeArgs = {
115736
116413
  version: Scalars['String']['input'];
115737
116414
  };
115738
116415
  /** Base Query type with placeholder field. Extended by individual query files. */
116416
+ export type QueryInventoryCoverPlanArgs = {
116417
+ input?: InputMaybe<InventoryCoverPlanInput>;
116418
+ };
116419
+ /** Base Query type with placeholder field. Extended by individual query files. */
115739
116420
  export type QueryInventoryItemArgs = {
115740
116421
  id: Scalars['ID']['input'];
115741
116422
  };
@@ -116092,6 +116773,10 @@ export type QueryLabResearchAnalyticsArgs = {
116092
116773
  weeks?: InputMaybe<Scalars['Int']['input']>;
116093
116774
  };
116094
116775
  /** Base Query type with placeholder field. Extended by individual query files. */
116776
+ export type QueryLatestDashboardDigestArgs = {
116777
+ dashboardId: Scalars['ID']['input'];
116778
+ };
116779
+ /** Base Query type with placeholder field. Extended by individual query files. */
116095
116780
  export type QueryLegalHoldsArgs = {
116096
116781
  status?: InputMaybe<LegalHoldStatus>;
116097
116782
  workspaceId: Scalars['ID']['input'];
@@ -116997,6 +117682,11 @@ export type QueryMtwFreightInvoiceReviewPageArgs = {
116997
117682
  status?: InputMaybe<MtwFreightInvoiceReviewStatus>;
116998
117683
  };
116999
117684
  /** Base Query type with placeholder field. Extended by individual query files. */
117685
+ export type QueryMtwLatestShipmentDecisionArgs = {
117686
+ kind: MtwShipmentDecisionKind;
117687
+ shipmentId: Scalars['ID']['input'];
117688
+ };
117689
+ /** Base Query type with placeholder field. Extended by individual query files. */
117000
117690
  export type QueryMtwPalletGeometryPreviewArgs = {
117001
117691
  input: MtwPalletGeometryPreviewInput;
117002
117692
  };
@@ -117106,6 +117796,10 @@ export type QueryMtwRiskSweepsArgs = {
117106
117796
  pagination?: InputMaybe<PaginationInput>;
117107
117797
  };
117108
117798
  /** Base Query type with placeholder field. Extended by individual query files. */
117799
+ export type QueryMtwShipmentDecisionArgs = {
117800
+ id: Scalars['ID']['input'];
117801
+ };
117802
+ /** Base Query type with placeholder field. Extended by individual query files. */
117109
117803
  export type QueryMtwShipmentRiskEpisodeArgs = {
117110
117804
  shipmentId: Scalars['ID']['input'];
117111
117805
  };
@@ -119901,6 +120595,10 @@ export type QuerySubscribedProductsArgs = {
119901
120595
  pagination?: InputMaybe<PaginationInput>;
119902
120596
  };
119903
120597
  /** Base Query type with placeholder field. Extended by individual query files. */
120598
+ export type QuerySupervisorRunsArgs = {
120599
+ pagination?: InputMaybe<PaginationInput>;
120600
+ };
120601
+ /** Base Query type with placeholder field. Extended by individual query files. */
119904
120602
  export type QueryTargetArgs = {
119905
120603
  id: Scalars['ID']['input'];
119906
120604
  };
@@ -120393,6 +121091,20 @@ export type QueryTheAssetArgs = {
120393
121091
  id: Scalars['ID']['input'];
120394
121092
  };
120395
121093
  /** Base Query type with placeholder field. Extended by individual query files. */
121094
+ export type QueryTheCarbonCreditArgs = {
121095
+ id: Scalars['ID']['input'];
121096
+ };
121097
+ /** Base Query type with placeholder field. Extended by individual query files. */
121098
+ export type QueryTheCarbonOffsetPositionArgs = {
121099
+ assetId?: InputMaybe<Scalars['ID']['input']>;
121100
+ periodEnd: Scalars['DateTime']['input'];
121101
+ periodStart: Scalars['DateTime']['input'];
121102
+ };
121103
+ /** Base Query type with placeholder field. Extended by individual query files. */
121104
+ export type QueryTheCompareForecastScenariosArgs = {
121105
+ ids: Array<Scalars['ID']['input']>;
121106
+ };
121107
+ /** Base Query type with placeholder field. Extended by individual query files. */
120396
121108
  export type QueryTheComplianceCertArgs = {
120397
121109
  id: Scalars['ID']['input'];
120398
121110
  };
@@ -120405,6 +121117,13 @@ export type QueryTheContractLiftingPositionsArgs = {
120405
121117
  contractId?: InputMaybe<Scalars['ID']['input']>;
120406
121118
  };
120407
121119
  /** Base Query type with placeholder field. Extended by individual query files. */
121120
+ export type QueryTheDemandForecastArgs = {
121121
+ commodity: TheCommodityType;
121122
+ demandFactor?: InputMaybe<Scalars['Float']['input']>;
121123
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
121124
+ unit?: InputMaybe<TheUnit>;
121125
+ };
121126
+ /** Base Query type with placeholder field. Extended by individual query files. */
120408
121127
  export type QueryTheEquipmentArgs = {
120409
121128
  id: Scalars['ID']['input'];
120410
121129
  };
@@ -120413,6 +121132,14 @@ export type QueryTheEsgDisclosureArgs = {
120413
121132
  id: Scalars['ID']['input'];
120414
121133
  };
120415
121134
  /** Base Query type with placeholder field. Extended by individual query files. */
121135
+ export type QueryTheExportEsgDisclosureArgs = {
121136
+ id: Scalars['ID']['input'];
121137
+ };
121138
+ /** Base Query type with placeholder field. Extended by individual query files. */
121139
+ export type QueryTheForecastScenarioArgs = {
121140
+ id: Scalars['ID']['input'];
121141
+ };
121142
+ /** Base Query type with placeholder field. Extended by individual query files. */
120416
121143
  export type QueryTheInterestDeckArgs = {
120417
121144
  id: Scalars['ID']['input'];
120418
121145
  };
@@ -120435,6 +121162,19 @@ export type QueryTheListAssetsArgs = {
120435
121162
  status?: InputMaybe<TheAssetStatus>;
120436
121163
  };
120437
121164
  /** Base Query type with placeholder field. Extended by individual query files. */
121165
+ export type QueryTheListCarbonCreditsArgs = {
121166
+ pagination?: InputMaybe<PaginationInput>;
121167
+ registry?: InputMaybe<TheCarbonRegistry>;
121168
+ status?: InputMaybe<TheCarbonCreditStatus>;
121169
+ vintageYear?: InputMaybe<Scalars['Int']['input']>;
121170
+ };
121171
+ /** Base Query type with placeholder field. Extended by individual query files. */
121172
+ export type QueryTheListCarbonRetirementsArgs = {
121173
+ assetId?: InputMaybe<Scalars['ID']['input']>;
121174
+ creditId?: InputMaybe<Scalars['ID']['input']>;
121175
+ pagination?: InputMaybe<PaginationInput>;
121176
+ };
121177
+ /** Base Query type with placeholder field. Extended by individual query files. */
120438
121178
  export type QueryTheListComplianceCertsArgs = {
120439
121179
  assetId?: InputMaybe<Scalars['ID']['input']>;
120440
121180
  category?: InputMaybe<TheComplianceCategory>;
@@ -120479,6 +121219,11 @@ export type QueryTheListEsgDisclosuresArgs = {
120479
121219
  pagination?: InputMaybe<PaginationInput>;
120480
121220
  };
120481
121221
  /** Base Query type with placeholder field. Extended by individual query files. */
121222
+ export type QueryTheListForecastScenariosArgs = {
121223
+ commodity?: InputMaybe<TheCommodityType>;
121224
+ pagination?: InputMaybe<PaginationInput>;
121225
+ };
121226
+ /** Base Query type with placeholder field. Extended by individual query files. */
120482
121227
  export type QueryTheListInterestDecksArgs = {
120483
121228
  assetId?: InputMaybe<Scalars['ID']['input']>;
120484
121229
  pagination?: InputMaybe<PaginationInput>;
@@ -120524,12 +121269,33 @@ export type QueryTheListSafetyIncidentsArgs = {
120524
121269
  status?: InputMaybe<TheSafetyIncidentStatus>;
120525
121270
  };
120526
121271
  /** Base Query type with placeholder field. Extended by individual query files. */
121272
+ export type QueryTheListServiceContractsArgs = {
121273
+ expiringWithinDays?: InputMaybe<Scalars['Int']['input']>;
121274
+ pagination?: InputMaybe<PaginationInput>;
121275
+ status?: InputMaybe<TheServiceContractStatus>;
121276
+ supplierId?: InputMaybe<Scalars['ID']['input']>;
121277
+ };
121278
+ /** Base Query type with placeholder field. Extended by individual query files. */
120527
121279
  export type QueryTheListShipmentsArgs = {
120528
121280
  contractId?: InputMaybe<Scalars['ID']['input']>;
120529
121281
  pagination?: InputMaybe<PaginationInput>;
120530
121282
  status?: InputMaybe<TheShipmentStatus>;
120531
121283
  };
120532
121284
  /** Base Query type with placeholder field. Extended by individual query files. */
121285
+ export type QueryTheListSupplierScorecardsArgs = {
121286
+ pagination?: InputMaybe<PaginationInput>;
121287
+ serviceContractId?: InputMaybe<Scalars['ID']['input']>;
121288
+ supplierId?: InputMaybe<Scalars['ID']['input']>;
121289
+ };
121290
+ /** Base Query type with placeholder field. Extended by individual query files. */
121291
+ export type QueryTheListSuppliersArgs = {
121292
+ classification?: InputMaybe<TheSupplierClassification>;
121293
+ pagination?: InputMaybe<PaginationInput>;
121294
+ riskLevel?: InputMaybe<TheSupplierRiskLevel>;
121295
+ search?: InputMaybe<Scalars['String']['input']>;
121296
+ status?: InputMaybe<TheSupplierStatus>;
121297
+ };
121298
+ /** Base Query type with placeholder field. Extended by individual query files. */
120533
121299
  export type QueryTheListUnitConversionsArgs = {
120534
121300
  commodity: TheCommodityType;
120535
121301
  };
@@ -120563,14 +121329,53 @@ export type QueryTheNetProductionPositionArgs = {
120563
121329
  reportingUnit?: InputMaybe<TheUnit>;
120564
121330
  };
120565
121331
  /** Base Query type with placeholder field. Extended by individual query files. */
121332
+ export type QueryThePortfolioOverviewArgs = {
121333
+ commodity?: InputMaybe<TheCommodityType>;
121334
+ periodEnd?: InputMaybe<Scalars['DateTime']['input']>;
121335
+ periodStart?: InputMaybe<Scalars['DateTime']['input']>;
121336
+ region?: InputMaybe<Scalars['String']['input']>;
121337
+ };
121338
+ /** Base Query type with placeholder field. Extended by individual query files. */
121339
+ export type QueryThePreviewForecastScenarioArgs = {
121340
+ input: TheForecastScenarioInput;
121341
+ };
121342
+ /** Base Query type with placeholder field. Extended by individual query files. */
120566
121343
  export type QueryTheProductionAllocationArgs = {
120567
121344
  id: Scalars['ID']['input'];
120568
121345
  };
120569
121346
  /** Base Query type with placeholder field. Extended by individual query files. */
121347
+ export type QueryTheProductionForecastArgs = {
121348
+ assetId: Scalars['ID']['input'];
121349
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
121350
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
121351
+ method?: InputMaybe<TheForecastMethod>;
121352
+ unit?: InputMaybe<TheUnit>;
121353
+ };
121354
+ /** Base Query type with placeholder field. Extended by individual query files. */
121355
+ export type QueryTheProvenanceCertificateArgs = {
121356
+ shipmentId: Scalars['ID']['input'];
121357
+ };
121358
+ /** Base Query type with placeholder field. Extended by individual query files. */
121359
+ export type QueryTheRunForecastScenarioArgs = {
121360
+ id: Scalars['ID']['input'];
121361
+ };
121362
+ /** Base Query type with placeholder field. Extended by individual query files. */
120570
121363
  export type QueryTheSafetyIncidentArgs = {
120571
121364
  id: Scalars['ID']['input'];
120572
121365
  };
120573
121366
  /** Base Query type with placeholder field. Extended by individual query files. */
121367
+ export type QueryTheServiceContractArgs = {
121368
+ id: Scalars['ID']['input'];
121369
+ };
121370
+ /** Base Query type with placeholder field. Extended by individual query files. */
121371
+ export type QueryTheShipmentSourcesArgs = {
121372
+ shipmentId: Scalars['ID']['input'];
121373
+ };
121374
+ /** Base Query type with placeholder field. Extended by individual query files. */
121375
+ export type QueryTheSupplierArgs = {
121376
+ id: Scalars['ID']['input'];
121377
+ };
121378
+ /** Base Query type with placeholder field. Extended by individual query files. */
120574
121379
  export type QueryTheWorkOrderArgs = {
120575
121380
  id: Scalars['ID']['input'];
120576
121381
  };
@@ -131713,6 +132518,44 @@ export declare enum SuggestedDataSourceType {
131713
132518
  /** Create new REST API data source */
131714
132519
  NEW_REST = "NEW_REST"
131715
132520
  }
132521
+ /** Per-workspace supervisor configuration. One row per workspace; the FluidGrids scheduled job and workflow definition are opaque references owned by wspace-workflow-svc. */
132522
+ export type SupervisorConfig = {
132523
+ __typename?: 'SupervisorConfig';
132524
+ cron: Scalars['String']['output'];
132525
+ enabled: Scalars['Boolean']['output'];
132526
+ lastRunAt?: Maybe<Scalars['DateTime']['output']>;
132527
+ timezone: Scalars['String']['output'];
132528
+ updatedAt: Scalars['DateTime']['output'];
132529
+ };
132530
+ /** One supervisor run. The auditable record that a review happened: what triggered it, how many findings it persisted, and how many CRITICAL notifications it delivered. Findings are AiPrediction rows whose `metadata.runId` points back here. */
132531
+ export type SupervisorRun = {
132532
+ __typename?: 'SupervisorRun';
132533
+ completedAt?: Maybe<Scalars['DateTime']['output']>;
132534
+ error?: Maybe<Scalars['String']['output']>;
132535
+ findings: Scalars['Int']['output'];
132536
+ id: Scalars['ID']['output'];
132537
+ notified: Scalars['Int']['output'];
132538
+ startedAt: Scalars['DateTime']['output'];
132539
+ status: Scalars['String']['output'];
132540
+ trigger: Scalars['String']['output'];
132541
+ };
132542
+ export type SupervisorRunList = {
132543
+ __typename?: 'SupervisorRunList';
132544
+ hasMore: Scalars['Boolean']['output'];
132545
+ items: Array<SupervisorRun>;
132546
+ total: Scalars['Int']['output'];
132547
+ };
132548
+ /** Result of a supervisor run request. `run` is null when the request was accepted but nothing ran (supervisor disabled, feature flag off, or another run already in flight) — those are deliberate no-ops, not errors. */
132549
+ export type SupervisorRunResult = {
132550
+ __typename?: 'SupervisorRunResult';
132551
+ findings: Scalars['Int']['output'];
132552
+ run?: Maybe<SupervisorRun>;
132553
+ };
132554
+ /** Public tick endpoint called by the workspace's FluidGrids scheduled job (a single `internal:http` node POSTing from inside wspace-workflow-svc). The unauthenticated call is authorized by an HMAC-SHA256 of the workspaceId keyed by INTERNAL_SERVICE_TOKEN — never a user token — and the supervisor refuses to run when the feature flag or the workspace config is off (fail-closed). */
132555
+ export type SupervisorTickInput = {
132556
+ dispatchSecret: Scalars['String']['input'];
132557
+ workspaceId: Scalars['ID']['input'];
132558
+ };
131716
132559
  /** A supplier of seeds, seedlings, fertilizer, or equipment. */
131717
132560
  export type Supplier = {
131718
132561
  __typename?: 'Supplier';
@@ -134527,6 +135370,16 @@ export type TestSecretsProviderConnectionResponse = MutationResponse & {
134527
135370
  message: Scalars['String']['output'];
134528
135371
  success: Scalars['Boolean']['output'];
134529
135372
  };
135373
+ export type TheAddSupplierContactInput = {
135374
+ email?: InputMaybe<Scalars['String']['input']>;
135375
+ /** Make this the primary contact (the first contact always is). */
135376
+ isPrimary?: InputMaybe<Scalars['Boolean']['input']>;
135377
+ name: Scalars['String']['input'];
135378
+ notes?: InputMaybe<Scalars['String']['input']>;
135379
+ phone?: InputMaybe<Scalars['String']['input']>;
135380
+ role?: InputMaybe<Scalars['String']['input']>;
135381
+ supplierId: Scalars['ID']['input'];
135382
+ };
134530
135383
  export type TheAllocationCorrectionEntryInput = {
134531
135384
  assetId: Scalars['ID']['input'];
134532
135385
  /** Defaults to the original entry's royalty (0 for an asset not in the original). */
@@ -134715,6 +135568,16 @@ export type TheAssetConnection = {
134715
135568
  items: Array<TheAsset>;
134716
135569
  pageInfo: ThePageInfo;
134717
135570
  };
135571
+ export type TheAssetForecastSummary = {
135572
+ __typename?: 'TheAssetForecastSummary';
135573
+ assetId: Scalars['ID']['output'];
135574
+ assetName: Scalars['String']['output'];
135575
+ backtestMape?: Maybe<Scalars['Float']['output']>;
135576
+ dailyRate: Scalars['Float']['output'];
135577
+ observations: Scalars['Int']['output'];
135578
+ status: TheAssetStatus;
135579
+ totalForecast: Scalars['Float']['output'];
135580
+ };
134718
135581
  export declare enum TheAssetKind {
134719
135582
  GAS_FIELD = "GAS_FIELD",
134720
135583
  MINE = "MINE",
@@ -134791,6 +135654,100 @@ export type TheBulkAllocationResult = {
134791
135654
  truncated: Scalars['Boolean']['output'];
134792
135655
  validatedCount: Scalars['Int']['output'];
134793
135656
  };
135657
+ /** A holding of carbon credits from one registry project and vintage. One credit is one tonne of CO2e. */
135658
+ export type TheCarbonCredit = {
135659
+ __typename?: 'TheCarbonCredit';
135660
+ acquiredAt?: Maybe<Scalars['DateTime']['output']>;
135661
+ /** Tonnes of this holding still available to retire. */
135662
+ availableTonnes: Scalars['Float']['output'];
135663
+ createdAt: Scalars['DateTime']['output'];
135664
+ currency: Scalars['String']['output'];
135665
+ /** Reference to a wspace-files-svc File (registry statement or transfer record). */
135666
+ evidence?: Maybe<File>;
135667
+ id: Scalars['ID']['output'];
135668
+ methodology?: Maybe<Scalars['String']['output']>;
135669
+ notes?: Maybe<Scalars['String']['output']>;
135670
+ /** Registry project identifier (e.g. VCS-1234). */
135671
+ projectId: Scalars['String']['output'];
135672
+ projectName: Scalars['String']['output'];
135673
+ quantityTonnes: Scalars['Float']['output'];
135674
+ registry: TheCarbonRegistry;
135675
+ retiredTonnes: Scalars['Float']['output'];
135676
+ serialEnd?: Maybe<Scalars['String']['output']>;
135677
+ serialStart?: Maybe<Scalars['String']['output']>;
135678
+ status: TheCarbonCreditStatus;
135679
+ unitCost?: Maybe<Scalars['Float']['output']>;
135680
+ updatedAt: Scalars['DateTime']['output'];
135681
+ vintageYear: Scalars['Int']['output'];
135682
+ workspaceId: Scalars['ID']['output'];
135683
+ };
135684
+ export type TheCarbonCreditConnection = {
135685
+ __typename?: 'TheCarbonCreditConnection';
135686
+ items: Array<TheCarbonCredit>;
135687
+ pageInfo: ThePageInfo;
135688
+ };
135689
+ /** Lifecycle of a carbon-credit holding. Retirements move it from ACTIVE to PARTIALLY_RETIRED and then RETIRED; only an ACTIVE holding with nothing retired can be CANCELLED. */
135690
+ export declare enum TheCarbonCreditStatus {
135691
+ ACTIVE = "ACTIVE",
135692
+ CANCELLED = "CANCELLED",
135693
+ PARTIALLY_RETIRED = "PARTIALLY_RETIRED",
135694
+ RETIRED = "RETIRED"
135695
+ }
135696
+ /** Offset matching for a reporting period: the period's emission records netted against the carbon-credit retirements claimed for it. A record or retirement counts when its period overlaps the requested one (the same rule ESG disclosures use). */
135697
+ export type TheCarbonOffsetPosition = {
135698
+ __typename?: 'TheCarbonOffsetPosition';
135699
+ assetId?: Maybe<Scalars['ID']['output']>;
135700
+ byScope: Array<TheScopeOffsetRow>;
135701
+ byVintage: Array<TheVintageOffsetRow>;
135702
+ /** Offset share of gross emissions, 0-100. Null when the period has no emissions. */
135703
+ coveragePct?: Maybe<Scalars['Float']['output']>;
135704
+ grossCo2eTonnes: Scalars['Float']['output'];
135705
+ netCo2eTonnes: Scalars['Float']['output'];
135706
+ offsetTonnes: Scalars['Float']['output'];
135707
+ oldVintageTonnes: Scalars['Float']['output'];
135708
+ overOffsetTonnes: Scalars['Float']['output'];
135709
+ periodEnd: Scalars['DateTime']['output'];
135710
+ periodStart: Scalars['DateTime']['output'];
135711
+ retirementCount: Scalars['Int']['output'];
135712
+ unretiredBalanceTonnes: Scalars['Float']['output'];
135713
+ unscopedOffsetTonnes: Scalars['Float']['output'];
135714
+ };
135715
+ /** Carbon-credit registry a holding was issued on. */
135716
+ export declare enum TheCarbonRegistry {
135717
+ ACR = "ACR",
135718
+ ARTICLE_6 = "ARTICLE_6",
135719
+ CAR = "CAR",
135720
+ CDM = "CDM",
135721
+ GOLD_STANDARD = "GOLD_STANDARD",
135722
+ ISOMETRIC = "ISOMETRIC",
135723
+ OTHER = "OTHER",
135724
+ PURO_EARTH = "PURO_EARTH",
135725
+ VERRA = "VERRA"
135726
+ }
135727
+ /** A permanent retirement of part of a carbon-credit holding, claimed against an emissions reporting period and optionally one asset and GHG scope. */
135728
+ export type TheCarbonRetirement = {
135729
+ __typename?: 'TheCarbonRetirement';
135730
+ asset?: Maybe<TheAsset>;
135731
+ assetId?: Maybe<Scalars['ID']['output']>;
135732
+ beneficiary: Scalars['String']['output'];
135733
+ createdAt: Scalars['DateTime']['output'];
135734
+ credit: TheCarbonCredit;
135735
+ creditId: Scalars['ID']['output'];
135736
+ id: Scalars['ID']['output'];
135737
+ periodEnd: Scalars['DateTime']['output'];
135738
+ periodStart: Scalars['DateTime']['output'];
135739
+ quantityTonnes: Scalars['Float']['output'];
135740
+ reason?: Maybe<Scalars['String']['output']>;
135741
+ registryReference?: Maybe<Scalars['String']['output']>;
135742
+ retiredAt: Scalars['DateTime']['output'];
135743
+ scope?: Maybe<TheEmissionScope>;
135744
+ workspaceId: Scalars['ID']['output'];
135745
+ };
135746
+ export type TheCarbonRetirementConnection = {
135747
+ __typename?: 'TheCarbonRetirementConnection';
135748
+ items: Array<TheCarbonRetirement>;
135749
+ pageInfo: ThePageInfo;
135750
+ };
134794
135751
  export type TheCloseAllocationPeriodInput = {
134795
135752
  /** Close the period for one measurement asset only; omit to close it for every asset. */
134796
135753
  assetId?: InputMaybe<Scalars['ID']['input']>;
@@ -134854,6 +135811,25 @@ export declare enum TheComplianceStatus {
134854
135811
  REVOKED = "REVOKED",
134855
135812
  SUBMITTED = "SUBMITTED"
134856
135813
  }
135814
+ /** How a committed contract turns into a daily demand (SELL) or supply (BUY) signal. */
135815
+ export type TheContractDemand = {
135816
+ __typename?: 'TheContractDemand';
135817
+ contractId: Scalars['ID']['output'];
135818
+ counterparty: Scalars['String']['output'];
135819
+ currency: Scalars['String']['output'];
135820
+ dailyRate: Scalars['Float']['output'];
135821
+ endDate?: Maybe<Scalars['DateTime']['output']>;
135822
+ /** Volume falling inside the forecast horizon. */
135823
+ horizonVolume: Scalars['Float']['output'];
135824
+ /** True when the contract has no end date and was spread over the horizon. */
135825
+ openEnded: Scalars['Boolean']['output'];
135826
+ pricePerUnit: Scalars['Float']['output'];
135827
+ reference: Scalars['String']['output'];
135828
+ /** Contracted volume not yet delivered, in the forecast unit. */
135829
+ remainingVolume: Scalars['Float']['output'];
135830
+ side: TheContractSide;
135831
+ startDate?: Maybe<Scalars['DateTime']['output']>;
135832
+ };
134857
135833
  export type TheContractEntitlement = {
134858
135834
  __typename?: 'TheContractEntitlement';
134859
135835
  allocationEntryId: Scalars['ID']['output'];
@@ -134877,6 +135853,19 @@ export type TheContractEntitlementConnection = {
134877
135853
  items: Array<TheContractEntitlement>;
134878
135854
  pageInfo: ThePageInfo;
134879
135855
  };
135856
+ export type TheContractFulfilment = {
135857
+ __typename?: 'TheContractFulfilment';
135858
+ contractId: Scalars['ID']['output'];
135859
+ contractReference: Scalars['String']['output'];
135860
+ counterparty: Scalars['String']['output'];
135861
+ /** Volume due inside the horizon. */
135862
+ demand: Scalars['Float']['output'];
135863
+ dispatched: Scalars['Float']['output'];
135864
+ endDate?: Maybe<Scalars['DateTime']['output']>;
135865
+ fulfilmentPct: Scalars['Float']['output'];
135866
+ /** Volume still owed at the end of the horizon. */
135867
+ shortfall: Scalars['Float']['output'];
135868
+ };
134880
135869
  /** A contract's entitlement from approved allocations against its lifted (delivered) volume, in the contract's unit. */
134881
135870
  export type TheContractLiftingPosition = {
134882
135871
  __typename?: 'TheContractLiftingPosition';
@@ -135067,6 +136056,19 @@ export type TheCreateReserveEstimateInput = {
135067
136056
  recoveryFactor?: InputMaybe<Scalars['Float']['input']>;
135068
136057
  unit?: InputMaybe<TheUnit>;
135069
136058
  };
136059
+ export type TheCreateServiceContractInput = {
136060
+ currency?: InputMaybe<Scalars['String']['input']>;
136061
+ endDate?: InputMaybe<Scalars['DateTime']['input']>;
136062
+ notes?: InputMaybe<Scalars['String']['input']>;
136063
+ paymentTerms?: InputMaybe<Scalars['String']['input']>;
136064
+ reference: Scalars['String']['input'];
136065
+ renewalNoticeDays?: InputMaybe<Scalars['Int']['input']>;
136066
+ scope?: InputMaybe<Scalars['String']['input']>;
136067
+ startDate?: InputMaybe<Scalars['DateTime']['input']>;
136068
+ supplierId: Scalars['ID']['input'];
136069
+ title: Scalars['String']['input'];
136070
+ value?: InputMaybe<Scalars['Float']['input']>;
136071
+ };
135070
136072
  export type TheCreateShipmentInput = {
135071
136073
  carrier?: InputMaybe<Scalars['String']['input']>;
135072
136074
  contractId: Scalars['ID']['input'];
@@ -135081,6 +136083,23 @@ export type TheCreateShipmentInput = {
135081
136083
  unit?: InputMaybe<TheUnit>;
135082
136084
  volume: Scalars['Float']['input'];
135083
136085
  };
136086
+ export type TheCreateSupplierInput = {
136087
+ address?: InputMaybe<Scalars['String']['input']>;
136088
+ classification?: InputMaybe<TheSupplierClassification>;
136089
+ code?: InputMaybe<Scalars['String']['input']>;
136090
+ country?: InputMaybe<Scalars['String']['input']>;
136091
+ email?: InputMaybe<Scalars['String']['input']>;
136092
+ legalName?: InputMaybe<Scalars['String']['input']>;
136093
+ name: Scalars['String']['input'];
136094
+ notes?: InputMaybe<Scalars['String']['input']>;
136095
+ phone?: InputMaybe<Scalars['String']['input']>;
136096
+ riskLevel?: InputMaybe<TheSupplierRiskLevel>;
136097
+ scope?: InputMaybe<Scalars['String']['input']>;
136098
+ /** Initial status: PROSPECTIVE (default) or APPROVED. ON_HOLD, BLOCKED and INACTIVE are set afterwards with theSetSupplierStatus. */
136099
+ status?: InputMaybe<TheSupplierStatus>;
136100
+ taxId?: InputMaybe<Scalars['String']['input']>;
136101
+ website?: InputMaybe<Scalars['String']['input']>;
136102
+ };
135084
136103
  export type TheCreateWorkOrderInput = {
135085
136104
  /** Required unless equipmentId is given (the asset is then taken from the equipment). */
135086
136105
  assetId?: InputMaybe<Scalars['ID']['input']>;
@@ -135095,6 +136114,41 @@ export type TheCreateWorkOrderInput = {
135095
136114
  title: Scalars['String']['input'];
135096
136115
  type?: InputMaybe<TheWorkOrderType>;
135097
136116
  };
136117
+ export type TheCurrencyAmount = {
136118
+ __typename?: 'TheCurrencyAmount';
136119
+ amount: Scalars['Float']['output'];
136120
+ currency: Scalars['String']['output'];
136121
+ };
136122
+ export type TheDemandForecast = {
136123
+ __typename?: 'TheDemandForecast';
136124
+ commodity: TheCommodityType;
136125
+ contracts: Array<TheContractDemand>;
136126
+ horizonDays: Scalars['Int']['output'];
136127
+ points: Array<TheDemandPoint>;
136128
+ totalDemand: Scalars['Float']['output'];
136129
+ totalInbound: Scalars['Float']['output'];
136130
+ unit: TheUnit;
136131
+ warnings: Array<Scalars['String']['output']>;
136132
+ };
136133
+ export type TheDemandPoint = {
136134
+ __typename?: 'TheDemandPoint';
136135
+ date: Scalars['DateTime']['output'];
136136
+ /** Volume due to buyers under sales contracts that day. */
136137
+ demand: Scalars['Float']['output'];
136138
+ /** Volume arriving under purchase contracts that day. */
136139
+ inbound: Scalars['Float']['output'];
136140
+ };
136141
+ /** Recommended dispatch volume for one contract in one week (weeks start Monday, UTC). */
136142
+ export type TheDispatchRecommendation = {
136143
+ __typename?: 'TheDispatchRecommendation';
136144
+ contractId: Scalars['ID']['output'];
136145
+ contractReference: Scalars['String']['output'];
136146
+ counterparty: Scalars['String']['output'];
136147
+ currency: Scalars['String']['output'];
136148
+ estimatedRevenue: Scalars['Float']['output'];
136149
+ volume: Scalars['Float']['output'];
136150
+ weekStart: Scalars['DateTime']['output'];
136151
+ };
135098
136152
  export type TheEmissionRecord = {
135099
136153
  __typename?: 'TheEmissionRecord';
135100
136154
  assetId?: Maybe<Scalars['ID']['output']>;
@@ -135186,6 +136240,22 @@ export type TheEsgDisclosureConnection = {
135186
136240
  items: Array<TheEsgDisclosure>;
135187
136241
  pageInfo: ThePageInfo;
135188
136242
  };
136243
+ /** Audit-ready export of one ESG disclosure: its snapshot datapoints followed by every emission record and carbon-credit retirement in its period, as CSV, with a SHA-256 digest of the file. */
136244
+ export type TheEsgDisclosureExport = {
136245
+ __typename?: 'TheEsgDisclosureExport';
136246
+ content: Scalars['String']['output'];
136247
+ contentType: Scalars['String']['output'];
136248
+ disclosureId: Scalars['ID']['output'];
136249
+ emissionRecordCount: Scalars['Int']['output'];
136250
+ exportedAt: Scalars['DateTime']['output'];
136251
+ filename: Scalars['String']['output'];
136252
+ lineageCo2eTonnes: Scalars['Float']['output'];
136253
+ /** False when the period's emission records changed after the disclosure was generated. */
136254
+ lineageMatchesSnapshot: Scalars['Boolean']['output'];
136255
+ retirementCount: Scalars['Int']['output'];
136256
+ sha256: Scalars['String']['output'];
136257
+ truncated: Scalars['Boolean']['output'];
136258
+ };
135189
136259
  export declare enum TheEsgDisclosureStatus {
135190
136260
  DRAFT = "DRAFT",
135191
136261
  FINAL = "FINAL"
@@ -135198,6 +136268,74 @@ export declare enum TheEsgFramework {
135198
136268
  SASB = "SASB",
135199
136269
  SEC_CLIMATE = "SEC_CLIMATE"
135200
136270
  }
136271
+ /** Reported daily production used to fit the forecast. */
136272
+ export type TheForecastHistoryPoint = {
136273
+ __typename?: 'TheForecastHistoryPoint';
136274
+ date: Scalars['DateTime']['output'];
136275
+ value: Scalars['Float']['output'];
136276
+ };
136277
+ /** Statistical method used to project an asset's production forward. MOVING_AVERAGE: mean daily rate over the most recent 30 observations. LINEAR_TREND: least-squares straight line through the history. EXPONENTIAL_SMOOTHING: Holt's damped-trend exponential smoothing. */
136278
+ export declare enum TheForecastMethod {
136279
+ EXPONENTIAL_SMOOTHING = "EXPONENTIAL_SMOOTHING",
136280
+ LINEAR_TREND = "LINEAR_TREND",
136281
+ MOVING_AVERAGE = "MOVING_AVERAGE"
136282
+ }
136283
+ /** One forecast day: the central daily rate and its P10–P90 band. */
136284
+ export type TheForecastPoint = {
136285
+ __typename?: 'TheForecastPoint';
136286
+ date: Scalars['DateTime']['output'];
136287
+ high: Scalars['Float']['output'];
136288
+ low: Scalars['Float']['output'];
136289
+ value: Scalars['Float']['output'];
136290
+ };
136291
+ /** 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. */
136292
+ export type TheForecastScenario = {
136293
+ __typename?: 'TheForecastScenario';
136294
+ /** Assets included; empty means every PRODUCING asset of the commodity. */
136295
+ assetIds: Array<Scalars['ID']['output']>;
136296
+ commodity: TheCommodityType;
136297
+ createdAt: Scalars['DateTime']['output'];
136298
+ /** Maximum volume that can be dispatched per day; null means unconstrained. */
136299
+ dailyDispatchCapacity?: Maybe<Scalars['Float']['output']>;
136300
+ /** Demand sensitivity multiplier applied to contracted sales (1 = as contracted). */
136301
+ demandFactor: Scalars['Float']['output'];
136302
+ description?: Maybe<Scalars['String']['output']>;
136303
+ historyDays: Scalars['Int']['output'];
136304
+ horizonDays: Scalars['Int']['output'];
136305
+ id: Scalars['ID']['output'];
136306
+ method: TheForecastMethod;
136307
+ name: Scalars['String']['output'];
136308
+ /** Opening stock; null uses the AVAILABLE inventory lots of the commodity. */
136309
+ openingInventory?: Maybe<Scalars['Float']['output']>;
136310
+ /** Production sensitivity multiplier (1 = forecast as fitted). */
136311
+ productionFactor: Scalars['Float']['output'];
136312
+ /** Storage capacity; null means unconstrained. Production that cannot be stored is curtailed. */
136313
+ storageCapacity?: Maybe<Scalars['Float']['output']>;
136314
+ /** Unit every volume in the scenario is reported in. */
136315
+ unit: TheUnit;
136316
+ updatedAt: Scalars['DateTime']['output'];
136317
+ workspaceId: Scalars['ID']['output'];
136318
+ };
136319
+ export type TheForecastScenarioConnection = {
136320
+ __typename?: 'TheForecastScenarioConnection';
136321
+ items: Array<TheForecastScenario>;
136322
+ pageInfo: ThePageInfo;
136323
+ };
136324
+ export type TheForecastScenarioInput = {
136325
+ assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
136326
+ commodity: TheCommodityType;
136327
+ dailyDispatchCapacity?: InputMaybe<Scalars['Float']['input']>;
136328
+ demandFactor?: InputMaybe<Scalars['Float']['input']>;
136329
+ description?: InputMaybe<Scalars['String']['input']>;
136330
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
136331
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
136332
+ method?: InputMaybe<TheForecastMethod>;
136333
+ name: Scalars['String']['input'];
136334
+ openingInventory?: InputMaybe<Scalars['Float']['input']>;
136335
+ productionFactor?: InputMaybe<Scalars['Float']['input']>;
136336
+ storageCapacity?: InputMaybe<Scalars['Float']['input']>;
136337
+ unit?: InputMaybe<TheUnit>;
136338
+ };
135201
136339
  export type TheGenerateEsgDisclosureInput = {
135202
136340
  framework: TheEsgFramework;
135203
136341
  notes?: InputMaybe<Scalars['String']['input']>;
@@ -135329,6 +136467,12 @@ export declare enum TheLiftingPositionKind {
135329
136467
  /** Less has been lifted than the contract is entitled to. */
135330
136468
  UNDER_LIFTED = "UNDER_LIFTED"
135331
136469
  }
136470
+ export type TheLinkShipmentSourceInput = {
136471
+ lotId: Scalars['ID']['input'];
136472
+ /** Quantity of the lot loaded, in the shipment's unit. Re-linking the same lot replaces it. */
136473
+ quantity: Scalars['Float']['input'];
136474
+ shipmentId: Scalars['ID']['input'];
136475
+ };
135332
136476
  /** Live counts for the maintenance dashboard. */
135333
136477
  export type TheMaintenanceDashboard = {
135334
136478
  __typename?: 'TheMaintenanceDashboard';
@@ -135445,6 +136589,9 @@ export type TheOfftakeContract = {
135445
136589
  signedAt?: Maybe<Scalars['DateTime']['output']>;
135446
136590
  startDate?: Maybe<Scalars['DateTime']['output']>;
135447
136591
  status: TheContractStatus;
136592
+ supplier?: Maybe<TheSupplier>;
136593
+ /** The counterparty in the supplier register, if linked. `counterparty` stays the free-text name of record. */
136594
+ supplierId?: Maybe<Scalars['ID']['output']>;
135448
136595
  unit: TheUnit;
135449
136596
  updatedAt: Scalars['DateTime']['output'];
135450
136597
  workspaceId: Scalars['ID']['output'];
@@ -135462,6 +136609,77 @@ export type ThePageInfo = {
135462
136609
  cursor?: Maybe<Scalars['String']['output']>;
135463
136610
  hasMore: Scalars['Boolean']['output'];
135464
136611
  };
136612
+ export type ThePortfolioAssetStatusCount = {
136613
+ __typename?: 'ThePortfolioAssetStatusCount';
136614
+ count: Scalars['Int']['output'];
136615
+ status: TheAssetStatus;
136616
+ };
136617
+ /** Live offtake commitments (SIGNED or ACTIVE contracts). Contracts carry no region, so commitments follow the commodity filter but not the region filter. */
136618
+ export type ThePortfolioCommitment = {
136619
+ __typename?: 'ThePortfolioCommitment';
136620
+ commodity: TheCommodityType;
136621
+ contractCount: Scalars['Int']['output'];
136622
+ contractedVolume: Scalars['Float']['output'];
136623
+ deliveredVolume: Scalars['Float']['output'];
136624
+ remainingVolume: Scalars['Float']['output'];
136625
+ side: TheContractSide;
136626
+ unit: TheUnit;
136627
+ };
136628
+ export type ThePortfolioMoney = {
136629
+ __typename?: 'ThePortfolioMoney';
136630
+ amount: Scalars['Float']['output'];
136631
+ currency: Scalars['String']['output'];
136632
+ };
136633
+ export type ThePortfolioOverview = {
136634
+ __typename?: 'ThePortfolioOverview';
136635
+ assetsByStatus: Array<ThePortfolioAssetStatusCount>;
136636
+ commitments: Array<ThePortfolioCommitment>;
136637
+ commodity?: Maybe<TheCommodityType>;
136638
+ generatedAt: Scalars['DateTime']['output'];
136639
+ inventory: Array<ThePortfolioQuantity>;
136640
+ inventoryTruncated: Scalars['Boolean']['output'];
136641
+ inventoryValue: Array<ThePortfolioMoney>;
136642
+ periodEnd: Scalars['DateTime']['output'];
136643
+ periodStart: Scalars['DateTime']['output'];
136644
+ production: Array<ThePortfolioQuantity>;
136645
+ region?: Maybe<Scalars['String']['output']>;
136646
+ /** Every region in the workspace (for the region filter), regardless of filters. */
136647
+ regions: Array<Scalars['String']['output']>;
136648
+ segments: Array<ThePortfolioSegment>;
136649
+ totals: ThePortfolioTotals;
136650
+ };
136651
+ export type ThePortfolioQuantity = {
136652
+ __typename?: 'ThePortfolioQuantity';
136653
+ commodity: TheCommodityType;
136654
+ quantity: Scalars['Float']['output'];
136655
+ unit: TheUnit;
136656
+ };
136657
+ /** One commodity in one region. The region is the last comma-separated part of the asset location (usually the country); assets without a location fall in "Unassigned". */
136658
+ export type ThePortfolioSegment = {
136659
+ __typename?: 'ThePortfolioSegment';
136660
+ assetCount: Scalars['Int']['output'];
136661
+ commodity: TheCommodityType;
136662
+ emissionsCo2eTonnes: Scalars['Float']['output'];
136663
+ inventory: Array<ThePortfolioQuantity>;
136664
+ producingAssetCount: Scalars['Int']['output'];
136665
+ production: Array<ThePortfolioQuantity>;
136666
+ region: Scalars['String']['output'];
136667
+ };
136668
+ export type ThePortfolioTotals = {
136669
+ __typename?: 'ThePortfolioTotals';
136670
+ assetCount: Scalars['Int']['output'];
136671
+ commodityCount: Scalars['Int']['output'];
136672
+ complianceExpiredCount: Scalars['Int']['output'];
136673
+ /** APPROVED certifications expiring within 90 days. */
136674
+ complianceExpiringCount: Scalars['Int']['output'];
136675
+ emissionsCo2eTonnes: Scalars['Float']['output'];
136676
+ netEmissionsCo2eTonnes: Scalars['Float']['output'];
136677
+ offsetsRetiredTonnes: Scalars['Float']['output'];
136678
+ openContractCount: Scalars['Int']['output'];
136679
+ openSafetyIncidentCount: Scalars['Int']['output'];
136680
+ producingAssetCount: Scalars['Int']['output'];
136681
+ regionCount: Scalars['Int']['output'];
136682
+ };
135465
136683
  export declare enum ThePricingBasis {
135466
136684
  FIXED = "FIXED",
135467
136685
  FORMULA = "FORMULA",
@@ -135523,6 +136741,27 @@ export type TheProductionAllocationConnection = {
135523
136741
  items: Array<TheProductionAllocation>;
135524
136742
  pageInfo: ThePageInfo;
135525
136743
  };
136744
+ export type TheProductionForecast = {
136745
+ __typename?: 'TheProductionForecast';
136746
+ assetId: Scalars['ID']['output'];
136747
+ assetName: Scalars['String']['output'];
136748
+ /** Mean absolute percentage error of a hold-out backtest (fit on the first 80% of the history, tested on the last 20%). Null when there is too little history. */
136749
+ backtestMape?: Maybe<Scalars['Float']['output']>;
136750
+ /** Nameplate capacity per day in the forecast unit; null when unknown or not convertible. */
136751
+ capacityPerDay?: Maybe<Scalars['Float']['output']>;
136752
+ /** Fitted daily rate at the most recent observation. */
136753
+ dailyRate: Scalars['Float']['output'];
136754
+ history: Array<TheForecastHistoryPoint>;
136755
+ historyDays: Scalars['Int']['output'];
136756
+ horizonDays: Scalars['Int']['output'];
136757
+ method: TheForecastMethod;
136758
+ /** Days in the history window with reported production. */
136759
+ observations: Scalars['Int']['output'];
136760
+ points: Array<TheForecastPoint>;
136761
+ totalForecast: Scalars['Float']['output'];
136762
+ unit: TheUnit;
136763
+ warnings: Array<Scalars['String']['output']>;
136764
+ };
135526
136765
  export type TheProductionRecord = {
135527
136766
  __typename?: 'TheProductionRecord';
135528
136767
  asset?: Maybe<TheAsset>;
@@ -135548,6 +136787,49 @@ export type TheProductionRecordConnection = {
135548
136787
  items: Array<TheProductionRecord>;
135549
136788
  pageInfo: ThePageInfo;
135550
136789
  };
136790
+ /** 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. */
136791
+ export type TheProvenanceCertificate = {
136792
+ __typename?: 'TheProvenanceCertificate';
136793
+ complete: Scalars['Boolean']['output'];
136794
+ contract: TheOfftakeContract;
136795
+ coveragePct: Scalars['Float']['output'];
136796
+ digest: Scalars['String']['output'];
136797
+ gaps: Array<TheProvenanceGap>;
136798
+ issuedAt: Scalars['DateTime']['output'];
136799
+ referenceDate: Scalars['DateTime']['output'];
136800
+ shipment: TheShipment;
136801
+ sourcedVolume: Scalars['Float']['output'];
136802
+ sources: Array<TheProvenanceSourceLink>;
136803
+ };
136804
+ export type TheProvenanceCertification = {
136805
+ __typename?: 'TheProvenanceCertification';
136806
+ cert: TheComplianceCert;
136807
+ /** APPROVED and unexpired on the certificate reference date. */
136808
+ validAtReference: Scalars['Boolean']['output'];
136809
+ };
136810
+ /** A link in a custody chain that is missing, which keeps the certificate from being complete. */
136811
+ export declare enum TheProvenanceGap {
136812
+ LOT_WITHOUT_ASSET = "LOT_WITHOUT_ASSET",
136813
+ NOT_DELIVERED = "NOT_DELIVERED",
136814
+ NO_PRODUCTION_RECORD = "NO_PRODUCTION_RECORD",
136815
+ NO_SOURCES = "NO_SOURCES",
136816
+ NO_TRANSPORT_DOCUMENT = "NO_TRANSPORT_DOCUMENT",
136817
+ NO_VALID_CERTIFICATION = "NO_VALID_CERTIFICATION",
136818
+ UNSOURCED_VOLUME = "UNSOURCED_VOLUME"
136819
+ }
136820
+ /** 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. */
136821
+ export type TheProvenanceSourceLink = {
136822
+ __typename?: 'TheProvenanceSourceLink';
136823
+ asset?: Maybe<TheAsset>;
136824
+ certifications: Array<TheProvenanceCertification>;
136825
+ /** tCO2e per unit of production over the matched window. Null without production. */
136826
+ emissionIntensity?: Maybe<Scalars['Float']['output']>;
136827
+ emissionsCo2eTonnes: Scalars['Float']['output'];
136828
+ lot: TheInventoryLot;
136829
+ producedVolume: Scalars['Float']['output'];
136830
+ productionRecords: Array<TheProductionRecord>;
136831
+ source: TheShipmentSource;
136832
+ };
135551
136833
  export type TheRecordEmissionInput = {
135552
136834
  assetId?: InputMaybe<Scalars['ID']['input']>;
135553
136835
  co2eTonnes: Scalars['Float']['input'];
@@ -135569,6 +136851,33 @@ export type TheRecordProductionInput = {
135569
136851
  unit?: InputMaybe<TheUnit>;
135570
136852
  volume: Scalars['Float']['input'];
135571
136853
  };
136854
+ export type TheRecordSupplierScorecardInput = {
136855
+ comments?: InputMaybe<Scalars['String']['input']>;
136856
+ commercialScore: Scalars['Float']['input'];
136857
+ deliveryScore: Scalars['Float']['input'];
136858
+ periodEnd: Scalars['DateTime']['input'];
136859
+ periodStart: Scalars['DateTime']['input'];
136860
+ qualityScore: Scalars['Float']['input'];
136861
+ safetyScore: Scalars['Float']['input'];
136862
+ /** Optionally scope the review to one service contract of the supplier. */
136863
+ serviceContractId?: InputMaybe<Scalars['ID']['input']>;
136864
+ supplierId: Scalars['ID']['input'];
136865
+ };
136866
+ export type TheRegisterCarbonCreditInput = {
136867
+ acquiredAt?: InputMaybe<Scalars['DateTime']['input']>;
136868
+ currency?: InputMaybe<Scalars['String']['input']>;
136869
+ evidenceFileId?: InputMaybe<Scalars['ID']['input']>;
136870
+ methodology?: InputMaybe<Scalars['String']['input']>;
136871
+ notes?: InputMaybe<Scalars['String']['input']>;
136872
+ projectId: Scalars['String']['input'];
136873
+ projectName: Scalars['String']['input'];
136874
+ quantityTonnes: Scalars['Float']['input'];
136875
+ registry?: InputMaybe<TheCarbonRegistry>;
136876
+ serialEnd?: InputMaybe<Scalars['String']['input']>;
136877
+ serialStart?: InputMaybe<Scalars['String']['input']>;
136878
+ unitCost?: InputMaybe<Scalars['Float']['input']>;
136879
+ vintageYear: Scalars['Int']['input'];
136880
+ };
135572
136881
  export type TheReportSafetyIncidentInput = {
135573
136882
  assetId?: InputMaybe<Scalars['ID']['input']>;
135574
136883
  category?: InputMaybe<TheSafetyIncidentCategory>;
@@ -135615,6 +136924,18 @@ export type TheResetUnitConversionInput = {
135615
136924
  fromUnit: TheUnit;
135616
136925
  toUnit: TheUnit;
135617
136926
  };
136927
+ export type TheRetireCarbonCreditsInput = {
136928
+ assetId?: InputMaybe<Scalars['ID']['input']>;
136929
+ beneficiary: Scalars['String']['input'];
136930
+ creditId: Scalars['ID']['input'];
136931
+ periodEnd: Scalars['DateTime']['input'];
136932
+ periodStart: Scalars['DateTime']['input'];
136933
+ quantityTonnes: Scalars['Float']['input'];
136934
+ reason?: InputMaybe<Scalars['String']['input']>;
136935
+ registryReference?: InputMaybe<Scalars['String']['input']>;
136936
+ retiredAt?: InputMaybe<Scalars['DateTime']['input']>;
136937
+ scope?: InputMaybe<TheEmissionScope>;
136938
+ };
135618
136939
  export type TheSafetyCategoryCount = {
135619
136940
  __typename?: 'TheSafetyCategoryCount';
135620
136941
  category: TheSafetyIncidentCategory;
@@ -135683,6 +137004,105 @@ export type TheSafetySeverityCount = {
135683
137004
  count: Scalars['Int']['output'];
135684
137005
  severity: TheSafetyIncidentSeverity;
135685
137006
  };
137007
+ /** One simulated day of the resource chain. */
137008
+ export type TheScenarioDay = {
137009
+ __typename?: 'TheScenarioDay';
137010
+ /** Contracted volume due but not yet dispatched at the end of the day. */
137011
+ backlog: Scalars['Float']['output'];
137012
+ /** Production that could not be stored because storage was full. */
137013
+ curtailed: Scalars['Float']['output'];
137014
+ date: Scalars['DateTime']['output'];
137015
+ demand: Scalars['Float']['output'];
137016
+ dispatched: Scalars['Float']['output'];
137017
+ inbound: Scalars['Float']['output'];
137018
+ inventory: Scalars['Float']['output'];
137019
+ production: Scalars['Float']['output'];
137020
+ productionHigh: Scalars['Float']['output'];
137021
+ productionLow: Scalars['Float']['output'];
137022
+ };
137023
+ export type TheScenarioResult = {
137024
+ __typename?: 'TheScenarioResult';
137025
+ assets: Array<TheAssetForecastSummary>;
137026
+ commodity: TheCommodityType;
137027
+ contracts: Array<TheContractFulfilment>;
137028
+ days: Array<TheScenarioDay>;
137029
+ dispatchPlan: Array<TheDispatchRecommendation>;
137030
+ generatedAt: Scalars['DateTime']['output'];
137031
+ horizonDays: Scalars['Int']['output'];
137032
+ method: TheForecastMethod;
137033
+ name: Scalars['String']['output'];
137034
+ /** The saved scenario; null for a preview of unsaved assumptions. */
137035
+ scenario?: Maybe<TheForecastScenario>;
137036
+ summary: TheScenarioSummary;
137037
+ unit: TheUnit;
137038
+ warnings: Array<Scalars['String']['output']>;
137039
+ };
137040
+ export type TheScenarioSummary = {
137041
+ __typename?: 'TheScenarioSummary';
137042
+ /** Days ending with contracted volume still owed. */
137043
+ backlogDays: Scalars['Int']['output'];
137044
+ closingInventory: Scalars['Float']['output'];
137045
+ /** Estimated sales revenue of the recommended dispatches, per currency. */
137046
+ estimatedRevenue: Array<TheCurrencyAmount>;
137047
+ fulfilmentPct: Scalars['Float']['output'];
137048
+ minInventory: Scalars['Float']['output'];
137049
+ openingInventory: Scalars['Float']['output'];
137050
+ peakInventory: Scalars['Float']['output'];
137051
+ totalCurtailed: Scalars['Float']['output'];
137052
+ totalDemand: Scalars['Float']['output'];
137053
+ totalDispatched: Scalars['Float']['output'];
137054
+ totalInbound: Scalars['Float']['output'];
137055
+ totalProduction: Scalars['Float']['output'];
137056
+ totalShortfall: Scalars['Float']['output'];
137057
+ };
137058
+ export type TheScopeOffsetRow = {
137059
+ __typename?: 'TheScopeOffsetRow';
137060
+ grossCo2eTonnes: Scalars['Float']['output'];
137061
+ netCo2eTonnes: Scalars['Float']['output'];
137062
+ offsetTonnes: Scalars['Float']['output'];
137063
+ scope: TheEmissionScope;
137064
+ };
137065
+ export type TheServiceContract = {
137066
+ __typename?: 'TheServiceContract';
137067
+ activatedAt?: Maybe<Scalars['DateTime']['output']>;
137068
+ createdAt: Scalars['DateTime']['output'];
137069
+ currency: Scalars['String']['output'];
137070
+ /** Whole days until the end date (negative once past), or null without an end date. */
137071
+ daysToExpiry?: Maybe<Scalars['Int']['output']>;
137072
+ endDate?: Maybe<Scalars['DateTime']['output']>;
137073
+ /** True when the contract is ACTIVE and ends within its renewal-notice period (or 30 days, whichever is longer). */
137074
+ expiringSoon: Scalars['Boolean']['output'];
137075
+ id: Scalars['ID']['output'];
137076
+ notes?: Maybe<Scalars['String']['output']>;
137077
+ paymentTerms?: Maybe<Scalars['String']['output']>;
137078
+ reference: Scalars['String']['output'];
137079
+ /** Days of notice needed before the end date to renew or exit. */
137080
+ renewalNoticeDays?: Maybe<Scalars['Int']['output']>;
137081
+ scope?: Maybe<Scalars['String']['output']>;
137082
+ startDate?: Maybe<Scalars['DateTime']['output']>;
137083
+ status: TheServiceContractStatus;
137084
+ statusReason?: Maybe<Scalars['String']['output']>;
137085
+ supplier?: Maybe<TheSupplier>;
137086
+ supplierId: Scalars['ID']['output'];
137087
+ terminatedAt?: Maybe<Scalars['DateTime']['output']>;
137088
+ title: Scalars['String']['output'];
137089
+ updatedAt: Scalars['DateTime']['output'];
137090
+ /** Total contract value (commitment ceiling) in `currency`. */
137091
+ value?: Maybe<Scalars['Float']['output']>;
137092
+ workspaceId: Scalars['ID']['output'];
137093
+ };
137094
+ export type TheServiceContractConnection = {
137095
+ __typename?: 'TheServiceContractConnection';
137096
+ items: Array<TheServiceContract>;
137097
+ pageInfo: ThePageInfo;
137098
+ };
137099
+ export declare enum TheServiceContractStatus {
137100
+ ACTIVE = "ACTIVE",
137101
+ DRAFT = "DRAFT",
137102
+ EXPIRED = "EXPIRED",
137103
+ SUSPENDED = "SUSPENDED",
137104
+ TERMINATED = "TERMINATED"
137105
+ }
135686
137106
  export type TheSetUnitConversionInput = {
135687
137107
  commodity: TheCommodityType;
135688
137108
  /** One fromUnit equals this many toUnit (> 0). */
@@ -135694,6 +137114,9 @@ export type TheSetUnitConversionInput = {
135694
137114
  export type TheShipment = {
135695
137115
  __typename?: 'TheShipment';
135696
137116
  carrier?: Maybe<Scalars['String']['output']>;
137117
+ carrierSupplier?: Maybe<TheSupplier>;
137118
+ /** The carrier in the supplier register, if linked. `carrier` stays the free-text name of record. */
137119
+ carrierSupplierId?: Maybe<Scalars['ID']['output']>;
135697
137120
  contract?: Maybe<TheOfftakeContract>;
135698
137121
  contractId: Scalars['ID']['output'];
135699
137122
  createdAt: Scalars['DateTime']['output'];
@@ -135708,6 +137131,8 @@ export type TheShipment = {
135708
137131
  origin?: Maybe<Scalars['String']['output']>;
135709
137132
  reference: Scalars['String']['output'];
135710
137133
  scheduledAt?: Maybe<Scalars['DateTime']['output']>;
137134
+ /** Inventory lots this shipment was loaded from (BOFF-4239). */
137135
+ sources: Array<TheShipmentSource>;
135711
137136
  status: TheShipmentStatus;
135712
137137
  /** Carrier-issued tracking / waybill / bill-of-lading number used to follow the movement on the carrier's own network. Surfaced on the chain-of-custody view. */
135713
137138
  trackingId?: Maybe<Scalars['String']['output']>;
@@ -135721,6 +137146,18 @@ export type TheShipmentConnection = {
135721
137146
  items: Array<TheShipment>;
135722
137147
  pageInfo: ThePageInfo;
135723
137148
  };
137149
+ /** The quantity of one inventory lot loaded onto one shipment. */
137150
+ export type TheShipmentSource = {
137151
+ __typename?: 'TheShipmentSource';
137152
+ createdAt: Scalars['DateTime']['output'];
137153
+ id: Scalars['ID']['output'];
137154
+ lot: TheInventoryLot;
137155
+ lotId: Scalars['ID']['output'];
137156
+ quantity: Scalars['Float']['output'];
137157
+ shipmentId: Scalars['ID']['output'];
137158
+ updatedAt: Scalars['DateTime']['output'];
137159
+ workspaceId: Scalars['ID']['output'];
137160
+ };
135724
137161
  export declare enum TheShipmentStatus {
135725
137162
  CANCELLED = "CANCELLED",
135726
137163
  DELIVERED = "DELIVERED",
@@ -135739,6 +137176,151 @@ export declare enum TheShrinkageCategory {
135739
137176
  /** Evaporation, metering and handling losses. */
135740
137177
  LOSS = "LOSS"
135741
137178
  }
137179
+ export type TheSupplier = {
137180
+ __typename?: 'TheSupplier';
137181
+ address?: Maybe<Scalars['String']['output']>;
137182
+ approvedAt?: Maybe<Scalars['DateTime']['output']>;
137183
+ classification: TheSupplierClassification;
137184
+ /** Operator-assigned vendor number (e.g. ERP vendor code). */
137185
+ code?: Maybe<Scalars['String']['output']>;
137186
+ /** Contacts at the supplier, primary first. */
137187
+ contacts: Array<TheSupplierContact>;
137188
+ /** ISO 3166-1 alpha-2 country of registration. */
137189
+ country?: Maybe<Scalars['String']['output']>;
137190
+ createdAt: Scalars['DateTime']['output'];
137191
+ email?: Maybe<Scalars['String']['output']>;
137192
+ id: Scalars['ID']['output'];
137193
+ legalName?: Maybe<Scalars['String']['output']>;
137194
+ name: Scalars['String']['output'];
137195
+ notes?: Maybe<Scalars['String']['output']>;
137196
+ /** Offtake contracts whose counterparty is this supplier (up to 50, newest first). */
137197
+ offtakeContracts: Array<TheOfftakeContract>;
137198
+ /** Scorecard roll-up: average, latest score, rating and trend. */
137199
+ performance: TheSupplierPerformance;
137200
+ phone?: Maybe<Scalars['String']['output']>;
137201
+ /** The primary contact, if any. */
137202
+ primaryContact?: Maybe<TheSupplierContact>;
137203
+ riskLevel: TheSupplierRiskLevel;
137204
+ /** What the supplier provides (scope of supply / services). */
137205
+ scope?: Maybe<Scalars['String']['output']>;
137206
+ /** Service contracts held with the supplier, newest first (up to 50). */
137207
+ serviceContracts: Array<TheServiceContract>;
137208
+ /** Shipments this supplier carries (up to 50, newest first). */
137209
+ shipments: Array<TheShipment>;
137210
+ status: TheSupplierStatus;
137211
+ /** Why the supplier is on hold, blocked or inactive. */
137212
+ statusReason?: Maybe<Scalars['String']['output']>;
137213
+ taxId?: Maybe<Scalars['String']['output']>;
137214
+ updatedAt: Scalars['DateTime']['output'];
137215
+ website?: Maybe<Scalars['String']['output']>;
137216
+ /** Maintenance work orders contracted to this supplier (up to 50, newest first). */
137217
+ workOrders: Array<TheWorkOrder>;
137218
+ workspaceId: Scalars['ID']['output'];
137219
+ };
137220
+ export declare enum TheSupplierClassification {
137221
+ CARRIER = "CARRIER",
137222
+ COMMODITY_COUNTERPARTY = "COMMODITY_COUNTERPARTY",
137223
+ DRILLING_CONTRACTOR = "DRILLING_CONTRACTOR",
137224
+ EQUIPMENT_VENDOR = "EQUIPMENT_VENDOR",
137225
+ HAULER = "HAULER",
137226
+ LABORATORY = "LABORATORY",
137227
+ MATERIALS_VENDOR = "MATERIALS_VENDOR",
137228
+ OTHER = "OTHER",
137229
+ SERVICE_CONTRACTOR = "SERVICE_CONTRACTOR"
137230
+ }
137231
+ export type TheSupplierClassificationCount = {
137232
+ __typename?: 'TheSupplierClassificationCount';
137233
+ classification: TheSupplierClassification;
137234
+ count: Scalars['Int']['output'];
137235
+ };
137236
+ export type TheSupplierConnection = {
137237
+ __typename?: 'TheSupplierConnection';
137238
+ items: Array<TheSupplier>;
137239
+ pageInfo: ThePageInfo;
137240
+ };
137241
+ export type TheSupplierContact = {
137242
+ __typename?: 'TheSupplierContact';
137243
+ createdAt: Scalars['DateTime']['output'];
137244
+ email?: Maybe<Scalars['String']['output']>;
137245
+ id: Scalars['ID']['output'];
137246
+ isPrimary: Scalars['Boolean']['output'];
137247
+ name: Scalars['String']['output'];
137248
+ notes?: Maybe<Scalars['String']['output']>;
137249
+ phone?: Maybe<Scalars['String']['output']>;
137250
+ role?: Maybe<Scalars['String']['output']>;
137251
+ supplierId: Scalars['ID']['output'];
137252
+ updatedAt: Scalars['DateTime']['output'];
137253
+ workspaceId: Scalars['ID']['output'];
137254
+ };
137255
+ export type TheSupplierPerformance = {
137256
+ __typename?: 'TheSupplierPerformance';
137257
+ averageOverallScore?: Maybe<Scalars['Float']['output']>;
137258
+ lastReviewedAt?: Maybe<Scalars['DateTime']['output']>;
137259
+ latestOverallScore?: Maybe<Scalars['Float']['output']>;
137260
+ latestRating?: Maybe<Scalars['String']['output']>;
137261
+ previousOverallScore?: Maybe<Scalars['Float']['output']>;
137262
+ scorecardCount: Scalars['Int']['output'];
137263
+ trend?: Maybe<TheSupplierTrend>;
137264
+ };
137265
+ /** Live counts for the supplier register. */
137266
+ export type TheSupplierRegisterSummary = {
137267
+ __typename?: 'TheSupplierRegisterSummary';
137268
+ activeServiceContracts: Scalars['Int']['output'];
137269
+ averageOverallScore?: Maybe<Scalars['Float']['output']>;
137270
+ byClassification: Array<TheSupplierClassificationCount>;
137271
+ byStatus: Array<TheSupplierStatusCount>;
137272
+ /** ACTIVE service contracts ending within the next 30 days. */
137273
+ contractsExpiringSoon: Scalars['Int']['output'];
137274
+ highRiskSuppliers: Scalars['Int']['output'];
137275
+ totalSuppliers: Scalars['Int']['output'];
137276
+ };
137277
+ export declare enum TheSupplierRiskLevel {
137278
+ HIGH = "HIGH",
137279
+ LOW = "LOW",
137280
+ MEDIUM = "MEDIUM"
137281
+ }
137282
+ /** A performance assessment of a supplier over a review period. Dimension scores are 0-100; the overall score is weighted delivery 35%, quality 30%, safety 25%, commercial 10%, and maps to a rating A (>= 85), B (>= 70), C (>= 55) or D. */
137283
+ export type TheSupplierScorecard = {
137284
+ __typename?: 'TheSupplierScorecard';
137285
+ comments?: Maybe<Scalars['String']['output']>;
137286
+ commercialScore: Scalars['Float']['output'];
137287
+ createdAt: Scalars['DateTime']['output'];
137288
+ deliveryScore: Scalars['Float']['output'];
137289
+ id: Scalars['ID']['output'];
137290
+ overallScore: Scalars['Float']['output'];
137291
+ periodEnd: Scalars['DateTime']['output'];
137292
+ periodStart: Scalars['DateTime']['output'];
137293
+ qualityScore: Scalars['Float']['output'];
137294
+ rating: Scalars['String']['output'];
137295
+ safetyScore: Scalars['Float']['output'];
137296
+ serviceContractId?: Maybe<Scalars['ID']['output']>;
137297
+ supplierId: Scalars['ID']['output'];
137298
+ workspaceId: Scalars['ID']['output'];
137299
+ };
137300
+ export type TheSupplierScorecardConnection = {
137301
+ __typename?: 'TheSupplierScorecardConnection';
137302
+ items: Array<TheSupplierScorecard>;
137303
+ pageInfo: ThePageInfo;
137304
+ };
137305
+ /** Qualification status of a supplier. Only APPROVED suppliers can hold an active service contract; BLOCKED and INACTIVE suppliers cannot be linked to new work. */
137306
+ export declare enum TheSupplierStatus {
137307
+ APPROVED = "APPROVED",
137308
+ BLOCKED = "BLOCKED",
137309
+ INACTIVE = "INACTIVE",
137310
+ ON_HOLD = "ON_HOLD",
137311
+ PROSPECTIVE = "PROSPECTIVE"
137312
+ }
137313
+ export type TheSupplierStatusCount = {
137314
+ __typename?: 'TheSupplierStatusCount';
137315
+ count: Scalars['Int']['output'];
137316
+ status: TheSupplierStatus;
137317
+ };
137318
+ /** Direction of a supplier's latest scorecard against the previous one. */
137319
+ export declare enum TheSupplierTrend {
137320
+ DECLINING = "DECLINING",
137321
+ IMPROVING = "IMPROVING",
137322
+ STABLE = "STABLE"
137323
+ }
135742
137324
  export declare enum TheTransportMode {
135743
137325
  GRID = "GRID",
135744
137326
  PIPELINE = "PIPELINE",
@@ -135804,6 +137386,22 @@ export type TheUpdateEquipmentInput = {
135804
137386
  status?: InputMaybe<TheEquipmentStatus>;
135805
137387
  tag?: InputMaybe<Scalars['String']['input']>;
135806
137388
  };
137389
+ /** Fields left out keep their stored value; pass null to clear an optional constraint. */
137390
+ export type TheUpdateForecastScenarioInput = {
137391
+ assetIds?: InputMaybe<Array<Scalars['ID']['input']>>;
137392
+ commodity?: InputMaybe<TheCommodityType>;
137393
+ dailyDispatchCapacity?: InputMaybe<Scalars['Float']['input']>;
137394
+ demandFactor?: InputMaybe<Scalars['Float']['input']>;
137395
+ description?: InputMaybe<Scalars['String']['input']>;
137396
+ historyDays?: InputMaybe<Scalars['Int']['input']>;
137397
+ horizonDays?: InputMaybe<Scalars['Int']['input']>;
137398
+ method?: InputMaybe<TheForecastMethod>;
137399
+ name?: InputMaybe<Scalars['String']['input']>;
137400
+ openingInventory?: InputMaybe<Scalars['Float']['input']>;
137401
+ productionFactor?: InputMaybe<Scalars['Float']['input']>;
137402
+ storageCapacity?: InputMaybe<Scalars['Float']['input']>;
137403
+ unit?: InputMaybe<TheUnit>;
137404
+ };
135807
137405
  export type TheUpdateMaintenanceScheduleInput = {
135808
137406
  active?: InputMaybe<Scalars['Boolean']['input']>;
135809
137407
  description?: InputMaybe<Scalars['String']['input']>;
@@ -135826,6 +137424,18 @@ export type TheUpdateOfftakeContractInput = {
135826
137424
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
135827
137425
  unit?: InputMaybe<TheUnit>;
135828
137426
  };
137427
+ export type TheUpdateServiceContractInput = {
137428
+ currency?: InputMaybe<Scalars['String']['input']>;
137429
+ endDate?: InputMaybe<Scalars['DateTime']['input']>;
137430
+ notes?: InputMaybe<Scalars['String']['input']>;
137431
+ paymentTerms?: InputMaybe<Scalars['String']['input']>;
137432
+ reference?: InputMaybe<Scalars['String']['input']>;
137433
+ renewalNoticeDays?: InputMaybe<Scalars['Int']['input']>;
137434
+ scope?: InputMaybe<Scalars['String']['input']>;
137435
+ startDate?: InputMaybe<Scalars['DateTime']['input']>;
137436
+ title?: InputMaybe<Scalars['String']['input']>;
137437
+ value?: InputMaybe<Scalars['Float']['input']>;
137438
+ };
135829
137439
  /** Mutable logistics metadata on an in-flight shipment. Lifecycle status is NOT editable here — it moves only through theTransitionShipment/theDeliverShipment so the contract's delivered-volume rollup stays authoritative. Volume and unit are likewise immutable once scheduled, for the same reason. */
135830
137440
  export type TheUpdateShipmentInput = {
135831
137441
  carrier?: InputMaybe<Scalars['String']['input']>;
@@ -135837,6 +137447,30 @@ export type TheUpdateShipmentInput = {
135837
137447
  scheduledAt?: InputMaybe<Scalars['DateTime']['input']>;
135838
137448
  trackingId?: InputMaybe<Scalars['String']['input']>;
135839
137449
  };
137450
+ export type TheUpdateSupplierContactInput = {
137451
+ email?: InputMaybe<Scalars['String']['input']>;
137452
+ /** Set true to make this the primary contact. */
137453
+ isPrimary?: InputMaybe<Scalars['Boolean']['input']>;
137454
+ name?: InputMaybe<Scalars['String']['input']>;
137455
+ notes?: InputMaybe<Scalars['String']['input']>;
137456
+ phone?: InputMaybe<Scalars['String']['input']>;
137457
+ role?: InputMaybe<Scalars['String']['input']>;
137458
+ };
137459
+ export type TheUpdateSupplierInput = {
137460
+ address?: InputMaybe<Scalars['String']['input']>;
137461
+ classification?: InputMaybe<TheSupplierClassification>;
137462
+ code?: InputMaybe<Scalars['String']['input']>;
137463
+ country?: InputMaybe<Scalars['String']['input']>;
137464
+ email?: InputMaybe<Scalars['String']['input']>;
137465
+ legalName?: InputMaybe<Scalars['String']['input']>;
137466
+ name?: InputMaybe<Scalars['String']['input']>;
137467
+ notes?: InputMaybe<Scalars['String']['input']>;
137468
+ phone?: InputMaybe<Scalars['String']['input']>;
137469
+ riskLevel?: InputMaybe<TheSupplierRiskLevel>;
137470
+ scope?: InputMaybe<Scalars['String']['input']>;
137471
+ taxId?: InputMaybe<Scalars['String']['input']>;
137472
+ website?: InputMaybe<Scalars['String']['input']>;
137473
+ };
135840
137474
  export type TheUpdateWorkOrderInput = {
135841
137475
  assigneeId?: InputMaybe<Scalars['ID']['input']>;
135842
137476
  conditionTrigger?: InputMaybe<Scalars['String']['input']>;
@@ -135847,6 +137481,14 @@ export type TheUpdateWorkOrderInput = {
135847
137481
  scheduledStart?: InputMaybe<Scalars['DateTime']['input']>;
135848
137482
  title?: InputMaybe<Scalars['String']['input']>;
135849
137483
  };
137484
+ export type TheVintageOffsetRow = {
137485
+ __typename?: 'TheVintageOffsetRow';
137486
+ /** True when the vintage is more than five years older than the reporting period. */
137487
+ oldVintage: Scalars['Boolean']['output'];
137488
+ registry: TheCarbonRegistry;
137489
+ tonnes: Scalars['Float']['output'];
137490
+ vintageYear: Scalars['Int']['output'];
137491
+ };
135850
137492
  export type TheWorkOrder = {
135851
137493
  __typename?: 'TheWorkOrder';
135852
137494
  assetId: Scalars['ID']['output'];
@@ -135879,6 +137521,9 @@ export type TheWorkOrder = {
135879
137521
  title: Scalars['String']['output'];
135880
137522
  type: TheWorkOrderType;
135881
137523
  updatedAt: Scalars['DateTime']['output'];
137524
+ vendor?: Maybe<TheSupplier>;
137525
+ /** The contracted vendor performing the work, from the supplier register. */
137526
+ vendorSupplierId?: Maybe<Scalars['ID']['output']>;
135882
137527
  workspaceId: Scalars['ID']['output'];
135883
137528
  };
135884
137529
  export type TheWorkOrderConnection = {