@avallon-labs/mcp 36.6.0-staging.913 → 36.8.0-staging.916

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -54,5 +54,5 @@ function setupFetch() {
54
54
 
55
55
  // src/index.ts
56
56
  setupFetch();
57
- await import("./server-AI2JO577.js");
57
+ await import("./server-JS5C2M5M.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -2393,6 +2393,103 @@ var deleteSecret = async (secretId, options) => {
2393
2393
  headers: res.headers
2394
2394
  };
2395
2395
  };
2396
+ var getCreateScheduleUrl = () => {
2397
+ return `/v1/schedules`;
2398
+ };
2399
+ var createSchedule = async (createScheduleBody, options) => {
2400
+ const res = await fetch(getCreateScheduleUrl(), {
2401
+ ...options,
2402
+ method: "POST",
2403
+ headers: { "Content-Type": "application/json", ...options?.headers },
2404
+ body: JSON.stringify(createScheduleBody)
2405
+ });
2406
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
2407
+ const data = body ? JSON.parse(body) : {};
2408
+ return {
2409
+ data,
2410
+ status: res.status,
2411
+ headers: res.headers
2412
+ };
2413
+ };
2414
+ var getListSchedulesUrl = (params) => {
2415
+ const normalizedParams = new URLSearchParams();
2416
+ Object.entries(params || {}).forEach(([key, value]) => {
2417
+ if (value !== void 0) {
2418
+ if (typeof value === "object" && value !== null && !Array.isArray(value)) {
2419
+ for (const [sk, sv] of Object.entries(value)) {
2420
+ if (sv !== void 0) normalizedParams.append(`${key}[${sk}]`, String(sv));
2421
+ }
2422
+ } else {
2423
+ normalizedParams.append(key, value === null ? "null" : String(value));
2424
+ }
2425
+ }
2426
+ });
2427
+ const stringifiedParams = normalizedParams.toString();
2428
+ return stringifiedParams.length > 0 ? `/v1/schedules?${stringifiedParams}` : `/v1/schedules`;
2429
+ };
2430
+ var listSchedules = async (params, options) => {
2431
+ const res = await fetch(getListSchedulesUrl(params), {
2432
+ ...options,
2433
+ method: "GET"
2434
+ });
2435
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
2436
+ const data = body ? JSON.parse(body) : {};
2437
+ return {
2438
+ data,
2439
+ status: res.status,
2440
+ headers: res.headers
2441
+ };
2442
+ };
2443
+ var getGetScheduleUrl = (scheduleId) => {
2444
+ return `/v1/schedules/${scheduleId}`;
2445
+ };
2446
+ var getSchedule = async (scheduleId, options) => {
2447
+ const res = await fetch(getGetScheduleUrl(scheduleId), {
2448
+ ...options,
2449
+ method: "GET"
2450
+ });
2451
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
2452
+ const data = body ? JSON.parse(body) : {};
2453
+ return {
2454
+ data,
2455
+ status: res.status,
2456
+ headers: res.headers
2457
+ };
2458
+ };
2459
+ var getUpdateScheduleUrl = (scheduleId) => {
2460
+ return `/v1/schedules/${scheduleId}`;
2461
+ };
2462
+ var updateSchedule = async (scheduleId, updateScheduleBody, options) => {
2463
+ const res = await fetch(getUpdateScheduleUrl(scheduleId), {
2464
+ ...options,
2465
+ method: "PATCH",
2466
+ headers: { "Content-Type": "application/json", ...options?.headers },
2467
+ body: JSON.stringify(updateScheduleBody)
2468
+ });
2469
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
2470
+ const data = body ? JSON.parse(body) : {};
2471
+ return {
2472
+ data,
2473
+ status: res.status,
2474
+ headers: res.headers
2475
+ };
2476
+ };
2477
+ var getDeleteScheduleUrl = (scheduleId) => {
2478
+ return `/v1/schedules/${scheduleId}`;
2479
+ };
2480
+ var deleteSchedule = async (scheduleId, options) => {
2481
+ const res = await fetch(getDeleteScheduleUrl(scheduleId), {
2482
+ ...options,
2483
+ method: "DELETE"
2484
+ });
2485
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
2486
+ const data = body ? JSON.parse(body) : {};
2487
+ return {
2488
+ data,
2489
+ status: res.status,
2490
+ headers: res.headers
2491
+ };
2492
+ };
2396
2493
  var getCreateToolUrl = () => {
2397
2494
  return `/v1/tools`;
2398
2495
  };
@@ -4121,6 +4218,61 @@ var deleteSecretHandler = async (args) => {
4121
4218
  ]
4122
4219
  };
4123
4220
  };
4221
+ var createScheduleHandler = async (args) => {
4222
+ const res = await createSchedule(args.bodyParams);
4223
+ return {
4224
+ content: [
4225
+ {
4226
+ type: "text",
4227
+ text: JSON.stringify(res)
4228
+ }
4229
+ ]
4230
+ };
4231
+ };
4232
+ var listSchedulesHandler = async (args) => {
4233
+ const res = await listSchedules(args.queryParams);
4234
+ return {
4235
+ content: [
4236
+ {
4237
+ type: "text",
4238
+ text: JSON.stringify(res)
4239
+ }
4240
+ ]
4241
+ };
4242
+ };
4243
+ var getScheduleHandler = async (args) => {
4244
+ const res = await getSchedule(args.pathParams.scheduleId);
4245
+ return {
4246
+ content: [
4247
+ {
4248
+ type: "text",
4249
+ text: JSON.stringify(res)
4250
+ }
4251
+ ]
4252
+ };
4253
+ };
4254
+ var updateScheduleHandler = async (args) => {
4255
+ const res = await updateSchedule(args.pathParams.scheduleId, args.bodyParams);
4256
+ return {
4257
+ content: [
4258
+ {
4259
+ type: "text",
4260
+ text: JSON.stringify(res)
4261
+ }
4262
+ ]
4263
+ };
4264
+ };
4265
+ var deleteScheduleHandler = async (args) => {
4266
+ const res = await deleteSchedule(args.pathParams.scheduleId);
4267
+ return {
4268
+ content: [
4269
+ {
4270
+ type: "text",
4271
+ text: JSON.stringify(res)
4272
+ }
4273
+ ]
4274
+ };
4275
+ };
4124
4276
  var createToolHandler = async (args) => {
4125
4277
  const res = await createTool(args.bodyParams);
4126
4278
  return {
@@ -7560,7 +7712,8 @@ var GetProfileResponse = zod.object({
7560
7712
  "prompts:read",
7561
7713
  "prompts:write",
7562
7714
  "secrets:read",
7563
- "secrets:write"
7715
+ "secrets:write",
7716
+ "schedules:write"
7564
7717
  ])
7565
7718
  ),
7566
7719
  tenants: zod.object({
@@ -7700,6 +7853,276 @@ var DeleteSecretParams = zod.object({
7700
7853
  secretId: zod.string().uuid()
7701
7854
  });
7702
7855
  var DeleteSecretResponse = zod.object({});
7856
+ var createScheduleBodyRuleOneMinuteMin = 0;
7857
+ var createScheduleBodyRuleOneMinuteMax = 59;
7858
+ var createScheduleBodyRuleTwoHourMin = 0;
7859
+ var createScheduleBodyRuleTwoHourMax = 23;
7860
+ var createScheduleBodyRuleTwoMinuteMin = 0;
7861
+ var createScheduleBodyRuleTwoMinuteMax = 59;
7862
+ var createScheduleBodyRuleThreeWeekdayMax = 7;
7863
+ var createScheduleBodyRuleThreeHourMin = 0;
7864
+ var createScheduleBodyRuleThreeHourMax = 23;
7865
+ var createScheduleBodyRuleThreeMinuteMin = 0;
7866
+ var createScheduleBodyRuleThreeMinuteMax = 59;
7867
+ var createScheduleBodyNameMax = 200;
7868
+ var CreateScheduleBody = zod.object({
7869
+ action: zod.object({
7870
+ type: zod.literal("trigger_worker"),
7871
+ worker_id: zod.string().uuid(),
7872
+ scope: zod.union([
7873
+ zod.record(
7874
+ zod.string(),
7875
+ zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])
7876
+ ),
7877
+ zod.null()
7878
+ ]).optional().describe(
7879
+ "Scope of the runs this schedule creates. Omit or send null to run without artifacts."
7880
+ )
7881
+ }).describe("What the schedule does every time it fires"),
7882
+ rule: zod.union([
7883
+ zod.object({
7884
+ type: zod.literal("hourly"),
7885
+ minute: zod.number().min(createScheduleBodyRuleOneMinuteMin).max(createScheduleBodyRuleOneMinuteMax).describe("Minute, 0-59"),
7886
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
7887
+ }),
7888
+ zod.object({
7889
+ type: zod.literal("daily"),
7890
+ hour: zod.number().min(createScheduleBodyRuleTwoHourMin).max(createScheduleBodyRuleTwoHourMax).describe("Hour, 0-23"),
7891
+ minute: zod.number().min(createScheduleBodyRuleTwoMinuteMin).max(createScheduleBodyRuleTwoMinuteMax).describe("Minute, 0-59"),
7892
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
7893
+ }),
7894
+ zod.object({
7895
+ type: zod.literal("weekly"),
7896
+ weekday: zod.number().min(1).max(createScheduleBodyRuleThreeWeekdayMax).describe("ISO-8601 weekday, 1 = Monday through 7 = Sunday"),
7897
+ hour: zod.number().min(createScheduleBodyRuleThreeHourMin).max(createScheduleBodyRuleThreeHourMax).describe("Hour, 0-23"),
7898
+ minute: zod.number().min(createScheduleBodyRuleThreeMinuteMin).max(createScheduleBodyRuleThreeMinuteMax).describe("Minute, 0-59"),
7899
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
7900
+ })
7901
+ ]).describe("When the schedule fires, in the given time zone"),
7902
+ name: zod.string().min(1).max(createScheduleBodyNameMax).optional().describe('Human-readable name, e.g. "Nightly claim sweep"'),
7903
+ enabled: zod.boolean().optional().describe(
7904
+ "Whether the schedule starts firing right away. Defaults to true."
7905
+ )
7906
+ });
7907
+ var listSchedulesQueryCountDefault = 50;
7908
+ var listSchedulesQueryCountMax = 100;
7909
+ var listSchedulesQueryOffsetDefault = 0;
7910
+ var listSchedulesQueryOffsetMin = 0;
7911
+ var listSchedulesQuerySortByDefault = `created_at`;
7912
+ var listSchedulesQuerySortOrderDefault = `asc`;
7913
+ var ListSchedulesQueryParams = zod.object({
7914
+ worker_id: zod.string().uuid().optional().describe("Only schedules that trigger this worker"),
7915
+ count: zod.number().min(1).max(listSchedulesQueryCountMax).default(listSchedulesQueryCountDefault),
7916
+ offset: zod.number().min(listSchedulesQueryOffsetMin).default(listSchedulesQueryOffsetDefault),
7917
+ sort_by: zod.enum(["created_at", "next_run_at"]).default(listSchedulesQuerySortByDefault),
7918
+ sort_order: zod.enum(["asc", "desc"]).default(listSchedulesQuerySortOrderDefault)
7919
+ });
7920
+ var listSchedulesResponseRuleOneMinuteMin = 0;
7921
+ var listSchedulesResponseRuleOneMinuteMax = 59;
7922
+ var listSchedulesResponseRuleTwoHourMin = 0;
7923
+ var listSchedulesResponseRuleTwoHourMax = 23;
7924
+ var listSchedulesResponseRuleTwoMinuteMin = 0;
7925
+ var listSchedulesResponseRuleTwoMinuteMax = 59;
7926
+ var listSchedulesResponseRuleThreeWeekdayMax = 7;
7927
+ var listSchedulesResponseRuleThreeHourMin = 0;
7928
+ var listSchedulesResponseRuleThreeHourMax = 23;
7929
+ var listSchedulesResponseRuleThreeMinuteMin = 0;
7930
+ var listSchedulesResponseRuleThreeMinuteMax = 59;
7931
+ var ListSchedulesResponseItem = zod.object({
7932
+ id: zod.string().describe("Unique identifier for the schedule"),
7933
+ name: zod.union([zod.string(), zod.null()]).describe("Optional human-readable name"),
7934
+ action: zod.object({
7935
+ type: zod.literal("trigger_worker"),
7936
+ worker_id: zod.string().uuid(),
7937
+ scope: zod.union([
7938
+ zod.record(
7939
+ zod.string(),
7940
+ zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])
7941
+ ),
7942
+ zod.null()
7943
+ ]).optional().describe(
7944
+ "Scope of the runs this schedule creates. Omit or send null to run without artifacts."
7945
+ )
7946
+ }).describe("What the schedule does every time it fires"),
7947
+ rule: zod.union([
7948
+ zod.object({
7949
+ type: zod.literal("hourly"),
7950
+ minute: zod.number().min(listSchedulesResponseRuleOneMinuteMin).max(listSchedulesResponseRuleOneMinuteMax).describe("Minute, 0-59"),
7951
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
7952
+ }),
7953
+ zod.object({
7954
+ type: zod.literal("daily"),
7955
+ hour: zod.number().min(listSchedulesResponseRuleTwoHourMin).max(listSchedulesResponseRuleTwoHourMax).describe("Hour, 0-23"),
7956
+ minute: zod.number().min(listSchedulesResponseRuleTwoMinuteMin).max(listSchedulesResponseRuleTwoMinuteMax).describe("Minute, 0-59"),
7957
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
7958
+ }),
7959
+ zod.object({
7960
+ type: zod.literal("weekly"),
7961
+ weekday: zod.number().min(1).max(listSchedulesResponseRuleThreeWeekdayMax).describe("ISO-8601 weekday, 1 = Monday through 7 = Sunday"),
7962
+ hour: zod.number().min(listSchedulesResponseRuleThreeHourMin).max(listSchedulesResponseRuleThreeHourMax).describe("Hour, 0-23"),
7963
+ minute: zod.number().min(listSchedulesResponseRuleThreeMinuteMin).max(listSchedulesResponseRuleThreeMinuteMax).describe("Minute, 0-59"),
7964
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
7965
+ })
7966
+ ]).describe("When the schedule fires, in the given time zone"),
7967
+ enabled: zod.boolean().describe("Whether the schedule currently fires. Disabled never fires."),
7968
+ next_run_at: zod.union([zod.string().datetime({}), zod.null()]).describe("When the schedule fires next, in UTC. Null while disabled."),
7969
+ created_by: zod.string().describe("Actor that created the schedule"),
7970
+ created_at: zod.string().datetime({}).describe("Creation timestamp"),
7971
+ updated_at: zod.string().datetime({}).describe("Last update timestamp")
7972
+ });
7973
+ var ListSchedulesResponse = zod.array(ListSchedulesResponseItem);
7974
+ var GetScheduleParams = zod.object({
7975
+ scheduleId: zod.string().uuid()
7976
+ });
7977
+ var getScheduleResponseRuleOneMinuteMin = 0;
7978
+ var getScheduleResponseRuleOneMinuteMax = 59;
7979
+ var getScheduleResponseRuleTwoHourMin = 0;
7980
+ var getScheduleResponseRuleTwoHourMax = 23;
7981
+ var getScheduleResponseRuleTwoMinuteMin = 0;
7982
+ var getScheduleResponseRuleTwoMinuteMax = 59;
7983
+ var getScheduleResponseRuleThreeWeekdayMax = 7;
7984
+ var getScheduleResponseRuleThreeHourMin = 0;
7985
+ var getScheduleResponseRuleThreeHourMax = 23;
7986
+ var getScheduleResponseRuleThreeMinuteMin = 0;
7987
+ var getScheduleResponseRuleThreeMinuteMax = 59;
7988
+ var GetScheduleResponse = zod.object({
7989
+ id: zod.string().describe("Unique identifier for the schedule"),
7990
+ name: zod.union([zod.string(), zod.null()]).describe("Optional human-readable name"),
7991
+ action: zod.object({
7992
+ type: zod.literal("trigger_worker"),
7993
+ worker_id: zod.string().uuid(),
7994
+ scope: zod.union([
7995
+ zod.record(
7996
+ zod.string(),
7997
+ zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])
7998
+ ),
7999
+ zod.null()
8000
+ ]).optional().describe(
8001
+ "Scope of the runs this schedule creates. Omit or send null to run without artifacts."
8002
+ )
8003
+ }).describe("What the schedule does every time it fires"),
8004
+ rule: zod.union([
8005
+ zod.object({
8006
+ type: zod.literal("hourly"),
8007
+ minute: zod.number().min(getScheduleResponseRuleOneMinuteMin).max(getScheduleResponseRuleOneMinuteMax).describe("Minute, 0-59"),
8008
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8009
+ }),
8010
+ zod.object({
8011
+ type: zod.literal("daily"),
8012
+ hour: zod.number().min(getScheduleResponseRuleTwoHourMin).max(getScheduleResponseRuleTwoHourMax).describe("Hour, 0-23"),
8013
+ minute: zod.number().min(getScheduleResponseRuleTwoMinuteMin).max(getScheduleResponseRuleTwoMinuteMax).describe("Minute, 0-59"),
8014
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8015
+ }),
8016
+ zod.object({
8017
+ type: zod.literal("weekly"),
8018
+ weekday: zod.number().min(1).max(getScheduleResponseRuleThreeWeekdayMax).describe("ISO-8601 weekday, 1 = Monday through 7 = Sunday"),
8019
+ hour: zod.number().min(getScheduleResponseRuleThreeHourMin).max(getScheduleResponseRuleThreeHourMax).describe("Hour, 0-23"),
8020
+ minute: zod.number().min(getScheduleResponseRuleThreeMinuteMin).max(getScheduleResponseRuleThreeMinuteMax).describe("Minute, 0-59"),
8021
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8022
+ })
8023
+ ]).describe("When the schedule fires, in the given time zone"),
8024
+ enabled: zod.boolean().describe("Whether the schedule currently fires. Disabled never fires."),
8025
+ next_run_at: zod.union([zod.string().datetime({}), zod.null()]).describe("When the schedule fires next, in UTC. Null while disabled."),
8026
+ created_by: zod.string().describe("Actor that created the schedule"),
8027
+ created_at: zod.string().datetime({}).describe("Creation timestamp"),
8028
+ updated_at: zod.string().datetime({}).describe("Last update timestamp")
8029
+ });
8030
+ var UpdateScheduleParams = zod.object({
8031
+ scheduleId: zod.string().uuid()
8032
+ });
8033
+ var updateScheduleBodyRuleOneMinuteMin = 0;
8034
+ var updateScheduleBodyRuleOneMinuteMax = 59;
8035
+ var updateScheduleBodyRuleTwoHourMin = 0;
8036
+ var updateScheduleBodyRuleTwoHourMax = 23;
8037
+ var updateScheduleBodyRuleTwoMinuteMin = 0;
8038
+ var updateScheduleBodyRuleTwoMinuteMax = 59;
8039
+ var updateScheduleBodyRuleThreeWeekdayMax = 7;
8040
+ var updateScheduleBodyRuleThreeHourMin = 0;
8041
+ var updateScheduleBodyRuleThreeHourMax = 23;
8042
+ var updateScheduleBodyRuleThreeMinuteMin = 0;
8043
+ var updateScheduleBodyRuleThreeMinuteMax = 59;
8044
+ var updateScheduleBodyNameOneMax = 200;
8045
+ var UpdateScheduleBody = zod.object({
8046
+ rule: zod.union([
8047
+ zod.object({
8048
+ type: zod.literal("hourly"),
8049
+ minute: zod.number().min(updateScheduleBodyRuleOneMinuteMin).max(updateScheduleBodyRuleOneMinuteMax).describe("Minute, 0-59"),
8050
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8051
+ }),
8052
+ zod.object({
8053
+ type: zod.literal("daily"),
8054
+ hour: zod.number().min(updateScheduleBodyRuleTwoHourMin).max(updateScheduleBodyRuleTwoHourMax).describe("Hour, 0-23"),
8055
+ minute: zod.number().min(updateScheduleBodyRuleTwoMinuteMin).max(updateScheduleBodyRuleTwoMinuteMax).describe("Minute, 0-59"),
8056
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8057
+ }),
8058
+ zod.object({
8059
+ type: zod.literal("weekly"),
8060
+ weekday: zod.number().min(1).max(updateScheduleBodyRuleThreeWeekdayMax).describe("ISO-8601 weekday, 1 = Monday through 7 = Sunday"),
8061
+ hour: zod.number().min(updateScheduleBodyRuleThreeHourMin).max(updateScheduleBodyRuleThreeHourMax).describe("Hour, 0-23"),
8062
+ minute: zod.number().min(updateScheduleBodyRuleThreeMinuteMin).max(updateScheduleBodyRuleThreeMinuteMax).describe("Minute, 0-59"),
8063
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8064
+ })
8065
+ ]).optional().describe("When the schedule fires, in the given time zone"),
8066
+ name: zod.union([zod.string().min(1).max(updateScheduleBodyNameOneMax), zod.null()]).optional().describe("Human-readable name. Send null to clear it."),
8067
+ enabled: zod.boolean().optional().describe("Whether the schedule fires. Disabled never fires.")
8068
+ });
8069
+ var updateScheduleResponseRuleOneMinuteMin = 0;
8070
+ var updateScheduleResponseRuleOneMinuteMax = 59;
8071
+ var updateScheduleResponseRuleTwoHourMin = 0;
8072
+ var updateScheduleResponseRuleTwoHourMax = 23;
8073
+ var updateScheduleResponseRuleTwoMinuteMin = 0;
8074
+ var updateScheduleResponseRuleTwoMinuteMax = 59;
8075
+ var updateScheduleResponseRuleThreeWeekdayMax = 7;
8076
+ var updateScheduleResponseRuleThreeHourMin = 0;
8077
+ var updateScheduleResponseRuleThreeHourMax = 23;
8078
+ var updateScheduleResponseRuleThreeMinuteMin = 0;
8079
+ var updateScheduleResponseRuleThreeMinuteMax = 59;
8080
+ var UpdateScheduleResponse = zod.object({
8081
+ id: zod.string().describe("Unique identifier for the schedule"),
8082
+ name: zod.union([zod.string(), zod.null()]).describe("Optional human-readable name"),
8083
+ action: zod.object({
8084
+ type: zod.literal("trigger_worker"),
8085
+ worker_id: zod.string().uuid(),
8086
+ scope: zod.union([
8087
+ zod.record(
8088
+ zod.string(),
8089
+ zod.union([zod.string(), zod.number(), zod.boolean(), zod.null()])
8090
+ ),
8091
+ zod.null()
8092
+ ]).optional().describe(
8093
+ "Scope of the runs this schedule creates. Omit or send null to run without artifacts."
8094
+ )
8095
+ }).describe("What the schedule does every time it fires"),
8096
+ rule: zod.union([
8097
+ zod.object({
8098
+ type: zod.literal("hourly"),
8099
+ minute: zod.number().min(updateScheduleResponseRuleOneMinuteMin).max(updateScheduleResponseRuleOneMinuteMax).describe("Minute, 0-59"),
8100
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8101
+ }),
8102
+ zod.object({
8103
+ type: zod.literal("daily"),
8104
+ hour: zod.number().min(updateScheduleResponseRuleTwoHourMin).max(updateScheduleResponseRuleTwoHourMax).describe("Hour, 0-23"),
8105
+ minute: zod.number().min(updateScheduleResponseRuleTwoMinuteMin).max(updateScheduleResponseRuleTwoMinuteMax).describe("Minute, 0-59"),
8106
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8107
+ }),
8108
+ zod.object({
8109
+ type: zod.literal("weekly"),
8110
+ weekday: zod.number().min(1).max(updateScheduleResponseRuleThreeWeekdayMax).describe("ISO-8601 weekday, 1 = Monday through 7 = Sunday"),
8111
+ hour: zod.number().min(updateScheduleResponseRuleThreeHourMin).max(updateScheduleResponseRuleThreeHourMax).describe("Hour, 0-23"),
8112
+ minute: zod.number().min(updateScheduleResponseRuleThreeMinuteMin).max(updateScheduleResponseRuleThreeMinuteMax).describe("Minute, 0-59"),
8113
+ timezone: zod.string().describe('IANA time zone identifier, e.g. "America/Chicago"')
8114
+ })
8115
+ ]).describe("When the schedule fires, in the given time zone"),
8116
+ enabled: zod.boolean().describe("Whether the schedule currently fires. Disabled never fires."),
8117
+ next_run_at: zod.union([zod.string().datetime({}), zod.null()]).describe("When the schedule fires next, in UTC. Null while disabled."),
8118
+ created_by: zod.string().describe("Actor that created the schedule"),
8119
+ created_at: zod.string().datetime({}).describe("Creation timestamp"),
8120
+ updated_at: zod.string().datetime({}).describe("Last update timestamp")
8121
+ });
8122
+ var DeleteScheduleParams = zod.object({
8123
+ scheduleId: zod.string().uuid()
8124
+ });
8125
+ var DeleteScheduleResponse = zod.object({});
7703
8126
  var CreateToolBody = zod.object({
7704
8127
  name: zod.string().min(1),
7705
8128
  code: zod.string().min(1),
@@ -9090,6 +9513,47 @@ server.tool(
9090
9513
  },
9091
9514
  deleteSecretHandler
9092
9515
  );
9516
+ server.tool(
9517
+ "createSchedule",
9518
+ "Create a schedule",
9519
+ {
9520
+ bodyParams: CreateScheduleBody
9521
+ },
9522
+ createScheduleHandler
9523
+ );
9524
+ server.tool(
9525
+ "listSchedules",
9526
+ "List schedules",
9527
+ {
9528
+ queryParams: ListSchedulesQueryParams
9529
+ },
9530
+ listSchedulesHandler
9531
+ );
9532
+ server.tool(
9533
+ "getSchedule",
9534
+ "Get a schedule",
9535
+ {
9536
+ pathParams: GetScheduleParams
9537
+ },
9538
+ getScheduleHandler
9539
+ );
9540
+ server.tool(
9541
+ "updateSchedule",
9542
+ "Update a schedule",
9543
+ {
9544
+ pathParams: UpdateScheduleParams,
9545
+ bodyParams: UpdateScheduleBody
9546
+ },
9547
+ updateScheduleHandler
9548
+ );
9549
+ server.tool(
9550
+ "deleteSchedule",
9551
+ "Delete a schedule",
9552
+ {
9553
+ pathParams: DeleteScheduleParams
9554
+ },
9555
+ deleteScheduleHandler
9556
+ );
9093
9557
  server.tool(
9094
9558
  "createTool",
9095
9559
  "Create tool",
@@ -9254,4 +9718,4 @@ var transport = new StdioServerTransport();
9254
9718
  server.connect(transport).then(() => {
9255
9719
  console.error("MCP server running on stdio");
9256
9720
  }).catch(console.error);
9257
- //# sourceMappingURL=server-AI2JO577.js.map
9721
+ //# sourceMappingURL=server-JS5C2M5M.js.map