@burdenoff/sdk-libs 2026.501.6

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 (103) hide show
  1. package/LICENSE +4 -0
  2. package/README.md +52 -0
  3. package/dist/chunk-NEREAHJ6.js +1 -0
  4. package/dist/chunk-YGVAZ3D7.js +2 -0
  5. package/dist/core/index.cjs +2 -0
  6. package/dist/core/index.d.cts +52 -0
  7. package/dist/core/index.d.ts +52 -0
  8. package/dist/core/index.js +1 -0
  9. package/dist/index.cjs +2 -0
  10. package/dist/index.d.cts +3 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.js +1 -0
  13. package/dist/module-JDbvil5h.d.cts +194 -0
  14. package/dist/module-JDbvil5h.d.ts +194 -0
  15. package/dist/modules/auth/index.cjs +71 -0
  16. package/dist/modules/auth/index.d.cts +94 -0
  17. package/dist/modules/auth/index.d.ts +94 -0
  18. package/dist/modules/auth/index.js +71 -0
  19. package/dist/modules/billing/index.cjs +203 -0
  20. package/dist/modules/billing/index.d.cts +377 -0
  21. package/dist/modules/billing/index.d.ts +377 -0
  22. package/dist/modules/billing/index.js +203 -0
  23. package/dist/modules/channels/index.cjs +108 -0
  24. package/dist/modules/channels/index.d.cts +146 -0
  25. package/dist/modules/channels/index.d.ts +146 -0
  26. package/dist/modules/channels/index.js +108 -0
  27. package/dist/modules/conversations/index.cjs +61 -0
  28. package/dist/modules/conversations/index.d.cts +112 -0
  29. package/dist/modules/conversations/index.d.ts +112 -0
  30. package/dist/modules/conversations/index.js +61 -0
  31. package/dist/modules/devportal/index.cjs +216 -0
  32. package/dist/modules/devportal/index.d.cts +303 -0
  33. package/dist/modules/devportal/index.d.ts +303 -0
  34. package/dist/modules/devportal/index.js +216 -0
  35. package/dist/modules/export/index.cjs +61 -0
  36. package/dist/modules/export/index.d.cts +169 -0
  37. package/dist/modules/export/index.d.ts +169 -0
  38. package/dist/modules/export/index.js +61 -0
  39. package/dist/modules/files/index.cjs +51 -0
  40. package/dist/modules/files/index.d.cts +102 -0
  41. package/dist/modules/files/index.d.ts +102 -0
  42. package/dist/modules/files/index.js +51 -0
  43. package/dist/modules/groups/index.cjs +80 -0
  44. package/dist/modules/groups/index.d.cts +168 -0
  45. package/dist/modules/groups/index.d.ts +168 -0
  46. package/dist/modules/groups/index.js +80 -0
  47. package/dist/modules/health/index.cjs +5 -0
  48. package/dist/modules/health/index.d.cts +18 -0
  49. package/dist/modules/health/index.d.ts +18 -0
  50. package/dist/modules/health/index.js +5 -0
  51. package/dist/modules/integrations/index.cjs +65 -0
  52. package/dist/modules/integrations/index.d.cts +120 -0
  53. package/dist/modules/integrations/index.d.ts +120 -0
  54. package/dist/modules/integrations/index.js +65 -0
  55. package/dist/modules/notifications/index.cjs +53 -0
  56. package/dist/modules/notifications/index.d.cts +140 -0
  57. package/dist/modules/notifications/index.d.ts +140 -0
  58. package/dist/modules/notifications/index.js +53 -0
  59. package/dist/modules/organizations/index.cjs +72 -0
  60. package/dist/modules/organizations/index.d.cts +88 -0
  61. package/dist/modules/organizations/index.d.ts +88 -0
  62. package/dist/modules/organizations/index.js +72 -0
  63. package/dist/modules/products/index.cjs +149 -0
  64. package/dist/modules/products/index.d.cts +361 -0
  65. package/dist/modules/products/index.d.ts +361 -0
  66. package/dist/modules/products/index.js +149 -0
  67. package/dist/modules/rbac/index.cjs +55 -0
  68. package/dist/modules/rbac/index.d.cts +100 -0
  69. package/dist/modules/rbac/index.d.ts +100 -0
  70. package/dist/modules/rbac/index.js +55 -0
  71. package/dist/modules/scheduler/index.cjs +61 -0
  72. package/dist/modules/scheduler/index.d.cts +121 -0
  73. package/dist/modules/scheduler/index.d.ts +121 -0
  74. package/dist/modules/scheduler/index.js +61 -0
  75. package/dist/modules/security/index.cjs +61 -0
  76. package/dist/modules/security/index.d.cts +110 -0
  77. package/dist/modules/security/index.d.ts +110 -0
  78. package/dist/modules/security/index.js +61 -0
  79. package/dist/modules/store/index.cjs +82 -0
  80. package/dist/modules/store/index.d.cts +139 -0
  81. package/dist/modules/store/index.d.ts +139 -0
  82. package/dist/modules/store/index.js +82 -0
  83. package/dist/modules/support/index.cjs +56 -0
  84. package/dist/modules/support/index.d.cts +147 -0
  85. package/dist/modules/support/index.d.ts +147 -0
  86. package/dist/modules/support/index.js +56 -0
  87. package/dist/modules/tags/index.cjs +55 -0
  88. package/dist/modules/tags/index.d.cts +131 -0
  89. package/dist/modules/tags/index.d.ts +131 -0
  90. package/dist/modules/tags/index.js +55 -0
  91. package/dist/modules/tours/index.cjs +37 -0
  92. package/dist/modules/tours/index.d.cts +61 -0
  93. package/dist/modules/tours/index.d.ts +61 -0
  94. package/dist/modules/tours/index.js +37 -0
  95. package/dist/modules/vibecontrols/index.cjs +1081 -0
  96. package/dist/modules/vibecontrols/index.d.cts +1483 -0
  97. package/dist/modules/vibecontrols/index.d.ts +1483 -0
  98. package/dist/modules/vibecontrols/index.js +1081 -0
  99. package/dist/modules/workspaces/index.cjs +91 -0
  100. package/dist/modules/workspaces/index.d.cts +128 -0
  101. package/dist/modules/workspaces/index.d.ts +128 -0
  102. package/dist/modules/workspaces/index.js +91 -0
  103. package/package.json +117 -0
@@ -0,0 +1,61 @@
1
+ var s=`
2
+ fragment ConversationFields on Conversation {
3
+ id title type description avatarUrl settings unreadCount createdAt updatedAt
4
+ }
5
+ `,r=`
6
+ fragment MessageFields on Message {
7
+ id conversationId senderId content type metadata createdAt updatedAt
8
+ }
9
+ `,d=`
10
+ fragment ConversationSettingsFields on ConversationSettings {
11
+ conversationId notificationsEnabled muted pinned metadata
12
+ }
13
+ `,C=`
14
+ ${s}
15
+ query Conversations($filter: ConversationFilterInput, $first: Int, $after: String) {
16
+ conversations(filter: $filter, first: $first, after: $after) {
17
+ edges { cursor node { ...ConversationFields } }
18
+ pageInfo { hasNextPage endCursor }
19
+ }
20
+ }
21
+ `,p=`
22
+ ${s}
23
+ query Conversation($id: ID!) {
24
+ conversation(id: $id) { ...ConversationFields }
25
+ }
26
+ `,v=`
27
+ ${s}
28
+ mutation CreateConversation($input: CreateConversationInput!) {
29
+ createConversation(input: $input) { ...ConversationFields }
30
+ }
31
+ `,u=`
32
+ ${s}
33
+ mutation UpdateConversation($input: UpdateConversationInput!) {
34
+ updateConversation(input: $input) { ...ConversationFields }
35
+ }
36
+ `,c=`
37
+ mutation DeleteConversation($id: ID!) { deleteConversation(id: $id) }
38
+ `,S=`
39
+ ${r}
40
+ query Messages($conversationId: ID!, $first: Int, $after: String) {
41
+ messages(conversationId: $conversationId, first: $first, after: $after) {
42
+ edges { cursor node { ...MessageFields } }
43
+ pageInfo { hasNextPage endCursor }
44
+ }
45
+ }
46
+ `,g=`
47
+ ${r}
48
+ mutation SendMessage($input: SendMessageInput!) {
49
+ sendMessage(input: $input) { ...MessageFields }
50
+ }
51
+ `,I=`
52
+ ${d}
53
+ query ConversationSettings($conversationId: ID!) {
54
+ conversationSettings(conversationId: $conversationId) { ...ConversationSettingsFields }
55
+ }
56
+ `,E=`
57
+ ${d}
58
+ mutation UpdateConversationSettings($input: UpdateConversationSettingsInput!) {
59
+ updateConversationSettings(input: $input) { ...ConversationSettingsFields }
60
+ }
61
+ `;function l(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(C,{filter:t,first:e?.first,after:e?.after})).conversations},async get(t){return (await n.request(p,{id:t})).conversation},async create(t){return (await n.request(v,{input:t})).createConversation},async update(t){return (await n.request(u,{input:t})).updateConversation},async delete(t){return (await n.request(c,{id:t})).deleteConversation},messages:{async list(t,e){return (await n.request(S,{conversationId:t,first:e?.first,after:e?.after})).messages},async send(t){return (await n.request(g,{input:t})).sendMessage}},settings:{async get(t){return (await n.request(I,{conversationId:t})).conversationSettings},async set(t){return (await n.request(E,{input:t})).updateConversationSettings}}}}var A={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth"],attach(o){return l(o)}},y=A;export{y as default};
@@ -0,0 +1,216 @@
1
+ 'use strict';var c=`
2
+ query DevportalOrganizations($limit: Int, $offset: Int) {
3
+ organizations(limit: $limit, offset: $offset) {
4
+ edges { node { id name slug description status createdAt updatedAt } }
5
+ totalCount
6
+ pageInfo { hasNextPage }
7
+ }
8
+ }
9
+ `,l=`
10
+ query DevportalOrganization($id: ID!) {
11
+ organization(id: $id) {
12
+ id name slug description status createdAt updatedAt
13
+ }
14
+ }
15
+ `,A=`
16
+ mutation CreateDevportalOrganization($input: CreateOrganizationInput!) {
17
+ createOrganization(input: $input) {
18
+ id name slug description status
19
+ }
20
+ }
21
+ `,d=`
22
+ mutation UpdateDevportalOrganization($id: ID!, $input: UpdateOrganizationInput!) {
23
+ updateOrganization(id: $id, input: $input) {
24
+ id name description status updatedAt
25
+ }
26
+ }
27
+ `,u=`
28
+ mutation DeleteDevportalOrganization($id: ID!) {
29
+ deleteOrganization(id: $id) { success }
30
+ }
31
+ `,I=`
32
+ query DevportalApplications(
33
+ $organizationId: ID
34
+ $status: String
35
+ $limit: Int
36
+ $offset: Int
37
+ ) {
38
+ applications(
39
+ organizationId: $organizationId
40
+ status: $status
41
+ limit: $limit
42
+ offset: $offset
43
+ ) {
44
+ edges { node {
45
+ id appId name description status reviewStatus publishedAt
46
+ installCount averageRating createdAt updatedAt
47
+ } }
48
+ totalCount
49
+ }
50
+ }
51
+ `,m=`
52
+ query DevportalApplication($id: ID!) {
53
+ application(id: $id) {
54
+ id appId name description status reviewStatus publishedAt
55
+ installCount averageRating createdAt updatedAt
56
+ }
57
+ }
58
+ `,g=`
59
+ mutation CreateDevportalApplication($input: CreateApplicationInput!) {
60
+ createApplication(input: $input) {
61
+ id appId name description status
62
+ }
63
+ }
64
+ `,D=`
65
+ mutation UpdateDevportalApplication($id: ID!, $input: UpdateApplicationInput!) {
66
+ updateApplication(id: $id, input: $input) {
67
+ id name description updatedAt
68
+ }
69
+ }
70
+ `,O=`
71
+ mutation SubmitDevportalApplicationForReview($id: ID!, $notes: String) {
72
+ submitApplicationForReview(id: $id, notes: $notes) {
73
+ id status reviewStatus submittedAt
74
+ }
75
+ }
76
+ `,v=`
77
+ mutation PublishDevportalApplication($id: ID!) {
78
+ publishApplication(id: $id) {
79
+ id status publishedAt
80
+ }
81
+ }
82
+ `,C=`
83
+ mutation DeleteDevportalApplication($id: ID!) {
84
+ deleteApplication(id: $id) { success }
85
+ }
86
+ `,y=`
87
+ query DevportalApplicationVersions($applicationId: ID!) {
88
+ applicationVersions(applicationId: $applicationId) {
89
+ id applicationId version status isLatest isStable releaseNotes publishedAt
90
+ }
91
+ }
92
+ `,E=`
93
+ mutation CreateDevportalApplicationVersion(
94
+ $applicationId: ID!
95
+ $input: CreateApplicationVersionInput!
96
+ ) {
97
+ createApplicationVersion(applicationId: $applicationId, input: $input) {
98
+ id applicationId version status publishedAt
99
+ }
100
+ }
101
+ `,T=`
102
+ query DevportalApplicationLogs(
103
+ $applicationId: ID!
104
+ $limit: Int
105
+ $offset: Int
106
+ ) {
107
+ applicationLogs(applicationId: $applicationId, limit: $limit, offset: $offset) {
108
+ id applicationId level message timestamp metadata
109
+ }
110
+ }
111
+ `,f=`
112
+ query DevportalApplicationAnalytics(
113
+ $applicationId: ID!
114
+ $period: String!
115
+ $startDate: DateTime
116
+ $endDate: DateTime
117
+ ) {
118
+ applicationAnalytics(
119
+ applicationId: $applicationId
120
+ period: $period
121
+ startDate: $startDate
122
+ endDate: $endDate
123
+ ) {
124
+ date period activeUsers apiCalls avgResponseTime sessions
125
+ }
126
+ }
127
+ `,h=`
128
+ query DevportalOAuthClients($applicationId: ID!) {
129
+ oauthClients(applicationId: $applicationId) {
130
+ id applicationId clientId name redirectUris grantTypes isActive createdAt
131
+ }
132
+ }
133
+ `,P=`
134
+ mutation CreateDevportalOAuthClient($input: CreateOAuthClientInput!) {
135
+ createOAuthClient(input: $input) {
136
+ id applicationId clientId clientSecret name redirectUris grantTypes isActive createdAt
137
+ }
138
+ }
139
+ `,b=`
140
+ mutation DeleteDevportalOAuthClient($id: ID!) {
141
+ deleteOAuthClient(id: $id) { success }
142
+ }
143
+ `,$=`
144
+ query DevportalApiKeys($applicationId: ID!) {
145
+ apiKeys(applicationId: $applicationId) {
146
+ id applicationId name prefix scopes lastUsedAt isActive createdAt
147
+ }
148
+ }
149
+ `,k=`
150
+ mutation CreateDevportalApiKey($input: CreateApiKeyInput!) {
151
+ createApiKey(input: $input) {
152
+ id applicationId name prefix token scopes isActive createdAt
153
+ }
154
+ }
155
+ `,S=`
156
+ mutation RevokeDevportalApiKey($id: ID!) {
157
+ revokeApiKey(id: $id) { success }
158
+ }
159
+ `,x=`
160
+ query DevportalDelegations($applicationId: ID, $workspaceId: ID) {
161
+ delegations(applicationId: $applicationId, workspaceId: $workspaceId) {
162
+ id applicationId workspaceId scopes status expiresAt createdAt
163
+ }
164
+ }
165
+ `,L=`
166
+ mutation CreateDevportalDelegation($input: CreateDelegationInput!) {
167
+ createDelegation(input: $input) {
168
+ id applicationId workspaceId scopes status expiresAt
169
+ }
170
+ }
171
+ `,_=`
172
+ mutation RevokeDevportalDelegation($id: ID!) {
173
+ revokeDelegation(id: $id) { success }
174
+ }
175
+ `,p=`
176
+ query DevportalWebhooks($applicationId: ID!) {
177
+ webhooks(applicationId: $applicationId) {
178
+ id name url events isActive status failureCount
179
+ }
180
+ }
181
+ `,r=`
182
+ mutation CreateDevportalWebhook($input: CreateWebhookInput!) {
183
+ createWebhook(input: $input) {
184
+ id name url status isActive
185
+ }
186
+ }
187
+ `,s=`
188
+ mutation DeleteDevportalWebhook($id: ID!) {
189
+ deleteWebhook(id: $id) { success }
190
+ }
191
+ `,R=`
192
+ query DevportalOrganizationRevenue($organizationId: ID!, $period: String!) {
193
+ organizationRevenue(organizationId: $organizationId, period: $period) {
194
+ totalEarnings currency netEarnings
195
+ }
196
+ }
197
+ `,w=`
198
+ query DevportalAdminReviews($status: String) {
199
+ adminReviews(status: $status) {
200
+ edges { node { id applicationId reviewStatus reviewNotes } }
201
+ totalCount
202
+ }
203
+ }
204
+ `,N=`
205
+ mutation DevportalApproveApplication($id: ID!, $notes: String) {
206
+ approveApplication(id: $id, notes: $notes) {
207
+ id status reviewStatus publishedAt
208
+ }
209
+ }
210
+ `,W=`
211
+ mutation DevportalRejectApplication($id: ID!, $notes: String!) {
212
+ rejectApplication(id: $id, notes: $notes) {
213
+ id status reviewStatus reviewNotes
214
+ }
215
+ }
216
+ `;function q(a){let{global:i}=a.gql;return {reviews:{async list(t){return (await i.request(w,{status:t?.status})).adminReviews},async approve(t,e){return (await i.request(N,{id:t,notes:e})).approveApplication},async reject(t,e){return (await i.request(W,{id:t,notes:e})).rejectApplication}}}}function z(a){let{global:i}=a.gql;return {async list(t){return (await i.request($,{applicationId:t})).apiKeys},async create(t){return (await i.request(k,{input:t})).createApiKey},async revoke(t){return (await i.request(S,{id:t})).revokeApiKey}}}function K(a){let{global:i}=a.gql;return {async list(t){return (await i.request(I,{organizationId:t?.organizationId,status:t?.status,limit:t?.limit,offset:t?.offset})).applications},async get(t){return (await i.request(m,{id:t})).application},async create(t){return (await i.request(g,{input:t})).createApplication},async update(t,e){return (await i.request(D,{id:t,input:e})).updateApplication},async delete(t){return (await i.request(C,{id:t})).deleteApplication},versions:{async list(t){return (await i.request(y,{applicationId:t})).applicationVersions},async create(t,e){return (await i.request(E,{applicationId:t,input:e})).createApplicationVersion}},listing:{async submit(t,e){return (await i.request(O,{id:t,notes:e})).submitApplicationForReview},async publish(t){return (await i.request(v,{id:t})).publishApplication}},logs:{async list(t,e){return (await i.request(T,{applicationId:t,limit:e?.limit,offset:e?.offset})).applicationLogs}},analytics:{async get(t,e,o){return (await i.request(f,{applicationId:t,period:e,startDate:o?.startDate,endDate:o?.endDate})).applicationAnalytics}},webhooks:{async list(t){return (await i.request(p,{applicationId:t})).webhooks},async create(t){return (await i.request(r,{input:t})).createWebhook},async delete(t){return (await i.request(s,{id:t})).deleteWebhook}}}}function V(a){let{global:i}=a.gql;return {async list(t){return (await i.request(x,{applicationId:t?.applicationId,workspaceId:t?.workspaceId})).delegations},async create(t){return (await i.request(L,{input:t})).createDelegation},async revoke(t){return (await i.request(_,{id:t})).revokeDelegation}}}function j(a){let{global:i}=a.gql;return {async list(t){return (await i.request(h,{applicationId:t})).oauthClients},async create(t){return (await i.request(P,{input:t})).createOAuthClient},async delete(t){return (await i.request(b,{id:t})).deleteOAuthClient}}}function U(a){let{global:i}=a.gql;return {async list(t){return (await i.request(c,{limit:t?.limit,offset:t?.offset})).organizations},async get(t){return (await i.request(l,{id:t})).organization},async create(t){return (await i.request(A,{input:t})).createOrganization},async update(t,e){return (await i.request(d,{id:t,input:e})).updateOrganization},async delete(t){return (await i.request(u,{id:t})).deleteOrganization}}}function G(a){let{global:i}=a.gql;return {async organization(t,e){return (await i.request(R,{organizationId:t,period:e})).organizationRevenue}}}function H(a){let{global:i}=a.gql;return {async list(t){return (await i.request(p,{applicationId:t})).webhooks},async create(t){return (await i.request(r,{input:t})).createWebhook},async delete(t){return (await i.request(s,{id:t})).deleteWebhook}}}var B={id:"devportal",version:"1.0.0",displayName:"Devportal",dependsOn:["auth"],attach(a){return {orgs:U(a),apps:K(a),oauth:j(a),apiKeys:z(a),delegations:V(a),webhooks:H(a),revenue:G(a),admin:q(a)}}},$t=B;module.exports=$t;
@@ -0,0 +1,303 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type OrgStatus = 'PENDING' | 'ACTIVE' | 'SUSPENDED' | 'ARCHIVED';
5
+ interface DevportalOrganization {
6
+ id: string;
7
+ name: string;
8
+ slug: string;
9
+ description?: string | null;
10
+ status: OrgStatus;
11
+ createdAt?: string | null;
12
+ updatedAt?: string | null;
13
+ }
14
+ interface DevportalOrgConnection {
15
+ edges: Array<{
16
+ node: DevportalOrganization;
17
+ }>;
18
+ totalCount: number;
19
+ pageInfo: {
20
+ hasNextPage: boolean;
21
+ };
22
+ }
23
+ interface CreateOrganizationInput {
24
+ name: string;
25
+ slug?: string;
26
+ description?: string;
27
+ }
28
+ interface UpdateOrganizationInput {
29
+ name?: string;
30
+ description?: string;
31
+ status?: OrgStatus;
32
+ }
33
+ type AppStatus = 'DRAFT' | 'IN_REVIEW' | 'APPROVED' | 'REJECTED' | 'PUBLISHED' | 'SUSPENDED' | 'ARCHIVED';
34
+ type ReviewStatus = 'NOT_SUBMITTED' | 'PENDING' | 'APPROVED' | 'REJECTED';
35
+ interface DevportalApplication {
36
+ id: string;
37
+ appId?: string | null;
38
+ name: string;
39
+ description?: string | null;
40
+ status: AppStatus;
41
+ reviewStatus?: ReviewStatus | null;
42
+ publishedAt?: string | null;
43
+ installCount?: number | null;
44
+ averageRating?: number | null;
45
+ createdAt?: string | null;
46
+ updatedAt?: string | null;
47
+ }
48
+ interface DevportalAppConnection {
49
+ edges: Array<{
50
+ node: DevportalApplication;
51
+ }>;
52
+ totalCount: number;
53
+ }
54
+ interface CreateApplicationInput {
55
+ organizationId: string;
56
+ name: string;
57
+ description?: string;
58
+ }
59
+ interface UpdateApplicationInput {
60
+ name?: string;
61
+ description?: string;
62
+ }
63
+ interface ApplicationVersion {
64
+ id: string;
65
+ applicationId?: string | null;
66
+ version: string;
67
+ status: string;
68
+ isLatest?: boolean | null;
69
+ isStable?: boolean | null;
70
+ releaseNotes?: string | null;
71
+ publishedAt?: string | null;
72
+ }
73
+ interface CreateApplicationVersionInput {
74
+ version: string;
75
+ releaseNotes?: string;
76
+ isStable?: boolean;
77
+ }
78
+ interface ApplicationLog {
79
+ id: string;
80
+ applicationId?: string | null;
81
+ level: string;
82
+ message: string;
83
+ timestamp: string;
84
+ metadata?: Json;
85
+ }
86
+ interface ApplicationAnalytics {
87
+ date: string;
88
+ period: string;
89
+ activeUsers?: number | null;
90
+ apiCalls?: number | null;
91
+ avgResponseTime?: number | null;
92
+ sessions?: number | null;
93
+ }
94
+ interface OAuthClient {
95
+ id: string;
96
+ applicationId?: string | null;
97
+ clientId: string;
98
+ name: string;
99
+ redirectUris?: string[] | null;
100
+ grantTypes?: string[] | null;
101
+ isActive?: boolean | null;
102
+ createdAt?: string | null;
103
+ }
104
+ interface CreateOAuthClientInput {
105
+ applicationId: string;
106
+ name: string;
107
+ redirectUris?: string[];
108
+ grantTypes?: string[];
109
+ }
110
+ interface OAuthClientWithSecret extends OAuthClient {
111
+ clientSecret: string;
112
+ }
113
+ interface DevportalApiKey {
114
+ id: string;
115
+ applicationId?: string | null;
116
+ name: string;
117
+ prefix?: string | null;
118
+ scopes?: string[] | null;
119
+ lastUsedAt?: string | null;
120
+ isActive?: boolean | null;
121
+ createdAt?: string | null;
122
+ }
123
+ interface CreateApiKeyInput {
124
+ applicationId: string;
125
+ name: string;
126
+ scopes?: string[];
127
+ expiresAt?: string;
128
+ }
129
+ interface ApiKeyWithToken extends DevportalApiKey {
130
+ token: string;
131
+ }
132
+ interface Delegation {
133
+ id: string;
134
+ applicationId?: string | null;
135
+ workspaceId?: string | null;
136
+ scopes?: string[] | null;
137
+ status: string;
138
+ expiresAt?: string | null;
139
+ createdAt?: string | null;
140
+ }
141
+ interface CreateDelegationInput {
142
+ applicationId: string;
143
+ workspaceId: string;
144
+ scopes?: string[];
145
+ expiresAt?: string;
146
+ }
147
+ interface DevportalWebhook {
148
+ id: string;
149
+ name: string;
150
+ url: string;
151
+ events?: string[] | null;
152
+ isActive?: boolean | null;
153
+ status?: string | null;
154
+ failureCount?: number | null;
155
+ }
156
+ interface CreateWebhookInput {
157
+ applicationId: string;
158
+ name: string;
159
+ url: string;
160
+ events?: string[];
161
+ secret?: string;
162
+ }
163
+ interface OrganizationRevenue {
164
+ totalEarnings?: number | null;
165
+ currency?: string | null;
166
+ netEarnings?: number | null;
167
+ }
168
+ interface AdminReview {
169
+ id: string;
170
+ applicationId: string;
171
+ reviewStatus: string;
172
+ reviewNotes?: string | null;
173
+ }
174
+ interface AdminReviewsConnection {
175
+ edges: Array<{
176
+ node: AdminReview;
177
+ }>;
178
+ totalCount: number;
179
+ }
180
+
181
+ interface AdminReviewsApi {
182
+ list(opts?: {
183
+ status?: string;
184
+ }): Promise<AdminReviewsConnection>;
185
+ approve(applicationId: string, notes?: string): Promise<DevportalApplication>;
186
+ reject(applicationId: string, notes: string): Promise<DevportalApplication>;
187
+ }
188
+ interface AdminApi {
189
+ reviews: AdminReviewsApi;
190
+ }
191
+
192
+ interface ApiKeysApi {
193
+ list(applicationId: string): Promise<DevportalApiKey[]>;
194
+ create(input: CreateApiKeyInput): Promise<ApiKeyWithToken>;
195
+ revoke(id: string): Promise<{
196
+ success: boolean;
197
+ }>;
198
+ }
199
+
200
+ interface AppVersionsApi {
201
+ list(applicationId: string): Promise<ApplicationVersion[]>;
202
+ create(applicationId: string, input: CreateApplicationVersionInput): Promise<ApplicationVersion>;
203
+ }
204
+ interface AppLogsApi {
205
+ list(applicationId: string, opts?: {
206
+ limit?: number;
207
+ offset?: number;
208
+ }): Promise<ApplicationLog[]>;
209
+ }
210
+ interface AppAnalyticsApi {
211
+ get(applicationId: string, period: string, opts?: {
212
+ startDate?: string;
213
+ endDate?: string;
214
+ }): Promise<ApplicationAnalytics[]>;
215
+ }
216
+ interface AppWebhooksApi {
217
+ list(applicationId: string): Promise<DevportalWebhook[]>;
218
+ create(input: CreateWebhookInput): Promise<DevportalWebhook>;
219
+ delete(id: string): Promise<{
220
+ success: boolean;
221
+ }>;
222
+ }
223
+ interface AppListingApi {
224
+ submit(applicationId: string, notes?: string): Promise<DevportalApplication>;
225
+ publish(applicationId: string): Promise<DevportalApplication>;
226
+ }
227
+ interface AppsApi {
228
+ list(opts?: {
229
+ organizationId?: string;
230
+ status?: AppStatus;
231
+ limit?: number;
232
+ offset?: number;
233
+ }): Promise<DevportalAppConnection>;
234
+ get(id: string): Promise<DevportalApplication | null>;
235
+ create(input: CreateApplicationInput): Promise<DevportalApplication>;
236
+ update(id: string, input: UpdateApplicationInput): Promise<DevportalApplication>;
237
+ delete(id: string): Promise<{
238
+ success: boolean;
239
+ }>;
240
+ versions: AppVersionsApi;
241
+ listing: AppListingApi;
242
+ logs: AppLogsApi;
243
+ analytics: AppAnalyticsApi;
244
+ webhooks: AppWebhooksApi;
245
+ }
246
+
247
+ interface DelegationsApi {
248
+ list(opts?: {
249
+ applicationId?: string;
250
+ workspaceId?: string;
251
+ }): Promise<Delegation[]>;
252
+ create(input: CreateDelegationInput): Promise<Delegation>;
253
+ revoke(id: string): Promise<{
254
+ success: boolean;
255
+ }>;
256
+ }
257
+
258
+ interface OAuthApi {
259
+ list(applicationId: string): Promise<OAuthClient[]>;
260
+ create(input: CreateOAuthClientInput): Promise<OAuthClientWithSecret>;
261
+ delete(id: string): Promise<{
262
+ success: boolean;
263
+ }>;
264
+ }
265
+
266
+ interface OrgsApi {
267
+ list(opts?: {
268
+ limit?: number;
269
+ offset?: number;
270
+ }): Promise<DevportalOrgConnection>;
271
+ get(id: string): Promise<DevportalOrganization | null>;
272
+ create(input: CreateOrganizationInput): Promise<DevportalOrganization>;
273
+ update(id: string, input: UpdateOrganizationInput): Promise<DevportalOrganization>;
274
+ delete(id: string): Promise<{
275
+ success: boolean;
276
+ }>;
277
+ }
278
+
279
+ interface RevenueApi {
280
+ organization(organizationId: string, period: string): Promise<OrganizationRevenue>;
281
+ }
282
+
283
+ interface WebhooksApi {
284
+ list(applicationId: string): Promise<DevportalWebhook[]>;
285
+ create(input: CreateWebhookInput): Promise<DevportalWebhook>;
286
+ delete(id: string): Promise<{
287
+ success: boolean;
288
+ }>;
289
+ }
290
+
291
+ interface DevportalApi {
292
+ orgs: OrgsApi;
293
+ apps: AppsApi;
294
+ oauth: OAuthApi;
295
+ apiKeys: ApiKeysApi;
296
+ delegations: DelegationsApi;
297
+ webhooks: WebhooksApi;
298
+ revenue: RevenueApi;
299
+ admin: AdminApi;
300
+ }
301
+ declare const devportalModule: SdkModule<DevportalApi>;
302
+
303
+ 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 };