import { J as Json, S as SdkModule } from '../../module-Bq-w9Ws5.js'; import 'graphql-request'; interface PageInfo { hasNextPage: boolean; hasPreviousPage: boolean; startCursor?: string | null; endCursor?: string | null; } interface Edge { node: T; cursor?: string; } type OrgStatus = 'PENDING' | 'ACTIVE' | 'SUSPENDED' | 'ARCHIVED'; type DeveloperOrgTier = 'INDIVIDUAL' | 'TEAM' | 'ENTERPRISE'; interface DevportalOrganization { id: string; name: string; slug: string; description?: string | null; isVerified?: boolean | null; isCertified?: boolean | null; tier?: DeveloperOrgTier | null; totalApps?: number | null; publishedApps?: number | null; totalRevenue?: number | null; contactEmail?: string | null; supportEmail?: string | null; websiteUrl?: string | null; createdAt?: string | null; updatedAt?: string | null; } interface DevportalOrgConnection { edges: Edge[]; totalCount: number; pageInfo: PageInfo; } interface CreateOrganizationInput { name: string; slug?: string; description?: string; contactEmail?: string; supportEmail?: string; websiteUrl?: string; bannerUrl?: string; logoUrl?: string; legalEntityName?: string; legalEntityType?: string; legalAddress?: Json; metadata?: Json; } interface UpdateOrganizationInput { name?: string; description?: string; contactEmail?: string; supportEmail?: string; websiteUrl?: string; bannerUrl?: string; logoUrl?: string; metadata?: Json; } type AppStatus = 'DRAFT' | 'IN_REVIEW' | 'APPROVED' | 'REJECTED' | 'PUBLISHED' | 'SUSPENDED' | 'ARCHIVED'; type ReviewStatus = 'NOT_SUBMITTED' | 'PENDING' | 'APPROVED' | 'REJECTED'; type AppType = 'INTEGRATION' | 'AUTOMATION' | 'NODE' | 'WIDGET' | 'AGENT' | 'BUNDLE' | 'EXTENSION' | 'PROMPT' | 'TEMPLATE' | 'WORKFLOW'; type AppVisibility = 'PUBLIC' | 'PRIVATE' | 'UNLISTED'; interface DevportalApplication { id: string; appId?: string | null; name: string; description?: string | null; status: AppStatus; reviewStatus?: ReviewStatus | null; publishedAt?: string | null; installCount?: number | null; averageRating?: number | null; createdAt?: string | null; updatedAt?: string | null; } interface DevportalAppConnection { edges: Edge[]; totalCount: number; pageInfo?: PageInfo; } interface CreateApplicationInput { appType: AppType; name: string; description?: string; developerOrganizationId?: string; appId?: string; shortDescription?: string; category?: string; iconUrl?: string; slug?: string; websiteUrl?: string; documentationUrl?: string; privacyPolicyUrl?: string; termsOfServiceUrl?: string; supportUrl?: string; githubUrl?: string; keywords?: string[]; tags?: string[]; visibility?: AppVisibility; requiresApproval?: boolean; manifest?: Json; } interface UpdateApplicationInput { name?: string; description?: string; shortDescription?: string; category?: string; iconUrl?: string; websiteUrl?: string; documentationUrl?: string; privacyPolicyUrl?: string; termsOfServiceUrl?: string; supportUrl?: string; githubUrl?: string; keywords?: string[]; visibility?: AppVisibility; manifest?: Json; } interface ApplicationVersion { id: string; applicationId?: string | null; version: string; status: string; isLatest?: boolean | null; isStable?: boolean | null; releaseNotes?: string | null; publishedAt?: string | null; } interface CreateApplicationVersionInput { version: string; releaseNotes?: string; changelog?: string; packageUrl?: string; packageSize?: string; packageHash?: string; minPlatformVersion?: string; maxPlatformVersion?: string; requiredScopes?: string[]; manifest?: Json; } interface ApplicationLog { id: string; applicationId?: string | null; level: string; message: string; timestamp: string; metadata?: Json; } interface ApplicationAnalytics { date: string; period: string; activeUsers?: number | null; apiCalls?: number | null; avgResponseTime?: number | null; sessions?: number | null; } interface OAuthClient { id: string; applicationId?: string | null; clientId: string; name: string; redirectUris?: string[] | null; grantTypes?: string[] | null; isActive?: boolean | null; createdAt?: string | null; } interface CreateOAuthClientInput { applicationId: string; name: string; redirectUris?: string[]; grantTypes?: string[]; } interface OAuthClientWithSecret extends OAuthClient { clientSecret: string; } interface DevportalApiKey { id: string; applicationId?: string | null; name: string; prefix?: string | null; scopes?: string[] | null; lastUsedAt?: string | null; isActive?: boolean | null; createdAt?: string | null; } interface CreateApiKeyInput { applicationId: string; name: string; scopes?: string[]; expiresAt?: string; } interface ApiKeyWithToken extends DevportalApiKey { token: string; } interface Delegation { id: string; applicationId?: string | null; workspaceId?: string | null; scopes?: string[] | null; status: string; expiresAt?: string | null; createdAt?: string | null; } interface CreateDelegationInput { applicationId: string; workspaceId: string; scopes?: string[]; expiresAt?: string; } interface DevportalWebhook { id: string; name: string; url: string; events?: string[] | null; isActive?: boolean | null; status?: string | null; failureCount?: number | null; } interface CreateWebhookInput { applicationId: string; name: string; url: string; events?: string[]; description?: string; filters?: Json; retryEnabled?: boolean; maxRetries?: number; } interface OrganizationRevenue { totalEarnings?: number | null; netEarnings?: number | null; currency?: string | null; } interface AdminReview { id: string; applicationId: string; reviewStatus: string; reviewNotes?: string | null; } interface AdminReviewsConnection { edges: Array<{ node: AdminReview; }>; totalCount: number; } interface AdminReviewsApi { list(opts?: { status?: string; }): Promise; approve(applicationId: string, notes?: string): Promise; reject(applicationId: string, notes: string): Promise; } interface AdminApi { reviews: AdminReviewsApi; } interface ApiKeysApi { list(applicationId: string): Promise; create(input: CreateApiKeyInput): Promise; revoke(id: string): Promise<{ success: boolean; }>; } interface AppVersionsApi { list(applicationId: string): Promise; create(applicationId: string, input: CreateApplicationVersionInput): Promise; } interface AppLogsApi { list(applicationId: string, opts?: { limit?: number; offset?: number; }): Promise; } interface AppAnalyticsApi { get(applicationId: string, period: string, opts?: { startDate?: string; endDate?: string; }): Promise; } interface AppWebhooksApi { list(applicationId: string): Promise; create(input: CreateWebhookInput): Promise; delete(id: string): Promise<{ success: boolean; }>; } interface AppListingApi { submit(applicationId: string, notes?: string): Promise; publish(applicationId: string): Promise; } interface AppsApi { list(opts?: { organizationId?: string; status?: AppStatus; limit?: number; offset?: number; }): Promise; get(id: string): Promise; create(input: CreateApplicationInput): Promise; update(id: string, input: UpdateApplicationInput): Promise; delete(id: string): Promise<{ success: boolean; }>; versions: AppVersionsApi; listing: AppListingApi; logs: AppLogsApi; analytics: AppAnalyticsApi; webhooks: AppWebhooksApi; } interface DelegationsApi { list(opts?: { applicationId?: string; workspaceId?: string; }): Promise; create(input: CreateDelegationInput): Promise; revoke(id: string): Promise<{ success: boolean; }>; } interface OAuthApi { list(applicationId: string): Promise; create(input: CreateOAuthClientInput): Promise; delete(id: string): Promise<{ success: boolean; }>; } interface OrgsApi { list(opts?: { limit?: number; offset?: number; }): Promise; get(id: string): Promise; create(input: CreateOrganizationInput): Promise; update(id: string, input: UpdateOrganizationInput): Promise; delete(id: string): Promise<{ success: boolean; }>; } interface RevenueApi { organization(organizationId: string, period: string): Promise; } interface WebhooksApi { list(applicationId: string): Promise; create(input: CreateWebhookInput): Promise; delete(id: string): Promise<{ success: boolean; }>; } interface DevportalApi { orgs: OrgsApi; apps: AppsApi; oauth: OAuthApi; apiKeys: ApiKeysApi; delegations: DelegationsApi; webhooks: WebhooksApi; revenue: RevenueApi; admin: AdminApi; } declare const devportalModule: SdkModule; export { type AdminApi, type AdminReview, type AdminReviewsApi, type AdminReviewsConnection, type ApiKeyWithToken, type ApiKeysApi, type AppAnalyticsApi, type AppListingApi, type AppLogsApi, type AppStatus, type AppVersionsApi, type AppWebhooksApi, type ApplicationAnalytics, type ApplicationLog, type ApplicationVersion, type AppsApi, type CreateApiKeyInput, type CreateApplicationInput, type CreateApplicationVersionInput, type CreateDelegationInput, type CreateOAuthClientInput, type CreateOrganizationInput, type CreateWebhookInput, type Delegation, type DelegationsApi, type DevportalApi, type DevportalApiKey, type DevportalAppConnection, type DevportalApplication, type DevportalOrgConnection, type DevportalOrganization, type DevportalWebhook, type OAuthApi, type OAuthClient, type OAuthClientWithSecret, type OrgStatus, type OrganizationRevenue, type OrgsApi, type RevenueApi, type ReviewStatus, type UpdateApplicationInput, type UpdateOrganizationInput, type WebhooksApi, devportalModule as default };