skedyul 0.2.97 → 0.2.98

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/.build-stamp CHANGED
@@ -1 +1 @@
1
- 1769721939493
1
+ 1769727948219
package/dist/schemas.d.ts CHANGED
@@ -4051,6 +4051,60 @@ export type CardBlockHeader = z.infer<typeof CardBlockHeaderSchema>;
4051
4051
  export type CardBlockDefinition = z.infer<typeof CardBlockDefinitionSchema>;
4052
4052
  export type LegacyFormBlockDefinition = z.infer<typeof LegacyFormBlockDefinitionSchema>;
4053
4053
  export type ListBlockDefinition = z.infer<typeof ListBlockDefinitionSchema>;
4054
+ export declare const MessageSendChannelSchema: z.ZodObject<{
4055
+ id: z.ZodString;
4056
+ handle: z.ZodString;
4057
+ identifierValue: z.ZodString;
4058
+ }, z.core.$strip>;
4059
+ export declare const MessageSendSubscriptionSchema: z.ZodObject<{
4060
+ id: z.ZodString;
4061
+ identifierValue: z.ZodString;
4062
+ }, z.core.$strip>;
4063
+ export declare const MessageSendContactSchema: z.ZodObject<{
4064
+ id: z.ZodString;
4065
+ name: z.ZodOptional<z.ZodString>;
4066
+ }, z.core.$strip>;
4067
+ export declare const MessageSendMessageSchema: z.ZodObject<{
4068
+ id: z.ZodString;
4069
+ content: z.ZodString;
4070
+ contentRaw: z.ZodOptional<z.ZodString>;
4071
+ title: z.ZodOptional<z.ZodString>;
4072
+ }, z.core.$strip>;
4073
+ export declare const MessageSendInputSchema: z.ZodObject<{
4074
+ channel: z.ZodObject<{
4075
+ id: z.ZodString;
4076
+ handle: z.ZodString;
4077
+ identifierValue: z.ZodString;
4078
+ }, z.core.$strip>;
4079
+ subscription: z.ZodObject<{
4080
+ id: z.ZodString;
4081
+ identifierValue: z.ZodString;
4082
+ }, z.core.$strip>;
4083
+ contact: z.ZodObject<{
4084
+ id: z.ZodString;
4085
+ name: z.ZodOptional<z.ZodString>;
4086
+ }, z.core.$strip>;
4087
+ message: z.ZodObject<{
4088
+ id: z.ZodString;
4089
+ content: z.ZodString;
4090
+ contentRaw: z.ZodOptional<z.ZodString>;
4091
+ title: z.ZodOptional<z.ZodString>;
4092
+ }, z.core.$strip>;
4093
+ }, z.core.$strip>;
4094
+ export declare const MessageSendOutputSchema: z.ZodObject<{
4095
+ status: z.ZodEnum<{
4096
+ sent: "sent";
4097
+ queued: "queued";
4098
+ failed: "failed";
4099
+ }>;
4100
+ remoteId: z.ZodOptional<z.ZodString>;
4101
+ }, z.core.$strip>;
4102
+ export type MessageSendChannel = z.infer<typeof MessageSendChannelSchema>;
4103
+ export type MessageSendSubscription = z.infer<typeof MessageSendSubscriptionSchema>;
4104
+ export type MessageSendContact = z.infer<typeof MessageSendContactSchema>;
4105
+ export type MessageSendMessage = z.infer<typeof MessageSendMessageSchema>;
4106
+ export type MessageSendInput = z.infer<typeof MessageSendInputSchema>;
4107
+ export type MessageSendOutput = z.infer<typeof MessageSendOutputSchema>;
4054
4108
  export declare function isModelDependency(dep: ResourceDependency): dep is ModelDependency;
4055
4109
  export declare function isChannelDependency(dep: ResourceDependency): dep is ChannelDependency;
4056
4110
  export declare function isWorkflowDependency(dep: ResourceDependency): dep is WorkflowDependency;
package/dist/schemas.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListItemTemplateSchema = exports.FileSettingComponentDefinitionSchema = exports.ImageSettingComponentDefinitionSchema = exports.TimePickerComponentDefinitionSchema = exports.DatePickerComponentDefinitionSchema = exports.CheckboxComponentDefinitionSchema = exports.ComboboxComponentDefinitionSchema = exports.SelectComponentDefinitionSchema = exports.TextareaComponentDefinitionSchema = exports.InputComponentDefinitionSchema = exports.FormLayoutConfigDefinitionSchema = exports.FormLayoutRowDefinitionSchema = exports.FormLayoutColumnDefinitionSchema = exports.RelationshipExtensionSchema = exports.FieldSettingButtonPropsSchema = exports.FormV2StylePropsSchema = exports.PageActionDefinitionSchema = exports.PageFormHeaderSchema = exports.PageFieldSourceSchema = exports.PageFieldTypeSchema = exports.PageBlockTypeSchema = exports.PageTypeSchema = exports.WorkflowDefinitionSchema = exports.WorkflowActionSchema = exports.WorkflowActionInputSchema = exports.ChannelDefinitionSchema = exports.ChannelFieldDefinitionSchema = exports.ChannelCapabilitySchema = exports.ChannelCapabilityTypeSchema = exports.RelationshipDefinitionSchema = exports.RelationshipLinkSchema = exports.OnDeleteBehaviorSchema = exports.RelationshipCardinalitySchema = exports.ModelDefinitionSchema = exports.ModelFieldDefinitionSchema = exports.AppFieldVisibilitySchema = exports.InlineFieldDefinitionSchema = exports.FieldOptionSchema = exports.FieldDataTypeSchema = exports.ResourceDependencySchema = exports.WorkflowDependencySchema = exports.ChannelDependencySchema = exports.ModelDependencySchema = exports.StructuredFilterSchema = exports.FieldOwnerSchema = exports.ResourceScopeSchema = exports.ComputeLayerTypeSchema = exports.EnvSchemaSchema = exports.EnvVariableDefinitionSchema = exports.EnvVisibilitySchema = void 0;
4
- exports.SkedyulConfigSchema = exports.ProvisionConfigSchema = exports.WebhooksSchema = exports.WebhookHandlerDefinitionSchema = exports.WebhookTypeSchema = exports.WebhookHttpMethodSchema = exports.PageDefinitionSchema = exports.NavigationConfigSchema = exports.NavigationBreadcrumbSchema = exports.BreadcrumbItemSchema = exports.NavigationSidebarSchema = exports.NavigationSectionSchema = exports.NavigationItemSchema = exports.PageInstanceFilterSchema = exports.PageContextDefinitionSchema = exports.PageContextItemDefinitionSchema = exports.PageContextFiltersSchema = exports.PageContextModeSchema = exports.PageBlockDefinitionSchema = exports.ListBlockDefinitionSchema = exports.LegacyFormBlockDefinitionSchema = exports.PageFieldDefinitionSchema = exports.CardBlockDefinitionSchema = exports.CardBlockHeaderSchema = exports.FormV2PropsDefinitionSchema = exports.FormV2ComponentDefinitionSchema = exports.FieldSettingComponentDefinitionSchema = exports.ModalFormDefinitionSchema = exports.AlertComponentDefinitionSchema = exports.EmptyFormComponentDefinitionSchema = exports.ListComponentDefinitionSchema = void 0;
4
+ exports.MessageSendOutputSchema = exports.MessageSendInputSchema = exports.MessageSendMessageSchema = exports.MessageSendContactSchema = exports.MessageSendSubscriptionSchema = exports.MessageSendChannelSchema = exports.SkedyulConfigSchema = exports.ProvisionConfigSchema = exports.WebhooksSchema = exports.WebhookHandlerDefinitionSchema = exports.WebhookTypeSchema = exports.WebhookHttpMethodSchema = exports.PageDefinitionSchema = exports.NavigationConfigSchema = exports.NavigationBreadcrumbSchema = exports.BreadcrumbItemSchema = exports.NavigationSidebarSchema = exports.NavigationSectionSchema = exports.NavigationItemSchema = exports.PageInstanceFilterSchema = exports.PageContextDefinitionSchema = exports.PageContextItemDefinitionSchema = exports.PageContextFiltersSchema = exports.PageContextModeSchema = exports.PageBlockDefinitionSchema = exports.ListBlockDefinitionSchema = exports.LegacyFormBlockDefinitionSchema = exports.PageFieldDefinitionSchema = exports.CardBlockDefinitionSchema = exports.CardBlockHeaderSchema = exports.FormV2PropsDefinitionSchema = exports.FormV2ComponentDefinitionSchema = exports.FieldSettingComponentDefinitionSchema = exports.ModalFormDefinitionSchema = exports.AlertComponentDefinitionSchema = exports.EmptyFormComponentDefinitionSchema = exports.ListComponentDefinitionSchema = void 0;
5
5
  exports.safeParseConfig = safeParseConfig;
6
6
  exports.isModelDependency = isModelDependency;
7
7
  exports.isChannelDependency = isChannelDependency;
@@ -680,6 +680,38 @@ function safeParseConfig(data) {
680
680
  return result.success ? result.data : null;
681
681
  }
682
682
  // ─────────────────────────────────────────────────────────────────────────────
683
+ // Messaging Tool Schemas
684
+ // ─────────────────────────────────────────────────────────────────────────────
685
+ exports.MessageSendChannelSchema = zod_1.z.object({
686
+ id: zod_1.z.string(),
687
+ handle: zod_1.z.string(),
688
+ identifierValue: zod_1.z.string(),
689
+ });
690
+ exports.MessageSendSubscriptionSchema = zod_1.z.object({
691
+ id: zod_1.z.string(),
692
+ identifierValue: zod_1.z.string(),
693
+ });
694
+ exports.MessageSendContactSchema = zod_1.z.object({
695
+ id: zod_1.z.string(),
696
+ name: zod_1.z.string().optional(),
697
+ });
698
+ exports.MessageSendMessageSchema = zod_1.z.object({
699
+ id: zod_1.z.string(),
700
+ content: zod_1.z.string(),
701
+ contentRaw: zod_1.z.string().optional(),
702
+ title: zod_1.z.string().optional(),
703
+ });
704
+ exports.MessageSendInputSchema = zod_1.z.object({
705
+ channel: exports.MessageSendChannelSchema,
706
+ subscription: exports.MessageSendSubscriptionSchema,
707
+ contact: exports.MessageSendContactSchema,
708
+ message: exports.MessageSendMessageSchema,
709
+ });
710
+ exports.MessageSendOutputSchema = zod_1.z.object({
711
+ status: zod_1.z.enum(['sent', 'queued', 'failed']),
712
+ remoteId: zod_1.z.string().optional(),
713
+ });
714
+ // ─────────────────────────────────────────────────────────────────────────────
683
715
  // Type Guards
684
716
  // ─────────────────────────────────────────────────────────────────────────────
685
717
  function isModelDependency(dep) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skedyul",
3
- "version": "0.2.97",
3
+ "version": "0.2.98",
4
4
  "description": "The Skedyul SDK for Node.js",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",