@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,91 @@
1
+ 'use strict';var o=`
2
+ fragment WorkspaceFields on Workspace {
3
+ id name slug description tenantId organizationId status createdAt updatedAt
4
+ }
5
+ `,p=`
6
+ fragment WorkspaceMemberFields on WorkspaceMember {
7
+ id userId email role status joinedAt
8
+ }
9
+ `,c=`
10
+ fragment ProjectFields on Project {
11
+ id name description workspaceId status createdAt updatedAt
12
+ }
13
+ `,n=`
14
+ ${o}
15
+ query Workspaces($limit: Int, $offset: Int) {
16
+ workspaces(limit: $limit, offset: $offset) {
17
+ items { ...WorkspaceFields }
18
+ total
19
+ hasMore
20
+ }
21
+ }
22
+ `,d=`
23
+ ${o}
24
+ query Workspace($id: ID!) {
25
+ workspace(id: $id) { ...WorkspaceFields }
26
+ }
27
+ `,k=`
28
+ ${o}
29
+ mutation CreateWorkspace($input: CreateWorkspaceInput!) {
30
+ createWorkspace(input: $input) { ...WorkspaceFields }
31
+ }
32
+ `,W=`
33
+ ${o}
34
+ mutation UpdateWorkspace($id: ID!, $input: UpdateWorkspaceInput!) {
35
+ updateWorkspace(id: $id, input: $input) { ...WorkspaceFields }
36
+ }
37
+ `,u=`
38
+ mutation DeleteWorkspace($id: ID!) { deleteWorkspace(id: $id) }
39
+ `,m=`
40
+ ${p}
41
+ query WorkspaceMembers($workspaceId: ID!, $pagination: PaginationInput) {
42
+ workspaceMembers(workspaceId: $workspaceId, pagination: $pagination) {
43
+ items { ...WorkspaceMemberFields }
44
+ total
45
+ hasMore
46
+ }
47
+ }
48
+ `,P=`
49
+ ${p}
50
+ mutation AddWorkspaceMember($input: AddWorkspaceMemberInput!) {
51
+ addWorkspaceMember(input: $input) { ...WorkspaceMemberFields }
52
+ }
53
+ `,l=`
54
+ mutation RemoveWorkspaceMember($id: ID!) { removeWorkspaceMember(id: $id) }
55
+ `,I=`
56
+ ${p}
57
+ mutation UpdateWorkspaceMemberRoles($input: UpdateWorkspaceMemberRolesInput!) {
58
+ updateWorkspaceMemberRoles(input: $input) { ...WorkspaceMemberFields }
59
+ }
60
+ `,E=`
61
+ ${c}
62
+ query Projects($filter: ProjectFilterInput, $pagination: PaginationInput) {
63
+ projects(filter: $filter, pagination: $pagination) {
64
+ items { ...ProjectFields }
65
+ total
66
+ hasMore
67
+ }
68
+ }
69
+ `,A=`
70
+ ${c}
71
+ query Project($id: ID!) {
72
+ project(id: $id) { ...ProjectFields }
73
+ }
74
+ `,M=`
75
+ ${c}
76
+ mutation CreateProject($input: CreateProjectInput!) {
77
+ createProject(input: $input) { ...ProjectFields }
78
+ }
79
+ `,R=`
80
+ query WorkspaceActivity($workspaceId: ID!, $limit: Int, $offset: Int) {
81
+ getWorkspaceActivities(workspaceId: $workspaceId, limit: $limit, offset: $offset) {
82
+ id action actorId summary createdAt
83
+ }
84
+ }
85
+ `,b=`
86
+ mutation AcceptInvitation($id: ID!) {
87
+ acceptInvitation(id: $id) {
88
+ id status workspaceId
89
+ }
90
+ }
91
+ `;function C(s){let{workspace:r}=s.gql;return {async list(e){return (await r.request(n,{limit:e?.limit,offset:e?.offset})).workspaces},async get(e){return (await r.request(d,{id:e})).workspace},async create(e){return (await r.request(k,{input:e})).createWorkspace},async update(e,t){return (await r.request(W,{id:e,input:t})).updateWorkspace},async delete(e){return (await r.request(u,{id:e})).deleteWorkspace},members:{async list(e,t){return (await r.request(m,{workspaceId:e,pagination:t})).workspaceMembers},async add(e){return (await r.request(P,{input:e})).addWorkspaceMember},async remove(e){return (await r.request(l,{id:e})).removeWorkspaceMember},async role(e,t){let a={id:e,role:t};return (await r.request(I,{input:a})).updateWorkspaceMemberRoles}},projects:{async list(e,t){return (await r.request(E,{filter:e,pagination:t})).projects},async get(e){return (await r.request(A,{id:e})).project},async create(e){return (await r.request(M,{input:e})).createProject}},async activity(e,t){return (await r.request(R,{workspaceId:e,limit:t?.limit,offset:t?.offset})).getWorkspaceActivities},invites:{async accept(e){return (await r.request(b,{id:e})).acceptInvitation}}}}var $={id:"workspaces",version:"1.0.0",displayName:"Workspaces",dependsOn:["auth"],attach(s){return C(s)}},g=$;module.exports=g;
@@ -0,0 +1,128 @@
1
+ import { J as Json, P as PaginationInput, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type WorkspaceStatus = 'ACTIVE' | 'ARCHIVED' | 'DELETED' | 'SUSPENDED';
5
+ interface Workspace {
6
+ id: string;
7
+ name: string;
8
+ slug: string;
9
+ description?: string | null;
10
+ tenantId: string;
11
+ organizationId?: string | null;
12
+ status: WorkspaceStatus;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ }
16
+ interface WorkspaceList {
17
+ items: Workspace[];
18
+ total: number;
19
+ hasMore: boolean;
20
+ }
21
+ interface CreateWorkspaceInput {
22
+ name: string;
23
+ slug?: string;
24
+ description?: string;
25
+ organizationId?: string;
26
+ metadata?: Json;
27
+ }
28
+ interface UpdateWorkspaceInput {
29
+ name?: string;
30
+ description?: string;
31
+ status?: WorkspaceStatus;
32
+ metadata?: Json;
33
+ }
34
+ type WorkspaceMemberRole = 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER';
35
+ interface WorkspaceMember {
36
+ id: string;
37
+ userId: string;
38
+ email?: string | null;
39
+ role: WorkspaceMemberRole;
40
+ status?: string | null;
41
+ joinedAt?: string | null;
42
+ }
43
+ interface WorkspaceMemberList {
44
+ items: WorkspaceMember[];
45
+ total: number;
46
+ hasMore: boolean;
47
+ }
48
+ interface AddWorkspaceMemberInput {
49
+ workspaceId: string;
50
+ userId: string;
51
+ role?: WorkspaceMemberRole;
52
+ }
53
+ interface UpdateWorkspaceMemberRolesInput {
54
+ id: string;
55
+ role: WorkspaceMemberRole;
56
+ }
57
+ interface Project {
58
+ id: string;
59
+ name: string;
60
+ description?: string | null;
61
+ workspaceId: string;
62
+ status: string;
63
+ createdAt: string;
64
+ updatedAt?: string | null;
65
+ }
66
+ interface ProjectList {
67
+ items: Project[];
68
+ total: number;
69
+ hasMore: boolean;
70
+ }
71
+ interface CreateProjectInput {
72
+ workspaceId: string;
73
+ name: string;
74
+ description?: string;
75
+ }
76
+ interface ProjectFilterInput {
77
+ workspaceId?: string;
78
+ status?: string;
79
+ search?: string;
80
+ }
81
+ interface WorkspaceActivity {
82
+ id: string;
83
+ action: string;
84
+ actorId?: string | null;
85
+ summary?: string | null;
86
+ createdAt: string;
87
+ }
88
+ interface WorkspaceInvite {
89
+ id: string;
90
+ status: string;
91
+ workspaceId: string;
92
+ }
93
+
94
+ interface WorkspaceMembersApi {
95
+ list(workspaceId: string, pagination?: PaginationInput): Promise<WorkspaceMemberList>;
96
+ add(input: AddWorkspaceMemberInput): Promise<WorkspaceMember>;
97
+ remove(id: string): Promise<boolean>;
98
+ role(id: string, role: WorkspaceMemberRole): Promise<WorkspaceMember>;
99
+ }
100
+ interface WorkspaceProjectsApi {
101
+ list(filter?: ProjectFilterInput, pagination?: PaginationInput): Promise<ProjectList>;
102
+ get(id: string): Promise<Project | null>;
103
+ create(input: CreateProjectInput): Promise<Project>;
104
+ }
105
+ interface WorkspaceInvitesApi {
106
+ accept(id: string): Promise<WorkspaceInvite>;
107
+ }
108
+ interface WorkspacesApi {
109
+ list(opts?: {
110
+ limit?: number;
111
+ offset?: number;
112
+ }): Promise<WorkspaceList>;
113
+ get(id: string): Promise<Workspace | null>;
114
+ create(input: CreateWorkspaceInput): Promise<Workspace>;
115
+ update(id: string, input: UpdateWorkspaceInput): Promise<Workspace>;
116
+ delete(id: string): Promise<boolean>;
117
+ members: WorkspaceMembersApi;
118
+ projects: WorkspaceProjectsApi;
119
+ activity(workspaceId: string, opts?: {
120
+ limit?: number;
121
+ offset?: number;
122
+ }): Promise<WorkspaceActivity[]>;
123
+ invites: WorkspaceInvitesApi;
124
+ }
125
+
126
+ declare const workspacesModule: SdkModule<WorkspacesApi>;
127
+
128
+ export { type AddWorkspaceMemberInput, type CreateProjectInput, type CreateWorkspaceInput, type Project, type ProjectFilterInput, type ProjectList, type UpdateWorkspaceInput, type UpdateWorkspaceMemberRolesInput, type Workspace, type WorkspaceActivity, type WorkspaceInvite, type WorkspaceInvitesApi, type WorkspaceList, type WorkspaceMember, type WorkspaceMemberList, type WorkspaceMemberRole, type WorkspaceMembersApi, type WorkspaceProjectsApi, type WorkspaceStatus, type WorkspacesApi, workspacesModule as default };
@@ -0,0 +1,128 @@
1
+ import { J as Json, P as PaginationInput, S as SdkModule } from '../../module-JDbvil5h.js';
2
+ import 'graphql-request';
3
+
4
+ type WorkspaceStatus = 'ACTIVE' | 'ARCHIVED' | 'DELETED' | 'SUSPENDED';
5
+ interface Workspace {
6
+ id: string;
7
+ name: string;
8
+ slug: string;
9
+ description?: string | null;
10
+ tenantId: string;
11
+ organizationId?: string | null;
12
+ status: WorkspaceStatus;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ }
16
+ interface WorkspaceList {
17
+ items: Workspace[];
18
+ total: number;
19
+ hasMore: boolean;
20
+ }
21
+ interface CreateWorkspaceInput {
22
+ name: string;
23
+ slug?: string;
24
+ description?: string;
25
+ organizationId?: string;
26
+ metadata?: Json;
27
+ }
28
+ interface UpdateWorkspaceInput {
29
+ name?: string;
30
+ description?: string;
31
+ status?: WorkspaceStatus;
32
+ metadata?: Json;
33
+ }
34
+ type WorkspaceMemberRole = 'OWNER' | 'ADMIN' | 'MEMBER' | 'VIEWER';
35
+ interface WorkspaceMember {
36
+ id: string;
37
+ userId: string;
38
+ email?: string | null;
39
+ role: WorkspaceMemberRole;
40
+ status?: string | null;
41
+ joinedAt?: string | null;
42
+ }
43
+ interface WorkspaceMemberList {
44
+ items: WorkspaceMember[];
45
+ total: number;
46
+ hasMore: boolean;
47
+ }
48
+ interface AddWorkspaceMemberInput {
49
+ workspaceId: string;
50
+ userId: string;
51
+ role?: WorkspaceMemberRole;
52
+ }
53
+ interface UpdateWorkspaceMemberRolesInput {
54
+ id: string;
55
+ role: WorkspaceMemberRole;
56
+ }
57
+ interface Project {
58
+ id: string;
59
+ name: string;
60
+ description?: string | null;
61
+ workspaceId: string;
62
+ status: string;
63
+ createdAt: string;
64
+ updatedAt?: string | null;
65
+ }
66
+ interface ProjectList {
67
+ items: Project[];
68
+ total: number;
69
+ hasMore: boolean;
70
+ }
71
+ interface CreateProjectInput {
72
+ workspaceId: string;
73
+ name: string;
74
+ description?: string;
75
+ }
76
+ interface ProjectFilterInput {
77
+ workspaceId?: string;
78
+ status?: string;
79
+ search?: string;
80
+ }
81
+ interface WorkspaceActivity {
82
+ id: string;
83
+ action: string;
84
+ actorId?: string | null;
85
+ summary?: string | null;
86
+ createdAt: string;
87
+ }
88
+ interface WorkspaceInvite {
89
+ id: string;
90
+ status: string;
91
+ workspaceId: string;
92
+ }
93
+
94
+ interface WorkspaceMembersApi {
95
+ list(workspaceId: string, pagination?: PaginationInput): Promise<WorkspaceMemberList>;
96
+ add(input: AddWorkspaceMemberInput): Promise<WorkspaceMember>;
97
+ remove(id: string): Promise<boolean>;
98
+ role(id: string, role: WorkspaceMemberRole): Promise<WorkspaceMember>;
99
+ }
100
+ interface WorkspaceProjectsApi {
101
+ list(filter?: ProjectFilterInput, pagination?: PaginationInput): Promise<ProjectList>;
102
+ get(id: string): Promise<Project | null>;
103
+ create(input: CreateProjectInput): Promise<Project>;
104
+ }
105
+ interface WorkspaceInvitesApi {
106
+ accept(id: string): Promise<WorkspaceInvite>;
107
+ }
108
+ interface WorkspacesApi {
109
+ list(opts?: {
110
+ limit?: number;
111
+ offset?: number;
112
+ }): Promise<WorkspaceList>;
113
+ get(id: string): Promise<Workspace | null>;
114
+ create(input: CreateWorkspaceInput): Promise<Workspace>;
115
+ update(id: string, input: UpdateWorkspaceInput): Promise<Workspace>;
116
+ delete(id: string): Promise<boolean>;
117
+ members: WorkspaceMembersApi;
118
+ projects: WorkspaceProjectsApi;
119
+ activity(workspaceId: string, opts?: {
120
+ limit?: number;
121
+ offset?: number;
122
+ }): Promise<WorkspaceActivity[]>;
123
+ invites: WorkspaceInvitesApi;
124
+ }
125
+
126
+ declare const workspacesModule: SdkModule<WorkspacesApi>;
127
+
128
+ export { type AddWorkspaceMemberInput, type CreateProjectInput, type CreateWorkspaceInput, type Project, type ProjectFilterInput, type ProjectList, type UpdateWorkspaceInput, type UpdateWorkspaceMemberRolesInput, type Workspace, type WorkspaceActivity, type WorkspaceInvite, type WorkspaceInvitesApi, type WorkspaceList, type WorkspaceMember, type WorkspaceMemberList, type WorkspaceMemberRole, type WorkspaceMembersApi, type WorkspaceProjectsApi, type WorkspaceStatus, type WorkspacesApi, workspacesModule as default };
@@ -0,0 +1,91 @@
1
+ var o=`
2
+ fragment WorkspaceFields on Workspace {
3
+ id name slug description tenantId organizationId status createdAt updatedAt
4
+ }
5
+ `,p=`
6
+ fragment WorkspaceMemberFields on WorkspaceMember {
7
+ id userId email role status joinedAt
8
+ }
9
+ `,c=`
10
+ fragment ProjectFields on Project {
11
+ id name description workspaceId status createdAt updatedAt
12
+ }
13
+ `,d=`
14
+ ${o}
15
+ query Workspaces($limit: Int, $offset: Int) {
16
+ workspaces(limit: $limit, offset: $offset) {
17
+ items { ...WorkspaceFields }
18
+ total
19
+ hasMore
20
+ }
21
+ }
22
+ `,k=`
23
+ ${o}
24
+ query Workspace($id: ID!) {
25
+ workspace(id: $id) { ...WorkspaceFields }
26
+ }
27
+ `,W=`
28
+ ${o}
29
+ mutation CreateWorkspace($input: CreateWorkspaceInput!) {
30
+ createWorkspace(input: $input) { ...WorkspaceFields }
31
+ }
32
+ `,u=`
33
+ ${o}
34
+ mutation UpdateWorkspace($id: ID!, $input: UpdateWorkspaceInput!) {
35
+ updateWorkspace(id: $id, input: $input) { ...WorkspaceFields }
36
+ }
37
+ `,m=`
38
+ mutation DeleteWorkspace($id: ID!) { deleteWorkspace(id: $id) }
39
+ `,P=`
40
+ ${p}
41
+ query WorkspaceMembers($workspaceId: ID!, $pagination: PaginationInput) {
42
+ workspaceMembers(workspaceId: $workspaceId, pagination: $pagination) {
43
+ items { ...WorkspaceMemberFields }
44
+ total
45
+ hasMore
46
+ }
47
+ }
48
+ `,l=`
49
+ ${p}
50
+ mutation AddWorkspaceMember($input: AddWorkspaceMemberInput!) {
51
+ addWorkspaceMember(input: $input) { ...WorkspaceMemberFields }
52
+ }
53
+ `,I=`
54
+ mutation RemoveWorkspaceMember($id: ID!) { removeWorkspaceMember(id: $id) }
55
+ `,E=`
56
+ ${p}
57
+ mutation UpdateWorkspaceMemberRoles($input: UpdateWorkspaceMemberRolesInput!) {
58
+ updateWorkspaceMemberRoles(input: $input) { ...WorkspaceMemberFields }
59
+ }
60
+ `,A=`
61
+ ${c}
62
+ query Projects($filter: ProjectFilterInput, $pagination: PaginationInput) {
63
+ projects(filter: $filter, pagination: $pagination) {
64
+ items { ...ProjectFields }
65
+ total
66
+ hasMore
67
+ }
68
+ }
69
+ `,M=`
70
+ ${c}
71
+ query Project($id: ID!) {
72
+ project(id: $id) { ...ProjectFields }
73
+ }
74
+ `,R=`
75
+ ${c}
76
+ mutation CreateProject($input: CreateProjectInput!) {
77
+ createProject(input: $input) { ...ProjectFields }
78
+ }
79
+ `,b=`
80
+ query WorkspaceActivity($workspaceId: ID!, $limit: Int, $offset: Int) {
81
+ getWorkspaceActivities(workspaceId: $workspaceId, limit: $limit, offset: $offset) {
82
+ id action actorId summary createdAt
83
+ }
84
+ }
85
+ `,C=`
86
+ mutation AcceptInvitation($id: ID!) {
87
+ acceptInvitation(id: $id) {
88
+ id status workspaceId
89
+ }
90
+ }
91
+ `;function $(s){let{workspace:r}=s.gql;return {async list(e){return (await r.request(d,{limit:e?.limit,offset:e?.offset})).workspaces},async get(e){return (await r.request(k,{id:e})).workspace},async create(e){return (await r.request(W,{input:e})).createWorkspace},async update(e,t){return (await r.request(u,{id:e,input:t})).updateWorkspace},async delete(e){return (await r.request(m,{id:e})).deleteWorkspace},members:{async list(e,t){return (await r.request(P,{workspaceId:e,pagination:t})).workspaceMembers},async add(e){return (await r.request(l,{input:e})).addWorkspaceMember},async remove(e){return (await r.request(I,{id:e})).removeWorkspaceMember},async role(e,t){let a={id:e,role:t};return (await r.request(E,{input:a})).updateWorkspaceMemberRoles}},projects:{async list(e,t){return (await r.request(A,{filter:e,pagination:t})).projects},async get(e){return (await r.request(M,{id:e})).project},async create(e){return (await r.request(R,{input:e})).createProject}},async activity(e,t){return (await r.request(b,{workspaceId:e,limit:t?.limit,offset:t?.offset})).getWorkspaceActivities},invites:{async accept(e){return (await r.request(C,{id:e})).acceptInvitation}}}}var j={id:"workspaces",version:"1.0.0",displayName:"Workspaces",dependsOn:["auth"],attach(s){return $(s)}},O=j;export{O as default};
package/package.json ADDED
@@ -0,0 +1,117 @@
1
+ {
2
+ "name": "@burdenoff/sdk-libs",
3
+ "version": "2026.501.6",
4
+ "description": "Modular SDK library shared across all Burdenoff product SDKs (vibecontrols, botlit, fluidgrids, bigconsole, healthybowl, devportal, workspaces). Each module exports an SdkModule contract with attach(ctx) returning a typed API; product SDKs become thin shells that pick which modules to mount. Sister to @burdenoff/cli-sdk.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "README.md",
12
+ "LICENSE"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js",
18
+ "require": "./dist/index.cjs"
19
+ },
20
+ "./core": {
21
+ "types": "./dist/core/index.d.ts",
22
+ "import": "./dist/core/index.js",
23
+ "require": "./dist/core/index.cjs"
24
+ },
25
+ "./modules/*": {
26
+ "types": "./dist/modules/*/index.d.ts",
27
+ "import": "./dist/modules/*/index.js",
28
+ "require": "./dist/modules/*/index.cjs"
29
+ }
30
+ },
31
+ "scripts": {
32
+ "dev": "TSUP_DEV=1 tsup --watch",
33
+ "build": "tsup",
34
+ "type-check": "tsc --noEmit",
35
+ "lint": "eslint src --fix",
36
+ "lint:check": "eslint src",
37
+ "lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint:check; else bun run lint:check -- --cache --cache-location .eslintcache; fi",
38
+ "format": "prettier --write \"src/**/*.{ts,js,json,md}\" \"tests/**/*.{ts,js}\"",
39
+ "format:check": "prettier --check \"src/**/*.{ts,js,json,md}\" \"tests/**/*.{ts,js}\"",
40
+ "test": "vitest run",
41
+ "test:watch": "vitest",
42
+ "test:coverage": "vitest run --coverage",
43
+ "clean": "rimraf dist .eslintcache",
44
+ "sanity": "bun run format:check && bun run lint:sanity && bun run type-check && bun run build && bun run test",
45
+ "codegen": "bun scripts/codegen.ts",
46
+ "codegen:check": "bun scripts/codegen.ts --check",
47
+ "parity:check": "bun scripts/parity-check.ts",
48
+ "registry:verdaccio": "bun scripts/set-registry.ts verdaccio",
49
+ "registry:npm": "bun scripts/set-registry.ts npm",
50
+ "prepublishOnly": "bun run clean && bun run build"
51
+ },
52
+ "keywords": [
53
+ "burdenoff",
54
+ "sdk",
55
+ "sdk-libs",
56
+ "graphql",
57
+ "modular",
58
+ "typescript"
59
+ ],
60
+ "author": {
61
+ "name": "Vignesh T.V",
62
+ "email": "vignesh@burdenoff.com",
63
+ "url": "https://github.com/tvvignesh"
64
+ },
65
+ "license": "UNLICENSED",
66
+ "repository": {
67
+ "type": "git",
68
+ "url": "git+https://github.com/algoshred/sdk-libs-node.git"
69
+ },
70
+ "bugs": {
71
+ "url": "https://github.com/algoshred/sdk-libs-node/issues"
72
+ },
73
+ "homepage": "https://github.com/algoshred/sdk-libs-node#readme",
74
+ "publishConfig": {
75
+ "access": "restricted",
76
+ "registry": "https://verdaccio.tooling.internal.burdenoff.com/"
77
+ },
78
+ "dependencies": {
79
+ "cross-fetch": "^4.1.0"
80
+ },
81
+ "peerDependencies": {
82
+ "graphql": "^16.0.0",
83
+ "graphql-request": "^7.0.0",
84
+ "graphql-ws": "^5.16.0"
85
+ },
86
+ "peerDependenciesMeta": {
87
+ "graphql-ws": {
88
+ "optional": true
89
+ }
90
+ },
91
+ "devDependencies": {
92
+ "@graphql-codegen/cli": "^5.0.3",
93
+ "@graphql-codegen/typescript": "^4.1.0",
94
+ "@types/node": "^24.12.2",
95
+ "@typescript-eslint/eslint-plugin": "^8.58.0",
96
+ "@typescript-eslint/parser": "^8.58.0",
97
+ "@vitest/coverage-v8": "^3.2.4",
98
+ "eslint": "^9.39.4",
99
+ "eslint-config-prettier": "^10.1.8",
100
+ "eslint-plugin-prettier": "^5.5.5",
101
+ "globals": "^16.5.0",
102
+ "graphql": "^16.13.2",
103
+ "graphql-request": "^7.4.0",
104
+ "graphql-ws": "^5.16.0",
105
+ "msw": "^2.7.0",
106
+ "prettier": "^3.8.1",
107
+ "rimraf": "^6.1.3",
108
+ "tsup": "^8.5.1",
109
+ "tsx": "^4.21.0",
110
+ "typescript": "^5.9.3",
111
+ "vitest": "^3.2.4"
112
+ },
113
+ "engines": {
114
+ "node": ">=24.11.0",
115
+ "bun": ">=1.3.10"
116
+ }
117
+ }