@constal/sdk 3.10.0 → 4.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constal/sdk",
3
- "version": "3.10.0",
3
+ "version": "4.0.0",
4
4
  "description": "Public TypeScript SDK for authoring Constal agents, integrations, policies, channels, and credential providers",
5
5
  "keywords": [
6
6
  "constal",
package/publish/api.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@constal/sdk",
3
- "version": "3.10.0",
3
+ "version": "4.0.0",
4
4
  "exports": [
5
5
  "AGENT_UI_DEFAULTS",
6
6
  "Action",
@@ -655,7 +655,7 @@ interface ModelGatewayConfig {
655
655
  providerAuth?: ModelCredentialHeader | null;
656
656
  }
657
657
  type NormalizedModelGatewayConfig = Omit<ModelGatewayConfig, "maxOutputTokens" | "temperature" | "gatewayAuth" | "providerAuth"> & {
658
- maxOutputTokens: number;
658
+ maxOutputTokens: number | null;
659
659
  temperature: number | null;
660
660
  gatewayAuth: ModelCredentialHeader | null;
661
661
  providerAuth: ModelCredentialHeader | null;
@@ -702,7 +702,7 @@ declare function modelPrompt(args: ModelInvocationArgs): string;
702
702
  /** The messages of one turn: the static objective and context first, then each earlier exchange as its own message, then
703
703
  * feedback about the previous attempt. Without history this is the single prompt message it always was. */
704
704
  declare function modelMessages(args: ModelInvocationArgs): ModelHistoryMessage[];
705
- declare function modelProtocolRequest(protocol: ModelGatewayProtocol, model: string, maxOutputTokens: number, temperature: number | null, args: ModelInvocationArgs): Record<string, unknown>;
705
+ declare function modelProtocolRequest(protocol: ModelGatewayProtocol, model: string, maxOutputTokens: number | null, temperature: number | null, args: ModelInvocationArgs): Record<string, unknown>;
706
706
  declare function modelProtocolResult(protocol: ModelGatewayProtocol, raw: unknown, provider: string, model: string): ModelInvocationResult;
707
707
 
708
708
  interface GatewayCredentialSlotSetup {
@@ -1883,12 +1883,12 @@ interface EvaluationInvocationResult<Q extends EvaluationQuestions = EvaluationQ
1883
1883
  }
1884
1884
  type EvaluationProtocol = "typesafe";
1885
1885
  declare const EVALUATION_LIMITS: {
1886
- readonly maxQuestions: 512;
1887
- readonly maxChoiceOptions: 512;
1888
- readonly maxScoreLevels: 128;
1889
- readonly maxDepth: 32;
1890
- /** Bytes of the canonical request body; evaluation models bound state and questions jointly by tokens. */
1891
- readonly maxRequestBytes: 1048576;
1886
+ readonly maxQuestions: number;
1887
+ readonly maxChoiceOptions: number;
1888
+ readonly maxScoreLevels: number;
1889
+ readonly maxDepth: number;
1890
+ /** Compatibility numeric domains, not request quotas; provider limits are reported by the provider. */
1891
+ readonly maxRequestBytes: number;
1892
1892
  };
1893
1893
  /** One validated argument shape for Policy, accounting, and provider dispatch. */
1894
1894
  declare function evaluationArguments(value: unknown): EvaluationInvocationArgs;
@@ -2257,7 +2257,7 @@ interface SpawnOpts {
2257
2257
  budget?: SpawnBudget;
2258
2258
  attenuation?: SpawnAttenuation;
2259
2259
  }
2260
- /** Bounded, non-secret content that a Channel or UI may present while a Run is suspended. */
2260
+ /** Non-secret content that a Channel or UI may present while a Run is suspended. */
2261
2261
  interface AwaitPresentation {
2262
2262
  object: "constal.await.presentation";
2263
2263
  version: 1;
@@ -2268,9 +2268,11 @@ interface AwaitPresentation {
2268
2268
  metadata?: Record<string, string | number | boolean | null>;
2269
2269
  }
2270
2270
  interface AwaitOpts<T> {
2271
+ /** Milliseconds until timeout. Omit to wait until resolved or cancelled. */
2271
2272
  timeout?: number;
2272
2273
  onTimeout?: T;
2273
2274
  schema?: object;
2275
+ /** Optional caller-selected response size limit, in UTF-8 bytes. */
2274
2276
  maxBytes?: number;
2275
2277
  afterRun?: "ignore" | "message";
2276
2278
  /** Explicitly public presentation; never include Credential material or private evidence. */
@@ -3025,8 +3027,14 @@ type AuthProviderResult = {
3025
3027
  };
3026
3028
  claims?: Record<string, string | number | boolean | string[]>;
3027
3029
  expiresAt?: number | null;
3030
+ /**
3031
+ * Request signatures Constal checks after `authenticate` returns, each with one of this AuthProvider's Credential
3032
+ * bindings, compared in constant time. The request is authenticated only when every one verifies. The key never leaves
3033
+ * Constal, and no HMAC is computed for the AuthProvider.
3034
+ */
3035
+ hmac?: HmacVerification[];
3028
3036
  };
3029
- /** A request signature an AuthProvider checks with one of its own Credential bindings. */
3037
+ /** A request signature an AuthProvider returns for Constal to check with one of its own Credential bindings. */
3030
3038
  interface HmacVerification {
3031
3039
  /** The name of one of this AuthProvider's Credential bindings. */
3032
3040
  credential: string;
@@ -3046,11 +3054,6 @@ interface AuthProviderContext {
3046
3054
  /** Host-authenticated source provenance. HTTP callers cannot supply this field. */
3047
3055
  source?: ChannelSourceEvidence;
3048
3056
  invoke<T>(resource: CRN, op: string, args: unknown): Promise<T>;
3049
- /**
3050
- * Whether `signature` is the HMAC of `message` under the Credential bound as `credential`, compared in constant time.
3051
- * The key never leaves Constal, and no HMAC is computed for the caller. A signature not in `encoding` is not verified.
3052
- */
3053
- verifyHmac(input: HmacVerification): Promise<boolean>;
3054
3057
  }
3055
3058
  interface AuthProvider {
3056
3059
  id: string;
@@ -3271,7 +3274,7 @@ interface SetupSubmission {
3271
3274
  }
3272
3275
  /** A panel names its provider by CRN, or by a platform capability name the platform resolves to one published provider. */
3273
3276
  declare function setupPanelProviderIsCrn(provider: string): boolean;
3274
- /** Validates the bounded presentation artifact consumed by trusted Console renderers. */
3277
+ /** Validates the presentation artifact consumed by trusted Console renderers. */
3275
3278
  declare function setupScreen(value: unknown): SetupScreen;
3276
3279
  /** Validates one response against the exact open screen revision and form schema. */
3277
3280
  declare function setupSubmission(value: unknown, screen: SetupScreen): SetupSubmission;
@@ -3448,34 +3451,27 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3448
3451
  readonly properties: {
3449
3452
  readonly domains: {
3450
3453
  readonly type: "array";
3451
- readonly maxItems: 128;
3452
3454
  readonly items: {
3453
3455
  readonly type: "string";
3454
3456
  readonly minLength: 1;
3455
- readonly maxLength: 256;
3456
3457
  };
3457
3458
  };
3458
3459
  readonly kinds: {
3459
3460
  readonly type: "array";
3460
- readonly maxItems: 128;
3461
3461
  readonly items: {
3462
3462
  readonly type: "string";
3463
3463
  readonly minLength: 1;
3464
- readonly maxLength: 256;
3465
3464
  };
3466
3465
  };
3467
3466
  readonly operations: {
3468
3467
  readonly type: "array";
3469
- readonly maxItems: 128;
3470
3468
  readonly items: {
3471
3469
  readonly type: "string";
3472
3470
  readonly minLength: 1;
3473
- readonly maxLength: 256;
3474
3471
  };
3475
3472
  };
3476
3473
  readonly include: {
3477
3474
  readonly type: "array";
3478
- readonly maxItems: 5;
3479
3475
  readonly uniqueItems: true;
3480
3476
  readonly items: {
3481
3477
  readonly enum: readonly ["objects", "operations", "relations", "schemas", "docs"];
@@ -3483,12 +3479,11 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3483
3479
  };
3484
3480
  readonly cursor: {
3485
3481
  readonly type: "string";
3486
- readonly maxLength: 4096;
3487
3482
  };
3488
3483
  readonly limit: {
3489
3484
  readonly type: "integer";
3490
3485
  readonly minimum: 1;
3491
- readonly maximum: 200;
3486
+ readonly maximum: number;
3492
3487
  };
3493
3488
  };
3494
3489
  };
@@ -3516,7 +3511,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3516
3511
  readonly description: "Exact authorized namespace. Do not infer it from an object name or repository.";
3517
3512
  readonly type: "string";
3518
3513
  readonly minLength: 1;
3519
- readonly maxLength: 128;
3520
3514
  readonly pattern: "^[a-z0-9][a-z0-9._-]{0,127}$";
3521
3515
  };
3522
3516
  };
@@ -3537,11 +3531,9 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3537
3531
  };
3538
3532
  readonly search: {
3539
3533
  readonly type: "string";
3540
- readonly maxLength: 512;
3541
3534
  };
3542
3535
  readonly order: {
3543
3536
  readonly type: "array";
3544
- readonly maxItems: 8;
3545
3537
  readonly items: {
3546
3538
  readonly type: "object";
3547
3539
  readonly required: readonly ["field", "direction"];
@@ -3550,7 +3542,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3550
3542
  readonly field: {
3551
3543
  readonly type: "string";
3552
3544
  readonly minLength: 1;
3553
- readonly maxLength: 128;
3554
3545
  readonly pattern: "^[A-Za-z][A-Za-z0-9._-]{0,127}$";
3555
3546
  };
3556
3547
  readonly direction: {
@@ -3561,21 +3552,18 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3561
3552
  };
3562
3553
  readonly fields: {
3563
3554
  readonly type: "array";
3564
- readonly maxItems: 128;
3565
3555
  readonly items: {
3566
3556
  readonly type: "string";
3567
3557
  readonly minLength: 1;
3568
- readonly maxLength: 256;
3569
3558
  };
3570
3559
  };
3571
3560
  readonly limit: {
3572
3561
  readonly type: "integer";
3573
3562
  readonly minimum: 1;
3574
- readonly maximum: 200;
3563
+ readonly maximum: number;
3575
3564
  };
3576
3565
  readonly cursor: {
3577
3566
  readonly type: "string";
3578
- readonly maxLength: 4096;
3579
3567
  };
3580
3568
  readonly asOf: {
3581
3569
  readonly type: "integer";
@@ -3617,7 +3605,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3617
3605
  readonly id: {
3618
3606
  readonly type: "string";
3619
3607
  readonly minLength: 1;
3620
- readonly maxLength: 512;
3621
3608
  };
3622
3609
  readonly crn: {
3623
3610
  readonly anyOf: readonly [{
@@ -3625,7 +3612,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3625
3612
  }, {
3626
3613
  readonly type: "string";
3627
3614
  readonly minLength: 1;
3628
- readonly maxLength: 2048;
3629
3615
  readonly pattern: string;
3630
3616
  }];
3631
3617
  };
@@ -3639,12 +3625,10 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3639
3625
  };
3640
3626
  readonly namespace: {
3641
3627
  readonly type: readonly ["string", "null"];
3642
- readonly maxLength: 128;
3643
3628
  readonly pattern: "^[a-z0-9][a-z0-9._-]{0,127}$";
3644
3629
  };
3645
3630
  readonly version: {
3646
3631
  readonly type: readonly ["string", "null"];
3647
- readonly maxLength: 128;
3648
3632
  };
3649
3633
  };
3650
3634
  readonly required: readonly ["kind", "id", "namespace"];
@@ -3656,7 +3640,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3656
3640
  readonly crn: {
3657
3641
  readonly type: "string";
3658
3642
  readonly minLength: 1;
3659
- readonly maxLength: 2048;
3660
3643
  readonly description: "Exact addressable CRN obtained from governed platform evidence.";
3661
3644
  readonly pattern: string;
3662
3645
  };
@@ -3669,11 +3652,9 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3669
3652
  };
3670
3653
  readonly fields: {
3671
3654
  readonly type: "array";
3672
- readonly maxItems: 128;
3673
3655
  readonly items: {
3674
3656
  readonly type: "string";
3675
3657
  readonly minLength: 1;
3676
- readonly maxLength: 256;
3677
3658
  };
3678
3659
  };
3679
3660
  readonly page: {
@@ -3682,12 +3663,10 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3682
3663
  readonly properties: {
3683
3664
  readonly cursor: {
3684
3665
  readonly type: "string";
3685
- readonly maxLength: 4096;
3686
3666
  };
3687
3667
  readonly limit: {
3688
3668
  readonly type: "integer";
3689
3669
  readonly minimum: 1;
3690
- readonly maximum: 500;
3691
3670
  };
3692
3671
  };
3693
3672
  };
@@ -3710,7 +3689,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3710
3689
  readonly id: {
3711
3690
  readonly type: "string";
3712
3691
  readonly minLength: 1;
3713
- readonly maxLength: 512;
3714
3692
  };
3715
3693
  readonly crn: {
3716
3694
  readonly anyOf: readonly [{
@@ -3718,7 +3696,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3718
3696
  }, {
3719
3697
  readonly type: "string";
3720
3698
  readonly minLength: 1;
3721
- readonly maxLength: 2048;
3722
3699
  readonly pattern: string;
3723
3700
  }];
3724
3701
  };
@@ -3732,12 +3709,10 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3732
3709
  };
3733
3710
  readonly namespace: {
3734
3711
  readonly type: readonly ["string", "null"];
3735
- readonly maxLength: 128;
3736
3712
  readonly pattern: "^[a-z0-9][a-z0-9._-]{0,127}$";
3737
3713
  };
3738
3714
  readonly version: {
3739
3715
  readonly type: readonly ["string", "null"];
3740
- readonly maxLength: 128;
3741
3716
  };
3742
3717
  };
3743
3718
  readonly required: readonly ["kind", "id", "namespace"];
@@ -3749,7 +3724,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3749
3724
  readonly crn: {
3750
3725
  readonly type: "string";
3751
3726
  readonly minLength: 1;
3752
- readonly maxLength: 2048;
3753
3727
  };
3754
3728
  readonly hash: {
3755
3729
  readonly type: "string";
@@ -3763,26 +3737,23 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3763
3737
  };
3764
3738
  readonly types: {
3765
3739
  readonly type: "array";
3766
- readonly maxItems: 128;
3767
3740
  readonly items: {
3768
3741
  readonly type: "string";
3769
3742
  readonly minLength: 1;
3770
- readonly maxLength: 256;
3771
3743
  };
3772
3744
  };
3773
3745
  readonly depth: {
3774
3746
  readonly type: "integer";
3775
3747
  readonly minimum: 1;
3776
- readonly maximum: 3;
3748
+ readonly maximum: number;
3777
3749
  };
3778
3750
  readonly limit: {
3779
3751
  readonly type: "integer";
3780
3752
  readonly minimum: 1;
3781
- readonly maximum: 200;
3753
+ readonly maximum: number;
3782
3754
  };
3783
3755
  readonly cursor: {
3784
3756
  readonly type: "string";
3785
- readonly maxLength: 4096;
3786
3757
  };
3787
3758
  };
3788
3759
  };
@@ -3794,7 +3765,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3794
3765
  readonly principal: {
3795
3766
  readonly anyOf: readonly [{
3796
3767
  readonly type: "string";
3797
- readonly maxLength: 2048;
3798
3768
  }, {
3799
3769
  readonly type: "object";
3800
3770
  readonly required: readonly ["roles", "scopes"];
@@ -3802,21 +3772,17 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3802
3772
  readonly properties: {
3803
3773
  readonly name: {
3804
3774
  readonly type: "string";
3805
- readonly maxLength: 2048;
3806
3775
  };
3807
3776
  readonly roles: {
3808
3777
  readonly type: "array";
3809
- readonly maxItems: 64;
3810
3778
  readonly uniqueItems: true;
3811
3779
  readonly items: {
3812
3780
  readonly type: "string";
3813
3781
  readonly minLength: 1;
3814
- readonly maxLength: 2048;
3815
3782
  };
3816
3783
  };
3817
3784
  readonly scopes: {
3818
3785
  readonly type: "array";
3819
- readonly maxItems: 256;
3820
3786
  readonly uniqueItems: true;
3821
3787
  readonly items: {
3822
3788
  readonly type: "string";
@@ -3833,7 +3799,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3833
3799
  readonly resource: {
3834
3800
  readonly type: "string";
3835
3801
  readonly minLength: 1;
3836
- readonly maxLength: 2048;
3837
3802
  };
3838
3803
  readonly context: {
3839
3804
  readonly type: "object";
@@ -3852,25 +3817,21 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3852
3817
  readonly namespace: {
3853
3818
  readonly type: "string";
3854
3819
  readonly minLength: 1;
3855
- readonly maxLength: 128;
3856
3820
  readonly pattern: "^[A-Za-z][A-Za-z0-9._-]{0,127}$";
3857
3821
  };
3858
3822
  readonly agent: {
3859
3823
  readonly type: "string";
3860
3824
  readonly minLength: 1;
3861
- readonly maxLength: 63;
3862
3825
  readonly pattern: "^[a-z0-9][a-z0-9-]{0,62}$";
3863
3826
  };
3864
3827
  readonly session: {
3865
3828
  readonly type: "string";
3866
3829
  readonly minLength: 1;
3867
- readonly maxLength: 256;
3868
3830
  readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
3869
3831
  };
3870
3832
  readonly run: {
3871
3833
  readonly type: "string";
3872
3834
  readonly minLength: 1;
3873
- readonly maxLength: 256;
3874
3835
  readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
3875
3836
  };
3876
3837
  };
@@ -3887,7 +3848,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3887
3848
  readonly objective: {
3888
3849
  readonly type: "string";
3889
3850
  readonly minLength: 1;
3890
- readonly maxLength: 8192;
3891
3851
  };
3892
3852
  readonly validateOnly: {
3893
3853
  readonly type: "boolean";
@@ -3895,7 +3855,7 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3895
3855
  readonly operations: {
3896
3856
  readonly type: "array";
3897
3857
  readonly minItems: 1;
3898
- readonly maxItems: 64;
3858
+ readonly maxItems: number;
3899
3859
  readonly items: {
3900
3860
  readonly type: "object";
3901
3861
  readonly required: readonly ["operation", "input"];
@@ -3904,18 +3864,15 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3904
3864
  readonly id: {
3905
3865
  readonly type: "string";
3906
3866
  readonly minLength: 1;
3907
- readonly maxLength: 256;
3908
3867
  readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
3909
3868
  };
3910
3869
  readonly operation: {
3911
3870
  readonly type: "string";
3912
3871
  readonly minLength: 1;
3913
- readonly maxLength: 128;
3914
3872
  readonly pattern: "^[A-Za-z][A-Za-z0-9._-]{0,127}$";
3915
3873
  };
3916
3874
  readonly target: {
3917
3875
  readonly type: "string";
3918
- readonly maxLength: 2048;
3919
3876
  };
3920
3877
  readonly input: {};
3921
3878
  readonly expectedCurrentHash: {
@@ -3928,11 +3885,9 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3928
3885
  };
3929
3886
  readonly dependsOn: {
3930
3887
  readonly type: "array";
3931
- readonly maxItems: 64;
3932
3888
  readonly items: {
3933
3889
  readonly type: "string";
3934
3890
  readonly minLength: 1;
3935
- readonly maxLength: 256;
3936
3891
  readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
3937
3892
  };
3938
3893
  };
@@ -3954,7 +3909,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3954
3909
  readonly id: {
3955
3910
  readonly type: "string";
3956
3911
  readonly minLength: 1;
3957
- readonly maxLength: 256;
3958
3912
  readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
3959
3913
  };
3960
3914
  readonly hash: {
@@ -3966,7 +3920,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3966
3920
  readonly eventId: {
3967
3921
  readonly type: "string";
3968
3922
  readonly minLength: 1;
3969
- readonly maxLength: 256;
3970
3923
  readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
3971
3924
  };
3972
3925
  };
@@ -3979,7 +3932,6 @@ declare const CONSTAL_API_OPERATION_SCHEMAS: {
3979
3932
  readonly id: {
3980
3933
  readonly type: "string";
3981
3934
  readonly minLength: 1;
3982
- readonly maxLength: 256;
3983
3935
  readonly pattern: "^[A-Za-z0-9][A-Za-z0-9._~:-]{0,255}$";
3984
3936
  };
3985
3937
  };
@@ -4036,11 +3988,9 @@ declare const WEB_FETCH_ARGUMENT_SCHEMA: {
4036
3988
  readonly url: {
4037
3989
  readonly type: "string";
4038
3990
  readonly minLength: 1;
4039
- readonly maxLength: 2048;
4040
3991
  };
4041
3992
  readonly accept: {
4042
3993
  readonly type: "string";
4043
- readonly maxLength: 256;
4044
3994
  };
4045
3995
  };
4046
3996
  };
@@ -4052,53 +4002,44 @@ declare const WEB_SEARCH_ARGUMENT_SCHEMA: {
4052
4002
  readonly query: {
4053
4003
  readonly type: "string";
4054
4004
  readonly minLength: 1;
4055
- readonly maxLength: 4096;
4056
4005
  readonly description: "A self-contained description of the information to find.";
4057
4006
  };
4058
4007
  readonly searchQueries: {
4059
4008
  readonly type: "array";
4060
4009
  readonly minItems: 1;
4061
- readonly maxItems: 3;
4062
4010
  readonly uniqueItems: true;
4063
4011
  readonly description: "Optional concise keyword queries that narrow the search.";
4064
4012
  readonly items: {
4065
4013
  readonly type: "string";
4066
4014
  readonly minLength: 1;
4067
- readonly maxLength: 256;
4068
4015
  };
4069
4016
  };
4070
4017
  readonly maximumResults: {
4071
4018
  readonly type: "integer";
4072
4019
  readonly minimum: 1;
4073
- readonly maximum: 20;
4074
4020
  readonly description: "Maximum number of sources to return.";
4075
4021
  };
4076
4022
  readonly maximumCharacters: {
4077
4023
  readonly type: "integer";
4078
- readonly minimum: 1000;
4079
- readonly maximum: 60000;
4024
+ readonly minimum: 1;
4080
4025
  readonly description: "Maximum total excerpt characters to return.";
4081
4026
  };
4082
4027
  readonly includeDomains: {
4083
4028
  readonly type: "array";
4084
- readonly maxItems: 50;
4085
4029
  readonly uniqueItems: true;
4086
4030
  readonly description: "Optional domains to restrict results to.";
4087
4031
  readonly items: {
4088
4032
  readonly type: "string";
4089
4033
  readonly minLength: 1;
4090
- readonly maxLength: 253;
4091
4034
  };
4092
4035
  };
4093
4036
  readonly excludeDomains: {
4094
4037
  readonly type: "array";
4095
- readonly maxItems: 50;
4096
4038
  readonly uniqueItems: true;
4097
4039
  readonly description: "Optional domains to omit.";
4098
4040
  readonly items: {
4099
4041
  readonly type: "string";
4100
4042
  readonly minLength: 1;
4101
- readonly maxLength: 253;
4102
4043
  };
4103
4044
  };
4104
4045
  readonly afterDate: {