@membranehq/sdk 0.22.6 → 0.24.1

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/bundle.js CHANGED
@@ -29474,7 +29474,25 @@
29474
29474
  .meta({ hidden: true }),
29475
29475
  });
29476
29476
  object({
29477
- intent: string$1().min(1).max(200),
29477
+ appUrl: string$1()
29478
+ .min(1)
29479
+ .max(2000)
29480
+ .refine((v) => {
29481
+ try {
29482
+ const url = /^https?:\/\//i.test(v) ? v : `https://${v}`;
29483
+ const { hostname } = new URL(url);
29484
+ if (!hostname || !hostname.includes('.'))
29485
+ return false;
29486
+ const stripped = hostname.replace(/^www\./i, '');
29487
+ if (/^(\d{1,3}\.){3}\d{1,3}$/.test(stripped))
29488
+ return false;
29489
+ return true;
29490
+ }
29491
+ catch (_a) {
29492
+ return false;
29493
+ }
29494
+ }, { message: 'Must be a valid URL or domain (e.g. "https://slack.com" or "slack.com")' })
29495
+ .describe('URL or domain of the app to connect to (e.g. "https://slack.com" or "slack.com"). Will be normalized to a domain.'),
29478
29496
  name: string$1()
29479
29497
  .optional()
29480
29498
  .describe('Custom name for the connection. Only used when a new connection is created; ignored if an existing one is returned.'),