@burdenoff/sdk-libs 2026.627.5 → 2026.629.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/adaptercloud/index.cjs +316 -0
- package/dist/modules/adaptercloud/index.d.cts +399 -0
- package/dist/modules/adaptercloud/index.d.ts +399 -0
- package/dist/modules/adaptercloud/index.js +316 -0
- package/dist/modules/atheletebridge/index.cjs +261 -0
- package/dist/modules/atheletebridge/index.d.cts +392 -0
- package/dist/modules/atheletebridge/index.d.ts +392 -0
- package/dist/modules/atheletebridge/index.js +261 -0
- package/dist/modules/coolandlovely/index.cjs +321 -0
- package/dist/modules/coolandlovely/index.d.cts +433 -0
- package/dist/modules/coolandlovely/index.d.ts +433 -0
- package/dist/modules/coolandlovely/index.js +321 -0
- package/dist/modules/hookmovies/index.cjs +359 -0
- package/dist/modules/hookmovies/index.d.cts +512 -0
- package/dist/modules/hookmovies/index.d.ts +512 -0
- package/dist/modules/hookmovies/index.js +359 -0
- package/dist/modules/labsofscience/index.cjs +373 -0
- package/dist/modules/labsofscience/index.d.cts +495 -0
- package/dist/modules/labsofscience/index.d.ts +495 -0
- package/dist/modules/labsofscience/index.js +373 -0
- package/dist/modules/subscriberbot/index.cjs +334 -0
- package/dist/modules/subscriberbot/index.d.cts +497 -0
- package/dist/modules/subscriberbot/index.d.ts +497 -0
- package/dist/modules/subscriberbot/index.js +334 -0
- package/package.json +1 -1
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
'use strict';var c=`
|
|
2
|
+
fragment AdapterScalars on AdaAdapter {
|
|
3
|
+
id name slug description kind status vendor version
|
|
4
|
+
capabilities configSchema tags
|
|
5
|
+
workspaceId createdAt updatedAt
|
|
6
|
+
}
|
|
7
|
+
`,r=`
|
|
8
|
+
fragment ConnectionScalars on AdaConnection {
|
|
9
|
+
id adapterId name authMethod status config
|
|
10
|
+
environment region secretRef targetRef lastError lastSyncedAt resourceCount tags
|
|
11
|
+
workspaceId createdAt updatedAt
|
|
12
|
+
}
|
|
13
|
+
`,u=`
|
|
14
|
+
fragment ResourceScalars on AdaResource {
|
|
15
|
+
id connectionId externalId name resourceType state region monthlyCost
|
|
16
|
+
attributes providerTags tags lastSeenAt
|
|
17
|
+
workspaceId createdAt updatedAt
|
|
18
|
+
}
|
|
19
|
+
`,d=`
|
|
20
|
+
fragment SyncRunFields on AdaSyncRun {
|
|
21
|
+
id connectionId kind status
|
|
22
|
+
discoveredCount driftCount reconciledCount violationCount
|
|
23
|
+
summary error startedAt finishedAt
|
|
24
|
+
workspaceId createdAt updatedAt
|
|
25
|
+
}
|
|
26
|
+
`,A=`
|
|
27
|
+
fragment DriftFields on AdaDriftRecord {
|
|
28
|
+
id resourceId attributePath expectedValue observedValue
|
|
29
|
+
severity status detectedAt remediatedAt
|
|
30
|
+
workspaceId createdAt updatedAt
|
|
31
|
+
}
|
|
32
|
+
`,p=`
|
|
33
|
+
fragment PolicyScalars on AdaPolicy {
|
|
34
|
+
id name description kind enforcement severity expression
|
|
35
|
+
appliesTo isActive tags
|
|
36
|
+
workspaceId createdAt updatedAt
|
|
37
|
+
}
|
|
38
|
+
`,l=`
|
|
39
|
+
fragment ViolationScalars on AdaPolicyViolation {
|
|
40
|
+
id policyId resourceId message severity status evidence waiverReason
|
|
41
|
+
detectedAt resolvedAt resolvedById
|
|
42
|
+
workspaceId createdAt updatedAt
|
|
43
|
+
}
|
|
44
|
+
`,I=`
|
|
45
|
+
fragment CostRecordFields on AdaCostRecord {
|
|
46
|
+
id service amount currency periodStart periodEnd breakdown
|
|
47
|
+
connectionId resourceId workspaceId createdAt updatedAt
|
|
48
|
+
}
|
|
49
|
+
`,S=`
|
|
50
|
+
fragment TopologyEdgeFields on AdaTopologyEdge {
|
|
51
|
+
id fromResourceId toResourceId kind weight bidirectional attributes
|
|
52
|
+
workspaceId createdAt updatedAt
|
|
53
|
+
}
|
|
54
|
+
`,y=`
|
|
55
|
+
${c}
|
|
56
|
+
${r}
|
|
57
|
+
fragment AdapterFull on AdaAdapter {
|
|
58
|
+
...AdapterScalars
|
|
59
|
+
connections { ...ConnectionScalars }
|
|
60
|
+
}
|
|
61
|
+
`,i=`
|
|
62
|
+
${r}
|
|
63
|
+
${c}
|
|
64
|
+
${u}
|
|
65
|
+
fragment ConnectionFull on AdaConnection {
|
|
66
|
+
...ConnectionScalars
|
|
67
|
+
adapter { ...AdapterScalars }
|
|
68
|
+
resources { ...ResourceScalars }
|
|
69
|
+
}
|
|
70
|
+
`,g=`
|
|
71
|
+
${u}
|
|
72
|
+
${r}
|
|
73
|
+
fragment ResourceFull on AdaResource {
|
|
74
|
+
...ResourceScalars
|
|
75
|
+
connection { ...ConnectionScalars }
|
|
76
|
+
dependsOn { ...ResourceScalars }
|
|
77
|
+
}
|
|
78
|
+
`,R=`
|
|
79
|
+
${p}
|
|
80
|
+
${l}
|
|
81
|
+
fragment PolicyFull on AdaPolicy {
|
|
82
|
+
...PolicyScalars
|
|
83
|
+
violations { ...ViolationScalars }
|
|
84
|
+
}
|
|
85
|
+
`,P=`
|
|
86
|
+
${l}
|
|
87
|
+
${p}
|
|
88
|
+
fragment ViolationFull on AdaPolicyViolation {
|
|
89
|
+
...ViolationScalars
|
|
90
|
+
policy { ...PolicyScalars }
|
|
91
|
+
}
|
|
92
|
+
`,$=`
|
|
93
|
+
${y}
|
|
94
|
+
query AdaAdapter($id: ID!) { adaAdapter(id: $id) { ...AdapterFull } }
|
|
95
|
+
`,E=`
|
|
96
|
+
${c}
|
|
97
|
+
query AdaListAdapters(
|
|
98
|
+
$kind: AdaAdapterKind
|
|
99
|
+
$status: AdaAdapterStatus
|
|
100
|
+
$pagination: PaginationInput
|
|
101
|
+
) {
|
|
102
|
+
adaListAdapters(kind: $kind, status: $status, pagination: $pagination) {
|
|
103
|
+
items { ...AdapterScalars }
|
|
104
|
+
pageInfo { cursor hasMore }
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
`,T=`
|
|
108
|
+
${y}
|
|
109
|
+
mutation AdaCreateAdapter($input: AdaCreateAdapterInput!) {
|
|
110
|
+
adaCreateAdapter(input: $input) { ...AdapterFull }
|
|
111
|
+
}
|
|
112
|
+
`,m=`
|
|
113
|
+
${y}
|
|
114
|
+
mutation AdaUpdateAdapter($id: ID!, $input: AdaUpdateAdapterInput!) {
|
|
115
|
+
adaUpdateAdapter(id: $id, input: $input) { ...AdapterFull }
|
|
116
|
+
}
|
|
117
|
+
`,D=`
|
|
118
|
+
mutation AdaArchiveAdapter($id: ID!) { adaArchiveAdapter(id: $id) }
|
|
119
|
+
`,_=`
|
|
120
|
+
${i}
|
|
121
|
+
query AdaConnection($id: ID!) { adaConnection(id: $id) { ...ConnectionFull } }
|
|
122
|
+
`,L=`
|
|
123
|
+
${r}
|
|
124
|
+
query AdaListConnections(
|
|
125
|
+
$adapterId: ID
|
|
126
|
+
$status: AdaConnectionStatus
|
|
127
|
+
$pagination: PaginationInput
|
|
128
|
+
) {
|
|
129
|
+
adaListConnections(adapterId: $adapterId, status: $status, pagination: $pagination) {
|
|
130
|
+
items { ...ConnectionScalars }
|
|
131
|
+
pageInfo { cursor hasMore }
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
`,O=`
|
|
135
|
+
${i}
|
|
136
|
+
mutation AdaCreateConnection($input: AdaCreateConnectionInput!) {
|
|
137
|
+
adaCreateConnection(input: $input) { ...ConnectionFull }
|
|
138
|
+
}
|
|
139
|
+
`,f=`
|
|
140
|
+
${i}
|
|
141
|
+
mutation AdaUpdateConnection($id: ID!, $input: AdaUpdateConnectionInput!) {
|
|
142
|
+
adaUpdateConnection(id: $id, input: $input) { ...ConnectionFull }
|
|
143
|
+
}
|
|
144
|
+
`,N=`
|
|
145
|
+
${i}
|
|
146
|
+
mutation AdaDisableConnection($id: ID!) {
|
|
147
|
+
adaDisableConnection(id: $id) { ...ConnectionFull }
|
|
148
|
+
}
|
|
149
|
+
`,V=`
|
|
150
|
+
${i}
|
|
151
|
+
mutation AdaSetConnectionStatus($id: ID!, $status: AdaConnectionStatus!) {
|
|
152
|
+
adaSetConnectionStatus(id: $id, status: $status) { ...ConnectionFull }
|
|
153
|
+
}
|
|
154
|
+
`,U=`
|
|
155
|
+
${g}
|
|
156
|
+
query AdaResource($id: ID!) { adaResource(id: $id) { ...ResourceFull } }
|
|
157
|
+
`,F=`
|
|
158
|
+
${u}
|
|
159
|
+
query AdaListResources(
|
|
160
|
+
$connectionId: ID
|
|
161
|
+
$resourceType: String
|
|
162
|
+
$state: AdaResourceState
|
|
163
|
+
$pagination: PaginationInput
|
|
164
|
+
) {
|
|
165
|
+
adaListResources(
|
|
166
|
+
connectionId: $connectionId
|
|
167
|
+
resourceType: $resourceType
|
|
168
|
+
state: $state
|
|
169
|
+
pagination: $pagination
|
|
170
|
+
) {
|
|
171
|
+
items { ...ResourceScalars }
|
|
172
|
+
pageInfo { cursor hasMore }
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
`,x=`
|
|
176
|
+
${g}
|
|
177
|
+
mutation AdaRegisterResource($input: AdaRegisterResourceInput!) {
|
|
178
|
+
adaRegisterResource(input: $input) { ...ResourceFull }
|
|
179
|
+
}
|
|
180
|
+
`,q=`
|
|
181
|
+
${d}
|
|
182
|
+
query AdaSyncRun($id: ID!) { adaSyncRun(id: $id) { ...SyncRunFields } }
|
|
183
|
+
`,w=`
|
|
184
|
+
${d}
|
|
185
|
+
query AdaListSyncRuns(
|
|
186
|
+
$connectionId: ID
|
|
187
|
+
$status: AdaSyncStatus
|
|
188
|
+
$pagination: PaginationInput
|
|
189
|
+
) {
|
|
190
|
+
adaListSyncRuns(connectionId: $connectionId, status: $status, pagination: $pagination) {
|
|
191
|
+
items { ...SyncRunFields }
|
|
192
|
+
pageInfo { cursor hasMore }
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
`,v=`
|
|
196
|
+
${d}
|
|
197
|
+
mutation AdaStartSyncRun($input: AdaStartSyncRunInput!) {
|
|
198
|
+
adaStartSyncRun(input: $input) { ...SyncRunFields }
|
|
199
|
+
}
|
|
200
|
+
`,h=`
|
|
201
|
+
${d}
|
|
202
|
+
mutation AdaCompleteSyncRun($id: ID!, $input: AdaCompleteSyncRunInput) {
|
|
203
|
+
adaCompleteSyncRun(id: $id, input: $input) { ...SyncRunFields }
|
|
204
|
+
}
|
|
205
|
+
`,k=`
|
|
206
|
+
${d}
|
|
207
|
+
mutation AdaCancelSyncRun($id: ID!) {
|
|
208
|
+
adaCancelSyncRun(id: $id) { ...SyncRunFields }
|
|
209
|
+
}
|
|
210
|
+
`,Y=`
|
|
211
|
+
${d}
|
|
212
|
+
mutation AdaFailSyncRun($id: ID!, $error: String!) {
|
|
213
|
+
adaFailSyncRun(id: $id, error: $error) { ...SyncRunFields }
|
|
214
|
+
}
|
|
215
|
+
`,G=`
|
|
216
|
+
${A}
|
|
217
|
+
query AdaListDriftRecords($resourceId: ID, $status: AdaDriftStatus) {
|
|
218
|
+
adaListDriftRecords(resourceId: $resourceId, status: $status) { ...DriftFields }
|
|
219
|
+
}
|
|
220
|
+
`,M=`
|
|
221
|
+
${A}
|
|
222
|
+
mutation AdaRecordDrift($input: AdaRecordDriftInput!) {
|
|
223
|
+
adaRecordDrift(input: $input) { ...DriftFields }
|
|
224
|
+
}
|
|
225
|
+
`,b=`
|
|
226
|
+
${A}
|
|
227
|
+
mutation AdaRemediateDrift($id: ID!) {
|
|
228
|
+
adaRemediateDrift(id: $id) { ...DriftFields }
|
|
229
|
+
}
|
|
230
|
+
`,K=`
|
|
231
|
+
${R}
|
|
232
|
+
query AdaPolicy($id: ID!) { adaPolicy(id: $id) { ...PolicyFull } }
|
|
233
|
+
`,H=`
|
|
234
|
+
${p}
|
|
235
|
+
query AdaListPolicies(
|
|
236
|
+
$isActive: Boolean
|
|
237
|
+
$kind: AdaPolicyKind
|
|
238
|
+
$pagination: PaginationInput
|
|
239
|
+
) {
|
|
240
|
+
adaListPolicies(isActive: $isActive, kind: $kind, pagination: $pagination) {
|
|
241
|
+
items { ...PolicyScalars }
|
|
242
|
+
pageInfo { cursor hasMore }
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
`,j=`
|
|
246
|
+
${R}
|
|
247
|
+
mutation AdaCreatePolicy($input: AdaCreatePolicyInput!) {
|
|
248
|
+
adaCreatePolicy(input: $input) { ...PolicyFull }
|
|
249
|
+
}
|
|
250
|
+
`,B=`
|
|
251
|
+
${R}
|
|
252
|
+
mutation AdaUpdatePolicy($id: ID!, $input: AdaUpdatePolicyInput!) {
|
|
253
|
+
adaUpdatePolicy(id: $id, input: $input) { ...PolicyFull }
|
|
254
|
+
}
|
|
255
|
+
`,z=`
|
|
256
|
+
mutation AdaArchivePolicy($id: ID!) { adaArchivePolicy(id: $id) }
|
|
257
|
+
`,J=`
|
|
258
|
+
${l}
|
|
259
|
+
query AdaListViolations(
|
|
260
|
+
$policyId: ID
|
|
261
|
+
$resourceId: ID
|
|
262
|
+
$status: AdaViolationStatus
|
|
263
|
+
$pagination: PaginationInput
|
|
264
|
+
) {
|
|
265
|
+
adaListViolations(
|
|
266
|
+
policyId: $policyId
|
|
267
|
+
resourceId: $resourceId
|
|
268
|
+
status: $status
|
|
269
|
+
pagination: $pagination
|
|
270
|
+
) {
|
|
271
|
+
items { ...ViolationScalars }
|
|
272
|
+
pageInfo { cursor hasMore }
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
`,Q=`
|
|
276
|
+
${P}
|
|
277
|
+
mutation AdaRecordViolation($input: AdaRecordViolationInput!) {
|
|
278
|
+
adaRecordViolation(input: $input) { ...ViolationFull }
|
|
279
|
+
}
|
|
280
|
+
`,W=`
|
|
281
|
+
${P}
|
|
282
|
+
mutation AdaResolveViolation($id: ID!, $status: AdaViolationStatus!, $waiverReason: String) {
|
|
283
|
+
adaResolveViolation(id: $id, status: $status, waiverReason: $waiverReason) {
|
|
284
|
+
...ViolationFull
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
`,X=`
|
|
288
|
+
${S}
|
|
289
|
+
query AdaListTopologyEdges($resourceId: ID, $kind: AdaEdgeKind) {
|
|
290
|
+
adaListTopologyEdges(resourceId: $resourceId, kind: $kind) { ...TopologyEdgeFields }
|
|
291
|
+
}
|
|
292
|
+
`,Z=`
|
|
293
|
+
${S}
|
|
294
|
+
mutation AdaCreateTopologyEdge($input: AdaCreateTopologyEdgeInput!) {
|
|
295
|
+
adaCreateTopologyEdge(input: $input) { ...TopologyEdgeFields }
|
|
296
|
+
}
|
|
297
|
+
`,tt=`
|
|
298
|
+
${I}
|
|
299
|
+
query AdaListCostRecords($connectionId: ID, $resourceId: ID, $service: String) {
|
|
300
|
+
adaListCostRecords(connectionId: $connectionId, resourceId: $resourceId, service: $service) {
|
|
301
|
+
...CostRecordFields
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
`,at=`
|
|
305
|
+
query AdaCostSummary($connectionId: ID) {
|
|
306
|
+
adaCostSummary(connectionId: $connectionId) {
|
|
307
|
+
currency total
|
|
308
|
+
lines { service total }
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
`,et=`
|
|
312
|
+
${I}
|
|
313
|
+
mutation AdaIngestCost($input: AdaIngestCostInput!) {
|
|
314
|
+
adaIngestCost(input: $input) { ...CostRecordFields }
|
|
315
|
+
}
|
|
316
|
+
`,ot="query AdaHealth { adaHealth }";function nt(s){let{workspace:e}=s.gql;return {adapters:{async get(t){return (await e.request($,{id:t})).adaAdapter},async list(t,a,o){return (await e.request(E,{kind:t,status:a,pagination:o})).adaListAdapters},async create(t){return (await e.request(T,{input:t})).adaCreateAdapter},async update(t,a){return (await e.request(m,{id:t,input:a})).adaUpdateAdapter},async archive(t){return (await e.request(D,{id:t})).adaArchiveAdapter}},connections:{async get(t){return (await e.request(_,{id:t})).adaConnection},async list(t,a,o){return (await e.request(L,{adapterId:t,status:a,pagination:o})).adaListConnections},async create(t){return (await e.request(O,{input:t})).adaCreateConnection},async update(t,a){return (await e.request(f,{id:t,input:a})).adaUpdateConnection},async disable(t){return (await e.request(N,{id:t})).adaDisableConnection},async setStatus(t,a){return (await e.request(V,{id:t,status:a})).adaSetConnectionStatus}},resources:{async get(t){return (await e.request(U,{id:t})).adaResource},async list(t,a,o,n){return (await e.request(F,{connectionId:t,resourceType:a,state:o,pagination:n})).adaListResources},async register(t){return (await e.request(x,{input:t})).adaRegisterResource}},syncRuns:{async get(t){return (await e.request(q,{id:t})).adaSyncRun},async list(t,a,o){return (await e.request(w,{connectionId:t,status:a,pagination:o})).adaListSyncRuns},async start(t){return (await e.request(v,{input:t})).adaStartSyncRun},async complete(t,a){return (await e.request(h,{id:t,input:a})).adaCompleteSyncRun},async cancel(t){return (await e.request(k,{id:t})).adaCancelSyncRun},async fail(t,a){return (await e.request(Y,{id:t,error:a})).adaFailSyncRun}},drift:{async list(t,a){return (await e.request(G,{resourceId:t,status:a})).adaListDriftRecords},async record(t){return (await e.request(M,{input:t})).adaRecordDrift},async remediate(t){return (await e.request(b,{id:t})).adaRemediateDrift}},policies:{async get(t){return (await e.request(K,{id:t})).adaPolicy},async list(t,a,o){return (await e.request(H,{isActive:t,kind:a,pagination:o})).adaListPolicies},async create(t){return (await e.request(j,{input:t})).adaCreatePolicy},async update(t,a){return (await e.request(B,{id:t,input:a})).adaUpdatePolicy},async archive(t){return (await e.request(z,{id:t})).adaArchivePolicy}},violations:{async list(t,a,o,n){return (await e.request(J,{policyId:t,resourceId:a,status:o,pagination:n})).adaListViolations},async record(t){return (await e.request(Q,{input:t})).adaRecordViolation},async resolve(t,a,o){return (await e.request(W,{id:t,status:a,waiverReason:o})).adaResolveViolation}},topology:{async list(t,a){return (await e.request(X,{resourceId:t,kind:a})).adaListTopologyEdges},async createEdge(t){return (await e.request(Z,{input:t})).adaCreateTopologyEdge}},cost:{async listRecords(t,a,o){return (await e.request(tt,{connectionId:t,resourceId:a,service:o})).adaListCostRecords},async summary(t){return (await e.request(at,{connectionId:t})).adaCostSummary},async ingest(t){return (await e.request(et,{input:t})).adaIngestCost}},analytics:{async health(){return (await e.request(ot)).adaHealth}}}}var it={id:"adaptercloud",version:"1.0.0",displayName:"AdapterCloud",dependsOn:["auth"],attach(s){return nt(s)}},Tt=it;module.exports=Tt;
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type AdaAdapterKind = 'CUSTOM' | 'DATA_SYSTEM' | 'EDGE' | 'KUBERNETES' | 'NETWORK' | 'ON_PREM' | 'PRIVATE_CLOUD' | 'PUBLIC_CLOUD' | 'SAAS';
|
|
5
|
+
type AdaAdapterStatus = 'ARCHIVED' | 'DEPRECATED' | 'DRAFT' | 'PUBLISHED';
|
|
6
|
+
type AdaAuthMethod = 'API_KEY' | 'CERTIFICATE' | 'IAM_ROLE' | 'NONE' | 'OAUTH2' | 'SERVICE_ACCOUNT';
|
|
7
|
+
type AdaConnectionStatus = 'CONNECTED' | 'DEGRADED' | 'DISABLED' | 'ERROR' | 'PENDING';
|
|
8
|
+
type AdaDriftStatus = 'ACKNOWLEDGED' | 'DETECTED' | 'IGNORED' | 'REMEDIATED';
|
|
9
|
+
type AdaEdgeKind = 'CONNECTS_TO' | 'CONTAINS' | 'DEPENDS_ON' | 'REPLICATES_TO' | 'ROUTES_TO';
|
|
10
|
+
type AdaPolicyEnforcement = 'ADVISORY' | 'BLOCK' | 'WARN';
|
|
11
|
+
type AdaPolicyKind = 'COMPLIANCE' | 'COST' | 'GUARDRAIL' | 'NAMING' | 'SECURITY' | 'TAGGING';
|
|
12
|
+
type AdaResourceState = 'DELETED' | 'DISCOVERED' | 'DRIFTED' | 'ORPHANED' | 'RECONCILED';
|
|
13
|
+
type AdaSeverity = 'CRITICAL' | 'HIGH' | 'INFO' | 'LOW' | 'MEDIUM';
|
|
14
|
+
type AdaSyncKind = 'COST_INGEST' | 'DISCOVERY' | 'FULL' | 'RECONCILE';
|
|
15
|
+
type AdaSyncStatus = 'CANCELLED' | 'FAILED' | 'QUEUED' | 'RUNNING' | 'SUCCEEDED';
|
|
16
|
+
type AdaViolationStatus = 'ACKNOWLEDGED' | 'OPEN' | 'RESOLVED' | 'WAIVED';
|
|
17
|
+
interface PaginationInput {
|
|
18
|
+
cursor?: string;
|
|
19
|
+
limit?: number;
|
|
20
|
+
offset?: number;
|
|
21
|
+
}
|
|
22
|
+
interface AdaPageInfo {
|
|
23
|
+
cursor?: string | null;
|
|
24
|
+
hasMore: boolean;
|
|
25
|
+
}
|
|
26
|
+
interface AdaAdapter {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
slug: string;
|
|
30
|
+
description?: string | null;
|
|
31
|
+
kind: AdaAdapterKind;
|
|
32
|
+
status: AdaAdapterStatus;
|
|
33
|
+
vendor?: string | null;
|
|
34
|
+
version: string;
|
|
35
|
+
capabilities: string[];
|
|
36
|
+
configSchema?: Json | null;
|
|
37
|
+
tags: string[];
|
|
38
|
+
workspaceId: string;
|
|
39
|
+
createdAt: string;
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
connections?: AdaConnection[];
|
|
42
|
+
}
|
|
43
|
+
interface AdaConnection {
|
|
44
|
+
id: string;
|
|
45
|
+
adapterId: string;
|
|
46
|
+
name: string;
|
|
47
|
+
authMethod: AdaAuthMethod;
|
|
48
|
+
status: AdaConnectionStatus;
|
|
49
|
+
config?: Json | null;
|
|
50
|
+
environment?: string | null;
|
|
51
|
+
region?: string | null;
|
|
52
|
+
secretRef?: string | null;
|
|
53
|
+
targetRef?: string | null;
|
|
54
|
+
lastError?: string | null;
|
|
55
|
+
lastSyncedAt?: string | null;
|
|
56
|
+
resourceCount: number;
|
|
57
|
+
tags: string[];
|
|
58
|
+
workspaceId: string;
|
|
59
|
+
createdAt: string;
|
|
60
|
+
updatedAt: string;
|
|
61
|
+
adapter?: AdaAdapter | null;
|
|
62
|
+
resources?: AdaResource[];
|
|
63
|
+
}
|
|
64
|
+
interface AdaResource {
|
|
65
|
+
id: string;
|
|
66
|
+
connectionId: string;
|
|
67
|
+
externalId: string;
|
|
68
|
+
name: string;
|
|
69
|
+
resourceType: string;
|
|
70
|
+
state: AdaResourceState;
|
|
71
|
+
region?: string | null;
|
|
72
|
+
monthlyCost: number;
|
|
73
|
+
attributes?: Json | null;
|
|
74
|
+
providerTags?: Json | null;
|
|
75
|
+
tags: string[];
|
|
76
|
+
lastSeenAt?: string | null;
|
|
77
|
+
workspaceId: string;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
connection?: AdaConnection | null;
|
|
81
|
+
dependsOn?: AdaResource[];
|
|
82
|
+
}
|
|
83
|
+
interface AdaSyncRun {
|
|
84
|
+
id: string;
|
|
85
|
+
connectionId: string;
|
|
86
|
+
kind: AdaSyncKind;
|
|
87
|
+
status: AdaSyncStatus;
|
|
88
|
+
discoveredCount: number;
|
|
89
|
+
driftCount: number;
|
|
90
|
+
reconciledCount: number;
|
|
91
|
+
violationCount: number;
|
|
92
|
+
summary?: Json | null;
|
|
93
|
+
error?: string | null;
|
|
94
|
+
startedAt?: string | null;
|
|
95
|
+
finishedAt?: string | null;
|
|
96
|
+
workspaceId: string;
|
|
97
|
+
createdAt: string;
|
|
98
|
+
updatedAt: string;
|
|
99
|
+
}
|
|
100
|
+
interface AdaDriftRecord {
|
|
101
|
+
id: string;
|
|
102
|
+
resourceId: string;
|
|
103
|
+
attributePath: string;
|
|
104
|
+
expectedValue?: Json | null;
|
|
105
|
+
observedValue?: Json | null;
|
|
106
|
+
severity: AdaSeverity;
|
|
107
|
+
status: AdaDriftStatus;
|
|
108
|
+
detectedAt: string;
|
|
109
|
+
remediatedAt?: string | null;
|
|
110
|
+
workspaceId: string;
|
|
111
|
+
createdAt: string;
|
|
112
|
+
updatedAt: string;
|
|
113
|
+
}
|
|
114
|
+
interface AdaPolicy {
|
|
115
|
+
id: string;
|
|
116
|
+
name: string;
|
|
117
|
+
description?: string | null;
|
|
118
|
+
kind: AdaPolicyKind;
|
|
119
|
+
enforcement: AdaPolicyEnforcement;
|
|
120
|
+
severity: AdaSeverity;
|
|
121
|
+
expression: Json;
|
|
122
|
+
appliesTo: string[];
|
|
123
|
+
isActive: boolean;
|
|
124
|
+
tags: string[];
|
|
125
|
+
workspaceId: string;
|
|
126
|
+
createdAt: string;
|
|
127
|
+
updatedAt: string;
|
|
128
|
+
violations?: AdaPolicyViolation[];
|
|
129
|
+
}
|
|
130
|
+
interface AdaPolicyViolation {
|
|
131
|
+
id: string;
|
|
132
|
+
policyId: string;
|
|
133
|
+
resourceId: string;
|
|
134
|
+
message: string;
|
|
135
|
+
severity: AdaSeverity;
|
|
136
|
+
status: AdaViolationStatus;
|
|
137
|
+
evidence?: Json | null;
|
|
138
|
+
waiverReason?: string | null;
|
|
139
|
+
detectedAt: string;
|
|
140
|
+
resolvedAt?: string | null;
|
|
141
|
+
resolvedById?: string | null;
|
|
142
|
+
workspaceId: string;
|
|
143
|
+
createdAt: string;
|
|
144
|
+
updatedAt: string;
|
|
145
|
+
policy?: AdaPolicy | null;
|
|
146
|
+
}
|
|
147
|
+
interface AdaCostRecord {
|
|
148
|
+
id: string;
|
|
149
|
+
service: string;
|
|
150
|
+
amount: number;
|
|
151
|
+
currency: string;
|
|
152
|
+
periodStart: string;
|
|
153
|
+
periodEnd: string;
|
|
154
|
+
breakdown?: Json | null;
|
|
155
|
+
connectionId?: string | null;
|
|
156
|
+
resourceId?: string | null;
|
|
157
|
+
workspaceId: string;
|
|
158
|
+
createdAt: string;
|
|
159
|
+
updatedAt: string;
|
|
160
|
+
}
|
|
161
|
+
interface AdaTopologyEdge {
|
|
162
|
+
id: string;
|
|
163
|
+
fromResourceId: string;
|
|
164
|
+
toResourceId: string;
|
|
165
|
+
kind: AdaEdgeKind;
|
|
166
|
+
weight: number;
|
|
167
|
+
bidirectional: boolean;
|
|
168
|
+
attributes?: Json | null;
|
|
169
|
+
workspaceId: string;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
updatedAt: string;
|
|
172
|
+
}
|
|
173
|
+
interface AdaAdapterConnectionPage {
|
|
174
|
+
items: AdaAdapter[];
|
|
175
|
+
pageInfo: AdaPageInfo;
|
|
176
|
+
}
|
|
177
|
+
interface AdaConnectionPage {
|
|
178
|
+
items: AdaConnection[];
|
|
179
|
+
pageInfo: AdaPageInfo;
|
|
180
|
+
}
|
|
181
|
+
interface AdaResourcePage {
|
|
182
|
+
items: AdaResource[];
|
|
183
|
+
pageInfo: AdaPageInfo;
|
|
184
|
+
}
|
|
185
|
+
interface AdaSyncRunPage {
|
|
186
|
+
items: AdaSyncRun[];
|
|
187
|
+
pageInfo: AdaPageInfo;
|
|
188
|
+
}
|
|
189
|
+
interface AdaPolicyPage {
|
|
190
|
+
items: AdaPolicy[];
|
|
191
|
+
pageInfo: AdaPageInfo;
|
|
192
|
+
}
|
|
193
|
+
interface AdaPolicyViolationPage {
|
|
194
|
+
items: AdaPolicyViolation[];
|
|
195
|
+
pageInfo: AdaPageInfo;
|
|
196
|
+
}
|
|
197
|
+
interface AdaCostSummaryLine {
|
|
198
|
+
service: string;
|
|
199
|
+
total: number;
|
|
200
|
+
}
|
|
201
|
+
interface AdaCostSummary {
|
|
202
|
+
currency: string;
|
|
203
|
+
total: number;
|
|
204
|
+
lines: AdaCostSummaryLine[];
|
|
205
|
+
}
|
|
206
|
+
interface AdaCreateAdapterInput {
|
|
207
|
+
name: string;
|
|
208
|
+
slug: string;
|
|
209
|
+
description?: string;
|
|
210
|
+
kind?: AdaAdapterKind;
|
|
211
|
+
status?: AdaAdapterStatus;
|
|
212
|
+
vendor?: string;
|
|
213
|
+
version?: string;
|
|
214
|
+
capabilities?: string[];
|
|
215
|
+
configSchema?: Json;
|
|
216
|
+
tags?: string[];
|
|
217
|
+
}
|
|
218
|
+
interface AdaUpdateAdapterInput {
|
|
219
|
+
name?: string;
|
|
220
|
+
description?: string;
|
|
221
|
+
kind?: AdaAdapterKind;
|
|
222
|
+
status?: AdaAdapterStatus;
|
|
223
|
+
vendor?: string;
|
|
224
|
+
version?: string;
|
|
225
|
+
capabilities?: string[];
|
|
226
|
+
configSchema?: Json;
|
|
227
|
+
tags?: string[];
|
|
228
|
+
}
|
|
229
|
+
interface AdaCreateConnectionInput {
|
|
230
|
+
adapterId: string;
|
|
231
|
+
name: string;
|
|
232
|
+
authMethod?: AdaAuthMethod;
|
|
233
|
+
config?: Json;
|
|
234
|
+
environment?: string;
|
|
235
|
+
region?: string;
|
|
236
|
+
secretRef?: string;
|
|
237
|
+
targetRef?: string;
|
|
238
|
+
tags?: string[];
|
|
239
|
+
}
|
|
240
|
+
interface AdaUpdateConnectionInput {
|
|
241
|
+
name?: string;
|
|
242
|
+
authMethod?: AdaAuthMethod;
|
|
243
|
+
config?: Json;
|
|
244
|
+
environment?: string;
|
|
245
|
+
region?: string;
|
|
246
|
+
secretRef?: string;
|
|
247
|
+
targetRef?: string;
|
|
248
|
+
tags?: string[];
|
|
249
|
+
}
|
|
250
|
+
interface AdaRegisterResourceInput {
|
|
251
|
+
connectionId: string;
|
|
252
|
+
externalId: string;
|
|
253
|
+
name: string;
|
|
254
|
+
resourceType: string;
|
|
255
|
+
region?: string;
|
|
256
|
+
monthlyCost?: number;
|
|
257
|
+
attributes?: Json;
|
|
258
|
+
providerTags?: Json;
|
|
259
|
+
tags?: string[];
|
|
260
|
+
}
|
|
261
|
+
interface AdaStartSyncRunInput {
|
|
262
|
+
connectionId: string;
|
|
263
|
+
kind?: AdaSyncKind;
|
|
264
|
+
}
|
|
265
|
+
interface AdaCompleteSyncRunInput {
|
|
266
|
+
discoveredCount?: number;
|
|
267
|
+
driftCount?: number;
|
|
268
|
+
reconciledCount?: number;
|
|
269
|
+
violationCount?: number;
|
|
270
|
+
summary?: Json;
|
|
271
|
+
}
|
|
272
|
+
interface AdaRecordDriftInput {
|
|
273
|
+
resourceId: string;
|
|
274
|
+
attributePath: string;
|
|
275
|
+
expectedValue?: Json;
|
|
276
|
+
observedValue?: Json;
|
|
277
|
+
severity?: AdaSeverity;
|
|
278
|
+
}
|
|
279
|
+
interface AdaCreatePolicyInput {
|
|
280
|
+
name: string;
|
|
281
|
+
expression: Json;
|
|
282
|
+
description?: string;
|
|
283
|
+
kind?: AdaPolicyKind;
|
|
284
|
+
enforcement?: AdaPolicyEnforcement;
|
|
285
|
+
severity?: AdaSeverity;
|
|
286
|
+
appliesTo?: string[];
|
|
287
|
+
isActive?: boolean;
|
|
288
|
+
tags?: string[];
|
|
289
|
+
}
|
|
290
|
+
interface AdaUpdatePolicyInput {
|
|
291
|
+
name?: string;
|
|
292
|
+
description?: string;
|
|
293
|
+
kind?: AdaPolicyKind;
|
|
294
|
+
enforcement?: AdaPolicyEnforcement;
|
|
295
|
+
severity?: AdaSeverity;
|
|
296
|
+
expression?: Json;
|
|
297
|
+
appliesTo?: string[];
|
|
298
|
+
isActive?: boolean;
|
|
299
|
+
tags?: string[];
|
|
300
|
+
}
|
|
301
|
+
interface AdaRecordViolationInput {
|
|
302
|
+
policyId: string;
|
|
303
|
+
resourceId: string;
|
|
304
|
+
message: string;
|
|
305
|
+
evidence?: Json;
|
|
306
|
+
severity?: AdaSeverity;
|
|
307
|
+
}
|
|
308
|
+
interface AdaIngestCostInput {
|
|
309
|
+
service: string;
|
|
310
|
+
amount: number;
|
|
311
|
+
periodStart: string;
|
|
312
|
+
periodEnd: string;
|
|
313
|
+
currency?: string;
|
|
314
|
+
breakdown?: Json;
|
|
315
|
+
connectionId?: string;
|
|
316
|
+
resourceId?: string;
|
|
317
|
+
}
|
|
318
|
+
interface AdaCreateTopologyEdgeInput {
|
|
319
|
+
fromResourceId: string;
|
|
320
|
+
toResourceId: string;
|
|
321
|
+
kind?: AdaEdgeKind;
|
|
322
|
+
weight?: number;
|
|
323
|
+
bidirectional?: boolean;
|
|
324
|
+
attributes?: Json;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
interface AdaptercloudAdaptersApi {
|
|
328
|
+
get(id: string): Promise<AdaAdapter | null>;
|
|
329
|
+
list(kind?: AdaAdapterKind, status?: AdaAdapterStatus, pagination?: PaginationInput): Promise<AdaAdapterConnectionPage>;
|
|
330
|
+
create(input: AdaCreateAdapterInput): Promise<AdaAdapter>;
|
|
331
|
+
update(id: string, input: AdaUpdateAdapterInput): Promise<AdaAdapter>;
|
|
332
|
+
archive(id: string): Promise<boolean>;
|
|
333
|
+
}
|
|
334
|
+
interface AdaptercloudConnectionsApi {
|
|
335
|
+
get(id: string): Promise<AdaConnection | null>;
|
|
336
|
+
list(adapterId?: string, status?: AdaConnectionStatus, pagination?: PaginationInput): Promise<AdaConnectionPage>;
|
|
337
|
+
create(input: AdaCreateConnectionInput): Promise<AdaConnection>;
|
|
338
|
+
update(id: string, input: AdaUpdateConnectionInput): Promise<AdaConnection>;
|
|
339
|
+
disable(id: string): Promise<AdaConnection>;
|
|
340
|
+
setStatus(id: string, status: AdaConnectionStatus): Promise<AdaConnection>;
|
|
341
|
+
}
|
|
342
|
+
interface AdaptercloudResourcesApi {
|
|
343
|
+
get(id: string): Promise<AdaResource | null>;
|
|
344
|
+
list(connectionId?: string, resourceType?: string, state?: AdaResourceState, pagination?: PaginationInput): Promise<AdaResourcePage>;
|
|
345
|
+
register(input: AdaRegisterResourceInput): Promise<AdaResource>;
|
|
346
|
+
}
|
|
347
|
+
interface AdaptercloudSyncRunsApi {
|
|
348
|
+
get(id: string): Promise<AdaSyncRun | null>;
|
|
349
|
+
list(connectionId?: string, status?: AdaSyncStatus, pagination?: PaginationInput): Promise<AdaSyncRunPage>;
|
|
350
|
+
start(input: AdaStartSyncRunInput): Promise<AdaSyncRun>;
|
|
351
|
+
complete(id: string, input?: AdaCompleteSyncRunInput): Promise<AdaSyncRun>;
|
|
352
|
+
cancel(id: string): Promise<AdaSyncRun>;
|
|
353
|
+
fail(id: string, error: string): Promise<AdaSyncRun>;
|
|
354
|
+
}
|
|
355
|
+
interface AdaptercloudDriftApi {
|
|
356
|
+
list(resourceId?: string, status?: AdaDriftStatus): Promise<AdaDriftRecord[]>;
|
|
357
|
+
record(input: AdaRecordDriftInput): Promise<AdaDriftRecord>;
|
|
358
|
+
remediate(id: string): Promise<AdaDriftRecord>;
|
|
359
|
+
}
|
|
360
|
+
interface AdaptercloudPoliciesApi {
|
|
361
|
+
get(id: string): Promise<AdaPolicy | null>;
|
|
362
|
+
list(isActive?: boolean, kind?: AdaPolicyKind, pagination?: PaginationInput): Promise<AdaPolicyPage>;
|
|
363
|
+
create(input: AdaCreatePolicyInput): Promise<AdaPolicy>;
|
|
364
|
+
update(id: string, input: AdaUpdatePolicyInput): Promise<AdaPolicy>;
|
|
365
|
+
archive(id: string): Promise<boolean>;
|
|
366
|
+
}
|
|
367
|
+
interface AdaptercloudViolationsApi {
|
|
368
|
+
list(policyId?: string, resourceId?: string, status?: AdaViolationStatus, pagination?: PaginationInput): Promise<AdaPolicyViolationPage>;
|
|
369
|
+
record(input: AdaRecordViolationInput): Promise<AdaPolicyViolation>;
|
|
370
|
+
resolve(id: string, status: AdaViolationStatus, waiverReason?: string): Promise<AdaPolicyViolation>;
|
|
371
|
+
}
|
|
372
|
+
interface AdaptercloudTopologyApi {
|
|
373
|
+
list(resourceId?: string, kind?: AdaEdgeKind): Promise<AdaTopologyEdge[]>;
|
|
374
|
+
createEdge(input: AdaCreateTopologyEdgeInput): Promise<AdaTopologyEdge>;
|
|
375
|
+
}
|
|
376
|
+
interface AdaptercloudCostApi {
|
|
377
|
+
listRecords(connectionId?: string, resourceId?: string, service?: string): Promise<AdaCostRecord[]>;
|
|
378
|
+
summary(connectionId?: string): Promise<AdaCostSummary>;
|
|
379
|
+
ingest(input: AdaIngestCostInput): Promise<AdaCostRecord>;
|
|
380
|
+
}
|
|
381
|
+
interface AdaptercloudAnalyticsApi {
|
|
382
|
+
health(): Promise<string>;
|
|
383
|
+
}
|
|
384
|
+
interface AdaptercloudApi {
|
|
385
|
+
adapters: AdaptercloudAdaptersApi;
|
|
386
|
+
connections: AdaptercloudConnectionsApi;
|
|
387
|
+
resources: AdaptercloudResourcesApi;
|
|
388
|
+
syncRuns: AdaptercloudSyncRunsApi;
|
|
389
|
+
drift: AdaptercloudDriftApi;
|
|
390
|
+
policies: AdaptercloudPoliciesApi;
|
|
391
|
+
violations: AdaptercloudViolationsApi;
|
|
392
|
+
topology: AdaptercloudTopologyApi;
|
|
393
|
+
cost: AdaptercloudCostApi;
|
|
394
|
+
analytics: AdaptercloudAnalyticsApi;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
declare const adaptercloudModule: SdkModule<AdaptercloudApi>;
|
|
398
|
+
|
|
399
|
+
export { type AdaAdapter, type AdaAdapterConnectionPage, type AdaAdapterKind, type AdaAdapterStatus, type AdaAuthMethod, type AdaCompleteSyncRunInput, type AdaConnection, type AdaConnectionPage, type AdaConnectionStatus, type AdaCostRecord, type AdaCostSummary, type AdaCostSummaryLine, type AdaCreateAdapterInput, type AdaCreateConnectionInput, type AdaCreatePolicyInput, type AdaCreateTopologyEdgeInput, type AdaDriftRecord, type AdaDriftStatus, type AdaEdgeKind, type AdaIngestCostInput, type AdaPageInfo, type AdaPolicy, type AdaPolicyEnforcement, type AdaPolicyKind, type AdaPolicyPage, type AdaPolicyViolation, type AdaPolicyViolationPage, type AdaRecordDriftInput, type AdaRecordViolationInput, type AdaRegisterResourceInput, type AdaResource, type AdaResourcePage, type AdaResourceState, type AdaSeverity, type AdaStartSyncRunInput, type AdaSyncKind, type AdaSyncRun, type AdaSyncRunPage, type AdaSyncStatus, type AdaTopologyEdge, type AdaUpdateAdapterInput, type AdaUpdateConnectionInput, type AdaUpdatePolicyInput, type AdaViolationStatus, type AdaptercloudAdaptersApi, type AdaptercloudAnalyticsApi, type AdaptercloudApi, type AdaptercloudConnectionsApi, type AdaptercloudCostApi, type AdaptercloudDriftApi, type AdaptercloudPoliciesApi, type AdaptercloudResourcesApi, type AdaptercloudSyncRunsApi, type AdaptercloudTopologyApi, type AdaptercloudViolationsApi, type PaginationInput, adaptercloudModule as default };
|