@cloudflare/workers-types 4.20250810.0 → 4.20250813.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.
@@ -5953,6 +5953,12 @@ type GatewayOptions = {
5953
5953
  requestTimeoutMs?: number;
5954
5954
  retries?: GatewayRetries;
5955
5955
  };
5956
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
5957
+ /**
5958
+ ** @deprecated
5959
+ */
5960
+ id?: string;
5961
+ };
5956
5962
  type AiGatewayPatchLog = {
5957
5963
  score?: number | null;
5958
5964
  feedback?: -1 | 1 | null;
@@ -6046,7 +6052,7 @@ declare abstract class AiGateway {
6046
6052
  run(
6047
6053
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6048
6054
  options?: {
6049
- gateway?: GatewayOptions;
6055
+ gateway?: UniversalGatewayOptions;
6050
6056
  extraHeaders?: object;
6051
6057
  },
6052
6058
  ): Promise<Response>;
@@ -6077,6 +6083,7 @@ type AutoRagSearchRequest = {
6077
6083
  };
6078
6084
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6079
6085
  stream?: boolean;
6086
+ system_prompt?: string;
6080
6087
  };
6081
6088
  type AutoRagAiSearchRequestStreaming = Omit<
6082
6089
  AutoRagAiSearchRequest,
@@ -5968,6 +5968,12 @@ export type GatewayOptions = {
5968
5968
  requestTimeoutMs?: number;
5969
5969
  retries?: GatewayRetries;
5970
5970
  };
5971
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
5972
+ /**
5973
+ ** @deprecated
5974
+ */
5975
+ id?: string;
5976
+ };
5971
5977
  export type AiGatewayPatchLog = {
5972
5978
  score?: number | null;
5973
5979
  feedback?: -1 | 1 | null;
@@ -6061,7 +6067,7 @@ export declare abstract class AiGateway {
6061
6067
  run(
6062
6068
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6063
6069
  options?: {
6064
- gateway?: GatewayOptions;
6070
+ gateway?: UniversalGatewayOptions;
6065
6071
  extraHeaders?: object;
6066
6072
  },
6067
6073
  ): Promise<Response>;
@@ -6092,6 +6098,7 @@ export type AutoRagSearchRequest = {
6092
6098
  };
6093
6099
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6094
6100
  stream?: boolean;
6101
+ system_prompt?: string;
6095
6102
  };
6096
6103
  export type AutoRagAiSearchRequestStreaming = Omit<
6097
6104
  AutoRagAiSearchRequest,
@@ -5979,6 +5979,12 @@ type GatewayOptions = {
5979
5979
  requestTimeoutMs?: number;
5980
5980
  retries?: GatewayRetries;
5981
5981
  };
5982
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
5983
+ /**
5984
+ ** @deprecated
5985
+ */
5986
+ id?: string;
5987
+ };
5982
5988
  type AiGatewayPatchLog = {
5983
5989
  score?: number | null;
5984
5990
  feedback?: -1 | 1 | null;
@@ -6072,7 +6078,7 @@ declare abstract class AiGateway {
6072
6078
  run(
6073
6079
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6074
6080
  options?: {
6075
- gateway?: GatewayOptions;
6081
+ gateway?: UniversalGatewayOptions;
6076
6082
  extraHeaders?: object;
6077
6083
  },
6078
6084
  ): Promise<Response>;
@@ -6103,6 +6109,7 @@ type AutoRagSearchRequest = {
6103
6109
  };
6104
6110
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6105
6111
  stream?: boolean;
6112
+ system_prompt?: string;
6106
6113
  };
6107
6114
  type AutoRagAiSearchRequestStreaming = Omit<
6108
6115
  AutoRagAiSearchRequest,
@@ -5994,6 +5994,12 @@ export type GatewayOptions = {
5994
5994
  requestTimeoutMs?: number;
5995
5995
  retries?: GatewayRetries;
5996
5996
  };
5997
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
5998
+ /**
5999
+ ** @deprecated
6000
+ */
6001
+ id?: string;
6002
+ };
5997
6003
  export type AiGatewayPatchLog = {
5998
6004
  score?: number | null;
5999
6005
  feedback?: -1 | 1 | null;
@@ -6087,7 +6093,7 @@ export declare abstract class AiGateway {
6087
6093
  run(
6088
6094
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6089
6095
  options?: {
6090
- gateway?: GatewayOptions;
6096
+ gateway?: UniversalGatewayOptions;
6091
6097
  extraHeaders?: object;
6092
6098
  },
6093
6099
  ): Promise<Response>;
@@ -6118,6 +6124,7 @@ export type AutoRagSearchRequest = {
6118
6124
  };
6119
6125
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6120
6126
  stream?: boolean;
6127
+ system_prompt?: string;
6121
6128
  };
6122
6129
  export type AutoRagAiSearchRequestStreaming = Omit<
6123
6130
  AutoRagAiSearchRequest,
@@ -5997,6 +5997,12 @@ type GatewayOptions = {
5997
5997
  requestTimeoutMs?: number;
5998
5998
  retries?: GatewayRetries;
5999
5999
  };
6000
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6001
+ /**
6002
+ ** @deprecated
6003
+ */
6004
+ id?: string;
6005
+ };
6000
6006
  type AiGatewayPatchLog = {
6001
6007
  score?: number | null;
6002
6008
  feedback?: -1 | 1 | null;
@@ -6090,7 +6096,7 @@ declare abstract class AiGateway {
6090
6096
  run(
6091
6097
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6092
6098
  options?: {
6093
- gateway?: GatewayOptions;
6099
+ gateway?: UniversalGatewayOptions;
6094
6100
  extraHeaders?: object;
6095
6101
  },
6096
6102
  ): Promise<Response>;
@@ -6121,6 +6127,7 @@ type AutoRagSearchRequest = {
6121
6127
  };
6122
6128
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6123
6129
  stream?: boolean;
6130
+ system_prompt?: string;
6124
6131
  };
6125
6132
  type AutoRagAiSearchRequestStreaming = Omit<
6126
6133
  AutoRagAiSearchRequest,
@@ -6012,6 +6012,12 @@ export type GatewayOptions = {
6012
6012
  requestTimeoutMs?: number;
6013
6013
  retries?: GatewayRetries;
6014
6014
  };
6015
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6016
+ /**
6017
+ ** @deprecated
6018
+ */
6019
+ id?: string;
6020
+ };
6015
6021
  export type AiGatewayPatchLog = {
6016
6022
  score?: number | null;
6017
6023
  feedback?: -1 | 1 | null;
@@ -6105,7 +6111,7 @@ export declare abstract class AiGateway {
6105
6111
  run(
6106
6112
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6107
6113
  options?: {
6108
- gateway?: GatewayOptions;
6114
+ gateway?: UniversalGatewayOptions;
6109
6115
  extraHeaders?: object;
6110
6116
  },
6111
6117
  ): Promise<Response>;
@@ -6136,6 +6142,7 @@ export type AutoRagSearchRequest = {
6136
6142
  };
6137
6143
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6138
6144
  stream?: boolean;
6145
+ system_prompt?: string;
6139
6146
  };
6140
6147
  export type AutoRagAiSearchRequestStreaming = Omit<
6141
6148
  AutoRagAiSearchRequest,
@@ -5998,6 +5998,12 @@ type GatewayOptions = {
5998
5998
  requestTimeoutMs?: number;
5999
5999
  retries?: GatewayRetries;
6000
6000
  };
6001
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6002
+ /**
6003
+ ** @deprecated
6004
+ */
6005
+ id?: string;
6006
+ };
6001
6007
  type AiGatewayPatchLog = {
6002
6008
  score?: number | null;
6003
6009
  feedback?: -1 | 1 | null;
@@ -6091,7 +6097,7 @@ declare abstract class AiGateway {
6091
6097
  run(
6092
6098
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6093
6099
  options?: {
6094
- gateway?: GatewayOptions;
6100
+ gateway?: UniversalGatewayOptions;
6095
6101
  extraHeaders?: object;
6096
6102
  },
6097
6103
  ): Promise<Response>;
@@ -6122,6 +6128,7 @@ type AutoRagSearchRequest = {
6122
6128
  };
6123
6129
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6124
6130
  stream?: boolean;
6131
+ system_prompt?: string;
6125
6132
  };
6126
6133
  type AutoRagAiSearchRequestStreaming = Omit<
6127
6134
  AutoRagAiSearchRequest,
@@ -6013,6 +6013,12 @@ export type GatewayOptions = {
6013
6013
  requestTimeoutMs?: number;
6014
6014
  retries?: GatewayRetries;
6015
6015
  };
6016
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6017
+ /**
6018
+ ** @deprecated
6019
+ */
6020
+ id?: string;
6021
+ };
6016
6022
  export type AiGatewayPatchLog = {
6017
6023
  score?: number | null;
6018
6024
  feedback?: -1 | 1 | null;
@@ -6106,7 +6112,7 @@ export declare abstract class AiGateway {
6106
6112
  run(
6107
6113
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6108
6114
  options?: {
6109
- gateway?: GatewayOptions;
6115
+ gateway?: UniversalGatewayOptions;
6110
6116
  extraHeaders?: object;
6111
6117
  },
6112
6118
  ): Promise<Response>;
@@ -6137,6 +6143,7 @@ export type AutoRagSearchRequest = {
6137
6143
  };
6138
6144
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6139
6145
  stream?: boolean;
6146
+ system_prompt?: string;
6140
6147
  };
6141
6148
  export type AutoRagAiSearchRequestStreaming = Omit<
6142
6149
  AutoRagAiSearchRequest,
@@ -6002,6 +6002,12 @@ type GatewayOptions = {
6002
6002
  requestTimeoutMs?: number;
6003
6003
  retries?: GatewayRetries;
6004
6004
  };
6005
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6006
+ /**
6007
+ ** @deprecated
6008
+ */
6009
+ id?: string;
6010
+ };
6005
6011
  type AiGatewayPatchLog = {
6006
6012
  score?: number | null;
6007
6013
  feedback?: -1 | 1 | null;
@@ -6095,7 +6101,7 @@ declare abstract class AiGateway {
6095
6101
  run(
6096
6102
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6097
6103
  options?: {
6098
- gateway?: GatewayOptions;
6104
+ gateway?: UniversalGatewayOptions;
6099
6105
  extraHeaders?: object;
6100
6106
  },
6101
6107
  ): Promise<Response>;
@@ -6126,6 +6132,7 @@ type AutoRagSearchRequest = {
6126
6132
  };
6127
6133
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6128
6134
  stream?: boolean;
6135
+ system_prompt?: string;
6129
6136
  };
6130
6137
  type AutoRagAiSearchRequestStreaming = Omit<
6131
6138
  AutoRagAiSearchRequest,
@@ -6017,6 +6017,12 @@ export type GatewayOptions = {
6017
6017
  requestTimeoutMs?: number;
6018
6018
  retries?: GatewayRetries;
6019
6019
  };
6020
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6021
+ /**
6022
+ ** @deprecated
6023
+ */
6024
+ id?: string;
6025
+ };
6020
6026
  export type AiGatewayPatchLog = {
6021
6027
  score?: number | null;
6022
6028
  feedback?: -1 | 1 | null;
@@ -6110,7 +6116,7 @@ export declare abstract class AiGateway {
6110
6116
  run(
6111
6117
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6112
6118
  options?: {
6113
- gateway?: GatewayOptions;
6119
+ gateway?: UniversalGatewayOptions;
6114
6120
  extraHeaders?: object;
6115
6121
  },
6116
6122
  ): Promise<Response>;
@@ -6141,6 +6147,7 @@ export type AutoRagSearchRequest = {
6141
6147
  };
6142
6148
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6143
6149
  stream?: boolean;
6150
+ system_prompt?: string;
6144
6151
  };
6145
6152
  export type AutoRagAiSearchRequestStreaming = Omit<
6146
6153
  AutoRagAiSearchRequest,
@@ -6007,6 +6007,12 @@ type GatewayOptions = {
6007
6007
  requestTimeoutMs?: number;
6008
6008
  retries?: GatewayRetries;
6009
6009
  };
6010
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6011
+ /**
6012
+ ** @deprecated
6013
+ */
6014
+ id?: string;
6015
+ };
6010
6016
  type AiGatewayPatchLog = {
6011
6017
  score?: number | null;
6012
6018
  feedback?: -1 | 1 | null;
@@ -6100,7 +6106,7 @@ declare abstract class AiGateway {
6100
6106
  run(
6101
6107
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6102
6108
  options?: {
6103
- gateway?: GatewayOptions;
6109
+ gateway?: UniversalGatewayOptions;
6104
6110
  extraHeaders?: object;
6105
6111
  },
6106
6112
  ): Promise<Response>;
@@ -6131,6 +6137,7 @@ type AutoRagSearchRequest = {
6131
6137
  };
6132
6138
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6133
6139
  stream?: boolean;
6140
+ system_prompt?: string;
6134
6141
  };
6135
6142
  type AutoRagAiSearchRequestStreaming = Omit<
6136
6143
  AutoRagAiSearchRequest,
@@ -6022,6 +6022,12 @@ export type GatewayOptions = {
6022
6022
  requestTimeoutMs?: number;
6023
6023
  retries?: GatewayRetries;
6024
6024
  };
6025
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6026
+ /**
6027
+ ** @deprecated
6028
+ */
6029
+ id?: string;
6030
+ };
6025
6031
  export type AiGatewayPatchLog = {
6026
6032
  score?: number | null;
6027
6033
  feedback?: -1 | 1 | null;
@@ -6115,7 +6121,7 @@ export declare abstract class AiGateway {
6115
6121
  run(
6116
6122
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6117
6123
  options?: {
6118
- gateway?: GatewayOptions;
6124
+ gateway?: UniversalGatewayOptions;
6119
6125
  extraHeaders?: object;
6120
6126
  },
6121
6127
  ): Promise<Response>;
@@ -6146,6 +6152,7 @@ export type AutoRagSearchRequest = {
6146
6152
  };
6147
6153
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6148
6154
  stream?: boolean;
6155
+ system_prompt?: string;
6149
6156
  };
6150
6157
  export type AutoRagAiSearchRequestStreaming = Omit<
6151
6158
  AutoRagAiSearchRequest,
@@ -6009,6 +6009,12 @@ type GatewayOptions = {
6009
6009
  requestTimeoutMs?: number;
6010
6010
  retries?: GatewayRetries;
6011
6011
  };
6012
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6013
+ /**
6014
+ ** @deprecated
6015
+ */
6016
+ id?: string;
6017
+ };
6012
6018
  type AiGatewayPatchLog = {
6013
6019
  score?: number | null;
6014
6020
  feedback?: -1 | 1 | null;
@@ -6102,7 +6108,7 @@ declare abstract class AiGateway {
6102
6108
  run(
6103
6109
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6104
6110
  options?: {
6105
- gateway?: GatewayOptions;
6111
+ gateway?: UniversalGatewayOptions;
6106
6112
  extraHeaders?: object;
6107
6113
  },
6108
6114
  ): Promise<Response>;
@@ -6133,6 +6139,7 @@ type AutoRagSearchRequest = {
6133
6139
  };
6134
6140
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6135
6141
  stream?: boolean;
6142
+ system_prompt?: string;
6136
6143
  };
6137
6144
  type AutoRagAiSearchRequestStreaming = Omit<
6138
6145
  AutoRagAiSearchRequest,
@@ -6024,6 +6024,12 @@ export type GatewayOptions = {
6024
6024
  requestTimeoutMs?: number;
6025
6025
  retries?: GatewayRetries;
6026
6026
  };
6027
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6028
+ /**
6029
+ ** @deprecated
6030
+ */
6031
+ id?: string;
6032
+ };
6027
6033
  export type AiGatewayPatchLog = {
6028
6034
  score?: number | null;
6029
6035
  feedback?: -1 | 1 | null;
@@ -6117,7 +6123,7 @@ export declare abstract class AiGateway {
6117
6123
  run(
6118
6124
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6119
6125
  options?: {
6120
- gateway?: GatewayOptions;
6126
+ gateway?: UniversalGatewayOptions;
6121
6127
  extraHeaders?: object;
6122
6128
  },
6123
6129
  ): Promise<Response>;
@@ -6148,6 +6154,7 @@ export type AutoRagSearchRequest = {
6148
6154
  };
6149
6155
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6150
6156
  stream?: boolean;
6157
+ system_prompt?: string;
6151
6158
  };
6152
6159
  export type AutoRagAiSearchRequestStreaming = Omit<
6153
6160
  AutoRagAiSearchRequest,
@@ -6009,6 +6009,12 @@ type GatewayOptions = {
6009
6009
  requestTimeoutMs?: number;
6010
6010
  retries?: GatewayRetries;
6011
6011
  };
6012
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6013
+ /**
6014
+ ** @deprecated
6015
+ */
6016
+ id?: string;
6017
+ };
6012
6018
  type AiGatewayPatchLog = {
6013
6019
  score?: number | null;
6014
6020
  feedback?: -1 | 1 | null;
@@ -6102,7 +6108,7 @@ declare abstract class AiGateway {
6102
6108
  run(
6103
6109
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6104
6110
  options?: {
6105
- gateway?: GatewayOptions;
6111
+ gateway?: UniversalGatewayOptions;
6106
6112
  extraHeaders?: object;
6107
6113
  },
6108
6114
  ): Promise<Response>;
@@ -6133,6 +6139,7 @@ type AutoRagSearchRequest = {
6133
6139
  };
6134
6140
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6135
6141
  stream?: boolean;
6142
+ system_prompt?: string;
6136
6143
  };
6137
6144
  type AutoRagAiSearchRequestStreaming = Omit<
6138
6145
  AutoRagAiSearchRequest,
@@ -6024,6 +6024,12 @@ export type GatewayOptions = {
6024
6024
  requestTimeoutMs?: number;
6025
6025
  retries?: GatewayRetries;
6026
6026
  };
6027
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6028
+ /**
6029
+ ** @deprecated
6030
+ */
6031
+ id?: string;
6032
+ };
6027
6033
  export type AiGatewayPatchLog = {
6028
6034
  score?: number | null;
6029
6035
  feedback?: -1 | 1 | null;
@@ -6117,7 +6123,7 @@ export declare abstract class AiGateway {
6117
6123
  run(
6118
6124
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6119
6125
  options?: {
6120
- gateway?: GatewayOptions;
6126
+ gateway?: UniversalGatewayOptions;
6121
6127
  extraHeaders?: object;
6122
6128
  },
6123
6129
  ): Promise<Response>;
@@ -6148,6 +6154,7 @@ export type AutoRagSearchRequest = {
6148
6154
  };
6149
6155
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6150
6156
  stream?: boolean;
6157
+ system_prompt?: string;
6151
6158
  };
6152
6159
  export type AutoRagAiSearchRequestStreaming = Omit<
6153
6160
  AutoRagAiSearchRequest,
@@ -6258,6 +6258,12 @@ type GatewayOptions = {
6258
6258
  requestTimeoutMs?: number;
6259
6259
  retries?: GatewayRetries;
6260
6260
  };
6261
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6262
+ /**
6263
+ ** @deprecated
6264
+ */
6265
+ id?: string;
6266
+ };
6261
6267
  type AiGatewayPatchLog = {
6262
6268
  score?: number | null;
6263
6269
  feedback?: -1 | 1 | null;
@@ -6351,7 +6357,7 @@ declare abstract class AiGateway {
6351
6357
  run(
6352
6358
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6353
6359
  options?: {
6354
- gateway?: GatewayOptions;
6360
+ gateway?: UniversalGatewayOptions;
6355
6361
  extraHeaders?: object;
6356
6362
  },
6357
6363
  ): Promise<Response>;
@@ -6382,6 +6388,7 @@ type AutoRagSearchRequest = {
6382
6388
  };
6383
6389
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6384
6390
  stream?: boolean;
6391
+ system_prompt?: string;
6385
6392
  };
6386
6393
  type AutoRagAiSearchRequestStreaming = Omit<
6387
6394
  AutoRagAiSearchRequest,
@@ -6273,6 +6273,12 @@ export type GatewayOptions = {
6273
6273
  requestTimeoutMs?: number;
6274
6274
  retries?: GatewayRetries;
6275
6275
  };
6276
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6277
+ /**
6278
+ ** @deprecated
6279
+ */
6280
+ id?: string;
6281
+ };
6276
6282
  export type AiGatewayPatchLog = {
6277
6283
  score?: number | null;
6278
6284
  feedback?: -1 | 1 | null;
@@ -6366,7 +6372,7 @@ export declare abstract class AiGateway {
6366
6372
  run(
6367
6373
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6368
6374
  options?: {
6369
- gateway?: GatewayOptions;
6375
+ gateway?: UniversalGatewayOptions;
6370
6376
  extraHeaders?: object;
6371
6377
  },
6372
6378
  ): Promise<Response>;
@@ -6397,6 +6403,7 @@ export type AutoRagSearchRequest = {
6397
6403
  };
6398
6404
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6399
6405
  stream?: boolean;
6406
+ system_prompt?: string;
6400
6407
  };
6401
6408
  export type AutoRagAiSearchRequestStreaming = Omit<
6402
6409
  AutoRagAiSearchRequest,
package/index.d.ts CHANGED
@@ -5953,6 +5953,12 @@ type GatewayOptions = {
5953
5953
  requestTimeoutMs?: number;
5954
5954
  retries?: GatewayRetries;
5955
5955
  };
5956
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
5957
+ /**
5958
+ ** @deprecated
5959
+ */
5960
+ id?: string;
5961
+ };
5956
5962
  type AiGatewayPatchLog = {
5957
5963
  score?: number | null;
5958
5964
  feedback?: -1 | 1 | null;
@@ -6046,7 +6052,7 @@ declare abstract class AiGateway {
6046
6052
  run(
6047
6053
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6048
6054
  options?: {
6049
- gateway?: GatewayOptions;
6055
+ gateway?: UniversalGatewayOptions;
6050
6056
  extraHeaders?: object;
6051
6057
  },
6052
6058
  ): Promise<Response>;
@@ -6077,6 +6083,7 @@ type AutoRagSearchRequest = {
6077
6083
  };
6078
6084
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6079
6085
  stream?: boolean;
6086
+ system_prompt?: string;
6080
6087
  };
6081
6088
  type AutoRagAiSearchRequestStreaming = Omit<
6082
6089
  AutoRagAiSearchRequest,
package/index.ts CHANGED
@@ -5968,6 +5968,12 @@ export type GatewayOptions = {
5968
5968
  requestTimeoutMs?: number;
5969
5969
  retries?: GatewayRetries;
5970
5970
  };
5971
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
5972
+ /**
5973
+ ** @deprecated
5974
+ */
5975
+ id?: string;
5976
+ };
5971
5977
  export type AiGatewayPatchLog = {
5972
5978
  score?: number | null;
5973
5979
  feedback?: -1 | 1 | null;
@@ -6061,7 +6067,7 @@ export declare abstract class AiGateway {
6061
6067
  run(
6062
6068
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6063
6069
  options?: {
6064
- gateway?: GatewayOptions;
6070
+ gateway?: UniversalGatewayOptions;
6065
6071
  extraHeaders?: object;
6066
6072
  },
6067
6073
  ): Promise<Response>;
@@ -6092,6 +6098,7 @@ export type AutoRagSearchRequest = {
6092
6098
  };
6093
6099
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6094
6100
  stream?: boolean;
6101
+ system_prompt?: string;
6095
6102
  };
6096
6103
  export type AutoRagAiSearchRequestStreaming = Omit<
6097
6104
  AutoRagAiSearchRequest,
package/latest/index.d.ts CHANGED
@@ -6038,6 +6038,12 @@ type GatewayOptions = {
6038
6038
  requestTimeoutMs?: number;
6039
6039
  retries?: GatewayRetries;
6040
6040
  };
6041
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6042
+ /**
6043
+ ** @deprecated
6044
+ */
6045
+ id?: string;
6046
+ };
6041
6047
  type AiGatewayPatchLog = {
6042
6048
  score?: number | null;
6043
6049
  feedback?: -1 | 1 | null;
@@ -6131,7 +6137,7 @@ declare abstract class AiGateway {
6131
6137
  run(
6132
6138
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6133
6139
  options?: {
6134
- gateway?: GatewayOptions;
6140
+ gateway?: UniversalGatewayOptions;
6135
6141
  extraHeaders?: object;
6136
6142
  },
6137
6143
  ): Promise<Response>;
@@ -6162,6 +6168,7 @@ type AutoRagSearchRequest = {
6162
6168
  };
6163
6169
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6164
6170
  stream?: boolean;
6171
+ system_prompt?: string;
6165
6172
  };
6166
6173
  type AutoRagAiSearchRequestStreaming = Omit<
6167
6174
  AutoRagAiSearchRequest,
package/latest/index.ts CHANGED
@@ -6053,6 +6053,12 @@ export type GatewayOptions = {
6053
6053
  requestTimeoutMs?: number;
6054
6054
  retries?: GatewayRetries;
6055
6055
  };
6056
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
6057
+ /**
6058
+ ** @deprecated
6059
+ */
6060
+ id?: string;
6061
+ };
6056
6062
  export type AiGatewayPatchLog = {
6057
6063
  score?: number | null;
6058
6064
  feedback?: -1 | 1 | null;
@@ -6146,7 +6152,7 @@ export declare abstract class AiGateway {
6146
6152
  run(
6147
6153
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6148
6154
  options?: {
6149
- gateway?: GatewayOptions;
6155
+ gateway?: UniversalGatewayOptions;
6150
6156
  extraHeaders?: object;
6151
6157
  },
6152
6158
  ): Promise<Response>;
@@ -6177,6 +6183,7 @@ export type AutoRagSearchRequest = {
6177
6183
  };
6178
6184
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6179
6185
  stream?: boolean;
6186
+ system_prompt?: string;
6180
6187
  };
6181
6188
  export type AutoRagAiSearchRequestStreaming = Omit<
6182
6189
  AutoRagAiSearchRequest,
package/oldest/index.d.ts CHANGED
@@ -5953,6 +5953,12 @@ type GatewayOptions = {
5953
5953
  requestTimeoutMs?: number;
5954
5954
  retries?: GatewayRetries;
5955
5955
  };
5956
+ type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
5957
+ /**
5958
+ ** @deprecated
5959
+ */
5960
+ id?: string;
5961
+ };
5956
5962
  type AiGatewayPatchLog = {
5957
5963
  score?: number | null;
5958
5964
  feedback?: -1 | 1 | null;
@@ -6046,7 +6052,7 @@ declare abstract class AiGateway {
6046
6052
  run(
6047
6053
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6048
6054
  options?: {
6049
- gateway?: GatewayOptions;
6055
+ gateway?: UniversalGatewayOptions;
6050
6056
  extraHeaders?: object;
6051
6057
  },
6052
6058
  ): Promise<Response>;
@@ -6077,6 +6083,7 @@ type AutoRagSearchRequest = {
6077
6083
  };
6078
6084
  type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6079
6085
  stream?: boolean;
6086
+ system_prompt?: string;
6080
6087
  };
6081
6088
  type AutoRagAiSearchRequestStreaming = Omit<
6082
6089
  AutoRagAiSearchRequest,
package/oldest/index.ts CHANGED
@@ -5968,6 +5968,12 @@ export type GatewayOptions = {
5968
5968
  requestTimeoutMs?: number;
5969
5969
  retries?: GatewayRetries;
5970
5970
  };
5971
+ export type UniversalGatewayOptions = Exclude<GatewayOptions, "id"> & {
5972
+ /**
5973
+ ** @deprecated
5974
+ */
5975
+ id?: string;
5976
+ };
5971
5977
  export type AiGatewayPatchLog = {
5972
5978
  score?: number | null;
5973
5979
  feedback?: -1 | 1 | null;
@@ -6061,7 +6067,7 @@ export declare abstract class AiGateway {
6061
6067
  run(
6062
6068
  data: AIGatewayUniversalRequest | AIGatewayUniversalRequest[],
6063
6069
  options?: {
6064
- gateway?: GatewayOptions;
6070
+ gateway?: UniversalGatewayOptions;
6065
6071
  extraHeaders?: object;
6066
6072
  },
6067
6073
  ): Promise<Response>;
@@ -6092,6 +6098,7 @@ export type AutoRagSearchRequest = {
6092
6098
  };
6093
6099
  export type AutoRagAiSearchRequest = AutoRagSearchRequest & {
6094
6100
  stream?: boolean;
6101
+ system_prompt?: string;
6095
6102
  };
6096
6103
  export type AutoRagAiSearchRequestStreaming = Omit<
6097
6104
  AutoRagAiSearchRequest,
package/package.json CHANGED
@@ -7,5 +7,5 @@
7
7
  },
8
8
  "author": "Cloudflare Workers DevProd Team <workers-devprod@cloudflare.com> (https://workers.cloudflare.com)",
9
9
  "license": "MIT OR Apache-2.0",
10
- "version": "4.20250810.0"
10
+ "version": "4.20250813.0"
11
11
  }