runbios-sdk 0.2.16-dev.259 → 0.2.16-dev.262
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/resources/loop.d.ts +9 -1
- package/dist/resources/loop.js +9 -1
- package/dist/types.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ import { Loop } from './resources/loop.js';
|
|
|
36
36
|
* SDK version. Sent as part of the User-Agent header.
|
|
37
37
|
* Must match package.json "version" -- enforced by a contract test.
|
|
38
38
|
*/
|
|
39
|
-
export declare const VERSION = "0.2.16-dev.
|
|
39
|
+
export declare const VERSION = "0.2.16-dev.262";
|
|
40
40
|
export declare class RunBiOS {
|
|
41
41
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
42
42
|
readonly models: Models;
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import { Loop } from './resources/loop.js';
|
|
|
36
36
|
* SDK version. Sent as part of the User-Agent header.
|
|
37
37
|
* Must match package.json "version" -- enforced by a contract test.
|
|
38
38
|
*/
|
|
39
|
-
export const VERSION = '0.2.16-dev.
|
|
39
|
+
export const VERSION = '0.2.16-dev.262';
|
|
40
40
|
export class RunBiOS {
|
|
41
41
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
42
42
|
models;
|
package/dist/resources/loop.d.ts
CHANGED
|
@@ -225,9 +225,17 @@ export declare class Loop {
|
|
|
225
225
|
* A label may name a `parent`, which is what makes a MASTER GROUP: labelling
|
|
226
226
|
* something `refunds` with parent `billing` makes it selectable as either,
|
|
227
227
|
* and selecting `billing` later gathers every child without you maintaining
|
|
228
|
-
* a list of them.
|
|
228
|
+
* a list of them. The parent applies to the bare `labels` only: sent with
|
|
229
|
+
* `attributes` and no labels it would group nothing, and is refused.
|
|
230
|
+
*
|
|
231
|
+
* Leave `parent` out and a label the conversation already carries keeps
|
|
232
|
+
* the group it has: re-running `label(id, ['refunds'])` does not take
|
|
233
|
+
* `refunds` out of `billing`. Pass `''` to take the labels out of their
|
|
234
|
+
* group; the labels themselves stay.
|
|
229
235
|
*
|
|
230
236
|
* Labels are lowercased and trimmed, so `Refunds` and `refunds` are one label.
|
|
237
|
+
* A conversation carries at most 32 across every dimension; a label it
|
|
238
|
+
* already has does not count again.
|
|
231
239
|
*/
|
|
232
240
|
label(traceId: string, labels: string[], parent?: string, attributes?: Record<string, string>): Promise<LoopLabel[]>;
|
|
233
241
|
/**
|
package/dist/resources/loop.js
CHANGED
|
@@ -288,9 +288,17 @@ export class Loop {
|
|
|
288
288
|
* A label may name a `parent`, which is what makes a MASTER GROUP: labelling
|
|
289
289
|
* something `refunds` with parent `billing` makes it selectable as either,
|
|
290
290
|
* and selecting `billing` later gathers every child without you maintaining
|
|
291
|
-
* a list of them.
|
|
291
|
+
* a list of them. The parent applies to the bare `labels` only: sent with
|
|
292
|
+
* `attributes` and no labels it would group nothing, and is refused.
|
|
293
|
+
*
|
|
294
|
+
* Leave `parent` out and a label the conversation already carries keeps
|
|
295
|
+
* the group it has: re-running `label(id, ['refunds'])` does not take
|
|
296
|
+
* `refunds` out of `billing`. Pass `''` to take the labels out of their
|
|
297
|
+
* group; the labels themselves stay.
|
|
292
298
|
*
|
|
293
299
|
* Labels are lowercased and trimmed, so `Refunds` and `refunds` are one label.
|
|
300
|
+
* A conversation carries at most 32 across every dimension; a label it
|
|
301
|
+
* already has does not count again.
|
|
294
302
|
*/
|
|
295
303
|
async label(traceId, labels, parent, attributes) {
|
|
296
304
|
const res = await this._http.fetchPost(`/api/loop/traces/${encodeURIComponent(traceId)}/labels`, { labels, parent, attributes });
|
package/dist/types.d.ts
CHANGED
|
@@ -2571,7 +2571,11 @@ export interface LoopSignalParams {
|
|
|
2571
2571
|
labels?: string[];
|
|
2572
2572
|
/** The same, by dimension: `{ category: 'billing' }`. */
|
|
2573
2573
|
attributes?: Record<string, string>;
|
|
2574
|
-
/**
|
|
2574
|
+
/**
|
|
2575
|
+
* The master group the bare labels belong to. Left out, a label the
|
|
2576
|
+
* conversation already carries keeps its group; `''` takes the labels out
|
|
2577
|
+
* of their group.
|
|
2578
|
+
*/
|
|
2575
2579
|
parent?: string;
|
|
2576
2580
|
}
|
|
2577
2581
|
export interface LoopTrace {
|