@tembo-io/sdk 0.0.5 → 0.0.7

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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.7 (2025-10-05)
4
+
5
+ Full Changelog: [v0.0.6...v0.0.7](https://github.com/tembo/sdk/compare/v0.0.6...v0.0.7)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([c7ecab4](https://github.com/tembo/sdk/commit/c7ecab4641c84e1c55f428de26fbd8e14ce14c7d))
10
+ * **api:** manual updates ([ec7a586](https://github.com/tembo/sdk/commit/ec7a586a13b4f902a22b34a3fcbfabe0f8f1608c))
11
+
12
+
13
+ ### Chores
14
+
15
+ * **jsdoc:** fix [@link](https://github.com/link) annotations to refer only to parts of the package‘s public interface ([5344e57](https://github.com/tembo/sdk/commit/5344e5744836d1b21139bc2d8a2fd910428c38e6))
16
+
17
+ ## 0.0.6 (2025-10-03)
18
+
19
+ Full Changelog: [v0.0.5...v0.0.6](https://github.com/tembo/sdk/compare/v0.0.5...v0.0.6)
20
+
21
+ ### Features
22
+
23
+ * **api:** api update ([fa315b3](https://github.com/tembo/sdk/commit/fa315b373d3a90a0de18155fbd34736399fa1799))
24
+
3
25
  ## 0.0.5 (2025-10-01)
4
26
 
5
27
  Full Changelog: [v0.0.4...v0.0.5](https://github.com/tembo/sdk/compare/v0.0.4...v0.0.5)
package/README.md CHANGED
@@ -26,9 +26,9 @@ const client = new Tembo({
26
26
  apiKey: process.env['TEMBO_API_KEY'], // This is the default and can be omitted
27
27
  });
28
28
 
29
- const me = await client.me.retrieve();
29
+ const task = await client.task.create();
30
30
 
31
- console.log(me.orgId);
31
+ console.log(task.id);
32
32
  ```
33
33
 
34
34
  ### Request & Response types
@@ -43,7 +43,7 @@ const client = new Tembo({
43
43
  apiKey: process.env['TEMBO_API_KEY'], // This is the default and can be omitted
44
44
  });
45
45
 
46
- const me: Tembo.MeRetrieveResponse = await client.me.retrieve();
46
+ const task: Tembo.TaskCreateResponse = await client.task.create();
47
47
  ```
48
48
 
49
49
  Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
@@ -56,7 +56,7 @@ a subclass of `APIError` will be thrown:
56
56
 
57
57
  <!-- prettier-ignore -->
58
58
  ```ts
59
- const me = await client.me.retrieve().catch(async (err) => {
59
+ const task = await client.task.create().catch(async (err) => {
60
60
  if (err instanceof Tembo.APIError) {
61
61
  console.log(err.status); // 400
62
62
  console.log(err.name); // BadRequestError
@@ -96,7 +96,7 @@ const client = new Tembo({
96
96
  });
97
97
 
98
98
  // Or, configure per-request:
99
- await client.me.retrieve({
99
+ await client.task.create({
100
100
  maxRetries: 5,
101
101
  });
102
102
  ```
@@ -113,7 +113,7 @@ const client = new Tembo({
113
113
  });
114
114
 
115
115
  // Override per-request:
116
- await client.me.retrieve({
116
+ await client.task.create({
117
117
  timeout: 5 * 1000,
118
118
  });
119
119
  ```
@@ -136,13 +136,13 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
136
136
  ```ts
137
137
  const client = new Tembo();
138
138
 
139
- const response = await client.me.retrieve().asResponse();
139
+ const response = await client.task.create().asResponse();
140
140
  console.log(response.headers.get('X-My-Header'));
141
141
  console.log(response.statusText); // access the underlying Response object
142
142
 
143
- const { data: me, response: raw } = await client.me.retrieve().withResponse();
143
+ const { data: task, response: raw } = await client.task.create().withResponse();
144
144
  console.log(raw.headers.get('X-My-Header'));
145
- console.log(me.orgId);
145
+ console.log(task.id);
146
146
  ```
147
147
 
148
148
  ### Logging
@@ -222,7 +222,7 @@ parameter. This library doesn't validate at runtime that the request matches the
222
222
  send will be sent as-is.
223
223
 
224
224
  ```ts
225
- client.me.retrieve({
225
+ client.task.create({
226
226
  // ...
227
227
  // @ts-expect-error baz is not yet public
228
228
  baz: 'undocumented option',
@@ -33,7 +33,7 @@ export interface ResponseLike {
33
33
  export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
34
34
  /**
35
35
  * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
36
- * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
36
+ * @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
37
37
  * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
38
38
  * @param {Object=} options additional properties
39
39
  * @param {string=} options.type the MIME type of the content
@@ -33,7 +33,7 @@ export interface ResponseLike {
33
33
  export type ToFileInput = FileLike | ResponseLike | Exclude<BlobLikePart, string> | AsyncIterable<BlobLikePart>;
34
34
  /**
35
35
  * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
36
- * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
36
+ * @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
37
37
  * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
38
38
  * @param {Object=} options additional properties
39
39
  * @param {string=} options.type the MIME type of the content
@@ -27,7 +27,7 @@ const isResponseLike = (value) => value != null &&
27
27
  typeof value.blob === 'function';
28
28
  /**
29
29
  * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
30
- * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
30
+ * @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
31
31
  * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
32
32
  * @param {Object=} options additional properties
33
33
  * @param {string=} options.type the MIME type of the content
@@ -24,7 +24,7 @@ const isResponseLike = (value) => value != null &&
24
24
  typeof value.blob === 'function';
25
25
  /**
26
26
  * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
27
- * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
27
+ * @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
28
28
  * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
29
29
  * @param {Object=} options additional properties
30
30
  * @param {string=} options.type the MIME type of the content
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tembo-io/sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "The official TypeScript library for the Tembo API",
5
- "author": "Tembo <>",
5
+ "author": "Tembo <darren@tembo.io>",
6
6
  "types": "./index.d.ts",
7
7
  "main": "./index.js",
8
8
  "type": "commonjs",
@@ -3,7 +3,7 @@ import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  export declare class Repository extends APIResource {
5
5
  /**
6
- * Gets a list of enabled code repositories for the organization
6
+ * Gets a list of enabled repositories for the organization
7
7
  */
8
8
  list(options?: RequestOptions): APIPromise<RepositoryListResponse>;
9
9
  }
@@ -3,7 +3,7 @@ import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  export declare class Repository extends APIResource {
5
5
  /**
6
- * Gets a list of enabled code repositories for the organization
6
+ * Gets a list of enabled repositories for the organization
7
7
  */
8
8
  list(options?: RequestOptions): APIPromise<RepositoryListResponse>;
9
9
  }
@@ -5,7 +5,7 @@ exports.Repository = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  class Repository extends resource_1.APIResource {
7
7
  /**
8
- * Gets a list of enabled code repositories for the organization
8
+ * Gets a list of enabled repositories for the organization
9
9
  */
10
10
  list(options) {
11
11
  return this._client.get('/repository/list', options);
@@ -2,7 +2,7 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  export class Repository extends APIResource {
4
4
  /**
5
- * Gets a list of enabled code repositories for the organization
5
+ * Gets a list of enabled repositories for the organization
6
6
  */
7
7
  list(options) {
8
8
  return this._client.get('/repository/list', options);
@@ -3,7 +3,7 @@ import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  export declare class Task extends APIResource {
5
5
  /**
6
- * Create a user-supplied task
6
+ * Create a task for tembo to start working on in the background
7
7
  *
8
8
  * @example
9
9
  * ```ts
@@ -89,12 +89,16 @@ export declare namespace TaskSearchResponse {
89
89
  }
90
90
  }
91
91
  export interface TaskCreateParams {
92
+ /**
93
+ * The agent to use for this task
94
+ */
95
+ agent?: string;
92
96
  /**
93
97
  * Specific git branch to target for this task
94
98
  */
95
99
  branch?: string | null;
96
100
  /**
97
- * Brief description of the task to be performed
101
+ * Description of the task to be performed. Supports tagging files.
98
102
  */
99
103
  prompt?: string;
100
104
  /**
@@ -103,7 +107,7 @@ export interface TaskCreateParams {
103
107
  */
104
108
  queueRightAway?: boolean | null;
105
109
  /**
106
- * Array of code repository IDs that this task relates to
110
+ * Array of code repository urls that this task relates to
107
111
  */
108
112
  repositories?: Array<string>;
109
113
  }
@@ -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;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,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;;;OASG;IACH,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAAE,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AC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -3,7 +3,7 @@ import { APIPromise } from "../core/api-promise.js";
3
3
  import { RequestOptions } from "../internal/request-options.js";
4
4
  export declare class Task extends APIResource {
5
5
  /**
6
- * Create a user-supplied task
6
+ * Create a task for tembo to start working on in the background
7
7
  *
8
8
  * @example
9
9
  * ```ts
@@ -89,12 +89,16 @@ export declare namespace TaskSearchResponse {
89
89
  }
90
90
  }
91
91
  export interface TaskCreateParams {
92
+ /**
93
+ * The agent to use for this task
94
+ */
95
+ agent?: string;
92
96
  /**
93
97
  * Specific git branch to target for this task
94
98
  */
95
99
  branch?: string | null;
96
100
  /**
97
- * Brief description of the task to be performed
101
+ * Description of the task to be performed. Supports tagging files.
98
102
  */
99
103
  prompt?: string;
100
104
  /**
@@ -103,7 +107,7 @@ export interface TaskCreateParams {
103
107
  */
104
108
  queueRightAway?: boolean | null;
105
109
  /**
106
- * Array of code repository IDs that this task relates to
110
+ * Array of code repository urls that this task relates to
107
111
  */
108
112
  repositories?: Array<string>;
109
113
  }
@@ -1 +1 @@
1
- {"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../src/resources/task.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAA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AAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAEhC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
package/resources/task.js CHANGED
@@ -5,7 +5,7 @@ exports.Task = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  class Task extends resource_1.APIResource {
7
7
  /**
8
- * Create a user-supplied task
8
+ * Create a task for tembo to start working on in the background
9
9
  *
10
10
  * @example
11
11
  * ```ts
@@ -2,7 +2,7 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  export class Task extends APIResource {
4
4
  /**
5
- * Create a user-supplied task
5
+ * Create a task for tembo to start working on in the background
6
6
  *
7
7
  * @example
8
8
  * ```ts
@@ -73,7 +73,7 @@ export type ToFileInput =
73
73
 
74
74
  /**
75
75
  * Helper for creating a {@link File} to pass to an SDK upload method from a variety of different data formats
76
- * @param value the raw content of the file. Can be an {@link Uploadable}, {@link BlobLikePart}, or {@link AsyncIterable} of {@link BlobLikePart}s
76
+ * @param value the raw content of the file. Can be an {@link Uploadable}, BlobLikePart, or AsyncIterable of BlobLikeParts
77
77
  * @param {string=} name the name of the file. If omitted, toFile will try to determine a file name from bits if possible
78
78
  * @param {Object=} options additional properties
79
79
  * @param {string=} options.type the MIME type of the content
@@ -6,7 +6,7 @@ import { RequestOptions } from '../internal/request-options';
6
6
 
7
7
  export class Repository extends APIResource {
8
8
  /**
9
- * Gets a list of enabled code repositories for the organization
9
+ * Gets a list of enabled repositories for the organization
10
10
  */
11
11
  list(options?: RequestOptions): APIPromise<RepositoryListResponse> {
12
12
  return this._client.get('/repository/list', options);
@@ -6,7 +6,7 @@ import { RequestOptions } from '../internal/request-options';
6
6
 
7
7
  export class Task extends APIResource {
8
8
  /**
9
- * Create a user-supplied task
9
+ * Create a task for tembo to start working on in the background
10
10
  *
11
11
  * @example
12
12
  * ```ts
@@ -142,13 +142,18 @@ export namespace TaskSearchResponse {
142
142
  }
143
143
 
144
144
  export interface TaskCreateParams {
145
+ /**
146
+ * The agent to use for this task
147
+ */
148
+ agent?: string;
149
+
145
150
  /**
146
151
  * Specific git branch to target for this task
147
152
  */
148
153
  branch?: string | null;
149
154
 
150
155
  /**
151
- * Brief description of the task to be performed
156
+ * Description of the task to be performed. Supports tagging files.
152
157
  */
153
158
  prompt?: string;
154
159
 
@@ -159,7 +164,7 @@ export interface TaskCreateParams {
159
164
  queueRightAway?: boolean | null;
160
165
 
161
166
  /**
162
- * Array of code repository IDs that this task relates to
167
+ * Array of code repository urls that this task relates to
163
168
  */
164
169
  repositories?: Array<string>;
165
170
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.0.5'; // x-release-please-version
1
+ export const VERSION = '0.0.7'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.5";
1
+ export declare const VERSION = "0.0.7";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.0.5";
1
+ export declare const VERSION = "0.0.7";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.0.5'; // x-release-please-version
4
+ exports.VERSION = '0.0.7'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.0.5'; // x-release-please-version
1
+ export const VERSION = '0.0.7'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map