terse-types 0.0.49 → 0.0.50

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/Configs.d.ts CHANGED
@@ -678,11 +678,15 @@ export declare const WebConfigSchema: z.ZodObject<{
678
678
  integrationId: z.ZodLiteral<"system">;
679
679
  integrationType: z.ZodLiteral<IntegrationType.TERSE>;
680
680
  configType: z.ZodLiteral<ConfigType.WEB>;
681
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
681
682
  }, z.core.$strip>;
682
683
  export type WebConfigData = z.infer<typeof WebConfigSchema>;
683
684
  export type WebConfigInstance = WebConfigData & ConfigBehavior;
684
685
  export declare class WebConfig extends BaseConfigInstance<IntegrationType.TERSE, ConfigType.WEB, "system"> implements WebConfigInstance {
685
- constructor();
686
+ allowedDomains: string[] | null;
687
+ constructor(opts?: {
688
+ allowedDomains?: string[] | null;
689
+ });
686
690
  isComplete(): boolean;
687
691
  formatForAgent(): string;
688
692
  }
@@ -1077,6 +1081,7 @@ export declare const configDataSchema: z.ZodUnion<readonly [z.ZodObject<{
1077
1081
  integrationId: z.ZodLiteral<"system">;
1078
1082
  integrationType: z.ZodLiteral<IntegrationType.TERSE>;
1079
1083
  configType: z.ZodLiteral<ConfigType.WEB>;
1084
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1080
1085
  }, z.core.$strip>, z.ZodObject<{
1081
1086
  integrationId: z.ZodLiteral<"system">;
1082
1087
  integrationType: z.ZodLiteral<IntegrationType.TERSE>;
@@ -1433,6 +1438,7 @@ export declare const skillConfigDataSchema: z.ZodUnion<readonly [z.ZodObject<{
1433
1438
  integrationId: z.ZodLiteral<"system">;
1434
1439
  integrationType: z.ZodLiteral<IntegrationType.TERSE>;
1435
1440
  configType: z.ZodLiteral<ConfigType.WEB>;
1441
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1436
1442
  }, z.core.$strip>, z.ZodObject<{
1437
1443
  integrationId: z.ZodLiteral<"system">;
1438
1444
  integrationType: z.ZodLiteral<IntegrationType.TERSE>;
package/dist/Configs.js CHANGED
@@ -748,16 +748,22 @@ export class LaunchDarklyConfig extends BaseConfigInstance {
748
748
  export const WebConfigSchema = ConfigInstanceSchema.extend({
749
749
  integrationId: z.literal("system"),
750
750
  integrationType: z.literal(IntegrationType.TERSE),
751
- configType: z.literal(ConfigType.WEB)
751
+ configType: z.literal(ConfigType.WEB),
752
+ allowedDomains: z.array(z.string()).nullable().default(null)
752
753
  });
753
754
  export class WebConfig extends BaseConfigInstance {
754
- constructor() {
755
+ allowedDomains;
756
+ constructor(opts = {}) {
755
757
  super("system", IntegrationType.TERSE, ConfigType.WEB);
758
+ this.allowedDomains = opts.allowedDomains ?? null;
756
759
  }
757
760
  isComplete() {
758
761
  return true;
759
762
  }
760
763
  formatForAgent() {
764
+ if (this.allowedDomains && this.allowedDomains.length > 0) {
765
+ return `Type: Web (search, extract, research)\nAllowed domains: ${this.allowedDomains.join(", ")}`;
766
+ }
761
767
  return "Type: Web (search, extract, research)";
762
768
  }
763
769
  }
package/dist/Tools.d.ts CHANGED
@@ -5289,6 +5289,7 @@ export declare const webSearchTool: {
5289
5289
  month: "month";
5290
5290
  year: "year";
5291
5291
  }>>;
5292
+ include_domains: z.ZodNullable<z.ZodArray<z.ZodString>>;
5292
5293
  }, z.core.$strip>;
5293
5294
  outputSchema: z.ZodObject<{
5294
5295
  query: z.ZodString;
@@ -8248,6 +8249,7 @@ export declare const ToolDefinitions: {
8248
8249
  month: "month";
8249
8250
  year: "year";
8250
8251
  }>>;
8252
+ include_domains: z.ZodNullable<z.ZodArray<z.ZodString>>;
8251
8253
  }, z.core.$strip>;
8252
8254
  outputSchema: z.ZodObject<{
8253
8255
  query: z.ZodString;
package/dist/Tools.js CHANGED
@@ -1828,7 +1828,8 @@ export const webSearchTool = defineTool({
1828
1828
  search_depth: z.enum(["basic", "advanced"]).nullable().describe("'basic' is faster, 'advanced' is more thorough (default 'basic')"),
1829
1829
  include_answer: z.boolean().nullable().describe("Include an LLM-generated answer summarizing the results (default false)"),
1830
1830
  topic: z.enum(["general", "news"]).nullable().describe("'news' for recent news articles, 'general' for all web content (default 'general')"),
1831
- time_range: z.enum(["day", "week", "month", "year"]).nullable().describe("Filter results by recency")
1831
+ time_range: z.enum(["day", "week", "month", "year"]).nullable().describe("Filter results by recency"),
1832
+ include_domains: z.array(z.string()).nullable().describe("Restrict results to these domains (e.g. ['example.com']). Required when web access is limited to an allowed list of domains.")
1832
1833
  }),
1833
1834
  outputSchema: webSearchOutputSchema
1834
1835
  });
package/dist/types.d.ts CHANGED
@@ -419,6 +419,7 @@ export declare const agentTriggerSchema: z.ZodObject<{
419
419
  integrationId: z.ZodLiteral<"system">;
420
420
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
421
421
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
422
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
422
423
  }, z.core.$strip>, z.ZodObject<{
423
424
  integrationId: z.ZodLiteral<"system">;
424
425
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -664,6 +665,7 @@ export declare const agentOutputSchema: z.ZodObject<{
664
665
  integrationId: z.ZodLiteral<"system">;
665
666
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
666
667
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
668
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
667
669
  }, z.core.$strip>, z.ZodObject<{
668
670
  integrationId: z.ZodLiteral<"system">;
669
671
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -910,6 +912,7 @@ export declare const transientAgentTriggerSchema: z.ZodObject<{
910
912
  integrationId: z.ZodLiteral<"system">;
911
913
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
912
914
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
915
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
913
916
  }, z.core.$strip>, z.ZodObject<{
914
917
  integrationId: z.ZodLiteral<"system">;
915
918
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -1153,6 +1156,7 @@ export declare const transientAgentOutputSchema: z.ZodObject<{
1153
1156
  integrationId: z.ZodLiteral<"system">;
1154
1157
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
1155
1158
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
1159
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1156
1160
  }, z.core.$strip>, z.ZodObject<{
1157
1161
  integrationId: z.ZodLiteral<"system">;
1158
1162
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -1605,6 +1609,7 @@ export declare const agentSchema: z.ZodObject<{
1605
1609
  integrationId: z.ZodLiteral<"system">;
1606
1610
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
1607
1611
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
1612
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1608
1613
  }, z.core.$strip>, z.ZodObject<{
1609
1614
  integrationId: z.ZodLiteral<"system">;
1610
1615
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -1849,6 +1854,7 @@ export declare const agentSchema: z.ZodObject<{
1849
1854
  integrationId: z.ZodLiteral<"system">;
1850
1855
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
1851
1856
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
1857
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1852
1858
  }, z.core.$strip>, z.ZodObject<{
1853
1859
  integrationId: z.ZodLiteral<"system">;
1854
1860
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -2113,6 +2119,7 @@ export declare const agentUpdateSchema: z.ZodObject<{
2113
2119
  integrationId: z.ZodLiteral<"system">;
2114
2120
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
2115
2121
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
2122
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2116
2123
  }, z.core.$strip>, z.ZodObject<{
2117
2124
  integrationId: z.ZodLiteral<"system">;
2118
2125
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -2357,6 +2364,7 @@ export declare const agentUpdateSchema: z.ZodObject<{
2357
2364
  integrationId: z.ZodLiteral<"system">;
2358
2365
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
2359
2366
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
2367
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2360
2368
  }, z.core.$strip>, z.ZodObject<{
2361
2369
  integrationId: z.ZodLiteral<"system">;
2362
2370
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -2632,6 +2640,7 @@ export declare const agentsResponseSchema: z.ZodObject<{
2632
2640
  integrationId: z.ZodLiteral<"system">;
2633
2641
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
2634
2642
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
2643
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2635
2644
  }, z.core.$strip>, z.ZodObject<{
2636
2645
  integrationId: z.ZodLiteral<"system">;
2637
2646
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -2876,6 +2885,7 @@ export declare const agentsResponseSchema: z.ZodObject<{
2876
2885
  integrationId: z.ZodLiteral<"system">;
2877
2886
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
2878
2887
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
2888
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2879
2889
  }, z.core.$strip>, z.ZodObject<{
2880
2890
  integrationId: z.ZodLiteral<"system">;
2881
2891
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -3153,6 +3163,7 @@ export declare const recentAgentSchema: z.ZodObject<{
3153
3163
  integrationId: z.ZodLiteral<"system">;
3154
3164
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
3155
3165
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
3166
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3156
3167
  }, z.core.$strip>, z.ZodObject<{
3157
3168
  integrationId: z.ZodLiteral<"system">;
3158
3169
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -3397,6 +3408,7 @@ export declare const recentAgentSchema: z.ZodObject<{
3397
3408
  integrationId: z.ZodLiteral<"system">;
3398
3409
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
3399
3410
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
3411
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3400
3412
  }, z.core.$strip>, z.ZodObject<{
3401
3413
  integrationId: z.ZodLiteral<"system">;
3402
3414
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -3992,6 +4004,7 @@ export declare const sdkAgentRunRequestBodySchema: z.ZodObject<{
3992
4004
  integrationId: z.ZodLiteral<"system">;
3993
4005
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
3994
4006
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
4007
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
3995
4008
  }, z.core.$strip>, z.ZodObject<{
3996
4009
  integrationId: z.ZodLiteral<"system">;
3997
4010
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -6085,6 +6098,7 @@ export declare const sdkAgentRunNormalizedRequestSchema: z.ZodObject<{
6085
6098
  integrationId: z.ZodLiteral<"system">;
6086
6099
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
6087
6100
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
6101
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
6088
6102
  }, z.core.$strip>, z.ZodObject<{
6089
6103
  integrationId: z.ZodLiteral<"system">;
6090
6104
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -8176,6 +8190,7 @@ export declare const sdkAgentRunResponseBodySchema: z.ZodObject<{
8176
8190
  integrationId: z.ZodLiteral<"system">;
8177
8191
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
8178
8192
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
8193
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
8179
8194
  }, z.core.$strip>, z.ZodObject<{
8180
8195
  integrationId: z.ZodLiteral<"system">;
8181
8196
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
@@ -11113,6 +11128,7 @@ export declare const sdkSampleEventsRequestSchema: z.ZodObject<{
11113
11128
  integrationId: z.ZodLiteral<"system">;
11114
11129
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
11115
11130
  configType: z.ZodLiteral<import("./Configs.js").ConfigType.WEB>;
11131
+ allowedDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11116
11132
  }, z.core.$strip>, z.ZodObject<{
11117
11133
  integrationId: z.ZodLiteral<"system">;
11118
11134
  integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.TERSE>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",