@burdenoff/microfe-devportal 2026.525.2 → 2026.525.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/package.json +1 -1
  2. package/dist/__tests__/setup.d.ts +0 -2
  3. package/dist/__tests__/setup.d.ts.map +0 -1
  4. package/dist/__tests__/utils/renderWithProviders.d.ts +0 -32
  5. package/dist/__tests__/utils/renderWithProviders.d.ts.map +0 -1
  6. package/dist/dev/main.d.ts +0 -8
  7. package/dist/dev/main.d.ts.map +0 -1
  8. package/dist/devportal/AdminDevportalRoot.d.ts +0 -17
  9. package/dist/devportal/AdminDevportalRoot.d.ts.map +0 -1
  10. package/dist/devportal/AdminDevportalRoutes.d.ts +0 -2
  11. package/dist/devportal/AdminDevportalRoutes.d.ts.map +0 -1
  12. package/dist/devportal/DevportalRoot.d.ts +0 -30
  13. package/dist/devportal/DevportalRoot.d.ts.map +0 -1
  14. package/dist/devportal/DevportalRoutes.d.ts +0 -18
  15. package/dist/devportal/DevportalRoutes.d.ts.map +0 -1
  16. package/dist/devportal/components/AppCard.d.ts +0 -35
  17. package/dist/devportal/components/AppCard.d.ts.map +0 -1
  18. package/dist/devportal/components/ConfirmDialog.d.ts +0 -29
  19. package/dist/devportal/components/ConfirmDialog.d.ts.map +0 -1
  20. package/dist/devportal/components/DataTable.d.ts +0 -41
  21. package/dist/devportal/components/DataTable.d.ts.map +0 -1
  22. package/dist/devportal/components/EmptyState.d.ts +0 -15
  23. package/dist/devportal/components/EmptyState.d.ts.map +0 -1
  24. package/dist/devportal/components/FeatureFlaggedRoute.d.ts +0 -10
  25. package/dist/devportal/components/FeatureFlaggedRoute.d.ts.map +0 -1
  26. package/dist/devportal/components/FormField.d.ts +0 -70
  27. package/dist/devportal/components/FormField.d.ts.map +0 -1
  28. package/dist/devportal/components/GrantDelegationModal.d.ts +0 -23
  29. package/dist/devportal/components/GrantDelegationModal.d.ts.map +0 -1
  30. package/dist/devportal/components/LoadingState.d.ts +0 -31
  31. package/dist/devportal/components/LoadingState.d.ts.map +0 -1
  32. package/dist/devportal/components/PageLayout.d.ts +0 -28
  33. package/dist/devportal/components/PageLayout.d.ts.map +0 -1
  34. package/dist/devportal/components/PermissionGuard.d.ts +0 -15
  35. package/dist/devportal/components/PermissionGuard.d.ts.map +0 -1
  36. package/dist/devportal/components/SecretDisplay.d.ts +0 -32
  37. package/dist/devportal/components/SecretDisplay.d.ts.map +0 -1
  38. package/dist/devportal/components/SectionNav.d.ts +0 -24
  39. package/dist/devportal/components/SectionNav.d.ts.map +0 -1
  40. package/dist/devportal/components/SelectionCheckbox.d.ts +0 -11
  41. package/dist/devportal/components/SelectionCheckbox.d.ts.map +0 -1
  42. package/dist/devportal/components/StatCard.d.ts +0 -27
  43. package/dist/devportal/components/StatCard.d.ts.map +0 -1
  44. package/dist/devportal/components/StatusBadge.d.ts +0 -33
  45. package/dist/devportal/components/StatusBadge.d.ts.map +0 -1
  46. package/dist/devportal/components/TelemetryErrorBoundary.d.ts +0 -11
  47. package/dist/devportal/components/TelemetryErrorBoundary.d.ts.map +0 -1
  48. package/dist/devportal/components/index.d.ts +0 -21
  49. package/dist/devportal/components/index.d.ts.map +0 -1
  50. package/dist/devportal/constants/permissions.d.ts +0 -90
  51. package/dist/devportal/constants/permissions.d.ts.map +0 -1
  52. package/dist/devportal/events/index.d.ts +0 -19
  53. package/dist/devportal/events/index.d.ts.map +0 -1
  54. package/dist/devportal/hooks/DevPortalProvider.d.ts +0 -18
  55. package/dist/devportal/hooks/DevPortalProvider.d.ts.map +0 -1
  56. package/dist/devportal/hooks/index.d.ts +0 -10
  57. package/dist/devportal/hooks/index.d.ts.map +0 -1
  58. package/dist/devportal/hooks/useGraphQL.d.ts +0 -56
  59. package/dist/devportal/hooks/useGraphQL.d.ts.map +0 -1
  60. package/dist/devportal/hooks/usePermission.d.ts +0 -24
  61. package/dist/devportal/hooks/usePermission.d.ts.map +0 -1
  62. package/dist/devportal/index.d.ts +0 -36
  63. package/dist/devportal/index.d.ts.map +0 -1
  64. package/dist/devportal/pages/AdminReviewPage.d.ts +0 -4
  65. package/dist/devportal/pages/AdminReviewPage.d.ts.map +0 -1
  66. package/dist/devportal/pages/AnalyticsDashboardPage.d.ts +0 -4
  67. package/dist/devportal/pages/AnalyticsDashboardPage.d.ts.map +0 -1
  68. package/dist/devportal/pages/ApiKeysPage.d.ts +0 -12
  69. package/dist/devportal/pages/ApiKeysPage.d.ts.map +0 -1
  70. package/dist/devportal/pages/AppLogsPage.d.ts +0 -4
  71. package/dist/devportal/pages/AppLogsPage.d.ts.map +0 -1
  72. package/dist/devportal/pages/ApplicationDetailPage.d.ts +0 -7
  73. package/dist/devportal/pages/ApplicationDetailPage.d.ts.map +0 -1
  74. package/dist/devportal/pages/ApplicationVersionsPage.d.ts +0 -4
  75. package/dist/devportal/pages/ApplicationVersionsPage.d.ts.map +0 -1
  76. package/dist/devportal/pages/ApplicationsPage.d.ts +0 -10
  77. package/dist/devportal/pages/ApplicationsPage.d.ts.map +0 -1
  78. package/dist/devportal/pages/CreateApiKeyPage.d.ts +0 -11
  79. package/dist/devportal/pages/CreateApiKeyPage.d.ts.map +0 -1
  80. package/dist/devportal/pages/CreateApplicationPage.d.ts +0 -7
  81. package/dist/devportal/pages/CreateApplicationPage.d.ts.map +0 -1
  82. package/dist/devportal/pages/CreateOAuthClientPage.d.ts +0 -10
  83. package/dist/devportal/pages/CreateOAuthClientPage.d.ts.map +0 -1
  84. package/dist/devportal/pages/CreateOrganizationPage.d.ts +0 -7
  85. package/dist/devportal/pages/CreateOrganizationPage.d.ts.map +0 -1
  86. package/dist/devportal/pages/CreateWebhookPage.d.ts +0 -4
  87. package/dist/devportal/pages/CreateWebhookPage.d.ts.map +0 -1
  88. package/dist/devportal/pages/DashboardPage.d.ts +0 -10
  89. package/dist/devportal/pages/DashboardPage.d.ts.map +0 -1
  90. package/dist/devportal/pages/DelegationsPage.d.ts +0 -12
  91. package/dist/devportal/pages/DelegationsPage.d.ts.map +0 -1
  92. package/dist/devportal/pages/DocumentationPage.d.ts +0 -4
  93. package/dist/devportal/pages/DocumentationPage.d.ts.map +0 -1
  94. package/dist/devportal/pages/EditApplicationPage.d.ts +0 -7
  95. package/dist/devportal/pages/EditApplicationPage.d.ts.map +0 -1
  96. package/dist/devportal/pages/ListingPreviewPage.d.ts +0 -4
  97. package/dist/devportal/pages/ListingPreviewPage.d.ts.map +0 -1
  98. package/dist/devportal/pages/OAuthClientDetailPage.d.ts +0 -10
  99. package/dist/devportal/pages/OAuthClientDetailPage.d.ts.map +0 -1
  100. package/dist/devportal/pages/OAuthClientsPage.d.ts +0 -11
  101. package/dist/devportal/pages/OAuthClientsPage.d.ts.map +0 -1
  102. package/dist/devportal/pages/OrganizationDetailPage.d.ts +0 -7
  103. package/dist/devportal/pages/OrganizationDetailPage.d.ts.map +0 -1
  104. package/dist/devportal/pages/OrganizationMembersPage.d.ts +0 -4
  105. package/dist/devportal/pages/OrganizationMembersPage.d.ts.map +0 -1
  106. package/dist/devportal/pages/OrganizationsPage.d.ts +0 -10
  107. package/dist/devportal/pages/OrganizationsPage.d.ts.map +0 -1
  108. package/dist/devportal/pages/PublishPage.d.ts +0 -4
  109. package/dist/devportal/pages/PublishPage.d.ts.map +0 -1
  110. package/dist/devportal/pages/PublisherProfilePage.d.ts +0 -12
  111. package/dist/devportal/pages/PublisherProfilePage.d.ts.map +0 -1
  112. package/dist/devportal/pages/ResourcesPage.d.ts +0 -4
  113. package/dist/devportal/pages/ResourcesPage.d.ts.map +0 -1
  114. package/dist/devportal/pages/RevenueDashboardPage.d.ts +0 -4
  115. package/dist/devportal/pages/RevenueDashboardPage.d.ts.map +0 -1
  116. package/dist/devportal/pages/RevenueRedirectPage.d.ts +0 -4
  117. package/dist/devportal/pages/RevenueRedirectPage.d.ts.map +0 -1
  118. package/dist/devportal/pages/SettingsPage.d.ts +0 -4
  119. package/dist/devportal/pages/SettingsPage.d.ts.map +0 -1
  120. package/dist/devportal/pages/StoreSubmissionPage.d.ts +0 -4
  121. package/dist/devportal/pages/StoreSubmissionPage.d.ts.map +0 -1
  122. package/dist/devportal/pages/WebhookDetailPage.d.ts +0 -4
  123. package/dist/devportal/pages/WebhookDetailPage.d.ts.map +0 -1
  124. package/dist/devportal/pages/WebhooksPage.d.ts +0 -10
  125. package/dist/devportal/pages/WebhooksPage.d.ts.map +0 -1
  126. package/dist/devportal/providers/DevportalProvider.d.ts +0 -13
  127. package/dist/devportal/providers/DevportalProvider.d.ts.map +0 -1
  128. package/dist/devportal/store/devportalStore.d.ts +0 -60
  129. package/dist/devportal/store/devportalStore.d.ts.map +0 -1
  130. package/dist/devportal/types/index.d.ts +0 -682
  131. package/dist/devportal/types/index.d.ts.map +0 -1
  132. package/dist/devportal/utils/cn.d.ts +0 -8
  133. package/dist/devportal/utils/cn.d.ts.map +0 -1
  134. package/dist/devportal/utils/constants.d.ts +0 -107
  135. package/dist/devportal/utils/constants.d.ts.map +0 -1
  136. package/dist/devportal/utils/i18n.d.ts +0 -13
  137. package/dist/devportal/utils/i18n.d.ts.map +0 -1
  138. package/dist/devportal/utils/recaptcha.d.ts +0 -2
  139. package/dist/devportal/utils/recaptcha.d.ts.map +0 -1
  140. package/dist/generated/global-operations.d.ts +0 -6281
  141. package/dist/generated/global-operations.d.ts.map +0 -1
  142. package/dist/generated/global-types.d.ts +0 -23527
  143. package/dist/generated/global-types.d.ts.map +0 -1
  144. package/dist/generated/wspace-operations.d.ts +0 -46
  145. package/dist/generated/wspace-operations.d.ts.map +0 -1
  146. package/dist/generated/wspace-types.d.ts +0 -57851
  147. package/dist/generated/wspace-types.d.ts.map +0 -1
  148. package/dist/index.d.ts +0 -7
  149. package/dist/index.d.ts.map +0 -1
  150. package/dist/utils/nativeBridge.d.ts +0 -3
  151. package/dist/utils/nativeBridge.d.ts.map +0 -1
@@ -1,682 +0,0 @@
1
- import { ReactNode } from 'react';
2
-
3
- /**
4
- * Navigation item for shell integration
5
- */
6
- export interface NavItem {
7
- id: string;
8
- label: string;
9
- path: string;
10
- icon?: ReactNode;
11
- badge?: number;
12
- order?: number;
13
- group?: string;
14
- visible?: boolean;
15
- children?: NavItem[];
16
- }
17
- /**
18
- * Footer item for shell integration
19
- */
20
- export interface FooterItem {
21
- id: string;
22
- label: string;
23
- type: "status" | "action";
24
- order?: number;
25
- section: "left" | "center" | "right";
26
- }
27
- /**
28
- * Props for the DevportalRoot component
29
- */
30
- export interface DevportalRootProps {
31
- /**
32
- * Base path for the devportal microfrontend
33
- */
34
- basePath?: string;
35
- /**
36
- * Tenant ID for scoping operations
37
- */
38
- tenantId?: string;
39
- /**
40
- * Workspace ID (optional, for workspace-scoped features)
41
- */
42
- workspaceId?: string;
43
- /**
44
- * API Gateway URL for GraphQL requests
45
- */
46
- apiGatewayUrl?: string;
47
- /**
48
- * Authentication token for API requests
49
- */
50
- authToken?: string;
51
- /**
52
- * Navigation function provided by the shell
53
- */
54
- navigate?: (path: string) => void;
55
- /**
56
- * Current user information
57
- */
58
- currentUser?: {
59
- id: string;
60
- email: string;
61
- firstName?: string;
62
- lastName?: string;
63
- avatar?: string;
64
- };
65
- /**
66
- * Optional function to register navigation items with the shell
67
- */
68
- registerNavItems?: (items: NavItem | NavItem[]) => () => void;
69
- /**
70
- * Optional function to register footer items with the shell
71
- */
72
- registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
73
- /**
74
- * Optional callback when an application is selected
75
- */
76
- onApplicationSelect?: (app: Application) => void;
77
- /**
78
- * Optional callback when an organization is selected
79
- */
80
- onOrganizationSelect?: (org: DeveloperOrganization) => void;
81
- }
82
- export type AppType = "WEB_APP" | "MOBILE_APP" | "DESKTOP_APP" | "CLI_TOOL" | "API_INTEGRATION" | "WORKFLOW" | "WIDGET" | "BOT" | "SERVICE" | "INTEGRATION" | "ANALYST" | "ASSISTANT" | "AUTOMATION" | "SPECIALIST";
83
- export type AppStatus = "DRAFT" | "SUBMITTED" | "IN_REVIEW" | "APPROVED" | "PUBLISHED" | "REJECTED" | "SUSPENDED" | "DEPRECATED" | "ACTIVE" | "INACTIVE" | "REVOKED";
84
- export type AppVisibility = "PUBLIC" | "PRIVATE" | "UNLISTED" | "INTERNAL";
85
- export type AppSubmissionReviewStatus = "PENDING" | "IN_PROGRESS" | "APPROVED" | "REJECTED" | "CHANGES_REQUESTED";
86
- export interface Application {
87
- id: string;
88
- name: string;
89
- slug: string;
90
- shortDescription?: string;
91
- description?: string;
92
- appType: AppType;
93
- status: AppStatus;
94
- visibility: AppVisibility;
95
- tenantId: string;
96
- developerId: string;
97
- developerOrganizationId?: string;
98
- developerOrganization?: DeveloperOrganization;
99
- category?: string;
100
- tags: string[];
101
- keywords: string[];
102
- iconUrl?: string;
103
- bannerUrl?: string;
104
- videoUrl?: string;
105
- screenshots?: Record<string, unknown>;
106
- websiteUrl?: string;
107
- documentationUrl?: string;
108
- supportUrl?: string;
109
- privacyPolicyUrl?: string;
110
- termsOfServiceUrl?: string;
111
- githubUrl?: string;
112
- pricingType?: string;
113
- pricingDetails?: Record<string, unknown>;
114
- installCount: number;
115
- activeInstallCount: number;
116
- averageRating?: number;
117
- reviewCount: number;
118
- submittedAt?: string;
119
- publishedAt?: string;
120
- lastReviewedAt?: string;
121
- reviewStatus: AppSubmissionReviewStatus;
122
- reviewNotes?: string;
123
- reviewedBy?: string;
124
- isFeatured: boolean;
125
- isVerified: boolean;
126
- requiresApproval: boolean;
127
- manifest?: Record<string, unknown>;
128
- config?: Record<string, unknown>;
129
- metadata?: Record<string, unknown>;
130
- appId?: string;
131
- createdAt: string;
132
- updatedAt: string;
133
- versions?: ApplicationVersion[];
134
- oauthClients?: OAuthClient[];
135
- apiKeys?: ApiKey[];
136
- webhooks?: Webhook[];
137
- scopes?: ApplicationScope[];
138
- }
139
- export interface ApplicationVersion {
140
- id: string;
141
- applicationId: string;
142
- version: string;
143
- releaseNotes?: string;
144
- changelog?: string;
145
- status: string;
146
- isLatest: boolean;
147
- isStable: boolean;
148
- packageUrl?: string;
149
- packageSize?: string;
150
- packageHash?: string;
151
- manifest?: Record<string, unknown>;
152
- minPlatformVersion?: string;
153
- maxPlatformVersion?: string;
154
- requiredScopes: string[];
155
- publishedAt?: string;
156
- deprecatedAt?: string;
157
- createdAt: string;
158
- updatedAt: string;
159
- }
160
- export interface ApplicationScope {
161
- id: string;
162
- applicationId: string;
163
- scope: string;
164
- description?: string;
165
- isRequired: boolean;
166
- createdAt: string;
167
- }
168
- export type OAuthClientType = "PUBLIC" | "CONFIDENTIAL";
169
- export type OAuthGrantType = "AUTHORIZATION_CODE" | "REFRESH_TOKEN" | "CLIENT_CREDENTIALS" | "IMPLICIT" | "PASSWORD";
170
- export interface OAuthClient {
171
- id: string;
172
- applicationId: string;
173
- name: string;
174
- clientId: string;
175
- clientSecret: string;
176
- clientType: OAuthClientType;
177
- redirectUris: string[];
178
- allowedGrantTypes: OAuthGrantType[];
179
- allowedScopes: string[];
180
- accessTokenLifetime: number;
181
- refreshTokenLifetime: number;
182
- isActive: boolean;
183
- requirePKCE: boolean;
184
- requireConsent: boolean;
185
- metadata?: Record<string, unknown>;
186
- createdAt: string;
187
- updatedAt: string;
188
- }
189
- export interface OAuthToken {
190
- id: string;
191
- clientId: string;
192
- userId: string;
193
- tenantId: string;
194
- workspaceId?: string;
195
- accessToken: string;
196
- refreshToken?: string;
197
- tokenType: string;
198
- scopes: string[];
199
- expiresAt: string;
200
- refreshExpiresAt?: string;
201
- isRevoked: boolean;
202
- revokedAt?: string;
203
- createdAt: string;
204
- lastUsedAt?: string;
205
- }
206
- export type ApiKeyType = "PUBLISHABLE" | "SECRET" | "RESTRICTED";
207
- export interface ApiKey {
208
- id: string;
209
- applicationId: string;
210
- name: string;
211
- description?: string;
212
- keyId: string;
213
- keyHash?: string;
214
- keyPrefix: string;
215
- keyType: ApiKeyType;
216
- scopes: string[];
217
- permissions?: Record<string, unknown>;
218
- rateLimit?: number;
219
- quotaLimit?: number;
220
- quotaUsed: number;
221
- quotaResetAt?: string;
222
- allowedIps: string[];
223
- allowedDomains: string[];
224
- environment?: string;
225
- isActive: boolean;
226
- isRevoked: boolean;
227
- createdAt: string;
228
- lastUsedAt?: string;
229
- expiresAt?: string;
230
- revokedAt?: string;
231
- }
232
- export interface ApiKeyPayload {
233
- apiKey: ApiKey;
234
- plainTextKey: string;
235
- }
236
- export type WebhookStatus = "ACTIVE" | "PAUSED" | "FAILED" | "DISABLED";
237
- export type WebhookDeliveryStatus = "PENDING" | "DELIVERING" | "DELIVERED" | "FAILED" | "RETRYING";
238
- export interface Webhook {
239
- id: string;
240
- applicationId: string;
241
- name: string;
242
- description?: string;
243
- url: string;
244
- secret: string;
245
- events: string[];
246
- filters?: Record<string, unknown>;
247
- retryEnabled: boolean;
248
- maxRetries: number;
249
- retryDelay: number;
250
- status: WebhookStatus;
251
- isActive: boolean;
252
- successCount: number;
253
- failureCount: number;
254
- lastTriggeredAt?: string;
255
- lastSuccessAt?: string;
256
- lastFailureAt?: string;
257
- lastFailureReason?: string;
258
- createdAt: string;
259
- updatedAt: string;
260
- deliveries?: WebhookDelivery[];
261
- }
262
- export interface WebhookDelivery {
263
- id: string;
264
- webhookId: string;
265
- eventType: string;
266
- eventId: string;
267
- payload: Record<string, unknown>;
268
- attemptNumber: number;
269
- status: WebhookDeliveryStatus;
270
- requestHeaders?: Record<string, unknown>;
271
- requestBody?: Record<string, unknown>;
272
- responseStatus?: number;
273
- responseHeaders?: Record<string, unknown>;
274
- responseBody?: string;
275
- deliveredAt?: string;
276
- failedAt?: string;
277
- nextRetryAt?: string;
278
- errorMessage?: string;
279
- errorCode?: string;
280
- createdAt: string;
281
- updatedAt: string;
282
- }
283
- export interface WebhookTestResult {
284
- success: boolean;
285
- statusCode?: number;
286
- response?: string;
287
- error?: string;
288
- }
289
- export type DeveloperOrgRole = "OWNER" | "ADMIN" | "DEVELOPER" | "VIEWER";
290
- export type DeveloperOrgTier = "FREE" | "DEVELOPER" | "PROFESSIONAL" | "ENTERPRISE";
291
- export type PartnerTier = "REGISTERED" | "SELECT" | "PREMIER";
292
- export type InvitationStatus = "PENDING" | "ACCEPTED" | "REJECTED" | "EXPIRED" | "CANCELLED";
293
- export interface DeveloperOrganization {
294
- id: string;
295
- name: string;
296
- slug: string;
297
- description?: string;
298
- logoUrl?: string;
299
- bannerUrl?: string;
300
- websiteUrl?: string;
301
- contactEmail?: string;
302
- supportEmail?: string;
303
- tier: DeveloperOrgTier;
304
- partnerTier?: PartnerTier;
305
- partnerSince?: string;
306
- isVerified: boolean;
307
- verifiedAt?: string;
308
- verificationMethod?: string;
309
- isCertified: boolean;
310
- certifiedAt?: string;
311
- certificationExpiry?: string;
312
- totalApps: number;
313
- publishedApps: number;
314
- totalInstalls: number;
315
- activeInstalls: number;
316
- totalApiCalls: string;
317
- averageRating?: number;
318
- totalRevenue: number;
319
- totalPlatformFees: number;
320
- totalPayouts: number;
321
- pendingBalance: number;
322
- lifetimeRevenue: number;
323
- platformFeeRate: number;
324
- apiCallsLimit: number;
325
- storageLimit: string;
326
- apiCallsUsed: string;
327
- storageUsed: string;
328
- quotaResetAt?: string;
329
- taxId?: string;
330
- taxCountry?: string;
331
- taxFormType?: string;
332
- taxFormVerified: boolean;
333
- legalEntityName?: string;
334
- legalEntityType?: string;
335
- legalAddress?: Record<string, unknown>;
336
- settings?: Record<string, unknown>;
337
- createdAt: string;
338
- updatedAt: string;
339
- members?: DeveloperOrgMember[];
340
- invitations?: DeveloperOrgInvitation[];
341
- applications?: Application[];
342
- }
343
- export interface DeveloperOrgMember {
344
- id: string;
345
- organizationId: string;
346
- userId: string;
347
- email?: string;
348
- role: DeveloperOrgRole;
349
- permissions?: Record<string, unknown>;
350
- invitedBy?: string;
351
- invitationId?: string;
352
- isActive: boolean;
353
- isSuspended: boolean;
354
- suspendedAt?: string;
355
- suspendedReason?: string;
356
- joinedAt: string;
357
- lastActiveAt?: string;
358
- createdAt: string;
359
- updatedAt: string;
360
- }
361
- export interface DeveloperOrgInvitation {
362
- id: string;
363
- organizationId: string;
364
- invitedUserId?: string;
365
- invitedEmail: string;
366
- role: DeveloperOrgRole;
367
- permissions?: Record<string, unknown>;
368
- invitedBy: string;
369
- message?: string;
370
- token: string;
371
- status: InvitationStatus;
372
- expiresAt: string;
373
- respondedAt?: string;
374
- memberId?: string;
375
- createdAt: string;
376
- updatedAt: string;
377
- }
378
- export interface ApplicationAnalytics {
379
- id: string;
380
- applicationId: string;
381
- date: string;
382
- period: string;
383
- activeUsers: number;
384
- newUsers: number;
385
- apiCalls: number;
386
- errors: number;
387
- avgResponseTime?: number;
388
- sessions: number;
389
- avgSessionDuration?: number;
390
- createdAt: string;
391
- }
392
- export interface DeveloperOrgRevenueAnalytics {
393
- id: string;
394
- organizationId: string;
395
- period: string;
396
- periodStart: string;
397
- periodEnd: string;
398
- grossRevenue: number;
399
- platformFees: number;
400
- netRevenue: number;
401
- salesCount: number;
402
- refundsCount: number;
403
- refundsAmount: number;
404
- newSubscribers: number;
405
- churnedSubscribers: number;
406
- activeSubscribers: number;
407
- avgRevenuePerUser: number;
408
- topApps?: Array<{
409
- appId: string;
410
- revenue: number;
411
- }>;
412
- createdAt: string;
413
- }
414
- export type DevPortalPricingModel = "FREE" | "FREEMIUM" | "SUBSCRIPTION" | "ONE_TIME" | "USAGE_BASED" | "ENTERPRISE";
415
- export type SaleStatus = "PENDING" | "COMPLETED" | "REFUNDED" | "PARTIAL_REFUND" | "DISPUTED" | "CHARGEBACK" | "CANCELLED";
416
- export type PayoutStatus = "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED";
417
- export interface DeveloperOrgSale {
418
- id: string;
419
- organizationId: string;
420
- applicationId: string;
421
- buyerUserId: string;
422
- buyerTenantId?: string;
423
- installationScope: string;
424
- pricingModel: DevPortalPricingModel;
425
- planName?: string;
426
- grossAmount: number;
427
- platformFeeRate: number;
428
- platformFee: number;
429
- netAmount: number;
430
- currency: string;
431
- taxAmount?: number;
432
- discountAmount?: number;
433
- status: SaleStatus;
434
- createdAt: string;
435
- }
436
- export interface DeveloperOrgPayout {
437
- id: string;
438
- organizationId: string;
439
- periodStart: string;
440
- periodEnd: string;
441
- grossAmount: number;
442
- platformFees: number;
443
- netAmount: number;
444
- currency: string;
445
- status: PayoutStatus;
446
- processedAt?: string;
447
- failedAt?: string;
448
- failureReason?: string;
449
- createdAt: string;
450
- }
451
- export type AppInstallationStatus = "ACTIVE" | "SUSPENDED" | "TRIAL" | "EXPIRED" | "UNINSTALLED";
452
- export interface AppInstallation {
453
- id: string;
454
- applicationId: string;
455
- userId: string;
456
- tenantId?: string;
457
- workspaceId?: string;
458
- organizationId?: string;
459
- scope: string;
460
- installedVersion: string;
461
- status: AppInstallationStatus;
462
- grantedScopes: string[];
463
- settings?: Record<string, unknown>;
464
- installedAt: string;
465
- updatedAt: string;
466
- }
467
- export type ReviewStatus = "PENDING" | "PUBLISHED" | "HIDDEN" | "FLAGGED" | "REMOVED";
468
- export interface AppReview {
469
- id: string;
470
- applicationId: string;
471
- userId: string;
472
- rating: number;
473
- title?: string;
474
- body?: string;
475
- status: ReviewStatus;
476
- isFeatured: boolean;
477
- helpfulCount: number;
478
- notHelpfulCount: number;
479
- developerResponse?: string;
480
- developerResponseAt?: string;
481
- createdAt: string;
482
- updatedAt: string;
483
- }
484
- export type DelegationStatus = "ACTIVE" | "REVOKED" | "EXPIRED";
485
- export interface AppUserDelegation {
486
- id: string;
487
- appId: string;
488
- app?: {
489
- id: string;
490
- name: string;
491
- description?: string;
492
- type: string;
493
- status: string;
494
- };
495
- userId: string;
496
- scopes: string[];
497
- workspaceIds: string[];
498
- status: DelegationStatus;
499
- grantedAt: string;
500
- grantedBy: string;
501
- expiresAt?: string;
502
- revokedAt?: string;
503
- revokedBy?: string;
504
- }
505
- export interface GrantDelegationInput {
506
- appId: string;
507
- userId?: string;
508
- workspaceIds: string[];
509
- scopes: string[];
510
- expiresAt?: string;
511
- }
512
- export type AuthAppType = "ANALYST" | "API_INTEGRATION" | "ASSISTANT" | "AUTOMATION" | "BOT" | "CLI_TOOL" | "DESKTOP_APP" | "INTEGRATION" | "MOBILE_APP" | "SERVICE" | "SPECIALIST" | "WEB_APP" | "WIDGET" | "WORKFLOW";
513
- export type AuthAppStatus = "ACTIVE" | "INACTIVE" | "REVOKED";
514
- export interface AuthApp {
515
- id: string;
516
- name: string;
517
- description?: string;
518
- clientId: string;
519
- type: AuthAppType;
520
- status: AuthAppStatus;
521
- scopes: string[];
522
- redirectUris: string[];
523
- ownerUserId: string;
524
- tenantId: string;
525
- delegations?: AppUserDelegation[];
526
- createdAt: string;
527
- updatedAt: string;
528
- }
529
- export interface AuthAppCreateResponse {
530
- app: AuthApp;
531
- clientSecret: string;
532
- }
533
- export interface CreateAuthAppInput {
534
- name: string;
535
- description?: string;
536
- type: AuthAppType;
537
- scopes: string[];
538
- redirectUris?: string[];
539
- tenantId?: string;
540
- }
541
- export interface UpdateAuthAppInput {
542
- name?: string;
543
- description?: string;
544
- scopes?: string[];
545
- redirectUris?: string[];
546
- }
547
- export interface AuthApiKey {
548
- id: string;
549
- name: string;
550
- prefix: string;
551
- scopes: string[];
552
- appId: string;
553
- appName?: string;
554
- createdAt: string;
555
- expiresAt?: string;
556
- lastUsedAt?: string;
557
- }
558
- export interface AuthApiKeyResult {
559
- apiKey: string;
560
- apiSecret: string;
561
- keyId: string;
562
- }
563
- export interface AuthApiKeyRotateResult {
564
- apiSecret: string;
565
- }
566
- export interface GenerateAuthApiKeyInput {
567
- appId: string;
568
- name: string;
569
- scope: string[];
570
- expiresAt?: string;
571
- }
572
- export interface AuditLog {
573
- id: string;
574
- actorId: string;
575
- actorType: string;
576
- tenantId: string;
577
- action: string;
578
- resource: string;
579
- resourceId?: string;
580
- changes?: Record<string, unknown>;
581
- ipAddress?: string;
582
- userAgent?: string;
583
- createdAt: string;
584
- }
585
- export type DevportalView = "dashboard" | "organizations" | "apps" | "oauth" | "api-keys" | "webhooks" | "delegations" | "analytics" | "revenue" | "docs" | "profile" | "settings";
586
- export interface ApplicationFilter {
587
- search?: string;
588
- status?: AppStatus;
589
- visibility?: AppVisibility;
590
- appType?: AppType;
591
- organizationId?: string;
592
- isFeatured?: boolean;
593
- }
594
- export interface WebhookFilter {
595
- status?: WebhookStatus;
596
- event?: string;
597
- }
598
- export declare const WEBHOOK_EVENTS: readonly ["application.created", "application.updated", "application.deleted", "application.published", "application.unpublished", "application.suspended", "installation.created", "installation.updated", "installation.deleted", "user.created", "user.updated", "user.deleted", "workspace.created", "workspace.updated", "workspace.deleted", "project.created", "project.updated", "project.deleted", "task.created", "task.updated", "task.deleted", "task.completed", "comment.created", "comment.updated", "comment.deleted", "file.uploaded", "file.deleted", "member.added", "member.removed", "member.role_changed"];
599
- export type WebhookEvent = (typeof WEBHOOK_EVENTS)[number];
600
- export declare const AVAILABLE_SCOPES: readonly [{
601
- readonly scope: "user:read";
602
- readonly description: "Read user profile information";
603
- readonly category: "User";
604
- }, {
605
- readonly scope: "user:write";
606
- readonly description: "Modify user profile information";
607
- readonly category: "User";
608
- }, {
609
- readonly scope: "user:email";
610
- readonly description: "Access user email address";
611
- readonly category: "User";
612
- }, {
613
- readonly scope: "workspace:read";
614
- readonly description: "Read workspace information";
615
- readonly category: "Workspace";
616
- }, {
617
- readonly scope: "workspace:write";
618
- readonly description: "Create and modify workspaces";
619
- readonly category: "Workspace";
620
- }, {
621
- readonly scope: "workspace:delete";
622
- readonly description: "Delete workspaces";
623
- readonly category: "Workspace";
624
- }, {
625
- readonly scope: "workspace:members";
626
- readonly description: "Manage workspace members";
627
- readonly category: "Workspace";
628
- }, {
629
- readonly scope: "project:read";
630
- readonly description: "Read project information";
631
- readonly category: "Project";
632
- }, {
633
- readonly scope: "project:write";
634
- readonly description: "Create and modify projects";
635
- readonly category: "Project";
636
- }, {
637
- readonly scope: "project:delete";
638
- readonly description: "Delete projects";
639
- readonly category: "Project";
640
- }, {
641
- readonly scope: "task:read";
642
- readonly description: "Read tasks";
643
- readonly category: "Task";
644
- }, {
645
- readonly scope: "task:write";
646
- readonly description: "Create and modify tasks";
647
- readonly category: "Task";
648
- }, {
649
- readonly scope: "task:delete";
650
- readonly description: "Delete tasks";
651
- readonly category: "Task";
652
- }, {
653
- readonly scope: "file:read";
654
- readonly description: "Read files";
655
- readonly category: "File";
656
- }, {
657
- readonly scope: "file:write";
658
- readonly description: "Upload and modify files";
659
- readonly category: "File";
660
- }, {
661
- readonly scope: "file:delete";
662
- readonly description: "Delete files";
663
- readonly category: "File";
664
- }, {
665
- readonly scope: "comment:read";
666
- readonly description: "Read comments";
667
- readonly category: "Comment";
668
- }, {
669
- readonly scope: "comment:write";
670
- readonly description: "Create and modify comments";
671
- readonly category: "Comment";
672
- }, {
673
- readonly scope: "comment:delete";
674
- readonly description: "Delete comments";
675
- readonly category: "Comment";
676
- }, {
677
- readonly scope: "offline_access";
678
- readonly description: "Access data while user is offline";
679
- readonly category: "Access";
680
- }];
681
- export type AvailableScope = (typeof AVAILABLE_SCOPES)[number]["scope"];
682
- //# sourceMappingURL=index.d.ts.map