@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,129 +1,176 @@
|
|
|
1
1
|
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
|
|
2
2
|
import 'graphql-request';
|
|
3
3
|
|
|
4
|
-
type StoreProductType = 'APP' | 'INTEGRATION' | 'TEMPLATE' | 'EXTENSION';
|
|
4
|
+
type StoreProductType = 'APP' | 'INTEGRATION' | 'TEMPLATE' | 'EXTENSION' | 'NODE' | 'WIDGET' | 'AGENT' | 'BUNDLE' | 'PRODUCT' | 'PROMPT' | 'WORKFLOW' | 'THEME';
|
|
5
5
|
interface StoreProduct {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
|
+
slug?: string | null;
|
|
8
9
|
description?: string | null;
|
|
9
10
|
price?: number | null;
|
|
10
11
|
currency?: string | null;
|
|
11
12
|
type: StoreProductType;
|
|
12
13
|
status?: string | null;
|
|
13
|
-
|
|
14
|
+
downloads?: number | null;
|
|
14
15
|
publisher?: {
|
|
16
|
+
id: string;
|
|
15
17
|
name: string;
|
|
18
|
+
isVerified?: boolean | null;
|
|
16
19
|
} | null;
|
|
17
20
|
}
|
|
18
|
-
interface
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
publisherId?: string;
|
|
22
|
-
minPrice?: number;
|
|
23
|
-
maxPrice?: number;
|
|
24
|
-
currency?: string;
|
|
21
|
+
interface StoreSearchOptions {
|
|
22
|
+
limit?: number;
|
|
23
|
+
offset?: number;
|
|
25
24
|
}
|
|
26
25
|
interface CartItem {
|
|
27
26
|
id: string;
|
|
28
27
|
productId: string;
|
|
28
|
+
productName: string;
|
|
29
29
|
quantity: number;
|
|
30
|
-
|
|
30
|
+
unitPrice: number;
|
|
31
|
+
subtotal: number;
|
|
32
|
+
variantId?: string | null;
|
|
33
|
+
workspaceId?: string | null;
|
|
31
34
|
}
|
|
32
35
|
interface Cart {
|
|
33
36
|
id: string;
|
|
34
|
-
currency
|
|
35
|
-
subtotal
|
|
36
|
-
total
|
|
37
|
+
currency: string;
|
|
38
|
+
subtotal: number;
|
|
39
|
+
total: number;
|
|
37
40
|
itemCount: number;
|
|
38
41
|
isEmpty: boolean;
|
|
39
42
|
items: CartItem[];
|
|
40
43
|
}
|
|
44
|
+
interface CartError {
|
|
45
|
+
code: string;
|
|
46
|
+
field?: string | null;
|
|
47
|
+
message: string;
|
|
48
|
+
}
|
|
49
|
+
interface CartPayload {
|
|
50
|
+
cart?: Cart | null;
|
|
51
|
+
errors?: CartError[] | null;
|
|
52
|
+
}
|
|
41
53
|
interface AddToCartInput {
|
|
42
54
|
productId: string;
|
|
43
55
|
quantity?: number;
|
|
44
|
-
|
|
56
|
+
variantId?: string;
|
|
57
|
+
workspaceId?: string;
|
|
45
58
|
}
|
|
46
59
|
type OrderStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'CANCELLED' | 'REFUNDED' | 'FAILED';
|
|
47
60
|
interface Order {
|
|
48
61
|
id: string;
|
|
49
62
|
status: OrderStatus;
|
|
50
|
-
total
|
|
51
|
-
currency
|
|
52
|
-
|
|
53
|
-
billingAccountId
|
|
63
|
+
total: number;
|
|
64
|
+
currency: string;
|
|
65
|
+
purchasedAt?: string | null;
|
|
66
|
+
billingAccountId: string;
|
|
54
67
|
createdAt: string;
|
|
55
|
-
lineItems
|
|
56
|
-
productId: string;
|
|
57
|
-
quantity: number;
|
|
58
|
-
unitPrice?: number | null;
|
|
59
|
-
}> | null;
|
|
68
|
+
lineItems: Json;
|
|
60
69
|
}
|
|
61
70
|
interface InstalledProduct {
|
|
62
71
|
id: string;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
};
|
|
72
|
+
productId: string;
|
|
73
|
+
workspaceId: string;
|
|
74
|
+
workspaceName?: string | null;
|
|
67
75
|
status: string;
|
|
68
76
|
installedAt: string;
|
|
69
|
-
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
uninstalledAt?: string | null;
|
|
79
|
+
version?: string | null;
|
|
70
80
|
}
|
|
71
|
-
interface
|
|
81
|
+
interface InstalledProductsResult {
|
|
82
|
+
items: InstalledProduct[];
|
|
83
|
+
total: number;
|
|
84
|
+
hasMore: boolean;
|
|
85
|
+
}
|
|
86
|
+
interface InstallationFilterInput {
|
|
87
|
+
productId?: string;
|
|
88
|
+
workspaceId?: string;
|
|
89
|
+
status?: string;
|
|
90
|
+
}
|
|
91
|
+
interface UninstallResult {
|
|
72
92
|
id: string;
|
|
93
|
+
productId: string;
|
|
94
|
+
workspaceId: string;
|
|
73
95
|
status: string;
|
|
74
|
-
|
|
75
|
-
|
|
96
|
+
uninstalledAt?: string | null;
|
|
97
|
+
updatedAt: string;
|
|
76
98
|
}
|
|
99
|
+
type LicenseSeatRole = 'ADMIN' | 'MEMBER' | 'VIEWER';
|
|
100
|
+
interface License {
|
|
101
|
+
id: string;
|
|
102
|
+
entitlementId: string;
|
|
103
|
+
assigneeUserId: string;
|
|
104
|
+
assigneeEmail?: string | null;
|
|
105
|
+
role: LicenseSeatRole;
|
|
106
|
+
assignedAt: string;
|
|
107
|
+
revokedAt?: string | null;
|
|
108
|
+
revocationReason?: string | null;
|
|
109
|
+
}
|
|
110
|
+
type PublisherTier = 'INDIVIDUAL' | 'ORGANIZATION' | 'ENTERPRISE';
|
|
111
|
+
type PublisherVerificationStatus = 'UNVERIFIED' | 'PENDING_VERIFICATION' | 'VERIFIED' | 'REJECTED' | 'SUSPENDED';
|
|
77
112
|
interface Publisher {
|
|
78
113
|
id: string;
|
|
79
114
|
name: string;
|
|
80
|
-
|
|
81
|
-
|
|
115
|
+
legalName?: string | null;
|
|
116
|
+
email: string;
|
|
82
117
|
contactEmail?: string | null;
|
|
83
|
-
|
|
84
|
-
|
|
118
|
+
websiteUrl?: string | null;
|
|
119
|
+
bio?: string | null;
|
|
120
|
+
logoUrl?: string | null;
|
|
121
|
+
isVerified: boolean;
|
|
122
|
+
verificationStatus: PublisherVerificationStatus;
|
|
123
|
+
productCount: number;
|
|
124
|
+
totalSales: number;
|
|
125
|
+
totalEarnings: number;
|
|
126
|
+
tier: PublisherTier;
|
|
127
|
+
createdAt: string;
|
|
128
|
+
updatedAt: string;
|
|
85
129
|
}
|
|
86
130
|
interface PublisherProductsResult {
|
|
131
|
+
publisherId: string;
|
|
132
|
+
productCount: number;
|
|
87
133
|
products: StoreProduct[];
|
|
88
|
-
totalCount: number;
|
|
89
134
|
}
|
|
90
135
|
|
|
91
136
|
interface CartApi {
|
|
92
|
-
get(): Promise<Cart>;
|
|
137
|
+
get(): Promise<Cart | null>;
|
|
93
138
|
add(input: AddToCartInput): Promise<Cart>;
|
|
94
|
-
remove(
|
|
95
|
-
clear(
|
|
139
|
+
remove(cartItemId: string): Promise<Cart>;
|
|
140
|
+
clear(): Promise<Cart>;
|
|
96
141
|
}
|
|
97
142
|
|
|
143
|
+
interface InstalledListOptions {
|
|
144
|
+
filter?: InstallationFilterInput;
|
|
145
|
+
limit?: number;
|
|
146
|
+
offset?: number;
|
|
147
|
+
}
|
|
98
148
|
interface InstalledApi {
|
|
99
|
-
list(
|
|
100
|
-
uninstall(
|
|
101
|
-
success: boolean;
|
|
102
|
-
}>;
|
|
149
|
+
list(opts?: InstalledListOptions): Promise<InstalledProductsResult>;
|
|
150
|
+
uninstall(productId: string, workspaceId: string): Promise<UninstallResult>;
|
|
103
151
|
}
|
|
104
152
|
|
|
105
153
|
interface LicensesApi {
|
|
106
154
|
list(entitlementId: string): Promise<License[]>;
|
|
107
155
|
}
|
|
108
156
|
|
|
157
|
+
interface OrdersListOptions {
|
|
158
|
+
limit?: number;
|
|
159
|
+
offset?: number;
|
|
160
|
+
status?: OrderStatus;
|
|
161
|
+
}
|
|
109
162
|
interface OrdersApi {
|
|
110
|
-
list(opts?:
|
|
111
|
-
limit?: number;
|
|
112
|
-
offset?: number;
|
|
113
|
-
}): Promise<Order[]>;
|
|
163
|
+
list(opts?: OrdersListOptions): Promise<Order[]>;
|
|
114
164
|
get(id: string): Promise<Order | null>;
|
|
115
165
|
}
|
|
116
166
|
|
|
117
167
|
interface PublisherApi {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
limit?: number;
|
|
121
|
-
offset?: number;
|
|
122
|
-
}): Promise<PublisherProductsResult>;
|
|
168
|
+
me(): Promise<Publisher | null>;
|
|
169
|
+
myProducts(): Promise<PublisherProductsResult | null>;
|
|
123
170
|
}
|
|
124
171
|
|
|
125
172
|
interface SearchApi {
|
|
126
|
-
search(query: string,
|
|
173
|
+
search(query: string, opts?: StoreSearchOptions): Promise<StoreProduct[]>;
|
|
127
174
|
}
|
|
128
175
|
|
|
129
176
|
interface StoreApi {
|
|
@@ -136,4 +183,4 @@ interface StoreApi {
|
|
|
136
183
|
}
|
|
137
184
|
declare const storeModule: SdkModule<StoreApi>;
|
|
138
185
|
|
|
139
|
-
export { type AddToCartInput, type Cart, type CartApi, type CartItem, type InstalledApi, type InstalledProduct, type License, type LicensesApi, type Order, type OrderStatus, type OrdersApi, type Publisher, type PublisherApi, type PublisherProductsResult, type
|
|
186
|
+
export { type AddToCartInput, type Cart, type CartApi, type CartError, type CartItem, type CartPayload, type InstallationFilterInput, type InstalledApi, type InstalledProduct, type InstalledProductsResult, type License, type LicenseSeatRole, type LicensesApi, type Order, type OrderStatus, type OrdersApi, type Publisher, type PublisherApi, type PublisherProductsResult, type PublisherTier, type PublisherVerificationStatus, type SearchApi, type StoreApi, type StoreProduct, type StoreProductType, type StoreSearchOptions, type UninstallResult, storeModule as default };
|
|
@@ -1,82 +1,104 @@
|
|
|
1
|
-
var
|
|
1
|
+
import {b as b$1}from'../../chunk-NEREAHJ6.js';var l=`
|
|
2
2
|
fragment StoreProductFields on StoreProduct {
|
|
3
|
-
id name description price currency type status
|
|
4
|
-
publisher { name }
|
|
3
|
+
id name slug description price currency type status downloads
|
|
4
|
+
publisher { id name isVerified }
|
|
5
5
|
}
|
|
6
6
|
`,a=`
|
|
7
7
|
fragment CartFields on Cart {
|
|
8
8
|
id currency subtotal total itemCount isEmpty
|
|
9
|
-
items {
|
|
9
|
+
items {
|
|
10
|
+
id productId quantity unitPrice subtotal
|
|
11
|
+
productName variantId workspaceId
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
`,c=`
|
|
12
|
-
fragment OrderFields on
|
|
13
|
-
id status total currency
|
|
14
|
-
lineItems
|
|
15
|
-
}
|
|
16
|
-
`,l=`
|
|
17
|
-
${d}
|
|
18
|
-
query SearchStore($query: String!, $filters: StoreFiltersInput) {
|
|
19
|
-
searchStore(query: $query, filters: $filters) { ...StoreProductFields }
|
|
15
|
+
fragment OrderFields on StoreOrder {
|
|
16
|
+
id status total currency purchasedAt billingAccountId createdAt
|
|
17
|
+
lineItems
|
|
20
18
|
}
|
|
21
19
|
`,u=`
|
|
20
|
+
${l}
|
|
21
|
+
query SearchStore($query: String!, $limit: Int, $offset: Int) {
|
|
22
|
+
searchProducts(query: $query, limit: $limit, offset: $offset) { ...StoreProductFields }
|
|
23
|
+
}
|
|
24
|
+
`,p=`
|
|
22
25
|
${a}
|
|
23
26
|
query MyCart {
|
|
24
27
|
myCart { ...CartFields }
|
|
25
28
|
}
|
|
26
|
-
`,
|
|
29
|
+
`,m=`
|
|
27
30
|
${a}
|
|
28
31
|
mutation AddToCart($input: AddToCartInput!) {
|
|
29
|
-
addToCart(input: $input) {
|
|
32
|
+
addToCart(input: $input) {
|
|
33
|
+
cart { ...CartFields }
|
|
34
|
+
errors { code field message }
|
|
35
|
+
}
|
|
30
36
|
}
|
|
31
|
-
`,
|
|
37
|
+
`,S=`
|
|
32
38
|
${a}
|
|
33
|
-
mutation RemoveFromCart($
|
|
34
|
-
removeFromCart(
|
|
39
|
+
mutation RemoveFromCart($cartItemId: String!) {
|
|
40
|
+
removeFromCart(cartItemId: $cartItemId) {
|
|
41
|
+
cart { ...CartFields }
|
|
42
|
+
errors { code field message }
|
|
43
|
+
}
|
|
35
44
|
}
|
|
36
|
-
`,
|
|
45
|
+
`,f=`
|
|
37
46
|
${a}
|
|
38
|
-
mutation ClearCart
|
|
39
|
-
clearCart
|
|
47
|
+
mutation ClearCart {
|
|
48
|
+
clearCart {
|
|
49
|
+
cart { ...CartFields }
|
|
50
|
+
errors { code field message }
|
|
51
|
+
}
|
|
40
52
|
}
|
|
41
|
-
`,
|
|
53
|
+
`,A=`
|
|
42
54
|
${c}
|
|
43
|
-
query
|
|
44
|
-
|
|
55
|
+
query MyOrders($limit: Int, $offset: Int, $status: OrderStatus) {
|
|
56
|
+
myOrders(limit: $limit, offset: $offset, status: $status) { ...OrderFields }
|
|
45
57
|
}
|
|
46
|
-
`,
|
|
58
|
+
`,C=`
|
|
47
59
|
${c}
|
|
48
|
-
query
|
|
49
|
-
|
|
60
|
+
query GetStoreOrder($id: ID!) {
|
|
61
|
+
getStoreOrder(id: $id) { ...OrderFields }
|
|
50
62
|
}
|
|
51
|
-
`,
|
|
52
|
-
query
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
`,y=`
|
|
64
|
+
query MyStoreAppInstallations($filter: InstallationFilterInput, $limit: Int, $offset: Int) {
|
|
65
|
+
myStoreAppInstallations(filter: $filter, limit: $limit, offset: $offset) {
|
|
66
|
+
items {
|
|
67
|
+
id productId workspaceId workspaceName status
|
|
68
|
+
installedAt updatedAt uninstalledAt version
|
|
69
|
+
}
|
|
70
|
+
total
|
|
71
|
+
hasMore
|
|
56
72
|
}
|
|
57
73
|
}
|
|
58
|
-
`,
|
|
59
|
-
mutation
|
|
60
|
-
|
|
74
|
+
`,I=`
|
|
75
|
+
mutation RecordAppUninstallation($productId: String!, $workspaceId: String!) {
|
|
76
|
+
recordAppUninstallation(productId: $productId, workspaceId: $workspaceId) {
|
|
77
|
+
id productId workspaceId status uninstalledAt updatedAt
|
|
78
|
+
}
|
|
61
79
|
}
|
|
62
|
-
`,
|
|
63
|
-
query
|
|
64
|
-
|
|
65
|
-
id
|
|
80
|
+
`,P=`
|
|
81
|
+
query EntitlementSeats($entitlementId: ID!) {
|
|
82
|
+
entitlementSeats(entitlementId: $entitlementId) {
|
|
83
|
+
id entitlementId assigneeUserId assigneeEmail role
|
|
84
|
+
assignedAt revokedAt revocationReason
|
|
66
85
|
}
|
|
67
86
|
}
|
|
68
|
-
`,
|
|
69
|
-
query
|
|
70
|
-
|
|
71
|
-
id name
|
|
87
|
+
`,O=`
|
|
88
|
+
query MyPublisher {
|
|
89
|
+
myPublisher {
|
|
90
|
+
id name legalName email contactEmail websiteUrl
|
|
91
|
+
bio logoUrl isVerified verificationStatus
|
|
92
|
+
productCount totalSales totalEarnings tier
|
|
93
|
+
createdAt updatedAt
|
|
72
94
|
}
|
|
73
95
|
}
|
|
74
|
-
`,
|
|
75
|
-
${
|
|
76
|
-
query
|
|
77
|
-
|
|
96
|
+
`,R=`
|
|
97
|
+
${l}
|
|
98
|
+
query MyPublisherProducts {
|
|
99
|
+
myPublisher {
|
|
100
|
+
id productCount
|
|
78
101
|
products { ...StoreProductFields }
|
|
79
|
-
totalCount
|
|
80
102
|
}
|
|
81
103
|
}
|
|
82
|
-
`;function
|
|
104
|
+
`;function d(e,r){if(e.errors&&e.errors.length>0){let t=e.errors[0];throw new b$1(`store.cart.${r}: ${t.code} ${t.message}`,t.code,{field:t.field,errors:e.errors})}if(!e.cart)throw new b$1(`store.cart.${r}: server returned empty cart`,"EMPTY_CART_PAYLOAD");return e.cart}function h(e){let{global:r}=e.gql;return {async get(){return (await r.request(p)).myCart},async add(t){let o=await r.request(m,{input:t});return d(o.addToCart,"add")},async remove(t){let o=await r.request(S,{cartItemId:t});return d(o.removeFromCart,"remove")},async clear(){let t=await r.request(f);return d(t.clearCart,"clear")}}}function T(e){let{global:r}=e.gql;return {async list(t){return (await r.request(y,{filter:t?.filter,limit:t?.limit,offset:t?.offset})).myStoreAppInstallations},async uninstall(t,o){return (await r.request(I,{productId:t,workspaceId:o})).recordAppUninstallation}}}function g(e){let{global:r}=e.gql;return {async list(t){return (await r.request(P,{entitlementId:t})).entitlementSeats}}}function x(e){let{global:r}=e.gql;return {async list(t){return (await r.request(A,{limit:t?.limit,offset:t?.offset,status:t?.status})).myOrders},async get(t){return (await r.request(C,{id:t})).getStoreOrder}}}function b(e){let{global:r}=e.gql;return {async me(){return (await r.request(O)).myPublisher},async myProducts(){let o=(await r.request(R)).myPublisher;return o?{publisherId:o.id,productCount:o.productCount,products:o.products}:null}}}function _(e){let{global:r}=e.gql;return {async search(t,o){return (await r.request(u,{query:t,limit:o?.limit,offset:o?.offset})).searchProducts}}}var $={id:"store",version:"1.0.0",displayName:"Store",dependsOn:["auth"],attach(e){return {search:_(e),cart:h(e),orders:x(e),installed:T(e),licenses:g(e),publisher:b(e)}}},st=$;export{st as default};
|