@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,146 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type ChannelPlatform = 'EMAIL' | 'SLACK' | 'TELEGRAM' | 'WHATSAPP' | 'SMS' | 'WEB' | 'PUSH' | 'IN_APP' | 'WEBHOOK' | 'DISCORD';
5
+ type ChannelStatus = 'ACTIVE' | 'INACTIVE' | 'ARCHIVED' | 'PENDING';
6
+ type ChannelType = 'NOTIFICATION' | 'BOT' | 'BOTH';
7
+ type ConnectionStatus = 'ACTIVE' | 'INACTIVE' | 'ERROR' | 'PENDING';
8
+ interface Channel {
9
+ id: string;
10
+ name: string;
11
+ description?: string | null;
12
+ platform: ChannelPlatform;
13
+ type: ChannelType;
14
+ status: ChannelStatus;
15
+ organizationId: string;
16
+ configuration?: Json;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ }
20
+ interface ChannelList {
21
+ items: Channel[];
22
+ total: number;
23
+ hasMore: boolean;
24
+ }
25
+ interface ChannelFilterInput {
26
+ platform?: ChannelPlatform;
27
+ status?: ChannelStatus;
28
+ type?: ChannelType;
29
+ organizationId?: string;
30
+ search?: string;
31
+ }
32
+ interface ChannelPaginationInput {
33
+ cursor?: string;
34
+ limit?: number;
35
+ offset?: number;
36
+ }
37
+ interface CreateChannelInput {
38
+ name: string;
39
+ platform: ChannelPlatform;
40
+ type: ChannelType;
41
+ organizationId: string;
42
+ description?: string;
43
+ configuration?: Json;
44
+ }
45
+ interface UpdateChannelInput {
46
+ name?: string;
47
+ description?: string;
48
+ configuration?: Json;
49
+ }
50
+ interface SendMessageInput {
51
+ channelId: string;
52
+ recipientId?: string;
53
+ externalUserId?: string;
54
+ content: string;
55
+ metadata?: Json;
56
+ }
57
+ interface MessageDeliveryResult {
58
+ success: boolean;
59
+ attemptId?: string | null;
60
+ externalMessageId?: string | null;
61
+ error?: string | null;
62
+ }
63
+ interface MessageDeliveryAttempt {
64
+ id: string;
65
+ channelId: string;
66
+ status: string;
67
+ attemptNumber: number;
68
+ externalMessageId?: string | null;
69
+ errorMessage?: string | null;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ }
73
+ interface DeliveryAttemptList {
74
+ items: MessageDeliveryAttempt[];
75
+ hasMore: boolean;
76
+ cursor?: string | null;
77
+ }
78
+ interface ChannelConnection {
79
+ id: string;
80
+ channelId: string;
81
+ status: ConnectionStatus;
82
+ externalAccountId?: string | null;
83
+ externalAccountName?: string | null;
84
+ createdAt: string;
85
+ updatedAt: string;
86
+ }
87
+ interface ChannelConnectionList {
88
+ items: ChannelConnection[];
89
+ hasMore: boolean;
90
+ cursor?: string | null;
91
+ }
92
+ interface UserPlatformConnection {
93
+ id: string;
94
+ channelId: string;
95
+ externalUserId?: string | null;
96
+ internalUserId?: string | null;
97
+ notificationsEnabled: boolean;
98
+ createdAt: string;
99
+ updatedAt: string;
100
+ }
101
+ interface UserPlatformConnectionList {
102
+ items: UserPlatformConnection[];
103
+ hasMore: boolean;
104
+ cursor?: string | null;
105
+ }
106
+ interface WebhookEvent {
107
+ id: string;
108
+ channelId: string;
109
+ eventType: string;
110
+ payload?: Json;
111
+ processed: boolean;
112
+ createdAt: string;
113
+ }
114
+ interface WebhookEventList {
115
+ items: WebhookEvent[];
116
+ hasMore: boolean;
117
+ cursor?: string | null;
118
+ }
119
+
120
+ interface ChannelsApi {
121
+ list(filter?: ChannelFilterInput, pagination?: ChannelPaginationInput): Promise<ChannelList>;
122
+ get(id: string): Promise<Channel | null>;
123
+ create(input: CreateChannelInput): Promise<Channel>;
124
+ update(id: string, input: UpdateChannelInput): Promise<Channel>;
125
+ delete(id: string): Promise<boolean>;
126
+ send(input: SendMessageInput): Promise<MessageDeliveryResult>;
127
+ deliveries(channelId: string, opts?: {
128
+ cursor?: string;
129
+ limit?: number;
130
+ }): Promise<DeliveryAttemptList>;
131
+ users(channelId: string, opts?: {
132
+ cursor?: string;
133
+ pagination?: ChannelPaginationInput;
134
+ }): Promise<UserPlatformConnectionList>;
135
+ webhooks(channelId: string, opts?: {
136
+ cursor?: string;
137
+ limit?: number;
138
+ }): Promise<WebhookEventList>;
139
+ connections(organizationId: string, opts?: {
140
+ cursor?: string;
141
+ pagination?: ChannelPaginationInput;
142
+ }): Promise<ChannelConnectionList>;
143
+ }
144
+ declare const channelsModule: SdkModule<ChannelsApi>;
145
+
146
+ export { type Channel, type ChannelConnection, type ChannelConnectionList, type ChannelFilterInput, type ChannelList, type ChannelPaginationInput, type ChannelPlatform, type ChannelStatus, type ChannelType, type ChannelsApi, type ConnectionStatus, type CreateChannelInput, type DeliveryAttemptList, type MessageDeliveryAttempt, type MessageDeliveryResult, type SendMessageInput, type UpdateChannelInput, type UserPlatformConnection, type UserPlatformConnectionList, type WebhookEvent, type WebhookEventList, channelsModule as default };
@@ -0,0 +1,146 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
2
+ import 'graphql-request';
3
+
4
+ type ChannelPlatform = 'EMAIL' | 'SLACK' | 'TELEGRAM' | 'WHATSAPP' | 'SMS' | 'WEB' | 'PUSH' | 'IN_APP' | 'WEBHOOK' | 'DISCORD';
5
+ type ChannelStatus = 'ACTIVE' | 'INACTIVE' | 'ARCHIVED' | 'PENDING';
6
+ type ChannelType = 'NOTIFICATION' | 'BOT' | 'BOTH';
7
+ type ConnectionStatus = 'ACTIVE' | 'INACTIVE' | 'ERROR' | 'PENDING';
8
+ interface Channel {
9
+ id: string;
10
+ name: string;
11
+ description?: string | null;
12
+ platform: ChannelPlatform;
13
+ type: ChannelType;
14
+ status: ChannelStatus;
15
+ organizationId: string;
16
+ configuration?: Json;
17
+ createdAt: string;
18
+ updatedAt: string;
19
+ }
20
+ interface ChannelList {
21
+ items: Channel[];
22
+ total: number;
23
+ hasMore: boolean;
24
+ }
25
+ interface ChannelFilterInput {
26
+ platform?: ChannelPlatform;
27
+ status?: ChannelStatus;
28
+ type?: ChannelType;
29
+ organizationId?: string;
30
+ search?: string;
31
+ }
32
+ interface ChannelPaginationInput {
33
+ cursor?: string;
34
+ limit?: number;
35
+ offset?: number;
36
+ }
37
+ interface CreateChannelInput {
38
+ name: string;
39
+ platform: ChannelPlatform;
40
+ type: ChannelType;
41
+ organizationId: string;
42
+ description?: string;
43
+ configuration?: Json;
44
+ }
45
+ interface UpdateChannelInput {
46
+ name?: string;
47
+ description?: string;
48
+ configuration?: Json;
49
+ }
50
+ interface SendMessageInput {
51
+ channelId: string;
52
+ recipientId?: string;
53
+ externalUserId?: string;
54
+ content: string;
55
+ metadata?: Json;
56
+ }
57
+ interface MessageDeliveryResult {
58
+ success: boolean;
59
+ attemptId?: string | null;
60
+ externalMessageId?: string | null;
61
+ error?: string | null;
62
+ }
63
+ interface MessageDeliveryAttempt {
64
+ id: string;
65
+ channelId: string;
66
+ status: string;
67
+ attemptNumber: number;
68
+ externalMessageId?: string | null;
69
+ errorMessage?: string | null;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ }
73
+ interface DeliveryAttemptList {
74
+ items: MessageDeliveryAttempt[];
75
+ hasMore: boolean;
76
+ cursor?: string | null;
77
+ }
78
+ interface ChannelConnection {
79
+ id: string;
80
+ channelId: string;
81
+ status: ConnectionStatus;
82
+ externalAccountId?: string | null;
83
+ externalAccountName?: string | null;
84
+ createdAt: string;
85
+ updatedAt: string;
86
+ }
87
+ interface ChannelConnectionList {
88
+ items: ChannelConnection[];
89
+ hasMore: boolean;
90
+ cursor?: string | null;
91
+ }
92
+ interface UserPlatformConnection {
93
+ id: string;
94
+ channelId: string;
95
+ externalUserId?: string | null;
96
+ internalUserId?: string | null;
97
+ notificationsEnabled: boolean;
98
+ createdAt: string;
99
+ updatedAt: string;
100
+ }
101
+ interface UserPlatformConnectionList {
102
+ items: UserPlatformConnection[];
103
+ hasMore: boolean;
104
+ cursor?: string | null;
105
+ }
106
+ interface WebhookEvent {
107
+ id: string;
108
+ channelId: string;
109
+ eventType: string;
110
+ payload?: Json;
111
+ processed: boolean;
112
+ createdAt: string;
113
+ }
114
+ interface WebhookEventList {
115
+ items: WebhookEvent[];
116
+ hasMore: boolean;
117
+ cursor?: string | null;
118
+ }
119
+
120
+ interface ChannelsApi {
121
+ list(filter?: ChannelFilterInput, pagination?: ChannelPaginationInput): Promise<ChannelList>;
122
+ get(id: string): Promise<Channel | null>;
123
+ create(input: CreateChannelInput): Promise<Channel>;
124
+ update(id: string, input: UpdateChannelInput): Promise<Channel>;
125
+ delete(id: string): Promise<boolean>;
126
+ send(input: SendMessageInput): Promise<MessageDeliveryResult>;
127
+ deliveries(channelId: string, opts?: {
128
+ cursor?: string;
129
+ limit?: number;
130
+ }): Promise<DeliveryAttemptList>;
131
+ users(channelId: string, opts?: {
132
+ cursor?: string;
133
+ pagination?: ChannelPaginationInput;
134
+ }): Promise<UserPlatformConnectionList>;
135
+ webhooks(channelId: string, opts?: {
136
+ cursor?: string;
137
+ limit?: number;
138
+ }): Promise<WebhookEventList>;
139
+ connections(organizationId: string, opts?: {
140
+ cursor?: string;
141
+ pagination?: ChannelPaginationInput;
142
+ }): Promise<ChannelConnectionList>;
143
+ }
144
+ declare const channelsModule: SdkModule<ChannelsApi>;
145
+
146
+ export { type Channel, type ChannelConnection, type ChannelConnectionList, type ChannelFilterInput, type ChannelList, type ChannelPaginationInput, type ChannelPlatform, type ChannelStatus, type ChannelType, type ChannelsApi, type ConnectionStatus, type CreateChannelInput, type DeliveryAttemptList, type MessageDeliveryAttempt, type MessageDeliveryResult, type SendMessageInput, type UpdateChannelInput, type UserPlatformConnection, type UserPlatformConnectionList, type WebhookEvent, type WebhookEventList, channelsModule as default };
@@ -0,0 +1,108 @@
1
+ var i=`
2
+ fragment ChannelFields on Channel {
3
+ id name description platform type status organizationId configuration
4
+ createdAt updatedAt
5
+ }
6
+ `,I=`
7
+ fragment ChannelConnectionFields on ChannelConnection {
8
+ id channelId status externalAccountId externalAccountName createdAt updatedAt
9
+ }
10
+ `,y=`
11
+ fragment UserPlatformConnectionFields on UserPlatformConnection {
12
+ id channelId externalUserId internalUserId notificationsEnabled createdAt updatedAt
13
+ }
14
+ `,A=`
15
+ fragment MessageDeliveryAttemptFields on MessageDeliveryAttempt {
16
+ id channelId status attemptNumber externalMessageId errorMessage
17
+ createdAt updatedAt
18
+ }
19
+ `,$=`
20
+ fragment WebhookEventFields on WebhookEvent {
21
+ id channelId eventType payload processed createdAt
22
+ }
23
+ `,s=`
24
+ ${i}
25
+ query GetChannels($filter: ChannelFilterInput, $pagination: ChannelPaginationInput) {
26
+ getChannels(filter: $filter, pagination: $pagination) {
27
+ items { ...ChannelFields }
28
+ total
29
+ hasMore
30
+ }
31
+ }
32
+ `,o=`
33
+ ${i}
34
+ query GetChannel($id: ID!) {
35
+ getChannel(id: $id) { ...ChannelFields }
36
+ }
37
+ `,r=`
38
+ ${i}
39
+ mutation CreateChannel($input: CreateChannelInput!) {
40
+ createChannel(input: $input) { ...ChannelFields }
41
+ }
42
+ `,l=`
43
+ ${i}
44
+ mutation UpdateChannel($id: ID!, $input: UpdateChannelInput!) {
45
+ updateChannel(id: $id, input: $input) { ...ChannelFields }
46
+ }
47
+ `,u="mutation DeleteChannel($id: ID!) { deleteChannel(id: $id) }",C=`
48
+ mutation SendMessage($input: SendMessageInput!) {
49
+ sendMessage(input: $input) {
50
+ success
51
+ attemptId
52
+ externalMessageId
53
+ error
54
+ }
55
+ }
56
+ `,c=`
57
+ ${A}
58
+ query GetChannelDeliveryAttempts($channelId: ID!, $cursor: String, $limit: Int) {
59
+ getChannelDeliveryAttempts(channelId: $channelId, cursor: $cursor, limit: $limit) {
60
+ items { ...MessageDeliveryAttemptFields }
61
+ hasMore
62
+ cursor
63
+ }
64
+ }
65
+ `,d=`
66
+ ${y}
67
+ query ListUserPlatformConnectionsByChannel(
68
+ $channelId: ID!
69
+ $cursor: String
70
+ $pagination: ChannelPaginationInput
71
+ ) {
72
+ listUserPlatformConnectionsByChannel(
73
+ channelId: $channelId
74
+ cursor: $cursor
75
+ pagination: $pagination
76
+ ) {
77
+ items { ...UserPlatformConnectionFields }
78
+ hasMore
79
+ cursor
80
+ }
81
+ }
82
+ `,h=`
83
+ ${$}
84
+ query GetChannelWebhookEvents($channelId: ID!, $cursor: String, $limit: Int) {
85
+ getChannelWebhookEvents(channelId: $channelId, cursor: $cursor, limit: $limit) {
86
+ items { ...WebhookEventFields }
87
+ hasMore
88
+ cursor
89
+ }
90
+ }
91
+ `,p=`
92
+ ${I}
93
+ query GetConnectionsByOrganization(
94
+ $organizationId: ID!
95
+ $cursor: String
96
+ $pagination: ChannelPaginationInput
97
+ ) {
98
+ getConnectionsByOrganization(
99
+ organizationId: $organizationId
100
+ cursor: $cursor
101
+ pagination: $pagination
102
+ ) {
103
+ items { ...ChannelConnectionFields }
104
+ hasMore
105
+ cursor
106
+ }
107
+ }
108
+ `;var N={id:"channels",version:"1.0.0",displayName:"Channels",dependsOn:["auth"],attach(g){let{global:t}=g.gql;return {async list(n,e){return (await t.request(s,{filter:n,pagination:e})).getChannels},async get(n){return (await t.request(o,{id:n})).getChannel},async create(n){return (await t.request(r,{input:n})).createChannel},async update(n,e){return (await t.request(l,{id:n,input:e})).updateChannel},async delete(n){return (await t.request(u,{id:n})).deleteChannel},async send(n){return (await t.request(C,{input:n})).sendMessage},async deliveries(n,e){return (await t.request(c,{channelId:n,cursor:e?.cursor??null,limit:e?.limit??null})).getChannelDeliveryAttempts},async users(n,e){return (await t.request(d,{channelId:n,cursor:e?.cursor??null,pagination:e?.pagination??null})).listUserPlatformConnectionsByChannel},async webhooks(n,e){return (await t.request(h,{channelId:n,cursor:e?.cursor??null,limit:e?.limit??null})).getChannelWebhookEvents},async connections(n,e){return (await t.request(p,{organizationId:n,cursor:e?.cursor??null,pagination:e?.pagination??null})).getConnectionsByOrganization}}}},P=N;export{P as default};
@@ -0,0 +1,61 @@
1
+ 'use strict';var s=`
2
+ fragment ConversationFields on Conversation {
3
+ id title type description avatarUrl settings unreadCount createdAt updatedAt
4
+ }
5
+ `,i=`
6
+ fragment MessageFields on Message {
7
+ id conversationId senderId content type metadata createdAt updatedAt
8
+ }
9
+ `,r=`
10
+ fragment ConversationSettingsFields on ConversationSettings {
11
+ conversationId notificationsEnabled muted pinned metadata
12
+ }
13
+ `,d=`
14
+ ${s}
15
+ query Conversations($filter: ConversationFilterInput, $first: Int, $after: String) {
16
+ conversations(filter: $filter, first: $first, after: $after) {
17
+ edges { cursor node { ...ConversationFields } }
18
+ pageInfo { hasNextPage endCursor }
19
+ }
20
+ }
21
+ `,C=`
22
+ ${s}
23
+ query Conversation($id: ID!) {
24
+ conversation(id: $id) { ...ConversationFields }
25
+ }
26
+ `,p=`
27
+ ${s}
28
+ mutation CreateConversation($input: CreateConversationInput!) {
29
+ createConversation(input: $input) { ...ConversationFields }
30
+ }
31
+ `,v=`
32
+ ${s}
33
+ mutation UpdateConversation($input: UpdateConversationInput!) {
34
+ updateConversation(input: $input) { ...ConversationFields }
35
+ }
36
+ `,u=`
37
+ mutation DeleteConversation($id: ID!) { deleteConversation(id: $id) }
38
+ `,c=`
39
+ ${i}
40
+ query Messages($conversationId: ID!, $first: Int, $after: String) {
41
+ messages(conversationId: $conversationId, first: $first, after: $after) {
42
+ edges { cursor node { ...MessageFields } }
43
+ pageInfo { hasNextPage endCursor }
44
+ }
45
+ }
46
+ `,S=`
47
+ ${i}
48
+ mutation SendMessage($input: SendMessageInput!) {
49
+ sendMessage(input: $input) { ...MessageFields }
50
+ }
51
+ `,g=`
52
+ ${r}
53
+ query ConversationSettings($conversationId: ID!) {
54
+ conversationSettings(conversationId: $conversationId) { ...ConversationSettingsFields }
55
+ }
56
+ `,I=`
57
+ ${r}
58
+ mutation UpdateConversationSettings($input: UpdateConversationSettingsInput!) {
59
+ updateConversationSettings(input: $input) { ...ConversationSettingsFields }
60
+ }
61
+ `;function E(o){let{workspace:n}=o.gql;return {async list(t,e){return (await n.request(d,{filter:t,first:e?.first,after:e?.after})).conversations},async get(t){return (await n.request(C,{id:t})).conversation},async create(t){return (await n.request(p,{input:t})).createConversation},async update(t){return (await n.request(v,{input:t})).updateConversation},async delete(t){return (await n.request(u,{id:t})).deleteConversation},messages:{async list(t,e){return (await n.request(c,{conversationId:t,first:e?.first,after:e?.after})).messages},async send(t){return (await n.request(S,{input:t})).sendMessage}},settings:{async get(t){return (await n.request(g,{conversationId:t})).conversationSettings},async set(t){return (await n.request(I,{input:t})).updateConversationSettings}}}}var f={id:"conversations",version:"1.0.0",displayName:"Conversations",dependsOn:["auth"],attach(o){return E(o)}},O=f;module.exports=O;
@@ -0,0 +1,112 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type ConversationType = 'DIRECT' | 'GROUP' | 'CHANNEL' | 'BOT' | 'AI';
5
+ interface Conversation {
6
+ id: string;
7
+ title?: string | null;
8
+ type: ConversationType;
9
+ description?: string | null;
10
+ avatarUrl?: string | null;
11
+ settings?: Json;
12
+ unreadCount?: number | null;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ }
16
+ interface ConversationConnection {
17
+ edges: Array<{
18
+ node: Conversation;
19
+ cursor?: string | null;
20
+ }>;
21
+ pageInfo: {
22
+ hasNextPage: boolean;
23
+ endCursor?: string | null;
24
+ };
25
+ }
26
+ interface ConversationFilterInput {
27
+ type?: ConversationType;
28
+ search?: string;
29
+ participantId?: string;
30
+ }
31
+ interface CreateConversationInput {
32
+ title?: string;
33
+ type: ConversationType;
34
+ description?: string;
35
+ participantIds?: string[];
36
+ metadata?: Json;
37
+ }
38
+ interface UpdateConversationInput {
39
+ id: string;
40
+ title?: string;
41
+ description?: string;
42
+ settings?: Json;
43
+ }
44
+ type MessageType = 'TEXT' | 'IMAGE' | 'FILE' | 'SYSTEM';
45
+ interface Message {
46
+ id: string;
47
+ conversationId: string;
48
+ senderId?: string | null;
49
+ content: string;
50
+ type: MessageType;
51
+ metadata?: Json;
52
+ createdAt: string;
53
+ updatedAt?: string | null;
54
+ }
55
+ interface MessageConnection {
56
+ edges: Array<{
57
+ node: Message;
58
+ cursor?: string | null;
59
+ }>;
60
+ pageInfo: {
61
+ hasNextPage: boolean;
62
+ endCursor?: string | null;
63
+ };
64
+ }
65
+ interface SendMessageInput {
66
+ conversationId: string;
67
+ content: string;
68
+ type?: MessageType;
69
+ metadata?: Json;
70
+ }
71
+ interface ConversationSettings {
72
+ conversationId: string;
73
+ notificationsEnabled?: boolean | null;
74
+ muted?: boolean | null;
75
+ pinned?: boolean | null;
76
+ metadata?: Json;
77
+ }
78
+ interface UpdateConversationSettingsInput {
79
+ conversationId: string;
80
+ notificationsEnabled?: boolean;
81
+ muted?: boolean;
82
+ pinned?: boolean;
83
+ metadata?: Json;
84
+ }
85
+
86
+ interface ConversationMessagesApi {
87
+ list(conversationId: string, opts?: {
88
+ first?: number;
89
+ after?: string;
90
+ }): Promise<MessageConnection>;
91
+ send(input: SendMessageInput): Promise<Message>;
92
+ }
93
+ interface ConversationSettingsApi {
94
+ get(conversationId: string): Promise<ConversationSettings | null>;
95
+ set(input: UpdateConversationSettingsInput): Promise<ConversationSettings>;
96
+ }
97
+ interface ConversationsApi {
98
+ list(filter?: ConversationFilterInput, opts?: {
99
+ first?: number;
100
+ after?: string;
101
+ }): Promise<ConversationConnection>;
102
+ get(id: string): Promise<Conversation | null>;
103
+ create(input: CreateConversationInput): Promise<Conversation>;
104
+ update(input: UpdateConversationInput): Promise<Conversation>;
105
+ delete(id: string): Promise<boolean>;
106
+ messages: ConversationMessagesApi;
107
+ settings: ConversationSettingsApi;
108
+ }
109
+
110
+ declare const conversationsModule: SdkModule<ConversationsApi>;
111
+
112
+ export { type Conversation, type ConversationConnection, type ConversationFilterInput, type ConversationMessagesApi, type ConversationSettings, type ConversationSettingsApi, type ConversationType, type ConversationsApi, type CreateConversationInput, type Message, type MessageConnection, type MessageType, type SendMessageInput, type UpdateConversationInput, type UpdateConversationSettingsInput, conversationsModule as default };
@@ -0,0 +1,112 @@
1
+ import { J as Json, S as SdkModule } from '../../module-JDbvil5h.js';
2
+ import 'graphql-request';
3
+
4
+ type ConversationType = 'DIRECT' | 'GROUP' | 'CHANNEL' | 'BOT' | 'AI';
5
+ interface Conversation {
6
+ id: string;
7
+ title?: string | null;
8
+ type: ConversationType;
9
+ description?: string | null;
10
+ avatarUrl?: string | null;
11
+ settings?: Json;
12
+ unreadCount?: number | null;
13
+ createdAt: string;
14
+ updatedAt: string;
15
+ }
16
+ interface ConversationConnection {
17
+ edges: Array<{
18
+ node: Conversation;
19
+ cursor?: string | null;
20
+ }>;
21
+ pageInfo: {
22
+ hasNextPage: boolean;
23
+ endCursor?: string | null;
24
+ };
25
+ }
26
+ interface ConversationFilterInput {
27
+ type?: ConversationType;
28
+ search?: string;
29
+ participantId?: string;
30
+ }
31
+ interface CreateConversationInput {
32
+ title?: string;
33
+ type: ConversationType;
34
+ description?: string;
35
+ participantIds?: string[];
36
+ metadata?: Json;
37
+ }
38
+ interface UpdateConversationInput {
39
+ id: string;
40
+ title?: string;
41
+ description?: string;
42
+ settings?: Json;
43
+ }
44
+ type MessageType = 'TEXT' | 'IMAGE' | 'FILE' | 'SYSTEM';
45
+ interface Message {
46
+ id: string;
47
+ conversationId: string;
48
+ senderId?: string | null;
49
+ content: string;
50
+ type: MessageType;
51
+ metadata?: Json;
52
+ createdAt: string;
53
+ updatedAt?: string | null;
54
+ }
55
+ interface MessageConnection {
56
+ edges: Array<{
57
+ node: Message;
58
+ cursor?: string | null;
59
+ }>;
60
+ pageInfo: {
61
+ hasNextPage: boolean;
62
+ endCursor?: string | null;
63
+ };
64
+ }
65
+ interface SendMessageInput {
66
+ conversationId: string;
67
+ content: string;
68
+ type?: MessageType;
69
+ metadata?: Json;
70
+ }
71
+ interface ConversationSettings {
72
+ conversationId: string;
73
+ notificationsEnabled?: boolean | null;
74
+ muted?: boolean | null;
75
+ pinned?: boolean | null;
76
+ metadata?: Json;
77
+ }
78
+ interface UpdateConversationSettingsInput {
79
+ conversationId: string;
80
+ notificationsEnabled?: boolean;
81
+ muted?: boolean;
82
+ pinned?: boolean;
83
+ metadata?: Json;
84
+ }
85
+
86
+ interface ConversationMessagesApi {
87
+ list(conversationId: string, opts?: {
88
+ first?: number;
89
+ after?: string;
90
+ }): Promise<MessageConnection>;
91
+ send(input: SendMessageInput): Promise<Message>;
92
+ }
93
+ interface ConversationSettingsApi {
94
+ get(conversationId: string): Promise<ConversationSettings | null>;
95
+ set(input: UpdateConversationSettingsInput): Promise<ConversationSettings>;
96
+ }
97
+ interface ConversationsApi {
98
+ list(filter?: ConversationFilterInput, opts?: {
99
+ first?: number;
100
+ after?: string;
101
+ }): Promise<ConversationConnection>;
102
+ get(id: string): Promise<Conversation | null>;
103
+ create(input: CreateConversationInput): Promise<Conversation>;
104
+ update(input: UpdateConversationInput): Promise<Conversation>;
105
+ delete(id: string): Promise<boolean>;
106
+ messages: ConversationMessagesApi;
107
+ settings: ConversationSettingsApi;
108
+ }
109
+
110
+ declare const conversationsModule: SdkModule<ConversationsApi>;
111
+
112
+ export { type Conversation, type ConversationConnection, type ConversationFilterInput, type ConversationMessagesApi, type ConversationSettings, type ConversationSettingsApi, type ConversationType, type ConversationsApi, type CreateConversationInput, type Message, type MessageConnection, type MessageType, type SendMessageInput, type UpdateConversationInput, type UpdateConversationSettingsInput, conversationsModule as default };