@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.
- package/LICENSE +4 -0
- package/README.md +52 -0
- package/dist/chunk-NEREAHJ6.js +1 -0
- package/dist/chunk-YGVAZ3D7.js +2 -0
- package/dist/core/index.cjs +2 -0
- package/dist/core/index.d.cts +52 -0
- package/dist/core/index.d.ts +52 -0
- package/dist/core/index.js +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/module-JDbvil5h.d.cts +194 -0
- package/dist/module-JDbvil5h.d.ts +194 -0
- package/dist/modules/auth/index.cjs +71 -0
- package/dist/modules/auth/index.d.cts +94 -0
- package/dist/modules/auth/index.d.ts +94 -0
- package/dist/modules/auth/index.js +71 -0
- package/dist/modules/billing/index.cjs +203 -0
- package/dist/modules/billing/index.d.cts +377 -0
- package/dist/modules/billing/index.d.ts +377 -0
- package/dist/modules/billing/index.js +203 -0
- package/dist/modules/channels/index.cjs +108 -0
- package/dist/modules/channels/index.d.cts +146 -0
- package/dist/modules/channels/index.d.ts +146 -0
- package/dist/modules/channels/index.js +108 -0
- package/dist/modules/conversations/index.cjs +61 -0
- package/dist/modules/conversations/index.d.cts +112 -0
- package/dist/modules/conversations/index.d.ts +112 -0
- package/dist/modules/conversations/index.js +61 -0
- package/dist/modules/devportal/index.cjs +216 -0
- package/dist/modules/devportal/index.d.cts +303 -0
- package/dist/modules/devportal/index.d.ts +303 -0
- package/dist/modules/devportal/index.js +216 -0
- package/dist/modules/export/index.cjs +61 -0
- package/dist/modules/export/index.d.cts +169 -0
- package/dist/modules/export/index.d.ts +169 -0
- package/dist/modules/export/index.js +61 -0
- package/dist/modules/files/index.cjs +51 -0
- package/dist/modules/files/index.d.cts +102 -0
- package/dist/modules/files/index.d.ts +102 -0
- package/dist/modules/files/index.js +51 -0
- package/dist/modules/groups/index.cjs +80 -0
- package/dist/modules/groups/index.d.cts +168 -0
- package/dist/modules/groups/index.d.ts +168 -0
- package/dist/modules/groups/index.js +80 -0
- package/dist/modules/health/index.cjs +5 -0
- package/dist/modules/health/index.d.cts +18 -0
- package/dist/modules/health/index.d.ts +18 -0
- package/dist/modules/health/index.js +5 -0
- package/dist/modules/integrations/index.cjs +65 -0
- package/dist/modules/integrations/index.d.cts +120 -0
- package/dist/modules/integrations/index.d.ts +120 -0
- package/dist/modules/integrations/index.js +65 -0
- package/dist/modules/notifications/index.cjs +53 -0
- package/dist/modules/notifications/index.d.cts +140 -0
- package/dist/modules/notifications/index.d.ts +140 -0
- package/dist/modules/notifications/index.js +53 -0
- package/dist/modules/organizations/index.cjs +72 -0
- package/dist/modules/organizations/index.d.cts +88 -0
- package/dist/modules/organizations/index.d.ts +88 -0
- package/dist/modules/organizations/index.js +72 -0
- package/dist/modules/products/index.cjs +149 -0
- package/dist/modules/products/index.d.cts +361 -0
- package/dist/modules/products/index.d.ts +361 -0
- package/dist/modules/products/index.js +149 -0
- package/dist/modules/rbac/index.cjs +55 -0
- package/dist/modules/rbac/index.d.cts +100 -0
- package/dist/modules/rbac/index.d.ts +100 -0
- package/dist/modules/rbac/index.js +55 -0
- package/dist/modules/scheduler/index.cjs +61 -0
- package/dist/modules/scheduler/index.d.cts +121 -0
- package/dist/modules/scheduler/index.d.ts +121 -0
- package/dist/modules/scheduler/index.js +61 -0
- package/dist/modules/security/index.cjs +61 -0
- package/dist/modules/security/index.d.cts +110 -0
- package/dist/modules/security/index.d.ts +110 -0
- package/dist/modules/security/index.js +61 -0
- package/dist/modules/store/index.cjs +82 -0
- package/dist/modules/store/index.d.cts +139 -0
- package/dist/modules/store/index.d.ts +139 -0
- package/dist/modules/store/index.js +82 -0
- package/dist/modules/support/index.cjs +56 -0
- package/dist/modules/support/index.d.cts +147 -0
- package/dist/modules/support/index.d.ts +147 -0
- package/dist/modules/support/index.js +56 -0
- package/dist/modules/tags/index.cjs +55 -0
- package/dist/modules/tags/index.d.cts +131 -0
- package/dist/modules/tags/index.d.ts +131 -0
- package/dist/modules/tags/index.js +55 -0
- package/dist/modules/tours/index.cjs +37 -0
- package/dist/modules/tours/index.d.cts +61 -0
- package/dist/modules/tours/index.d.ts +61 -0
- package/dist/modules/tours/index.js +37 -0
- package/dist/modules/vibecontrols/index.cjs +1081 -0
- package/dist/modules/vibecontrols/index.d.cts +1483 -0
- package/dist/modules/vibecontrols/index.d.ts +1483 -0
- package/dist/modules/vibecontrols/index.js +1081 -0
- package/dist/modules/workspaces/index.cjs +91 -0
- package/dist/modules/workspaces/index.d.cts +128 -0
- package/dist/modules/workspaces/index.d.ts +128 -0
- package/dist/modules/workspaces/index.js +91 -0
- package/package.json +117 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
|
|
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 };
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
var l=`
|
|
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
|
+
`,A=`
|
|
10
|
+
query DevportalOrganization($id: ID!) {
|
|
11
|
+
organization(id: $id) {
|
|
12
|
+
id name slug description status createdAt updatedAt
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
`,d=`
|
|
16
|
+
mutation CreateDevportalOrganization($input: CreateOrganizationInput!) {
|
|
17
|
+
createOrganization(input: $input) {
|
|
18
|
+
id name slug description status
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
`,u=`
|
|
22
|
+
mutation UpdateDevportalOrganization($id: ID!, $input: UpdateOrganizationInput!) {
|
|
23
|
+
updateOrganization(id: $id, input: $input) {
|
|
24
|
+
id name description status updatedAt
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`,I=`
|
|
28
|
+
mutation DeleteDevportalOrganization($id: ID!) {
|
|
29
|
+
deleteOrganization(id: $id) { success }
|
|
30
|
+
}
|
|
31
|
+
`,m=`
|
|
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
|
+
`,g=`
|
|
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
|
+
`,D=`
|
|
59
|
+
mutation CreateDevportalApplication($input: CreateApplicationInput!) {
|
|
60
|
+
createApplication(input: $input) {
|
|
61
|
+
id appId name description status
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`,O=`
|
|
65
|
+
mutation UpdateDevportalApplication($id: ID!, $input: UpdateApplicationInput!) {
|
|
66
|
+
updateApplication(id: $id, input: $input) {
|
|
67
|
+
id name description updatedAt
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
`,v=`
|
|
71
|
+
mutation SubmitDevportalApplicationForReview($id: ID!, $notes: String) {
|
|
72
|
+
submitApplicationForReview(id: $id, notes: $notes) {
|
|
73
|
+
id status reviewStatus submittedAt
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`,C=`
|
|
77
|
+
mutation PublishDevportalApplication($id: ID!) {
|
|
78
|
+
publishApplication(id: $id) {
|
|
79
|
+
id status publishedAt
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`,y=`
|
|
83
|
+
mutation DeleteDevportalApplication($id: ID!) {
|
|
84
|
+
deleteApplication(id: $id) { success }
|
|
85
|
+
}
|
|
86
|
+
`,E=`
|
|
87
|
+
query DevportalApplicationVersions($applicationId: ID!) {
|
|
88
|
+
applicationVersions(applicationId: $applicationId) {
|
|
89
|
+
id applicationId version status isLatest isStable releaseNotes publishedAt
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`,T=`
|
|
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
|
+
`,f=`
|
|
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
|
+
`,h=`
|
|
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
|
+
`,P=`
|
|
128
|
+
query DevportalOAuthClients($applicationId: ID!) {
|
|
129
|
+
oauthClients(applicationId: $applicationId) {
|
|
130
|
+
id applicationId clientId name redirectUris grantTypes isActive createdAt
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
`,b=`
|
|
134
|
+
mutation CreateDevportalOAuthClient($input: CreateOAuthClientInput!) {
|
|
135
|
+
createOAuthClient(input: $input) {
|
|
136
|
+
id applicationId clientId clientSecret name redirectUris grantTypes isActive createdAt
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
`,$=`
|
|
140
|
+
mutation DeleteDevportalOAuthClient($id: ID!) {
|
|
141
|
+
deleteOAuthClient(id: $id) { success }
|
|
142
|
+
}
|
|
143
|
+
`,k=`
|
|
144
|
+
query DevportalApiKeys($applicationId: ID!) {
|
|
145
|
+
apiKeys(applicationId: $applicationId) {
|
|
146
|
+
id applicationId name prefix scopes lastUsedAt isActive createdAt
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
`,S=`
|
|
150
|
+
mutation CreateDevportalApiKey($input: CreateApiKeyInput!) {
|
|
151
|
+
createApiKey(input: $input) {
|
|
152
|
+
id applicationId name prefix token scopes isActive createdAt
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
`,x=`
|
|
156
|
+
mutation RevokeDevportalApiKey($id: ID!) {
|
|
157
|
+
revokeApiKey(id: $id) { success }
|
|
158
|
+
}
|
|
159
|
+
`,L=`
|
|
160
|
+
query DevportalDelegations($applicationId: ID, $workspaceId: ID) {
|
|
161
|
+
delegations(applicationId: $applicationId, workspaceId: $workspaceId) {
|
|
162
|
+
id applicationId workspaceId scopes status expiresAt createdAt
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
`,_=`
|
|
166
|
+
mutation CreateDevportalDelegation($input: CreateDelegationInput!) {
|
|
167
|
+
createDelegation(input: $input) {
|
|
168
|
+
id applicationId workspaceId scopes status expiresAt
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
`,R=`
|
|
172
|
+
mutation RevokeDevportalDelegation($id: ID!) {
|
|
173
|
+
revokeDelegation(id: $id) { success }
|
|
174
|
+
}
|
|
175
|
+
`,r=`
|
|
176
|
+
query DevportalWebhooks($applicationId: ID!) {
|
|
177
|
+
webhooks(applicationId: $applicationId) {
|
|
178
|
+
id name url events isActive status failureCount
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
`,s=`
|
|
182
|
+
mutation CreateDevportalWebhook($input: CreateWebhookInput!) {
|
|
183
|
+
createWebhook(input: $input) {
|
|
184
|
+
id name url status isActive
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
`,c=`
|
|
188
|
+
mutation DeleteDevportalWebhook($id: ID!) {
|
|
189
|
+
deleteWebhook(id: $id) { success }
|
|
190
|
+
}
|
|
191
|
+
`,w=`
|
|
192
|
+
query DevportalOrganizationRevenue($organizationId: ID!, $period: String!) {
|
|
193
|
+
organizationRevenue(organizationId: $organizationId, period: $period) {
|
|
194
|
+
totalEarnings currency netEarnings
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
`,N=`
|
|
198
|
+
query DevportalAdminReviews($status: String) {
|
|
199
|
+
adminReviews(status: $status) {
|
|
200
|
+
edges { node { id applicationId reviewStatus reviewNotes } }
|
|
201
|
+
totalCount
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
`,W=`
|
|
205
|
+
mutation DevportalApproveApplication($id: ID!, $notes: String) {
|
|
206
|
+
approveApplication(id: $id, notes: $notes) {
|
|
207
|
+
id status reviewStatus publishedAt
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
`,q=`
|
|
211
|
+
mutation DevportalRejectApplication($id: ID!, $notes: String!) {
|
|
212
|
+
rejectApplication(id: $id, notes: $notes) {
|
|
213
|
+
id status reviewStatus reviewNotes
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
`;function z(a){let{global:i}=a.gql;return {reviews:{async list(t){return (await i.request(N,{status:t?.status})).adminReviews},async approve(t,e){return (await i.request(W,{id:t,notes:e})).approveApplication},async reject(t,e){return (await i.request(q,{id:t,notes:e})).rejectApplication}}}}function K(a){let{global:i}=a.gql;return {async list(t){return (await i.request(k,{applicationId:t})).apiKeys},async create(t){return (await i.request(S,{input:t})).createApiKey},async revoke(t){return (await i.request(x,{id:t})).revokeApiKey}}}function V(a){let{global:i}=a.gql;return {async list(t){return (await i.request(m,{organizationId:t?.organizationId,status:t?.status,limit:t?.limit,offset:t?.offset})).applications},async get(t){return (await i.request(g,{id:t})).application},async create(t){return (await i.request(D,{input:t})).createApplication},async update(t,e){return (await i.request(O,{id:t,input:e})).updateApplication},async delete(t){return (await i.request(y,{id:t})).deleteApplication},versions:{async list(t){return (await i.request(E,{applicationId:t})).applicationVersions},async create(t,e){return (await i.request(T,{applicationId:t,input:e})).createApplicationVersion}},listing:{async submit(t,e){return (await i.request(v,{id:t,notes:e})).submitApplicationForReview},async publish(t){return (await i.request(C,{id:t})).publishApplication}},logs:{async list(t,e){return (await i.request(f,{applicationId:t,limit:e?.limit,offset:e?.offset})).applicationLogs}},analytics:{async get(t,e,o){return (await i.request(h,{applicationId:t,period:e,startDate:o?.startDate,endDate:o?.endDate})).applicationAnalytics}},webhooks:{async list(t){return (await i.request(r,{applicationId:t})).webhooks},async create(t){return (await i.request(s,{input:t})).createWebhook},async delete(t){return (await i.request(c,{id:t})).deleteWebhook}}}}function j(a){let{global:i}=a.gql;return {async list(t){return (await i.request(L,{applicationId:t?.applicationId,workspaceId:t?.workspaceId})).delegations},async create(t){return (await i.request(_,{input:t})).createDelegation},async revoke(t){return (await i.request(R,{id:t})).revokeDelegation}}}function U(a){let{global:i}=a.gql;return {async list(t){return (await i.request(P,{applicationId:t})).oauthClients},async create(t){return (await i.request(b,{input:t})).createOAuthClient},async delete(t){return (await i.request($,{id:t})).deleteOAuthClient}}}function G(a){let{global:i}=a.gql;return {async list(t){return (await i.request(l,{limit:t?.limit,offset:t?.offset})).organizations},async get(t){return (await i.request(A,{id:t})).organization},async create(t){return (await i.request(d,{input:t})).createOrganization},async update(t,e){return (await i.request(u,{id:t,input:e})).updateOrganization},async delete(t){return (await i.request(I,{id:t})).deleteOrganization}}}function H(a){let{global:i}=a.gql;return {async organization(t,e){return (await i.request(w,{organizationId:t,period:e})).organizationRevenue}}}function B(a){let{global:i}=a.gql;return {async list(t){return (await i.request(r,{applicationId:t})).webhooks},async create(t){return (await i.request(s,{input:t})).createWebhook},async delete(t){return (await i.request(c,{id:t})).deleteWebhook}}}var Z={id:"devportal",version:"1.0.0",displayName:"Devportal",dependsOn:["auth"],attach(a){return {orgs:G(a),apps:V(a),oauth:U(a),apiKeys:K(a),delegations:j(a),webhooks:B(a),revenue:H(a),admin:z(a)}}},kt=Z;export{kt as default};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';var I=["password","secret","clientSecret","apiKey","token","mfaCode","accessToken","refreshToken","workspaceToken","authorization"],b=/\b(eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+)\b/g;function J(r){let e=r.replace(b,"<redacted-jwt>");for(let t of I){let o=new RegExp(`("${t}"\\s*:\\s*")[^"]*(")`,"gi");e=e.replace(o,"$1<redacted>$2");}return e}var x=class extends Error{code;cause;constructor(e,t="SDK_ERROR",o){super(J(e)),this.name="SdkError",this.code=t,this.cause=o;}};var a=class extends x{constructor(e,t){super(e,"VALIDATION_ERROR",t),this.name="ValidationError";}};var A=`
|
|
2
|
+
fragment ExportPartFields on ExportPart {
|
|
3
|
+
id jobId partNumber fileName fileId sizeBytes checksum
|
|
4
|
+
entityTypes downloadUrl downloadExpiresAt context createdAt updatedAt
|
|
5
|
+
}
|
|
6
|
+
`,c=`
|
|
7
|
+
${A}
|
|
8
|
+
fragment ExportJobFields on ExportJob {
|
|
9
|
+
id workspaceId tenantId name description status format archiveFormat
|
|
10
|
+
exportScope organizationId targetWorkspaceIds entityTypes entityFilters
|
|
11
|
+
dateRangeStart dateRangeEnd includeMedia includeMetadata chunkSizeBytes
|
|
12
|
+
templateId progress totalEntities processedEntities totalSizeBytes
|
|
13
|
+
errorMessage errorCode downloadUrl downloadExpiresAt archiveFileId
|
|
14
|
+
startedAt completedAt expiresAt context createdBy onBehalfOf updatedBy
|
|
15
|
+
createdAt updatedAt
|
|
16
|
+
parts { ...ExportPartFields }
|
|
17
|
+
}
|
|
18
|
+
`,d=`
|
|
19
|
+
fragment ExportTemplateFields on ExportTemplate {
|
|
20
|
+
id workspaceId tenantId name description entityTypes entityFilters
|
|
21
|
+
format includeMedia includeMetadata isDefault context createdBy
|
|
22
|
+
onBehalfOf updatedBy createdAt updatedAt
|
|
23
|
+
}
|
|
24
|
+
`,E=`
|
|
25
|
+
${c}
|
|
26
|
+
query ListExportJobs(
|
|
27
|
+
$filter: ExportJobFilterInput
|
|
28
|
+
$pagination: ExportPaginationInput
|
|
29
|
+
$context: ContextInput!
|
|
30
|
+
) {
|
|
31
|
+
listExportJobs(filter: $filter, pagination: $pagination, context: $context) {
|
|
32
|
+
edges { cursor node { ...ExportJobFields } }
|
|
33
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
34
|
+
totalCount
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`,i=`
|
|
38
|
+
${c}
|
|
39
|
+
query GetExportJob($id: ID!, $context: ContextInput) {
|
|
40
|
+
getExportJob(id: $id, context: $context) { ...ExportJobFields }
|
|
41
|
+
}
|
|
42
|
+
`,u=`
|
|
43
|
+
${c}
|
|
44
|
+
mutation CreateExportJob($input: CreateExportJobInput!, $context: ContextInput) {
|
|
45
|
+
createExportJob(input: $input, context: $context) { ...ExportJobFields }
|
|
46
|
+
}
|
|
47
|
+
`,l=`
|
|
48
|
+
${d}
|
|
49
|
+
query ListExportTemplates($pagination: ExportPaginationInput, $context: ContextInput!) {
|
|
50
|
+
listExportTemplates(pagination: $pagination, context: $context) {
|
|
51
|
+
edges { cursor node { ...ExportTemplateFields } }
|
|
52
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
53
|
+
totalCount
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`,m=`
|
|
57
|
+
${d}
|
|
58
|
+
query GetExportTemplate($id: ID!, $context: ContextInput) {
|
|
59
|
+
getExportTemplate(id: $id, context: $context) { ...ExportTemplateFields }
|
|
60
|
+
}
|
|
61
|
+
`;function T(r){let{workspace:e}=r.gql;return {async list(t,o,n){return (await e.request(E,{filter:o,pagination:n,context:t})).listExportJobs},async get(t,o){return (await e.request(i,{id:t,context:o})).getExportJob},async create(t,o){return (await e.request(u,{input:t,context:o})).createExportJob}}}function g(r){let{workspace:e}=r.gql;return {async list(t,o){return (await e.request(l,{pagination:o,context:t})).listExportTemplates},async get(t,o){return (await e.request(m,{id:t,context:o})).getExportTemplate}}}var C={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth"],attach(r){let{workspace:e}=r.gql;return {jobs:T(r),templates:g(r),async download(t,o){let p=(await e.request(i,{id:t,context:o})).getExportJob;if(!p)throw new a(`Export job '${t}' not found`);if(!p.downloadUrl)throw new a(`Export job '${t}' has no download URL (status=${p.status})`);return p.downloadUrl}}}},M=C;module.exports=M;
|