@cadenya/cadenya 0.124.0 → 0.126.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 +17 -0
- package/README.md +18 -7
- package/client.d.mts +17 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +17 -11
- package/client.d.ts.map +1 -1
- package/client.js +7 -3
- package/client.js.map +1 -1
- package/client.mjs +7 -3
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +1 -1
- package/internal/request-options.d.ts +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +115 -28
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +115 -28
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +93 -13
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +93 -13
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/feedback.d.mts +13 -2
- package/resources/agents/feedback.d.mts.map +1 -1
- package/resources/agents/feedback.d.ts +13 -2
- package/resources/agents/feedback.d.ts.map +1 -1
- package/resources/agents/feedback.js +13 -2
- package/resources/agents/feedback.js.map +1 -1
- package/resources/agents/feedback.mjs +13 -2
- package/resources/agents/feedback.mjs.map +1 -1
- package/resources/agents/index.d.mts +1 -1
- package/resources/agents/index.d.mts.map +1 -1
- package/resources/agents/index.d.ts +1 -1
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/schedules.d.mts +100 -52
- package/resources/agents/schedules.d.mts.map +1 -1
- package/resources/agents/schedules.d.ts +100 -52
- package/resources/agents/schedules.d.ts.map +1 -1
- package/resources/agents/schedules.js +99 -21
- package/resources/agents/schedules.js.map +1 -1
- package/resources/agents/schedules.mjs +99 -21
- package/resources/agents/schedules.mjs.map +1 -1
- package/resources/agents/variations.d.mts +252 -105
- package/resources/agents/variations.d.mts.map +1 -1
- package/resources/agents/variations.d.ts +252 -105
- package/resources/agents/variations.d.ts.map +1 -1
- package/resources/agents/variations.js +138 -27
- package/resources/agents/variations.js.map +1 -1
- package/resources/agents/variations.mjs +138 -27
- package/resources/agents/variations.mjs.map +1 -1
- package/resources/agents/webhook-deliveries.d.mts +13 -2
- package/resources/agents/webhook-deliveries.d.mts.map +1 -1
- package/resources/agents/webhook-deliveries.d.ts +13 -2
- package/resources/agents/webhook-deliveries.d.ts.map +1 -1
- package/resources/agents/webhook-deliveries.js +13 -2
- package/resources/agents/webhook-deliveries.js.map +1 -1
- package/resources/agents/webhook-deliveries.mjs +13 -2
- package/resources/agents/webhook-deliveries.mjs.map +1 -1
- package/resources/ai-provider-keys.d.mts +125 -110
- package/resources/ai-provider-keys.d.mts.map +1 -1
- package/resources/ai-provider-keys.d.ts +125 -110
- package/resources/ai-provider-keys.d.ts.map +1 -1
- package/resources/ai-provider-keys.js +11 -9
- package/resources/ai-provider-keys.js.map +1 -1
- package/resources/ai-provider-keys.mjs +11 -9
- package/resources/ai-provider-keys.mjs.map +1 -1
- package/resources/api-keys.d.mts +28 -20
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +28 -20
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +14 -12
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +14 -12
- package/resources/api-keys.mjs.map +1 -1
- package/resources/index.d.mts +4 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/memory-layers/entries.d.mts +27 -30
- package/resources/memory-layers/entries.d.mts.map +1 -1
- package/resources/memory-layers/entries.d.ts +27 -30
- package/resources/memory-layers/entries.d.ts.map +1 -1
- package/resources/memory-layers/entries.js +12 -12
- package/resources/memory-layers/entries.js.map +1 -1
- package/resources/memory-layers/entries.mjs +12 -12
- package/resources/memory-layers/entries.mjs.map +1 -1
- package/resources/memory-layers/index.d.mts +1 -1
- package/resources/memory-layers/index.d.mts.map +1 -1
- package/resources/memory-layers/index.d.ts +1 -1
- package/resources/memory-layers/index.d.ts.map +1 -1
- package/resources/memory-layers/index.js.map +1 -1
- package/resources/memory-layers/index.mjs.map +1 -1
- package/resources/memory-layers/memory-layers.d.mts +34 -22
- package/resources/memory-layers/memory-layers.d.mts.map +1 -1
- package/resources/memory-layers/memory-layers.d.ts +34 -22
- package/resources/memory-layers/memory-layers.d.ts.map +1 -1
- package/resources/memory-layers/memory-layers.js +11 -9
- package/resources/memory-layers/memory-layers.js.map +1 -1
- package/resources/memory-layers/memory-layers.mjs +11 -9
- package/resources/memory-layers/memory-layers.mjs.map +1 -1
- package/resources/models.d.mts +32 -24
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +32 -24
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +10 -8
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +10 -8
- package/resources/models.mjs.map +1 -1
- package/resources/objectives/feedback.d.mts +27 -3
- package/resources/objectives/feedback.d.mts.map +1 -1
- package/resources/objectives/feedback.d.ts +27 -3
- package/resources/objectives/feedback.d.ts.map +1 -1
- package/resources/objectives/feedback.js +27 -3
- package/resources/objectives/feedback.js.map +1 -1
- package/resources/objectives/feedback.mjs +27 -3
- package/resources/objectives/feedback.mjs.map +1 -1
- package/resources/objectives/index.d.mts +2 -2
- package/resources/objectives/index.d.mts.map +1 -1
- package/resources/objectives/index.d.ts +2 -2
- package/resources/objectives/index.d.ts.map +1 -1
- package/resources/objectives/index.js.map +1 -1
- package/resources/objectives/index.mjs.map +1 -1
- package/resources/objectives/objectives.d.mts +273 -102
- package/resources/objectives/objectives.d.mts.map +1 -1
- package/resources/objectives/objectives.d.ts +273 -102
- package/resources/objectives/objectives.d.ts.map +1 -1
- package/resources/objectives/objectives.js +112 -17
- package/resources/objectives/objectives.js.map +1 -1
- package/resources/objectives/objectives.mjs +112 -17
- package/resources/objectives/objectives.mjs.map +1 -1
- package/resources/objectives/tasks.d.mts +25 -8
- package/resources/objectives/tasks.d.mts.map +1 -1
- package/resources/objectives/tasks.d.ts +25 -8
- package/resources/objectives/tasks.d.ts.map +1 -1
- package/resources/objectives/tasks.js +26 -5
- package/resources/objectives/tasks.js.map +1 -1
- package/resources/objectives/tasks.mjs +26 -5
- package/resources/objectives/tasks.mjs.map +1 -1
- package/resources/objectives/tool-calls.d.mts +99 -42
- package/resources/objectives/tool-calls.d.mts.map +1 -1
- package/resources/objectives/tool-calls.d.ts +99 -42
- package/resources/objectives/tool-calls.d.ts.map +1 -1
- package/resources/objectives/tool-calls.js +73 -14
- package/resources/objectives/tool-calls.js.map +1 -1
- package/resources/objectives/tool-calls.mjs +73 -14
- package/resources/objectives/tool-calls.mjs.map +1 -1
- package/resources/objectives/tools.d.mts +13 -2
- package/resources/objectives/tools.d.mts.map +1 -1
- package/resources/objectives/tools.d.ts +13 -2
- package/resources/objectives/tools.d.ts.map +1 -1
- package/resources/objectives/tools.js +13 -2
- package/resources/objectives/tools.js.map +1 -1
- package/resources/objectives/tools.mjs +13 -2
- package/resources/objectives/tools.mjs.map +1 -1
- package/resources/search.d.mts +11 -2
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +11 -2
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +3 -2
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +3 -2
- package/resources/search.mjs.map +1 -1
- package/resources/tool-sets/index.d.mts +2 -2
- package/resources/tool-sets/index.d.mts.map +1 -1
- package/resources/tool-sets/index.d.ts +2 -2
- package/resources/tool-sets/index.d.ts.map +1 -1
- package/resources/tool-sets/index.js.map +1 -1
- package/resources/tool-sets/index.mjs.map +1 -1
- package/resources/tool-sets/secrets.d.mts +9 -24
- package/resources/tool-sets/secrets.d.mts.map +1 -1
- package/resources/tool-sets/secrets.d.ts +9 -24
- package/resources/tool-sets/secrets.d.ts.map +1 -1
- package/resources/tool-sets/secrets.js +12 -12
- package/resources/tool-sets/secrets.js.map +1 -1
- package/resources/tool-sets/secrets.mjs +12 -12
- package/resources/tool-sets/secrets.mjs.map +1 -1
- package/resources/tool-sets/tool-sets.d.mts +149 -64
- package/resources/tool-sets/tool-sets.d.mts.map +1 -1
- package/resources/tool-sets/tool-sets.d.ts +149 -64
- package/resources/tool-sets/tool-sets.d.ts.map +1 -1
- package/resources/tool-sets/tool-sets.js +17 -15
- package/resources/tool-sets/tool-sets.js.map +1 -1
- package/resources/tool-sets/tool-sets.mjs +17 -15
- package/resources/tool-sets/tool-sets.mjs.map +1 -1
- package/resources/tool-sets/tools.d.mts +33 -43
- package/resources/tool-sets/tools.d.mts.map +1 -1
- package/resources/tool-sets/tools.d.ts +33 -43
- package/resources/tool-sets/tools.d.ts.map +1 -1
- package/resources/tool-sets/tools.js +18 -18
- package/resources/tool-sets/tools.js.map +1 -1
- package/resources/tool-sets/tools.mjs +18 -18
- package/resources/tool-sets/tools.mjs.map +1 -1
- package/resources/uploads.d.mts +14 -6
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +14 -6
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +5 -4
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +5 -4
- package/resources/uploads.mjs.map +1 -1
- package/resources/workspace-admin/index.d.mts +1 -1
- package/resources/workspace-admin/index.d.mts.map +1 -1
- package/resources/workspace-admin/index.d.ts +1 -1
- package/resources/workspace-admin/index.d.ts.map +1 -1
- package/resources/workspace-admin/index.js.map +1 -1
- package/resources/workspace-admin/index.mjs.map +1 -1
- package/resources/workspace-admin/members.d.mts +41 -6
- package/resources/workspace-admin/members.d.mts.map +1 -1
- package/resources/workspace-admin/members.d.ts +41 -6
- package/resources/workspace-admin/members.d.ts.map +1 -1
- package/resources/workspace-admin/members.js +34 -6
- package/resources/workspace-admin/members.js.map +1 -1
- package/resources/workspace-admin/members.mjs +34 -6
- package/resources/workspace-admin/members.mjs.map +1 -1
- package/resources/workspace-admin/profiles.d.mts +8 -0
- package/resources/workspace-admin/profiles.d.mts.map +1 -1
- package/resources/workspace-admin/profiles.d.ts +8 -0
- package/resources/workspace-admin/profiles.d.ts.map +1 -1
- package/resources/workspace-admin/profiles.js +8 -0
- package/resources/workspace-admin/profiles.js.map +1 -1
- package/resources/workspace-admin/profiles.mjs +8 -0
- package/resources/workspace-admin/profiles.mjs.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.mts +65 -9
- package/resources/workspace-admin/workspace-admin.d.mts.map +1 -1
- package/resources/workspace-admin/workspace-admin.d.ts +65 -9
- package/resources/workspace-admin/workspace-admin.d.ts.map +1 -1
- package/resources/workspace-admin/workspace-admin.js +46 -6
- package/resources/workspace-admin/workspace-admin.js.map +1 -1
- package/resources/workspace-admin/workspace-admin.mjs +46 -6
- package/resources/workspace-admin/workspace-admin.mjs.map +1 -1
- package/resources/workspace-secrets.d.mts +27 -15
- package/resources/workspace-secrets.d.mts.map +1 -1
- package/resources/workspace-secrets.d.ts +27 -15
- package/resources/workspace-secrets.d.ts.map +1 -1
- package/resources/workspace-secrets.js +11 -9
- package/resources/workspace-secrets.js.map +1 -1
- package/resources/workspace-secrets.mjs +11 -9
- package/resources/workspace-secrets.mjs.map +1 -1
- package/src/client.ts +102 -5
- package/src/internal/request-options.ts +1 -1
- package/src/resources/agents/agents.ts +147 -37
- package/src/resources/agents/feedback.ts +14 -3
- package/src/resources/agents/index.ts +6 -0
- package/src/resources/agents/schedules.ts +143 -71
- package/src/resources/agents/variations.ts +319 -125
- package/src/resources/agents/webhook-deliveries.ts +14 -3
- package/src/resources/ai-provider-keys.ts +155 -127
- package/src/resources/api-keys.ts +48 -29
- package/src/resources/index.ts +44 -1
- package/src/resources/memory-layers/entries.ts +56 -40
- package/src/resources/memory-layers/index.ts +2 -0
- package/src/resources/memory-layers/memory-layers.ts +53 -30
- package/src/resources/models.ts +46 -31
- package/src/resources/objectives/feedback.ts +29 -5
- package/src/resources/objectives/index.ts +26 -0
- package/src/resources/objectives/objectives.ts +373 -125
- package/src/resources/objectives/tasks.ts +33 -12
- package/src/resources/objectives/tool-calls.ts +123 -46
- package/src/resources/objectives/tools.ts +14 -3
- package/src/resources/search.ts +14 -4
- package/src/resources/tool-sets/index.ts +23 -3
- package/src/resources/tool-sets/secrets.ts +32 -35
- package/src/resources/tool-sets/tool-sets.ts +239 -79
- package/src/resources/tool-sets/tools.ts +79 -61
- package/src/resources/uploads.ts +22 -8
- package/src/resources/workspace-admin/index.ts +2 -0
- package/src/resources/workspace-admin/members.ts +53 -12
- package/src/resources/workspace-admin/profiles.ts +8 -0
- package/src/resources/workspace-admin/workspace-admin.ts +80 -11
- package/src/resources/workspace-secrets.ts +40 -25
- 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
|
@@ -11,40 +11,118 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
11
11
|
export declare class Schedules extends APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Creates a new schedule for an agent
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const agentSchedule = await client.agents.schedules.create(
|
|
18
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
19
|
+
* {
|
|
20
|
+
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
21
|
+
* metadata: { name: 'name' },
|
|
22
|
+
* spec: { schedule: {} },
|
|
23
|
+
* },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
14
26
|
*/
|
|
15
27
|
create(agentID: string, params: ScheduleCreateParams, options?: RequestOptions): APIPromise<AgentSchedule>;
|
|
16
28
|
/**
|
|
17
29
|
* Retrieves a schedule by ID from an agent
|
|
18
|
-
|
|
19
|
-
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const agentSchedule =
|
|
34
|
+
* await client.agents.schedules.retrieve(
|
|
35
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
36
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
37
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
retrieve(agentID: string, id: string, params?: ScheduleRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<AgentSchedule>;
|
|
20
42
|
/**
|
|
21
43
|
* Updates a schedule for an agent
|
|
22
|
-
|
|
23
|
-
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const agentSchedule = await client.agents.schedules.update(
|
|
48
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
49
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
50
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
update(agentID: string, id: string, params: ScheduleUpdateParams, options?: RequestOptions): APIPromise<AgentSchedule>;
|
|
24
55
|
/**
|
|
25
56
|
* Lists all schedules for an agent
|
|
26
|
-
|
|
27
|
-
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* // Automatically fetches more pages as needed.
|
|
61
|
+
* for await (const agentSchedule of client.agents.schedules.list(
|
|
62
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
63
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
64
|
+
* )) {
|
|
65
|
+
* // ...
|
|
66
|
+
* }
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
list(agentID: string, params?: ScheduleListParams | null | undefined, options?: RequestOptions): PagePromise<AgentSchedulesCursorPagination, AgentSchedule>;
|
|
28
70
|
/**
|
|
29
71
|
* Deletes a schedule from an agent
|
|
30
|
-
|
|
31
|
-
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* await client.agents.schedules.delete(
|
|
76
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
77
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
78
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
79
|
+
* );
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
delete(agentID: string, id: string, params?: ScheduleDeleteParams | null | undefined, options?: RequestOptions): APIPromise<void>;
|
|
32
83
|
/**
|
|
33
84
|
* Transitions a schedule to STATE_ARCHIVED and removes its underlying timer.
|
|
34
85
|
* Archiving is terminal: archived schedules never fire and cannot be reactivated;
|
|
35
86
|
* create a new schedule instead.
|
|
36
|
-
|
|
37
|
-
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const agentSchedule = await client.agents.schedules.archive(
|
|
91
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
92
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
93
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
archive(agentID: string, id: string, params: ScheduleArchiveParams, options?: RequestOptions): APIPromise<AgentSchedule>;
|
|
38
98
|
/**
|
|
39
99
|
* Transitions a schedule to STATE_PAUSED. Paused schedules retain history but do
|
|
40
100
|
* not fire.
|
|
41
|
-
|
|
42
|
-
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```ts
|
|
104
|
+
* const agentSchedule = await client.agents.schedules.pause(
|
|
105
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
106
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
107
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
108
|
+
* );
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
pause(agentID: string, id: string, params: SchedulePauseParams, options?: RequestOptions): APIPromise<AgentSchedule>;
|
|
43
112
|
/**
|
|
44
113
|
* Transitions a paused schedule back to STATE_ACTIVE so it fires on its cadence
|
|
45
114
|
* again. Archived schedules cannot be resumed.
|
|
46
|
-
|
|
47
|
-
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```ts
|
|
118
|
+
* const agentSchedule = await client.agents.schedules.resume(
|
|
119
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
120
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
121
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
122
|
+
* );
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
resume(agentID: string, id: string, params: ScheduleResumeParams, options?: RequestOptions): APIPromise<AgentSchedule>;
|
|
48
126
|
}
|
|
49
127
|
export type AgentSchedulesCursorPagination = CursorPagination<AgentSchedule>;
|
|
50
128
|
/**
|
|
@@ -206,7 +284,7 @@ export interface ScheduleCreateParams {
|
|
|
206
284
|
/**
|
|
207
285
|
* Path param: Workspace ID.
|
|
208
286
|
*/
|
|
209
|
-
workspaceId
|
|
287
|
+
workspaceId?: string;
|
|
210
288
|
/**
|
|
211
289
|
* Body param: CreateResourceMetadata contains the user-provided fields for
|
|
212
290
|
* creating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -223,23 +301,13 @@ export interface ScheduleRetrieveParams {
|
|
|
223
301
|
/**
|
|
224
302
|
* Workspace ID.
|
|
225
303
|
*/
|
|
226
|
-
workspaceId
|
|
227
|
-
/**
|
|
228
|
-
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
229
|
-
* form.
|
|
230
|
-
*/
|
|
231
|
-
agentId: string;
|
|
304
|
+
workspaceId?: string;
|
|
232
305
|
}
|
|
233
306
|
export interface ScheduleUpdateParams {
|
|
234
307
|
/**
|
|
235
308
|
* Path param: Workspace ID.
|
|
236
309
|
*/
|
|
237
|
-
workspaceId
|
|
238
|
-
/**
|
|
239
|
-
* Path param: Agent ID. Accepts the canonical `agent_…` form or the
|
|
240
|
-
* `external_id:<value>` form.
|
|
241
|
-
*/
|
|
242
|
-
agentId: string;
|
|
310
|
+
workspaceId?: string;
|
|
243
311
|
/**
|
|
244
312
|
* Body param: UpdateResourceMetadata contains the user-provided fields for
|
|
245
313
|
* updating a workspace-scoped resource. Read-only fields (id, account_id,
|
|
@@ -260,7 +328,7 @@ export interface ScheduleListParams extends CursorPaginationParams {
|
|
|
260
328
|
/**
|
|
261
329
|
* Path param: Workspace ID.
|
|
262
330
|
*/
|
|
263
|
-
workspaceId
|
|
331
|
+
workspaceId?: string;
|
|
264
332
|
/**
|
|
265
333
|
* Query param: When true, the `info` field on each returned schedule is populated.
|
|
266
334
|
* Requests with this flag count more against your rate limit.
|
|
@@ -289,45 +357,25 @@ export interface ScheduleDeleteParams {
|
|
|
289
357
|
/**
|
|
290
358
|
* Workspace ID.
|
|
291
359
|
*/
|
|
292
|
-
workspaceId
|
|
293
|
-
/**
|
|
294
|
-
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
295
|
-
* form.
|
|
296
|
-
*/
|
|
297
|
-
agentId: string;
|
|
360
|
+
workspaceId?: string;
|
|
298
361
|
}
|
|
299
362
|
export interface ScheduleArchiveParams {
|
|
300
363
|
/**
|
|
301
364
|
* Workspace ID.
|
|
302
365
|
*/
|
|
303
|
-
workspaceId
|
|
304
|
-
/**
|
|
305
|
-
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
306
|
-
* form.
|
|
307
|
-
*/
|
|
308
|
-
agentId: string;
|
|
366
|
+
workspaceId?: string;
|
|
309
367
|
}
|
|
310
368
|
export interface SchedulePauseParams {
|
|
311
369
|
/**
|
|
312
370
|
* Workspace ID.
|
|
313
371
|
*/
|
|
314
|
-
workspaceId
|
|
315
|
-
/**
|
|
316
|
-
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
317
|
-
* form.
|
|
318
|
-
*/
|
|
319
|
-
agentId: string;
|
|
372
|
+
workspaceId?: string;
|
|
320
373
|
}
|
|
321
374
|
export interface ScheduleResumeParams {
|
|
322
375
|
/**
|
|
323
376
|
* Workspace ID.
|
|
324
377
|
*/
|
|
325
|
-
workspaceId
|
|
326
|
-
/**
|
|
327
|
-
* Agent ID. Accepts the canonical `agent_…` form or the `external_id:<value>`
|
|
328
|
-
* form.
|
|
329
|
-
*/
|
|
330
|
-
agentId: string;
|
|
378
|
+
workspaceId?: string;
|
|
331
379
|
}
|
|
332
380
|
export declare namespace Schedules {
|
|
333
381
|
export { type AgentSchedule as AgentSchedule, type AgentScheduleInfo as AgentScheduleInfo, type AgentScheduleSpec as AgentScheduleSpec, type AgentScheduleSpecSchedule as AgentScheduleSpecSchedule, type ScheduleCalendar as ScheduleCalendar, type ScheduleInterval as ScheduleInterval, type ScheduleRange as ScheduleRange, type AgentSchedulesCursorPagination as AgentSchedulesCursorPagination, type ScheduleCreateParams as ScheduleCreateParams, type ScheduleRetrieveParams as ScheduleRetrieveParams, type ScheduleUpdateParams as ScheduleUpdateParams, type ScheduleListParams as ScheduleListParams, type ScheduleDeleteParams as ScheduleDeleteParams, type ScheduleArchiveParams as ScheduleArchiveParams, type SchedulePauseParams as SchedulePauseParams, type ScheduleResumeParams as ScheduleResumeParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/resources/agents/schedules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,sBAAm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ACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -13,9 +13,21 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
13
13
|
class Schedules extends resource_1.APIResource {
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new schedule for an agent
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const agentSchedule = await client.agents.schedules.create(
|
|
20
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
21
|
+
* {
|
|
22
|
+
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
23
|
+
* metadata: { name: 'name' },
|
|
24
|
+
* spec: { schedule: {} },
|
|
25
|
+
* },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
16
28
|
*/
|
|
17
29
|
create(agentID, params, options) {
|
|
18
|
-
const { workspaceId, ...body } = params;
|
|
30
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
19
31
|
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules`, {
|
|
20
32
|
body,
|
|
21
33
|
...options,
|
|
@@ -23,34 +35,73 @@ class Schedules extends resource_1.APIResource {
|
|
|
23
35
|
}
|
|
24
36
|
/**
|
|
25
37
|
* Retrieves a schedule by ID from an agent
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const agentSchedule =
|
|
42
|
+
* await client.agents.schedules.retrieve(
|
|
43
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
44
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
45
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
26
48
|
*/
|
|
27
|
-
retrieve(id, params, options) {
|
|
28
|
-
const { workspaceId
|
|
29
|
-
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${
|
|
49
|
+
retrieve(agentID, id, params = {}, options) {
|
|
50
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
51
|
+
return this._client.get((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}`, options);
|
|
30
52
|
}
|
|
31
53
|
/**
|
|
32
54
|
* Updates a schedule for an agent
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const agentSchedule = await client.agents.schedules.update(
|
|
59
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
60
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
61
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
33
64
|
*/
|
|
34
|
-
update(id, params, options) {
|
|
35
|
-
const { workspaceId
|
|
36
|
-
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${
|
|
65
|
+
update(agentID, id, params, options) {
|
|
66
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
67
|
+
return this._client.patch((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}`, {
|
|
37
68
|
body,
|
|
38
69
|
...options,
|
|
39
70
|
});
|
|
40
71
|
}
|
|
41
72
|
/**
|
|
42
73
|
* Lists all schedules for an agent
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* // Automatically fetches more pages as needed.
|
|
78
|
+
* for await (const agentSchedule of client.agents.schedules.list(
|
|
79
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
80
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
81
|
+
* )) {
|
|
82
|
+
* // ...
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
43
85
|
*/
|
|
44
|
-
list(agentID, params, options) {
|
|
45
|
-
const { workspaceId, ...query } = params;
|
|
86
|
+
list(agentID, params = {}, options) {
|
|
87
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
46
88
|
return this._client.getAPIList((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules`, (pagination_1.CursorPagination), { query, ...options });
|
|
47
89
|
}
|
|
48
90
|
/**
|
|
49
91
|
* Deletes a schedule from an agent
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* await client.agents.schedules.delete(
|
|
96
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
97
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
98
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
99
|
+
* );
|
|
100
|
+
* ```
|
|
50
101
|
*/
|
|
51
|
-
delete(id, params, options) {
|
|
52
|
-
const { workspaceId
|
|
53
|
-
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${
|
|
102
|
+
delete(agentID, id, params = {}, options) {
|
|
103
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
104
|
+
return this._client.delete((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}`, {
|
|
54
105
|
...options,
|
|
55
106
|
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
56
107
|
});
|
|
@@ -59,10 +110,19 @@ class Schedules extends resource_1.APIResource {
|
|
|
59
110
|
* Transitions a schedule to STATE_ARCHIVED and removes its underlying timer.
|
|
60
111
|
* Archiving is terminal: archived schedules never fire and cannot be reactivated;
|
|
61
112
|
* create a new schedule instead.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const agentSchedule = await client.agents.schedules.archive(
|
|
117
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
118
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
119
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
120
|
+
* );
|
|
121
|
+
* ```
|
|
62
122
|
*/
|
|
63
|
-
archive(id, params, options) {
|
|
64
|
-
const { workspaceId
|
|
65
|
-
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${
|
|
123
|
+
archive(agentID, id, params, options) {
|
|
124
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
125
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}:archive`, {
|
|
66
126
|
body,
|
|
67
127
|
...options,
|
|
68
128
|
});
|
|
@@ -70,10 +130,19 @@ class Schedules extends resource_1.APIResource {
|
|
|
70
130
|
/**
|
|
71
131
|
* Transitions a schedule to STATE_PAUSED. Paused schedules retain history but do
|
|
72
132
|
* not fire.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const agentSchedule = await client.agents.schedules.pause(
|
|
137
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
138
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
139
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
140
|
+
* );
|
|
141
|
+
* ```
|
|
73
142
|
*/
|
|
74
|
-
pause(id, params, options) {
|
|
75
|
-
const { workspaceId
|
|
76
|
-
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${
|
|
143
|
+
pause(agentID, id, params, options) {
|
|
144
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
145
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}:pause`, {
|
|
77
146
|
body,
|
|
78
147
|
...options,
|
|
79
148
|
});
|
|
@@ -81,10 +150,19 @@ class Schedules extends resource_1.APIResource {
|
|
|
81
150
|
/**
|
|
82
151
|
* Transitions a paused schedule back to STATE_ACTIVE so it fires on its cadence
|
|
83
152
|
* again. Archived schedules cannot be resumed.
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```ts
|
|
156
|
+
* const agentSchedule = await client.agents.schedules.resume(
|
|
157
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
158
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
159
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
160
|
+
* );
|
|
161
|
+
* ```
|
|
84
162
|
*/
|
|
85
|
-
resume(id, params, options) {
|
|
86
|
-
const { workspaceId
|
|
87
|
-
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${
|
|
163
|
+
resume(agentID, id, params, options) {
|
|
164
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
165
|
+
return this._client.post((0, path_1.path) `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}:resume`, {
|
|
88
166
|
body,
|
|
89
167
|
...options,
|
|
90
168
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../src/resources/agents/schedules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;;GAGG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC
|
|
1
|
+
{"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../src/resources/agents/schedules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD;;;GAGG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,OAAe,EAAE,MAA4B,EAAE,OAAwB;QAC5E,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,WAAW,OAAO,YAAY,EAAE;YACxF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;I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,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,WAAW,OAAO,cAAc,EAAE,SAAS,EAAE;YACrG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA1MD,8BA0MC"}
|
|
@@ -10,9 +10,21 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
10
10
|
export class Schedules extends APIResource {
|
|
11
11
|
/**
|
|
12
12
|
* Creates a new schedule for an agent
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const agentSchedule = await client.agents.schedules.create(
|
|
17
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
18
|
+
* {
|
|
19
|
+
* workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q',
|
|
20
|
+
* metadata: { name: 'name' },
|
|
21
|
+
* spec: { schedule: {} },
|
|
22
|
+
* },
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
13
25
|
*/
|
|
14
26
|
create(agentID, params, options) {
|
|
15
|
-
const { workspaceId, ...body } = params;
|
|
27
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
16
28
|
return this._client.post(path `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules`, {
|
|
17
29
|
body,
|
|
18
30
|
...options,
|
|
@@ -20,34 +32,73 @@ export class Schedules extends APIResource {
|
|
|
20
32
|
}
|
|
21
33
|
/**
|
|
22
34
|
* Retrieves a schedule by ID from an agent
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const agentSchedule =
|
|
39
|
+
* await client.agents.schedules.retrieve(
|
|
40
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
41
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
42
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
23
45
|
*/
|
|
24
|
-
retrieve(id, params, options) {
|
|
25
|
-
const { workspaceId
|
|
26
|
-
return this._client.get(path `/v1/workspaces/${workspaceId}/agents/${
|
|
46
|
+
retrieve(agentID, id, params = {}, options) {
|
|
47
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
48
|
+
return this._client.get(path `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}`, options);
|
|
27
49
|
}
|
|
28
50
|
/**
|
|
29
51
|
* Updates a schedule for an agent
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const agentSchedule = await client.agents.schedules.update(
|
|
56
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
57
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
58
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
30
61
|
*/
|
|
31
|
-
update(id, params, options) {
|
|
32
|
-
const { workspaceId
|
|
33
|
-
return this._client.patch(path `/v1/workspaces/${workspaceId}/agents/${
|
|
62
|
+
update(agentID, id, params, options) {
|
|
63
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
64
|
+
return this._client.patch(path `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}`, {
|
|
34
65
|
body,
|
|
35
66
|
...options,
|
|
36
67
|
});
|
|
37
68
|
}
|
|
38
69
|
/**
|
|
39
70
|
* Lists all schedules for an agent
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* // Automatically fetches more pages as needed.
|
|
75
|
+
* for await (const agentSchedule of client.agents.schedules.list(
|
|
76
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
77
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
78
|
+
* )) {
|
|
79
|
+
* // ...
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
40
82
|
*/
|
|
41
|
-
list(agentID, params, options) {
|
|
42
|
-
const { workspaceId, ...query } = params;
|
|
83
|
+
list(agentID, params = {}, options) {
|
|
84
|
+
const { workspaceId = this._client.workspaceID, ...query } = params ?? {};
|
|
43
85
|
return this._client.getAPIList(path `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules`, (CursorPagination), { query, ...options });
|
|
44
86
|
}
|
|
45
87
|
/**
|
|
46
88
|
* Deletes a schedule from an agent
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* ```ts
|
|
92
|
+
* await client.agents.schedules.delete(
|
|
93
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
94
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
95
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
96
|
+
* );
|
|
97
|
+
* ```
|
|
47
98
|
*/
|
|
48
|
-
delete(id, params, options) {
|
|
49
|
-
const { workspaceId
|
|
50
|
-
return this._client.delete(path `/v1/workspaces/${workspaceId}/agents/${
|
|
99
|
+
delete(agentID, id, params = {}, options) {
|
|
100
|
+
const { workspaceId = this._client.workspaceID } = params ?? {};
|
|
101
|
+
return this._client.delete(path `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}`, {
|
|
51
102
|
...options,
|
|
52
103
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
53
104
|
});
|
|
@@ -56,10 +107,19 @@ export class Schedules extends APIResource {
|
|
|
56
107
|
* Transitions a schedule to STATE_ARCHIVED and removes its underlying timer.
|
|
57
108
|
* Archiving is terminal: archived schedules never fire and cannot be reactivated;
|
|
58
109
|
* create a new schedule instead.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* const agentSchedule = await client.agents.schedules.archive(
|
|
114
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
115
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
116
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
117
|
+
* );
|
|
118
|
+
* ```
|
|
59
119
|
*/
|
|
60
|
-
archive(id, params, options) {
|
|
61
|
-
const { workspaceId
|
|
62
|
-
return this._client.post(path `/v1/workspaces/${workspaceId}/agents/${
|
|
120
|
+
archive(agentID, id, params, options) {
|
|
121
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
122
|
+
return this._client.post(path `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}:archive`, {
|
|
63
123
|
body,
|
|
64
124
|
...options,
|
|
65
125
|
});
|
|
@@ -67,10 +127,19 @@ export class Schedules extends APIResource {
|
|
|
67
127
|
/**
|
|
68
128
|
* Transitions a schedule to STATE_PAUSED. Paused schedules retain history but do
|
|
69
129
|
* not fire.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```ts
|
|
133
|
+
* const agentSchedule = await client.agents.schedules.pause(
|
|
134
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
135
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
136
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
137
|
+
* );
|
|
138
|
+
* ```
|
|
70
139
|
*/
|
|
71
|
-
pause(id, params, options) {
|
|
72
|
-
const { workspaceId
|
|
73
|
-
return this._client.post(path `/v1/workspaces/${workspaceId}/agents/${
|
|
140
|
+
pause(agentID, id, params, options) {
|
|
141
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
142
|
+
return this._client.post(path `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}:pause`, {
|
|
74
143
|
body,
|
|
75
144
|
...options,
|
|
76
145
|
});
|
|
@@ -78,10 +147,19 @@ export class Schedules extends APIResource {
|
|
|
78
147
|
/**
|
|
79
148
|
* Transitions a paused schedule back to STATE_ACTIVE so it fires on its cadence
|
|
80
149
|
* again. Archived schedules cannot be resumed.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* ```ts
|
|
153
|
+
* const agentSchedule = await client.agents.schedules.resume(
|
|
154
|
+
* 'agent_01HXKD2E5NQM3T9AYWCFMGWT9Y',
|
|
155
|
+
* 'as_01HXKD2E5NQM3T9AYWCFMZZZBD',
|
|
156
|
+
* { workspaceId: 'workspace_01HXKD2E5NQM3T9AYWCF133E3Q' },
|
|
157
|
+
* );
|
|
158
|
+
* ```
|
|
81
159
|
*/
|
|
82
|
-
resume(id, params, options) {
|
|
83
|
-
const { workspaceId
|
|
84
|
-
return this._client.post(path `/v1/workspaces/${workspaceId}/agents/${
|
|
160
|
+
resume(agentID, id, params, options) {
|
|
161
|
+
const { workspaceId = this._client.workspaceID, ...body } = params;
|
|
162
|
+
return this._client.post(path `/v1/workspaces/${workspaceId}/agents/${agentID}/schedules/${id}:resume`, {
|
|
85
163
|
body,
|
|
86
164
|
...options,
|
|
87
165
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedules.mjs","sourceRoot":"","sources":["../../src/resources/agents/schedules.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;;GAGG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC
|
|
1
|
+
{"version":3,"file":"schedules.mjs","sourceRoot":"","sources":["../../src/resources/agents/schedules.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,gBAAgB,EAA4C,kCA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