@cadenya/cadenya 0.51.0 → 0.53.0
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 +22 -0
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +10 -2
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +10 -2
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +4 -0
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +4 -0
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +50 -0
- package/resources/agents/feedback.d.mts.map +1 -0
- package/resources/agents/feedback.d.ts +50 -0
- package/resources/agents/feedback.d.ts.map +1 -0
- package/resources/agents/feedback.js +27 -0
- package/resources/agents/feedback.js.map +1 -0
- package/resources/agents/feedback.mjs +23 -0
- package/resources/agents/feedback.mjs.map +1 -0
- package/resources/agents/index.d.mts +2 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +2 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js +3 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +1 -0
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/variations.d.mts +21 -23
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +21 -23
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/api-keys.d.mts +4 -0
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +4 -0
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/memory-layers/entries.d.mts +4 -0
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +4 -0
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +4 -0
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +4 -0
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +4 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +4 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/objectives/feedback.d.mts +18 -0
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +18 -0
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +4 -0
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +4 -0
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +4 -0
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +4 -0
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/workspace-secrets.d.mts +4 -0
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +4 -0
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/src/resources/agents/agents.ts +13 -0
- package/src/resources/agents/feedback.ts +73 -0
- package/src/resources/agents/index.ts +2 -0
- package/src/resources/agents/variations.ts +24 -25
- package/src/resources/api-keys.ts +5 -0
- package/src/resources/memory-layers/entries.ts +5 -0
- package/src/resources/memory-layers/memory-layers.ts +5 -0
- package/src/resources/models.ts +5 -0
- package/src/resources/objectives/feedback.ts +20 -0
- package/src/resources/tool-sets/tool-sets.ts +5 -0
- package/src/resources/tool-sets/tools.ts +5 -0
- package/src/resources/workspace-secrets.ts +5 -0
- 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
|
@@ -81,6 +81,10 @@ export interface WorkspaceSecretListParams extends CursorPaginationParams {
|
|
|
81
81
|
* Filter expression (query param: prefix)
|
|
82
82
|
*/
|
|
83
83
|
prefix?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Free-form search query
|
|
86
|
+
*/
|
|
87
|
+
query?: string;
|
|
84
88
|
/**
|
|
85
89
|
* Sort order for results (asc or desc by creation time)
|
|
86
90
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-secrets.d.ts","sourceRoot":"","sources":["../src/resources/workspace-secrets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIhG;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAI3E;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,eAAe,CAAC;IAOjE;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;AAEjF,MAAM,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;CACrB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC,sBAAsB,CAAC;IAExC,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,sBAAsB,CAAC;IAEzC,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,yBAA0B,SAAQ,sBAAsB;IACvE;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as AccountAPI from '../account';
|
|
5
5
|
import * as Shared from '../shared';
|
|
6
|
+
import * as FeedbackAPI from './feedback';
|
|
7
|
+
import { Feedback, FeedbackListParams } from './feedback';
|
|
6
8
|
import * as VariationsAPI from './variations';
|
|
7
9
|
import {
|
|
8
10
|
AgentVariation,
|
|
@@ -11,6 +13,7 @@ import {
|
|
|
11
13
|
AgentVariationSpecCompactionConfig,
|
|
12
14
|
AgentVariationSpecConstraints,
|
|
13
15
|
AgentVariationSpecModelConfig,
|
|
16
|
+
AgentVariationSpecProgressiveDiscovery,
|
|
14
17
|
AgentVariationsCursorPagination,
|
|
15
18
|
CompactionConfigSummarizationStrategy,
|
|
16
19
|
CompactionConfigToolResultClearingStrategy,
|
|
@@ -51,6 +54,7 @@ import { path } from '../../internal/utils/path';
|
|
|
51
54
|
* Scope: Workspace-level operations
|
|
52
55
|
*/
|
|
53
56
|
export class Agents extends APIResource {
|
|
57
|
+
feedback: FeedbackAPI.Feedback = new FeedbackAPI.Feedback(this._client);
|
|
54
58
|
webhookDeliveries: WebhookDeliveriesAPI.WebhookDeliveries = new WebhookDeliveriesAPI.WebhookDeliveries(
|
|
55
59
|
this._client,
|
|
56
60
|
);
|
|
@@ -252,12 +256,18 @@ export interface AgentListParams extends CursorPaginationParams {
|
|
|
252
256
|
*/
|
|
253
257
|
prefix?: string;
|
|
254
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Free-form search query
|
|
261
|
+
*/
|
|
262
|
+
query?: string;
|
|
263
|
+
|
|
255
264
|
/**
|
|
256
265
|
* Sort order for results (asc or desc by creation time)
|
|
257
266
|
*/
|
|
258
267
|
sortOrder?: string;
|
|
259
268
|
}
|
|
260
269
|
|
|
270
|
+
Agents.Feedback = Feedback;
|
|
261
271
|
Agents.WebhookDeliveries = WebhookDeliveries;
|
|
262
272
|
Agents.Variations = Variations;
|
|
263
273
|
|
|
@@ -273,6 +283,8 @@ export declare namespace Agents {
|
|
|
273
283
|
type AgentListParams as AgentListParams,
|
|
274
284
|
};
|
|
275
285
|
|
|
286
|
+
export { Feedback as Feedback, type FeedbackListParams as FeedbackListParams };
|
|
287
|
+
|
|
276
288
|
export {
|
|
277
289
|
WebhookDeliveries as WebhookDeliveries,
|
|
278
290
|
type WebhookDelivery as WebhookDelivery,
|
|
@@ -289,6 +301,7 @@ export declare namespace Agents {
|
|
|
289
301
|
type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig,
|
|
290
302
|
type AgentVariationSpecConstraints as AgentVariationSpecConstraints,
|
|
291
303
|
type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig,
|
|
304
|
+
type AgentVariationSpecProgressiveDiscovery as AgentVariationSpecProgressiveDiscovery,
|
|
292
305
|
type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy,
|
|
293
306
|
type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy,
|
|
294
307
|
type VariationAssignment as VariationAssignment,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ObjectivesFeedbackAPI from '../objectives/feedback';
|
|
5
|
+
import { ObjectiveFeedbacksCursorPagination } from '../objectives/feedback';
|
|
6
|
+
import { CursorPagination, type CursorPaginationParams, PagePromise } from '../../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* AgentService manages AI agents at the WORKSPACE level.
|
|
12
|
+
* Agents are workspace-scoped resources that define AI behavior and tool access.
|
|
13
|
+
* All operations are implicitly scoped to the workspace determined by the JWT token.
|
|
14
|
+
*
|
|
15
|
+
* Authentication: Bearer token (JWT)
|
|
16
|
+
* Scope: Workspace-level operations
|
|
17
|
+
*/
|
|
18
|
+
export class Feedback extends APIResource {
|
|
19
|
+
/**
|
|
20
|
+
* Lists feedback submitted across all objectives belonging to an agent. Supports
|
|
21
|
+
* search by comment, sentiment filter, agent variation filter, and creation date
|
|
22
|
+
* range. Results are ordered by creation time, newest first.
|
|
23
|
+
*/
|
|
24
|
+
list(
|
|
25
|
+
agentID: string,
|
|
26
|
+
query: FeedbackListParams | null | undefined = {},
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): PagePromise<ObjectiveFeedbacksCursorPagination, ObjectivesFeedbackAPI.ObjectiveFeedback> {
|
|
29
|
+
return this._client.getAPIList(
|
|
30
|
+
path`/v1/agents/${agentID}/feedback`,
|
|
31
|
+
CursorPagination<ObjectivesFeedbackAPI.ObjectiveFeedback>,
|
|
32
|
+
{ query, ...options },
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface FeedbackListParams extends CursorPaginationParams {
|
|
38
|
+
/**
|
|
39
|
+
* Optional filter to limit results to feedback on objectives run by a single agent
|
|
40
|
+
* variation. Supports "external_id:" prefix for external IDs.
|
|
41
|
+
*/
|
|
42
|
+
agentVariationId?: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Inclusive lower bound on feedback creation time.
|
|
46
|
+
*/
|
|
47
|
+
createdAfter?: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Exclusive upper bound on feedback creation time.
|
|
51
|
+
*/
|
|
52
|
+
createdBefore?: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Free-text search applied to the feedback comment. Case-insensitive substring
|
|
56
|
+
* match.
|
|
57
|
+
*/
|
|
58
|
+
query?: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Filter by sentiment. UNSPECIFIED returns feedback regardless of score.
|
|
62
|
+
*/
|
|
63
|
+
sentiment?:
|
|
64
|
+
| 'FEEDBACK_SENTIMENT_UNSPECIFIED'
|
|
65
|
+
| 'FEEDBACK_SENTIMENT_POSITIVE'
|
|
66
|
+
| 'FEEDBACK_SENTIMENT_NEGATIVE';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare namespace Feedback {
|
|
70
|
+
export { type FeedbackListParams as FeedbackListParams };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { type ObjectiveFeedbacksCursorPagination };
|
|
@@ -11,6 +11,7 @@ export {
|
|
|
11
11
|
type AgentListParams,
|
|
12
12
|
type AgentsCursorPagination,
|
|
13
13
|
} from './agents';
|
|
14
|
+
export { Feedback, type FeedbackListParams } from './feedback';
|
|
14
15
|
export {
|
|
15
16
|
Variations,
|
|
16
17
|
type AgentVariation,
|
|
@@ -19,6 +20,7 @@ export {
|
|
|
19
20
|
type AgentVariationSpecCompactionConfig,
|
|
20
21
|
type AgentVariationSpecConstraints,
|
|
21
22
|
type AgentVariationSpecModelConfig,
|
|
23
|
+
type AgentVariationSpecProgressiveDiscovery,
|
|
22
24
|
type CompactionConfigSummarizationStrategy,
|
|
23
25
|
type CompactionConfigToolResultClearingStrategy,
|
|
24
26
|
type VariationAssignment,
|
|
@@ -272,7 +272,7 @@ export interface AgentVariationSpec {
|
|
|
272
272
|
* tool search. These are used in conjunction with the context-aware tool search
|
|
273
273
|
* and can help select the best tools for the task.
|
|
274
274
|
*/
|
|
275
|
-
progressiveDiscovery?:
|
|
275
|
+
progressiveDiscovery?: AgentVariationSpecProgressiveDiscovery;
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* The system prompt for this variation
|
|
@@ -288,30 +288,6 @@ export interface AgentVariationSpec {
|
|
|
288
288
|
weight?: number;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
export namespace AgentVariationSpec {
|
|
292
|
-
/**
|
|
293
|
-
* ProgressiveDiscovery is used to indicate that the agent should automatically
|
|
294
|
-
* discover tools that are not explicitly assigned to it. Max tools is the maximum
|
|
295
|
-
* number of tools that can be discovered per search. Hints are optional hints for
|
|
296
|
-
* tool search. These are used in conjunction with the context-aware tool search
|
|
297
|
-
* and can help select the best tools for the task.
|
|
298
|
-
*/
|
|
299
|
-
export interface ProgressiveDiscovery {
|
|
300
|
-
hints?: Array<string>;
|
|
301
|
-
|
|
302
|
-
maxTools?: number;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Rerank Threshold is an optional value that instructs whether or not to run a
|
|
306
|
-
* search result through a embedding/reranker process which can improve performance
|
|
307
|
-
* and reduce context bloat when tools reach the configured threshold. If a tool
|
|
308
|
-
* match must exceed 0.8, for example, the tool very closely match the query the
|
|
309
|
-
* tool search performed.
|
|
310
|
-
*/
|
|
311
|
-
rerankThreshold?: number;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
291
|
/**
|
|
316
292
|
* CompactionConfig defines how context window compaction behaves for objectives
|
|
317
293
|
* using this variation.
|
|
@@ -365,6 +341,28 @@ export interface AgentVariationSpecModelConfig {
|
|
|
365
341
|
temperature?: number;
|
|
366
342
|
}
|
|
367
343
|
|
|
344
|
+
/**
|
|
345
|
+
* ProgressiveDiscovery is used to indicate that the agent should automatically
|
|
346
|
+
* discover tools that are not explicitly assigned to it. Max tools is the maximum
|
|
347
|
+
* number of tools that can be discovered per search. Hints are optional hints for
|
|
348
|
+
* tool search. These are used in conjunction with the context-aware tool search
|
|
349
|
+
* and can help select the best tools for the task.
|
|
350
|
+
*/
|
|
351
|
+
export interface AgentVariationSpecProgressiveDiscovery {
|
|
352
|
+
hints?: Array<string>;
|
|
353
|
+
|
|
354
|
+
maxTools?: number;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Rerank Threshold is an optional value that instructs whether or not to run a
|
|
358
|
+
* search result through a embedding/reranker process which can improve performance
|
|
359
|
+
* and reduce context bloat when tools reach the configured threshold. If a tool
|
|
360
|
+
* match must exceed 0.8, for example, the tool very closely match the query the
|
|
361
|
+
* tool search performed.
|
|
362
|
+
*/
|
|
363
|
+
rerankThreshold?: number;
|
|
364
|
+
}
|
|
365
|
+
|
|
368
366
|
/**
|
|
369
367
|
* SummarizationStrategy configures LLM-powered summarization of older conversation
|
|
370
368
|
* turns.
|
|
@@ -637,6 +635,7 @@ export declare namespace Variations {
|
|
|
637
635
|
type AgentVariationSpecCompactionConfig as AgentVariationSpecCompactionConfig,
|
|
638
636
|
type AgentVariationSpecConstraints as AgentVariationSpecConstraints,
|
|
639
637
|
type AgentVariationSpecModelConfig as AgentVariationSpecModelConfig,
|
|
638
|
+
type AgentVariationSpecProgressiveDiscovery as AgentVariationSpecProgressiveDiscovery,
|
|
640
639
|
type CompactionConfigSummarizationStrategy as CompactionConfigSummarizationStrategy,
|
|
641
640
|
type CompactionConfigToolResultClearingStrategy as CompactionConfigToolResultClearingStrategy,
|
|
642
641
|
type VariationAssignment as VariationAssignment,
|
|
@@ -182,6 +182,11 @@ export interface MemoryLayerListParams extends CursorPaginationParams {
|
|
|
182
182
|
*/
|
|
183
183
|
prefix?: string;
|
|
184
184
|
|
|
185
|
+
/**
|
|
186
|
+
* Free-form search query
|
|
187
|
+
*/
|
|
188
|
+
query?: string;
|
|
189
|
+
|
|
185
190
|
/**
|
|
186
191
|
* Sort order for results (asc or desc by creation time)
|
|
187
192
|
*/
|
package/src/resources/models.ts
CHANGED
|
@@ -83,6 +83,26 @@ export interface ObjectiveFeedbackData {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export interface ObjectiveFeedbackInfo {
|
|
86
|
+
/**
|
|
87
|
+
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
88
|
+
* optional human-readable name. These are used for reference fields where the full
|
|
89
|
+
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
90
|
+
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
91
|
+
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
92
|
+
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
93
|
+
*/
|
|
94
|
+
agentVariation?: Shared.BareMetadata;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* BareMetadata contains the minimal metadata for a resource: the ID and an
|
|
98
|
+
* optional human-readable name. These are used for reference fields where the full
|
|
99
|
+
* metadata (account scoping, timestamps, labels, external IDs) is not needed —
|
|
100
|
+
* e.g., the tool references inside an agent variation spec or the tools assigned
|
|
101
|
+
* to an objective. Both fields are server-populated; clients provide IDs through
|
|
102
|
+
* sibling fields rather than by constructing a BareMetadata themselves.
|
|
103
|
+
*/
|
|
104
|
+
objective?: Shared.BareMetadata;
|
|
105
|
+
|
|
86
106
|
/**
|
|
87
107
|
* Profile represents a human user at the account level. Profiles are
|
|
88
108
|
* account-scoped resources that can be associated with multiple workspaces through
|
|
@@ -128,6 +128,11 @@ export interface WorkspaceSecretListParams extends CursorPaginationParams {
|
|
|
128
128
|
*/
|
|
129
129
|
prefix?: string;
|
|
130
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Free-form search query
|
|
133
|
+
*/
|
|
134
|
+
query?: string;
|
|
135
|
+
|
|
131
136
|
/**
|
|
132
137
|
* Sort order for results (asc or desc by creation time)
|
|
133
138
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.53.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.53.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.53.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.53.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|