@burdenoff/microfe-workspaces 2026.1120.1 → 2026.1123.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 (56) hide show
  1. package/dist/WorkspacesRoot.js +39 -31
  2. package/dist/WorkspacesRoutes.js +91 -59
  3. package/dist/components/ProjectCard.js +48 -47
  4. package/dist/constants/navigationV2.d.ts +5 -0
  5. package/dist/constants/navigationV2.js +2 -2
  6. package/dist/generated/global-operations.d.ts +11 -1
  7. package/dist/generated/global-types.d.ts +9866 -574
  8. package/dist/generated/wspace-operations.d.ts +631 -2
  9. package/dist/generated/wspace-operations.js +5428 -1376
  10. package/dist/generated/wspace-types.d.ts +200319 -48046
  11. package/dist/generated/wspace-types.js +19 -0
  12. package/dist/hooks/useCollaboration.d.ts +143 -0
  13. package/dist/hooks/useCollaboration.js +119 -0
  14. package/dist/hooks/useCollaborationMutations.d.ts +177 -0
  15. package/dist/hooks/useCollaborationMutations.js +126 -0
  16. package/dist/hooks/v2/useWorkspacePagesV2Data.d.ts +89 -0
  17. package/dist/hooks/v2/useWorkspacePagesV2Data.js +211 -0
  18. package/dist/index.d.ts +1 -1
  19. package/dist/node_modules/sonner/dist/index.js +167 -0
  20. package/dist/pages/CollaborationConsolePage.d.ts +1 -0
  21. package/dist/pages/CollaborationConsolePage.js +1059 -0
  22. package/dist/pages/MembersListPage.js +101 -100
  23. package/dist/pages/ProjectMembersPage.js +116 -115
  24. package/dist/pages/ProjectsListPage.js +233 -232
  25. package/dist/pages/WorkspacesListPage.js +79 -68
  26. package/dist/pages/v2/ActivityPage.d.ts +1 -0
  27. package/dist/pages/v2/ActivityPage.js +150 -0
  28. package/dist/pages/v2/InvitePeopleDialog.d.ts +11 -0
  29. package/dist/pages/v2/InvitePeopleDialog.js +208 -0
  30. package/dist/pages/v2/InvitedTab.d.ts +9 -0
  31. package/dist/pages/v2/InvitedTab.js +223 -0
  32. package/dist/pages/v2/MembersPage.d.ts +1 -0
  33. package/dist/pages/v2/MembersPage.js +120 -0
  34. package/dist/pages/v2/PeopleTab.d.ts +20 -0
  35. package/dist/pages/v2/PeopleTab.js +253 -0
  36. package/dist/pages/v2/ProjectsPage.d.ts +1 -0
  37. package/dist/pages/v2/ProjectsPage.js +242 -0
  38. package/dist/pages/v2/WorkspacesPage.d.ts +3 -0
  39. package/dist/pages/v2/WorkspacesPage.js +247 -0
  40. package/dist/pages/v2/activitySentences.d.ts +50 -0
  41. package/dist/pages/v2/activitySentences.js +288 -0
  42. package/dist/pages/v2/inviteEmails.d.ts +12 -0
  43. package/dist/pages/v2/inviteEmails.js +18 -0
  44. package/dist/pages/v2/memberRows.d.ts +54 -0
  45. package/dist/pages/v2/memberRows.js +51 -0
  46. package/dist/pages/v2/projectRows.d.ts +10 -0
  47. package/dist/pages/v2/projectRows.js +10 -0
  48. package/dist/pages/v2/relativeTime.d.ts +6 -0
  49. package/dist/pages/v2/relativeTime.js +30 -0
  50. package/dist/store/workspacesStore.d.ts +2 -1
  51. package/dist/store/workspacesStore.js +1 -1
  52. package/dist/translations/en.d.ts +436 -0
  53. package/dist/translations/en.js +436 -0
  54. package/dist/types/index.d.ts +19 -0
  55. package/dist/utils/nativeBridge.js +1 -1
  56. package/package.json +3 -3
@@ -9,6 +9,19 @@ type Exact<T extends {
9
9
  export type Incremental<T> = T | {
10
10
  [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
11
11
  };
12
+ export type ActivityCategory = 'ANALYTICS' | 'CREATE' | 'DATA' | 'DELETE' | 'INVITE' | 'LOGIN' | 'LOGOUT' | 'OTHER' | 'PERMISSION' | 'PROJECT' | 'ROLE' | 'SECURITY' | 'SETTINGS' | 'TEAM' | 'UPDATE' | 'VIEW' | 'WORKSPACE';
13
+ /** Actor types - actors are created in auth-svc, RBAC just references opaque IDs */
14
+ export type ActorType =
15
+ /** Automated bot (workflow, AI assistant) */
16
+ 'BOT'
17
+ /** Service acting on behalf of user */
18
+ | 'DELEGATED_AGENT'
19
+ /** Workspace group actor used for inherited/shared permissions */
20
+ | 'GROUP'
21
+ /** External API integration (Zapier, etc.) */
22
+ | 'INTEGRATION'
23
+ /** Human user */
24
+ | 'USER';
12
25
  /**
13
26
  * Input for adding a member to a workspace.
14
27
  * Workspace ID is read from gateway context (x-workspace-id header).
@@ -16,6 +29,17 @@ export type Incremental<T> = T | {
16
29
  export type AddWorkspaceMemberInput = {
17
30
  /** Operation context for scoping */
18
31
  context?: WorkspaceContextInput | null | undefined;
32
+ /**
33
+ * Workspace RBAC role IDs to grant (optional, at most 100, duplicates ignored).
34
+ * New member: gets exactly these roles; a role still held from an earlier membership is revoked, which the caller
35
+ * must also be allowed to do (assignment:delete). Omitted or [] gets exactly the workspace default member role
36
+ * (Editor), replacing any earlier grant.
37
+ * Existing member: listed roles not already held are added, nothing is removed; omitted or [] changes nothing
38
+ * (an intentional zero-role member stays at zero). RBAC validates the IDs and checks the verified caller
39
+ * (gateway x-actor-id/x-actor-type, never a client argument) holds assignment:create and may grant or revoke
40
+ * protected roles (Workspace Owner/Admin). Invalid or unauthorized input fails the whole request and adds no member.
41
+ */
42
+ roleIds?: Array<string> | null | undefined;
19
43
  /** User ID to add as member */
20
44
  userId: string;
21
45
  };
@@ -31,6 +55,8 @@ export type CreateInvitationInput = {
31
55
  invitedUserId?: string | null | undefined;
32
56
  /** Project ID for project invitations */
33
57
  projectId?: string | null | undefined;
58
+ /** Workspace projects to add the invitee to once they accept the invitation */
59
+ projectIds?: Array<string> | null | undefined;
34
60
  /** Array of role IDs to assign upon acceptance */
35
61
  roleIds?: Array<string> | null | undefined;
36
62
  /** Universal entity-owned tags to attach during creation */
@@ -38,6 +64,17 @@ export type CreateInvitationInput = {
38
64
  /** Workspace ID for workspace invitations */
39
65
  workspaceId?: string | null | undefined;
40
66
  };
67
+ export type CreateMspOrgLinkInput = {
68
+ billingMode?: MspBillingMode | null | undefined;
69
+ clientOrgId: string;
70
+ clientOrgName: string;
71
+ clientWorkspaceId?: string | null | undefined;
72
+ delegatedScopes: Array<MspDelegatedScope>;
73
+ expiresAt?: string | null | undefined;
74
+ monthlySeatBudget?: number | null | undefined;
75
+ notes?: string | null | undefined;
76
+ workspaceId: string;
77
+ };
41
78
  /**
42
79
  * Input for creating a new project.
43
80
  * Workspace ID is read from gateway context (x-workspace-id header).
@@ -45,6 +82,11 @@ export type CreateInvitationInput = {
45
82
  export type CreateProjectInput = {
46
83
  /** Project configuration and settings */
47
84
  config?: Record<string, unknown> | null | undefined;
85
+ /**
86
+ * Optional human-readable description (surfaced on `Project.description`;
87
+ * BOFF-9202)
88
+ */
89
+ description?: string | null | undefined;
48
90
  /** Unique project key/code (auto-generated if not provided) */
49
91
  key?: string | null | undefined;
50
92
  /** Display name of the project */
@@ -77,12 +119,29 @@ export type CreateWorkspaceInput = {
77
119
  /** Public website URL */
78
120
  website?: string | null | undefined;
79
121
  };
122
+ export type CreateWorkspaceShareInput = {
123
+ accessLevel?: WorkspaceShareAccessLevel | null | undefined;
124
+ expiresAt?: string | null | undefined;
125
+ resourceId: string;
126
+ resourceName: string;
127
+ resourceType: WorkspaceShareResourceType;
128
+ targetWorkspaceId: string;
129
+ workspaceId: string;
130
+ };
80
131
  export type GetProjectTagsInput = {
81
132
  entityId: string;
82
133
  };
83
134
  export type GetWorkspaceTagsInput = {
84
135
  entityId: string;
85
136
  };
137
+ /** Outcome of the most recent attempt to send the invitation email */
138
+ export type InvitationEmailStatus =
139
+ /** The email was not sent (delivery failed or was suppressed); see emailErrorCode */
140
+ 'FAILED'
141
+ /** The notification service accepted and triggered the email */
142
+ | 'SENT'
143
+ /** Sending invitation emails is not configured for this environment */
144
+ | 'SKIPPED';
86
145
  export type InviteStatus =
87
146
  /** Invitation has been accepted by the invitee */
88
147
  'ACCEPTED'
@@ -94,11 +153,21 @@ export type InviteStatus =
94
153
  | 'PENDING'
95
154
  /** Invitation has been rejected by the invitee */
96
155
  | 'REJECTED';
156
+ /** Billing aggregation model between an MSP and a managed client organization. */
157
+ export type MspBillingMode = 'CLIENT_DIRECT' | 'CONSOLIDATED' | 'SPLIT';
158
+ /** Explicit allow-listed delegated capabilities for an MSP organization link. */
159
+ export type MspDelegatedScope = 'MANAGE_MEMBERS' | 'MANAGE_PROJECTS' | 'MANAGE_SHARES' | 'VIEW_BILLING_SUMMARY' | 'VIEW_OVERVIEW';
160
+ /** Perspective filter when listing MSP organization links. */
161
+ export type MspLinkRole = 'ALL' | 'CLIENT' | 'MSP';
162
+ /** Lifecycle status of a delegated MSP organization link. */
163
+ export type MspOrgLinkStatus = 'ACTIVE' | 'PENDING' | 'REVOKED' | 'SUSPENDED';
97
164
  /** Standard pagination input */
98
165
  export type PaginationInput = {
99
- /** Number of items to return (default: 10, max: 100) */
166
+ /** Shared federation compatibility field. workspaceDirectory is offset-only and rejects non-empty cursors. */
167
+ cursor?: string | null | undefined;
168
+ /** Maximum number of entries to return (clamped server-side). */
100
169
  limit?: number | null | undefined;
101
- /** Number of items to skip (default: 0) */
170
+ /** Number of entries to skip from the start of the result set. */
102
171
  offset?: number | null | undefined;
103
172
  };
104
173
  /** Filter input for querying projects */
@@ -172,6 +241,8 @@ export type UpdateInvitationInput = {
172
241
  context?: WorkspaceContextInput | null | undefined;
173
242
  /** Updated expiration timestamp */
174
243
  expiresAt?: string | null | undefined;
244
+ /** Workspace projects to add the invitee to upon acceptance */
245
+ projectIds?: Array<string> | null | undefined;
175
246
  /** Array of role IDs to assign */
176
247
  roleIds?: Array<string> | null | undefined;
177
248
  /** Updated status */
@@ -179,12 +250,23 @@ export type UpdateInvitationInput = {
179
250
  /** Universal entity-owned tags to replace on the invitation */
180
251
  tags?: Record<string, unknown> | null | undefined;
181
252
  };
253
+ export type UpdateMspOrgLinkInput = {
254
+ billingMode?: MspBillingMode | null | undefined;
255
+ delegatedScopes?: Array<MspDelegatedScope> | null | undefined;
256
+ linkId: string;
257
+ monthlySeatBudget?: number | null | undefined;
258
+ notes?: string | null | undefined;
259
+ status?: MspOrgLinkStatus | null | undefined;
260
+ workspaceId: string;
261
+ };
182
262
  /** Input for updating an existing project */
183
263
  export type UpdateProjectInput = {
184
264
  /** Whether the project is archived */
185
265
  archived?: boolean | null | undefined;
186
266
  /** Project configuration and settings */
187
267
  config?: Record<string, unknown> | null | undefined;
268
+ /** Optional human-readable description (BOFF-9202) */
269
+ description?: string | null | undefined;
188
270
  /** Unique project key/code */
189
271
  key?: string | null | undefined;
190
272
  /** Display name of the project */
@@ -246,6 +328,14 @@ export type WorkspaceFilterInput = {
246
328
  /** Filter by workspace type */
247
329
  type?: WorkspaceType | null | undefined;
248
330
  };
331
+ /** Permission level granted to the receiving workspace on a shared resource. */
332
+ export type WorkspaceShareAccessLevel = 'ADMIN' | 'COLLABORATE' | 'READ_ONLY';
333
+ /** Filter direction when listing shares for a workspace. */
334
+ export type WorkspaceShareDirection = 'ALL' | 'INBOUND' | 'OUTBOUND';
335
+ /** Kind of resource shared across workspace boundaries. */
336
+ export type WorkspaceShareResourceType = 'CHANNEL' | 'MENTIONS' | 'PROJECT';
337
+ /** Lifecycle status of a cross-workspace share grant. */
338
+ export type WorkspaceShareStatus = 'ACTIVE' | 'EXPIRED' | 'PENDING' | 'REVOKED';
249
339
  export type WorkspaceStatus =
250
340
  /** Workspace is active and operational */
251
341
  'ACTIVE'
@@ -344,6 +434,202 @@ export type DashboardWorkspaceDataQuery = {
344
434
  maxStorageGb: number | null;
345
435
  } | null;
346
436
  };
437
+ export type CreateWorkspaceShareMutationVariables = Exact<{
438
+ input: CreateWorkspaceShareInput;
439
+ }>;
440
+ export type CreateWorkspaceShareMutation = {
441
+ createWorkspaceShare: {
442
+ id: string;
443
+ workspaceId: string;
444
+ sourceWorkspaceName: string | null;
445
+ sourceOrgId: string;
446
+ targetWorkspaceId: string;
447
+ targetWorkspaceName: string | null;
448
+ targetOrgId: string;
449
+ resourceType: WorkspaceShareResourceType;
450
+ resourceId: string;
451
+ resourceName: string;
452
+ accessLevel: WorkspaceShareAccessLevel;
453
+ status: WorkspaceShareStatus;
454
+ consentScope: string;
455
+ consentGrantedBy: string | null;
456
+ consentGrantedAt: string | null;
457
+ expiresAt: string | null;
458
+ revokedAt: string | null;
459
+ revokedBy: string | null;
460
+ revocationReason: string | null;
461
+ createdAt: string;
462
+ updatedAt: string;
463
+ createdBy: string;
464
+ };
465
+ };
466
+ export type AcceptWorkspaceShareMutationVariables = Exact<{
467
+ workspaceId: string;
468
+ shareId: string;
469
+ }>;
470
+ export type AcceptWorkspaceShareMutation = {
471
+ acceptWorkspaceShare: {
472
+ id: string;
473
+ workspaceId: string;
474
+ sourceWorkspaceName: string | null;
475
+ sourceOrgId: string;
476
+ targetWorkspaceId: string;
477
+ targetWorkspaceName: string | null;
478
+ targetOrgId: string;
479
+ resourceType: WorkspaceShareResourceType;
480
+ resourceId: string;
481
+ resourceName: string;
482
+ accessLevel: WorkspaceShareAccessLevel;
483
+ status: WorkspaceShareStatus;
484
+ consentScope: string;
485
+ consentGrantedBy: string | null;
486
+ consentGrantedAt: string | null;
487
+ expiresAt: string | null;
488
+ revokedAt: string | null;
489
+ revokedBy: string | null;
490
+ revocationReason: string | null;
491
+ createdAt: string;
492
+ updatedAt: string;
493
+ createdBy: string;
494
+ };
495
+ };
496
+ export type RevokeWorkspaceShareMutationVariables = Exact<{
497
+ workspaceId: string;
498
+ shareId: string;
499
+ reason?: string | null | undefined;
500
+ }>;
501
+ export type RevokeWorkspaceShareMutation = {
502
+ revokeWorkspaceShare: {
503
+ id: string;
504
+ workspaceId: string;
505
+ sourceWorkspaceName: string | null;
506
+ sourceOrgId: string;
507
+ targetWorkspaceId: string;
508
+ targetWorkspaceName: string | null;
509
+ targetOrgId: string;
510
+ resourceType: WorkspaceShareResourceType;
511
+ resourceId: string;
512
+ resourceName: string;
513
+ accessLevel: WorkspaceShareAccessLevel;
514
+ status: WorkspaceShareStatus;
515
+ consentScope: string;
516
+ consentGrantedBy: string | null;
517
+ consentGrantedAt: string | null;
518
+ expiresAt: string | null;
519
+ revokedAt: string | null;
520
+ revokedBy: string | null;
521
+ revocationReason: string | null;
522
+ createdAt: string;
523
+ updatedAt: string;
524
+ createdBy: string;
525
+ };
526
+ };
527
+ export type CreateMspOrgLinkMutationVariables = Exact<{
528
+ input: CreateMspOrgLinkInput;
529
+ }>;
530
+ export type CreateMspOrgLinkMutation = {
531
+ createMspOrgLink: {
532
+ id: string;
533
+ workspaceId: string;
534
+ mspOrgId: string;
535
+ clientOrgId: string;
536
+ clientOrgName: string;
537
+ clientWorkspaceId: string | null;
538
+ delegatedScopes: Array<MspDelegatedScope>;
539
+ status: MspOrgLinkStatus;
540
+ billingMode: MspBillingMode;
541
+ monthlySeatBudget: number | null;
542
+ consentGrantedBy: string | null;
543
+ consentGrantedAt: string | null;
544
+ expiresAt: string | null;
545
+ revokedAt: string | null;
546
+ revokedBy: string | null;
547
+ notes: string | null;
548
+ createdAt: string;
549
+ updatedAt: string;
550
+ createdBy: string;
551
+ };
552
+ };
553
+ export type ApproveMspOrgLinkMutationVariables = Exact<{
554
+ workspaceId: string;
555
+ linkId: string;
556
+ }>;
557
+ export type ApproveMspOrgLinkMutation = {
558
+ approveMspOrgLink: {
559
+ id: string;
560
+ workspaceId: string;
561
+ mspOrgId: string;
562
+ clientOrgId: string;
563
+ clientOrgName: string;
564
+ clientWorkspaceId: string | null;
565
+ delegatedScopes: Array<MspDelegatedScope>;
566
+ status: MspOrgLinkStatus;
567
+ billingMode: MspBillingMode;
568
+ monthlySeatBudget: number | null;
569
+ consentGrantedBy: string | null;
570
+ consentGrantedAt: string | null;
571
+ expiresAt: string | null;
572
+ revokedAt: string | null;
573
+ revokedBy: string | null;
574
+ notes: string | null;
575
+ createdAt: string;
576
+ updatedAt: string;
577
+ createdBy: string;
578
+ };
579
+ };
580
+ export type UpdateMspOrgLinkMutationVariables = Exact<{
581
+ input: UpdateMspOrgLinkInput;
582
+ }>;
583
+ export type UpdateMspOrgLinkMutation = {
584
+ updateMspOrgLink: {
585
+ id: string;
586
+ workspaceId: string;
587
+ mspOrgId: string;
588
+ clientOrgId: string;
589
+ clientOrgName: string;
590
+ clientWorkspaceId: string | null;
591
+ delegatedScopes: Array<MspDelegatedScope>;
592
+ status: MspOrgLinkStatus;
593
+ billingMode: MspBillingMode;
594
+ monthlySeatBudget: number | null;
595
+ consentGrantedBy: string | null;
596
+ consentGrantedAt: string | null;
597
+ expiresAt: string | null;
598
+ revokedAt: string | null;
599
+ revokedBy: string | null;
600
+ notes: string | null;
601
+ createdAt: string;
602
+ updatedAt: string;
603
+ createdBy: string;
604
+ };
605
+ };
606
+ export type RevokeMspOrgLinkMutationVariables = Exact<{
607
+ workspaceId: string;
608
+ linkId: string;
609
+ }>;
610
+ export type RevokeMspOrgLinkMutation = {
611
+ revokeMspOrgLink: {
612
+ id: string;
613
+ workspaceId: string;
614
+ mspOrgId: string;
615
+ clientOrgId: string;
616
+ clientOrgName: string;
617
+ clientWorkspaceId: string | null;
618
+ delegatedScopes: Array<MspDelegatedScope>;
619
+ status: MspOrgLinkStatus;
620
+ billingMode: MspBillingMode;
621
+ monthlySeatBudget: number | null;
622
+ consentGrantedBy: string | null;
623
+ consentGrantedAt: string | null;
624
+ expiresAt: string | null;
625
+ revokedAt: string | null;
626
+ revokedBy: string | null;
627
+ notes: string | null;
628
+ createdAt: string;
629
+ updatedAt: string;
630
+ createdBy: string;
631
+ };
632
+ };
347
633
  export type AddWorkspaceMemberMutationVariables = Exact<{
348
634
  input: AddWorkspaceMemberInput;
349
635
  }>;
@@ -760,6 +1046,230 @@ export type ReplaceWorkspaceTagsMutation = {
760
1046
  } | null;
761
1047
  }>;
762
1048
  };
1049
+ export type GetWorkspaceActivityLogQueryVariables = Exact<{
1050
+ workspaceId: string;
1051
+ limit?: number | null | undefined;
1052
+ }>;
1053
+ export type GetWorkspaceActivityLogQuery = {
1054
+ getWorkspaceActivities: Array<{
1055
+ id: string;
1056
+ action: string;
1057
+ category: ActivityCategory | null;
1058
+ resourceType: string | null;
1059
+ resourceId: string | null;
1060
+ userId: string;
1061
+ targetUserId: string | null;
1062
+ description: string | null;
1063
+ details: Record<string, unknown> | null;
1064
+ timestamp: string;
1065
+ }>;
1066
+ };
1067
+ export type WorkspaceShareFieldsFragment = {
1068
+ id: string;
1069
+ workspaceId: string;
1070
+ sourceWorkspaceName: string | null;
1071
+ sourceOrgId: string;
1072
+ targetWorkspaceId: string;
1073
+ targetWorkspaceName: string | null;
1074
+ targetOrgId: string;
1075
+ resourceType: WorkspaceShareResourceType;
1076
+ resourceId: string;
1077
+ resourceName: string;
1078
+ accessLevel: WorkspaceShareAccessLevel;
1079
+ status: WorkspaceShareStatus;
1080
+ consentScope: string;
1081
+ consentGrantedBy: string | null;
1082
+ consentGrantedAt: string | null;
1083
+ expiresAt: string | null;
1084
+ revokedAt: string | null;
1085
+ revokedBy: string | null;
1086
+ revocationReason: string | null;
1087
+ createdAt: string;
1088
+ updatedAt: string;
1089
+ createdBy: string;
1090
+ };
1091
+ export type MspOrgLinkFieldsFragment = {
1092
+ id: string;
1093
+ workspaceId: string;
1094
+ mspOrgId: string;
1095
+ clientOrgId: string;
1096
+ clientOrgName: string;
1097
+ clientWorkspaceId: string | null;
1098
+ delegatedScopes: Array<MspDelegatedScope>;
1099
+ status: MspOrgLinkStatus;
1100
+ billingMode: MspBillingMode;
1101
+ monthlySeatBudget: number | null;
1102
+ consentGrantedBy: string | null;
1103
+ consentGrantedAt: string | null;
1104
+ expiresAt: string | null;
1105
+ revokedAt: string | null;
1106
+ revokedBy: string | null;
1107
+ notes: string | null;
1108
+ createdAt: string;
1109
+ updatedAt: string;
1110
+ createdBy: string;
1111
+ };
1112
+ export type GetWorkspaceSharesQueryVariables = Exact<{
1113
+ workspaceId: string;
1114
+ direction?: WorkspaceShareDirection | null | undefined;
1115
+ status?: WorkspaceShareStatus | null | undefined;
1116
+ }>;
1117
+ export type GetWorkspaceSharesQuery = {
1118
+ workspaceShares: {
1119
+ totalCount: number;
1120
+ items: Array<{
1121
+ id: string;
1122
+ workspaceId: string;
1123
+ sourceWorkspaceName: string | null;
1124
+ sourceOrgId: string;
1125
+ targetWorkspaceId: string;
1126
+ targetWorkspaceName: string | null;
1127
+ targetOrgId: string;
1128
+ resourceType: WorkspaceShareResourceType;
1129
+ resourceId: string;
1130
+ resourceName: string;
1131
+ accessLevel: WorkspaceShareAccessLevel;
1132
+ status: WorkspaceShareStatus;
1133
+ consentScope: string;
1134
+ consentGrantedBy: string | null;
1135
+ consentGrantedAt: string | null;
1136
+ expiresAt: string | null;
1137
+ revokedAt: string | null;
1138
+ revokedBy: string | null;
1139
+ revocationReason: string | null;
1140
+ createdAt: string;
1141
+ updatedAt: string;
1142
+ createdBy: string;
1143
+ }>;
1144
+ };
1145
+ };
1146
+ export type GetMspOrgLinksQueryVariables = Exact<{
1147
+ workspaceId: string;
1148
+ role?: MspLinkRole | null | undefined;
1149
+ status?: MspOrgLinkStatus | null | undefined;
1150
+ }>;
1151
+ export type GetMspOrgLinksQuery = {
1152
+ mspOrgLinks: {
1153
+ totalCount: number;
1154
+ items: Array<{
1155
+ id: string;
1156
+ workspaceId: string;
1157
+ mspOrgId: string;
1158
+ clientOrgId: string;
1159
+ clientOrgName: string;
1160
+ clientWorkspaceId: string | null;
1161
+ delegatedScopes: Array<MspDelegatedScope>;
1162
+ status: MspOrgLinkStatus;
1163
+ billingMode: MspBillingMode;
1164
+ monthlySeatBudget: number | null;
1165
+ consentGrantedBy: string | null;
1166
+ consentGrantedAt: string | null;
1167
+ expiresAt: string | null;
1168
+ revokedAt: string | null;
1169
+ revokedBy: string | null;
1170
+ notes: string | null;
1171
+ createdAt: string;
1172
+ updatedAt: string;
1173
+ createdBy: string;
1174
+ }>;
1175
+ };
1176
+ };
1177
+ export type GetCrossWorkspaceOverviewQueryVariables = Exact<{
1178
+ [key: string]: never;
1179
+ }>;
1180
+ export type GetCrossWorkspaceOverviewQuery = {
1181
+ crossWorkspaceOverview: {
1182
+ totals: {
1183
+ organizationCount: number;
1184
+ managedOrganizationCount: number;
1185
+ workspaceCount: number;
1186
+ activeWorkspaceCount: number;
1187
+ totalActiveSeats: number;
1188
+ totalProjects: number;
1189
+ activeShareCount: number;
1190
+ };
1191
+ organizations: Array<{
1192
+ orgId: string;
1193
+ orgName: string;
1194
+ tenantId: string;
1195
+ managedByMsp: boolean;
1196
+ mspLinkId: string | null;
1197
+ mspLinkStatus: MspOrgLinkStatus | null;
1198
+ delegatedScopes: Array<MspDelegatedScope>;
1199
+ workspaceCount: number;
1200
+ activeWorkspaceCount: number;
1201
+ totalMemberCount: number;
1202
+ totalProjectCount: number;
1203
+ activeShareCount: number;
1204
+ billingSummary: {
1205
+ totalWorkspaces: number;
1206
+ activeWorkspaces: number;
1207
+ totalActiveSeats: number;
1208
+ totalProjects: number;
1209
+ totalResources: number;
1210
+ subscribedProductCount: number;
1211
+ billingMode: MspBillingMode | null;
1212
+ monthlySeatBudget: number | null;
1213
+ seatUtilizationPercent: number | null;
1214
+ };
1215
+ workspaces: Array<{
1216
+ id: string;
1217
+ name: string;
1218
+ status: WorkspaceStatus;
1219
+ orgId: string;
1220
+ tenantId: string;
1221
+ memberCount: number;
1222
+ projectCount: number;
1223
+ resourceCount: number;
1224
+ subscribedProductCount: number;
1225
+ activeShareCount: number;
1226
+ managedViaMsp: boolean;
1227
+ mspLinkId: string | null;
1228
+ createdAt: string;
1229
+ }>;
1230
+ }>;
1231
+ };
1232
+ };
1233
+ export type GetMspOrganizationSummaryQueryVariables = Exact<{
1234
+ workspaceId: string;
1235
+ targetOrgId: string;
1236
+ }>;
1237
+ export type GetMspOrganizationSummaryQuery = {
1238
+ mspOrganizationSummary: {
1239
+ orgId: string;
1240
+ orgName: string;
1241
+ managedViaMsp: boolean;
1242
+ mspLinkId: string | null;
1243
+ delegatedScopes: Array<MspDelegatedScope>;
1244
+ activeSharesCount: number;
1245
+ billingSummary: {
1246
+ totalWorkspaces: number;
1247
+ activeWorkspaces: number;
1248
+ totalActiveSeats: number;
1249
+ totalProjects: number;
1250
+ totalResources: number;
1251
+ subscribedProductCount: number;
1252
+ billingMode: MspBillingMode | null;
1253
+ monthlySeatBudget: number | null;
1254
+ seatUtilizationPercent: number | null;
1255
+ };
1256
+ workspaces: Array<{
1257
+ id: string;
1258
+ name: string;
1259
+ status: WorkspaceStatus;
1260
+ orgId: string;
1261
+ tenantId: string;
1262
+ memberCount: number;
1263
+ projectCount: number;
1264
+ resourceCount: number;
1265
+ subscribedProductCount: number;
1266
+ activeShareCount: number;
1267
+ managedViaMsp: boolean;
1268
+ mspLinkId: string | null;
1269
+ createdAt: string;
1270
+ }>;
1271
+ };
1272
+ };
763
1273
  export type WorkspaceMemberFieldsFragment = {
764
1274
  id: string;
765
1275
  workspaceId: string;
@@ -932,6 +1442,85 @@ export type GetMyPendingInvitationsQuery = {
932
1442
  } | null;
933
1443
  }>;
934
1444
  };
1445
+ export type GetWorkspaceMembersWithStatusQueryVariables = Exact<{
1446
+ workspaceId: string;
1447
+ pagination?: PaginationInput | null | undefined;
1448
+ }>;
1449
+ export type GetWorkspaceMembersWithStatusQuery = {
1450
+ workspaceMembers: {
1451
+ total: number;
1452
+ hasMore: boolean;
1453
+ items: Array<{
1454
+ role: string;
1455
+ status: string;
1456
+ id: string;
1457
+ workspaceId: string;
1458
+ userId: string;
1459
+ createdAt: string;
1460
+ updatedAt: string;
1461
+ context: {
1462
+ type: string | null;
1463
+ metadata: Record<string, unknown> | null;
1464
+ } | null;
1465
+ }>;
1466
+ };
1467
+ };
1468
+ export type GetWorkspaceInvitationsWithEmailStatusQueryVariables = Exact<{
1469
+ status?: InviteStatus | null | undefined;
1470
+ pagination?: PaginationInput | null | undefined;
1471
+ }>;
1472
+ export type GetWorkspaceInvitationsWithEmailStatusQuery = {
1473
+ workspaceInvitations: {
1474
+ total: number;
1475
+ hasMore: boolean;
1476
+ items: Array<{
1477
+ emailStatus: InvitationEmailStatus | null;
1478
+ emailErrorCode: string | null;
1479
+ emailLastAttemptAt: string | null;
1480
+ projectId: string | null;
1481
+ invitedUserId: string | null;
1482
+ updatedAt: string;
1483
+ deletedAt: string | null;
1484
+ id: string;
1485
+ email: string;
1486
+ status: InviteStatus;
1487
+ roleIds: Array<string>;
1488
+ workspaceId: string | null;
1489
+ invitedById: string | null;
1490
+ expiresAt: string | null;
1491
+ createdAt: string;
1492
+ context: {
1493
+ type: string | null;
1494
+ metadata: Record<string, unknown> | null;
1495
+ } | null;
1496
+ }>;
1497
+ };
1498
+ };
1499
+ export type GetWorkspaceActorRolesQueryVariables = Exact<{
1500
+ scopeId: string;
1501
+ pagination?: PaginationInput | null | undefined;
1502
+ }>;
1503
+ export type GetWorkspaceActorRolesQuery = {
1504
+ actorsPage: {
1505
+ items: Array<{
1506
+ actorId: string;
1507
+ actorType: ActorType;
1508
+ roleAssignments: Array<{
1509
+ id: string;
1510
+ isActive: boolean;
1511
+ roleId: string;
1512
+ role: {
1513
+ id: string;
1514
+ name: string;
1515
+ };
1516
+ }>;
1517
+ }>;
1518
+ pageInfo: {
1519
+ hasNextPage: boolean;
1520
+ totalCount: number;
1521
+ };
1522
+ };
1523
+ };
935
1524
  export type ProjectCardFieldsFragment = {
936
1525
  id: string;
937
1526
  name: string;
@@ -1160,6 +1749,28 @@ export type GetProjectTagsQuery = {
1160
1749
  } | null;
1161
1750
  }>;
1162
1751
  };
1752
+ export type GetMyProjectsWithDetailsQueryVariables = Exact<{
1753
+ pagination?: PaginationInput | null | undefined;
1754
+ }>;
1755
+ export type GetMyProjectsWithDetailsQuery = {
1756
+ myProjects: {
1757
+ total: number;
1758
+ hasMore: boolean;
1759
+ items: Array<{
1760
+ description: string | null;
1761
+ creatorId: string;
1762
+ id: string;
1763
+ name: string;
1764
+ key: string;
1765
+ workspaceId: string;
1766
+ status: ProjectStatus;
1767
+ tags: Record<string, unknown>;
1768
+ archived: boolean;
1769
+ createdAt: string;
1770
+ updatedAt: string;
1771
+ }>;
1772
+ };
1773
+ };
1163
1774
  export type WorkspaceCardFieldsFragment = {
1164
1775
  id: string;
1165
1776
  name: string;
@@ -1400,6 +2011,8 @@ export type GetWorkspaceTagsQuery = {
1400
2011
  } | null;
1401
2012
  }>;
1402
2013
  };
2014
+ export declare const WorkspaceShareFieldsFragmentDoc: DocumentNode<WorkspaceShareFieldsFragment, unknown>;
2015
+ export declare const MspOrgLinkFieldsFragmentDoc: DocumentNode<MspOrgLinkFieldsFragment, unknown>;
1403
2016
  export declare const WorkspaceMemberFieldsFragmentDoc: DocumentNode<WorkspaceMemberFieldsFragment, unknown>;
1404
2017
  export declare const InvitationCardFieldsFragmentDoc: DocumentNode<InvitationCardFieldsFragment, unknown>;
1405
2018
  export declare const InvitationFullFieldsFragmentDoc: DocumentNode<InvitationFullFieldsFragment, unknown>;
@@ -1411,6 +2024,13 @@ export declare const WorkspaceTagAssignmentFieldsFragmentDoc: DocumentNode<Works
1411
2024
  export declare const WorkspaceFullFieldsFragmentDoc: DocumentNode<WorkspaceFullFieldsFragment, unknown>;
1412
2025
  export declare const DashboardProjectsDocument: DocumentNode<DashboardProjectsQuery, DashboardProjectsQueryVariables>;
1413
2026
  export declare const DashboardWorkspaceDataDocument: DocumentNode<DashboardWorkspaceDataQuery, DashboardWorkspaceDataQueryVariables>;
2027
+ export declare const CreateWorkspaceShareDocument: DocumentNode<CreateWorkspaceShareMutation, CreateWorkspaceShareMutationVariables>;
2028
+ export declare const AcceptWorkspaceShareDocument: DocumentNode<AcceptWorkspaceShareMutation, AcceptWorkspaceShareMutationVariables>;
2029
+ export declare const RevokeWorkspaceShareDocument: DocumentNode<RevokeWorkspaceShareMutation, RevokeWorkspaceShareMutationVariables>;
2030
+ export declare const CreateMspOrgLinkDocument: DocumentNode<CreateMspOrgLinkMutation, CreateMspOrgLinkMutationVariables>;
2031
+ export declare const ApproveMspOrgLinkDocument: DocumentNode<ApproveMspOrgLinkMutation, ApproveMspOrgLinkMutationVariables>;
2032
+ export declare const UpdateMspOrgLinkDocument: DocumentNode<UpdateMspOrgLinkMutation, UpdateMspOrgLinkMutationVariables>;
2033
+ export declare const RevokeMspOrgLinkDocument: DocumentNode<RevokeMspOrgLinkMutation, RevokeMspOrgLinkMutationVariables>;
1414
2034
  export declare const AddWorkspaceMemberDocument: DocumentNode<AddWorkspaceMemberMutation, AddWorkspaceMemberMutationVariables>;
1415
2035
  export declare const RemoveWorkspaceMemberDocument: DocumentNode<RemoveWorkspaceMemberMutation, RemoveWorkspaceMemberMutationVariables>;
1416
2036
  export declare const RemoveUserFromWorkspaceDocument: DocumentNode<RemoveUserFromWorkspaceMutation, RemoveUserFromWorkspaceMutationVariables>;
@@ -1440,16 +2060,25 @@ export declare const InitializeWorkspaceDocument: DocumentNode<InitializeWorkspa
1440
2060
  export declare const TagWorkspaceDocument: DocumentNode<TagWorkspaceMutation, TagWorkspaceMutationVariables>;
1441
2061
  export declare const UntagWorkspaceDocument: DocumentNode<UntagWorkspaceMutation, UntagWorkspaceMutationVariables>;
1442
2062
  export declare const ReplaceWorkspaceTagsDocument: DocumentNode<ReplaceWorkspaceTagsMutation, ReplaceWorkspaceTagsMutationVariables>;
2063
+ export declare const GetWorkspaceActivityLogDocument: DocumentNode<GetWorkspaceActivityLogQuery, GetWorkspaceActivityLogQueryVariables>;
2064
+ export declare const GetWorkspaceSharesDocument: DocumentNode<GetWorkspaceSharesQuery, GetWorkspaceSharesQueryVariables>;
2065
+ export declare const GetMspOrgLinksDocument: DocumentNode<GetMspOrgLinksQuery, GetMspOrgLinksQueryVariables>;
2066
+ export declare const GetCrossWorkspaceOverviewDocument: DocumentNode<GetCrossWorkspaceOverviewQuery, GetCrossWorkspaceOverviewQueryVariables>;
2067
+ export declare const GetMspOrganizationSummaryDocument: DocumentNode<GetMspOrganizationSummaryQuery, GetMspOrganizationSummaryQueryVariables>;
1443
2068
  export declare const GetWorkspaceMembersDocument: DocumentNode<GetWorkspaceMembersQuery, GetWorkspaceMembersQueryVariables>;
1444
2069
  export declare const GetWorkspaceMemberDocument: DocumentNode<GetWorkspaceMemberQuery, GetWorkspaceMemberQueryVariables>;
1445
2070
  export declare const GetUserWorkspacesDocument: DocumentNode<GetUserWorkspacesQuery, GetUserWorkspacesQueryVariables>;
1446
2071
  export declare const GetWorkspaceInvitationsDocument: DocumentNode<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>;
1447
2072
  export declare const GetInvitationDocument: DocumentNode<GetInvitationQuery, GetInvitationQueryVariables>;
1448
2073
  export declare const GetMyPendingInvitationsDocument: DocumentNode<GetMyPendingInvitationsQuery, GetMyPendingInvitationsQueryVariables>;
2074
+ export declare const GetWorkspaceMembersWithStatusDocument: DocumentNode<GetWorkspaceMembersWithStatusQuery, GetWorkspaceMembersWithStatusQueryVariables>;
2075
+ export declare const GetWorkspaceInvitationsWithEmailStatusDocument: DocumentNode<GetWorkspaceInvitationsWithEmailStatusQuery, GetWorkspaceInvitationsWithEmailStatusQueryVariables>;
2076
+ export declare const GetWorkspaceActorRolesDocument: DocumentNode<GetWorkspaceActorRolesQuery, GetWorkspaceActorRolesQueryVariables>;
1449
2077
  export declare const GetProjectsDocument: DocumentNode<GetProjectsQuery, GetProjectsQueryVariables>;
1450
2078
  export declare const GetProjectDocument: DocumentNode<GetProjectQuery, GetProjectQueryVariables>;
1451
2079
  export declare const GetMyProjectsDocument: DocumentNode<GetMyProjectsQuery, GetMyProjectsQueryVariables>;
1452
2080
  export declare const GetProjectTagsDocument: DocumentNode<GetProjectTagsQuery, GetProjectTagsQueryVariables>;
2081
+ export declare const GetMyProjectsWithDetailsDocument: DocumentNode<GetMyProjectsWithDetailsQuery, GetMyProjectsWithDetailsQueryVariables>;
1453
2082
  export declare const GetWorkspacesDocument: DocumentNode<GetWorkspacesQuery, GetWorkspacesQueryVariables>;
1454
2083
  export declare const GetWorkspaceDocument: DocumentNode<GetWorkspaceQuery, GetWorkspaceQueryVariables>;
1455
2084
  export declare const GetMyWorkspacesDocument: DocumentNode<GetMyWorkspacesQuery, GetMyWorkspacesQueryVariables>;