@mastra/slack 1.2.0 → 1.2.1-alpha.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/dist/index.d.cts CHANGED
@@ -15,17 +15,7 @@ declare const SlashCommandSchema: z.ZodObject<{
15
15
  description: z.ZodOptional<z.ZodString>;
16
16
  usageHint: z.ZodOptional<z.ZodString>;
17
17
  prompt: z.ZodOptional<z.ZodString>;
18
- }, "strip", z.ZodTypeAny, {
19
- command: string;
20
- description?: string | undefined;
21
- usageHint?: string | undefined;
22
- prompt?: string | undefined;
23
- }, {
24
- command: string;
25
- description?: string | undefined;
26
- usageHint?: string | undefined;
27
- prompt?: string | undefined;
28
- }>;
18
+ }, z.core.$strip>;
29
19
  declare const SlackInstallationDataSchema: z.ZodObject<{
30
20
  appId: z.ZodString;
31
21
  clientId: z.ZodString;
@@ -42,52 +32,8 @@ declare const SlackInstallationDataSchema: z.ZodObject<{
42
32
  description: z.ZodOptional<z.ZodString>;
43
33
  usageHint: z.ZodOptional<z.ZodString>;
44
34
  prompt: z.ZodOptional<z.ZodString>;
45
- }, "strip", z.ZodTypeAny, {
46
- command: string;
47
- description?: string | undefined;
48
- usageHint?: string | undefined;
49
- prompt?: string | undefined;
50
- }, {
51
- command: string;
52
- description?: string | undefined;
53
- usageHint?: string | undefined;
54
- prompt?: string | undefined;
55
- }>, "many">>;
56
- }, "strip", z.ZodTypeAny, {
57
- appId: string;
58
- clientId: string;
59
- clientSecret: string;
60
- signingSecret: string;
61
- teamId: string;
62
- botToken: string;
63
- botUserId: string;
64
- description?: string | undefined;
65
- teamName?: string | undefined;
66
- name?: string | undefined;
67
- slashCommands?: {
68
- command: string;
69
- description?: string | undefined;
70
- usageHint?: string | undefined;
71
- prompt?: string | undefined;
72
- }[] | undefined;
73
- }, {
74
- appId: string;
75
- clientId: string;
76
- clientSecret: string;
77
- signingSecret: string;
78
- teamId: string;
79
- botToken: string;
80
- botUserId: string;
81
- description?: string | undefined;
82
- teamName?: string | undefined;
83
- name?: string | undefined;
84
- slashCommands?: {
85
- command: string;
86
- description?: string | undefined;
87
- usageHint?: string | undefined;
88
- prompt?: string | undefined;
89
- }[] | undefined;
90
- }>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>;
91
37
  type SlackInstallationData = z.infer<typeof SlackInstallationDataSchema>;
92
38
  declare const SlackPendingDataSchema: z.ZodObject<{
93
39
  appId: z.ZodString;
@@ -102,60 +48,14 @@ declare const SlackPendingDataSchema: z.ZodObject<{
102
48
  description: z.ZodOptional<z.ZodString>;
103
49
  usageHint: z.ZodOptional<z.ZodString>;
104
50
  prompt: z.ZodOptional<z.ZodString>;
105
- }, "strip", z.ZodTypeAny, {
106
- command: string;
107
- description?: string | undefined;
108
- usageHint?: string | undefined;
109
- prompt?: string | undefined;
110
- }, {
111
- command: string;
112
- description?: string | undefined;
113
- usageHint?: string | undefined;
114
- prompt?: string | undefined;
115
- }>, "many">>;
51
+ }, z.core.$strip>>>;
116
52
  redirectUrl: z.ZodOptional<z.ZodString>;
117
- }, "strip", z.ZodTypeAny, {
118
- appId: string;
119
- clientId: string;
120
- clientSecret: string;
121
- signingSecret: string;
122
- authorizationUrl: string;
123
- description?: string | undefined;
124
- name?: string | undefined;
125
- slashCommands?: {
126
- command: string;
127
- description?: string | undefined;
128
- usageHint?: string | undefined;
129
- prompt?: string | undefined;
130
- }[] | undefined;
131
- redirectUrl?: string | undefined;
132
- }, {
133
- appId: string;
134
- clientId: string;
135
- clientSecret: string;
136
- signingSecret: string;
137
- authorizationUrl: string;
138
- description?: string | undefined;
139
- name?: string | undefined;
140
- slashCommands?: {
141
- command: string;
142
- description?: string | undefined;
143
- usageHint?: string | undefined;
144
- prompt?: string | undefined;
145
- }[] | undefined;
146
- redirectUrl?: string | undefined;
147
- }>;
53
+ }, z.core.$strip>;
148
54
  type SlackPendingData = z.infer<typeof SlackPendingDataSchema>;
149
55
  declare const SlackConfigDataSchema: z.ZodObject<{
150
56
  token: z.ZodOptional<z.ZodString>;
151
57
  refreshToken: z.ZodString;
152
- }, "strip", z.ZodTypeAny, {
153
- refreshToken: string;
154
- token?: string | undefined;
155
- }, {
156
- refreshToken: string;
157
- token?: string | undefined;
158
- }>;
58
+ }, z.core.$strip>;
159
59
  type SlackConfigData = z.infer<typeof SlackConfigDataSchema>;
160
60
  /** Normalized slash command config as stored in installation data. */
161
61
  type StoredSlashCommand = z.infer<typeof SlashCommandSchema>;
package/dist/index.d.ts CHANGED
@@ -15,17 +15,7 @@ declare const SlashCommandSchema: z.ZodObject<{
15
15
  description: z.ZodOptional<z.ZodString>;
16
16
  usageHint: z.ZodOptional<z.ZodString>;
17
17
  prompt: z.ZodOptional<z.ZodString>;
18
- }, "strip", z.ZodTypeAny, {
19
- command: string;
20
- description?: string | undefined;
21
- usageHint?: string | undefined;
22
- prompt?: string | undefined;
23
- }, {
24
- command: string;
25
- description?: string | undefined;
26
- usageHint?: string | undefined;
27
- prompt?: string | undefined;
28
- }>;
18
+ }, z.core.$strip>;
29
19
  declare const SlackInstallationDataSchema: z.ZodObject<{
30
20
  appId: z.ZodString;
31
21
  clientId: z.ZodString;
@@ -42,52 +32,8 @@ declare const SlackInstallationDataSchema: z.ZodObject<{
42
32
  description: z.ZodOptional<z.ZodString>;
43
33
  usageHint: z.ZodOptional<z.ZodString>;
44
34
  prompt: z.ZodOptional<z.ZodString>;
45
- }, "strip", z.ZodTypeAny, {
46
- command: string;
47
- description?: string | undefined;
48
- usageHint?: string | undefined;
49
- prompt?: string | undefined;
50
- }, {
51
- command: string;
52
- description?: string | undefined;
53
- usageHint?: string | undefined;
54
- prompt?: string | undefined;
55
- }>, "many">>;
56
- }, "strip", z.ZodTypeAny, {
57
- appId: string;
58
- clientId: string;
59
- clientSecret: string;
60
- signingSecret: string;
61
- teamId: string;
62
- botToken: string;
63
- botUserId: string;
64
- description?: string | undefined;
65
- teamName?: string | undefined;
66
- name?: string | undefined;
67
- slashCommands?: {
68
- command: string;
69
- description?: string | undefined;
70
- usageHint?: string | undefined;
71
- prompt?: string | undefined;
72
- }[] | undefined;
73
- }, {
74
- appId: string;
75
- clientId: string;
76
- clientSecret: string;
77
- signingSecret: string;
78
- teamId: string;
79
- botToken: string;
80
- botUserId: string;
81
- description?: string | undefined;
82
- teamName?: string | undefined;
83
- name?: string | undefined;
84
- slashCommands?: {
85
- command: string;
86
- description?: string | undefined;
87
- usageHint?: string | undefined;
88
- prompt?: string | undefined;
89
- }[] | undefined;
90
- }>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>;
91
37
  type SlackInstallationData = z.infer<typeof SlackInstallationDataSchema>;
92
38
  declare const SlackPendingDataSchema: z.ZodObject<{
93
39
  appId: z.ZodString;
@@ -102,60 +48,14 @@ declare const SlackPendingDataSchema: z.ZodObject<{
102
48
  description: z.ZodOptional<z.ZodString>;
103
49
  usageHint: z.ZodOptional<z.ZodString>;
104
50
  prompt: z.ZodOptional<z.ZodString>;
105
- }, "strip", z.ZodTypeAny, {
106
- command: string;
107
- description?: string | undefined;
108
- usageHint?: string | undefined;
109
- prompt?: string | undefined;
110
- }, {
111
- command: string;
112
- description?: string | undefined;
113
- usageHint?: string | undefined;
114
- prompt?: string | undefined;
115
- }>, "many">>;
51
+ }, z.core.$strip>>>;
116
52
  redirectUrl: z.ZodOptional<z.ZodString>;
117
- }, "strip", z.ZodTypeAny, {
118
- appId: string;
119
- clientId: string;
120
- clientSecret: string;
121
- signingSecret: string;
122
- authorizationUrl: string;
123
- description?: string | undefined;
124
- name?: string | undefined;
125
- slashCommands?: {
126
- command: string;
127
- description?: string | undefined;
128
- usageHint?: string | undefined;
129
- prompt?: string | undefined;
130
- }[] | undefined;
131
- redirectUrl?: string | undefined;
132
- }, {
133
- appId: string;
134
- clientId: string;
135
- clientSecret: string;
136
- signingSecret: string;
137
- authorizationUrl: string;
138
- description?: string | undefined;
139
- name?: string | undefined;
140
- slashCommands?: {
141
- command: string;
142
- description?: string | undefined;
143
- usageHint?: string | undefined;
144
- prompt?: string | undefined;
145
- }[] | undefined;
146
- redirectUrl?: string | undefined;
147
- }>;
53
+ }, z.core.$strip>;
148
54
  type SlackPendingData = z.infer<typeof SlackPendingDataSchema>;
149
55
  declare const SlackConfigDataSchema: z.ZodObject<{
150
56
  token: z.ZodOptional<z.ZodString>;
151
57
  refreshToken: z.ZodString;
152
- }, "strip", z.ZodTypeAny, {
153
- refreshToken: string;
154
- token?: string | undefined;
155
- }, {
156
- refreshToken: string;
157
- token?: string | undefined;
158
- }>;
58
+ }, z.core.$strip>;
159
59
  type SlackConfigData = z.infer<typeof SlackConfigDataSchema>;
160
60
  /** Normalized slash command config as stored in installation data. */
161
61
  type StoredSlashCommand = z.infer<typeof SlashCommandSchema>;