contree-client 0.2.0 → 0.2.1-dev0
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/lib/client.d.ts +2 -0
- package/lib/models.d.ts +2 -0
- package/lib/models.js +5 -0
- package/lib/operations.d.ts +2 -0
- package/lib/operations.js +8 -0
- package/lib/runtime.js +1 -1
- package/lib/specInfo.js +1 -1
- package/package.json +1 -1
package/lib/client.d.ts
CHANGED
|
@@ -222,6 +222,8 @@ export declare class ContreeClient {
|
|
|
222
222
|
max_count?: number | null;
|
|
223
223
|
max_total?: number | null;
|
|
224
224
|
case?: "sensitive" | "insensitive" | "smart" | null;
|
|
225
|
+
before?: number | null;
|
|
226
|
+
after?: number | null;
|
|
225
227
|
},
|
|
226
228
|
): Promise<GrepResult>;
|
|
227
229
|
whoami(): Promise<WhoAmIResponse>;
|
package/lib/models.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export declare class GrepMatch {
|
|
|
94
94
|
line_text: string;
|
|
95
95
|
line_bytes: number;
|
|
96
96
|
submatches: GrepSubmatch[];
|
|
97
|
+
type: "match" | "context";
|
|
97
98
|
constructor(fields?: {
|
|
98
99
|
path?: string;
|
|
99
100
|
line_number?: number;
|
|
@@ -101,6 +102,7 @@ export declare class GrepMatch {
|
|
|
101
102
|
line_text?: string;
|
|
102
103
|
line_bytes?: number;
|
|
103
104
|
submatches?: GrepSubmatch[];
|
|
105
|
+
type?: "match" | "context";
|
|
104
106
|
});
|
|
105
107
|
static fromWire(data: Record<string, unknown>): GrepMatch;
|
|
106
108
|
toWire(): Record<string, unknown>;
|
package/lib/models.js
CHANGED
|
@@ -195,6 +195,7 @@ export class GrepMatch {
|
|
|
195
195
|
this.line_text = fields.line_text;
|
|
196
196
|
this.line_bytes = fields.line_bytes;
|
|
197
197
|
this.submatches = fields.submatches;
|
|
198
|
+
this.type = fields.type;
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
static fromWire(data) {
|
|
@@ -205,6 +206,7 @@ export class GrepMatch {
|
|
|
205
206
|
line_text: data["line_text"],
|
|
206
207
|
line_bytes: data["line_bytes"],
|
|
207
208
|
submatches: data["submatches"].map((item) => GrepSubmatch.fromWire(item)),
|
|
209
|
+
type: data["type"],
|
|
208
210
|
});
|
|
209
211
|
}
|
|
210
212
|
|
|
@@ -231,6 +233,9 @@ export class GrepMatch {
|
|
|
231
233
|
? null
|
|
232
234
|
: this.submatches.map((item) => item.toWire());
|
|
233
235
|
}
|
|
236
|
+
if (this.type !== undefined) {
|
|
237
|
+
data["type"] = this.type;
|
|
238
|
+
}
|
|
234
239
|
return data;
|
|
235
240
|
}
|
|
236
241
|
}
|
package/lib/operations.d.ts
CHANGED
package/lib/operations.js
CHANGED
|
@@ -650,6 +650,8 @@ export function buildInspectImageGrep(
|
|
|
650
650
|
max_count = null,
|
|
651
651
|
max_total = null,
|
|
652
652
|
case: case_ = null,
|
|
653
|
+
before = null,
|
|
654
|
+
after = null,
|
|
653
655
|
} = {},
|
|
654
656
|
) {
|
|
655
657
|
const query = {};
|
|
@@ -669,6 +671,12 @@ export function buildInspectImageGrep(
|
|
|
669
671
|
if (case_ != null) {
|
|
670
672
|
query["case"] = case_;
|
|
671
673
|
}
|
|
674
|
+
if (before != null) {
|
|
675
|
+
query["before"] = String(before);
|
|
676
|
+
}
|
|
677
|
+
if (after != null) {
|
|
678
|
+
query["after"] = String(after);
|
|
679
|
+
}
|
|
672
680
|
return {
|
|
673
681
|
method: "GET",
|
|
674
682
|
path: `/inspect/${quotePath(imageUuid)}/grep`,
|
package/lib/runtime.js
CHANGED
package/lib/specInfo.js
CHANGED
|
@@ -5,4 +5,4 @@ export const DEFAULT_BASE_URL = "https://api.tokenfactory.nebius.com/sandboxes";
|
|
|
5
5
|
// sha256 of the exact OpenAPI document this package was built
|
|
6
6
|
// from - the build input provenance
|
|
7
7
|
export const SPEC_SHA256 =
|
|
8
|
-
"
|
|
8
|
+
"2bfd239341e6f61ccba1aafb39cef7b476d56f424156860a204f089d7d79b7bf";
|