@burdenoff/sdk-libs 2026.522.1 → 2026.525.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/billing/index.cjs +46 -32
- package/dist/modules/billing/index.d.cts +19 -14
- package/dist/modules/billing/index.d.ts +19 -14
- package/dist/modules/billing/index.js +46 -32
- package/dist/modules/conversations/index.cjs +318 -39
- package/dist/modules/conversations/index.d.cts +255 -12
- package/dist/modules/conversations/index.d.ts +255 -12
- package/dist/modules/conversations/index.js +315 -36
- package/dist/modules/devportal/index.cjs +63 -48
- package/dist/modules/devportal/index.d.cts +84 -15
- package/dist/modules/devportal/index.d.ts +84 -15
- package/dist/modules/devportal/index.js +63 -48
- package/dist/modules/export/index.cjs +69 -15
- package/dist/modules/export/index.d.cts +59 -1
- package/dist/modules/export/index.d.ts +59 -1
- package/dist/modules/export/index.js +69 -15
- package/dist/modules/integrations/index.cjs +132 -16
- package/dist/modules/integrations/index.d.cts +109 -1
- package/dist/modules/integrations/index.d.ts +109 -1
- package/dist/modules/integrations/index.js +132 -16
- package/dist/modules/scheduler/index.cjs +194 -18
- package/dist/modules/scheduler/index.d.cts +193 -1
- package/dist/modules/scheduler/index.d.ts +193 -1
- package/dist/modules/scheduler/index.js +194 -18
- package/dist/modules/store/index.cjs +76 -54
- package/dist/modules/store/index.d.cts +101 -54
- package/dist/modules/store/index.d.ts +101 -54
- package/dist/modules/store/index.js +70 -48
- package/dist/modules/vibecontrols/index.cjs +1247 -289
- package/dist/modules/vibecontrols/index.d.cts +1603 -5
- package/dist/modules/vibecontrols/index.d.ts +1603 -5
- package/dist/modules/vibecontrols/index.js +1253 -295
- package/dist/modules/workspaces/index.cjs +19 -15
- package/dist/modules/workspaces/index.d.cts +54 -28
- package/dist/modules/workspaces/index.d.ts +54 -28
- package/dist/modules/workspaces/index.js +19 -15
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var D=["password","secret","clientSecret","apiKey","token","mfaCode","accessToken","refreshToken","workspaceToken","authorization"],S=/\b(eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+)\b/g;function h(n){let o=n.replace(S,"<redacted-jwt>");for(let t of D){let e=new RegExp(`("${t}"\\s*:\\s*")[^"]*(")`,"gi");o=o.replace(e,"$1<redacted>$2");}return o}var d=class extends Error{code;cause;constructor(o,t="SDK_ERROR",e){super(h(o)),this.name="SdkError",this.code=t,this.cause=e;}};var i=class extends d{constructor(o,t){super(o,"VALIDATION_ERROR",t),this.name="ValidationError";}};var u=`
|
|
2
2
|
fragment ExportPartFields on ExportPart {
|
|
3
3
|
id jobId partNumber fileName fileId sizeBytes checksum
|
|
4
4
|
entityTypes downloadUrl downloadExpiresAt context createdAt updatedAt
|
|
5
5
|
}
|
|
6
|
-
`,
|
|
7
|
-
${
|
|
6
|
+
`,s=`
|
|
7
|
+
${u}
|
|
8
8
|
fragment ExportJobFields on ExportJob {
|
|
9
9
|
id workspaceId tenantId name description status format archiveFormat
|
|
10
10
|
exportScope organizationId targetWorkspaceIds entityTypes entityFilters
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
createdAt updatedAt
|
|
16
16
|
parts { ...ExportPartFields }
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`,c=`
|
|
19
19
|
fragment ExportTemplateFields on ExportTemplate {
|
|
20
20
|
id workspaceId tenantId name description entityTypes entityFilters
|
|
21
21
|
format includeMedia includeMetadata isDefault context createdBy
|
|
22
22
|
onBehalfOf updatedBy createdAt updatedAt
|
|
23
23
|
}
|
|
24
|
-
`,
|
|
25
|
-
${
|
|
24
|
+
`,T=`
|
|
25
|
+
${s}
|
|
26
26
|
query ListExportJobs(
|
|
27
27
|
$filter: ExportJobFilterInput
|
|
28
28
|
$pagination: ExportPaginationInput
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
totalCount
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
38
|
-
${
|
|
37
|
+
`,E=`
|
|
38
|
+
${s}
|
|
39
39
|
query GetExportJob($id: ID!, $context: ContextInput) {
|
|
40
40
|
getExportJob(id: $id, context: $context) { ...ExportJobFields }
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
43
|
-
${
|
|
42
|
+
`,m=`
|
|
43
|
+
${s}
|
|
44
44
|
mutation CreateExportJob($input: CreateExportJobInput!, $context: ContextInput) {
|
|
45
45
|
createExportJob(input: $input, context: $context) { ...ExportJobFields }
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
48
|
-
${
|
|
47
|
+
`,I=`
|
|
48
|
+
${c}
|
|
49
49
|
query ListExportTemplates($pagination: ExportPaginationInput, $context: ContextInput!) {
|
|
50
50
|
listExportTemplates(pagination: $pagination, context: $context) {
|
|
51
51
|
edges { cursor node { ...ExportTemplateFields } }
|
|
@@ -53,9 +53,63 @@
|
|
|
53
53
|
totalCount
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
${
|
|
56
|
+
`,b=`
|
|
57
|
+
${c}
|
|
58
58
|
query GetExportTemplate($id: ID!, $context: ContextInput) {
|
|
59
59
|
getExportTemplate(id: $id, context: $context) { ...ExportTemplateFields }
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
`,P=`
|
|
62
|
+
${s}
|
|
63
|
+
mutation CancelExportJob($id: ID!, $context: ContextInput) {
|
|
64
|
+
cancelExportJob(id: $id, context: $context) { ...ExportJobFields }
|
|
65
|
+
}
|
|
66
|
+
`,g=`
|
|
67
|
+
mutation DeleteExportJob($id: ID!, $context: ContextInput) {
|
|
68
|
+
deleteExportJob(id: $id, context: $context)
|
|
69
|
+
}
|
|
70
|
+
`,C=`
|
|
71
|
+
${s}
|
|
72
|
+
mutation RetryExportJob($id: ID!, $context: ContextInput) {
|
|
73
|
+
retryExportJob(id: $id, context: $context) { ...ExportJobFields }
|
|
74
|
+
}
|
|
75
|
+
`,A=`
|
|
76
|
+
${c}
|
|
77
|
+
mutation CreateExportTemplate($input: CreateExportTemplateInput!, $context: ContextInput) {
|
|
78
|
+
createExportTemplate(input: $input, context: $context) { ...ExportTemplateFields }
|
|
79
|
+
}
|
|
80
|
+
`,J=`
|
|
81
|
+
${c}
|
|
82
|
+
mutation UpdateExportTemplate(
|
|
83
|
+
$id: ID!
|
|
84
|
+
$input: UpdateExportTemplateInput!
|
|
85
|
+
$context: ContextInput
|
|
86
|
+
) {
|
|
87
|
+
updateExportTemplate(id: $id, input: $input, context: $context) { ...ExportTemplateFields }
|
|
88
|
+
}
|
|
89
|
+
`,_=`
|
|
90
|
+
mutation DeleteExportTemplate($id: ID!, $context: ContextInput) {
|
|
91
|
+
deleteExportTemplate(id: $id, context: $context)
|
|
92
|
+
}
|
|
93
|
+
`,R=`
|
|
94
|
+
query GetAvailableExportEntities(
|
|
95
|
+
$context: ContextInput!
|
|
96
|
+
$pagination: ExportPaginationInput
|
|
97
|
+
) {
|
|
98
|
+
getAvailableExportEntities(context: $context, pagination: $pagination) {
|
|
99
|
+
edges {
|
|
100
|
+
cursor
|
|
101
|
+
node {
|
|
102
|
+
entityType displayName description enabled
|
|
103
|
+
supportsDateRange supportsMediaExport estimatedSize
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
107
|
+
totalCount
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
`,$=`
|
|
111
|
+
${u}
|
|
112
|
+
query GetExportPart($id: ID!, $context: ContextInput) {
|
|
113
|
+
getExportPart(id: $id, context: $context) { ...ExportPartFields }
|
|
114
|
+
}
|
|
115
|
+
`;function O(n){let{workspace:o}=n.gql;return {async list(t,e,r){return (await o.request(T,{filter:e,pagination:r,context:t})).listExportJobs},async get(t,e){return (await o.request(E,{id:t,context:e})).getExportJob},async create(t,e){return (await o.request(m,{input:t,context:e})).createExportJob},async cancel(t,e){return (await o.request(P,{id:t,context:e})).cancelExportJob},async delete(t,e){return (await o.request(g,{id:t,context:e})).deleteExportJob},async retry(t,e){return (await o.request(C,{id:t,context:e})).retryExportJob},subscribeProgress(t){let e=2e3,r=new Set(["COMPLETED","FAILED","CANCELLED","EXPIRED","DELETED"]);return {async*[Symbol.asyncIterator](){let p=-1,l="";for(;;){let a=(await o.request(E,{id:t})).getExportJob;if(!a||((a.progress!==p||a.status!==l)&&(p=a.progress,l=a.status,yield a),r.has(a.status)))return;await new Promise(w=>setTimeout(w,e));}}}}}}function f(n){let{workspace:o}=n.gql;return {async list(t,e){return (await o.request(I,{pagination:e,context:t})).listExportTemplates},async get(t,e){return (await o.request(b,{id:t,context:e})).getExportTemplate},async create(t,e){return (await o.request(A,{input:t,context:e})).createExportTemplate},async update(t,e,r){return (await o.request(J,{id:t,input:e,context:r})).updateExportTemplate},async delete(t,e){return (await o.request(_,{id:t,context:e})).deleteExportTemplate}}}var L={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth"],attach(n){let{workspace:o}=n.gql;return {jobs:O(n),templates:f(n),entities:{async list(t,e){return (await o.request(R,{context:t,pagination:e})).getAvailableExportEntities}},parts:{async get(t,e){return (await o.request($,{id:t,context:e})).getExportPart}},async download(t,e){let p=(await o.request(E,{id:t,context:e})).getExportJob;if(!p)throw new i(`Export job '${t}' not found`);if(!p.downloadUrl)throw new i(`Export job '${t}' has no download URL (status=${p.status})`);return p.downloadUrl}}}},Z=L;module.exports=Z;
|
|
@@ -147,23 +147,81 @@ interface ExportPaginationInput {
|
|
|
147
147
|
sortBy?: ExportSortField;
|
|
148
148
|
sortDirection?: ExportSortDirection;
|
|
149
149
|
}
|
|
150
|
+
interface CreateExportTemplateInput {
|
|
151
|
+
name: string;
|
|
152
|
+
description?: string;
|
|
153
|
+
entityTypes: string[];
|
|
154
|
+
entityFilters?: Json;
|
|
155
|
+
format?: ExportFormat;
|
|
156
|
+
includeMedia?: boolean;
|
|
157
|
+
includeMetadata?: boolean;
|
|
158
|
+
context?: ExportContextInput;
|
|
159
|
+
}
|
|
160
|
+
interface UpdateExportTemplateInput {
|
|
161
|
+
name?: string;
|
|
162
|
+
description?: string;
|
|
163
|
+
entityTypes?: string[];
|
|
164
|
+
entityFilters?: Json;
|
|
165
|
+
format?: ExportFormat;
|
|
166
|
+
includeMedia?: boolean;
|
|
167
|
+
includeMetadata?: boolean;
|
|
168
|
+
isDefault?: boolean;
|
|
169
|
+
context?: ExportContextInput;
|
|
170
|
+
}
|
|
171
|
+
interface ExportAvailableEntity {
|
|
172
|
+
entityType: string;
|
|
173
|
+
displayName: string;
|
|
174
|
+
description?: string | null;
|
|
175
|
+
enabled: boolean;
|
|
176
|
+
supportsDateRange: boolean;
|
|
177
|
+
supportsMediaExport: boolean;
|
|
178
|
+
estimatedSize?: string | null;
|
|
179
|
+
}
|
|
180
|
+
interface ExportAvailableEntityConnection {
|
|
181
|
+
edges: Array<{
|
|
182
|
+
cursor: string;
|
|
183
|
+
node: ExportAvailableEntity;
|
|
184
|
+
}>;
|
|
185
|
+
pageInfo: {
|
|
186
|
+
hasNextPage: boolean;
|
|
187
|
+
hasPreviousPage: boolean;
|
|
188
|
+
startCursor?: string | null;
|
|
189
|
+
endCursor?: string | null;
|
|
190
|
+
};
|
|
191
|
+
totalCount: number;
|
|
192
|
+
}
|
|
150
193
|
|
|
151
194
|
interface JobsApi {
|
|
152
195
|
list(context: ExportContextInput, filter?: ExportJobFilterInput, pagination?: ExportPaginationInput): Promise<ExportJobConnection>;
|
|
153
196
|
get(id: string, context?: ExportContextInput): Promise<ExportJob | null>;
|
|
154
197
|
create(input: CreateExportJobInput, context?: ExportContextInput): Promise<ExportJob>;
|
|
198
|
+
cancel(id: string, context?: ExportContextInput): Promise<ExportJob>;
|
|
199
|
+
delete(id: string, context?: ExportContextInput): Promise<boolean>;
|
|
200
|
+
retry(id: string, context?: ExportContextInput): Promise<ExportJob>;
|
|
201
|
+
subscribeProgress(jobId: string): AsyncIterable<ExportJob>;
|
|
155
202
|
}
|
|
156
203
|
|
|
157
204
|
interface TemplatesApi {
|
|
158
205
|
list(context: ExportContextInput, pagination?: ExportPaginationInput): Promise<ExportTemplateConnection>;
|
|
159
206
|
get(id: string, context?: ExportContextInput): Promise<ExportTemplate | null>;
|
|
207
|
+
create(input: CreateExportTemplateInput, context?: ExportContextInput): Promise<ExportTemplate>;
|
|
208
|
+
update(id: string, input: UpdateExportTemplateInput, context?: ExportContextInput): Promise<ExportTemplate>;
|
|
209
|
+
delete(id: string, context?: ExportContextInput): Promise<boolean>;
|
|
160
210
|
}
|
|
161
211
|
|
|
212
|
+
interface EntitiesApi {
|
|
213
|
+
list(context: ExportContextInput, pagination?: ExportPaginationInput): Promise<ExportAvailableEntityConnection>;
|
|
214
|
+
}
|
|
215
|
+
interface PartsApi {
|
|
216
|
+
get(id: string, context?: ExportContextInput): Promise<ExportPart | null>;
|
|
217
|
+
}
|
|
162
218
|
interface ExportApi {
|
|
163
219
|
jobs: JobsApi;
|
|
164
220
|
templates: TemplatesApi;
|
|
221
|
+
entities: EntitiesApi;
|
|
222
|
+
parts: PartsApi;
|
|
165
223
|
download(jobId: string, context?: ExportContextInput): Promise<string>;
|
|
166
224
|
}
|
|
167
225
|
declare const exportModule: SdkModule<ExportApi>;
|
|
168
226
|
|
|
169
|
-
export { type CreateExportJobInput, type ExportApi, type ExportArchiveFormat, type ExportContextInput, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobFilterInput, type ExportJobStatus, type ExportPaginationInput, type ExportPart, type ExportScope, type ExportSortDirection, type ExportSortField, type ExportTemplate, type ExportTemplateConnection, type JobsApi, type TemplatesApi, exportModule as default };
|
|
227
|
+
export { type CreateExportJobInput, type CreateExportTemplateInput, type EntitiesApi, type ExportApi, type ExportArchiveFormat, type ExportAvailableEntity, type ExportAvailableEntityConnection, type ExportContextInput, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobFilterInput, type ExportJobStatus, type ExportPaginationInput, type ExportPart, type ExportScope, type ExportSortDirection, type ExportSortField, type ExportTemplate, type ExportTemplateConnection, type JobsApi, type PartsApi, type TemplatesApi, type UpdateExportTemplateInput, exportModule as default };
|
|
@@ -147,23 +147,81 @@ interface ExportPaginationInput {
|
|
|
147
147
|
sortBy?: ExportSortField;
|
|
148
148
|
sortDirection?: ExportSortDirection;
|
|
149
149
|
}
|
|
150
|
+
interface CreateExportTemplateInput {
|
|
151
|
+
name: string;
|
|
152
|
+
description?: string;
|
|
153
|
+
entityTypes: string[];
|
|
154
|
+
entityFilters?: Json;
|
|
155
|
+
format?: ExportFormat;
|
|
156
|
+
includeMedia?: boolean;
|
|
157
|
+
includeMetadata?: boolean;
|
|
158
|
+
context?: ExportContextInput;
|
|
159
|
+
}
|
|
160
|
+
interface UpdateExportTemplateInput {
|
|
161
|
+
name?: string;
|
|
162
|
+
description?: string;
|
|
163
|
+
entityTypes?: string[];
|
|
164
|
+
entityFilters?: Json;
|
|
165
|
+
format?: ExportFormat;
|
|
166
|
+
includeMedia?: boolean;
|
|
167
|
+
includeMetadata?: boolean;
|
|
168
|
+
isDefault?: boolean;
|
|
169
|
+
context?: ExportContextInput;
|
|
170
|
+
}
|
|
171
|
+
interface ExportAvailableEntity {
|
|
172
|
+
entityType: string;
|
|
173
|
+
displayName: string;
|
|
174
|
+
description?: string | null;
|
|
175
|
+
enabled: boolean;
|
|
176
|
+
supportsDateRange: boolean;
|
|
177
|
+
supportsMediaExport: boolean;
|
|
178
|
+
estimatedSize?: string | null;
|
|
179
|
+
}
|
|
180
|
+
interface ExportAvailableEntityConnection {
|
|
181
|
+
edges: Array<{
|
|
182
|
+
cursor: string;
|
|
183
|
+
node: ExportAvailableEntity;
|
|
184
|
+
}>;
|
|
185
|
+
pageInfo: {
|
|
186
|
+
hasNextPage: boolean;
|
|
187
|
+
hasPreviousPage: boolean;
|
|
188
|
+
startCursor?: string | null;
|
|
189
|
+
endCursor?: string | null;
|
|
190
|
+
};
|
|
191
|
+
totalCount: number;
|
|
192
|
+
}
|
|
150
193
|
|
|
151
194
|
interface JobsApi {
|
|
152
195
|
list(context: ExportContextInput, filter?: ExportJobFilterInput, pagination?: ExportPaginationInput): Promise<ExportJobConnection>;
|
|
153
196
|
get(id: string, context?: ExportContextInput): Promise<ExportJob | null>;
|
|
154
197
|
create(input: CreateExportJobInput, context?: ExportContextInput): Promise<ExportJob>;
|
|
198
|
+
cancel(id: string, context?: ExportContextInput): Promise<ExportJob>;
|
|
199
|
+
delete(id: string, context?: ExportContextInput): Promise<boolean>;
|
|
200
|
+
retry(id: string, context?: ExportContextInput): Promise<ExportJob>;
|
|
201
|
+
subscribeProgress(jobId: string): AsyncIterable<ExportJob>;
|
|
155
202
|
}
|
|
156
203
|
|
|
157
204
|
interface TemplatesApi {
|
|
158
205
|
list(context: ExportContextInput, pagination?: ExportPaginationInput): Promise<ExportTemplateConnection>;
|
|
159
206
|
get(id: string, context?: ExportContextInput): Promise<ExportTemplate | null>;
|
|
207
|
+
create(input: CreateExportTemplateInput, context?: ExportContextInput): Promise<ExportTemplate>;
|
|
208
|
+
update(id: string, input: UpdateExportTemplateInput, context?: ExportContextInput): Promise<ExportTemplate>;
|
|
209
|
+
delete(id: string, context?: ExportContextInput): Promise<boolean>;
|
|
160
210
|
}
|
|
161
211
|
|
|
212
|
+
interface EntitiesApi {
|
|
213
|
+
list(context: ExportContextInput, pagination?: ExportPaginationInput): Promise<ExportAvailableEntityConnection>;
|
|
214
|
+
}
|
|
215
|
+
interface PartsApi {
|
|
216
|
+
get(id: string, context?: ExportContextInput): Promise<ExportPart | null>;
|
|
217
|
+
}
|
|
162
218
|
interface ExportApi {
|
|
163
219
|
jobs: JobsApi;
|
|
164
220
|
templates: TemplatesApi;
|
|
221
|
+
entities: EntitiesApi;
|
|
222
|
+
parts: PartsApi;
|
|
165
223
|
download(jobId: string, context?: ExportContextInput): Promise<string>;
|
|
166
224
|
}
|
|
167
225
|
declare const exportModule: SdkModule<ExportApi>;
|
|
168
226
|
|
|
169
|
-
export { type CreateExportJobInput, type ExportApi, type ExportArchiveFormat, type ExportContextInput, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobFilterInput, type ExportJobStatus, type ExportPaginationInput, type ExportPart, type ExportScope, type ExportSortDirection, type ExportSortField, type ExportTemplate, type ExportTemplateConnection, type JobsApi, type TemplatesApi, exportModule as default };
|
|
227
|
+
export { type CreateExportJobInput, type CreateExportTemplateInput, type EntitiesApi, type ExportApi, type ExportArchiveFormat, type ExportAvailableEntity, type ExportAvailableEntityConnection, type ExportContextInput, type ExportFormat, type ExportJob, type ExportJobConnection, type ExportJobFilterInput, type ExportJobStatus, type ExportPaginationInput, type ExportPart, type ExportScope, type ExportSortDirection, type ExportSortField, type ExportTemplate, type ExportTemplateConnection, type JobsApi, type PartsApi, type TemplatesApi, type UpdateExportTemplateInput, exportModule as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {f}from'../../chunk-NEREAHJ6.js';var
|
|
1
|
+
import {f as f$1}from'../../chunk-NEREAHJ6.js';var u=`
|
|
2
2
|
fragment ExportPartFields on ExportPart {
|
|
3
3
|
id jobId partNumber fileName fileId sizeBytes checksum
|
|
4
4
|
entityTypes downloadUrl downloadExpiresAt context createdAt updatedAt
|
|
5
5
|
}
|
|
6
|
-
`,
|
|
7
|
-
${
|
|
6
|
+
`,i=`
|
|
7
|
+
${u}
|
|
8
8
|
fragment ExportJobFields on ExportJob {
|
|
9
9
|
id workspaceId tenantId name description status format archiveFormat
|
|
10
10
|
exportScope organizationId targetWorkspaceIds entityTypes entityFilters
|
|
@@ -15,14 +15,14 @@ import {f}from'../../chunk-NEREAHJ6.js';var b=`
|
|
|
15
15
|
createdAt updatedAt
|
|
16
16
|
parts { ...ExportPartFields }
|
|
17
17
|
}
|
|
18
|
-
`,
|
|
18
|
+
`,E=`
|
|
19
19
|
fragment ExportTemplateFields on ExportTemplate {
|
|
20
20
|
id workspaceId tenantId name description entityTypes entityFilters
|
|
21
21
|
format includeMedia includeMetadata isDefault context createdBy
|
|
22
22
|
onBehalfOf updatedBy createdAt updatedAt
|
|
23
23
|
}
|
|
24
|
-
`,
|
|
25
|
-
${
|
|
24
|
+
`,T=`
|
|
25
|
+
${i}
|
|
26
26
|
query ListExportJobs(
|
|
27
27
|
$filter: ExportJobFilterInput
|
|
28
28
|
$pagination: ExportPaginationInput
|
|
@@ -34,18 +34,18 @@ import {f}from'../../chunk-NEREAHJ6.js';var b=`
|
|
|
34
34
|
totalCount
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
`,
|
|
38
|
-
${
|
|
37
|
+
`,x=`
|
|
38
|
+
${i}
|
|
39
39
|
query GetExportJob($id: ID!, $context: ContextInput) {
|
|
40
40
|
getExportJob(id: $id, context: $context) { ...ExportJobFields }
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
43
|
-
${
|
|
42
|
+
`,m=`
|
|
43
|
+
${i}
|
|
44
44
|
mutation CreateExportJob($input: CreateExportJobInput!, $context: ContextInput) {
|
|
45
45
|
createExportJob(input: $input, context: $context) { ...ExportJobFields }
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
48
|
-
${
|
|
47
|
+
`,b=`
|
|
48
|
+
${E}
|
|
49
49
|
query ListExportTemplates($pagination: ExportPaginationInput, $context: ContextInput!) {
|
|
50
50
|
listExportTemplates(pagination: $pagination, context: $context) {
|
|
51
51
|
edges { cursor node { ...ExportTemplateFields } }
|
|
@@ -53,9 +53,63 @@ import {f}from'../../chunk-NEREAHJ6.js';var b=`
|
|
|
53
53
|
totalCount
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
${
|
|
56
|
+
`,P=`
|
|
57
|
+
${E}
|
|
58
58
|
query GetExportTemplate($id: ID!, $context: ContextInput) {
|
|
59
59
|
getExportTemplate(id: $id, context: $context) { ...ExportTemplateFields }
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
`,I=`
|
|
62
|
+
${i}
|
|
63
|
+
mutation CancelExportJob($id: ID!, $context: ContextInput) {
|
|
64
|
+
cancelExportJob(id: $id, context: $context) { ...ExportJobFields }
|
|
65
|
+
}
|
|
66
|
+
`,J=`
|
|
67
|
+
mutation DeleteExportJob($id: ID!, $context: ContextInput) {
|
|
68
|
+
deleteExportJob(id: $id, context: $context)
|
|
69
|
+
}
|
|
70
|
+
`,g=`
|
|
71
|
+
${i}
|
|
72
|
+
mutation RetryExportJob($id: ID!, $context: ContextInput) {
|
|
73
|
+
retryExportJob(id: $id, context: $context) { ...ExportJobFields }
|
|
74
|
+
}
|
|
75
|
+
`,C=`
|
|
76
|
+
${E}
|
|
77
|
+
mutation CreateExportTemplate($input: CreateExportTemplateInput!, $context: ContextInput) {
|
|
78
|
+
createExportTemplate(input: $input, context: $context) { ...ExportTemplateFields }
|
|
79
|
+
}
|
|
80
|
+
`,A=`
|
|
81
|
+
${E}
|
|
82
|
+
mutation UpdateExportTemplate(
|
|
83
|
+
$id: ID!
|
|
84
|
+
$input: UpdateExportTemplateInput!
|
|
85
|
+
$context: ContextInput
|
|
86
|
+
) {
|
|
87
|
+
updateExportTemplate(id: $id, input: $input, context: $context) { ...ExportTemplateFields }
|
|
88
|
+
}
|
|
89
|
+
`,$=`
|
|
90
|
+
mutation DeleteExportTemplate($id: ID!, $context: ContextInput) {
|
|
91
|
+
deleteExportTemplate(id: $id, context: $context)
|
|
92
|
+
}
|
|
93
|
+
`,y=`
|
|
94
|
+
query GetAvailableExportEntities(
|
|
95
|
+
$context: ContextInput!
|
|
96
|
+
$pagination: ExportPaginationInput
|
|
97
|
+
) {
|
|
98
|
+
getAvailableExportEntities(context: $context, pagination: $pagination) {
|
|
99
|
+
edges {
|
|
100
|
+
cursor
|
|
101
|
+
node {
|
|
102
|
+
entityType displayName description enabled
|
|
103
|
+
supportsDateRange supportsMediaExport estimatedSize
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
pageInfo { hasNextPage hasPreviousPage startCursor endCursor }
|
|
107
|
+
totalCount
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
`,_=`
|
|
111
|
+
${u}
|
|
112
|
+
query GetExportPart($id: ID!, $context: ContextInput) {
|
|
113
|
+
getExportPart(id: $id, context: $context) { ...ExportPartFields }
|
|
114
|
+
}
|
|
115
|
+
`;function O(p){let{workspace:o}=p.gql;return {async list(t,e,r){return (await o.request(T,{filter:e,pagination:r,context:t})).listExportJobs},async get(t,e){return (await o.request(x,{id:t,context:e})).getExportJob},async create(t,e){return (await o.request(m,{input:t,context:e})).createExportJob},async cancel(t,e){return (await o.request(I,{id:t,context:e})).cancelExportJob},async delete(t,e){return (await o.request(J,{id:t,context:e})).deleteExportJob},async retry(t,e){return (await o.request(g,{id:t,context:e})).retryExportJob},subscribeProgress(t){let e=2e3,r=new Set(["COMPLETED","FAILED","CANCELLED","EXPIRED","DELETED"]);return {async*[Symbol.asyncIterator](){let n=-1,c="";for(;;){let a=(await o.request(x,{id:t})).getExportJob;if(!a||((a.progress!==n||a.status!==c)&&(n=a.progress,c=a.status,yield a),r.has(a.status)))return;await new Promise(S=>setTimeout(S,e));}}}}}}function f(p){let{workspace:o}=p.gql;return {async list(t,e){return (await o.request(b,{pagination:e,context:t})).listExportTemplates},async get(t,e){return (await o.request(P,{id:t,context:e})).getExportTemplate},async create(t,e){return (await o.request(C,{input:t,context:e})).createExportTemplate},async update(t,e,r){return (await o.request(A,{id:t,input:e,context:r})).updateExportTemplate},async delete(t,e){return (await o.request($,{id:t,context:e})).deleteExportTemplate}}}var w={id:"export",version:"1.0.0",displayName:"Export",dependsOn:["auth"],attach(p){let{workspace:o}=p.gql;return {jobs:O(p),templates:f(p),entities:{async list(t,e){return (await o.request(y,{context:t,pagination:e})).getAvailableExportEntities}},parts:{async get(t,e){return (await o.request(_,{id:t,context:e})).getExportPart}},async download(t,e){let n=(await o.request(x,{id:t,context:e})).getExportJob;if(!n)throw new f$1(`Export job '${t}' not found`);if(!n.downloadUrl)throw new f$1(`Export job '${t}' has no download URL (status=${n.status})`);return n.downloadUrl}}}},U=w;export{U as default};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';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
|
+
`,g=`
|
|
15
15
|
fragment IntegrationLogFields on IntegrationLog {
|
|
16
16
|
id action level message connectionId actorId
|
|
17
17
|
metadata errorDetails createdAt
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
20
|
-
${
|
|
19
|
+
`,p=`
|
|
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 @@
|
|
|
25
25
|
hasMore
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
`,
|
|
29
|
-
${
|
|
28
|
+
`,I=`
|
|
29
|
+
${r}
|
|
30
30
|
query GetProvider($id: ID!) {
|
|
31
31
|
getProvider(id: $id) { ...IntegrationProviderFields }
|
|
32
32
|
}
|
|
33
|
-
`,
|
|
34
|
-
${
|
|
33
|
+
`,u=`
|
|
34
|
+
${i}
|
|
35
35
|
query GetConnections($filter: ConnectionFilterInput, $pagination: IntegrationsPaginationInput) {
|
|
36
36
|
getConnections(filter: $filter, pagination: $pagination) {
|
|
37
37
|
items { ...IntegrationConnectionFields }
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
hasMore
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
43
|
-
${
|
|
42
|
+
`,d=`
|
|
43
|
+
${i}
|
|
44
44
|
query GetConnection($id: ID!) {
|
|
45
45
|
getConnection(id: $id) { ...IntegrationConnectionFields }
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
48
|
-
${
|
|
47
|
+
`,C=`
|
|
48
|
+
${i}
|
|
49
49
|
mutation CreateConnection($input: CreateConnectionInput!) {
|
|
50
50
|
createConnection(input: $input) { ...IntegrationConnectionFields }
|
|
51
51
|
}
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
mutation DeleteConnection($id: ID!, $deleteVaultSecret: Boolean) {
|
|
54
54
|
deleteConnection(id: $id, deleteVaultSecret: $deleteVaultSecret)
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
57
|
-
${
|
|
56
|
+
`,T=`
|
|
57
|
+
${g}
|
|
58
58
|
query GetConnectionLogs($connectionId: ID!, $pagination: IntegrationsPaginationInput) {
|
|
59
59
|
getConnectionLogs(connectionId: $connectionId, pagination: $pagination) {
|
|
60
60
|
items { ...IntegrationLogFields }
|
|
@@ -62,4 +62,120 @@
|
|
|
62
62
|
hasMore
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
`,A=`
|
|
66
|
+
${g}
|
|
67
|
+
query GetIntegrationLogs($filter: LogFilterInput, $pagination: IntegrationsPaginationInput) {
|
|
68
|
+
getIntegrationLogs(filter: $filter, pagination: $pagination) {
|
|
69
|
+
items { ...IntegrationLogFields }
|
|
70
|
+
total
|
|
71
|
+
hasMore
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
`,E=`
|
|
75
|
+
${i}
|
|
76
|
+
mutation UpdateConnection($id: ID!, $input: UpdateConnectionInput!) {
|
|
77
|
+
updateConnection(id: $id, input: $input) { ...IntegrationConnectionFields }
|
|
78
|
+
}
|
|
79
|
+
`,P=`
|
|
80
|
+
${i}
|
|
81
|
+
mutation RevokeConnection($connectionId: ID!) {
|
|
82
|
+
revokeConnection(connectionId: $connectionId) { ...IntegrationConnectionFields }
|
|
83
|
+
}
|
|
84
|
+
`,m=`
|
|
85
|
+
mutation TestConnection($connectionId: ID!) {
|
|
86
|
+
testConnection(connectionId: $connectionId) { success message latencyMs }
|
|
87
|
+
}
|
|
88
|
+
`,N=`
|
|
89
|
+
${i}
|
|
90
|
+
mutation LinkIntegrationToChannel($channelId: String!, $connectionId: ID!, $organizationId: String!) {
|
|
91
|
+
linkIntegrationToChannel(channelId: $channelId, connectionId: $connectionId, organizationId: $organizationId) {
|
|
92
|
+
...IntegrationConnectionFields
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`,O=`
|
|
96
|
+
${i}
|
|
97
|
+
mutation RefreshConnectionToken($connectionId: ID!) {
|
|
98
|
+
refreshConnectionToken(connectionId: $connectionId) { ...IntegrationConnectionFields }
|
|
99
|
+
}
|
|
100
|
+
`,y=`
|
|
101
|
+
${i}
|
|
102
|
+
mutation AuthenticateWithApiKey($input: ApiKeyAuthInput!) {
|
|
103
|
+
authenticateWithApiKey(input: $input) { ...IntegrationConnectionFields }
|
|
104
|
+
}
|
|
105
|
+
`,h=`
|
|
106
|
+
${i}
|
|
107
|
+
mutation AuthenticateWithBasicAuth($input: BasicAuthInput!) {
|
|
108
|
+
authenticateWithBasicAuth(input: $input) { ...IntegrationConnectionFields }
|
|
109
|
+
}
|
|
110
|
+
`,$=`
|
|
111
|
+
${i}
|
|
112
|
+
mutation AuthenticateWithBearerToken($input: BearerTokenAuthInput!) {
|
|
113
|
+
authenticateWithBearerToken(input: $input) { ...IntegrationConnectionFields }
|
|
114
|
+
}
|
|
115
|
+
`,v=`
|
|
116
|
+
mutation InitiateOAuth($input: InitiateOAuthInput!) {
|
|
117
|
+
initiateOAuth(input: $input) { redirectUrl state }
|
|
118
|
+
}
|
|
119
|
+
`,_=`
|
|
120
|
+
${i}
|
|
121
|
+
mutation CompleteOAuth($input: CompleteOAuthInput!) {
|
|
122
|
+
completeOAuth(input: $input) { ...IntegrationConnectionFields }
|
|
123
|
+
}
|
|
124
|
+
`,L=`
|
|
125
|
+
${r}
|
|
126
|
+
query GetProviderByKey($key: String!) {
|
|
127
|
+
getProviderByKey(key: $key) { ...IntegrationProviderFields }
|
|
128
|
+
}
|
|
129
|
+
`,R=`
|
|
130
|
+
${r}
|
|
131
|
+
query GetProviderCatalog($pagination: IntegrationsPaginationInput) {
|
|
132
|
+
getProviderCatalog(pagination: $pagination) {
|
|
133
|
+
items { ...IntegrationProviderFields }
|
|
134
|
+
total
|
|
135
|
+
hasMore
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
`,f=`
|
|
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
|
+
`,G=`
|
|
148
|
+
${r}
|
|
149
|
+
mutation EnableProvider($id: ID!) {
|
|
150
|
+
enableProvider(id: $id) { ...IntegrationProviderFields }
|
|
151
|
+
}
|
|
152
|
+
`,x=`
|
|
153
|
+
${r}
|
|
154
|
+
mutation DisableProvider($id: ID!) {
|
|
155
|
+
disableProvider(id: $id) { ...IntegrationProviderFields }
|
|
156
|
+
}
|
|
157
|
+
`,c=`
|
|
158
|
+
fragment ConnectionTagFields on IntegrationConnectionTagAssignment {
|
|
159
|
+
id entityId entityType tagId source assignedAt assignedBy
|
|
160
|
+
metadata validFrom validTo
|
|
161
|
+
}
|
|
162
|
+
`,S=`
|
|
163
|
+
${c}
|
|
164
|
+
mutation TagConnection($input: TagConnectionInput!) {
|
|
165
|
+
tagConnection(input: $input) { ...ConnectionTagFields }
|
|
166
|
+
}
|
|
167
|
+
`,k=`
|
|
168
|
+
mutation UntagConnection($input: UntagConnectionInput!) {
|
|
169
|
+
untagConnection(input: $input)
|
|
170
|
+
}
|
|
171
|
+
`,F=`
|
|
172
|
+
${c}
|
|
173
|
+
mutation ReplaceConnectionTags($input: ReplaceConnectionTagsInput!) {
|
|
174
|
+
replaceConnectionTags(input: $input) { ...ConnectionTagFields }
|
|
175
|
+
}
|
|
176
|
+
`,B=`
|
|
177
|
+
${c}
|
|
178
|
+
query GetConnectionTags($input: GetConnectionTagsInput!) {
|
|
179
|
+
getConnectionTags(input: $input) { ...ConnectionTagFields }
|
|
180
|
+
}
|
|
181
|
+
`;function q(o){let{workspace:e}=o.gql;return {async list(t,n){return (await e.request(u,{filter:t,pagination:n})).getConnections},async get(t){return (await e.request(d,{id:t})).getConnection},async add(t){return (await e.request(C,{input:t})).createConnection},async delete(t,n){return (await e.request(l,{id:t,deleteVaultSecret:n??null})).deleteConnection},async update(t,n){return (await e.request(E,{id:t,input:n})).updateConnection},async revoke(t){return (await e.request(P,{connectionId:t})).revokeConnection},async test(t){return (await e.request(m,{connectionId:t})).testConnection},async linkToChannel({channelId:t,connectionId:n,organizationId:a}){return (await e.request(N,{channelId:t,connectionId:n,organizationId:a})).linkIntegrationToChannel},async refreshToken(t){return (await e.request(O,{connectionId:t})).refreshConnectionToken}}}function D(o){let{workspace:e}=o.gql;return {async apiKey(t){return (await e.request(y,{input:t})).authenticateWithApiKey},async basic(t){return (await e.request(h,{input:t})).authenticateWithBasicAuth},async bearer(t){return (await e.request($,{input:t})).authenticateWithBearerToken},async oauthInitiate(t){return (await e.request(v,{input:t})).initiateOAuth},async oauthComplete(t){return (await e.request(_,{input:t})).completeOAuth}}}function w(o){let{workspace:e}=o.gql;return {async list(t,n){return (await e.request(p,{filter:t,pagination:n})).getProviders},async get(t){return (await e.request(I,{id:t})).getProvider},async getByKey(t){return (await e.request(L,{key:t})).getProviderByKey},async catalog(t){return (await e.request(R,{pagination:t})).getProviderCatalog},async connectionsByProvider(t,n){return (await e.request(f,{providerId:t,pagination:n})).getConnectionsByProvider},async enable(t){return (await e.request(G,{id:t})).enableProvider},async disable(t){return (await e.request(x,{id:t})).disableProvider}}}function U(o){let{workspace:e}=o.gql;return {async add(t){return (await e.request(S,{input:t})).tagConnection},async remove(t){return (await e.request(k,{input:t})).untagConnection},async replace(t){return (await e.request(F,{input:t})).replaceConnectionTags},async list(t){return (await e.request(B,{input:t})).getConnectionTags}}}var K={id:"integrations",version:"1.0.0",displayName:"Integrations",dependsOn:["auth"],attach(o){let{workspace:e}=o.gql;return {providers:w(o),connections:q(o),auth:D(o),tags:U(o),async logs(t,n){return (await e.request(T,{connectionId:t,pagination:n})).getConnectionLogs},async integrationLogs(t,n){return (await e.request(A,{filter:t,pagination:n})).getIntegrationLogs}}}},ct=K;module.exports=ct;
|