@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
|
@@ -97,24 +97,132 @@ interface IntegrationsPaginationInput {
|
|
|
97
97
|
limit?: number;
|
|
98
98
|
offset?: number;
|
|
99
99
|
}
|
|
100
|
+
interface UpdateConnectionInput {
|
|
101
|
+
name?: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
config?: Json;
|
|
104
|
+
}
|
|
105
|
+
interface ConnectionTestResult {
|
|
106
|
+
success: boolean;
|
|
107
|
+
message: string;
|
|
108
|
+
latencyMs?: number | null;
|
|
109
|
+
}
|
|
110
|
+
interface OAuthInitiationResult {
|
|
111
|
+
redirectUrl: string;
|
|
112
|
+
state: string;
|
|
113
|
+
}
|
|
114
|
+
interface ApiKeyAuthInput {
|
|
115
|
+
connectionId: string;
|
|
116
|
+
apiKey: string;
|
|
117
|
+
}
|
|
118
|
+
interface BasicAuthInput {
|
|
119
|
+
connectionId: string;
|
|
120
|
+
username: string;
|
|
121
|
+
password: string;
|
|
122
|
+
}
|
|
123
|
+
interface BearerTokenAuthInput {
|
|
124
|
+
connectionId: string;
|
|
125
|
+
token: string;
|
|
126
|
+
}
|
|
127
|
+
interface InitiateOAuthInput {
|
|
128
|
+
connectionId: string;
|
|
129
|
+
redirectUri: string;
|
|
130
|
+
scopes?: string[];
|
|
131
|
+
}
|
|
132
|
+
interface CompleteOAuthInput {
|
|
133
|
+
connectionId: string;
|
|
134
|
+
code: string;
|
|
135
|
+
redirectUri: string;
|
|
136
|
+
state: string;
|
|
137
|
+
}
|
|
138
|
+
interface LogFilterInput {
|
|
139
|
+
action?: LogAction;
|
|
140
|
+
connectionId?: string;
|
|
141
|
+
level?: LogLevel;
|
|
142
|
+
startDate?: string;
|
|
143
|
+
endDate?: string;
|
|
144
|
+
}
|
|
145
|
+
interface IntegrationConnectionTagAssignment {
|
|
146
|
+
id: string;
|
|
147
|
+
entityId: string;
|
|
148
|
+
entityType: string;
|
|
149
|
+
tagId: string;
|
|
150
|
+
source: string;
|
|
151
|
+
assignedAt?: string | null;
|
|
152
|
+
assignedBy?: string | null;
|
|
153
|
+
metadata?: Json;
|
|
154
|
+
validFrom?: string | null;
|
|
155
|
+
validTo?: string | null;
|
|
156
|
+
}
|
|
157
|
+
interface TagConnectionInput {
|
|
158
|
+
entityId: string;
|
|
159
|
+
tagId: string;
|
|
160
|
+
source?: string;
|
|
161
|
+
metadata?: Json;
|
|
162
|
+
validFrom?: string;
|
|
163
|
+
validTo?: string;
|
|
164
|
+
}
|
|
165
|
+
interface UntagConnectionInput {
|
|
166
|
+
entityId: string;
|
|
167
|
+
tagId: string;
|
|
168
|
+
}
|
|
169
|
+
interface ReplaceConnectionTagsInput {
|
|
170
|
+
entityId: string;
|
|
171
|
+
tagIds: string[];
|
|
172
|
+
}
|
|
173
|
+
interface GetConnectionTagsInput {
|
|
174
|
+
entityId: string;
|
|
175
|
+
}
|
|
100
176
|
|
|
101
177
|
interface ConnectionsApi {
|
|
102
178
|
list(filter?: ConnectionFilterInput, pagination?: IntegrationsPaginationInput): Promise<ConnectionList>;
|
|
103
179
|
get(id: string): Promise<IntegrationConnection | null>;
|
|
104
180
|
add(input: CreateConnectionInput): Promise<IntegrationConnection>;
|
|
105
181
|
delete(id: string, deleteVaultSecret?: boolean): Promise<boolean>;
|
|
182
|
+
update(id: string, input: UpdateConnectionInput): Promise<IntegrationConnection>;
|
|
183
|
+
revoke(connectionId: string): Promise<IntegrationConnection>;
|
|
184
|
+
test(connectionId: string): Promise<ConnectionTestResult>;
|
|
185
|
+
linkToChannel(args: {
|
|
186
|
+
channelId: string;
|
|
187
|
+
connectionId: string;
|
|
188
|
+
organizationId: string;
|
|
189
|
+
}): Promise<IntegrationConnection>;
|
|
190
|
+
refreshToken(connectionId: string): Promise<IntegrationConnection>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface IntegrationsAuthApi {
|
|
194
|
+
apiKey(input: ApiKeyAuthInput): Promise<IntegrationConnection>;
|
|
195
|
+
basic(input: BasicAuthInput): Promise<IntegrationConnection>;
|
|
196
|
+
bearer(input: BearerTokenAuthInput): Promise<IntegrationConnection>;
|
|
197
|
+
oauthInitiate(input: InitiateOAuthInput): Promise<OAuthInitiationResult>;
|
|
198
|
+
oauthComplete(input: CompleteOAuthInput): Promise<IntegrationConnection>;
|
|
106
199
|
}
|
|
107
200
|
|
|
108
201
|
interface ProvidersApi {
|
|
109
202
|
list(filter?: ProviderFilterInput, pagination?: IntegrationsPaginationInput): Promise<ProviderList>;
|
|
110
203
|
get(id: string): Promise<IntegrationProvider | null>;
|
|
204
|
+
getByKey(key: string): Promise<IntegrationProvider | null>;
|
|
205
|
+
catalog(pagination?: IntegrationsPaginationInput): Promise<ProviderList>;
|
|
206
|
+
connectionsByProvider(providerId: string, pagination?: IntegrationsPaginationInput): Promise<ConnectionList>;
|
|
207
|
+
enable(id: string): Promise<IntegrationProvider>;
|
|
208
|
+
disable(id: string): Promise<IntegrationProvider>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface ConnectionTagsApi {
|
|
212
|
+
add(input: TagConnectionInput): Promise<IntegrationConnectionTagAssignment>;
|
|
213
|
+
remove(input: UntagConnectionInput): Promise<boolean>;
|
|
214
|
+
replace(input: ReplaceConnectionTagsInput): Promise<IntegrationConnectionTagAssignment[]>;
|
|
215
|
+
list(input: GetConnectionTagsInput): Promise<IntegrationConnectionTagAssignment[]>;
|
|
111
216
|
}
|
|
112
217
|
|
|
113
218
|
interface IntegrationsApi {
|
|
114
219
|
providers: ProvidersApi;
|
|
115
220
|
connections: ConnectionsApi;
|
|
221
|
+
auth: IntegrationsAuthApi;
|
|
222
|
+
tags: ConnectionTagsApi;
|
|
116
223
|
logs(connectionId: string, pagination?: IntegrationsPaginationInput): Promise<LogList>;
|
|
224
|
+
integrationLogs(filter?: LogFilterInput, pagination?: IntegrationsPaginationInput): Promise<LogList>;
|
|
117
225
|
}
|
|
118
226
|
declare const integrationsModule: SdkModule<IntegrationsApi>;
|
|
119
227
|
|
|
120
|
-
export { type AuthType, type ConnectionFilterInput, type ConnectionList, type ConnectionStatus, type ConnectionsApi, type CreateConnectionInput, type IntegrationConnection, type IntegrationLog, type IntegrationProvider, type IntegrationsApi, type IntegrationsPaginationInput, type LogAction, type LogLevel, type LogList, type ProviderCategory, type ProviderFilterInput, type ProviderList, type ProvidersApi, integrationsModule as default };
|
|
228
|
+
export { type ApiKeyAuthInput, type AuthType, type BasicAuthInput, type BearerTokenAuthInput, type CompleteOAuthInput, type ConnectionFilterInput, type ConnectionList, type ConnectionStatus, type ConnectionTagsApi, type ConnectionTestResult, type ConnectionsApi, type CreateConnectionInput, type GetConnectionTagsInput, type InitiateOAuthInput, type IntegrationConnection, type IntegrationConnectionTagAssignment, type IntegrationLog, type IntegrationProvider, type IntegrationsApi, type IntegrationsAuthApi, type IntegrationsPaginationInput, type LogAction, type LogFilterInput, type LogLevel, type LogList, type OAuthInitiationResult, type ProviderCategory, type ProviderFilterInput, type ProviderList, type ProvidersApi, type ReplaceConnectionTagsInput, type TagConnectionInput, type UntagConnectionInput, type UpdateConnectionInput, integrationsModule as default };
|
|
@@ -97,24 +97,132 @@ interface IntegrationsPaginationInput {
|
|
|
97
97
|
limit?: number;
|
|
98
98
|
offset?: number;
|
|
99
99
|
}
|
|
100
|
+
interface UpdateConnectionInput {
|
|
101
|
+
name?: string;
|
|
102
|
+
description?: string;
|
|
103
|
+
config?: Json;
|
|
104
|
+
}
|
|
105
|
+
interface ConnectionTestResult {
|
|
106
|
+
success: boolean;
|
|
107
|
+
message: string;
|
|
108
|
+
latencyMs?: number | null;
|
|
109
|
+
}
|
|
110
|
+
interface OAuthInitiationResult {
|
|
111
|
+
redirectUrl: string;
|
|
112
|
+
state: string;
|
|
113
|
+
}
|
|
114
|
+
interface ApiKeyAuthInput {
|
|
115
|
+
connectionId: string;
|
|
116
|
+
apiKey: string;
|
|
117
|
+
}
|
|
118
|
+
interface BasicAuthInput {
|
|
119
|
+
connectionId: string;
|
|
120
|
+
username: string;
|
|
121
|
+
password: string;
|
|
122
|
+
}
|
|
123
|
+
interface BearerTokenAuthInput {
|
|
124
|
+
connectionId: string;
|
|
125
|
+
token: string;
|
|
126
|
+
}
|
|
127
|
+
interface InitiateOAuthInput {
|
|
128
|
+
connectionId: string;
|
|
129
|
+
redirectUri: string;
|
|
130
|
+
scopes?: string[];
|
|
131
|
+
}
|
|
132
|
+
interface CompleteOAuthInput {
|
|
133
|
+
connectionId: string;
|
|
134
|
+
code: string;
|
|
135
|
+
redirectUri: string;
|
|
136
|
+
state: string;
|
|
137
|
+
}
|
|
138
|
+
interface LogFilterInput {
|
|
139
|
+
action?: LogAction;
|
|
140
|
+
connectionId?: string;
|
|
141
|
+
level?: LogLevel;
|
|
142
|
+
startDate?: string;
|
|
143
|
+
endDate?: string;
|
|
144
|
+
}
|
|
145
|
+
interface IntegrationConnectionTagAssignment {
|
|
146
|
+
id: string;
|
|
147
|
+
entityId: string;
|
|
148
|
+
entityType: string;
|
|
149
|
+
tagId: string;
|
|
150
|
+
source: string;
|
|
151
|
+
assignedAt?: string | null;
|
|
152
|
+
assignedBy?: string | null;
|
|
153
|
+
metadata?: Json;
|
|
154
|
+
validFrom?: string | null;
|
|
155
|
+
validTo?: string | null;
|
|
156
|
+
}
|
|
157
|
+
interface TagConnectionInput {
|
|
158
|
+
entityId: string;
|
|
159
|
+
tagId: string;
|
|
160
|
+
source?: string;
|
|
161
|
+
metadata?: Json;
|
|
162
|
+
validFrom?: string;
|
|
163
|
+
validTo?: string;
|
|
164
|
+
}
|
|
165
|
+
interface UntagConnectionInput {
|
|
166
|
+
entityId: string;
|
|
167
|
+
tagId: string;
|
|
168
|
+
}
|
|
169
|
+
interface ReplaceConnectionTagsInput {
|
|
170
|
+
entityId: string;
|
|
171
|
+
tagIds: string[];
|
|
172
|
+
}
|
|
173
|
+
interface GetConnectionTagsInput {
|
|
174
|
+
entityId: string;
|
|
175
|
+
}
|
|
100
176
|
|
|
101
177
|
interface ConnectionsApi {
|
|
102
178
|
list(filter?: ConnectionFilterInput, pagination?: IntegrationsPaginationInput): Promise<ConnectionList>;
|
|
103
179
|
get(id: string): Promise<IntegrationConnection | null>;
|
|
104
180
|
add(input: CreateConnectionInput): Promise<IntegrationConnection>;
|
|
105
181
|
delete(id: string, deleteVaultSecret?: boolean): Promise<boolean>;
|
|
182
|
+
update(id: string, input: UpdateConnectionInput): Promise<IntegrationConnection>;
|
|
183
|
+
revoke(connectionId: string): Promise<IntegrationConnection>;
|
|
184
|
+
test(connectionId: string): Promise<ConnectionTestResult>;
|
|
185
|
+
linkToChannel(args: {
|
|
186
|
+
channelId: string;
|
|
187
|
+
connectionId: string;
|
|
188
|
+
organizationId: string;
|
|
189
|
+
}): Promise<IntegrationConnection>;
|
|
190
|
+
refreshToken(connectionId: string): Promise<IntegrationConnection>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface IntegrationsAuthApi {
|
|
194
|
+
apiKey(input: ApiKeyAuthInput): Promise<IntegrationConnection>;
|
|
195
|
+
basic(input: BasicAuthInput): Promise<IntegrationConnection>;
|
|
196
|
+
bearer(input: BearerTokenAuthInput): Promise<IntegrationConnection>;
|
|
197
|
+
oauthInitiate(input: InitiateOAuthInput): Promise<OAuthInitiationResult>;
|
|
198
|
+
oauthComplete(input: CompleteOAuthInput): Promise<IntegrationConnection>;
|
|
106
199
|
}
|
|
107
200
|
|
|
108
201
|
interface ProvidersApi {
|
|
109
202
|
list(filter?: ProviderFilterInput, pagination?: IntegrationsPaginationInput): Promise<ProviderList>;
|
|
110
203
|
get(id: string): Promise<IntegrationProvider | null>;
|
|
204
|
+
getByKey(key: string): Promise<IntegrationProvider | null>;
|
|
205
|
+
catalog(pagination?: IntegrationsPaginationInput): Promise<ProviderList>;
|
|
206
|
+
connectionsByProvider(providerId: string, pagination?: IntegrationsPaginationInput): Promise<ConnectionList>;
|
|
207
|
+
enable(id: string): Promise<IntegrationProvider>;
|
|
208
|
+
disable(id: string): Promise<IntegrationProvider>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface ConnectionTagsApi {
|
|
212
|
+
add(input: TagConnectionInput): Promise<IntegrationConnectionTagAssignment>;
|
|
213
|
+
remove(input: UntagConnectionInput): Promise<boolean>;
|
|
214
|
+
replace(input: ReplaceConnectionTagsInput): Promise<IntegrationConnectionTagAssignment[]>;
|
|
215
|
+
list(input: GetConnectionTagsInput): Promise<IntegrationConnectionTagAssignment[]>;
|
|
111
216
|
}
|
|
112
217
|
|
|
113
218
|
interface IntegrationsApi {
|
|
114
219
|
providers: ProvidersApi;
|
|
115
220
|
connections: ConnectionsApi;
|
|
221
|
+
auth: IntegrationsAuthApi;
|
|
222
|
+
tags: ConnectionTagsApi;
|
|
116
223
|
logs(connectionId: string, pagination?: IntegrationsPaginationInput): Promise<LogList>;
|
|
224
|
+
integrationLogs(filter?: LogFilterInput, pagination?: IntegrationsPaginationInput): Promise<LogList>;
|
|
117
225
|
}
|
|
118
226
|
declare const integrationsModule: SdkModule<IntegrationsApi>;
|
|
119
227
|
|
|
120
|
-
export { type AuthType, type ConnectionFilterInput, type ConnectionList, type ConnectionStatus, type ConnectionsApi, type CreateConnectionInput, type IntegrationConnection, type IntegrationLog, type IntegrationProvider, type IntegrationsApi, type IntegrationsPaginationInput, type LogAction, type LogLevel, type LogList, type ProviderCategory, type ProviderFilterInput, type ProviderList, type ProvidersApi, integrationsModule as default };
|
|
228
|
+
export { type ApiKeyAuthInput, type AuthType, type BasicAuthInput, type BearerTokenAuthInput, type CompleteOAuthInput, type ConnectionFilterInput, type ConnectionList, type ConnectionStatus, type ConnectionTagsApi, type ConnectionTestResult, type ConnectionsApi, type CreateConnectionInput, type GetConnectionTagsInput, type InitiateOAuthInput, type IntegrationConnection, type IntegrationConnectionTagAssignment, type IntegrationLog, type IntegrationProvider, type IntegrationsApi, type IntegrationsAuthApi, type IntegrationsPaginationInput, type LogAction, type LogFilterInput, type LogLevel, type LogList, type OAuthInitiationResult, type ProviderCategory, type ProviderFilterInput, type ProviderList, type ProvidersApi, type ReplaceConnectionTagsInput, type TagConnectionInput, type UntagConnectionInput, type UpdateConnectionInput, integrationsModule as default };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
1
|
+
var r=`
|
|
2
2
|
fragment IntegrationProviderFields on IntegrationProvider {
|
|
3
3
|
id key name category authType description icon color baseUrl
|
|
4
4
|
isEnabled isBuiltIn defaultScopes supportedFeatures connectionCount
|
|
5
5
|
createdAt updatedAt
|
|
6
6
|
}
|
|
7
|
-
`,
|
|
7
|
+
`,i=`
|
|
8
8
|
fragment IntegrationConnectionFields on IntegrationConnection {
|
|
9
9
|
id name description providerId status config errorMessage
|
|
10
10
|
externalAccountEmail externalAccountId externalAccountName
|
|
11
11
|
grantedScopes channelId organizationId workspaceId
|
|
12
12
|
createdBy createdAt updatedAt lastUsedAt
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,p=`
|
|
15
15
|
fragment IntegrationLogFields on IntegrationLog {
|
|
16
16
|
id action level message connectionId actorId
|
|
17
17
|
metadata errorDetails createdAt
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
20
|
-
${
|
|
19
|
+
`,I=`
|
|
20
|
+
${r}
|
|
21
21
|
query GetProviders($filter: ProviderFilterInput, $pagination: IntegrationsPaginationInput) {
|
|
22
22
|
getProviders(filter: $filter, pagination: $pagination) {
|
|
23
23
|
items { ...IntegrationProviderFields }
|
|
@@ -25,13 +25,13 @@ var c=`
|
|
|
25
25
|
hasMore
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
29
|
-
${
|
|
28
|
+
`,u=`
|
|
29
|
+
${r}
|
|
30
30
|
query GetProvider($id: ID!) {
|
|
31
31
|
getProvider(id: $id) { ...IntegrationProviderFields }
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
34
|
-
${
|
|
33
|
+
`,d=`
|
|
34
|
+
${i}
|
|
35
35
|
query GetConnections($filter: ConnectionFilterInput, $pagination: IntegrationsPaginationInput) {
|
|
36
36
|
getConnections(filter: $filter, pagination: $pagination) {
|
|
37
37
|
items { ...IntegrationConnectionFields }
|
|
@@ -39,22 +39,22 @@ var c=`
|
|
|
39
39
|
hasMore
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
43
|
-
${
|
|
42
|
+
`,C=`
|
|
43
|
+
${i}
|
|
44
44
|
query GetConnection($id: ID!) {
|
|
45
45
|
getConnection(id: $id) { ...IntegrationConnectionFields }
|
|
46
46
|
}
|
|
47
47
|
`,l=`
|
|
48
|
-
${
|
|
48
|
+
${i}
|
|
49
49
|
mutation CreateConnection($input: CreateConnectionInput!) {
|
|
50
50
|
createConnection(input: $input) { ...IntegrationConnectionFields }
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`,T=`
|
|
53
53
|
mutation DeleteConnection($id: ID!, $deleteVaultSecret: Boolean) {
|
|
54
54
|
deleteConnection(id: $id, deleteVaultSecret: $deleteVaultSecret)
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
${
|
|
56
|
+
`,A=`
|
|
57
|
+
${p}
|
|
58
58
|
query GetConnectionLogs($connectionId: ID!, $pagination: IntegrationsPaginationInput) {
|
|
59
59
|
getConnectionLogs(connectionId: $connectionId, pagination: $pagination) {
|
|
60
60
|
items { ...IntegrationLogFields }
|
|
@@ -62,4 +62,120 @@ var c=`
|
|
|
62
62
|
hasMore
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
`,E=`
|
|
66
|
+
${p}
|
|
67
|
+
query GetIntegrationLogs($filter: LogFilterInput, $pagination: IntegrationsPaginationInput) {
|
|
68
|
+
getIntegrationLogs(filter: $filter, pagination: $pagination) {
|
|
69
|
+
items { ...IntegrationLogFields }
|
|
70
|
+
total
|
|
71
|
+
hasMore
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
`,P=`
|
|
75
|
+
${i}
|
|
76
|
+
mutation UpdateConnection($id: ID!, $input: UpdateConnectionInput!) {
|
|
77
|
+
updateConnection(id: $id, input: $input) { ...IntegrationConnectionFields }
|
|
78
|
+
}
|
|
79
|
+
`,m=`
|
|
80
|
+
${i}
|
|
81
|
+
mutation RevokeConnection($connectionId: ID!) {
|
|
82
|
+
revokeConnection(connectionId: $connectionId) { ...IntegrationConnectionFields }
|
|
83
|
+
}
|
|
84
|
+
`,N=`
|
|
85
|
+
mutation TestConnection($connectionId: ID!) {
|
|
86
|
+
testConnection(connectionId: $connectionId) { success message latencyMs }
|
|
87
|
+
}
|
|
88
|
+
`,O=`
|
|
89
|
+
${i}
|
|
90
|
+
mutation LinkIntegrationToChannel($channelId: String!, $connectionId: ID!, $organizationId: String!) {
|
|
91
|
+
linkIntegrationToChannel(channelId: $channelId, connectionId: $connectionId, organizationId: $organizationId) {
|
|
92
|
+
...IntegrationConnectionFields
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`,y=`
|
|
96
|
+
${i}
|
|
97
|
+
mutation RefreshConnectionToken($connectionId: ID!) {
|
|
98
|
+
refreshConnectionToken(connectionId: $connectionId) { ...IntegrationConnectionFields }
|
|
99
|
+
}
|
|
100
|
+
`,h=`
|
|
101
|
+
${i}
|
|
102
|
+
mutation AuthenticateWithApiKey($input: ApiKeyAuthInput!) {
|
|
103
|
+
authenticateWithApiKey(input: $input) { ...IntegrationConnectionFields }
|
|
104
|
+
}
|
|
105
|
+
`,$=`
|
|
106
|
+
${i}
|
|
107
|
+
mutation AuthenticateWithBasicAuth($input: BasicAuthInput!) {
|
|
108
|
+
authenticateWithBasicAuth(input: $input) { ...IntegrationConnectionFields }
|
|
109
|
+
}
|
|
110
|
+
`,v=`
|
|
111
|
+
${i}
|
|
112
|
+
mutation AuthenticateWithBearerToken($input: BearerTokenAuthInput!) {
|
|
113
|
+
authenticateWithBearerToken(input: $input) { ...IntegrationConnectionFields }
|
|
114
|
+
}
|
|
115
|
+
`,_=`
|
|
116
|
+
mutation InitiateOAuth($input: InitiateOAuthInput!) {
|
|
117
|
+
initiateOAuth(input: $input) { redirectUrl state }
|
|
118
|
+
}
|
|
119
|
+
`,L=`
|
|
120
|
+
${i}
|
|
121
|
+
mutation CompleteOAuth($input: CompleteOAuthInput!) {
|
|
122
|
+
completeOAuth(input: $input) { ...IntegrationConnectionFields }
|
|
123
|
+
}
|
|
124
|
+
`,R=`
|
|
125
|
+
${r}
|
|
126
|
+
query GetProviderByKey($key: String!) {
|
|
127
|
+
getProviderByKey(key: $key) { ...IntegrationProviderFields }
|
|
128
|
+
}
|
|
129
|
+
`,f=`
|
|
130
|
+
${r}
|
|
131
|
+
query GetProviderCatalog($pagination: IntegrationsPaginationInput) {
|
|
132
|
+
getProviderCatalog(pagination: $pagination) {
|
|
133
|
+
items { ...IntegrationProviderFields }
|
|
134
|
+
total
|
|
135
|
+
hasMore
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`,G=`
|
|
139
|
+
${i}
|
|
140
|
+
query GetConnectionsByProvider($providerId: ID!, $pagination: IntegrationsPaginationInput) {
|
|
141
|
+
getConnectionsByProvider(providerId: $providerId, pagination: $pagination) {
|
|
142
|
+
items { ...IntegrationConnectionFields }
|
|
143
|
+
total
|
|
144
|
+
hasMore
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
`,x=`
|
|
148
|
+
${r}
|
|
149
|
+
mutation EnableProvider($id: ID!) {
|
|
150
|
+
enableProvider(id: $id) { ...IntegrationProviderFields }
|
|
151
|
+
}
|
|
152
|
+
`,S=`
|
|
153
|
+
${r}
|
|
154
|
+
mutation DisableProvider($id: ID!) {
|
|
155
|
+
disableProvider(id: $id) { ...IntegrationProviderFields }
|
|
156
|
+
}
|
|
157
|
+
`,g=`
|
|
158
|
+
fragment ConnectionTagFields on IntegrationConnectionTagAssignment {
|
|
159
|
+
id entityId entityType tagId source assignedAt assignedBy
|
|
160
|
+
metadata validFrom validTo
|
|
161
|
+
}
|
|
162
|
+
`,k=`
|
|
163
|
+
${g}
|
|
164
|
+
mutation TagConnection($input: TagConnectionInput!) {
|
|
165
|
+
tagConnection(input: $input) { ...ConnectionTagFields }
|
|
166
|
+
}
|
|
167
|
+
`,F=`
|
|
168
|
+
mutation UntagConnection($input: UntagConnectionInput!) {
|
|
169
|
+
untagConnection(input: $input)
|
|
170
|
+
}
|
|
171
|
+
`,B=`
|
|
172
|
+
${g}
|
|
173
|
+
mutation ReplaceConnectionTags($input: ReplaceConnectionTagsInput!) {
|
|
174
|
+
replaceConnectionTags(input: $input) { ...ConnectionTagFields }
|
|
175
|
+
}
|
|
176
|
+
`,q=`
|
|
177
|
+
${g}
|
|
178
|
+
query GetConnectionTags($input: GetConnectionTagsInput!) {
|
|
179
|
+
getConnectionTags(input: $input) { ...ConnectionTagFields }
|
|
180
|
+
}
|
|
181
|
+
`;function D(o){let{workspace:e}=o.gql;return {async list(t,n){return (await e.request(d,{filter:t,pagination:n})).getConnections},async get(t){return (await e.request(C,{id:t})).getConnection},async add(t){return (await e.request(l,{input:t})).createConnection},async delete(t,n){return (await e.request(T,{id:t,deleteVaultSecret:n??null})).deleteConnection},async update(t,n){return (await e.request(P,{id:t,input:n})).updateConnection},async revoke(t){return (await e.request(m,{connectionId:t})).revokeConnection},async test(t){return (await e.request(N,{connectionId:t})).testConnection},async linkToChannel({channelId:t,connectionId:n,organizationId:a}){return (await e.request(O,{channelId:t,connectionId:n,organizationId:a})).linkIntegrationToChannel},async refreshToken(t){return (await e.request(y,{connectionId:t})).refreshConnectionToken}}}function w(o){let{workspace:e}=o.gql;return {async apiKey(t){return (await e.request(h,{input:t})).authenticateWithApiKey},async basic(t){return (await e.request($,{input:t})).authenticateWithBasicAuth},async bearer(t){return (await e.request(v,{input:t})).authenticateWithBearerToken},async oauthInitiate(t){return (await e.request(_,{input:t})).initiateOAuth},async oauthComplete(t){return (await e.request(L,{input:t})).completeOAuth}}}function U(o){let{workspace:e}=o.gql;return {async list(t,n){return (await e.request(I,{filter:t,pagination:n})).getProviders},async get(t){return (await e.request(u,{id:t})).getProvider},async getByKey(t){return (await e.request(R,{key:t})).getProviderByKey},async catalog(t){return (await e.request(f,{pagination:t})).getProviderCatalog},async connectionsByProvider(t,n){return (await e.request(G,{providerId:t,pagination:n})).getConnectionsByProvider},async enable(t){return (await e.request(x,{id:t})).enableProvider},async disable(t){return (await e.request(S,{id:t})).disableProvider}}}function K(o){let{workspace:e}=o.gql;return {async add(t){return (await e.request(k,{input:t})).tagConnection},async remove(t){return (await e.request(F,{input:t})).untagConnection},async replace(t){return (await e.request(B,{input:t})).replaceConnectionTags},async list(t){return (await e.request(q,{input:t})).getConnectionTags}}}var b={id:"integrations",version:"1.0.0",displayName:"Integrations",dependsOn:["auth"],attach(o){let{workspace:e}=o.gql;return {providers:U(o),connections:D(o),auth:w(o),tags:K(o),async logs(t,n){return (await e.request(A,{connectionId:t,pagination:n})).getConnectionLogs},async integrationLogs(t,n){return (await e.request(E,{filter:t,pagination:n})).getIntegrationLogs}}}},gt=b;export{gt as default};
|