@stigmer/protos 3.5.3 → 3.7.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.
Files changed (103) hide show
  1. package/ai/stigmer/agentic/agentchannel/v1/conversation_command_connect.d.ts +141 -0
  2. package/ai/stigmer/agentic/agentchannel/v1/conversation_command_connect.js +149 -0
  3. package/ai/stigmer/agentic/agentchannel/v1/conversation_command_connect.js.map +1 -0
  4. package/ai/stigmer/agentic/agentchannel/v1/conversation_command_pb.d.ts +140 -0
  5. package/ai/stigmer/agentic/agentchannel/v1/conversation_command_pb.js +34 -0
  6. package/ai/stigmer/agentic/agentchannel/v1/conversation_command_pb.js.map +1 -0
  7. package/ai/stigmer/agentic/agentchannel/v1/conversation_io_pb.d.ts +541 -0
  8. package/ai/stigmer/agentic/agentchannel/v1/conversation_io_pb.js +181 -0
  9. package/ai/stigmer/agentic/agentchannel/v1/conversation_io_pb.js.map +1 -0
  10. package/ai/stigmer/agentic/agentchannel/v1/conversation_query_connect.d.ts +69 -0
  11. package/ai/stigmer/agentic/agentchannel/v1/conversation_query_connect.js +76 -0
  12. package/ai/stigmer/agentic/agentchannel/v1/conversation_query_connect.js.map +1 -0
  13. package/ai/stigmer/agentic/agentchannel/v1/conversation_query_pb.d.ts +70 -0
  14. package/ai/stigmer/agentic/agentchannel/v1/conversation_query_pb.js +30 -0
  15. package/ai/stigmer/agentic/agentchannel/v1/conversation_query_pb.js.map +1 -0
  16. package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.d.ts +36 -2
  17. package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.js +18 -2
  18. package/ai/stigmer/agentic/agentchannel/v1/delivery_pb.js.map +1 -1
  19. package/ai/stigmer/agentic/agentchannel/v1/message_io_pb.d.ts +90 -0
  20. package/ai/stigmer/agentic/agentchannel/v1/message_io_pb.js +16 -1
  21. package/ai/stigmer/agentic/agentchannel/v1/message_io_pb.js.map +1 -1
  22. package/ai/stigmer/agentic/agentchannel/v1/message_query_connect.d.ts +27 -0
  23. package/ai/stigmer/agentic/agentchannel/v1/message_query_connect.js +28 -1
  24. package/ai/stigmer/agentic/agentchannel/v1/message_query_connect.js.map +1 -1
  25. package/ai/stigmer/agentic/agentchannel/v1/message_query_pb.d.ts +27 -1
  26. package/ai/stigmer/agentic/agentchannel/v1/message_query_pb.js +1 -1
  27. package/ai/stigmer/agentic/agentchannel/v1/message_query_pb.js.map +1 -1
  28. package/ai/stigmer/agentic/agentchannel/v1/outbound_pb.d.ts +142 -6
  29. package/ai/stigmer/agentic/agentchannel/v1/outbound_pb.js +94 -5
  30. package/ai/stigmer/agentic/agentchannel/v1/outbound_pb.js.map +1 -1
  31. package/ai/stigmer/agentic/agentchannel/v1/spec_pb.d.ts +25 -0
  32. package/ai/stigmer/agentic/agentchannel/v1/spec_pb.js +2 -1
  33. package/ai/stigmer/agentic/agentchannel/v1/spec_pb.js.map +1 -1
  34. package/ai/stigmer/agentic/agentexecution/v1/api_pb.d.ts +5 -1
  35. package/ai/stigmer/agentic/agentexecution/v1/api_pb.js.map +1 -1
  36. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.d.ts +66 -0
  37. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js +81 -14
  38. package/ai/stigmer/agentic/agentexecution/v1/enum_pb.js.map +1 -1
  39. package/ai/stigmer/agentic/agentexecution/v1/invocation_pb.d.ts +210 -0
  40. package/ai/stigmer/agentic/agentexecution/v1/invocation_pb.js +25 -0
  41. package/ai/stigmer/agentic/agentexecution/v1/invocation_pb.js.map +1 -0
  42. package/ai/stigmer/agentic/agentexecution/v1/io_pb.d.ts +17 -0
  43. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js +1 -1
  44. package/ai/stigmer/agentic/agentexecution/v1/io_pb.js.map +1 -1
  45. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.d.ts +13 -1
  46. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js +1 -1
  47. package/ai/stigmer/agentic/agentexecution/v1/spec_pb.js.map +1 -1
  48. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.d.ts +33 -1
  49. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js +2 -1
  50. package/ai/stigmer/agentic/agentexecution/v1/usage_pb.js.map +1 -1
  51. package/ai/stigmer/agentic/agentshare/v1/spec_pb.d.ts +27 -0
  52. package/ai/stigmer/agentic/agentshare/v1/spec_pb.js +2 -1
  53. package/ai/stigmer/agentic/agentshare/v1/spec_pb.js.map +1 -1
  54. package/ai/stigmer/agentic/mcpserver/v1/spec_pb.d.ts +26 -0
  55. package/ai/stigmer/agentic/mcpserver/v1/spec_pb.js.map +1 -1
  56. package/ai/stigmer/agentic/schedule/v1/api_pb.d.ts +68 -0
  57. package/ai/stigmer/agentic/schedule/v1/api_pb.js +18 -0
  58. package/ai/stigmer/agentic/schedule/v1/api_pb.js.map +1 -0
  59. package/ai/stigmer/agentic/schedule/v1/command_connect.d.ts +189 -0
  60. package/ai/stigmer/agentic/schedule/v1/command_connect.js +197 -0
  61. package/ai/stigmer/agentic/schedule/v1/command_connect.js.map +1 -0
  62. package/ai/stigmer/agentic/schedule/v1/command_pb.d.ts +187 -0
  63. package/ai/stigmer/agentic/schedule/v1/command_pb.js +19 -0
  64. package/ai/stigmer/agentic/schedule/v1/command_pb.js.map +1 -0
  65. package/ai/stigmer/agentic/schedule/v1/io_pb.d.ts +387 -0
  66. package/ai/stigmer/agentic/schedule/v1/io_pb.js +150 -0
  67. package/ai/stigmer/agentic/schedule/v1/io_pb.js.map +1 -0
  68. package/ai/stigmer/agentic/schedule/v1/query_connect.d.ts +103 -0
  69. package/ai/stigmer/agentic/schedule/v1/query_connect.js +112 -0
  70. package/ai/stigmer/agentic/schedule/v1/query_connect.js.map +1 -0
  71. package/ai/stigmer/agentic/schedule/v1/query_pb.d.ts +103 -0
  72. package/ai/stigmer/agentic/schedule/v1/query_pb.js +25 -0
  73. package/ai/stigmer/agentic/schedule/v1/query_pb.js.map +1 -0
  74. package/ai/stigmer/agentic/schedule/v1/spec_pb.d.ts +132 -0
  75. package/ai/stigmer/agentic/schedule/v1/spec_pb.js +16 -0
  76. package/ai/stigmer/agentic/schedule/v1/spec_pb.js.map +1 -0
  77. package/ai/stigmer/agentic/schedule/v1/status_pb.d.ts +85 -0
  78. package/ai/stigmer/agentic/schedule/v1/status_pb.js +16 -0
  79. package/ai/stigmer/agentic/schedule/v1/status_pb.js.map +1 -0
  80. package/ai/stigmer/agentic/session/v1/enum_pb.d.ts +10 -8
  81. package/ai/stigmer/agentic/session/v1/enum_pb.js +10 -8
  82. package/ai/stigmer/agentic/session/v1/enum_pb.js.map +1 -1
  83. package/ai/stigmer/agentic/session/v1/spec_pb.d.ts +7 -5
  84. package/ai/stigmer/agentic/session/v1/spec_pb.js.map +1 -1
  85. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.d.ts +123 -104
  86. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js +4 -7
  87. package/ai/stigmer/agentic/workflow/v1/tasks/agent_call_pb.js.map +1 -1
  88. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.d.ts +17 -0
  89. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js +1 -1
  90. package/ai/stigmer/agentic/workflowexecution/v1/io_pb.js.map +1 -1
  91. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.d.ts +6 -0
  92. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js +7 -1
  93. package/ai/stigmer/commons/apiresource/apiresourcekind/api_resource_kind_pb.js.map +1 -1
  94. package/ai/stigmer/iam/v1/enum_pb.d.ts +31 -2
  95. package/ai/stigmer/iam/v1/enum_pb.js +30 -1
  96. package/ai/stigmer/iam/v1/enum_pb.js.map +1 -1
  97. package/ai/stigmer/platform/v1/server_info_connect.d.ts +6 -4
  98. package/ai/stigmer/platform/v1/server_info_connect.js +6 -4
  99. package/ai/stigmer/platform/v1/server_info_connect.js.map +1 -1
  100. package/ai/stigmer/platform/v1/server_info_pb.d.ts +53 -4
  101. package/ai/stigmer/platform/v1/server_info_pb.js +7 -2
  102. package/ai/stigmer/platform/v1/server_info_pb.js.map +1 -1
  103. package/package.json +1 -1
@@ -0,0 +1,189 @@
1
+ /**
2
+ * ScheduleCommandController handles write operations for schedules.
3
+ *
4
+ * @generated from service ai.stigmer.agentic.schedule.v1.ScheduleCommandController
5
+ */
6
+ export declare const ScheduleCommandController: {
7
+ readonly typeName: "ai.stigmer.agentic.schedule.v1.ScheduleCommandController";
8
+ readonly methods: {
9
+ /**
10
+ * Create or update a schedule.
11
+ *
12
+ * @internal
13
+ * The authorization and state-operation are determined depending on
14
+ * whether the schedule is going to be created or updated, resolved as
15
+ * part of request execution. Status is preserved verbatim across
16
+ * apply-as-update (the AgentChannel decision-004 posture): status is
17
+ * written only by the scheduling runtime and by the explicit resume
18
+ * command, and a routine manifest apply must never reset the failure
19
+ * streak or un-pause a platform-paused schedule (DD-008 D7 / DD-009
20
+ * pinned behaviors / DD-013 D-D).
21
+ *
22
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.apply
23
+ */
24
+ readonly apply: {
25
+ readonly name: "apply";
26
+ readonly I: any;
27
+ readonly O: any;
28
+ readonly kind: any;
29
+ };
30
+ /**
31
+ * Create a schedule.
32
+ *
33
+ * Scheduling an agent is a billing-affecting decision: every fire
34
+ * creates an execution that consumes the schedule-owning
35
+ * organization's credits, unattended.
36
+ *
37
+ * @internal
38
+ * Authorization: requires can_edit on the REFERENCED AGENT
39
+ * (spec.agent.agent_ref), checked in-handler — the AgentChannel /
40
+ * same-org AgentShare Phase A bar (DD-009 C-6): whoever may edit the
41
+ * agent may schedule it; there is deliberately no org-level
42
+ * can_create_schedule permission. Standard org-scoped create tuples
43
+ * (owner = creator); no visibility tuples (the kind has no visibility
44
+ * block). Invariant enforced here: metadata.org must equal
45
+ * spec.agent.agent_ref.org.
46
+ *
47
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.create
48
+ */
49
+ readonly create: {
50
+ readonly name: "create";
51
+ readonly I: any;
52
+ readonly O: any;
53
+ readonly kind: any;
54
+ };
55
+ /**
56
+ * Update an existing schedule.
57
+ *
58
+ * Replaces the spec wholesale. The slug, the referenced agent, and the
59
+ * target arm are immutable; cron, time zone, enablement, and the
60
+ * message may all change. Status (firing observations, the platform
61
+ * pause) is never touched by updates — use resume to clear a platform
62
+ * pause.
63
+ *
64
+ * @internal
65
+ * Authorization: requires can_edit permission on the schedule.
66
+ * agent_ref immutability is a consent-bar guarantee, not convenience
67
+ * (DD-009 C-7): create's bar is can_edit on the REFERENCED agent, and
68
+ * a repointing update would let a schedule owner drive an agent they
69
+ * may not edit — the AgentChannel rule for the AgentChannel reason.
70
+ * Target-arm immutability (an agent schedule cannot become a workflow
71
+ * schedule once that arm exists) is enforced in-handler: the two
72
+ * targets enter different execution pipelines. Update deliberately
73
+ * does NOT clear a platform auto-pause (DD-013 D-D, superseding the
74
+ * DD-008 D7 ensure-on-mutate sketch): apply routes through this same
75
+ * handler, so any update-clears-pause behavior would let a routine
76
+ * GitOps re-apply silently un-pause a failing schedule. resume is the
77
+ * one clearing path.
78
+ *
79
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.update
80
+ */
81
+ readonly update: {
82
+ readonly name: "update";
83
+ readonly I: any;
84
+ readonly O: any;
85
+ readonly kind: any;
86
+ };
87
+ /**
88
+ * Delete a schedule.
89
+ *
90
+ * Firing stops permanently. Executions created by past fires are
91
+ * untouched. To stop firing while keeping the schedule and its
92
+ * history, disable it (enabled=false) instead.
93
+ *
94
+ * @internal
95
+ * Authorization: requires can_delete permission on the schedule. The
96
+ * referenced agent is untouched. The Temporal artifact teardown
97
+ * (best-effort, AFTER the row delete — DD-008 D9) arrives with the
98
+ * clock; until then delete is the row alone, and an orphaned artifact
99
+ * is harmless by construction (fire-time revalidation no-ops it).
100
+ *
101
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.delete
102
+ */
103
+ readonly delete: {
104
+ readonly name: "delete";
105
+ readonly I: any;
106
+ readonly O: any;
107
+ readonly kind: any;
108
+ };
109
+ /**
110
+ * Resume a schedule the platform paused after repeated run failures.
111
+ *
112
+ * Clears status.paused_reason, resets status.consecutive_failures,
113
+ * and re-arms the clock. Resuming a schedule that is not paused
114
+ * succeeds and changes nothing. A disabled schedule stays disabled:
115
+ * resume clears the platform's pause, not the owner's switch
116
+ * (spec.enabled).
117
+ *
118
+ * @internal
119
+ * Authorization: requires can_edit permission on the schedule — the
120
+ * update bar; resuming does not change which agent runs, so it does
121
+ * not re-open create's consent bar (DD-009 C-6). This command is
122
+ * deliberately the ONLY path that clears a platform auto-pause
123
+ * (DD-013 D-D): apply and update preserve status byte-for-byte, so a
124
+ * routine manifest apply can never silently un-pause a failing
125
+ * schedule. The cloud handler loads before authorizing (#224: a
126
+ * missing schedule answers NOT_FOUND, not PERMISSION_DENIED) and
127
+ * patches status leaves rather than saving the row — the tick is a
128
+ * concurrent status writer. OSS excludes the authorization step, per
129
+ * its recorded single-user posture.
130
+ *
131
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.resume
132
+ */
133
+ readonly resume: {
134
+ readonly name: "resume";
135
+ readonly I: any;
136
+ readonly O: any;
137
+ readonly kind: any;
138
+ };
139
+ /**
140
+ * Trigger a schedule to fire once, immediately, and answer with the
141
+ * run's real outcome.
142
+ *
143
+ * The manual fire runs synchronously through the standard execution
144
+ * create pipeline — every launch gate runs — and the result names what
145
+ * happened: the created execution's id, or the refusing gate's own
146
+ * copy verbatim. status.last_fire_at and status.last_execution_id
147
+ * record a started run. Manual fires do NOT feed the failure streak —
148
+ * the streak is the unattended (cron) health signal, and a test fire
149
+ * of a broken schedule must not race its owner to the pause threshold.
150
+ *
151
+ * A disabled schedule refuses (enable it first). A platform-paused
152
+ * schedule MAY be triggered — a test fire is exactly how an owner
153
+ * verifies a fix before resuming; resume remains the one path that
154
+ * clears the pause.
155
+ *
156
+ * @internal
157
+ * Authorization: requires can_edit permission on the schedule — the
158
+ * update bar (DD-014 D-A). Project DD-017 D-5/D-6 amends DD-014: the
159
+ * artifact round-trip is gone for manual fires (it made the fire
160
+ * asynchronous, so the RPC answered before the launch gates ran — a
161
+ * false "run started" beside a climbing failure counter). Cron fires
162
+ * keep the tracked artifact tick unchanged. The disabled refusal
163
+ * SURVIVES for a different reason than DD-014 D-B recorded:
164
+ * ScheduleBlueprintAccess requires spec.enabled at the create gate AND
165
+ * the mid-run sandbox read predicate, so a disabled-schedule run would
166
+ * die mid-execution after billing side effects (consoles offer
167
+ * "Enable & run now" instead; the fire-legitimacy model that would
168
+ * lift this is DD-017's named follow-up). Two-level contract: a gRPC
169
+ * error means the trigger itself was refused (disabled →
170
+ * FAILED_PRECONDITION with the byte-pinned copy, missing → NOT_FOUND
171
+ * before authorize, #224); a gRPC success means the fire happened and
172
+ * ScheduleTriggerResult names the run's outcome — a deterministically
173
+ * refused run is a successful trigger honestly reported, never an
174
+ * exception. The handler stamps last_fire_at/last_execution_id and
175
+ * writes the fire-ledger row (origin=manual) because the tick is not
176
+ * in the path to do it; status writes ride updateFields, never save()
177
+ * (DD-010 D-B). OSS mirrors the semantics; it excludes the
178
+ * authorization step per its recorded single-user posture.
179
+ *
180
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.trigger
181
+ */
182
+ readonly trigger: {
183
+ readonly name: "trigger";
184
+ readonly I: any;
185
+ readonly O: any;
186
+ readonly kind: any;
187
+ };
188
+ };
189
+ };
@@ -0,0 +1,197 @@
1
+ // @generated by protoc-gen-connect-es v1.6.1 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/agentic/schedule/v1/command.proto (package ai.stigmer.agentic.schedule.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Schedule } from "./api_pbjs";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ import { ScheduleId, ScheduleTriggerResult } from "./io_pbjs";
8
+ /**
9
+ * ScheduleCommandController handles write operations for schedules.
10
+ *
11
+ * @generated from service ai.stigmer.agentic.schedule.v1.ScheduleCommandController
12
+ */
13
+ export const ScheduleCommandController = {
14
+ typeName: "ai.stigmer.agentic.schedule.v1.ScheduleCommandController",
15
+ methods: {
16
+ /**
17
+ * Create or update a schedule.
18
+ *
19
+ * @internal
20
+ * The authorization and state-operation are determined depending on
21
+ * whether the schedule is going to be created or updated, resolved as
22
+ * part of request execution. Status is preserved verbatim across
23
+ * apply-as-update (the AgentChannel decision-004 posture): status is
24
+ * written only by the scheduling runtime and by the explicit resume
25
+ * command, and a routine manifest apply must never reset the failure
26
+ * streak or un-pause a platform-paused schedule (DD-008 D7 / DD-009
27
+ * pinned behaviors / DD-013 D-D).
28
+ *
29
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.apply
30
+ */
31
+ apply: {
32
+ name: "apply",
33
+ I: Schedule,
34
+ O: Schedule,
35
+ kind: MethodKind.Unary,
36
+ },
37
+ /**
38
+ * Create a schedule.
39
+ *
40
+ * Scheduling an agent is a billing-affecting decision: every fire
41
+ * creates an execution that consumes the schedule-owning
42
+ * organization's credits, unattended.
43
+ *
44
+ * @internal
45
+ * Authorization: requires can_edit on the REFERENCED AGENT
46
+ * (spec.agent.agent_ref), checked in-handler — the AgentChannel /
47
+ * same-org AgentShare Phase A bar (DD-009 C-6): whoever may edit the
48
+ * agent may schedule it; there is deliberately no org-level
49
+ * can_create_schedule permission. Standard org-scoped create tuples
50
+ * (owner = creator); no visibility tuples (the kind has no visibility
51
+ * block). Invariant enforced here: metadata.org must equal
52
+ * spec.agent.agent_ref.org.
53
+ *
54
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.create
55
+ */
56
+ create: {
57
+ name: "create",
58
+ I: Schedule,
59
+ O: Schedule,
60
+ kind: MethodKind.Unary,
61
+ },
62
+ /**
63
+ * Update an existing schedule.
64
+ *
65
+ * Replaces the spec wholesale. The slug, the referenced agent, and the
66
+ * target arm are immutable; cron, time zone, enablement, and the
67
+ * message may all change. Status (firing observations, the platform
68
+ * pause) is never touched by updates — use resume to clear a platform
69
+ * pause.
70
+ *
71
+ * @internal
72
+ * Authorization: requires can_edit permission on the schedule.
73
+ * agent_ref immutability is a consent-bar guarantee, not convenience
74
+ * (DD-009 C-7): create's bar is can_edit on the REFERENCED agent, and
75
+ * a repointing update would let a schedule owner drive an agent they
76
+ * may not edit — the AgentChannel rule for the AgentChannel reason.
77
+ * Target-arm immutability (an agent schedule cannot become a workflow
78
+ * schedule once that arm exists) is enforced in-handler: the two
79
+ * targets enter different execution pipelines. Update deliberately
80
+ * does NOT clear a platform auto-pause (DD-013 D-D, superseding the
81
+ * DD-008 D7 ensure-on-mutate sketch): apply routes through this same
82
+ * handler, so any update-clears-pause behavior would let a routine
83
+ * GitOps re-apply silently un-pause a failing schedule. resume is the
84
+ * one clearing path.
85
+ *
86
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.update
87
+ */
88
+ update: {
89
+ name: "update",
90
+ I: Schedule,
91
+ O: Schedule,
92
+ kind: MethodKind.Unary,
93
+ },
94
+ /**
95
+ * Delete a schedule.
96
+ *
97
+ * Firing stops permanently. Executions created by past fires are
98
+ * untouched. To stop firing while keeping the schedule and its
99
+ * history, disable it (enabled=false) instead.
100
+ *
101
+ * @internal
102
+ * Authorization: requires can_delete permission on the schedule. The
103
+ * referenced agent is untouched. The Temporal artifact teardown
104
+ * (best-effort, AFTER the row delete — DD-008 D9) arrives with the
105
+ * clock; until then delete is the row alone, and an orphaned artifact
106
+ * is harmless by construction (fire-time revalidation no-ops it).
107
+ *
108
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.delete
109
+ */
110
+ delete: {
111
+ name: "delete",
112
+ I: ScheduleId,
113
+ O: Schedule,
114
+ kind: MethodKind.Unary,
115
+ },
116
+ /**
117
+ * Resume a schedule the platform paused after repeated run failures.
118
+ *
119
+ * Clears status.paused_reason, resets status.consecutive_failures,
120
+ * and re-arms the clock. Resuming a schedule that is not paused
121
+ * succeeds and changes nothing. A disabled schedule stays disabled:
122
+ * resume clears the platform's pause, not the owner's switch
123
+ * (spec.enabled).
124
+ *
125
+ * @internal
126
+ * Authorization: requires can_edit permission on the schedule — the
127
+ * update bar; resuming does not change which agent runs, so it does
128
+ * not re-open create's consent bar (DD-009 C-6). This command is
129
+ * deliberately the ONLY path that clears a platform auto-pause
130
+ * (DD-013 D-D): apply and update preserve status byte-for-byte, so a
131
+ * routine manifest apply can never silently un-pause a failing
132
+ * schedule. The cloud handler loads before authorizing (#224: a
133
+ * missing schedule answers NOT_FOUND, not PERMISSION_DENIED) and
134
+ * patches status leaves rather than saving the row — the tick is a
135
+ * concurrent status writer. OSS excludes the authorization step, per
136
+ * its recorded single-user posture.
137
+ *
138
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.resume
139
+ */
140
+ resume: {
141
+ name: "resume",
142
+ I: ScheduleId,
143
+ O: Schedule,
144
+ kind: MethodKind.Unary,
145
+ },
146
+ /**
147
+ * Trigger a schedule to fire once, immediately, and answer with the
148
+ * run's real outcome.
149
+ *
150
+ * The manual fire runs synchronously through the standard execution
151
+ * create pipeline — every launch gate runs — and the result names what
152
+ * happened: the created execution's id, or the refusing gate's own
153
+ * copy verbatim. status.last_fire_at and status.last_execution_id
154
+ * record a started run. Manual fires do NOT feed the failure streak —
155
+ * the streak is the unattended (cron) health signal, and a test fire
156
+ * of a broken schedule must not race its owner to the pause threshold.
157
+ *
158
+ * A disabled schedule refuses (enable it first). A platform-paused
159
+ * schedule MAY be triggered — a test fire is exactly how an owner
160
+ * verifies a fix before resuming; resume remains the one path that
161
+ * clears the pause.
162
+ *
163
+ * @internal
164
+ * Authorization: requires can_edit permission on the schedule — the
165
+ * update bar (DD-014 D-A). Project DD-017 D-5/D-6 amends DD-014: the
166
+ * artifact round-trip is gone for manual fires (it made the fire
167
+ * asynchronous, so the RPC answered before the launch gates ran — a
168
+ * false "run started" beside a climbing failure counter). Cron fires
169
+ * keep the tracked artifact tick unchanged. The disabled refusal
170
+ * SURVIVES for a different reason than DD-014 D-B recorded:
171
+ * ScheduleBlueprintAccess requires spec.enabled at the create gate AND
172
+ * the mid-run sandbox read predicate, so a disabled-schedule run would
173
+ * die mid-execution after billing side effects (consoles offer
174
+ * "Enable & run now" instead; the fire-legitimacy model that would
175
+ * lift this is DD-017's named follow-up). Two-level contract: a gRPC
176
+ * error means the trigger itself was refused (disabled →
177
+ * FAILED_PRECONDITION with the byte-pinned copy, missing → NOT_FOUND
178
+ * before authorize, #224); a gRPC success means the fire happened and
179
+ * ScheduleTriggerResult names the run's outcome — a deterministically
180
+ * refused run is a successful trigger honestly reported, never an
181
+ * exception. The handler stamps last_fire_at/last_execution_id and
182
+ * writes the fire-ledger row (origin=manual) because the tick is not
183
+ * in the path to do it; status writes ride updateFields, never save()
184
+ * (DD-010 D-B). OSS mirrors the semantics; it excludes the
185
+ * authorization step per its recorded single-user posture.
186
+ *
187
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.trigger
188
+ */
189
+ trigger: {
190
+ name: "trigger",
191
+ I: ScheduleId,
192
+ O: ScheduleTriggerResult,
193
+ kind: MethodKind.Unary,
194
+ },
195
+ }
196
+ };
197
+ //# sourceMappingURL=command_connect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command_connect.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/schedule/v1/command_connect.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,4HAA4H;AAC5H,oBAAoB;AACpB,cAAc;AAEd,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAE9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,QAAQ,EAAE,0DAA0D;IACpE,OAAO,EAAE;QACP;;;;;;;;;;;;;;WAcG;QACH,KAAK,EAAE;YACL,IAAI,EAAE,OAAO;YACb,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;WAkBG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;WAyBG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;WAeG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,UAAU;YACb,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;WAuBG;QACH,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,CAAC,EAAE,UAAU;YACb,CAAC,EAAE,QAAQ;YACX,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;QACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA0CG;QACH,OAAO,EAAE;YACP,IAAI,EAAE,SAAS;YACf,CAAC,EAAE,UAAU;YACb,CAAC,EAAE,qBAAqB;YACxB,IAAI,EAAE,UAAU,CAAC,KAAK;SACvB;KACF;CACO,CAAC"}
@@ -0,0 +1,187 @@
1
+ import type { GenFile, GenService } from "@bufbuild/protobuf/codegenv1";
2
+ import type { ScheduleSchema } from "./api_pb.js";
3
+ import type { ScheduleIdSchema, ScheduleTriggerResultSchema } from "./io_pb.js";
4
+ /**
5
+ * Describes the file ai/stigmer/agentic/schedule/v1/command.proto.
6
+ */
7
+ export declare const file_ai_stigmer_agentic_schedule_v1_command: GenFile;
8
+ /**
9
+ * ScheduleCommandController handles write operations for schedules.
10
+ *
11
+ * @generated from service ai.stigmer.agentic.schedule.v1.ScheduleCommandController
12
+ */
13
+ export declare const ScheduleCommandController: GenService<{
14
+ /**
15
+ * Create or update a schedule.
16
+ *
17
+ * @internal
18
+ * The authorization and state-operation are determined depending on
19
+ * whether the schedule is going to be created or updated, resolved as
20
+ * part of request execution. Status is preserved verbatim across
21
+ * apply-as-update (the AgentChannel decision-004 posture): status is
22
+ * written only by the scheduling runtime and by the explicit resume
23
+ * command, and a routine manifest apply must never reset the failure
24
+ * streak or un-pause a platform-paused schedule (DD-008 D7 / DD-009
25
+ * pinned behaviors / DD-013 D-D).
26
+ *
27
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.apply
28
+ */
29
+ apply: {
30
+ methodKind: "unary";
31
+ input: typeof ScheduleSchema;
32
+ output: typeof ScheduleSchema;
33
+ };
34
+ /**
35
+ * Create a schedule.
36
+ *
37
+ * Scheduling an agent is a billing-affecting decision: every fire
38
+ * creates an execution that consumes the schedule-owning
39
+ * organization's credits, unattended.
40
+ *
41
+ * @internal
42
+ * Authorization: requires can_edit on the REFERENCED AGENT
43
+ * (spec.agent.agent_ref), checked in-handler — the AgentChannel /
44
+ * same-org AgentShare Phase A bar (DD-009 C-6): whoever may edit the
45
+ * agent may schedule it; there is deliberately no org-level
46
+ * can_create_schedule permission. Standard org-scoped create tuples
47
+ * (owner = creator); no visibility tuples (the kind has no visibility
48
+ * block). Invariant enforced here: metadata.org must equal
49
+ * spec.agent.agent_ref.org.
50
+ *
51
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.create
52
+ */
53
+ create: {
54
+ methodKind: "unary";
55
+ input: typeof ScheduleSchema;
56
+ output: typeof ScheduleSchema;
57
+ };
58
+ /**
59
+ * Update an existing schedule.
60
+ *
61
+ * Replaces the spec wholesale. The slug, the referenced agent, and the
62
+ * target arm are immutable; cron, time zone, enablement, and the
63
+ * message may all change. Status (firing observations, the platform
64
+ * pause) is never touched by updates — use resume to clear a platform
65
+ * pause.
66
+ *
67
+ * @internal
68
+ * Authorization: requires can_edit permission on the schedule.
69
+ * agent_ref immutability is a consent-bar guarantee, not convenience
70
+ * (DD-009 C-7): create's bar is can_edit on the REFERENCED agent, and
71
+ * a repointing update would let a schedule owner drive an agent they
72
+ * may not edit — the AgentChannel rule for the AgentChannel reason.
73
+ * Target-arm immutability (an agent schedule cannot become a workflow
74
+ * schedule once that arm exists) is enforced in-handler: the two
75
+ * targets enter different execution pipelines. Update deliberately
76
+ * does NOT clear a platform auto-pause (DD-013 D-D, superseding the
77
+ * DD-008 D7 ensure-on-mutate sketch): apply routes through this same
78
+ * handler, so any update-clears-pause behavior would let a routine
79
+ * GitOps re-apply silently un-pause a failing schedule. resume is the
80
+ * one clearing path.
81
+ *
82
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.update
83
+ */
84
+ update: {
85
+ methodKind: "unary";
86
+ input: typeof ScheduleSchema;
87
+ output: typeof ScheduleSchema;
88
+ };
89
+ /**
90
+ * Delete a schedule.
91
+ *
92
+ * Firing stops permanently. Executions created by past fires are
93
+ * untouched. To stop firing while keeping the schedule and its
94
+ * history, disable it (enabled=false) instead.
95
+ *
96
+ * @internal
97
+ * Authorization: requires can_delete permission on the schedule. The
98
+ * referenced agent is untouched. The Temporal artifact teardown
99
+ * (best-effort, AFTER the row delete — DD-008 D9) arrives with the
100
+ * clock; until then delete is the row alone, and an orphaned artifact
101
+ * is harmless by construction (fire-time revalidation no-ops it).
102
+ *
103
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.delete
104
+ */
105
+ delete: {
106
+ methodKind: "unary";
107
+ input: typeof ScheduleIdSchema;
108
+ output: typeof ScheduleSchema;
109
+ };
110
+ /**
111
+ * Resume a schedule the platform paused after repeated run failures.
112
+ *
113
+ * Clears status.paused_reason, resets status.consecutive_failures,
114
+ * and re-arms the clock. Resuming a schedule that is not paused
115
+ * succeeds and changes nothing. A disabled schedule stays disabled:
116
+ * resume clears the platform's pause, not the owner's switch
117
+ * (spec.enabled).
118
+ *
119
+ * @internal
120
+ * Authorization: requires can_edit permission on the schedule — the
121
+ * update bar; resuming does not change which agent runs, so it does
122
+ * not re-open create's consent bar (DD-009 C-6). This command is
123
+ * deliberately the ONLY path that clears a platform auto-pause
124
+ * (DD-013 D-D): apply and update preserve status byte-for-byte, so a
125
+ * routine manifest apply can never silently un-pause a failing
126
+ * schedule. The cloud handler loads before authorizing (#224: a
127
+ * missing schedule answers NOT_FOUND, not PERMISSION_DENIED) and
128
+ * patches status leaves rather than saving the row — the tick is a
129
+ * concurrent status writer. OSS excludes the authorization step, per
130
+ * its recorded single-user posture.
131
+ *
132
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.resume
133
+ */
134
+ resume: {
135
+ methodKind: "unary";
136
+ input: typeof ScheduleIdSchema;
137
+ output: typeof ScheduleSchema;
138
+ };
139
+ /**
140
+ * Trigger a schedule to fire once, immediately, and answer with the
141
+ * run's real outcome.
142
+ *
143
+ * The manual fire runs synchronously through the standard execution
144
+ * create pipeline — every launch gate runs — and the result names what
145
+ * happened: the created execution's id, or the refusing gate's own
146
+ * copy verbatim. status.last_fire_at and status.last_execution_id
147
+ * record a started run. Manual fires do NOT feed the failure streak —
148
+ * the streak is the unattended (cron) health signal, and a test fire
149
+ * of a broken schedule must not race its owner to the pause threshold.
150
+ *
151
+ * A disabled schedule refuses (enable it first). A platform-paused
152
+ * schedule MAY be triggered — a test fire is exactly how an owner
153
+ * verifies a fix before resuming; resume remains the one path that
154
+ * clears the pause.
155
+ *
156
+ * @internal
157
+ * Authorization: requires can_edit permission on the schedule — the
158
+ * update bar (DD-014 D-A). Project DD-017 D-5/D-6 amends DD-014: the
159
+ * artifact round-trip is gone for manual fires (it made the fire
160
+ * asynchronous, so the RPC answered before the launch gates ran — a
161
+ * false "run started" beside a climbing failure counter). Cron fires
162
+ * keep the tracked artifact tick unchanged. The disabled refusal
163
+ * SURVIVES for a different reason than DD-014 D-B recorded:
164
+ * ScheduleBlueprintAccess requires spec.enabled at the create gate AND
165
+ * the mid-run sandbox read predicate, so a disabled-schedule run would
166
+ * die mid-execution after billing side effects (consoles offer
167
+ * "Enable & run now" instead; the fire-legitimacy model that would
168
+ * lift this is DD-017's named follow-up). Two-level contract: a gRPC
169
+ * error means the trigger itself was refused (disabled →
170
+ * FAILED_PRECONDITION with the byte-pinned copy, missing → NOT_FOUND
171
+ * before authorize, #224); a gRPC success means the fire happened and
172
+ * ScheduleTriggerResult names the run's outcome — a deterministically
173
+ * refused run is a successful trigger honestly reported, never an
174
+ * exception. The handler stamps last_fire_at/last_execution_id and
175
+ * writes the fire-ledger row (origin=manual) because the tick is not
176
+ * in the path to do it; status writes ride updateFields, never save()
177
+ * (DD-010 D-B). OSS mirrors the semantics; it excludes the
178
+ * authorization step per its recorded single-user posture.
179
+ *
180
+ * @generated from rpc ai.stigmer.agentic.schedule.v1.ScheduleCommandController.trigger
181
+ */
182
+ trigger: {
183
+ methodKind: "unary";
184
+ input: typeof ScheduleIdSchema;
185
+ output: typeof ScheduleTriggerResultSchema;
186
+ };
187
+ }>;
@@ -0,0 +1,19 @@
1
+ // @generated by protoc-gen-es v2.2.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file ai/stigmer/agentic/schedule/v1/command.proto (package ai.stigmer.agentic.schedule.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
5
+ import { file_ai_stigmer_agentic_schedule_v1_api } from "./api_pb.js";
6
+ import { file_ai_stigmer_agentic_schedule_v1_io } from "./io_pb.js";
7
+ import { file_ai_stigmer_commons_apiresource_rpc_service_options } from "../../../commons/apiresource/rpc_service_options_pb.js";
8
+ import { file_ai_stigmer_commons_rpc_method_options } from "../../../commons/rpc/method_options_pb.js";
9
+ /**
10
+ * Describes the file ai/stigmer/agentic/schedule/v1/command.proto.
11
+ */
12
+ export const file_ai_stigmer_agentic_schedule_v1_command = /*@__PURE__*/ fileDesc("CixhaS9zdGlnbWVyL2FnZW50aWMvc2NoZWR1bGUvdjEvY29tbWFuZC5wcm90bxIeYWkuc3RpZ21lci5hZ2VudGljLnNjaGVkdWxlLnYxMsEGChlTY2hlZHVsZUNvbW1hbmRDb250cm9sbGVyElsKBWFwcGx5EiguYWkuc3RpZ21lci5hZ2VudGljLnNjaGVkdWxlLnYxLlNjaGVkdWxlGiguYWkuc3RpZ21lci5hZ2VudGljLnNjaGVkdWxlLnYxLlNjaGVkdWxlEmIKBmNyZWF0ZRIoLmFpLnN0aWdtZXIuYWdlbnRpYy5zY2hlZHVsZS52MS5TY2hlZHVsZRooLmFpLnN0aWdtZXIuYWdlbnRpYy5zY2hlZHVsZS52MS5TY2hlZHVsZSIE0LgYARKUAQoGdXBkYXRlEiguYWkuc3RpZ21lci5hZ2VudGljLnNjaGVkdWxlLnYxLlNjaGVkdWxlGiguYWkuc3RpZ21lci5hZ2VudGljLnNjaGVkdWxlLnYxLlNjaGVkdWxlIjbCuBgyCAIQOCILbWV0YWRhdGEuaWQqH3VuYXV0aG9yaXplZCB0byB1cGRhdGUgc2NoZWR1bGUSkAEKBmRlbGV0ZRIqLmFpLnN0aWdtZXIuYWdlbnRpYy5zY2hlZHVsZS52MS5TY2hlZHVsZUlkGiguYWkuc3RpZ21lci5hZ2VudGljLnNjaGVkdWxlLnYxLlNjaGVkdWxlIjDCuBgsCAMQOCIFdmFsdWUqH3VuYXV0aG9yaXplZCB0byBkZWxldGUgc2NoZWR1bGUSkAEKBnJlc3VtZRIqLmFpLnN0aWdtZXIuYWdlbnRpYy5zY2hlZHVsZS52MS5TY2hlZHVsZUlkGiguYWkuc3RpZ21lci5hZ2VudGljLnNjaGVkdWxlLnYxLlNjaGVkdWxlIjDCuBgsCAIQOCIFdmFsdWUqH3VuYXV0aG9yaXplZCB0byByZXN1bWUgc2NoZWR1bGUSnwEKB3RyaWdnZXISKi5haS5zdGlnbWVyLmFnZW50aWMuc2NoZWR1bGUudjEuU2NoZWR1bGVJZBo1LmFpLnN0aWdtZXIuYWdlbnRpYy5zY2hlZHVsZS52MS5TY2hlZHVsZVRyaWdnZXJSZXN1bHQiMcK4GC0IAhA4IgV2YWx1ZSogdW5hdXRob3JpemVkIHRvIHRyaWdnZXIgc2NoZWR1bGUaBKD/KzhiBnByb3RvMw", [file_ai_stigmer_agentic_schedule_v1_api, file_ai_stigmer_agentic_schedule_v1_io, file_ai_stigmer_commons_apiresource_rpc_service_options, file_ai_stigmer_commons_rpc_method_options]);
13
+ /**
14
+ * ScheduleCommandController handles write operations for schedules.
15
+ *
16
+ * @generated from service ai.stigmer.agentic.schedule.v1.ScheduleCommandController
17
+ */
18
+ export const ScheduleCommandController = /*@__PURE__*/ serviceDesc(file_ai_stigmer_agentic_schedule_v1_command, 0);
19
+ //# sourceMappingURL=command_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command_pb.js","sourceRoot":"","sources":["../../../../../../ai/stigmer/agentic/schedule/v1/command_pb.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4HAA4H;AAC5H,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,uCAAuC,EAAE,MAAM,aAAa,CAAC;AAEtE,OAAO,EAAE,sCAAsC,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,uDAAuD,EAAE,MAAM,wDAAwD,CAAC;AACjI,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AAEvG;;GAEG;AACH,MAAM,CAAC,MAAM,2CAA2C,GAAY,aAAa,CAC/E,QAAQ,CAAC,gtCAAgtC,EAAE,CAAC,uCAAuC,EAAE,sCAAsC,EAAE,uDAAuD,EAAE,0CAA0C,CAAC,CAAC,CAAC;AAEr5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GA8KjC,aAAa,CAChB,WAAW,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAC"}