@cloudflare/workers-types 4.20250606.0 → 4.20250610.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/2021-11-03/index.d.ts +13 -2
- package/2021-11-03/index.ts +13 -2
- package/2022-01-31/index.d.ts +13 -2
- package/2022-01-31/index.ts +13 -2
- package/2022-03-21/index.d.ts +13 -2
- package/2022-03-21/index.ts +13 -2
- package/2022-08-04/index.d.ts +13 -2
- package/2022-08-04/index.ts +13 -2
- package/2022-10-31/index.d.ts +13 -2
- package/2022-10-31/index.ts +13 -2
- package/2022-11-30/index.d.ts +13 -2
- package/2022-11-30/index.ts +13 -2
- package/2023-03-01/index.d.ts +13 -2
- package/2023-03-01/index.ts +13 -2
- package/2023-07-01/index.d.ts +13 -2
- package/2023-07-01/index.ts +13 -2
- package/experimental/index.d.ts +13 -2
- package/experimental/index.ts +13 -2
- package/index.d.ts +13 -2
- package/index.ts +13 -2
- package/latest/index.d.ts +13 -2
- package/latest/index.ts +13 -2
- package/oldest/index.d.ts +13 -2
- package/oldest/index.ts +13 -2
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -507,7 +507,7 @@ interface DurableObjectNamespace<
|
|
|
507
507
|
jurisdiction: DurableObjectJurisdiction,
|
|
508
508
|
): DurableObjectNamespace<T>;
|
|
509
509
|
}
|
|
510
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
510
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
511
511
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
512
512
|
jurisdiction?: DurableObjectJurisdiction;
|
|
513
513
|
}
|
|
@@ -4220,7 +4220,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4220
4220
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4221
4221
|
aiGatewayLogId: string | null;
|
|
4222
4222
|
gateway(gatewayId: string): AiGateway;
|
|
4223
|
-
autorag(autoragId
|
|
4223
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4224
4224
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4225
4225
|
model: Name,
|
|
4226
4226
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4372,6 +4372,7 @@ declare abstract class AiGateway {
|
|
|
4372
4372
|
interface AutoRAGInternalError extends Error {}
|
|
4373
4373
|
interface AutoRAGNotFoundError extends Error {}
|
|
4374
4374
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4375
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4375
4376
|
type ComparisonFilter = {
|
|
4376
4377
|
key: string;
|
|
4377
4378
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4416,10 +4417,20 @@ type AutoRagSearchResponse = {
|
|
|
4416
4417
|
has_more: boolean;
|
|
4417
4418
|
next_page: string | null;
|
|
4418
4419
|
};
|
|
4420
|
+
type AutoRagListResponse = {
|
|
4421
|
+
id: string;
|
|
4422
|
+
enable: boolean;
|
|
4423
|
+
type: string;
|
|
4424
|
+
source: string;
|
|
4425
|
+
vectorize_name: string;
|
|
4426
|
+
paused: boolean;
|
|
4427
|
+
status: string;
|
|
4428
|
+
}[];
|
|
4419
4429
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4420
4430
|
response: string;
|
|
4421
4431
|
};
|
|
4422
4432
|
declare abstract class AutoRAG {
|
|
4433
|
+
list(): Promise<AutoRagListResponse>;
|
|
4423
4434
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4424
4435
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4425
4436
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2021-11-03/index.ts
CHANGED
|
@@ -512,7 +512,7 @@ export interface DurableObjectNamespace<
|
|
|
512
512
|
jurisdiction: DurableObjectJurisdiction,
|
|
513
513
|
): DurableObjectNamespace<T>;
|
|
514
514
|
}
|
|
515
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
515
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
516
516
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
517
517
|
jurisdiction?: DurableObjectJurisdiction;
|
|
518
518
|
}
|
|
@@ -4236,7 +4236,7 @@ export declare abstract class Ai<
|
|
|
4236
4236
|
> {
|
|
4237
4237
|
aiGatewayLogId: string | null;
|
|
4238
4238
|
gateway(gatewayId: string): AiGateway;
|
|
4239
|
-
autorag(autoragId
|
|
4239
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4240
4240
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4241
4241
|
model: Name,
|
|
4242
4242
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4388,6 +4388,7 @@ export declare abstract class AiGateway {
|
|
|
4388
4388
|
export interface AutoRAGInternalError extends Error {}
|
|
4389
4389
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4390
4390
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4391
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4391
4392
|
export type ComparisonFilter = {
|
|
4392
4393
|
key: string;
|
|
4393
4394
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4432,10 +4433,20 @@ export type AutoRagSearchResponse = {
|
|
|
4432
4433
|
has_more: boolean;
|
|
4433
4434
|
next_page: string | null;
|
|
4434
4435
|
};
|
|
4436
|
+
export type AutoRagListResponse = {
|
|
4437
|
+
id: string;
|
|
4438
|
+
enable: boolean;
|
|
4439
|
+
type: string;
|
|
4440
|
+
source: string;
|
|
4441
|
+
vectorize_name: string;
|
|
4442
|
+
paused: boolean;
|
|
4443
|
+
status: string;
|
|
4444
|
+
}[];
|
|
4435
4445
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4436
4446
|
response: string;
|
|
4437
4447
|
};
|
|
4438
4448
|
export declare abstract class AutoRAG {
|
|
4449
|
+
list(): Promise<AutoRagListResponse>;
|
|
4439
4450
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4440
4451
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4441
4452
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -507,7 +507,7 @@ interface DurableObjectNamespace<
|
|
|
507
507
|
jurisdiction: DurableObjectJurisdiction,
|
|
508
508
|
): DurableObjectNamespace<T>;
|
|
509
509
|
}
|
|
510
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
510
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
511
511
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
512
512
|
jurisdiction?: DurableObjectJurisdiction;
|
|
513
513
|
}
|
|
@@ -4246,7 +4246,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4246
4246
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4247
4247
|
aiGatewayLogId: string | null;
|
|
4248
4248
|
gateway(gatewayId: string): AiGateway;
|
|
4249
|
-
autorag(autoragId
|
|
4249
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4250
4250
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4251
4251
|
model: Name,
|
|
4252
4252
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4398,6 +4398,7 @@ declare abstract class AiGateway {
|
|
|
4398
4398
|
interface AutoRAGInternalError extends Error {}
|
|
4399
4399
|
interface AutoRAGNotFoundError extends Error {}
|
|
4400
4400
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4401
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4401
4402
|
type ComparisonFilter = {
|
|
4402
4403
|
key: string;
|
|
4403
4404
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4442,10 +4443,20 @@ type AutoRagSearchResponse = {
|
|
|
4442
4443
|
has_more: boolean;
|
|
4443
4444
|
next_page: string | null;
|
|
4444
4445
|
};
|
|
4446
|
+
type AutoRagListResponse = {
|
|
4447
|
+
id: string;
|
|
4448
|
+
enable: boolean;
|
|
4449
|
+
type: string;
|
|
4450
|
+
source: string;
|
|
4451
|
+
vectorize_name: string;
|
|
4452
|
+
paused: boolean;
|
|
4453
|
+
status: string;
|
|
4454
|
+
}[];
|
|
4445
4455
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4446
4456
|
response: string;
|
|
4447
4457
|
};
|
|
4448
4458
|
declare abstract class AutoRAG {
|
|
4459
|
+
list(): Promise<AutoRagListResponse>;
|
|
4449
4460
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4450
4461
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4451
4462
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-01-31/index.ts
CHANGED
|
@@ -512,7 +512,7 @@ export interface DurableObjectNamespace<
|
|
|
512
512
|
jurisdiction: DurableObjectJurisdiction,
|
|
513
513
|
): DurableObjectNamespace<T>;
|
|
514
514
|
}
|
|
515
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
515
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
516
516
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
517
517
|
jurisdiction?: DurableObjectJurisdiction;
|
|
518
518
|
}
|
|
@@ -4262,7 +4262,7 @@ export declare abstract class Ai<
|
|
|
4262
4262
|
> {
|
|
4263
4263
|
aiGatewayLogId: string | null;
|
|
4264
4264
|
gateway(gatewayId: string): AiGateway;
|
|
4265
|
-
autorag(autoragId
|
|
4265
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4266
4266
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4267
4267
|
model: Name,
|
|
4268
4268
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4414,6 +4414,7 @@ export declare abstract class AiGateway {
|
|
|
4414
4414
|
export interface AutoRAGInternalError extends Error {}
|
|
4415
4415
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4416
4416
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4417
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4417
4418
|
export type ComparisonFilter = {
|
|
4418
4419
|
key: string;
|
|
4419
4420
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4458,10 +4459,20 @@ export type AutoRagSearchResponse = {
|
|
|
4458
4459
|
has_more: boolean;
|
|
4459
4460
|
next_page: string | null;
|
|
4460
4461
|
};
|
|
4462
|
+
export type AutoRagListResponse = {
|
|
4463
|
+
id: string;
|
|
4464
|
+
enable: boolean;
|
|
4465
|
+
type: string;
|
|
4466
|
+
source: string;
|
|
4467
|
+
vectorize_name: string;
|
|
4468
|
+
paused: boolean;
|
|
4469
|
+
status: string;
|
|
4470
|
+
}[];
|
|
4461
4471
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4462
4472
|
response: string;
|
|
4463
4473
|
};
|
|
4464
4474
|
export declare abstract class AutoRAG {
|
|
4475
|
+
list(): Promise<AutoRagListResponse>;
|
|
4465
4476
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4466
4477
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4467
4478
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -525,7 +525,7 @@ interface DurableObjectNamespace<
|
|
|
525
525
|
jurisdiction: DurableObjectJurisdiction,
|
|
526
526
|
): DurableObjectNamespace<T>;
|
|
527
527
|
}
|
|
528
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
528
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
529
529
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
530
530
|
jurisdiction?: DurableObjectJurisdiction;
|
|
531
531
|
}
|
|
@@ -4264,7 +4264,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4264
4264
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4265
4265
|
aiGatewayLogId: string | null;
|
|
4266
4266
|
gateway(gatewayId: string): AiGateway;
|
|
4267
|
-
autorag(autoragId
|
|
4267
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4268
4268
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4269
4269
|
model: Name,
|
|
4270
4270
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4416,6 +4416,7 @@ declare abstract class AiGateway {
|
|
|
4416
4416
|
interface AutoRAGInternalError extends Error {}
|
|
4417
4417
|
interface AutoRAGNotFoundError extends Error {}
|
|
4418
4418
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4419
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4419
4420
|
type ComparisonFilter = {
|
|
4420
4421
|
key: string;
|
|
4421
4422
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4460,10 +4461,20 @@ type AutoRagSearchResponse = {
|
|
|
4460
4461
|
has_more: boolean;
|
|
4461
4462
|
next_page: string | null;
|
|
4462
4463
|
};
|
|
4464
|
+
type AutoRagListResponse = {
|
|
4465
|
+
id: string;
|
|
4466
|
+
enable: boolean;
|
|
4467
|
+
type: string;
|
|
4468
|
+
source: string;
|
|
4469
|
+
vectorize_name: string;
|
|
4470
|
+
paused: boolean;
|
|
4471
|
+
status: string;
|
|
4472
|
+
}[];
|
|
4463
4473
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4464
4474
|
response: string;
|
|
4465
4475
|
};
|
|
4466
4476
|
declare abstract class AutoRAG {
|
|
4477
|
+
list(): Promise<AutoRagListResponse>;
|
|
4467
4478
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4468
4479
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4469
4480
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-03-21/index.ts
CHANGED
|
@@ -530,7 +530,7 @@ export interface DurableObjectNamespace<
|
|
|
530
530
|
jurisdiction: DurableObjectJurisdiction,
|
|
531
531
|
): DurableObjectNamespace<T>;
|
|
532
532
|
}
|
|
533
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
533
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
534
534
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
535
535
|
jurisdiction?: DurableObjectJurisdiction;
|
|
536
536
|
}
|
|
@@ -4280,7 +4280,7 @@ export declare abstract class Ai<
|
|
|
4280
4280
|
> {
|
|
4281
4281
|
aiGatewayLogId: string | null;
|
|
4282
4282
|
gateway(gatewayId: string): AiGateway;
|
|
4283
|
-
autorag(autoragId
|
|
4283
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4284
4284
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4285
4285
|
model: Name,
|
|
4286
4286
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4432,6 +4432,7 @@ export declare abstract class AiGateway {
|
|
|
4432
4432
|
export interface AutoRAGInternalError extends Error {}
|
|
4433
4433
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4434
4434
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4435
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4435
4436
|
export type ComparisonFilter = {
|
|
4436
4437
|
key: string;
|
|
4437
4438
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4476,10 +4477,20 @@ export type AutoRagSearchResponse = {
|
|
|
4476
4477
|
has_more: boolean;
|
|
4477
4478
|
next_page: string | null;
|
|
4478
4479
|
};
|
|
4480
|
+
export type AutoRagListResponse = {
|
|
4481
|
+
id: string;
|
|
4482
|
+
enable: boolean;
|
|
4483
|
+
type: string;
|
|
4484
|
+
source: string;
|
|
4485
|
+
vectorize_name: string;
|
|
4486
|
+
paused: boolean;
|
|
4487
|
+
status: string;
|
|
4488
|
+
}[];
|
|
4479
4489
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4480
4490
|
response: string;
|
|
4481
4491
|
};
|
|
4482
4492
|
export declare abstract class AutoRAG {
|
|
4493
|
+
list(): Promise<AutoRagListResponse>;
|
|
4483
4494
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4484
4495
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4485
4496
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -525,7 +525,7 @@ interface DurableObjectNamespace<
|
|
|
525
525
|
jurisdiction: DurableObjectJurisdiction,
|
|
526
526
|
): DurableObjectNamespace<T>;
|
|
527
527
|
}
|
|
528
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
528
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
529
529
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
530
530
|
jurisdiction?: DurableObjectJurisdiction;
|
|
531
531
|
}
|
|
@@ -4265,7 +4265,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4265
4265
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4266
4266
|
aiGatewayLogId: string | null;
|
|
4267
4267
|
gateway(gatewayId: string): AiGateway;
|
|
4268
|
-
autorag(autoragId
|
|
4268
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4269
4269
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4270
4270
|
model: Name,
|
|
4271
4271
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4417,6 +4417,7 @@ declare abstract class AiGateway {
|
|
|
4417
4417
|
interface AutoRAGInternalError extends Error {}
|
|
4418
4418
|
interface AutoRAGNotFoundError extends Error {}
|
|
4419
4419
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4420
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4420
4421
|
type ComparisonFilter = {
|
|
4421
4422
|
key: string;
|
|
4422
4423
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4461,10 +4462,20 @@ type AutoRagSearchResponse = {
|
|
|
4461
4462
|
has_more: boolean;
|
|
4462
4463
|
next_page: string | null;
|
|
4463
4464
|
};
|
|
4465
|
+
type AutoRagListResponse = {
|
|
4466
|
+
id: string;
|
|
4467
|
+
enable: boolean;
|
|
4468
|
+
type: string;
|
|
4469
|
+
source: string;
|
|
4470
|
+
vectorize_name: string;
|
|
4471
|
+
paused: boolean;
|
|
4472
|
+
status: string;
|
|
4473
|
+
}[];
|
|
4464
4474
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4465
4475
|
response: string;
|
|
4466
4476
|
};
|
|
4467
4477
|
declare abstract class AutoRAG {
|
|
4478
|
+
list(): Promise<AutoRagListResponse>;
|
|
4468
4479
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4469
4480
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4470
4481
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-08-04/index.ts
CHANGED
|
@@ -530,7 +530,7 @@ export interface DurableObjectNamespace<
|
|
|
530
530
|
jurisdiction: DurableObjectJurisdiction,
|
|
531
531
|
): DurableObjectNamespace<T>;
|
|
532
532
|
}
|
|
533
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
533
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
534
534
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
535
535
|
jurisdiction?: DurableObjectJurisdiction;
|
|
536
536
|
}
|
|
@@ -4281,7 +4281,7 @@ export declare abstract class Ai<
|
|
|
4281
4281
|
> {
|
|
4282
4282
|
aiGatewayLogId: string | null;
|
|
4283
4283
|
gateway(gatewayId: string): AiGateway;
|
|
4284
|
-
autorag(autoragId
|
|
4284
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4285
4285
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4286
4286
|
model: Name,
|
|
4287
4287
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4433,6 +4433,7 @@ export declare abstract class AiGateway {
|
|
|
4433
4433
|
export interface AutoRAGInternalError extends Error {}
|
|
4434
4434
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4435
4435
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4436
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4436
4437
|
export type ComparisonFilter = {
|
|
4437
4438
|
key: string;
|
|
4438
4439
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4477,10 +4478,20 @@ export type AutoRagSearchResponse = {
|
|
|
4477
4478
|
has_more: boolean;
|
|
4478
4479
|
next_page: string | null;
|
|
4479
4480
|
};
|
|
4481
|
+
export type AutoRagListResponse = {
|
|
4482
|
+
id: string;
|
|
4483
|
+
enable: boolean;
|
|
4484
|
+
type: string;
|
|
4485
|
+
source: string;
|
|
4486
|
+
vectorize_name: string;
|
|
4487
|
+
paused: boolean;
|
|
4488
|
+
status: string;
|
|
4489
|
+
}[];
|
|
4480
4490
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4481
4491
|
response: string;
|
|
4482
4492
|
};
|
|
4483
4493
|
export declare abstract class AutoRAG {
|
|
4494
|
+
list(): Promise<AutoRagListResponse>;
|
|
4484
4495
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4485
4496
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4486
4497
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -525,7 +525,7 @@ interface DurableObjectNamespace<
|
|
|
525
525
|
jurisdiction: DurableObjectJurisdiction,
|
|
526
526
|
): DurableObjectNamespace<T>;
|
|
527
527
|
}
|
|
528
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
528
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
529
529
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
530
530
|
jurisdiction?: DurableObjectJurisdiction;
|
|
531
531
|
}
|
|
@@ -4269,7 +4269,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4269
4269
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4270
4270
|
aiGatewayLogId: string | null;
|
|
4271
4271
|
gateway(gatewayId: string): AiGateway;
|
|
4272
|
-
autorag(autoragId
|
|
4272
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4273
4273
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4274
4274
|
model: Name,
|
|
4275
4275
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4421,6 +4421,7 @@ declare abstract class AiGateway {
|
|
|
4421
4421
|
interface AutoRAGInternalError extends Error {}
|
|
4422
4422
|
interface AutoRAGNotFoundError extends Error {}
|
|
4423
4423
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4424
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4424
4425
|
type ComparisonFilter = {
|
|
4425
4426
|
key: string;
|
|
4426
4427
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4465,10 +4466,20 @@ type AutoRagSearchResponse = {
|
|
|
4465
4466
|
has_more: boolean;
|
|
4466
4467
|
next_page: string | null;
|
|
4467
4468
|
};
|
|
4469
|
+
type AutoRagListResponse = {
|
|
4470
|
+
id: string;
|
|
4471
|
+
enable: boolean;
|
|
4472
|
+
type: string;
|
|
4473
|
+
source: string;
|
|
4474
|
+
vectorize_name: string;
|
|
4475
|
+
paused: boolean;
|
|
4476
|
+
status: string;
|
|
4477
|
+
}[];
|
|
4468
4478
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4469
4479
|
response: string;
|
|
4470
4480
|
};
|
|
4471
4481
|
declare abstract class AutoRAG {
|
|
4482
|
+
list(): Promise<AutoRagListResponse>;
|
|
4472
4483
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4473
4484
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4474
4485
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-10-31/index.ts
CHANGED
|
@@ -530,7 +530,7 @@ export interface DurableObjectNamespace<
|
|
|
530
530
|
jurisdiction: DurableObjectJurisdiction,
|
|
531
531
|
): DurableObjectNamespace<T>;
|
|
532
532
|
}
|
|
533
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
533
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
534
534
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
535
535
|
jurisdiction?: DurableObjectJurisdiction;
|
|
536
536
|
}
|
|
@@ -4285,7 +4285,7 @@ export declare abstract class Ai<
|
|
|
4285
4285
|
> {
|
|
4286
4286
|
aiGatewayLogId: string | null;
|
|
4287
4287
|
gateway(gatewayId: string): AiGateway;
|
|
4288
|
-
autorag(autoragId
|
|
4288
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4289
4289
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4290
4290
|
model: Name,
|
|
4291
4291
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4437,6 +4437,7 @@ export declare abstract class AiGateway {
|
|
|
4437
4437
|
export interface AutoRAGInternalError extends Error {}
|
|
4438
4438
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4439
4439
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4440
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4440
4441
|
export type ComparisonFilter = {
|
|
4441
4442
|
key: string;
|
|
4442
4443
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4481,10 +4482,20 @@ export type AutoRagSearchResponse = {
|
|
|
4481
4482
|
has_more: boolean;
|
|
4482
4483
|
next_page: string | null;
|
|
4483
4484
|
};
|
|
4485
|
+
export type AutoRagListResponse = {
|
|
4486
|
+
id: string;
|
|
4487
|
+
enable: boolean;
|
|
4488
|
+
type: string;
|
|
4489
|
+
source: string;
|
|
4490
|
+
vectorize_name: string;
|
|
4491
|
+
paused: boolean;
|
|
4492
|
+
status: string;
|
|
4493
|
+
}[];
|
|
4484
4494
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4485
4495
|
response: string;
|
|
4486
4496
|
};
|
|
4487
4497
|
export declare abstract class AutoRAG {
|
|
4498
|
+
list(): Promise<AutoRagListResponse>;
|
|
4488
4499
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4489
4500
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4490
4501
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -530,7 +530,7 @@ interface DurableObjectNamespace<
|
|
|
530
530
|
jurisdiction: DurableObjectJurisdiction,
|
|
531
531
|
): DurableObjectNamespace<T>;
|
|
532
532
|
}
|
|
533
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
533
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
534
534
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
535
535
|
jurisdiction?: DurableObjectJurisdiction;
|
|
536
536
|
}
|
|
@@ -4274,7 +4274,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4274
4274
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4275
4275
|
aiGatewayLogId: string | null;
|
|
4276
4276
|
gateway(gatewayId: string): AiGateway;
|
|
4277
|
-
autorag(autoragId
|
|
4277
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4278
4278
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4279
4279
|
model: Name,
|
|
4280
4280
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4426,6 +4426,7 @@ declare abstract class AiGateway {
|
|
|
4426
4426
|
interface AutoRAGInternalError extends Error {}
|
|
4427
4427
|
interface AutoRAGNotFoundError extends Error {}
|
|
4428
4428
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4429
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4429
4430
|
type ComparisonFilter = {
|
|
4430
4431
|
key: string;
|
|
4431
4432
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4470,10 +4471,20 @@ type AutoRagSearchResponse = {
|
|
|
4470
4471
|
has_more: boolean;
|
|
4471
4472
|
next_page: string | null;
|
|
4472
4473
|
};
|
|
4474
|
+
type AutoRagListResponse = {
|
|
4475
|
+
id: string;
|
|
4476
|
+
enable: boolean;
|
|
4477
|
+
type: string;
|
|
4478
|
+
source: string;
|
|
4479
|
+
vectorize_name: string;
|
|
4480
|
+
paused: boolean;
|
|
4481
|
+
status: string;
|
|
4482
|
+
}[];
|
|
4473
4483
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4474
4484
|
response: string;
|
|
4475
4485
|
};
|
|
4476
4486
|
declare abstract class AutoRAG {
|
|
4487
|
+
list(): Promise<AutoRagListResponse>;
|
|
4477
4488
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4478
4489
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4479
4490
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2022-11-30/index.ts
CHANGED
|
@@ -535,7 +535,7 @@ export interface DurableObjectNamespace<
|
|
|
535
535
|
jurisdiction: DurableObjectJurisdiction,
|
|
536
536
|
): DurableObjectNamespace<T>;
|
|
537
537
|
}
|
|
538
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
538
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
539
539
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
540
540
|
jurisdiction?: DurableObjectJurisdiction;
|
|
541
541
|
}
|
|
@@ -4290,7 +4290,7 @@ export declare abstract class Ai<
|
|
|
4290
4290
|
> {
|
|
4291
4291
|
aiGatewayLogId: string | null;
|
|
4292
4292
|
gateway(gatewayId: string): AiGateway;
|
|
4293
|
-
autorag(autoragId
|
|
4293
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4294
4294
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4295
4295
|
model: Name,
|
|
4296
4296
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4442,6 +4442,7 @@ export declare abstract class AiGateway {
|
|
|
4442
4442
|
export interface AutoRAGInternalError extends Error {}
|
|
4443
4443
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4444
4444
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4445
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4445
4446
|
export type ComparisonFilter = {
|
|
4446
4447
|
key: string;
|
|
4447
4448
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4486,10 +4487,20 @@ export type AutoRagSearchResponse = {
|
|
|
4486
4487
|
has_more: boolean;
|
|
4487
4488
|
next_page: string | null;
|
|
4488
4489
|
};
|
|
4490
|
+
export type AutoRagListResponse = {
|
|
4491
|
+
id: string;
|
|
4492
|
+
enable: boolean;
|
|
4493
|
+
type: string;
|
|
4494
|
+
source: string;
|
|
4495
|
+
vectorize_name: string;
|
|
4496
|
+
paused: boolean;
|
|
4497
|
+
status: string;
|
|
4498
|
+
}[];
|
|
4489
4499
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4490
4500
|
response: string;
|
|
4491
4501
|
};
|
|
4492
4502
|
export declare abstract class AutoRAG {
|
|
4503
|
+
list(): Promise<AutoRagListResponse>;
|
|
4493
4504
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4494
4505
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4495
4506
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -530,7 +530,7 @@ interface DurableObjectNamespace<
|
|
|
530
530
|
jurisdiction: DurableObjectJurisdiction,
|
|
531
531
|
): DurableObjectNamespace<T>;
|
|
532
532
|
}
|
|
533
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
533
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
534
534
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
535
535
|
jurisdiction?: DurableObjectJurisdiction;
|
|
536
536
|
}
|
|
@@ -4276,7 +4276,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4276
4276
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4277
4277
|
aiGatewayLogId: string | null;
|
|
4278
4278
|
gateway(gatewayId: string): AiGateway;
|
|
4279
|
-
autorag(autoragId
|
|
4279
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4280
4280
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4281
4281
|
model: Name,
|
|
4282
4282
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4428,6 +4428,7 @@ declare abstract class AiGateway {
|
|
|
4428
4428
|
interface AutoRAGInternalError extends Error {}
|
|
4429
4429
|
interface AutoRAGNotFoundError extends Error {}
|
|
4430
4430
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4431
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4431
4432
|
type ComparisonFilter = {
|
|
4432
4433
|
key: string;
|
|
4433
4434
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4472,10 +4473,20 @@ type AutoRagSearchResponse = {
|
|
|
4472
4473
|
has_more: boolean;
|
|
4473
4474
|
next_page: string | null;
|
|
4474
4475
|
};
|
|
4476
|
+
type AutoRagListResponse = {
|
|
4477
|
+
id: string;
|
|
4478
|
+
enable: boolean;
|
|
4479
|
+
type: string;
|
|
4480
|
+
source: string;
|
|
4481
|
+
vectorize_name: string;
|
|
4482
|
+
paused: boolean;
|
|
4483
|
+
status: string;
|
|
4484
|
+
}[];
|
|
4475
4485
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4476
4486
|
response: string;
|
|
4477
4487
|
};
|
|
4478
4488
|
declare abstract class AutoRAG {
|
|
4489
|
+
list(): Promise<AutoRagListResponse>;
|
|
4479
4490
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4480
4491
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4481
4492
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2023-03-01/index.ts
CHANGED
|
@@ -535,7 +535,7 @@ export interface DurableObjectNamespace<
|
|
|
535
535
|
jurisdiction: DurableObjectJurisdiction,
|
|
536
536
|
): DurableObjectNamespace<T>;
|
|
537
537
|
}
|
|
538
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
538
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
539
539
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
540
540
|
jurisdiction?: DurableObjectJurisdiction;
|
|
541
541
|
}
|
|
@@ -4292,7 +4292,7 @@ export declare abstract class Ai<
|
|
|
4292
4292
|
> {
|
|
4293
4293
|
aiGatewayLogId: string | null;
|
|
4294
4294
|
gateway(gatewayId: string): AiGateway;
|
|
4295
|
-
autorag(autoragId
|
|
4295
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4296
4296
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4297
4297
|
model: Name,
|
|
4298
4298
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4444,6 +4444,7 @@ export declare abstract class AiGateway {
|
|
|
4444
4444
|
export interface AutoRAGInternalError extends Error {}
|
|
4445
4445
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4446
4446
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4447
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4447
4448
|
export type ComparisonFilter = {
|
|
4448
4449
|
key: string;
|
|
4449
4450
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4488,10 +4489,20 @@ export type AutoRagSearchResponse = {
|
|
|
4488
4489
|
has_more: boolean;
|
|
4489
4490
|
next_page: string | null;
|
|
4490
4491
|
};
|
|
4492
|
+
export type AutoRagListResponse = {
|
|
4493
|
+
id: string;
|
|
4494
|
+
enable: boolean;
|
|
4495
|
+
type: string;
|
|
4496
|
+
source: string;
|
|
4497
|
+
vectorize_name: string;
|
|
4498
|
+
paused: boolean;
|
|
4499
|
+
status: string;
|
|
4500
|
+
}[];
|
|
4491
4501
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4492
4502
|
response: string;
|
|
4493
4503
|
};
|
|
4494
4504
|
export declare abstract class AutoRAG {
|
|
4505
|
+
list(): Promise<AutoRagListResponse>;
|
|
4495
4506
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4496
4507
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4497
4508
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -530,7 +530,7 @@ interface DurableObjectNamespace<
|
|
|
530
530
|
jurisdiction: DurableObjectJurisdiction,
|
|
531
531
|
): DurableObjectNamespace<T>;
|
|
532
532
|
}
|
|
533
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
533
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
534
534
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
535
535
|
jurisdiction?: DurableObjectJurisdiction;
|
|
536
536
|
}
|
|
@@ -4276,7 +4276,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4276
4276
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4277
4277
|
aiGatewayLogId: string | null;
|
|
4278
4278
|
gateway(gatewayId: string): AiGateway;
|
|
4279
|
-
autorag(autoragId
|
|
4279
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4280
4280
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4281
4281
|
model: Name,
|
|
4282
4282
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4428,6 +4428,7 @@ declare abstract class AiGateway {
|
|
|
4428
4428
|
interface AutoRAGInternalError extends Error {}
|
|
4429
4429
|
interface AutoRAGNotFoundError extends Error {}
|
|
4430
4430
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4431
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4431
4432
|
type ComparisonFilter = {
|
|
4432
4433
|
key: string;
|
|
4433
4434
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4472,10 +4473,20 @@ type AutoRagSearchResponse = {
|
|
|
4472
4473
|
has_more: boolean;
|
|
4473
4474
|
next_page: string | null;
|
|
4474
4475
|
};
|
|
4476
|
+
type AutoRagListResponse = {
|
|
4477
|
+
id: string;
|
|
4478
|
+
enable: boolean;
|
|
4479
|
+
type: string;
|
|
4480
|
+
source: string;
|
|
4481
|
+
vectorize_name: string;
|
|
4482
|
+
paused: boolean;
|
|
4483
|
+
status: string;
|
|
4484
|
+
}[];
|
|
4475
4485
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4476
4486
|
response: string;
|
|
4477
4487
|
};
|
|
4478
4488
|
declare abstract class AutoRAG {
|
|
4489
|
+
list(): Promise<AutoRagListResponse>;
|
|
4479
4490
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4480
4491
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4481
4492
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/2023-07-01/index.ts
CHANGED
|
@@ -535,7 +535,7 @@ export interface DurableObjectNamespace<
|
|
|
535
535
|
jurisdiction: DurableObjectJurisdiction,
|
|
536
536
|
): DurableObjectNamespace<T>;
|
|
537
537
|
}
|
|
538
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
538
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
539
539
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
540
540
|
jurisdiction?: DurableObjectJurisdiction;
|
|
541
541
|
}
|
|
@@ -4292,7 +4292,7 @@ export declare abstract class Ai<
|
|
|
4292
4292
|
> {
|
|
4293
4293
|
aiGatewayLogId: string | null;
|
|
4294
4294
|
gateway(gatewayId: string): AiGateway;
|
|
4295
|
-
autorag(autoragId
|
|
4295
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4296
4296
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4297
4297
|
model: Name,
|
|
4298
4298
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4444,6 +4444,7 @@ export declare abstract class AiGateway {
|
|
|
4444
4444
|
export interface AutoRAGInternalError extends Error {}
|
|
4445
4445
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4446
4446
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4447
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4447
4448
|
export type ComparisonFilter = {
|
|
4448
4449
|
key: string;
|
|
4449
4450
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4488,10 +4489,20 @@ export type AutoRagSearchResponse = {
|
|
|
4488
4489
|
has_more: boolean;
|
|
4489
4490
|
next_page: string | null;
|
|
4490
4491
|
};
|
|
4492
|
+
export type AutoRagListResponse = {
|
|
4493
|
+
id: string;
|
|
4494
|
+
enable: boolean;
|
|
4495
|
+
type: string;
|
|
4496
|
+
source: string;
|
|
4497
|
+
vectorize_name: string;
|
|
4498
|
+
paused: boolean;
|
|
4499
|
+
status: string;
|
|
4500
|
+
}[];
|
|
4491
4501
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4492
4502
|
response: string;
|
|
4493
4503
|
};
|
|
4494
4504
|
export declare abstract class AutoRAG {
|
|
4505
|
+
list(): Promise<AutoRagListResponse>;
|
|
4495
4506
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4496
4507
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4497
4508
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/experimental/index.d.ts
CHANGED
|
@@ -545,7 +545,7 @@ interface DurableObjectNamespace<
|
|
|
545
545
|
jurisdiction: DurableObjectJurisdiction,
|
|
546
546
|
): DurableObjectNamespace<T>;
|
|
547
547
|
}
|
|
548
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
548
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
549
549
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
550
550
|
jurisdiction?: DurableObjectJurisdiction;
|
|
551
551
|
}
|
|
@@ -4517,7 +4517,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4517
4517
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4518
4518
|
aiGatewayLogId: string | null;
|
|
4519
4519
|
gateway(gatewayId: string): AiGateway;
|
|
4520
|
-
autorag(autoragId
|
|
4520
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4521
4521
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4522
4522
|
model: Name,
|
|
4523
4523
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4669,6 +4669,7 @@ declare abstract class AiGateway {
|
|
|
4669
4669
|
interface AutoRAGInternalError extends Error {}
|
|
4670
4670
|
interface AutoRAGNotFoundError extends Error {}
|
|
4671
4671
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4672
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4672
4673
|
type ComparisonFilter = {
|
|
4673
4674
|
key: string;
|
|
4674
4675
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4713,10 +4714,20 @@ type AutoRagSearchResponse = {
|
|
|
4713
4714
|
has_more: boolean;
|
|
4714
4715
|
next_page: string | null;
|
|
4715
4716
|
};
|
|
4717
|
+
type AutoRagListResponse = {
|
|
4718
|
+
id: string;
|
|
4719
|
+
enable: boolean;
|
|
4720
|
+
type: string;
|
|
4721
|
+
source: string;
|
|
4722
|
+
vectorize_name: string;
|
|
4723
|
+
paused: boolean;
|
|
4724
|
+
status: string;
|
|
4725
|
+
}[];
|
|
4716
4726
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4717
4727
|
response: string;
|
|
4718
4728
|
};
|
|
4719
4729
|
declare abstract class AutoRAG {
|
|
4730
|
+
list(): Promise<AutoRagListResponse>;
|
|
4720
4731
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4721
4732
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4722
4733
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/experimental/index.ts
CHANGED
|
@@ -550,7 +550,7 @@ export interface DurableObjectNamespace<
|
|
|
550
550
|
jurisdiction: DurableObjectJurisdiction,
|
|
551
551
|
): DurableObjectNamespace<T>;
|
|
552
552
|
}
|
|
553
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
553
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
554
554
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
555
555
|
jurisdiction?: DurableObjectJurisdiction;
|
|
556
556
|
}
|
|
@@ -4533,7 +4533,7 @@ export declare abstract class Ai<
|
|
|
4533
4533
|
> {
|
|
4534
4534
|
aiGatewayLogId: string | null;
|
|
4535
4535
|
gateway(gatewayId: string): AiGateway;
|
|
4536
|
-
autorag(autoragId
|
|
4536
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4537
4537
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4538
4538
|
model: Name,
|
|
4539
4539
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4685,6 +4685,7 @@ export declare abstract class AiGateway {
|
|
|
4685
4685
|
export interface AutoRAGInternalError extends Error {}
|
|
4686
4686
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4687
4687
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4688
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4688
4689
|
export type ComparisonFilter = {
|
|
4689
4690
|
key: string;
|
|
4690
4691
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4729,10 +4730,20 @@ export type AutoRagSearchResponse = {
|
|
|
4729
4730
|
has_more: boolean;
|
|
4730
4731
|
next_page: string | null;
|
|
4731
4732
|
};
|
|
4733
|
+
export type AutoRagListResponse = {
|
|
4734
|
+
id: string;
|
|
4735
|
+
enable: boolean;
|
|
4736
|
+
type: string;
|
|
4737
|
+
source: string;
|
|
4738
|
+
vectorize_name: string;
|
|
4739
|
+
paused: boolean;
|
|
4740
|
+
status: string;
|
|
4741
|
+
}[];
|
|
4732
4742
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4733
4743
|
response: string;
|
|
4734
4744
|
};
|
|
4735
4745
|
export declare abstract class AutoRAG {
|
|
4746
|
+
list(): Promise<AutoRagListResponse>;
|
|
4736
4747
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4737
4748
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4738
4749
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/index.d.ts
CHANGED
|
@@ -507,7 +507,7 @@ interface DurableObjectNamespace<
|
|
|
507
507
|
jurisdiction: DurableObjectJurisdiction,
|
|
508
508
|
): DurableObjectNamespace<T>;
|
|
509
509
|
}
|
|
510
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
510
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
511
511
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
512
512
|
jurisdiction?: DurableObjectJurisdiction;
|
|
513
513
|
}
|
|
@@ -4220,7 +4220,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4220
4220
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4221
4221
|
aiGatewayLogId: string | null;
|
|
4222
4222
|
gateway(gatewayId: string): AiGateway;
|
|
4223
|
-
autorag(autoragId
|
|
4223
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4224
4224
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4225
4225
|
model: Name,
|
|
4226
4226
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4372,6 +4372,7 @@ declare abstract class AiGateway {
|
|
|
4372
4372
|
interface AutoRAGInternalError extends Error {}
|
|
4373
4373
|
interface AutoRAGNotFoundError extends Error {}
|
|
4374
4374
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4375
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4375
4376
|
type ComparisonFilter = {
|
|
4376
4377
|
key: string;
|
|
4377
4378
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4416,10 +4417,20 @@ type AutoRagSearchResponse = {
|
|
|
4416
4417
|
has_more: boolean;
|
|
4417
4418
|
next_page: string | null;
|
|
4418
4419
|
};
|
|
4420
|
+
type AutoRagListResponse = {
|
|
4421
|
+
id: string;
|
|
4422
|
+
enable: boolean;
|
|
4423
|
+
type: string;
|
|
4424
|
+
source: string;
|
|
4425
|
+
vectorize_name: string;
|
|
4426
|
+
paused: boolean;
|
|
4427
|
+
status: string;
|
|
4428
|
+
}[];
|
|
4419
4429
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4420
4430
|
response: string;
|
|
4421
4431
|
};
|
|
4422
4432
|
declare abstract class AutoRAG {
|
|
4433
|
+
list(): Promise<AutoRagListResponse>;
|
|
4423
4434
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4424
4435
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4425
4436
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/index.ts
CHANGED
|
@@ -512,7 +512,7 @@ export interface DurableObjectNamespace<
|
|
|
512
512
|
jurisdiction: DurableObjectJurisdiction,
|
|
513
513
|
): DurableObjectNamespace<T>;
|
|
514
514
|
}
|
|
515
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
515
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
516
516
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
517
517
|
jurisdiction?: DurableObjectJurisdiction;
|
|
518
518
|
}
|
|
@@ -4236,7 +4236,7 @@ export declare abstract class Ai<
|
|
|
4236
4236
|
> {
|
|
4237
4237
|
aiGatewayLogId: string | null;
|
|
4238
4238
|
gateway(gatewayId: string): AiGateway;
|
|
4239
|
-
autorag(autoragId
|
|
4239
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4240
4240
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4241
4241
|
model: Name,
|
|
4242
4242
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4388,6 +4388,7 @@ export declare abstract class AiGateway {
|
|
|
4388
4388
|
export interface AutoRAGInternalError extends Error {}
|
|
4389
4389
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4390
4390
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4391
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4391
4392
|
export type ComparisonFilter = {
|
|
4392
4393
|
key: string;
|
|
4393
4394
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4432,10 +4433,20 @@ export type AutoRagSearchResponse = {
|
|
|
4432
4433
|
has_more: boolean;
|
|
4433
4434
|
next_page: string | null;
|
|
4434
4435
|
};
|
|
4436
|
+
export type AutoRagListResponse = {
|
|
4437
|
+
id: string;
|
|
4438
|
+
enable: boolean;
|
|
4439
|
+
type: string;
|
|
4440
|
+
source: string;
|
|
4441
|
+
vectorize_name: string;
|
|
4442
|
+
paused: boolean;
|
|
4443
|
+
status: string;
|
|
4444
|
+
}[];
|
|
4435
4445
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4436
4446
|
response: string;
|
|
4437
4447
|
};
|
|
4438
4448
|
export declare abstract class AutoRAG {
|
|
4449
|
+
list(): Promise<AutoRagListResponse>;
|
|
4439
4450
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4440
4451
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4441
4452
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/latest/index.d.ts
CHANGED
|
@@ -532,7 +532,7 @@ interface DurableObjectNamespace<
|
|
|
532
532
|
jurisdiction: DurableObjectJurisdiction,
|
|
533
533
|
): DurableObjectNamespace<T>;
|
|
534
534
|
}
|
|
535
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
535
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
536
536
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
537
537
|
jurisdiction?: DurableObjectJurisdiction;
|
|
538
538
|
}
|
|
@@ -4283,7 +4283,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4283
4283
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4284
4284
|
aiGatewayLogId: string | null;
|
|
4285
4285
|
gateway(gatewayId: string): AiGateway;
|
|
4286
|
-
autorag(autoragId
|
|
4286
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4287
4287
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4288
4288
|
model: Name,
|
|
4289
4289
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4435,6 +4435,7 @@ declare abstract class AiGateway {
|
|
|
4435
4435
|
interface AutoRAGInternalError extends Error {}
|
|
4436
4436
|
interface AutoRAGNotFoundError extends Error {}
|
|
4437
4437
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4438
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4438
4439
|
type ComparisonFilter = {
|
|
4439
4440
|
key: string;
|
|
4440
4441
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4479,10 +4480,20 @@ type AutoRagSearchResponse = {
|
|
|
4479
4480
|
has_more: boolean;
|
|
4480
4481
|
next_page: string | null;
|
|
4481
4482
|
};
|
|
4483
|
+
type AutoRagListResponse = {
|
|
4484
|
+
id: string;
|
|
4485
|
+
enable: boolean;
|
|
4486
|
+
type: string;
|
|
4487
|
+
source: string;
|
|
4488
|
+
vectorize_name: string;
|
|
4489
|
+
paused: boolean;
|
|
4490
|
+
status: string;
|
|
4491
|
+
}[];
|
|
4482
4492
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4483
4493
|
response: string;
|
|
4484
4494
|
};
|
|
4485
4495
|
declare abstract class AutoRAG {
|
|
4496
|
+
list(): Promise<AutoRagListResponse>;
|
|
4486
4497
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4487
4498
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4488
4499
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/latest/index.ts
CHANGED
|
@@ -537,7 +537,7 @@ export interface DurableObjectNamespace<
|
|
|
537
537
|
jurisdiction: DurableObjectJurisdiction,
|
|
538
538
|
): DurableObjectNamespace<T>;
|
|
539
539
|
}
|
|
540
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
540
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
541
541
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
542
542
|
jurisdiction?: DurableObjectJurisdiction;
|
|
543
543
|
}
|
|
@@ -4299,7 +4299,7 @@ export declare abstract class Ai<
|
|
|
4299
4299
|
> {
|
|
4300
4300
|
aiGatewayLogId: string | null;
|
|
4301
4301
|
gateway(gatewayId: string): AiGateway;
|
|
4302
|
-
autorag(autoragId
|
|
4302
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4303
4303
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4304
4304
|
model: Name,
|
|
4305
4305
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4451,6 +4451,7 @@ export declare abstract class AiGateway {
|
|
|
4451
4451
|
export interface AutoRAGInternalError extends Error {}
|
|
4452
4452
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4453
4453
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4454
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4454
4455
|
export type ComparisonFilter = {
|
|
4455
4456
|
key: string;
|
|
4456
4457
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4495,10 +4496,20 @@ export type AutoRagSearchResponse = {
|
|
|
4495
4496
|
has_more: boolean;
|
|
4496
4497
|
next_page: string | null;
|
|
4497
4498
|
};
|
|
4499
|
+
export type AutoRagListResponse = {
|
|
4500
|
+
id: string;
|
|
4501
|
+
enable: boolean;
|
|
4502
|
+
type: string;
|
|
4503
|
+
source: string;
|
|
4504
|
+
vectorize_name: string;
|
|
4505
|
+
paused: boolean;
|
|
4506
|
+
status: string;
|
|
4507
|
+
}[];
|
|
4498
4508
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4499
4509
|
response: string;
|
|
4500
4510
|
};
|
|
4501
4511
|
export declare abstract class AutoRAG {
|
|
4512
|
+
list(): Promise<AutoRagListResponse>;
|
|
4502
4513
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4503
4514
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4504
4515
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/oldest/index.d.ts
CHANGED
|
@@ -507,7 +507,7 @@ interface DurableObjectNamespace<
|
|
|
507
507
|
jurisdiction: DurableObjectJurisdiction,
|
|
508
508
|
): DurableObjectNamespace<T>;
|
|
509
509
|
}
|
|
510
|
-
type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
510
|
+
type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
511
511
|
interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
512
512
|
jurisdiction?: DurableObjectJurisdiction;
|
|
513
513
|
}
|
|
@@ -4220,7 +4220,7 @@ type AiModelListType = Record<string, any>;
|
|
|
4220
4220
|
declare abstract class Ai<AiModelList extends AiModelListType = AiModels> {
|
|
4221
4221
|
aiGatewayLogId: string | null;
|
|
4222
4222
|
gateway(gatewayId: string): AiGateway;
|
|
4223
|
-
autorag(autoragId
|
|
4223
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4224
4224
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4225
4225
|
model: Name,
|
|
4226
4226
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4372,6 +4372,7 @@ declare abstract class AiGateway {
|
|
|
4372
4372
|
interface AutoRAGInternalError extends Error {}
|
|
4373
4373
|
interface AutoRAGNotFoundError extends Error {}
|
|
4374
4374
|
interface AutoRAGUnauthorizedError extends Error {}
|
|
4375
|
+
interface AutoRAGNameNotSetError extends Error {}
|
|
4375
4376
|
type ComparisonFilter = {
|
|
4376
4377
|
key: string;
|
|
4377
4378
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4416,10 +4417,20 @@ type AutoRagSearchResponse = {
|
|
|
4416
4417
|
has_more: boolean;
|
|
4417
4418
|
next_page: string | null;
|
|
4418
4419
|
};
|
|
4420
|
+
type AutoRagListResponse = {
|
|
4421
|
+
id: string;
|
|
4422
|
+
enable: boolean;
|
|
4423
|
+
type: string;
|
|
4424
|
+
source: string;
|
|
4425
|
+
vectorize_name: string;
|
|
4426
|
+
paused: boolean;
|
|
4427
|
+
status: string;
|
|
4428
|
+
}[];
|
|
4419
4429
|
type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4420
4430
|
response: string;
|
|
4421
4431
|
};
|
|
4422
4432
|
declare abstract class AutoRAG {
|
|
4433
|
+
list(): Promise<AutoRagListResponse>;
|
|
4423
4434
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4424
4435
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4425
4436
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/oldest/index.ts
CHANGED
|
@@ -512,7 +512,7 @@ export interface DurableObjectNamespace<
|
|
|
512
512
|
jurisdiction: DurableObjectJurisdiction,
|
|
513
513
|
): DurableObjectNamespace<T>;
|
|
514
514
|
}
|
|
515
|
-
export type DurableObjectJurisdiction = "eu" | "fedramp";
|
|
515
|
+
export type DurableObjectJurisdiction = "eu" | "fedramp" | "fedramp-high";
|
|
516
516
|
export interface DurableObjectNamespaceNewUniqueIdOptions {
|
|
517
517
|
jurisdiction?: DurableObjectJurisdiction;
|
|
518
518
|
}
|
|
@@ -4236,7 +4236,7 @@ export declare abstract class Ai<
|
|
|
4236
4236
|
> {
|
|
4237
4237
|
aiGatewayLogId: string | null;
|
|
4238
4238
|
gateway(gatewayId: string): AiGateway;
|
|
4239
|
-
autorag(autoragId
|
|
4239
|
+
autorag(autoragId?: string): AutoRAG;
|
|
4240
4240
|
run<Name extends keyof AiModelList, Options extends AiOptions>(
|
|
4241
4241
|
model: Name,
|
|
4242
4242
|
inputs: AiModelList[Name]["inputs"],
|
|
@@ -4388,6 +4388,7 @@ export declare abstract class AiGateway {
|
|
|
4388
4388
|
export interface AutoRAGInternalError extends Error {}
|
|
4389
4389
|
export interface AutoRAGNotFoundError extends Error {}
|
|
4390
4390
|
export interface AutoRAGUnauthorizedError extends Error {}
|
|
4391
|
+
export interface AutoRAGNameNotSetError extends Error {}
|
|
4391
4392
|
export type ComparisonFilter = {
|
|
4392
4393
|
key: string;
|
|
4393
4394
|
type: "eq" | "ne" | "gt" | "gte" | "lt" | "lte";
|
|
@@ -4432,10 +4433,20 @@ export type AutoRagSearchResponse = {
|
|
|
4432
4433
|
has_more: boolean;
|
|
4433
4434
|
next_page: string | null;
|
|
4434
4435
|
};
|
|
4436
|
+
export type AutoRagListResponse = {
|
|
4437
|
+
id: string;
|
|
4438
|
+
enable: boolean;
|
|
4439
|
+
type: string;
|
|
4440
|
+
source: string;
|
|
4441
|
+
vectorize_name: string;
|
|
4442
|
+
paused: boolean;
|
|
4443
|
+
status: string;
|
|
4444
|
+
}[];
|
|
4435
4445
|
export type AutoRagAiSearchResponse = AutoRagSearchResponse & {
|
|
4436
4446
|
response: string;
|
|
4437
4447
|
};
|
|
4438
4448
|
export declare abstract class AutoRAG {
|
|
4449
|
+
list(): Promise<AutoRagListResponse>;
|
|
4439
4450
|
search(params: AutoRagSearchRequest): Promise<AutoRagSearchResponse>;
|
|
4440
4451
|
aiSearch(params: AutoRagAiSearchRequestStreaming): Promise<Response>;
|
|
4441
4452
|
aiSearch(params: AutoRagAiSearchRequest): Promise<AutoRagAiSearchResponse>;
|
package/package.json
CHANGED