@burdenoff/sdk-libs 2026.522.1 → 2026.525.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/billing/index.cjs +46 -32
- package/dist/modules/billing/index.d.cts +19 -14
- package/dist/modules/billing/index.d.ts +19 -14
- package/dist/modules/billing/index.js +46 -32
- package/dist/modules/conversations/index.cjs +318 -39
- package/dist/modules/conversations/index.d.cts +255 -12
- package/dist/modules/conversations/index.d.ts +255 -12
- package/dist/modules/conversations/index.js +315 -36
- package/dist/modules/devportal/index.cjs +63 -48
- package/dist/modules/devportal/index.d.cts +84 -15
- package/dist/modules/devportal/index.d.ts +84 -15
- package/dist/modules/devportal/index.js +63 -48
- package/dist/modules/export/index.cjs +69 -15
- package/dist/modules/export/index.d.cts +59 -1
- package/dist/modules/export/index.d.ts +59 -1
- package/dist/modules/export/index.js +69 -15
- package/dist/modules/integrations/index.cjs +132 -16
- package/dist/modules/integrations/index.d.cts +109 -1
- package/dist/modules/integrations/index.d.ts +109 -1
- package/dist/modules/integrations/index.js +132 -16
- package/dist/modules/scheduler/index.cjs +194 -18
- package/dist/modules/scheduler/index.d.cts +193 -1
- package/dist/modules/scheduler/index.d.ts +193 -1
- package/dist/modules/scheduler/index.js +194 -18
- package/dist/modules/store/index.cjs +76 -54
- package/dist/modules/store/index.d.cts +101 -54
- package/dist/modules/store/index.d.ts +101 -54
- package/dist/modules/store/index.js +70 -48
- package/dist/modules/vibecontrols/index.cjs +1247 -289
- package/dist/modules/vibecontrols/index.d.cts +1603 -5
- package/dist/modules/vibecontrols/index.d.ts +1603 -5
- package/dist/modules/vibecontrols/index.js +1253 -295
- package/dist/modules/workspaces/index.cjs +19 -15
- package/dist/modules/workspaces/index.d.cts +54 -28
- package/dist/modules/workspaces/index.d.ts +54 -28
- package/dist/modules/workspaces/index.js +19 -15
- package/package.json +3 -3
|
@@ -1,37 +1,68 @@
|
|
|
1
1
|
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
|
|
2
2
|
import 'graphql-request';
|
|
3
3
|
|
|
4
|
+
interface PageInfo {
|
|
5
|
+
hasNextPage: boolean;
|
|
6
|
+
hasPreviousPage: boolean;
|
|
7
|
+
startCursor?: string | null;
|
|
8
|
+
endCursor?: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface Edge<T> {
|
|
11
|
+
node: T;
|
|
12
|
+
cursor?: string;
|
|
13
|
+
}
|
|
4
14
|
type OrgStatus = 'PENDING' | 'ACTIVE' | 'SUSPENDED' | 'ARCHIVED';
|
|
15
|
+
type DeveloperOrgTier = 'INDIVIDUAL' | 'TEAM' | 'ENTERPRISE';
|
|
5
16
|
interface DevportalOrganization {
|
|
6
17
|
id: string;
|
|
7
18
|
name: string;
|
|
8
19
|
slug: string;
|
|
9
20
|
description?: string | null;
|
|
10
|
-
|
|
21
|
+
isVerified?: boolean | null;
|
|
22
|
+
isCertified?: boolean | null;
|
|
23
|
+
tier?: DeveloperOrgTier | null;
|
|
24
|
+
totalApps?: number | null;
|
|
25
|
+
publishedApps?: number | null;
|
|
26
|
+
totalRevenue?: number | null;
|
|
27
|
+
contactEmail?: string | null;
|
|
28
|
+
supportEmail?: string | null;
|
|
29
|
+
websiteUrl?: string | null;
|
|
11
30
|
createdAt?: string | null;
|
|
12
31
|
updatedAt?: string | null;
|
|
13
32
|
}
|
|
14
33
|
interface DevportalOrgConnection {
|
|
15
|
-
edges:
|
|
16
|
-
node: DevportalOrganization;
|
|
17
|
-
}>;
|
|
34
|
+
edges: Edge<DevportalOrganization>[];
|
|
18
35
|
totalCount: number;
|
|
19
|
-
pageInfo:
|
|
20
|
-
hasNextPage: boolean;
|
|
21
|
-
};
|
|
36
|
+
pageInfo: PageInfo;
|
|
22
37
|
}
|
|
23
38
|
interface CreateOrganizationInput {
|
|
24
39
|
name: string;
|
|
25
40
|
slug?: string;
|
|
26
41
|
description?: string;
|
|
42
|
+
contactEmail?: string;
|
|
43
|
+
supportEmail?: string;
|
|
44
|
+
websiteUrl?: string;
|
|
45
|
+
bannerUrl?: string;
|
|
46
|
+
logoUrl?: string;
|
|
47
|
+
legalEntityName?: string;
|
|
48
|
+
legalEntityType?: string;
|
|
49
|
+
legalAddress?: Json;
|
|
50
|
+
metadata?: Json;
|
|
27
51
|
}
|
|
28
52
|
interface UpdateOrganizationInput {
|
|
29
53
|
name?: string;
|
|
30
54
|
description?: string;
|
|
31
|
-
|
|
55
|
+
contactEmail?: string;
|
|
56
|
+
supportEmail?: string;
|
|
57
|
+
websiteUrl?: string;
|
|
58
|
+
bannerUrl?: string;
|
|
59
|
+
logoUrl?: string;
|
|
60
|
+
metadata?: Json;
|
|
32
61
|
}
|
|
33
62
|
type AppStatus = 'DRAFT' | 'IN_REVIEW' | 'APPROVED' | 'REJECTED' | 'PUBLISHED' | 'SUSPENDED' | 'ARCHIVED';
|
|
34
63
|
type ReviewStatus = 'NOT_SUBMITTED' | 'PENDING' | 'APPROVED' | 'REJECTED';
|
|
64
|
+
type AppType = 'INTEGRATION' | 'AUTOMATION' | 'NODE' | 'WIDGET' | 'AGENT' | 'BUNDLE' | 'EXTENSION' | 'PROMPT' | 'TEMPLATE' | 'WORKFLOW';
|
|
65
|
+
type AppVisibility = 'PUBLIC' | 'PRIVATE' | 'UNLISTED';
|
|
35
66
|
interface DevportalApplication {
|
|
36
67
|
id: string;
|
|
37
68
|
appId?: string | null;
|
|
@@ -46,19 +77,47 @@ interface DevportalApplication {
|
|
|
46
77
|
updatedAt?: string | null;
|
|
47
78
|
}
|
|
48
79
|
interface DevportalAppConnection {
|
|
49
|
-
edges:
|
|
50
|
-
node: DevportalApplication;
|
|
51
|
-
}>;
|
|
80
|
+
edges: Edge<DevportalApplication>[];
|
|
52
81
|
totalCount: number;
|
|
82
|
+
pageInfo?: PageInfo;
|
|
53
83
|
}
|
|
54
84
|
interface CreateApplicationInput {
|
|
55
|
-
|
|
85
|
+
appType: AppType;
|
|
56
86
|
name: string;
|
|
57
87
|
description?: string;
|
|
88
|
+
developerOrganizationId?: string;
|
|
89
|
+
appId?: string;
|
|
90
|
+
shortDescription?: string;
|
|
91
|
+
category?: string;
|
|
92
|
+
iconUrl?: string;
|
|
93
|
+
slug?: string;
|
|
94
|
+
websiteUrl?: string;
|
|
95
|
+
documentationUrl?: string;
|
|
96
|
+
privacyPolicyUrl?: string;
|
|
97
|
+
termsOfServiceUrl?: string;
|
|
98
|
+
supportUrl?: string;
|
|
99
|
+
githubUrl?: string;
|
|
100
|
+
keywords?: string[];
|
|
101
|
+
tags?: string[];
|
|
102
|
+
visibility?: AppVisibility;
|
|
103
|
+
requiresApproval?: boolean;
|
|
104
|
+
manifest?: Json;
|
|
58
105
|
}
|
|
59
106
|
interface UpdateApplicationInput {
|
|
60
107
|
name?: string;
|
|
61
108
|
description?: string;
|
|
109
|
+
shortDescription?: string;
|
|
110
|
+
category?: string;
|
|
111
|
+
iconUrl?: string;
|
|
112
|
+
websiteUrl?: string;
|
|
113
|
+
documentationUrl?: string;
|
|
114
|
+
privacyPolicyUrl?: string;
|
|
115
|
+
termsOfServiceUrl?: string;
|
|
116
|
+
supportUrl?: string;
|
|
117
|
+
githubUrl?: string;
|
|
118
|
+
keywords?: string[];
|
|
119
|
+
visibility?: AppVisibility;
|
|
120
|
+
manifest?: Json;
|
|
62
121
|
}
|
|
63
122
|
interface ApplicationVersion {
|
|
64
123
|
id: string;
|
|
@@ -73,7 +132,14 @@ interface ApplicationVersion {
|
|
|
73
132
|
interface CreateApplicationVersionInput {
|
|
74
133
|
version: string;
|
|
75
134
|
releaseNotes?: string;
|
|
76
|
-
|
|
135
|
+
changelog?: string;
|
|
136
|
+
packageUrl?: string;
|
|
137
|
+
packageSize?: string;
|
|
138
|
+
packageHash?: string;
|
|
139
|
+
minPlatformVersion?: string;
|
|
140
|
+
maxPlatformVersion?: string;
|
|
141
|
+
requiredScopes?: string[];
|
|
142
|
+
manifest?: Json;
|
|
77
143
|
}
|
|
78
144
|
interface ApplicationLog {
|
|
79
145
|
id: string;
|
|
@@ -158,12 +224,15 @@ interface CreateWebhookInput {
|
|
|
158
224
|
name: string;
|
|
159
225
|
url: string;
|
|
160
226
|
events?: string[];
|
|
161
|
-
|
|
227
|
+
description?: string;
|
|
228
|
+
filters?: Json;
|
|
229
|
+
retryEnabled?: boolean;
|
|
230
|
+
maxRetries?: number;
|
|
162
231
|
}
|
|
163
232
|
interface OrganizationRevenue {
|
|
164
233
|
totalEarnings?: number | null;
|
|
165
|
-
currency?: string | null;
|
|
166
234
|
netEarnings?: number | null;
|
|
235
|
+
currency?: string | null;
|
|
167
236
|
}
|
|
168
237
|
interface AdminReview {
|
|
169
238
|
id: string;
|
|
@@ -1,37 +1,68 @@
|
|
|
1
1
|
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
|
|
2
2
|
import 'graphql-request';
|
|
3
3
|
|
|
4
|
+
interface PageInfo {
|
|
5
|
+
hasNextPage: boolean;
|
|
6
|
+
hasPreviousPage: boolean;
|
|
7
|
+
startCursor?: string | null;
|
|
8
|
+
endCursor?: string | null;
|
|
9
|
+
}
|
|
10
|
+
interface Edge<T> {
|
|
11
|
+
node: T;
|
|
12
|
+
cursor?: string;
|
|
13
|
+
}
|
|
4
14
|
type OrgStatus = 'PENDING' | 'ACTIVE' | 'SUSPENDED' | 'ARCHIVED';
|
|
15
|
+
type DeveloperOrgTier = 'INDIVIDUAL' | 'TEAM' | 'ENTERPRISE';
|
|
5
16
|
interface DevportalOrganization {
|
|
6
17
|
id: string;
|
|
7
18
|
name: string;
|
|
8
19
|
slug: string;
|
|
9
20
|
description?: string | null;
|
|
10
|
-
|
|
21
|
+
isVerified?: boolean | null;
|
|
22
|
+
isCertified?: boolean | null;
|
|
23
|
+
tier?: DeveloperOrgTier | null;
|
|
24
|
+
totalApps?: number | null;
|
|
25
|
+
publishedApps?: number | null;
|
|
26
|
+
totalRevenue?: number | null;
|
|
27
|
+
contactEmail?: string | null;
|
|
28
|
+
supportEmail?: string | null;
|
|
29
|
+
websiteUrl?: string | null;
|
|
11
30
|
createdAt?: string | null;
|
|
12
31
|
updatedAt?: string | null;
|
|
13
32
|
}
|
|
14
33
|
interface DevportalOrgConnection {
|
|
15
|
-
edges:
|
|
16
|
-
node: DevportalOrganization;
|
|
17
|
-
}>;
|
|
34
|
+
edges: Edge<DevportalOrganization>[];
|
|
18
35
|
totalCount: number;
|
|
19
|
-
pageInfo:
|
|
20
|
-
hasNextPage: boolean;
|
|
21
|
-
};
|
|
36
|
+
pageInfo: PageInfo;
|
|
22
37
|
}
|
|
23
38
|
interface CreateOrganizationInput {
|
|
24
39
|
name: string;
|
|
25
40
|
slug?: string;
|
|
26
41
|
description?: string;
|
|
42
|
+
contactEmail?: string;
|
|
43
|
+
supportEmail?: string;
|
|
44
|
+
websiteUrl?: string;
|
|
45
|
+
bannerUrl?: string;
|
|
46
|
+
logoUrl?: string;
|
|
47
|
+
legalEntityName?: string;
|
|
48
|
+
legalEntityType?: string;
|
|
49
|
+
legalAddress?: Json;
|
|
50
|
+
metadata?: Json;
|
|
27
51
|
}
|
|
28
52
|
interface UpdateOrganizationInput {
|
|
29
53
|
name?: string;
|
|
30
54
|
description?: string;
|
|
31
|
-
|
|
55
|
+
contactEmail?: string;
|
|
56
|
+
supportEmail?: string;
|
|
57
|
+
websiteUrl?: string;
|
|
58
|
+
bannerUrl?: string;
|
|
59
|
+
logoUrl?: string;
|
|
60
|
+
metadata?: Json;
|
|
32
61
|
}
|
|
33
62
|
type AppStatus = 'DRAFT' | 'IN_REVIEW' | 'APPROVED' | 'REJECTED' | 'PUBLISHED' | 'SUSPENDED' | 'ARCHIVED';
|
|
34
63
|
type ReviewStatus = 'NOT_SUBMITTED' | 'PENDING' | 'APPROVED' | 'REJECTED';
|
|
64
|
+
type AppType = 'INTEGRATION' | 'AUTOMATION' | 'NODE' | 'WIDGET' | 'AGENT' | 'BUNDLE' | 'EXTENSION' | 'PROMPT' | 'TEMPLATE' | 'WORKFLOW';
|
|
65
|
+
type AppVisibility = 'PUBLIC' | 'PRIVATE' | 'UNLISTED';
|
|
35
66
|
interface DevportalApplication {
|
|
36
67
|
id: string;
|
|
37
68
|
appId?: string | null;
|
|
@@ -46,19 +77,47 @@ interface DevportalApplication {
|
|
|
46
77
|
updatedAt?: string | null;
|
|
47
78
|
}
|
|
48
79
|
interface DevportalAppConnection {
|
|
49
|
-
edges:
|
|
50
|
-
node: DevportalApplication;
|
|
51
|
-
}>;
|
|
80
|
+
edges: Edge<DevportalApplication>[];
|
|
52
81
|
totalCount: number;
|
|
82
|
+
pageInfo?: PageInfo;
|
|
53
83
|
}
|
|
54
84
|
interface CreateApplicationInput {
|
|
55
|
-
|
|
85
|
+
appType: AppType;
|
|
56
86
|
name: string;
|
|
57
87
|
description?: string;
|
|
88
|
+
developerOrganizationId?: string;
|
|
89
|
+
appId?: string;
|
|
90
|
+
shortDescription?: string;
|
|
91
|
+
category?: string;
|
|
92
|
+
iconUrl?: string;
|
|
93
|
+
slug?: string;
|
|
94
|
+
websiteUrl?: string;
|
|
95
|
+
documentationUrl?: string;
|
|
96
|
+
privacyPolicyUrl?: string;
|
|
97
|
+
termsOfServiceUrl?: string;
|
|
98
|
+
supportUrl?: string;
|
|
99
|
+
githubUrl?: string;
|
|
100
|
+
keywords?: string[];
|
|
101
|
+
tags?: string[];
|
|
102
|
+
visibility?: AppVisibility;
|
|
103
|
+
requiresApproval?: boolean;
|
|
104
|
+
manifest?: Json;
|
|
58
105
|
}
|
|
59
106
|
interface UpdateApplicationInput {
|
|
60
107
|
name?: string;
|
|
61
108
|
description?: string;
|
|
109
|
+
shortDescription?: string;
|
|
110
|
+
category?: string;
|
|
111
|
+
iconUrl?: string;
|
|
112
|
+
websiteUrl?: string;
|
|
113
|
+
documentationUrl?: string;
|
|
114
|
+
privacyPolicyUrl?: string;
|
|
115
|
+
termsOfServiceUrl?: string;
|
|
116
|
+
supportUrl?: string;
|
|
117
|
+
githubUrl?: string;
|
|
118
|
+
keywords?: string[];
|
|
119
|
+
visibility?: AppVisibility;
|
|
120
|
+
manifest?: Json;
|
|
62
121
|
}
|
|
63
122
|
interface ApplicationVersion {
|
|
64
123
|
id: string;
|
|
@@ -73,7 +132,14 @@ interface ApplicationVersion {
|
|
|
73
132
|
interface CreateApplicationVersionInput {
|
|
74
133
|
version: string;
|
|
75
134
|
releaseNotes?: string;
|
|
76
|
-
|
|
135
|
+
changelog?: string;
|
|
136
|
+
packageUrl?: string;
|
|
137
|
+
packageSize?: string;
|
|
138
|
+
packageHash?: string;
|
|
139
|
+
minPlatformVersion?: string;
|
|
140
|
+
maxPlatformVersion?: string;
|
|
141
|
+
requiredScopes?: string[];
|
|
142
|
+
manifest?: Json;
|
|
77
143
|
}
|
|
78
144
|
interface ApplicationLog {
|
|
79
145
|
id: string;
|
|
@@ -158,12 +224,15 @@ interface CreateWebhookInput {
|
|
|
158
224
|
name: string;
|
|
159
225
|
url: string;
|
|
160
226
|
events?: string[];
|
|
161
|
-
|
|
227
|
+
description?: string;
|
|
228
|
+
filters?: Json;
|
|
229
|
+
retryEnabled?: boolean;
|
|
230
|
+
maxRetries?: number;
|
|
162
231
|
}
|
|
163
232
|
interface OrganizationRevenue {
|
|
164
233
|
totalEarnings?: number | null;
|
|
165
|
-
currency?: string | null;
|
|
166
234
|
netEarnings?: number | null;
|
|
235
|
+
currency?: string | null;
|
|
167
236
|
}
|
|
168
237
|
interface AdminReview {
|
|
169
238
|
id: string;
|
|
@@ -1,37 +1,44 @@
|
|
|
1
|
-
var
|
|
1
|
+
var A=`
|
|
2
2
|
query DevportalOrganizations($limit: Int, $offset: Int) {
|
|
3
|
-
|
|
4
|
-
edges { node {
|
|
3
|
+
developerOrganizations(limit: $limit, offset: $offset) {
|
|
4
|
+
edges { node {
|
|
5
|
+
id name slug description createdAt updatedAt
|
|
6
|
+
isVerified isCertified tier
|
|
7
|
+
totalApps publishedApps totalRevenue
|
|
8
|
+
} cursor }
|
|
5
9
|
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
|
|
10
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
13
11
|
}
|
|
14
12
|
}
|
|
15
13
|
`,d=`
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
id name slug description
|
|
14
|
+
query DevportalOrganization($id: ID!) {
|
|
15
|
+
developerOrganization(id: $id) {
|
|
16
|
+
id name slug description createdAt updatedAt
|
|
17
|
+
isVerified isCertified tier
|
|
18
|
+
totalApps publishedApps totalRevenue
|
|
19
|
+
contactEmail supportEmail websiteUrl
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
`,u=`
|
|
22
|
-
mutation
|
|
23
|
-
|
|
24
|
-
id name description
|
|
23
|
+
mutation CreateDevportalOrganization($input: CreateDeveloperOrganizationInput!) {
|
|
24
|
+
createDeveloperOrganization(input: $input) {
|
|
25
|
+
id name slug description tier
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
`,I=`
|
|
28
|
-
mutation
|
|
29
|
-
|
|
29
|
+
mutation UpdateDevportalOrganization($id: ID!, $input: UpdateDeveloperOrganizationInput!) {
|
|
30
|
+
updateDeveloperOrganization(id: $id, input: $input) {
|
|
31
|
+
id name description updatedAt
|
|
32
|
+
}
|
|
30
33
|
}
|
|
31
34
|
`,m=`
|
|
35
|
+
mutation DeleteDevportalOrganization($id: ID!) {
|
|
36
|
+
deleteDeveloperOrganization(id: $id)
|
|
37
|
+
}
|
|
38
|
+
`,g=`
|
|
32
39
|
query DevportalApplications(
|
|
33
40
|
$organizationId: ID
|
|
34
|
-
$status:
|
|
41
|
+
$status: AppStatus
|
|
35
42
|
$limit: Int
|
|
36
43
|
$offset: Int
|
|
37
44
|
) {
|
|
@@ -44,11 +51,12 @@ var l=`
|
|
|
44
51
|
edges { node {
|
|
45
52
|
id appId name description status reviewStatus publishedAt
|
|
46
53
|
installCount averageRating createdAt updatedAt
|
|
47
|
-
} }
|
|
54
|
+
} cursor }
|
|
48
55
|
totalCount
|
|
56
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
49
57
|
}
|
|
50
58
|
}
|
|
51
|
-
`,
|
|
59
|
+
`,v=`
|
|
52
60
|
query DevportalApplication($id: ID!) {
|
|
53
61
|
application(id: $id) {
|
|
54
62
|
id appId name description status reviewStatus publishedAt
|
|
@@ -67,29 +75,34 @@ var l=`
|
|
|
67
75
|
id name description updatedAt
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
|
-
`,
|
|
78
|
+
`,C=`
|
|
71
79
|
mutation SubmitDevportalApplicationForReview($id: ID!, $notes: String) {
|
|
72
80
|
submitApplicationForReview(id: $id, notes: $notes) {
|
|
73
81
|
id status reviewStatus submittedAt
|
|
74
82
|
}
|
|
75
83
|
}
|
|
76
|
-
`,
|
|
84
|
+
`,y=`
|
|
77
85
|
mutation PublishDevportalApplication($id: ID!) {
|
|
78
86
|
publishApplication(id: $id) {
|
|
79
87
|
id status publishedAt
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
|
-
`,
|
|
90
|
+
`,E=`
|
|
83
91
|
mutation DeleteDevportalApplication($id: ID!) {
|
|
84
|
-
deleteApplication(id: $id)
|
|
92
|
+
deleteApplication(id: $id)
|
|
85
93
|
}
|
|
86
|
-
`,
|
|
94
|
+
`,T=`
|
|
87
95
|
query DevportalApplicationVersions($applicationId: ID!) {
|
|
88
|
-
|
|
89
|
-
|
|
96
|
+
application(id: $applicationId) {
|
|
97
|
+
versions {
|
|
98
|
+
edges { node {
|
|
99
|
+
id applicationId version status isLatest isStable releaseNotes publishedAt
|
|
100
|
+
} }
|
|
101
|
+
totalCount
|
|
102
|
+
}
|
|
90
103
|
}
|
|
91
104
|
}
|
|
92
|
-
`,
|
|
105
|
+
`,P=`
|
|
93
106
|
mutation CreateDevportalApplicationVersion(
|
|
94
107
|
$applicationId: ID!
|
|
95
108
|
$input: CreateApplicationVersionInput!
|
|
@@ -124,35 +137,35 @@ var l=`
|
|
|
124
137
|
date period activeUsers apiCalls avgResponseTime sessions
|
|
125
138
|
}
|
|
126
139
|
}
|
|
127
|
-
`,
|
|
140
|
+
`,b=`
|
|
128
141
|
query DevportalOAuthClients($applicationId: ID!) {
|
|
129
142
|
oauthClients(applicationId: $applicationId) {
|
|
130
143
|
id applicationId clientId name redirectUris grantTypes isActive createdAt
|
|
131
144
|
}
|
|
132
145
|
}
|
|
133
|
-
|
|
146
|
+
`,$=`
|
|
134
147
|
mutation CreateDevportalOAuthClient($input: CreateOAuthClientInput!) {
|
|
135
148
|
createOAuthClient(input: $input) {
|
|
136
149
|
id applicationId clientId clientSecret name redirectUris grantTypes isActive createdAt
|
|
137
150
|
}
|
|
138
151
|
}
|
|
139
|
-
|
|
152
|
+
`,k=`
|
|
140
153
|
mutation DeleteDevportalOAuthClient($id: ID!) {
|
|
141
154
|
deleteOAuthClient(id: $id) { success }
|
|
142
155
|
}
|
|
143
|
-
`,
|
|
156
|
+
`,S=`
|
|
144
157
|
query DevportalApiKeys($applicationId: ID!) {
|
|
145
158
|
apiKeys(applicationId: $applicationId) {
|
|
146
159
|
id applicationId name prefix scopes lastUsedAt isActive createdAt
|
|
147
160
|
}
|
|
148
161
|
}
|
|
149
|
-
`,
|
|
162
|
+
`,x=`
|
|
150
163
|
mutation CreateDevportalApiKey($input: CreateApiKeyInput!) {
|
|
151
164
|
createApiKey(input: $input) {
|
|
152
165
|
id applicationId name prefix token scopes isActive createdAt
|
|
153
166
|
}
|
|
154
167
|
}
|
|
155
|
-
`,
|
|
168
|
+
`,R=`
|
|
156
169
|
mutation RevokeDevportalApiKey($id: ID!) {
|
|
157
170
|
revokeApiKey(id: $id) { success }
|
|
158
171
|
}
|
|
@@ -168,49 +181,51 @@ var l=`
|
|
|
168
181
|
id applicationId workspaceId scopes status expiresAt
|
|
169
182
|
}
|
|
170
183
|
}
|
|
171
|
-
`,
|
|
184
|
+
`,w=`
|
|
172
185
|
mutation RevokeDevportalDelegation($id: ID!) {
|
|
173
186
|
revokeDelegation(id: $id) { success }
|
|
174
187
|
}
|
|
175
|
-
`,
|
|
188
|
+
`,s=`
|
|
176
189
|
query DevportalWebhooks($applicationId: ID!) {
|
|
177
190
|
webhooks(applicationId: $applicationId) {
|
|
178
191
|
id name url events isActive status failureCount
|
|
179
192
|
}
|
|
180
193
|
}
|
|
181
|
-
`,
|
|
182
|
-
mutation CreateDevportalWebhook($input: CreateWebhookInput!) {
|
|
183
|
-
createWebhook(input: $input) {
|
|
194
|
+
`,l=`
|
|
195
|
+
mutation CreateDevportalWebhook($applicationId: ID!, $input: CreateWebhookInput!) {
|
|
196
|
+
createWebhook(applicationId: $applicationId, input: $input) {
|
|
184
197
|
id name url status isActive
|
|
185
198
|
}
|
|
186
199
|
}
|
|
187
200
|
`,c=`
|
|
188
201
|
mutation DeleteDevportalWebhook($id: ID!) {
|
|
189
|
-
deleteWebhook(id: $id)
|
|
202
|
+
deleteWebhook(id: $id)
|
|
190
203
|
}
|
|
191
|
-
`,
|
|
204
|
+
`,N=`
|
|
192
205
|
query DevportalOrganizationRevenue($organizationId: ID!, $period: String!) {
|
|
193
|
-
|
|
194
|
-
|
|
206
|
+
developerOrgRevenueSummary(organizationId: $organizationId, period: $period) {
|
|
207
|
+
period
|
|
208
|
+
totalGrossRevenue totalNetRevenue
|
|
209
|
+
pendingBalance nextPayoutAmount nextPayoutDate
|
|
195
210
|
}
|
|
196
211
|
}
|
|
197
|
-
`,
|
|
212
|
+
`,W=`
|
|
198
213
|
query DevportalAdminReviews($status: String) {
|
|
199
214
|
adminReviews(status: $status) {
|
|
200
215
|
edges { node { id applicationId reviewStatus reviewNotes } }
|
|
201
216
|
totalCount
|
|
202
217
|
}
|
|
203
218
|
}
|
|
204
|
-
`,
|
|
219
|
+
`,q=`
|
|
205
220
|
mutation DevportalApproveApplication($id: ID!, $notes: String) {
|
|
206
221
|
approveApplication(id: $id, notes: $notes) {
|
|
207
222
|
id status reviewStatus publishedAt
|
|
208
223
|
}
|
|
209
224
|
}
|
|
210
|
-
`,
|
|
225
|
+
`,z=`
|
|
211
226
|
mutation DevportalRejectApplication($id: ID!, $notes: String!) {
|
|
212
227
|
rejectApplication(id: $id, notes: $notes) {
|
|
213
228
|
id status reviewStatus reviewNotes
|
|
214
229
|
}
|
|
215
230
|
}
|
|
216
|
-
`;function
|
|
231
|
+
`;function K(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(q,{id:t,notes:e})).approveApplication},async reject(t,e){return (await i.request(z,{id:t,notes:e})).rejectApplication}}}}function V(a){let{global:i}=a.gql;return {async list(t){return (await i.request(S,{applicationId:t})).apiKeys},async create(t){return (await i.request(x,{input:t})).createApiKey},async revoke(t){return (await i.request(R,{id:t})).revokeApiKey}}}function j(a){let{global:i}=a.gql;return {async list(t){return (await i.request(g,{organizationId:t?.organizationId,status:t?.status,limit:t?.limit,offset:t?.offset})).applications},async get(t){return (await i.request(v,{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 {success:(await i.request(E,{id:t})).deleteApplication}},versions:{async list(t){return (await i.request(T,{applicationId:t})).application?.versions.edges.map(o=>o.node)??[]},async create(t,e){return (await i.request(P,{applicationId:t,input:e})).createApplicationVersion}},listing:{async submit(t,e){return (await i.request(C,{id:t,notes:e})).submitApplicationForReview},async publish(t){return (await i.request(y,{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(s,{applicationId:t})).webhooks},async create(t){let{applicationId:e,...o}=t;return (await i.request(l,{applicationId:e,input:o})).createWebhook},async delete(t){return {success:(await i.request(c,{id:t})).deleteWebhook}}}}}function U(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(w,{id:t})).revokeDelegation}}}function G(a){let{global:i}=a.gql;return {async list(t){return (await i.request(b,{applicationId:t})).oauthClients},async create(t){return (await i.request($,{input:t})).createOAuthClient},async delete(t){return (await i.request(k,{id:t})).deleteOAuthClient}}}function H(a){let{global:i}=a.gql;return {async list(t){return (await i.request(A,{limit:t?.limit,offset:t?.offset})).developerOrganizations},async get(t){return (await i.request(d,{id:t})).developerOrganization},async create(t){return (await i.request(u,{input:t})).createDeveloperOrganization},async update(t,e){return (await i.request(I,{id:t,input:e})).updateDeveloperOrganization},async delete(t){return {success:(await i.request(m,{id:t})).deleteDeveloperOrganization}}}}function B(a){let{global:i}=a.gql;return {async organization(t,e){let r=(await i.request(N,{organizationId:t,period:e})).developerOrgRevenueSummary;return {totalEarnings:r.totalGrossRevenue,netEarnings:r.totalNetRevenue,currency:null}}}}function Z(a){let{global:i}=a.gql;return {async list(t){return (await i.request(s,{applicationId:t})).webhooks},async create(t){let{applicationId:e,...o}=t;return (await i.request(l,{applicationId:e,input:o})).createWebhook},async delete(t){return {success:(await i.request(c,{id:t})).deleteWebhook}}}}var Y={id:"devportal",version:"1.0.0",displayName:"Devportal",dependsOn:["auth"],attach(a){return {orgs:H(a),apps:j(a),oauth:G(a),apiKeys:V(a),delegations:U(a),webhooks:Z(a),revenue:B(a),admin:K(a)}}},kt=Y;export{kt as default};
|