@burdenoff/microfe-planmagnet 2026.1031.1 → 2026.1101.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.
Files changed (36) hide show
  1. package/dist/generated/global-types.d.ts +307 -2
  2. package/dist/generated/wspace-types.d.ts +1333 -9
  3. package/dist/planmagnet/PlanMagnetRoot.js +111 -117
  4. package/dist/planmagnet/controls/FeatureTriage.d.ts +2 -2
  5. package/dist/planmagnet/dependency/DependencyPanel.js +1 -1
  6. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +17 -17
  7. package/dist/planmagnet/pages/DashboardDashboardPagePage.js +6 -6
  8. package/dist/planmagnet/pages/GoalsCreateObjectivePagePage.js +1 -1
  9. package/dist/planmagnet/pages/GoalsGoalsPagePage.js +6 -6
  10. package/dist/planmagnet/pages/GoalsObjectiveDetailPagePage.js +5 -5
  11. package/dist/planmagnet/pages/ProductsFeatureAnalyticsPagePage.js +9 -9
  12. package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js +16 -13
  13. package/dist/planmagnet/pages/ProductsFeaturesPagePage.js +10 -10
  14. package/dist/planmagnet/pages/ProductsProductsPagePage.js +3 -3
  15. package/dist/planmagnet/pages/ProductsReleaseDetailPagePage.js +9 -9
  16. package/dist/planmagnet/pages/ProductsReleasesPagePage.js +9 -9
  17. package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.js +15 -15
  18. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +7 -7
  19. package/dist/planmagnet/pages/ProjectsActiveProjectsPagePage.js +1 -1
  20. package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +1 -1
  21. package/dist/planmagnet/pages/ProjectsCustomFieldsPagePage.js +1 -1
  22. package/dist/planmagnet/pages/ProjectsGanttPagePage.js +1 -1
  23. package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +13 -10
  24. package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js +6 -6
  25. package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js +3 -3
  26. package/dist/planmagnet/pages/ProjectsPlanningPagePage.js +8 -8
  27. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +26 -23
  28. package/dist/planmagnet/pages/ProjectsProjectsPagePage.js +8 -8
  29. package/dist/planmagnet/pages/RisksRiskDetailPagePage.js +7 -7
  30. package/dist/planmagnet/pages/RisksRiskRegisterPagePage.js +13 -13
  31. package/dist/planmagnet/pages/SprintsStartSprintPagePage.js +1 -1
  32. package/dist/planmagnet/pages/TasksTaskDetailPagePage.js +5 -5
  33. package/dist/planmagnet/pages/TasksTasksPagePage.js +16 -16
  34. package/dist/planmagnet/pages/TeamTeamDetailPagePage.js +6 -6
  35. package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +5 -5
  36. package/package.json +1 -1
@@ -5596,6 +5596,19 @@ export declare enum DimensionUnit {
5596
5596
  Inch = "INCH",
5597
5597
  Meter = "METER"
5598
5598
  }
5599
+ /** Input for the M2M dispatchWebhookEvent mutation */
5600
+ export type DispatchWebhookEventInput = {
5601
+ /** Caller-supplied event ID; enables idempotent redispatch per subscription */
5602
+ eventId?: InputMaybe<Scalars['String']['input']>;
5603
+ /** Event type being dispatched */
5604
+ eventType: Scalars['String']['input'];
5605
+ /** Owner identifier of the event stream (e.g. platform product id) */
5606
+ ownerId: Scalars['String']['input'];
5607
+ /** Owner namespace of the event stream (e.g. "newsletter-product") */
5608
+ ownerType: Scalars['String']['input'];
5609
+ /** Event payload; wrapped in the signed envelope as `data` */
5610
+ payload: Scalars['JSON']['input'];
5611
+ };
5599
5612
  /** DSAR mode — GDPR Art. 15 (access/export) or Art. 17 (erasure). */
5600
5613
  export declare enum DsarMode {
5601
5614
  Erase = "ERASE",
@@ -8299,6 +8312,8 @@ export type Mutation = {
8299
8312
  approveReview: ProductReview;
8300
8313
  approveTranslation: Translation;
8301
8314
  approveWaitlist: NewsletterWaitlist;
8315
+ /** Admin approves a pending template revision: it becomes the live version of the template (the version goes up) and the revision is removed. */
8316
+ approveWorkflowTemplateRevision: WorkflowTemplateSubmission;
8302
8317
  /** Soft archive a billing account. Financial history is preserved and the account is removed from active billing operations. */
8303
8318
  archiveBillingAccount: BillingAccount;
8304
8319
  /** Archive a channel */
@@ -8764,6 +8779,8 @@ export type Mutation = {
8764
8779
  /** M2M: delete a ShippingAddress owned by an explicit user, on behalf of a calling service. Returns false when no matching row exists for that user. Service-actor only. */
8765
8780
  deleteUserShippingAddress: Scalars['Boolean']['output'];
8766
8781
  deleteWebhook: Scalars['Boolean']['output'];
8782
+ /** Delete a webhook subscription and its delivery log */
8783
+ deleteWebhookSubscription: Scalars['Boolean']['output'];
8767
8784
  /** Admin delists a published product — removes it from store discovery for new users while preserving access for anyone who already installed it. */
8768
8785
  delistProduct: StoreProduct;
8769
8786
  /** Deliver the same notification to multiple recipients in bulk. More efficient than multiple single calls for broadcast scenarios. */
@@ -8786,6 +8803,8 @@ export type Mutation = {
8786
8803
  discardDLQEntry: Scalars['Boolean']['output'];
8787
8804
  /** Dismiss a tour for a user (with option to dismiss permanently) */
8788
8805
  dismissTour: TourUserProgress;
8806
+ /** Dispatch an event to every matching webhook subscription of an owner. M2M only — service / super_admin actors; called by the owning service over the internal gateway. Delivery is HMAC-SHA256 signed with retry/backoff and idempotent per caller-supplied eventId. */
8807
+ dispatchWebhookEvent: WebhookDispatchSummary;
8789
8808
  duplicateNewsletter: Newsletter;
8790
8809
  /** Duplicate a tour with all its steps */
8791
8810
  duplicateTour: Tour;
@@ -9054,6 +9073,8 @@ export type Mutation = {
9054
9073
  registerSupportAttachmentPart: Scalars['Boolean']['output'];
9055
9074
  /** Creates or updates subject mappings for a product. Idempotent: a product's service can call it on every deploy. An existing mapping can only be changed by the actor that registered it, or by a super admin. */
9056
9075
  registerWebhookEventSubjects: Array<WebhookEventSubject>;
9076
+ /** Register an outbound webhook endpoint for an owner */
9077
+ registerWebhookSubscription: WebhookSubscription;
9057
9078
  reinstatePublisher: Publisher;
9058
9079
  rejectApplication: Application;
9059
9080
  /** Platform admin only: reject a pending_review version with a reason. The developer can fix their submission and re-submit. */
@@ -9069,6 +9090,8 @@ export type Mutation = {
9069
9090
  rejectPublisher: Publisher;
9070
9091
  rejectReview: ProductReview;
9071
9092
  rejectWaitlist: NewsletterWaitlist;
9093
+ /** Admin rejects a pending template revision with a reason the author sees. The live version stays listed unchanged. */
9094
+ rejectWorkflowTemplateRevision: WorkflowTemplateRevision;
9072
9095
  releaseLegalHold: LegalHold;
9073
9096
  releaseSuppression: SuppressionEntry;
9074
9097
  removeAgentSkills: AgentProfile;
@@ -9434,6 +9457,8 @@ export type Mutation = {
9434
9457
  /** Test RADIUS connection */
9435
9458
  testRADIUSConnection: Scalars['Boolean']['output'];
9436
9459
  testWebhook: WebhookTestResult;
9460
+ /** Send a synthetic test event to a webhook subscription and report the result */
9461
+ testWebhookSubscription: WebhookDispatchResult;
9437
9462
  toggleAddOn: Scalars['Boolean']['output'];
9438
9463
  /** Toggle the featured state of a store product (admin) */
9439
9464
  toggleFeatured: Scalars['Boolean']['output'];
@@ -9654,6 +9679,8 @@ export type Mutation = {
9654
9679
  updateUserPlatformConnectionNotifications: UserPlatformConnection;
9655
9680
  updateVariantStats: NewsletterVariant;
9656
9681
  updateWebhook: Webhook;
9682
+ /** Update a webhook subscription (URL, secret, events, enabled, description) */
9683
+ updateWebhookSubscription: WebhookSubscription;
9657
9684
  /** Update an existing workspace */
9658
9685
  updateWorkspace: Workspace;
9659
9686
  /** Update a workspace member's role */
@@ -9700,6 +9727,8 @@ export type Mutation = {
9700
9727
  /** Vote on a review (helpful/not helpful) */
9701
9728
  voteOnAppReview: AppReviewVote;
9702
9729
  withdrawConsent: ConsentRecord;
9730
+ /** Withdraw the pending (or rejected) new version of one of your published templates. The live version is not affected. Takes the template's product id. */
9731
+ withdrawWorkflowTemplateRevision: WorkflowTemplateSubmission;
9703
9732
  /** Withdraw one of your templates. A published template is taken off the store first; anything not live is deleted. */
9704
9733
  withdrawWorkflowTemplateSubmission: WithdrawWorkflowTemplateSubmissionResult;
9705
9734
  };
@@ -9928,6 +9957,11 @@ export type MutationApproveWaitlistArgs = {
9928
9957
  input: ApproveWaitlistInput;
9929
9958
  };
9930
9959
  /** Root mutation type */
9960
+ export type MutationApproveWorkflowTemplateRevisionArgs = {
9961
+ id: Scalars['ID']['input'];
9962
+ notes?: InputMaybe<Scalars['String']['input']>;
9963
+ };
9964
+ /** Root mutation type */
9931
9965
  export type MutationArchiveBillingAccountArgs = {
9932
9966
  id: Scalars['ID']['input'];
9933
9967
  reason?: InputMaybe<Scalars['String']['input']>;
@@ -11213,6 +11247,10 @@ export type MutationDeleteWebhookArgs = {
11213
11247
  id: Scalars['ID']['input'];
11214
11248
  };
11215
11249
  /** Root mutation type */
11250
+ export type MutationDeleteWebhookSubscriptionArgs = {
11251
+ id: Scalars['ID']['input'];
11252
+ };
11253
+ /** Root mutation type */
11216
11254
  export type MutationDelistProductArgs = {
11217
11255
  id: Scalars['ID']['input'];
11218
11256
  reason?: InputMaybe<Scalars['String']['input']>;
@@ -11272,6 +11310,10 @@ export type MutationDismissTourArgs = {
11272
11310
  userId: Scalars['ID']['input'];
11273
11311
  };
11274
11312
  /** Root mutation type */
11313
+ export type MutationDispatchWebhookEventArgs = {
11314
+ input: DispatchWebhookEventInput;
11315
+ };
11316
+ /** Root mutation type */
11275
11317
  export type MutationDuplicateNewsletterArgs = {
11276
11318
  id: Scalars['ID']['input'];
11277
11319
  newSlug: Scalars['String']['input'];
@@ -12014,6 +12056,10 @@ export type MutationRegisterWebhookEventSubjectsArgs = {
12014
12056
  input: RegisterWebhookEventSubjectsInput;
12015
12057
  };
12016
12058
  /** Root mutation type */
12059
+ export type MutationRegisterWebhookSubscriptionArgs = {
12060
+ input: RegisterWebhookSubscriptionInput;
12061
+ };
12062
+ /** Root mutation type */
12017
12063
  export type MutationReinstatePublisherArgs = {
12018
12064
  id: Scalars['ID']['input'];
12019
12065
  };
@@ -12065,6 +12111,11 @@ export type MutationRejectWaitlistArgs = {
12065
12111
  input: RejectWaitlistInput;
12066
12112
  };
12067
12113
  /** Root mutation type */
12114
+ export type MutationRejectWorkflowTemplateRevisionArgs = {
12115
+ id: Scalars['ID']['input'];
12116
+ reason: Scalars['String']['input'];
12117
+ };
12118
+ /** Root mutation type */
12068
12119
  export type MutationReleaseLegalHoldArgs = {
12069
12120
  id: Scalars['ID']['input'];
12070
12121
  };
@@ -12973,6 +13024,10 @@ export type MutationTestWebhookArgs = {
12973
13024
  id: Scalars['ID']['input'];
12974
13025
  };
12975
13026
  /** Root mutation type */
13027
+ export type MutationTestWebhookSubscriptionArgs = {
13028
+ id: Scalars['ID']['input'];
13029
+ };
13030
+ /** Root mutation type */
12976
13031
  export type MutationToggleAddOnArgs = {
12977
13032
  id: Scalars['ID']['input'];
12978
13033
  status: Scalars['Boolean']['input'];
@@ -13680,6 +13735,11 @@ export type MutationUpdateWebhookArgs = {
13680
13735
  input: UpdateWebhookInput;
13681
13736
  };
13682
13737
  /** Root mutation type */
13738
+ export type MutationUpdateWebhookSubscriptionArgs = {
13739
+ id: Scalars['ID']['input'];
13740
+ input: UpdateWebhookSubscriptionInput;
13741
+ };
13742
+ /** Root mutation type */
13683
13743
  export type MutationUpdateWorkspaceArgs = {
13684
13744
  id: Scalars['ID']['input'];
13685
13745
  input: UpdateWorkspaceInput;
@@ -13815,6 +13875,10 @@ export type MutationWithdrawConsentArgs = {
13815
13875
  input: WithdrawConsentInput;
13816
13876
  };
13817
13877
  /** Root mutation type */
13878
+ export type MutationWithdrawWorkflowTemplateRevisionArgs = {
13879
+ productId: Scalars['ID']['input'];
13880
+ };
13881
+ /** Root mutation type */
13818
13882
  export type MutationWithdrawWorkflowTemplateSubmissionArgs = {
13819
13883
  id: Scalars['ID']['input'];
13820
13884
  };
@@ -16769,6 +16833,7 @@ export type Query = {
16769
16833
  /** Browse the plan catalog (e.g. the upgrade-subscription flow). Self-scoped — any authenticated actor may read it; the catalog itself isn't actor-owned data, so there's nothing further to scope. Previously scopeType "global", which no regular user role is ever assigned at (only Authenticated User — billing:NONE — and Platform Superadmin hold a global-scoped role), so this field was unreachable for every non-superadmin user (BOFF-6512). */
16770
16834
  getAllPlans: Array<Plan>;
16771
16835
  getAllQuotas: Array<Quota>;
16836
+ /** List account quotas. Date bounds are inclusive on assignment createdAt; amount bounds are inclusive on activity-backed currentUsageSum, before pagination. Status uses remaining limits (WARNING >=75%, CRITICAL >=90%, EXHAUSTED <=0); expired assignments are INACTIVE and non-numeric unlimited quotas are HEALTHY. Both number and legacy numeric limit types are finite. Percentage thresholds use originalValue; when absent, the remaining value is the fallback baseline. Empty status lists apply no status filter. Pages are capped at 100 rows. Amount-filtered requests fail explicitly above 1000 usage lookups; narrow searchQuery or createdAt bounds rather than relying on partial counts. Derived-filter scans also fail above 10000 assignments, without partial counts. */
16772
16837
  getAllQuotasAssignment: PaginatedQuotaAssignments;
16773
16838
  getAllQuotasOfSub: Array<QuotaAssignment>;
16774
16839
  getAllRecurringBillingPlans: Array<RecurringBillingPlan>;
@@ -16903,7 +16968,7 @@ export type Query = {
16903
16968
  getPromotion?: Maybe<Promotion>;
16904
16969
  /** Get usage analytics for a specific quota assignment */
16905
16970
  getQuotaAnalytics: QuotaUsageAnalytics;
16906
- /** Enhanced quota assignment query with analytics, pagination and filtering */
16971
+ /** The same status, inclusive createdAt and currentUsageSum filters as getAllQuotasAssignment, with analytics for the filtered page. */
16907
16972
  getQuotaAssignmentsWithAnalytics: PaginatedQuotaAssignmentsWithAnalytics;
16908
16973
  getQuotaUsageAndLimit: QuotaUsageAndLimit;
16909
16974
  getQuotaUsageDetails?: Maybe<PaginatedUsages>;
@@ -17205,6 +17270,8 @@ export type Query = {
17205
17270
  /** Get pending scheduled notifications that are due for triggering */
17206
17271
  pendingScheduledNotifications: Array<ScheduledNotification>;
17207
17272
  pendingSurveys: CustomerSatisfactionSurveyConnection;
17273
+ /** Admin queue: new versions of published templates, oldest first. */
17274
+ pendingWorkflowTemplateRevisions: WorkflowTemplateRevisionList;
17208
17275
  /** Get permission check audit log */
17209
17276
  permissionAuditLog: Array<PermissionAuditLog>;
17210
17277
  /** Get a single platform product by ID (admin/catalog read). Returns the full PlatformProduct including DRAFT products and internal operational metrics, so it is gated as a global-scope catalog read. Unauthenticated/marketing callers must use publicProduct(slug), which filters to ACTIVE/WAITLIST/COMING_SOON and strips internal fields. */
@@ -17465,6 +17532,10 @@ export type Query = {
17465
17532
  webhookEventCatalog: Array<WebhookEventCatalogEntry>;
17466
17533
  /** Registered subject mappings. Platform services and super admins only. */
17467
17534
  webhookEventSubjects: Array<WebhookEventSubject>;
17535
+ /** Fetch a single webhook subscription by ID */
17536
+ webhookSubscription?: Maybe<WebhookSubscription>;
17537
+ /** List webhook subscriptions for an owner (newest first) */
17538
+ webhookSubscriptions: Array<WebhookSubscription>;
17468
17539
  webhooks: Array<Webhook>;
17469
17540
  /** Get a single workspace by ID */
17470
17541
  workspace?: Maybe<Workspace>;
@@ -19460,6 +19531,12 @@ export type QueryPendingSurveysArgs = {
19460
19531
  offset?: InputMaybe<Scalars['Int']['input']>;
19461
19532
  };
19462
19533
  /** Root query type */
19534
+ export type QueryPendingWorkflowTemplateRevisionsArgs = {
19535
+ limit?: InputMaybe<Scalars['Int']['input']>;
19536
+ offset?: InputMaybe<Scalars['Int']['input']>;
19537
+ status?: InputMaybe<WorkflowTemplateRevisionStatus>;
19538
+ };
19539
+ /** Root query type */
19463
19540
  export type QueryPermissionAuditLogArgs = {
19464
19541
  filter?: InputMaybe<AuditLogFilterInput>;
19465
19542
  pagination?: InputMaybe<PaginationInput>;
@@ -20257,6 +20334,15 @@ export type QueryWebhookEventSubjectsArgs = {
20257
20334
  productSlug?: InputMaybe<Scalars['String']['input']>;
20258
20335
  };
20259
20336
  /** Root query type */
20337
+ export type QueryWebhookSubscriptionArgs = {
20338
+ id: Scalars['ID']['input'];
20339
+ };
20340
+ /** Root query type */
20341
+ export type QueryWebhookSubscriptionsArgs = {
20342
+ ownerId?: InputMaybe<Scalars['String']['input']>;
20343
+ ownerType: Scalars['String']['input'];
20344
+ };
20345
+ /** Root query type */
20260
20346
  export type QueryWebhooksArgs = {
20261
20347
  applicationId: Scalars['ID']['input'];
20262
20348
  };
@@ -21082,6 +21168,23 @@ export type RegisterWebhookEventSubjectsInput = {
21082
21168
  /** Mappings to create or update (at most 100 per call). */
21083
21169
  subjects: Array<WebhookEventSubjectInput>;
21084
21170
  };
21171
+ /** Input for registerWebhookSubscription */
21172
+ export type RegisterWebhookSubscriptionInput = {
21173
+ /** Operator-facing description */
21174
+ description?: InputMaybe<Scalars['String']['input']>;
21175
+ /** Whether delivery is active (default true) */
21176
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
21177
+ /** Event types to receive; empty = all events for the owner */
21178
+ events: Array<Scalars['String']['input']>;
21179
+ /** Owner identifier of the event stream (e.g. platform product id) */
21180
+ ownerId: Scalars['String']['input'];
21181
+ /** Owner namespace of the event stream (e.g. "newsletter-product") */
21182
+ ownerType: Scalars['String']['input'];
21183
+ /** HMAC-SHA256 signing secret (write-only, never returned) */
21184
+ secret: Scalars['String']['input'];
21185
+ /** Delivery URL (HTTPS in production) */
21186
+ url: Scalars['String']['input'];
21187
+ };
21085
21188
  export type RejectWaitlistInput = {
21086
21189
  id: Scalars['ID']['input'];
21087
21190
  reason?: InputMaybe<Scalars['String']['input']>;
@@ -22955,6 +23058,8 @@ export type StoreProduct = {
22955
23058
  weightUnit?: Maybe<WeightUnit>;
22956
23059
  /** Product width (physical products) */
22957
23060
  width?: Maybe<Scalars['Float']['output']>;
23061
+ /** For a WORKFLOW template: its nodes, required inputs and credentials and the cleaning report recorded at submission. Null for other products. */
23062
+ workflowTemplatePreview?: Maybe<WorkflowTemplatePreview>;
22958
23063
  zipFileUrl?: Maybe<Scalars['String']['output']>;
22959
23064
  };
22960
23065
  /** Input for fetching store product details */
@@ -23208,7 +23313,7 @@ export type SubmitWorkflowTemplateInput = {
23208
23313
  name: Scalars['String']['input'];
23209
23314
  /** A note for the store reviewer. */
23210
23315
  notes?: InputMaybe<Scalars['String']['input']>;
23211
- /** Resubmit one of your own DRAFT, REJECTED or UNLISTED templates instead of creating a new one. The template keeps its id and slug and its version goes up by one. */
23316
+ /** Resubmit one of your own templates instead of creating a new one. A DRAFT, REJECTED or UNLISTED template is replaced and goes back into review. A PUBLISHED template stays listed unchanged: the submission is kept as its pending revision and replaces the live version only when a reviewer approves it. Either way the template keeps its id and slug and its version goes up by one. */
23212
23317
  productId?: InputMaybe<Scalars['ID']['input']>;
23213
23318
  /** Workflow key the template was published from (lineage). */
23214
23319
  sourceWorkflowKey?: InputMaybe<Scalars['String']['input']>;
@@ -26091,6 +26196,19 @@ export type UpdateWebhookInput = {
26091
26196
  retryEnabled?: InputMaybe<Scalars['Boolean']['input']>;
26092
26197
  url?: InputMaybe<Scalars['String']['input']>;
26093
26198
  };
26199
+ /** Input for updateWebhookSubscription — all fields optional, omitted fields unchanged */
26200
+ export type UpdateWebhookSubscriptionInput = {
26201
+ /** Operator-facing description */
26202
+ description?: InputMaybe<Scalars['String']['input']>;
26203
+ /** Whether delivery is active */
26204
+ enabled?: InputMaybe<Scalars['Boolean']['input']>;
26205
+ /** Event types to receive; empty = all events for the owner */
26206
+ events?: InputMaybe<Array<Scalars['String']['input']>>;
26207
+ /** HMAC-SHA256 signing secret (write-only, never returned) */
26208
+ secret?: InputMaybe<Scalars['String']['input']>;
26209
+ /** Delivery URL (HTTPS in production) */
26210
+ url?: InputMaybe<Scalars['String']['input']>;
26211
+ };
26094
26212
  /** Input for updating an existing workspace */
26095
26213
  export type UpdateWorkspaceInput = {
26096
26214
  metadata?: InputMaybe<Scalars['JSON']['input']>;
@@ -26835,6 +26953,30 @@ export type WebhookDeliveryEdge = {
26835
26953
  cursor: Scalars['String']['output'];
26836
26954
  node: WebhookDelivery;
26837
26955
  };
26956
+ /** One delivery attempt recorded for a WebhookSubscription. At most one row exists per (subscription, eventId) — a redispatched event updates the row instead of double-delivering. */
26957
+ export type WebhookDeliveryLog = {
26958
+ __typename?: 'WebhookDeliveryLog';
26959
+ /** Number of attempts made */
26960
+ attemptCount: Scalars['Int']['output'];
26961
+ /** When the final attempt finished */
26962
+ deliveredAt: Scalars['DateTime']['output'];
26963
+ /** Error message of the final attempt (null on success) */
26964
+ error?: Maybe<Scalars['String']['output']>;
26965
+ /** Caller-supplied event ID (idempotency key) */
26966
+ eventId: Scalars['String']['output'];
26967
+ /** Event type that was dispatched */
26968
+ eventType: Scalars['String']['output'];
26969
+ /** Unique log row ID */
26970
+ id: Scalars['ID']['output'];
26971
+ /** Envelope payload that was signed and posted */
26972
+ payload: Scalars['JSON']['output'];
26973
+ /** HTTP status code of the final attempt (null on transport error) */
26974
+ statusCode?: Maybe<Scalars['Int']['output']>;
26975
+ /** Owning subscription ID */
26976
+ subscriptionId: Scalars['ID']['output'];
26977
+ /** Whether the final attempt succeeded */
26978
+ success: Scalars['Boolean']['output'];
26979
+ };
26838
26980
  export declare enum WebhookDeliveryStatus {
26839
26981
  Delivered = "DELIVERED",
26840
26982
  Delivering = "DELIVERING",
@@ -26842,6 +26984,30 @@ export declare enum WebhookDeliveryStatus {
26842
26984
  Pending = "PENDING",
26843
26985
  Retrying = "RETRYING"
26844
26986
  }
26987
+ /** Result of a single test delivery */
26988
+ export type WebhookDispatchResult = {
26989
+ __typename?: 'WebhookDispatchResult';
26990
+ /** Number of attempts made */
26991
+ attemptCount: Scalars['Int']['output'];
26992
+ /** Error message of the final attempt (null on success) */
26993
+ error?: Maybe<Scalars['String']['output']>;
26994
+ /** HTTP status code of the final attempt (null on transport error) */
26995
+ statusCode?: Maybe<Scalars['Int']['output']>;
26996
+ /** Whether the delivery succeeded */
26997
+ success: Scalars['Boolean']['output'];
26998
+ };
26999
+ /** Summary returned by the M2M dispatchWebhookEvent mutation */
27000
+ export type WebhookDispatchSummary = {
27001
+ __typename?: 'WebhookDispatchSummary';
27002
+ /** Subscriptions skipped because the event was already delivered (idempotent redispatch) */
27003
+ deduplicated: Scalars['Int']['output'];
27004
+ /** Subscriptions delivered successfully */
27005
+ delivered: Scalars['Int']['output'];
27006
+ /** Subscriptions that failed after all retry attempts */
27007
+ failed: Scalars['Int']['output'];
27008
+ /** Enabled subscriptions matched for the owner + event type */
27009
+ matched: Scalars['Int']['output'];
27010
+ };
26845
27011
  /** WebhookEvent represents a received webhook (transient, 7-day TTL) Used for debugging and monitoring only */
26846
27012
  export type WebhookEvent = {
26847
27013
  __typename?: 'WebhookEvent';
@@ -26988,6 +27154,34 @@ export declare enum WebhookStatus {
26988
27154
  Failed = "FAILED",
26989
27155
  Paused = "PAUSED"
26990
27156
  }
27157
+ /** A registered outbound webhook endpoint owned by a product or operator. `ownerType` namespaces the event stream (e.g. "newsletter-product"); `ownerId` scopes it (e.g. the platform product id). An empty `events` list means the endpoint receives every event dispatched for the owner. */
27158
+ export type WebhookSubscription = {
27159
+ __typename?: 'WebhookSubscription';
27160
+ /** Creation timestamp */
27161
+ createdAt: Scalars['DateTime']['output'];
27162
+ /** Delivery audit trail (most recent first) */
27163
+ deliveries: Array<WebhookDeliveryLog>;
27164
+ /** Operator-facing description */
27165
+ description?: Maybe<Scalars['String']['output']>;
27166
+ /** Whether delivery is active */
27167
+ enabled: Scalars['Boolean']['output'];
27168
+ /** Event types this endpoint receives; empty = all events for the owner */
27169
+ events: Array<Scalars['String']['output']>;
27170
+ /** Unique subscription ID */
27171
+ id: Scalars['ID']['output'];
27172
+ /** Owner identifier of the event stream (e.g. platform product id) */
27173
+ ownerId: Scalars['String']['output'];
27174
+ /** Owner namespace of the event stream (e.g. "newsletter-product") */
27175
+ ownerType: Scalars['String']['output'];
27176
+ /** Last update timestamp */
27177
+ updatedAt: Scalars['DateTime']['output'];
27178
+ /** Delivery URL (HTTPS in production) */
27179
+ url: Scalars['String']['output'];
27180
+ };
27181
+ /** A registered outbound webhook endpoint owned by a product or operator. `ownerType` namespaces the event stream (e.g. "newsletter-product"); `ownerId` scopes it (e.g. the platform product id). An empty `events` list means the endpoint receives every event dispatched for the owner. */
27182
+ export type WebhookSubscriptionDeliveriesArgs = {
27183
+ limit?: InputMaybe<Scalars['Int']['input']>;
27184
+ };
26991
27185
  export type WebhookTestResult = {
26992
27186
  __typename?: 'WebhookTestResult';
26993
27187
  error?: Maybe<Scalars['String']['output']>;
@@ -27039,6 +27233,115 @@ export type WithdrawWorkflowTemplateSubmissionResult = {
27039
27233
  /** The template's status when it was kept (UNLISTED), null when removed. */
27040
27234
  status?: Maybe<ProductStatus>;
27041
27235
  };
27236
+ /** What was removed from the author's workflow before it was stored. */
27237
+ export type WorkflowTemplateCleaningReport = {
27238
+ __typename?: 'WorkflowTemplateCleaningReport';
27239
+ /** Where each cleared connection was (up to 200). */
27240
+ clearedConnections: Array<WorkflowTemplateFieldRef>;
27241
+ connectionsCleared: Scalars['Int']['output'];
27242
+ pinnedDataRemoved: Scalars['Boolean']['output'];
27243
+ /** Where each removed secret was (up to 200). */
27244
+ removedSecrets: Array<WorkflowTemplateFieldRef>;
27245
+ secretsRemoved: Scalars['Int']['output'];
27246
+ };
27247
+ /** Where in a template a cleared connection or removed secret was. */
27248
+ export type WorkflowTemplateFieldRef = {
27249
+ __typename?: 'WorkflowTemplateFieldRef';
27250
+ /** Path of the field inside the node, for example data.parameters.apiKey. */
27251
+ field: Scalars['String']['output'];
27252
+ nodeId?: Maybe<Scalars['String']['output']>;
27253
+ nodeLabel?: Maybe<Scalars['String']['output']>;
27254
+ nodeType?: Maybe<Scalars['String']['output']>;
27255
+ };
27256
+ /** A node type a template uses. */
27257
+ export type WorkflowTemplateNodeType = {
27258
+ __typename?: 'WorkflowTemplateNodeType';
27259
+ displayName: Scalars['String']['output'];
27260
+ nodeType: Scalars['String']['output'];
27261
+ nodeVersion: Scalars['String']['output'];
27262
+ /** BUILTIN or STORE. */
27263
+ publishType: Scalars['String']['output'];
27264
+ };
27265
+ /** What a reviewer sees about a workflow template before approving it. */
27266
+ export type WorkflowTemplatePreview = {
27267
+ __typename?: 'WorkflowTemplatePreview';
27268
+ /** Recorded at submission; null for templates stored before reports were kept. */
27269
+ cleaningReport?: Maybe<WorkflowTemplateCleaningReport>;
27270
+ /** The cleaned definition importers receive. */
27271
+ definitionJson?: Maybe<Scalars['JSON']['output']>;
27272
+ edgeCount: Scalars['Int']['output'];
27273
+ /** Nodes in the definition (all of them, not just distinct types). */
27274
+ nodeCount: Scalars['Int']['output'];
27275
+ nodeTypes: Array<WorkflowTemplateNodeType>;
27276
+ requiredCredentials: Array<WorkflowTemplateRequiredCredential>;
27277
+ requiredInputs: Array<WorkflowTemplateRequiredInput>;
27278
+ };
27279
+ /** A credential someone importing the template must connect. */
27280
+ export type WorkflowTemplateRequiredCredential = {
27281
+ __typename?: 'WorkflowTemplateRequiredCredential';
27282
+ /** connection: the node was bound to the author's saved connection, which was cleared at submission. reference: the template reads ${credentials.<name>}. */
27283
+ kind: Scalars['String']['output'];
27284
+ name: Scalars['String']['output'];
27285
+ nodeId?: Maybe<Scalars['String']['output']>;
27286
+ nodeLabel?: Maybe<Scalars['String']['output']>;
27287
+ nodeType?: Maybe<Scalars['String']['output']>;
27288
+ };
27289
+ /** A value someone importing the template must supply (a ${name} variable it reads). */
27290
+ export type WorkflowTemplateRequiredInput = {
27291
+ __typename?: 'WorkflowTemplateRequiredInput';
27292
+ label: Scalars['String']['output'];
27293
+ name: Scalars['String']['output'];
27294
+ required: Scalars['Boolean']['output'];
27295
+ /** secret when it fills a secret field (API key, token, ...), else string. */
27296
+ type: Scalars['String']['output'];
27297
+ /** Nodes that read it. */
27298
+ usedBy: Array<Scalars['String']['output']>;
27299
+ };
27300
+ /** A new version of a PUBLISHED template, kept apart from the live version while it is reviewed. Approval makes it the live version; rejection leaves the live version untouched. */
27301
+ export type WorkflowTemplateRevision = {
27302
+ __typename?: 'WorkflowTemplateRevision';
27303
+ authorName?: Maybe<Scalars['String']['output']>;
27304
+ category: Scalars['String']['output'];
27305
+ createdAt: Scalars['DateTime']['output'];
27306
+ description: Scalars['String']['output'];
27307
+ icon?: Maybe<Scalars['String']['output']>;
27308
+ id: Scalars['ID']['output'];
27309
+ /** Version currently live in the store. */
27310
+ liveVersion: Scalars['String']['output'];
27311
+ name: Scalars['String']['output'];
27312
+ /** Number of distinct node types the revision uses. */
27313
+ nodeCount: Scalars['Int']['output'];
27314
+ /** The author's note for the reviewer. */
27315
+ notes?: Maybe<Scalars['String']['output']>;
27316
+ /** What the revision does: nodes, required inputs and credentials, cleaning report. */
27317
+ preview?: Maybe<WorkflowTemplatePreview>;
27318
+ /** Store product id of the template it revises. */
27319
+ productId: Scalars['ID']['output'];
27320
+ productSlug: Scalars['String']['output'];
27321
+ /** Publisher profile name of the author. */
27322
+ publisherName?: Maybe<Scalars['String']['output']>;
27323
+ rejectedReason?: Maybe<Scalars['String']['output']>;
27324
+ reviewedAt?: Maybe<Scalars['DateTime']['output']>;
27325
+ revision: Scalars['Int']['output'];
27326
+ status: WorkflowTemplateRevisionStatus;
27327
+ submittedAt: Scalars['DateTime']['output'];
27328
+ /** Actor id of the author who submitted it. */
27329
+ submittedBy: Scalars['String']['output'];
27330
+ tags: Array<Scalars['String']['output']>;
27331
+ updatedAt: Scalars['DateTime']['output'];
27332
+ /** Version this revision becomes when approved. */
27333
+ version: Scalars['String']['output'];
27334
+ };
27335
+ export type WorkflowTemplateRevisionList = {
27336
+ __typename?: 'WorkflowTemplateRevisionList';
27337
+ items: Array<WorkflowTemplateRevision>;
27338
+ totalCount: Scalars['Int']['output'];
27339
+ };
27340
+ /** PENDING_REVIEW while a store admin reviews it; REJECTED with a reason. */
27341
+ export declare enum WorkflowTemplateRevisionStatus {
27342
+ PendingReview = "PENDING_REVIEW",
27343
+ Rejected = "REJECTED"
27344
+ }
27042
27345
  /** One of your community workflow templates and where it is in review. */
27043
27346
  export type WorkflowTemplateSubmission = {
27044
27347
  __typename?: 'WorkflowTemplateSubmission';
@@ -27054,6 +27357,8 @@ export type WorkflowTemplateSubmission = {
27054
27357
  name: Scalars['String']['output'];
27055
27358
  /** Number of distinct node types the template uses. */
27056
27359
  nodeCount: Scalars['Int']['output'];
27360
+ /** The new version of this published template that is waiting for review, or that a reviewer rejected (with the reason). Null when there is none. */
27361
+ pendingRevision?: Maybe<WorkflowTemplateRevision>;
27057
27362
  publishedAt?: Maybe<Scalars['DateTime']['output']>;
27058
27363
  rejectedReason?: Maybe<Scalars['String']['output']>;
27059
27364
  reviewNotes?: Maybe<Scalars['String']['output']>;