@kilocode/sdk 7.4.15 → 7.4.16
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/v2/gen/sdk.gen.d.ts +91 -67
- package/dist/v2/gen/sdk.gen.js +160 -102
- package/dist/v2/gen/types.gen.d.ts +305 -233
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -305,52 +305,23 @@ export class Resource extends HeyApiClient {
|
|
|
305
305
|
}
|
|
306
306
|
export class ProjectCopy extends HeyApiClient {
|
|
307
307
|
/**
|
|
308
|
-
*
|
|
308
|
+
* Generate project copy name
|
|
309
309
|
*
|
|
310
|
-
*
|
|
310
|
+
* Generate a short name for a project copy from task context.
|
|
311
311
|
*/
|
|
312
|
-
|
|
313
|
-
const params = buildClientParams([parameters], [
|
|
314
|
-
{
|
|
315
|
-
args: [
|
|
316
|
-
{ in: "path", key: "projectID" },
|
|
317
|
-
{ in: "query", key: "workspace" },
|
|
318
|
-
{ in: "body", key: "directory" },
|
|
319
|
-
{ in: "body", key: "force" },
|
|
320
|
-
],
|
|
321
|
-
},
|
|
322
|
-
]);
|
|
323
|
-
return (options?.client ?? this.client).delete({
|
|
324
|
-
url: "/experimental/project/{projectID}/copy",
|
|
325
|
-
...options,
|
|
326
|
-
...params,
|
|
327
|
-
headers: {
|
|
328
|
-
"Content-Type": "application/json",
|
|
329
|
-
...options?.headers,
|
|
330
|
-
...params.headers,
|
|
331
|
-
},
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* Create project copy
|
|
336
|
-
*
|
|
337
|
-
* Create a local physical copy of a project using the selected strategy.
|
|
338
|
-
*/
|
|
339
|
-
create(parameters, options) {
|
|
312
|
+
generateName(parameters, options) {
|
|
340
313
|
const params = buildClientParams([parameters], [
|
|
341
314
|
{
|
|
342
315
|
args: [
|
|
343
316
|
{ in: "path", key: "projectID" },
|
|
317
|
+
{ in: "query", key: "directory" },
|
|
344
318
|
{ in: "query", key: "workspace" },
|
|
345
|
-
{ in: "body", key: "strategy" },
|
|
346
|
-
{ in: "body", key: "directory" },
|
|
347
|
-
{ in: "body", key: "name" },
|
|
348
319
|
{ in: "body", key: "context" },
|
|
349
320
|
],
|
|
350
321
|
},
|
|
351
322
|
]);
|
|
352
323
|
return (options?.client ?? this.client).post({
|
|
353
|
-
url: "/experimental/project/{projectID}/copy",
|
|
324
|
+
url: "/experimental/project/{projectID}/copy/generate-name",
|
|
354
325
|
...options,
|
|
355
326
|
...params,
|
|
356
327
|
headers: {
|
|
@@ -360,27 +331,6 @@ export class ProjectCopy extends HeyApiClient {
|
|
|
360
331
|
},
|
|
361
332
|
});
|
|
362
333
|
}
|
|
363
|
-
/**
|
|
364
|
-
* Refresh project copies
|
|
365
|
-
*
|
|
366
|
-
* Discover local project copies using one or all configured strategies.
|
|
367
|
-
*/
|
|
368
|
-
refresh(parameters, options) {
|
|
369
|
-
const params = buildClientParams([parameters], [
|
|
370
|
-
{
|
|
371
|
-
args: [
|
|
372
|
-
{ in: "path", key: "projectID" },
|
|
373
|
-
{ in: "query", key: "directory" },
|
|
374
|
-
{ in: "query", key: "workspace" },
|
|
375
|
-
],
|
|
376
|
-
},
|
|
377
|
-
]);
|
|
378
|
-
return (options?.client ?? this.client).post({
|
|
379
|
-
url: "/experimental/project/{projectID}/copy/refresh",
|
|
380
|
-
...options,
|
|
381
|
-
...params,
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
334
|
}
|
|
385
335
|
export class Adapter extends HeyApiClient {
|
|
386
336
|
/**
|
|
@@ -5808,17 +5758,44 @@ export class Provider2 extends HeyApiClient {
|
|
|
5808
5758
|
});
|
|
5809
5759
|
}
|
|
5810
5760
|
}
|
|
5811
|
-
export class
|
|
5761
|
+
export class Connect extends HeyApiClient {
|
|
5762
|
+
/**
|
|
5763
|
+
* Connect with key
|
|
5764
|
+
*
|
|
5765
|
+
* Run a key authentication method and store the resulting credential.
|
|
5766
|
+
*/
|
|
5767
|
+
key(parameters, options) {
|
|
5768
|
+
const params = buildClientParams([parameters], [
|
|
5769
|
+
{
|
|
5770
|
+
args: [
|
|
5771
|
+
{ in: "path", key: "integrationID" },
|
|
5772
|
+
{ in: "query", key: "location" },
|
|
5773
|
+
{ in: "body", key: "key" },
|
|
5774
|
+
{ in: "body", key: "label" },
|
|
5775
|
+
],
|
|
5776
|
+
},
|
|
5777
|
+
]);
|
|
5778
|
+
return (options?.client ?? this.client).post({
|
|
5779
|
+
url: "/api/integration/{integrationID}/connect/key",
|
|
5780
|
+
...options,
|
|
5781
|
+
...params,
|
|
5782
|
+
headers: {
|
|
5783
|
+
"Content-Type": "application/json",
|
|
5784
|
+
...options?.headers,
|
|
5785
|
+
...params.headers,
|
|
5786
|
+
},
|
|
5787
|
+
});
|
|
5788
|
+
}
|
|
5812
5789
|
/**
|
|
5813
5790
|
* Begin OAuth connection
|
|
5814
5791
|
*
|
|
5815
5792
|
* Start an OAuth attempt and return the authorization details.
|
|
5816
5793
|
*/
|
|
5817
|
-
|
|
5794
|
+
oauth(parameters, options) {
|
|
5818
5795
|
const params = buildClientParams([parameters], [
|
|
5819
5796
|
{
|
|
5820
5797
|
args: [
|
|
5821
|
-
{ in: "path", key: "
|
|
5798
|
+
{ in: "path", key: "integrationID" },
|
|
5822
5799
|
{ in: "query", key: "location" },
|
|
5823
5800
|
{ in: "body", key: "methodID" },
|
|
5824
5801
|
{ in: "body", key: "inputs" },
|
|
@@ -5827,7 +5804,7 @@ export class Oauth2 extends HeyApiClient {
|
|
|
5827
5804
|
},
|
|
5828
5805
|
]);
|
|
5829
5806
|
return (options?.client ?? this.client).post({
|
|
5830
|
-
url: "/api/
|
|
5807
|
+
url: "/api/integration/{integrationID}/connect/oauth",
|
|
5831
5808
|
...options,
|
|
5832
5809
|
...params,
|
|
5833
5810
|
headers: {
|
|
@@ -5837,6 +5814,8 @@ export class Oauth2 extends HeyApiClient {
|
|
|
5837
5814
|
},
|
|
5838
5815
|
});
|
|
5839
5816
|
}
|
|
5817
|
+
}
|
|
5818
|
+
export class Attempt extends HeyApiClient {
|
|
5840
5819
|
/**
|
|
5841
5820
|
* Cancel OAuth connection
|
|
5842
5821
|
*
|
|
@@ -5852,7 +5831,7 @@ export class Oauth2 extends HeyApiClient {
|
|
|
5852
5831
|
},
|
|
5853
5832
|
]);
|
|
5854
5833
|
return (options?.client ?? this.client).delete({
|
|
5855
|
-
url: "/api/
|
|
5834
|
+
url: "/api/integration/attempt/{attemptID}",
|
|
5856
5835
|
...options,
|
|
5857
5836
|
...params,
|
|
5858
5837
|
});
|
|
@@ -5872,7 +5851,7 @@ export class Oauth2 extends HeyApiClient {
|
|
|
5872
5851
|
},
|
|
5873
5852
|
]);
|
|
5874
5853
|
return (options?.client ?? this.client).get({
|
|
5875
|
-
url: "/api/
|
|
5854
|
+
url: "/api/integration/attempt/{attemptID}",
|
|
5876
5855
|
...options,
|
|
5877
5856
|
...params,
|
|
5878
5857
|
});
|
|
@@ -5893,7 +5872,7 @@ export class Oauth2 extends HeyApiClient {
|
|
|
5893
5872
|
},
|
|
5894
5873
|
]);
|
|
5895
5874
|
return (options?.client ?? this.client).post({
|
|
5896
|
-
url: "/api/
|
|
5875
|
+
url: "/api/integration/attempt/{attemptID}/complete",
|
|
5897
5876
|
...options,
|
|
5898
5877
|
...params,
|
|
5899
5878
|
headers: {
|
|
@@ -5904,79 +5883,88 @@ export class Oauth2 extends HeyApiClient {
|
|
|
5904
5883
|
});
|
|
5905
5884
|
}
|
|
5906
5885
|
}
|
|
5907
|
-
export class
|
|
5886
|
+
export class Integration extends HeyApiClient {
|
|
5908
5887
|
/**
|
|
5909
|
-
*
|
|
5888
|
+
* List integrations
|
|
5910
5889
|
*
|
|
5911
|
-
*
|
|
5890
|
+
* Retrieve available integrations and their authentication methods.
|
|
5912
5891
|
*/
|
|
5913
|
-
|
|
5892
|
+
list(parameters, options) {
|
|
5893
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
5894
|
+
return (options?.client ?? this.client).get({
|
|
5895
|
+
url: "/api/integration",
|
|
5896
|
+
...options,
|
|
5897
|
+
...params,
|
|
5898
|
+
});
|
|
5899
|
+
}
|
|
5900
|
+
/**
|
|
5901
|
+
* Get integration
|
|
5902
|
+
*
|
|
5903
|
+
* Retrieve one integration and its authentication methods.
|
|
5904
|
+
*/
|
|
5905
|
+
get(parameters, options) {
|
|
5914
5906
|
const params = buildClientParams([parameters], [
|
|
5915
5907
|
{
|
|
5916
5908
|
args: [
|
|
5917
|
-
{ in: "path", key: "
|
|
5909
|
+
{ in: "path", key: "integrationID" },
|
|
5918
5910
|
{ in: "query", key: "location" },
|
|
5919
|
-
{ in: "body", key: "methodID" },
|
|
5920
|
-
{ in: "body", key: "key" },
|
|
5921
|
-
{ in: "body", key: "inputs" },
|
|
5922
|
-
{ in: "body", key: "label" },
|
|
5923
5911
|
],
|
|
5924
5912
|
},
|
|
5925
5913
|
]);
|
|
5926
|
-
return (options?.client ?? this.client).
|
|
5927
|
-
url: "/api/
|
|
5914
|
+
return (options?.client ?? this.client).get({
|
|
5915
|
+
url: "/api/integration/{integrationID}",
|
|
5928
5916
|
...options,
|
|
5929
5917
|
...params,
|
|
5930
|
-
headers: {
|
|
5931
|
-
"Content-Type": "application/json",
|
|
5932
|
-
...options?.headers,
|
|
5933
|
-
...params.headers,
|
|
5934
|
-
},
|
|
5935
5918
|
});
|
|
5936
5919
|
}
|
|
5937
|
-
|
|
5938
|
-
get
|
|
5939
|
-
return (this.
|
|
5920
|
+
_connect;
|
|
5921
|
+
get connect() {
|
|
5922
|
+
return (this._connect ??= new Connect({ client: this.client }));
|
|
5923
|
+
}
|
|
5924
|
+
_attempt;
|
|
5925
|
+
get attempt() {
|
|
5926
|
+
return (this._attempt ??= new Attempt({ client: this.client }));
|
|
5940
5927
|
}
|
|
5941
5928
|
}
|
|
5942
|
-
export class
|
|
5929
|
+
export class Credential extends HeyApiClient {
|
|
5943
5930
|
/**
|
|
5944
|
-
*
|
|
5931
|
+
* Remove credential
|
|
5945
5932
|
*
|
|
5946
|
-
*
|
|
5933
|
+
* Remove a stored integration credential.
|
|
5947
5934
|
*/
|
|
5948
|
-
|
|
5949
|
-
const params = buildClientParams([parameters], [{ args: [{ in: "
|
|
5950
|
-
return (options?.client ?? this.client).
|
|
5951
|
-
url: "/api/
|
|
5935
|
+
remove(parameters, options) {
|
|
5936
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "credentialID" }] }]);
|
|
5937
|
+
return (options?.client ?? this.client).delete({
|
|
5938
|
+
url: "/api/credential/{credentialID}",
|
|
5952
5939
|
...options,
|
|
5953
5940
|
...params,
|
|
5954
5941
|
});
|
|
5955
5942
|
}
|
|
5956
5943
|
/**
|
|
5957
|
-
*
|
|
5944
|
+
* Update credential
|
|
5958
5945
|
*
|
|
5959
|
-
*
|
|
5946
|
+
* Update a stored credential label.
|
|
5960
5947
|
*/
|
|
5961
|
-
|
|
5948
|
+
update(parameters, options) {
|
|
5962
5949
|
const params = buildClientParams([parameters], [
|
|
5963
5950
|
{
|
|
5964
5951
|
args: [
|
|
5965
|
-
{ in: "path", key: "
|
|
5966
|
-
{ in: "
|
|
5952
|
+
{ in: "path", key: "credentialID" },
|
|
5953
|
+
{ in: "body", key: "label" },
|
|
5967
5954
|
],
|
|
5968
5955
|
},
|
|
5969
5956
|
]);
|
|
5970
|
-
return (options?.client ?? this.client).
|
|
5971
|
-
url: "/api/
|
|
5957
|
+
return (options?.client ?? this.client).patch({
|
|
5958
|
+
url: "/api/credential/{credentialID}",
|
|
5972
5959
|
...options,
|
|
5973
5960
|
...params,
|
|
5961
|
+
headers: {
|
|
5962
|
+
"Content-Type": "application/json",
|
|
5963
|
+
...options?.headers,
|
|
5964
|
+
...params.headers,
|
|
5965
|
+
},
|
|
5974
5966
|
});
|
|
5975
5967
|
}
|
|
5976
|
-
_connect;
|
|
5977
|
-
get connect() {
|
|
5978
|
-
return (this._connect ??= new Connect({ client: this.client }));
|
|
5979
|
-
}
|
|
5980
5968
|
}
|
|
5981
5969
|
export class Request extends HeyApiClient {
|
|
5982
5970
|
/**
|
|
@@ -6176,6 +6164,68 @@ export class Reference extends HeyApiClient {
|
|
|
6176
6164
|
});
|
|
6177
6165
|
}
|
|
6178
6166
|
}
|
|
6167
|
+
export class ProjectCopy2 extends HeyApiClient {
|
|
6168
|
+
remove(parameters, options) {
|
|
6169
|
+
const params = buildClientParams([parameters], [
|
|
6170
|
+
{
|
|
6171
|
+
args: [
|
|
6172
|
+
{ in: "path", key: "projectID" },
|
|
6173
|
+
{ in: "query", key: "location" },
|
|
6174
|
+
{ in: "body", key: "directory" },
|
|
6175
|
+
{ in: "body", key: "force" },
|
|
6176
|
+
],
|
|
6177
|
+
},
|
|
6178
|
+
]);
|
|
6179
|
+
return (options?.client ?? this.client).delete({
|
|
6180
|
+
url: "/experimental/project/{projectID}/copy",
|
|
6181
|
+
...options,
|
|
6182
|
+
...params,
|
|
6183
|
+
headers: {
|
|
6184
|
+
"Content-Type": "application/json",
|
|
6185
|
+
...options?.headers,
|
|
6186
|
+
...params.headers,
|
|
6187
|
+
},
|
|
6188
|
+
});
|
|
6189
|
+
}
|
|
6190
|
+
create(parameters, options) {
|
|
6191
|
+
const params = buildClientParams([parameters], [
|
|
6192
|
+
{
|
|
6193
|
+
args: [
|
|
6194
|
+
{ in: "path", key: "projectID" },
|
|
6195
|
+
{ in: "query", key: "location" },
|
|
6196
|
+
{ in: "body", key: "strategy" },
|
|
6197
|
+
{ in: "body", key: "directory" },
|
|
6198
|
+
{ in: "body", key: "name" },
|
|
6199
|
+
],
|
|
6200
|
+
},
|
|
6201
|
+
]);
|
|
6202
|
+
return (options?.client ?? this.client).post({
|
|
6203
|
+
url: "/experimental/project/{projectID}/copy",
|
|
6204
|
+
...options,
|
|
6205
|
+
...params,
|
|
6206
|
+
headers: {
|
|
6207
|
+
"Content-Type": "application/json",
|
|
6208
|
+
...options?.headers,
|
|
6209
|
+
...params.headers,
|
|
6210
|
+
},
|
|
6211
|
+
});
|
|
6212
|
+
}
|
|
6213
|
+
refresh(parameters, options) {
|
|
6214
|
+
const params = buildClientParams([parameters], [
|
|
6215
|
+
{
|
|
6216
|
+
args: [
|
|
6217
|
+
{ in: "path", key: "projectID" },
|
|
6218
|
+
{ in: "query", key: "location" },
|
|
6219
|
+
],
|
|
6220
|
+
},
|
|
6221
|
+
]);
|
|
6222
|
+
return (options?.client ?? this.client).post({
|
|
6223
|
+
url: "/experimental/project/{projectID}/copy/refresh",
|
|
6224
|
+
...options,
|
|
6225
|
+
...params,
|
|
6226
|
+
});
|
|
6227
|
+
}
|
|
6228
|
+
}
|
|
6179
6229
|
export class V2 extends HeyApiClient {
|
|
6180
6230
|
_health;
|
|
6181
6231
|
get health() {
|
|
@@ -6201,9 +6251,13 @@ export class V2 extends HeyApiClient {
|
|
|
6201
6251
|
get provider() {
|
|
6202
6252
|
return (this._provider ??= new Provider2({ client: this.client }));
|
|
6203
6253
|
}
|
|
6204
|
-
|
|
6205
|
-
get
|
|
6206
|
-
return (this.
|
|
6254
|
+
_integration;
|
|
6255
|
+
get integration() {
|
|
6256
|
+
return (this._integration ??= new Integration({ client: this.client }));
|
|
6257
|
+
}
|
|
6258
|
+
_credential;
|
|
6259
|
+
get credential() {
|
|
6260
|
+
return (this._credential ??= new Credential({ client: this.client }));
|
|
6207
6261
|
}
|
|
6208
6262
|
_permission;
|
|
6209
6263
|
get permission() {
|
|
@@ -6233,6 +6287,10 @@ export class V2 extends HeyApiClient {
|
|
|
6233
6287
|
get reference() {
|
|
6234
6288
|
return (this._reference ??= new Reference({ client: this.client }));
|
|
6235
6289
|
}
|
|
6290
|
+
_projectCopy;
|
|
6291
|
+
get projectCopy() {
|
|
6292
|
+
return (this._projectCopy ??= new ProjectCopy2({ client: this.client }));
|
|
6293
|
+
}
|
|
6236
6294
|
}
|
|
6237
6295
|
export class KiloClient extends HeyApiClient {
|
|
6238
6296
|
static __registry = new HeyApiRegistry();
|