@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,139 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type StoreProductType = 'APP' | 'INTEGRATION' | 'TEMPLATE' | 'EXTENSION';
5
+ interface StoreProduct {
6
+ id: string;
7
+ name: string;
8
+ description?: string | null;
9
+ price?: number | null;
10
+ currency?: string | null;
11
+ type: StoreProductType;
12
+ status?: string | null;
13
+ activeInstallCount?: number | null;
14
+ publisher?: {
15
+ name: string;
16
+ } | null;
17
+ }
18
+ interface StoreFiltersInput {
19
+ type?: StoreProductType;
20
+ category?: string;
21
+ publisherId?: string;
22
+ minPrice?: number;
23
+ maxPrice?: number;
24
+ currency?: string;
25
+ }
26
+ interface CartItem {
27
+ id: string;
28
+ productId: string;
29
+ quantity: number;
30
+ metadata?: Json;
31
+ }
32
+ interface Cart {
33
+ id: string;
34
+ currency?: string | null;
35
+ subtotal?: number | null;
36
+ total?: number | null;
37
+ itemCount: number;
38
+ isEmpty: boolean;
39
+ items: CartItem[];
40
+ }
41
+ interface AddToCartInput {
42
+ productId: string;
43
+ quantity?: number;
44
+ metadata?: Json;
45
+ }
46
+ type OrderStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'CANCELLED' | 'REFUNDED' | 'FAILED';
47
+ interface Order {
48
+ id: string;
49
+ status: OrderStatus;
50
+ total?: number | null;
51
+ currency?: string | null;
52
+ paidAt?: string | null;
53
+ billingAccountId?: string | null;
54
+ createdAt: string;
55
+ lineItems?: Array<{
56
+ productId: string;
57
+ quantity: number;
58
+ unitPrice?: number | null;
59
+ }> | null;
60
+ }
61
+ interface InstalledProduct {
62
+ id: string;
63
+ application: {
64
+ id: string;
65
+ name: string;
66
+ };
67
+ status: string;
68
+ installedAt: string;
69
+ lastUsedAt?: string | null;
70
+ }
71
+ interface License {
72
+ id: string;
73
+ status: string;
74
+ validFrom?: string | null;
75
+ expiresAt?: string | null;
76
+ }
77
+ interface Publisher {
78
+ id: string;
79
+ name: string;
80
+ description?: string | null;
81
+ websiteUrl?: string | null;
82
+ contactEmail?: string | null;
83
+ isVerified?: boolean | null;
84
+ createdAt?: string | null;
85
+ }
86
+ interface PublisherProductsResult {
87
+ products: StoreProduct[];
88
+ totalCount: number;
89
+ }
90
+
91
+ interface CartApi {
92
+ get(): Promise<Cart>;
93
+ add(input: AddToCartInput): Promise<Cart>;
94
+ remove(cartId: string, itemId: string): Promise<Cart>;
95
+ clear(cartId: string): Promise<Cart>;
96
+ }
97
+
98
+ interface InstalledApi {
99
+ list(workspaceId: string): Promise<InstalledProduct[]>;
100
+ uninstall(installationId: string): Promise<{
101
+ success: boolean;
102
+ }>;
103
+ }
104
+
105
+ interface LicensesApi {
106
+ list(entitlementId: string): Promise<License[]>;
107
+ }
108
+
109
+ interface OrdersApi {
110
+ list(opts?: {
111
+ limit?: number;
112
+ offset?: number;
113
+ }): Promise<Order[]>;
114
+ get(id: string): Promise<Order | null>;
115
+ }
116
+
117
+ interface PublisherApi {
118
+ get(id: string): Promise<Publisher | null>;
119
+ products(publisherId: string, opts?: {
120
+ limit?: number;
121
+ offset?: number;
122
+ }): Promise<PublisherProductsResult>;
123
+ }
124
+
125
+ interface SearchApi {
126
+ search(query: string, filters?: StoreFiltersInput): Promise<StoreProduct[]>;
127
+ }
128
+
129
+ interface StoreApi {
130
+ search: SearchApi;
131
+ cart: CartApi;
132
+ orders: OrdersApi;
133
+ installed: InstalledApi;
134
+ licenses: LicensesApi;
135
+ publisher: PublisherApi;
136
+ }
137
+ declare const storeModule: SdkModule<StoreApi>;
138
+
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 SearchApi, type StoreApi, type StoreFiltersInput, type StoreProduct, type StoreProductType, storeModule as default };
@@ -0,0 +1,139 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
2
+ import 'graphql-request';
3
+
4
+ type StoreProductType = 'APP' | 'INTEGRATION' | 'TEMPLATE' | 'EXTENSION';
5
+ interface StoreProduct {
6
+ id: string;
7
+ name: string;
8
+ description?: string | null;
9
+ price?: number | null;
10
+ currency?: string | null;
11
+ type: StoreProductType;
12
+ status?: string | null;
13
+ activeInstallCount?: number | null;
14
+ publisher?: {
15
+ name: string;
16
+ } | null;
17
+ }
18
+ interface StoreFiltersInput {
19
+ type?: StoreProductType;
20
+ category?: string;
21
+ publisherId?: string;
22
+ minPrice?: number;
23
+ maxPrice?: number;
24
+ currency?: string;
25
+ }
26
+ interface CartItem {
27
+ id: string;
28
+ productId: string;
29
+ quantity: number;
30
+ metadata?: Json;
31
+ }
32
+ interface Cart {
33
+ id: string;
34
+ currency?: string | null;
35
+ subtotal?: number | null;
36
+ total?: number | null;
37
+ itemCount: number;
38
+ isEmpty: boolean;
39
+ items: CartItem[];
40
+ }
41
+ interface AddToCartInput {
42
+ productId: string;
43
+ quantity?: number;
44
+ metadata?: Json;
45
+ }
46
+ type OrderStatus = 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'CANCELLED' | 'REFUNDED' | 'FAILED';
47
+ interface Order {
48
+ id: string;
49
+ status: OrderStatus;
50
+ total?: number | null;
51
+ currency?: string | null;
52
+ paidAt?: string | null;
53
+ billingAccountId?: string | null;
54
+ createdAt: string;
55
+ lineItems?: Array<{
56
+ productId: string;
57
+ quantity: number;
58
+ unitPrice?: number | null;
59
+ }> | null;
60
+ }
61
+ interface InstalledProduct {
62
+ id: string;
63
+ application: {
64
+ id: string;
65
+ name: string;
66
+ };
67
+ status: string;
68
+ installedAt: string;
69
+ lastUsedAt?: string | null;
70
+ }
71
+ interface License {
72
+ id: string;
73
+ status: string;
74
+ validFrom?: string | null;
75
+ expiresAt?: string | null;
76
+ }
77
+ interface Publisher {
78
+ id: string;
79
+ name: string;
80
+ description?: string | null;
81
+ websiteUrl?: string | null;
82
+ contactEmail?: string | null;
83
+ isVerified?: boolean | null;
84
+ createdAt?: string | null;
85
+ }
86
+ interface PublisherProductsResult {
87
+ products: StoreProduct[];
88
+ totalCount: number;
89
+ }
90
+
91
+ interface CartApi {
92
+ get(): Promise<Cart>;
93
+ add(input: AddToCartInput): Promise<Cart>;
94
+ remove(cartId: string, itemId: string): Promise<Cart>;
95
+ clear(cartId: string): Promise<Cart>;
96
+ }
97
+
98
+ interface InstalledApi {
99
+ list(workspaceId: string): Promise<InstalledProduct[]>;
100
+ uninstall(installationId: string): Promise<{
101
+ success: boolean;
102
+ }>;
103
+ }
104
+
105
+ interface LicensesApi {
106
+ list(entitlementId: string): Promise<License[]>;
107
+ }
108
+
109
+ interface OrdersApi {
110
+ list(opts?: {
111
+ limit?: number;
112
+ offset?: number;
113
+ }): Promise<Order[]>;
114
+ get(id: string): Promise<Order | null>;
115
+ }
116
+
117
+ interface PublisherApi {
118
+ get(id: string): Promise<Publisher | null>;
119
+ products(publisherId: string, opts?: {
120
+ limit?: number;
121
+ offset?: number;
122
+ }): Promise<PublisherProductsResult>;
123
+ }
124
+
125
+ interface SearchApi {
126
+ search(query: string, filters?: StoreFiltersInput): Promise<StoreProduct[]>;
127
+ }
128
+
129
+ interface StoreApi {
130
+ search: SearchApi;
131
+ cart: CartApi;
132
+ orders: OrdersApi;
133
+ installed: InstalledApi;
134
+ licenses: LicensesApi;
135
+ publisher: PublisherApi;
136
+ }
137
+ declare const storeModule: SdkModule<StoreApi>;
138
+
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 SearchApi, type StoreApi, type StoreFiltersInput, type StoreProduct, type StoreProductType, storeModule as default };
@@ -0,0 +1,82 @@
1
+ var d=`
2
+ fragment StoreProductFields on StoreProduct {
3
+ id name description price currency type status activeInstallCount
4
+ publisher { name }
5
+ }
6
+ `,a=`
7
+ fragment CartFields on Cart {
8
+ id currency subtotal total itemCount isEmpty
9
+ items { id productId quantity metadata }
10
+ }
11
+ `,c=`
12
+ fragment OrderFields on Order {
13
+ id status total currency paidAt billingAccountId createdAt
14
+ lineItems { productId quantity unitPrice }
15
+ }
16
+ `,l=`
17
+ ${d}
18
+ query SearchStore($query: String!, $filters: StoreFiltersInput) {
19
+ searchStore(query: $query, filters: $filters) { ...StoreProductFields }
20
+ }
21
+ `,u=`
22
+ ${a}
23
+ query MyCart {
24
+ myCart { ...CartFields }
25
+ }
26
+ `,p=`
27
+ ${a}
28
+ mutation AddToCart($input: AddToCartInput!) {
29
+ addToCart(input: $input) { ...CartFields }
30
+ }
31
+ `,m=`
32
+ ${a}
33
+ mutation RemoveFromCart($cartId: ID!, $itemId: ID!) {
34
+ removeFromCart(cartId: $cartId, itemId: $itemId) { ...CartFields }
35
+ }
36
+ `,I=`
37
+ ${a}
38
+ mutation ClearCart($cartId: ID!) {
39
+ clearCart(cartId: $cartId) { ...CartFields }
40
+ }
41
+ `,C=`
42
+ ${c}
43
+ query GetOrders($limit: Int, $offset: Int) {
44
+ getOrders(limit: $limit, offset: $offset) { ...OrderFields }
45
+ }
46
+ `,A=`
47
+ ${c}
48
+ query GetOrder($id: ID!) {
49
+ getOrder(id: $id) { ...OrderFields }
50
+ }
51
+ `,S=`
52
+ query GetInstalledProducts($workspaceId: ID!) {
53
+ getInstalledProducts(workspaceId: $workspaceId) {
54
+ id status installedAt lastUsedAt
55
+ application { id name }
56
+ }
57
+ }
58
+ `,P=`
59
+ mutation UninstallProduct($installationId: ID!) {
60
+ uninstallProduct(installationId: $installationId) { success }
61
+ }
62
+ `,f=`
63
+ query GetLicenses($entitlementId: ID!) {
64
+ getLicenses(entitlementId: $entitlementId) {
65
+ id status validFrom expiresAt
66
+ }
67
+ }
68
+ `,y=`
69
+ query GetPublisher($id: ID!) {
70
+ getPublisher(id: $id) {
71
+ id name description websiteUrl contactEmail isVerified createdAt
72
+ }
73
+ }
74
+ `,g=`
75
+ ${d}
76
+ query GetPublisherProducts($publisherId: ID!, $limit: Int, $offset: Int) {
77
+ getPublisherProducts(publisherId: $publisherId, limit: $limit, offset: $offset) {
78
+ products { ...StoreProductFields }
79
+ totalCount
80
+ }
81
+ }
82
+ `;function T(e){let{global:r}=e.gql;return {async get(){return (await r.request(u)).myCart},async add(t){return (await r.request(p,{input:t})).addToCart},async remove(t,s){return (await r.request(m,{cartId:t,itemId:s})).removeFromCart},async clear(t){return (await r.request(I,{cartId:t})).clearCart}}}function R(e){let{global:r}=e.gql;return {async list(t){return (await r.request(S,{workspaceId:t})).getInstalledProducts},async uninstall(t){return (await r.request(P,{installationId:t})).uninstallProduct}}}function h(e){let{global:r}=e.gql;return {async list(t){return (await r.request(f,{entitlementId:t})).getLicenses}}}function O(e){let{global:r}=e.gql;return {async list(t){return (await r.request(C,{limit:t?.limit,offset:t?.offset})).getOrders},async get(t){return (await r.request(A,{id:t})).getOrder}}}function b(e){let{global:r}=e.gql;return {async get(t){return (await r.request(y,{id:t})).getPublisher},async products(t,s){return (await r.request(g,{publisherId:t,limit:s?.limit,offset:s?.offset})).getPublisherProducts}}}function x(e){let{global:r}=e.gql;return {async search(t,s){return (await r.request(l,{query:t,filters:s})).searchStore}}}var $={id:"store",version:"1.0.0",displayName:"Store",dependsOn:["auth"],attach(e){return {search:x(e),cart:T(e),orders:O(e),installed:R(e),licenses:h(e),publisher:b(e)}}},et=$;export{et as default};
@@ -0,0 +1,56 @@
1
+ 'use strict';var i=`
2
+ fragment SupportTicketFields on SupportTicket {
3
+ id ticketNumber userId tenantId workspaceId subject description
4
+ status priority category categoryId source assignedTo tags
5
+ resolvedAt closedAt reopenedAt metadata customFields
6
+ createdAt updatedAt
7
+ }
8
+ `,m=`
9
+ fragment SupportMessageFields on SupportMessage {
10
+ id ticketId authorId message type attachments attachmentCount
11
+ isInternal createdAt updatedAt
12
+ }
13
+ `,g=`
14
+ fragment KnowledgeBaseArticleFields on KnowledgeBaseArticle {
15
+ id tenantId categoryId title slug content excerpt tags
16
+ metaDescription status authorId publishedAt archivedAt
17
+ viewCount helpfulCount notHelpfulCount helpfulnessScore
18
+ version previousVersion createdAt updatedAt
19
+ }
20
+ `,n=`
21
+ ${i}
22
+ query SupportTickets($filter: SupportTicketFilterInput, $limit: Int, $offset: Int) {
23
+ supportTickets(filter: $filter, limit: $limit, offset: $offset) {
24
+ nodes { ...SupportTicketFields }
25
+ totalCount
26
+ hasMore
27
+ }
28
+ }
29
+ `,a=`
30
+ ${i}
31
+ query SupportTicket($id: ID!) {
32
+ supportTicket(id: $id) { ...SupportTicketFields }
33
+ }
34
+ `,c=`
35
+ ${i}
36
+ mutation CreateSupportTicket($input: CreateSupportTicketInput!) {
37
+ createSupportTicket(input: $input) { ...SupportTicketFields }
38
+ }
39
+ `,u=`
40
+ ${m}
41
+ mutation CreateSupportMessage($input: CreateSupportMessageInput!) {
42
+ createSupportMessage(input: $input) { ...SupportMessageFields }
43
+ }
44
+ `,d=`
45
+ ${i}
46
+ mutation CloseSupportTicket($id: ID!) {
47
+ closeSupportTicket(id: $id) { ...SupportTicketFields }
48
+ }
49
+ `,S=`
50
+ ${g}
51
+ query SearchKnowledgeBase($query: String!, $categoryId: String, $limit: Int, $offset: Int) {
52
+ searchKnowledgeBase(query: $query, categoryId: $categoryId, limit: $limit, offset: $offset) {
53
+ ...KnowledgeBaseArticleFields
54
+ }
55
+ }
56
+ `;function l(o){let{global:r}=o.gql;return {async search(t,e){return (await r.request(S,{query:t,categoryId:e?.categoryId,limit:e?.limit,offset:e?.offset})).searchKnowledgeBase}}}function T(o){let{global:r}=o.gql;return {async list(t,e){return (await r.request(n,{filter:t,limit:e?.limit,offset:e?.offset})).supportTickets},async get(t){return (await r.request(a,{id:t})).supportTicket},async create(t){return (await r.request(c,{input:t})).createSupportTicket},async comment(t,e,p){let k={ticketId:t,message:e,type:p?.type,attachments:p?.attachments,isInternal:p?.isInternal,context:p?.context};return (await r.request(u,{input:k})).createSupportMessage},async close(t){return (await r.request(d,{id:t})).closeSupportTicket}}}var I={id:"support",version:"1.0.0",displayName:"Support",dependsOn:["auth"],attach(o){return {tickets:T(o),kb:l(o)}}},w=I;module.exports=w;
@@ -0,0 +1,147 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type SupportTicketStatus = 'CLOSED' | 'IN_PROGRESS' | 'NEW' | 'REOPENED' | 'RESOLVED' | 'WAITING_CUSTOMER';
5
+ type SupportTicketPriority = 'CRITICAL' | 'HIGH' | 'LOW' | 'NORMAL';
6
+ type SupportTicketCategory = 'BILLING_ACCOUNT' | 'BUG_REPORT' | 'FEATURE_REQUEST' | 'GENERAL_SUPPORT' | 'TECHNICAL_SUPPORT';
7
+ type TicketSource = 'API' | 'EMAIL' | 'IMPORT' | 'IN_APP' | 'PHONE' | 'WEBSITE';
8
+ type MessageType = 'AGENT_REPLY' | 'CUSTOMER_REPLY' | 'INTERNAL_NOTE' | 'SYSTEM_MESSAGE';
9
+ type ArticleStatus = 'ARCHIVED' | 'DRAFT' | 'PUBLISHED' | 'REVIEW';
10
+ interface SupportContextInput {
11
+ workspaceId?: string;
12
+ userId?: string;
13
+ projectId?: string;
14
+ appId?: string;
15
+ custom?: Json;
16
+ }
17
+ interface SupportTicket {
18
+ id: string;
19
+ ticketNumber: string;
20
+ userId: string;
21
+ tenantId?: string | null;
22
+ workspaceId?: string | null;
23
+ subject: string;
24
+ description: string;
25
+ status: SupportTicketStatus;
26
+ priority: SupportTicketPriority;
27
+ category?: SupportTicketCategory | null;
28
+ categoryId?: string | null;
29
+ source: TicketSource;
30
+ assignedTo?: string | null;
31
+ tags: string[];
32
+ resolvedAt?: string | null;
33
+ closedAt?: string | null;
34
+ reopenedAt?: string | null;
35
+ metadata?: Json;
36
+ customFields?: Json;
37
+ createdAt: string;
38
+ updatedAt: string;
39
+ }
40
+ interface SupportTicketConnection {
41
+ nodes: SupportTicket[];
42
+ totalCount: number;
43
+ hasMore: boolean;
44
+ }
45
+ interface SupportMessage {
46
+ id: string;
47
+ ticketId: string;
48
+ authorId: string;
49
+ message: string;
50
+ type: MessageType;
51
+ attachments: string[];
52
+ attachmentCount: number;
53
+ isInternal: boolean;
54
+ createdAt: string;
55
+ updatedAt: string;
56
+ }
57
+ interface KnowledgeBaseArticle {
58
+ id: string;
59
+ tenantId?: string | null;
60
+ categoryId?: string | null;
61
+ title: string;
62
+ slug: string;
63
+ content: string;
64
+ excerpt?: string | null;
65
+ tags: string[];
66
+ metaDescription?: string | null;
67
+ status: ArticleStatus;
68
+ authorId: string;
69
+ publishedAt?: string | null;
70
+ archivedAt?: string | null;
71
+ viewCount: number;
72
+ helpfulCount: number;
73
+ notHelpfulCount: number;
74
+ helpfulnessScore?: number | null;
75
+ version: number;
76
+ previousVersion?: string | null;
77
+ createdAt: string;
78
+ updatedAt: string;
79
+ }
80
+ interface SupportTicketFilterInput {
81
+ userId?: string;
82
+ workspaceId?: string;
83
+ status?: SupportTicketStatus;
84
+ statuses?: SupportTicketStatus[];
85
+ priority?: SupportTicketPriority;
86
+ priorities?: SupportTicketPriority[];
87
+ category?: SupportTicketCategory;
88
+ categoryId?: string;
89
+ source?: TicketSource;
90
+ assignedTo?: string;
91
+ tags?: string[];
92
+ startDate?: string;
93
+ endDate?: string;
94
+ }
95
+ interface CreateSupportTicketInput {
96
+ workspaceId?: string;
97
+ subject: string;
98
+ description: string;
99
+ priority?: SupportTicketPriority;
100
+ category?: SupportTicketCategory;
101
+ categoryId?: string;
102
+ source?: TicketSource;
103
+ tags?: string[];
104
+ metadata?: Json;
105
+ customFields?: Json;
106
+ context?: SupportContextInput;
107
+ }
108
+ interface CreateSupportMessageInput {
109
+ ticketId: string;
110
+ message: string;
111
+ type?: MessageType;
112
+ attachments?: string[];
113
+ isInternal?: boolean;
114
+ context?: SupportContextInput;
115
+ }
116
+
117
+ interface KbApi {
118
+ search(q: string, opts?: {
119
+ categoryId?: string;
120
+ limit?: number;
121
+ offset?: number;
122
+ }): Promise<KnowledgeBaseArticle[]>;
123
+ }
124
+
125
+ interface TicketsApi {
126
+ list(filter?: SupportTicketFilterInput, opts?: {
127
+ limit?: number;
128
+ offset?: number;
129
+ }): Promise<SupportTicketConnection>;
130
+ get(id: string): Promise<SupportTicket | null>;
131
+ create(input: CreateSupportTicketInput): Promise<SupportTicket>;
132
+ comment(ticketId: string, message: string, opts?: {
133
+ type?: CreateSupportMessageInput['type'];
134
+ attachments?: string[];
135
+ isInternal?: boolean;
136
+ context?: SupportContextInput;
137
+ }): Promise<SupportMessage>;
138
+ close(id: string): Promise<SupportTicket>;
139
+ }
140
+
141
+ interface SupportApi {
142
+ tickets: TicketsApi;
143
+ kb: KbApi;
144
+ }
145
+ declare const supportModule: SdkModule<SupportApi>;
146
+
147
+ export { type ArticleStatus, type CreateSupportMessageInput, type CreateSupportTicketInput, type KbApi, type KnowledgeBaseArticle, type MessageType, type SupportApi, type SupportContextInput, type SupportMessage, type SupportTicket, type SupportTicketCategory, type SupportTicketConnection, type SupportTicketFilterInput, type SupportTicketPriority, type SupportTicketStatus, type TicketSource, type TicketsApi, supportModule as default };