@tembo-io/sdk 0.0.2 → 0.0.5
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/CHANGELOG.md +27 -1
- package/LICENSE +1 -1
- package/README.md +41 -36
- package/client.d.mts +18 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +18 -15
- package/client.d.ts.map +1 -1
- package/client.js +41 -38
- package/client.js.map +1 -1
- package/client.mjs +40 -37
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +2 -2
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +2 -2
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +2 -2
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +2 -2
- package/core/error.d.ts.map +1 -1
- package/core/error.js +4 -4
- package/core/error.js.map +1 -1
- package/core/error.mjs +2 -2
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts +3 -3
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts +3 -3
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts +3 -3
- package/index.d.mts.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts +2 -2
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +2 -2
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/shims.js +1 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/uploads.d.mts +4 -4
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +4 -4
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.js +2 -2
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +3 -3
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts +3 -3
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +3 -3
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.js +1 -1
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +2 -2
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +6 -6
- package/internal/utils/values.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/me.d.mts +23 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +23 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +15 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +11 -0
- package/resources/me.mjs.map +1 -0
- package/resources/repository.d.mts +79 -1
- package/resources/repository.d.mts.map +1 -1
- package/resources/repository.d.ts +79 -1
- package/resources/repository.d.ts.map +1 -1
- package/resources/repository.js +1 -5
- package/resources/repository.js.map +1 -1
- package/resources/repository.mjs +1 -5
- package/resources/repository.mjs.map +1 -1
- package/resources/task.d.mts +107 -9
- package/resources/task.d.mts.map +1 -1
- package/resources/task.d.ts +107 -9
- package/resources/task.d.ts.map +1 -1
- package/resources/task.js +20 -16
- package/resources/task.js.map +1 -1
- package/resources/task.mjs +20 -16
- package/resources/task.mjs.map +1 -1
- package/src/client.ts +41 -25
- package/src/core/api-promise.ts +4 -4
- package/src/core/error.ts +2 -2
- package/src/core/resource.ts +3 -3
- package/src/index.ts +3 -3
- package/src/internal/parse.ts +2 -2
- package/src/internal/shims.ts +1 -1
- package/src/internal/uploads.ts +5 -5
- package/src/internal/utils/base64.ts +3 -3
- package/src/internal/utils/log.ts +3 -3
- package/src/internal/utils/path.ts +2 -2
- package/src/internal/utils/values.ts +6 -6
- package/src/resources/index.ts +11 -2
- package/src/resources/me.ts +30 -0
- package/src/resources/repository.ts +94 -6
- package/src/resources/task.ts +152 -26
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import {
|
|
2
|
+
import { TemboError } from "../../core/error.mjs";
|
|
3
3
|
// https://url.spec.whatwg.org/#url-scheme-string
|
|
4
4
|
const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
|
|
5
5
|
export const isAbsoluteURL = (url) => {
|
|
@@ -31,16 +31,16 @@ export function isObj(obj) {
|
|
|
31
31
|
}
|
|
32
32
|
export const ensurePresent = (value) => {
|
|
33
33
|
if (value == null) {
|
|
34
|
-
throw new
|
|
34
|
+
throw new TemboError(`Expected a value to be given but received ${value} instead.`);
|
|
35
35
|
}
|
|
36
36
|
return value;
|
|
37
37
|
};
|
|
38
38
|
export const validatePositiveInteger = (name, n) => {
|
|
39
39
|
if (typeof n !== 'number' || !Number.isInteger(n)) {
|
|
40
|
-
throw new
|
|
40
|
+
throw new TemboError(`${name} must be an integer`);
|
|
41
41
|
}
|
|
42
42
|
if (n < 0) {
|
|
43
|
-
throw new
|
|
43
|
+
throw new TemboError(`${name} must be a positive integer`);
|
|
44
44
|
}
|
|
45
45
|
return n;
|
|
46
46
|
};
|
|
@@ -49,14 +49,14 @@ export const coerceInteger = (value) => {
|
|
|
49
49
|
return Math.round(value);
|
|
50
50
|
if (typeof value === 'string')
|
|
51
51
|
return parseInt(value, 10);
|
|
52
|
-
throw new
|
|
52
|
+
throw new TemboError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
53
53
|
};
|
|
54
54
|
export const coerceFloat = (value) => {
|
|
55
55
|
if (typeof value === 'number')
|
|
56
56
|
return value;
|
|
57
57
|
if (typeof value === 'string')
|
|
58
58
|
return parseFloat(value);
|
|
59
|
-
throw new
|
|
59
|
+
throw new TemboError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
|
|
60
60
|
};
|
|
61
61
|
export const coerceBoolean = (value) => {
|
|
62
62
|
if (typeof value === 'boolean')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"values.mjs","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,
|
|
1
|
+
{"version":3,"file":"values.mjs","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,UAAU,EAAE;AAErB,iDAAiD;AACjD,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAEtD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAW,EAAW,EAAE;IACpD,OAAO,sBAAsB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,IAAI,OAAO,GAAG,CAAC,GAAY,EAAoB,EAAE,CAAC,CAAC,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACnG,MAAM,CAAC,IAAI,eAAe,GAAG,OAAsD,CAAC;AAEpF,oFAAoF;AACpF,MAAM,UAAU,QAAQ,CAAC,CAAU;IACjC,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,CAAC,I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AAC5B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAuB,EAAE;IACxE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;IACvC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tembo-io/sdk",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "The official TypeScript library for the Tembo
|
|
5
|
-
"author": "Tembo
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "The official TypeScript library for the Tembo API",
|
|
5
|
+
"author": "Tembo <>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"type": "commonjs",
|
package/resources/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Me, type MeRetrieveResponse } from "./me.mjs";
|
|
2
|
+
export { Repository, type RepositoryListResponse } from "./repository.mjs";
|
|
3
|
+
export { Task, type TaskCreateResponse, type TaskListResponse, type TaskSearchResponse, type TaskCreateParams, type TaskListParams, type TaskSearchParams, } from "./task.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,EAAE,EAAE,KAAK,kBAAkB,EAAE;OAC/B,EAAE,UAAU,EAAE,KAAK,sBAAsB,EAAE;OAC3C,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { Me, type MeRetrieveResponse } from "./me.js";
|
|
2
|
+
export { Repository, type RepositoryListResponse } from "./repository.js";
|
|
3
|
+
export { Task, type TaskCreateResponse, type TaskListResponse, type TaskSearchResponse, type TaskCreateParams, type TaskListParams, type TaskSearchParams, } from "./task.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,EAAE,EAAE,KAAK,kBAAkB,EAAE;OAC/B,EAAE,UAAU,EAAE,KAAK,sBAAsB,EAAE;OAC3C,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Task = exports.Repository = void 0;
|
|
4
|
+
exports.Task = exports.Repository = exports.Me = void 0;
|
|
5
|
+
var me_1 = require("./me.js");
|
|
6
|
+
Object.defineProperty(exports, "Me", { enumerable: true, get: function () { return me_1.Me; } });
|
|
5
7
|
var repository_1 = require("./repository.js");
|
|
6
8
|
Object.defineProperty(exports, "Repository", { enumerable: true, get: function () { return repository_1.Repository; } });
|
|
7
9
|
var task_1 = require("./task.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8BAAmD;AAA1C,wFAAA,EAAE,OAAA;AACX,8CAAuE;AAA9D,wGAAA,UAAU,OAAA;AACnB,kCAQgB;AAPd,4FAAA,IAAI,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Me } from "./me.mjs";
|
|
2
3
|
export { Repository } from "./repository.mjs";
|
|
3
|
-
export { Task } from "./task.mjs";
|
|
4
|
+
export { Task, } from "./task.mjs";
|
|
4
5
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,EAAE,EAA2B;OAC/B,EAAE,UAAU,EAA+B;OAC3C,EACL,IAAI,GAOL"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Me extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get information about the current authenticated user
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options?: RequestOptions): APIPromise<MeRetrieveResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface MeRetrieveResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Organization ID for the authenticated user
|
|
13
|
+
*/
|
|
14
|
+
orgId: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* User ID for the authenticated user
|
|
17
|
+
*/
|
|
18
|
+
userId: string | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace Me {
|
|
21
|
+
export { type MeRetrieveResponse as MeRetrieveResponse };
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=me.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.d.mts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGnE;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Me extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get information about the current authenticated user
|
|
7
|
+
*/
|
|
8
|
+
retrieve(options?: RequestOptions): APIPromise<MeRetrieveResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface MeRetrieveResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Organization ID for the authenticated user
|
|
13
|
+
*/
|
|
14
|
+
orgId: string | null;
|
|
15
|
+
/**
|
|
16
|
+
* User ID for the authenticated user
|
|
17
|
+
*/
|
|
18
|
+
userId: string | null;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace Me {
|
|
21
|
+
export { type MeRetrieveResponse as MeRetrieveResponse };
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=me.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGnE;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
|
package/resources/me.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Me = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Me extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get information about the current authenticated user
|
|
9
|
+
*/
|
|
10
|
+
retrieve(options) {
|
|
11
|
+
return this._client.get('/me', options);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Me = Me;
|
|
15
|
+
//# sourceMappingURL=me.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,EAAG,SAAQ,sBAAW;IACjC;;OAEG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF;AAPD,gBAOC"}
|
package/resources/me.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Me extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get information about the current authenticated user
|
|
6
|
+
*/
|
|
7
|
+
retrieve(options) {
|
|
8
|
+
return this._client.get('/me', options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=me.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"me.mjs","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;OAEG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -5,6 +5,84 @@ export declare class Repository extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Gets a list of enabled code repositories for the organization
|
|
7
7
|
*/
|
|
8
|
-
list(options?: RequestOptions): APIPromise<
|
|
8
|
+
list(options?: RequestOptions): APIPromise<RepositoryListResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface RepositoryListResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Array of enabled code repositories for the organization
|
|
13
|
+
*/
|
|
14
|
+
codeRepositories: Array<RepositoryListResponse.CodeRepository>;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace RepositoryListResponse {
|
|
17
|
+
interface CodeRepository {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the code repository
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Timestamp when the repository record was created
|
|
24
|
+
*/
|
|
25
|
+
createdAt: string;
|
|
26
|
+
/**
|
|
27
|
+
* Timestamp when the repository was enabled
|
|
28
|
+
*/
|
|
29
|
+
enabledAt: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the repository
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Organization ID that owns this repository
|
|
36
|
+
*/
|
|
37
|
+
organizationId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Timestamp when the repository record was last updated
|
|
40
|
+
*/
|
|
41
|
+
updatedAt: string;
|
|
42
|
+
/**
|
|
43
|
+
* Default branch name
|
|
44
|
+
*/
|
|
45
|
+
branch?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Repository description
|
|
48
|
+
*/
|
|
49
|
+
description?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Associated integration details
|
|
52
|
+
*/
|
|
53
|
+
integration?: CodeRepository.Integration;
|
|
54
|
+
/**
|
|
55
|
+
* Repository URL
|
|
56
|
+
*/
|
|
57
|
+
url?: string;
|
|
58
|
+
}
|
|
59
|
+
namespace CodeRepository {
|
|
60
|
+
/**
|
|
61
|
+
* Associated integration details
|
|
62
|
+
*/
|
|
63
|
+
interface Integration {
|
|
64
|
+
/**
|
|
65
|
+
* Unique identifier for the integration
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* Integration configuration settings
|
|
70
|
+
*/
|
|
71
|
+
configuration: {
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Name of the integration
|
|
76
|
+
*/
|
|
77
|
+
name: string;
|
|
78
|
+
/**
|
|
79
|
+
* Type of integration (e.g., github, gitlab)
|
|
80
|
+
*/
|
|
81
|
+
type: string;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export declare namespace Repository {
|
|
86
|
+
export { type RepositoryListResponse as RepositoryListResponse };
|
|
9
87
|
}
|
|
10
88
|
//# sourceMappingURL=repository.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.mts","sourceRoot":"","sources":["../src/resources/repository.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"repository.d.mts","sourceRoot":"","sources":["../src/resources/repository.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnE;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;CAChE;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,cAAc;QAC7B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC;QAEzC;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,cAAc,CAAC;QAC9B;;WAEG;QACH,UAAiB,WAAW;YAC1B;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,aAAa,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;YAE1C;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,sBAAsB,IAAI,sBAAsB,EAAE,CAAC;CAClE"}
|
|
@@ -5,6 +5,84 @@ export declare class Repository extends APIResource {
|
|
|
5
5
|
/**
|
|
6
6
|
* Gets a list of enabled code repositories for the organization
|
|
7
7
|
*/
|
|
8
|
-
list(options?: RequestOptions): APIPromise<
|
|
8
|
+
list(options?: RequestOptions): APIPromise<RepositoryListResponse>;
|
|
9
|
+
}
|
|
10
|
+
export interface RepositoryListResponse {
|
|
11
|
+
/**
|
|
12
|
+
* Array of enabled code repositories for the organization
|
|
13
|
+
*/
|
|
14
|
+
codeRepositories: Array<RepositoryListResponse.CodeRepository>;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace RepositoryListResponse {
|
|
17
|
+
interface CodeRepository {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the code repository
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Timestamp when the repository record was created
|
|
24
|
+
*/
|
|
25
|
+
createdAt: string;
|
|
26
|
+
/**
|
|
27
|
+
* Timestamp when the repository was enabled
|
|
28
|
+
*/
|
|
29
|
+
enabledAt: string;
|
|
30
|
+
/**
|
|
31
|
+
* Name of the repository
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Organization ID that owns this repository
|
|
36
|
+
*/
|
|
37
|
+
organizationId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Timestamp when the repository record was last updated
|
|
40
|
+
*/
|
|
41
|
+
updatedAt: string;
|
|
42
|
+
/**
|
|
43
|
+
* Default branch name
|
|
44
|
+
*/
|
|
45
|
+
branch?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Repository description
|
|
48
|
+
*/
|
|
49
|
+
description?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Associated integration details
|
|
52
|
+
*/
|
|
53
|
+
integration?: CodeRepository.Integration;
|
|
54
|
+
/**
|
|
55
|
+
* Repository URL
|
|
56
|
+
*/
|
|
57
|
+
url?: string;
|
|
58
|
+
}
|
|
59
|
+
namespace CodeRepository {
|
|
60
|
+
/**
|
|
61
|
+
* Associated integration details
|
|
62
|
+
*/
|
|
63
|
+
interface Integration {
|
|
64
|
+
/**
|
|
65
|
+
* Unique identifier for the integration
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* Integration configuration settings
|
|
70
|
+
*/
|
|
71
|
+
configuration: {
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Name of the integration
|
|
76
|
+
*/
|
|
77
|
+
name: string;
|
|
78
|
+
/**
|
|
79
|
+
* Type of integration (e.g., github, gitlab)
|
|
80
|
+
*/
|
|
81
|
+
type: string;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export declare namespace Repository {
|
|
86
|
+
export { type RepositoryListResponse as RepositoryListResponse };
|
|
9
87
|
}
|
|
10
88
|
//# sourceMappingURL=repository.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../src/resources/repository.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../src/resources/repository.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGnE;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,sBAAsB,CAAC,cAAc,CAAC,CAAC;CAChE;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,cAAc;QAC7B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC;QAEzC;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,cAAc,CAAC;QAC9B;;WAEG;QACH,UAAiB,WAAW;YAC1B;;eAEG;YACH,EAAE,EAAE,MAAM,CAAC;YAEX;;eAEG;YACH,aAAa,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;YAE1C;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,sBAAsB,IAAI,sBAAsB,EAAE,CAAC;CAClE"}
|
package/resources/repository.js
CHANGED
|
@@ -3,16 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Repository = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const headers_1 = require("../internal/headers.js");
|
|
7
6
|
class Repository extends resource_1.APIResource {
|
|
8
7
|
/**
|
|
9
8
|
* Gets a list of enabled code repositories for the organization
|
|
10
9
|
*/
|
|
11
10
|
list(options) {
|
|
12
|
-
return this._client.get('/repository/list',
|
|
13
|
-
...options,
|
|
14
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
15
|
-
});
|
|
11
|
+
return this._client.get('/repository/list', options);
|
|
16
12
|
}
|
|
17
13
|
}
|
|
18
14
|
exports.Repository = Repository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../src/resources/repository.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"repository.js","sourceRoot":"","sources":["../src/resources/repository.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACF;AAPD,gCAOC"}
|
package/resources/repository.mjs
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
3
|
export class Repository extends APIResource {
|
|
5
4
|
/**
|
|
6
5
|
* Gets a list of enabled code repositories for the organization
|
|
7
6
|
*/
|
|
8
7
|
list(options) {
|
|
9
|
-
return this._client.get('/repository/list',
|
|
10
|
-
...options,
|
|
11
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
12
|
-
});
|
|
8
|
+
return this._client.get('/repository/list', options);
|
|
13
9
|
}
|
|
14
10
|
}
|
|
15
11
|
//# sourceMappingURL=repository.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository.mjs","sourceRoot":"","sources":["../src/resources/repository.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"repository.mjs","sourceRoot":"","sources":["../src/resources/repository.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;CACF"}
|
package/resources/task.d.mts
CHANGED
|
@@ -4,36 +4,134 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
4
4
|
export declare class Task extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Create a user-supplied task
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const task = await client.task.create();
|
|
11
|
+
* ```
|
|
7
12
|
*/
|
|
8
|
-
create(body: TaskCreateParams, options?: RequestOptions): APIPromise<
|
|
13
|
+
create(body: TaskCreateParams, options?: RequestOptions): APIPromise<TaskCreateResponse>;
|
|
9
14
|
/**
|
|
10
15
|
* Gets a paginated list of issues for the organization
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const tasks = await client.task.list();
|
|
20
|
+
* ```
|
|
11
21
|
*/
|
|
12
|
-
list(query?: TaskListParams | null | undefined, options?: RequestOptions): APIPromise<
|
|
22
|
+
list(query?: TaskListParams | null | undefined, options?: RequestOptions): APIPromise<TaskListResponse>;
|
|
13
23
|
/**
|
|
14
24
|
* Search issues for the organization with pagination
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const response = await client.task.search({
|
|
29
|
+
* q: 'authentication bug',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
15
32
|
*/
|
|
16
|
-
search(query: TaskSearchParams, options?: RequestOptions): APIPromise<
|
|
33
|
+
search(query: TaskSearchParams, options?: RequestOptions): APIPromise<TaskSearchResponse>;
|
|
34
|
+
}
|
|
35
|
+
export interface TaskCreateResponse {
|
|
36
|
+
id: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
description: string;
|
|
39
|
+
organizationId: string;
|
|
40
|
+
status: string;
|
|
41
|
+
title: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
}
|
|
44
|
+
export interface TaskListResponse {
|
|
45
|
+
issues: Array<TaskListResponse.Issue>;
|
|
46
|
+
meta: TaskListResponse.Meta;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace TaskListResponse {
|
|
49
|
+
interface Issue {
|
|
50
|
+
id: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
description: string;
|
|
53
|
+
organizationId: string;
|
|
54
|
+
status: string;
|
|
55
|
+
title: string;
|
|
56
|
+
updatedAt: string;
|
|
57
|
+
}
|
|
58
|
+
interface Meta {
|
|
59
|
+
currentPage: number;
|
|
60
|
+
hasNext: boolean;
|
|
61
|
+
hasPrevious: boolean;
|
|
62
|
+
pageSize: number;
|
|
63
|
+
totalCount: number;
|
|
64
|
+
totalPages: number;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export interface TaskSearchResponse {
|
|
68
|
+
issues: Array<TaskSearchResponse.Issue>;
|
|
69
|
+
meta: TaskSearchResponse.Meta;
|
|
70
|
+
query: string;
|
|
71
|
+
}
|
|
72
|
+
export declare namespace TaskSearchResponse {
|
|
73
|
+
interface Issue {
|
|
74
|
+
id: string;
|
|
75
|
+
createdAt: string;
|
|
76
|
+
description: string;
|
|
77
|
+
organizationId: string;
|
|
78
|
+
status: string;
|
|
79
|
+
title: string;
|
|
80
|
+
updatedAt: string;
|
|
81
|
+
}
|
|
82
|
+
interface Meta {
|
|
83
|
+
currentPage: number;
|
|
84
|
+
hasNext: boolean;
|
|
85
|
+
hasPrevious: boolean;
|
|
86
|
+
pageSize: number;
|
|
87
|
+
totalCount: number;
|
|
88
|
+
totalPages: number;
|
|
89
|
+
}
|
|
17
90
|
}
|
|
18
91
|
export interface TaskCreateParams {
|
|
19
|
-
|
|
20
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Specific git branch to target for this task
|
|
94
|
+
*/
|
|
21
95
|
branch?: string | null;
|
|
22
|
-
|
|
23
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Brief description of the task to be performed
|
|
98
|
+
*/
|
|
24
99
|
prompt?: string;
|
|
25
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Whether to immediately queue the task for processing (optional, defaults to
|
|
102
|
+
* true)
|
|
103
|
+
*/
|
|
104
|
+
queueRightAway?: boolean | null;
|
|
105
|
+
/**
|
|
106
|
+
* Array of code repository IDs that this task relates to
|
|
107
|
+
*/
|
|
108
|
+
repositories?: Array<string>;
|
|
26
109
|
}
|
|
27
110
|
export interface TaskListParams {
|
|
111
|
+
/**
|
|
112
|
+
* Number of items to return per page (max 100)
|
|
113
|
+
*/
|
|
28
114
|
limit?: number;
|
|
115
|
+
/**
|
|
116
|
+
* Page number to retrieve (starts from 1)
|
|
117
|
+
*/
|
|
29
118
|
page?: number;
|
|
30
119
|
}
|
|
31
120
|
export interface TaskSearchParams {
|
|
121
|
+
/**
|
|
122
|
+
* Search query to find issues by title or description
|
|
123
|
+
*/
|
|
32
124
|
q: string;
|
|
125
|
+
/**
|
|
126
|
+
* Number of items to return per page (max 100)
|
|
127
|
+
*/
|
|
33
128
|
limit?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Page number to retrieve (starts from 1)
|
|
131
|
+
*/
|
|
34
132
|
page?: number;
|
|
35
133
|
}
|
|
36
134
|
export declare namespace Task {
|
|
37
|
-
export { type TaskCreateParams as TaskCreateParams, type TaskListParams as TaskListParams, type TaskSearchParams as TaskSearchParams, };
|
|
135
|
+
export { type TaskCreateResponse as TaskCreateResponse, type TaskListResponse as TaskListResponse, type TaskSearchResponse as TaskSearchResponse, type TaskCreateParams as TaskCreateParams, type TaskListParams as TaskListParams, type TaskSearchParams as TaskSearchParams, };
|
|
38
136
|
}
|
|
39
137
|
//# sourceMappingURL=task.d.mts.map
|
package/resources/task.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.d.mts","sourceRoot":"","sources":["../src/resources/task.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"task.d.mts","sourceRoot":"","sources":["../src/resources/task.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxF;;;;;;;OAOG;IACH,IAAI,CACF,KAAK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