@vepler/sdk 6.8.0 → 6.36.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/FUNCTIONS.md +1 -1
- package/README.md +433 -421
- package/dist/commonjs/funcs/geographyGetGeographyAncestors.d.ts +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyAncestors.js +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyAreas.d.ts +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyAreas.js +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyDescendants.d.ts +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyDescendants.js +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyProvenance.d.ts +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyProvenance.js +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyRelease.d.ts +1 -1
- package/dist/commonjs/funcs/geographyGetGeographyRelease.js +1 -1
- package/dist/commonjs/funcs/modelsGetV1AiModels.d.ts +18 -0
- package/dist/commonjs/funcs/modelsGetV1AiModels.d.ts.map +1 -0
- package/dist/commonjs/funcs/modelsGetV1AiModels.js +109 -0
- package/dist/commonjs/funcs/modelsGetV1AiModels.js.map +1 -0
- package/dist/commonjs/funcs/modelsGetV1AiModelsModel.d.ts +19 -0
- package/dist/commonjs/funcs/modelsGetV1AiModelsModel.d.ts.map +1 -0
- package/dist/commonjs/funcs/modelsGetV1AiModelsModel.js +125 -0
- package/dist/commonjs/funcs/modelsGetV1AiModelsModel.js.map +1 -0
- package/dist/commonjs/funcs/modelsPostV1AiChatCompletions.d.ts +25 -0
- package/dist/commonjs/funcs/modelsPostV1AiChatCompletions.d.ts.map +1 -0
- package/dist/commonjs/funcs/modelsPostV1AiChatCompletions.js +129 -0
- package/dist/commonjs/funcs/modelsPostV1AiChatCompletions.js.map +1 -0
- package/dist/commonjs/funcs/modelsPostV1AiResponses.d.ts +18 -0
- package/dist/commonjs/funcs/modelsPostV1AiResponses.d.ts.map +1 -0
- package/dist/commonjs/funcs/modelsPostV1AiResponses.js +119 -0
- package/dist/commonjs/funcs/modelsPostV1AiResponses.js.map +1 -0
- package/dist/commonjs/funcs/searchSearchSuggest.js +1 -0
- package/dist/commonjs/funcs/searchSearchSuggest.js.map +1 -1
- package/dist/commonjs/funcs/sitesGet.d.ts +1 -1
- package/dist/commonjs/funcs/sitesGet.js +1 -1
- package/dist/commonjs/funcs/streetsSearchStreets.d.ts +1 -1
- package/dist/commonjs/funcs/streetsSearchStreets.js +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/geography.d.ts +5 -5
- package/dist/commonjs/sdk/geography.js +5 -5
- package/dist/commonjs/sdk/models/errors/index.d.ts +1 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/index.js +1 -0
- package/dist/commonjs/sdk/models/errors/index.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/modelapierror.d.ts +57 -0
- package/dist/commonjs/sdk/models/errors/modelapierror.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/modelapierror.js +91 -0
- package/dist/commonjs/sdk/models/errors/modelapierror.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.d.ts +3 -3
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.js +1 -1
- package/dist/commonjs/sdk/models/operations/getgeographychildren.d.ts +2 -2
- package/dist/commonjs/sdk/models/operations/getv1aimodelsmodel.d.ts +15 -0
- package/dist/commonjs/sdk/models/operations/getv1aimodelsmodel.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getv1aimodelsmodel.js +49 -0
- package/dist/commonjs/sdk/models/operations/getv1aimodelsmodel.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +2 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/postv1aichatcompletions.d.ts +9 -0
- package/dist/commonjs/sdk/models/operations/postv1aichatcompletions.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/{shared/propertyonstreet.js → operations/postv1aichatcompletions.js} +7 -12
- package/dist/commonjs/sdk/models/operations/postv1aichatcompletions.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/resolveaddress.d.ts +4 -0
- package/dist/commonjs/sdk/models/operations/resolveaddress.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/resolveaddress.js +1 -0
- package/dist/commonjs/sdk/models/operations/resolveaddress.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/searchsuggest.d.ts +19 -0
- package/dist/commonjs/sdk/models/operations/searchsuggest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/searchsuggest.js +12 -1
- package/dist/commonjs/sdk/models/operations/searchsuggest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/addressresolverequest.d.ts +3 -0
- package/dist/commonjs/sdk/models/shared/addressresolverequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/addressresolverequest.js +2 -0
- package/dist/commonjs/sdk/models/shared/addressresolverequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/avmconfidenceinterval.d.ts +3 -3
- package/dist/commonjs/sdk/models/shared/avmmetadata.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.d.ts +3 -3
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.js +1 -1
- package/dist/commonjs/sdk/models/shared/avmpredictresponse.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/chatcompletion.d.ts +95 -0
- package/dist/commonjs/sdk/models/shared/chatcompletion.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/chatcompletion.js +122 -0
- package/dist/commonjs/sdk/models/shared/chatcompletion.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/chatcompletionrequest.d.ts +203 -0
- package/dist/commonjs/sdk/models/shared/chatcompletionrequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/chatcompletionrequest.js +144 -0
- package/dist/commonjs/sdk/models/shared/chatcompletionrequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/epcqueryresponse.d.ts +3 -3
- package/dist/commonjs/sdk/models/shared/epcqueryresponse.js +1 -1
- package/dist/commonjs/sdk/models/shared/geographyarea.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/geographyrelatedarea.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/historicalvaluation.d.ts +3 -3
- package/dist/commonjs/sdk/models/shared/index.d.ts +16 -3
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +16 -3
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/model.d.ts +72 -0
- package/dist/commonjs/sdk/models/shared/model.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/model.js +100 -0
- package/dist/commonjs/sdk/models/shared/model.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/modellist.d.ts +19 -0
- package/dist/commonjs/sdk/models/shared/modellist.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/{streetdetails.js → modellist.js} +14 -13
- package/dist/commonjs/sdk/models/shared/modellist.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/modelresponse.d.ts +116 -0
- package/dist/commonjs/sdk/models/shared/modelresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/modelresponse.js +137 -0
- package/dist/commonjs/sdk/models/shared/modelresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/regulatoryzonecharges.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/regulatoryzonecharges.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/regulatoryzonecharges.js +4 -4
- package/dist/commonjs/sdk/models/shared/regulatoryzonecharges.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/responserequest.d.ts +148 -0
- package/dist/commonjs/sdk/models/shared/responserequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/responserequest.js +111 -0
- package/dist/commonjs/sdk/models/shared/responserequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/searchresponse.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/searchresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/searchresponse.js +1 -0
- package/dist/commonjs/sdk/models/shared/searchresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/streetdataset.d.ts +17 -0
- package/dist/commonjs/sdk/models/shared/streetdataset.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetdataset.js +51 -0
- package/dist/commonjs/sdk/models/shared/streetdataset.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetdescriptor.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/streetdescriptor.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetdescriptor.js +1 -1
- package/dist/commonjs/sdk/models/shared/streetdescriptor.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetfield.d.ts +16 -0
- package/dist/commonjs/sdk/models/shared/streetfield.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetfield.js +54 -0
- package/dist/commonjs/sdk/models/shared/streetfield.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetmatch.d.ts +9 -4
- package/dist/commonjs/sdk/models/shared/streetmatch.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetmatch.js +2 -0
- package/dist/commonjs/sdk/models/shared/streetmatch.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetnameconfidence.d.ts +17 -0
- package/dist/commonjs/sdk/models/shared/streetnameconfidence.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetnameconfidence.js +51 -0
- package/dist/commonjs/sdk/models/shared/streetnameconfidence.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetnamekind.d.ts +16 -0
- package/dist/commonjs/sdk/models/shared/streetnamekind.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetnamekind.js +50 -0
- package/dist/commonjs/sdk/models/shared/streetnamekind.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetproperties.d.ts +20 -0
- package/dist/commonjs/sdk/models/shared/streetproperties.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/{streetstatistics.js → streetproperties.js} +8 -8
- package/dist/commonjs/sdk/models/shared/streetproperties.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetpropertyoptions.d.ts +28 -0
- package/dist/commonjs/sdk/models/shared/streetpropertyoptions.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetpropertyoptions.js +51 -0
- package/dist/commonjs/sdk/models/shared/streetpropertyoptions.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetprovenance.d.ts +45 -0
- package/dist/commonjs/sdk/models/shared/streetprovenance.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetprovenance.js +58 -0
- package/dist/commonjs/sdk/models/shared/streetprovenance.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.d.ts +6 -1
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.js +1 -0
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybyname.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/streetquerybyname.js +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybyname.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybypostcode.d.ts +5 -0
- package/dist/commonjs/sdk/models/shared/streetquerybypostcode.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybypostcode.js +1 -0
- package/dist/commonjs/sdk/models/shared/streetquerybypostcode.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetqueryrequest.d.ts +20 -28
- package/dist/commonjs/sdk/models/shared/streetqueryrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetqueryrequest.js +13 -12
- package/dist/commonjs/sdk/models/shared/streetqueryrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetqueryresponse.d.ts +6 -14
- package/dist/commonjs/sdk/models/shared/streetqueryresponse.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetqueryresponse.js +3 -6
- package/dist/commonjs/sdk/models/shared/streetqueryresponse.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetrecord.d.ts +126 -0
- package/dist/commonjs/sdk/models/shared/streetrecord.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetrecord.js +87 -0
- package/dist/commonjs/sdk/models/shared/streetrecord.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetsource.d.ts +16 -0
- package/dist/commonjs/sdk/models/shared/streetsource.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetsource.js +50 -0
- package/dist/commonjs/sdk/models/shared/streetsource.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlealert.d.ts +30 -0
- package/dist/commonjs/sdk/models/shared/titlealert.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/titlealert.js +66 -0
- package/dist/commonjs/sdk/models/shared/titlealert.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.d.ts +5 -0
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.js +2 -0
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlepricepaid.d.ts +19 -0
- package/dist/commonjs/sdk/models/shared/titlepricepaid.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titlepricepaid.js +13 -1
- package/dist/commonjs/sdk/models/shared/titlepricepaid.js.map +1 -1
- package/dist/commonjs/sdk/models.d.ts +38 -0
- package/dist/commonjs/sdk/models.d.ts.map +1 -0
- package/dist/commonjs/sdk/models.js +54 -0
- package/dist/commonjs/sdk/models.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/sites.d.ts +1 -1
- package/dist/commonjs/sdk/sites.js +1 -1
- package/dist/commonjs/sdk/streets.d.ts +1 -1
- package/dist/commonjs/sdk/streets.js +1 -1
- package/dist/esm/funcs/geographyGetGeographyAncestors.d.ts +1 -1
- package/dist/esm/funcs/geographyGetGeographyAncestors.js +1 -1
- package/dist/esm/funcs/geographyGetGeographyAreas.d.ts +1 -1
- package/dist/esm/funcs/geographyGetGeographyAreas.js +1 -1
- package/dist/esm/funcs/geographyGetGeographyDescendants.d.ts +1 -1
- package/dist/esm/funcs/geographyGetGeographyDescendants.js +1 -1
- package/dist/esm/funcs/geographyGetGeographyProvenance.d.ts +1 -1
- package/dist/esm/funcs/geographyGetGeographyProvenance.js +1 -1
- package/dist/esm/funcs/geographyGetGeographyRelease.d.ts +1 -1
- package/dist/esm/funcs/geographyGetGeographyRelease.js +1 -1
- package/dist/esm/funcs/modelsGetV1AiModels.d.ts +18 -0
- package/dist/esm/funcs/modelsGetV1AiModels.d.ts.map +1 -0
- package/dist/esm/funcs/modelsGetV1AiModels.js +73 -0
- package/dist/esm/funcs/modelsGetV1AiModels.js.map +1 -0
- package/dist/esm/funcs/modelsGetV1AiModelsModel.d.ts +19 -0
- package/dist/esm/funcs/modelsGetV1AiModelsModel.d.ts.map +1 -0
- package/dist/esm/funcs/modelsGetV1AiModelsModel.js +89 -0
- package/dist/esm/funcs/modelsGetV1AiModelsModel.js.map +1 -0
- package/dist/esm/funcs/modelsPostV1AiChatCompletions.d.ts +25 -0
- package/dist/esm/funcs/modelsPostV1AiChatCompletions.d.ts.map +1 -0
- package/dist/esm/funcs/modelsPostV1AiChatCompletions.js +92 -0
- package/dist/esm/funcs/modelsPostV1AiChatCompletions.js.map +1 -0
- package/dist/esm/funcs/modelsPostV1AiResponses.d.ts +18 -0
- package/dist/esm/funcs/modelsPostV1AiResponses.d.ts.map +1 -0
- package/dist/esm/funcs/modelsPostV1AiResponses.js +83 -0
- package/dist/esm/funcs/modelsPostV1AiResponses.js.map +1 -0
- package/dist/esm/funcs/searchSearchSuggest.js +1 -0
- package/dist/esm/funcs/searchSearchSuggest.js.map +1 -1
- package/dist/esm/funcs/sitesGet.d.ts +1 -1
- package/dist/esm/funcs/sitesGet.js +1 -1
- package/dist/esm/funcs/streetsSearchStreets.d.ts +1 -1
- package/dist/esm/funcs/streetsSearchStreets.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/geography.d.ts +5 -5
- package/dist/esm/sdk/geography.js +5 -5
- package/dist/esm/sdk/models/errors/index.d.ts +1 -0
- package/dist/esm/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/index.js +1 -0
- package/dist/esm/sdk/models/errors/index.js.map +1 -1
- package/dist/esm/sdk/models/errors/modelapierror.d.ts +57 -0
- package/dist/esm/sdk/models/errors/modelapierror.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/modelapierror.js +53 -0
- package/dist/esm/sdk/models/errors/modelapierror.js.map +1 -0
- package/dist/esm/sdk/models/operations/getepcbylocationid.d.ts +3 -3
- package/dist/esm/sdk/models/operations/getepcbylocationid.js +1 -1
- package/dist/esm/sdk/models/operations/getgeographychildren.d.ts +2 -2
- package/dist/esm/sdk/models/operations/getv1aimodelsmodel.d.ts +15 -0
- package/dist/esm/sdk/models/operations/getv1aimodelsmodel.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getv1aimodelsmodel.js +12 -0
- package/dist/esm/sdk/models/operations/getv1aimodelsmodel.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +2 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +2 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/postv1aichatcompletions.d.ts +9 -0
- package/dist/esm/sdk/models/operations/postv1aichatcompletions.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/postv1aichatcompletions.js +12 -0
- package/dist/esm/sdk/models/operations/postv1aichatcompletions.js.map +1 -0
- package/dist/esm/sdk/models/operations/resolveaddress.d.ts +4 -0
- package/dist/esm/sdk/models/operations/resolveaddress.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/resolveaddress.js +1 -0
- package/dist/esm/sdk/models/operations/resolveaddress.js.map +1 -1
- package/dist/esm/sdk/models/operations/searchsuggest.d.ts +19 -0
- package/dist/esm/sdk/models/operations/searchsuggest.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/searchsuggest.js +11 -0
- package/dist/esm/sdk/models/operations/searchsuggest.js.map +1 -1
- package/dist/esm/sdk/models/shared/addressresolverequest.d.ts +3 -0
- package/dist/esm/sdk/models/shared/addressresolverequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/addressresolverequest.js +2 -0
- package/dist/esm/sdk/models/shared/addressresolverequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/avmanalysisresponse.d.ts +1 -1
- package/dist/esm/sdk/models/shared/avmconfidenceinterval.d.ts +3 -3
- package/dist/esm/sdk/models/shared/avmmetadata.d.ts +1 -1
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.d.ts +3 -3
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.js +1 -1
- package/dist/esm/sdk/models/shared/avmpredictresponse.d.ts +1 -1
- package/dist/esm/sdk/models/shared/chatcompletion.d.ts +95 -0
- package/dist/esm/sdk/models/shared/chatcompletion.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/chatcompletion.js +82 -0
- package/dist/esm/sdk/models/shared/chatcompletion.js.map +1 -0
- package/dist/esm/sdk/models/shared/chatcompletionrequest.d.ts +203 -0
- package/dist/esm/sdk/models/shared/chatcompletionrequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/chatcompletionrequest.js +103 -0
- package/dist/esm/sdk/models/shared/chatcompletionrequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/epcqueryresponse.d.ts +3 -3
- package/dist/esm/sdk/models/shared/epcqueryresponse.js +1 -1
- package/dist/esm/sdk/models/shared/geographyarea.d.ts +2 -2
- package/dist/esm/sdk/models/shared/geographyrelatedarea.d.ts +2 -2
- package/dist/esm/sdk/models/shared/historicalvaluation.d.ts +3 -3
- package/dist/esm/sdk/models/shared/index.d.ts +16 -3
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +16 -3
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/model.d.ts +72 -0
- package/dist/esm/sdk/models/shared/model.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/model.js +62 -0
- package/dist/esm/sdk/models/shared/model.js.map +1 -0
- package/dist/esm/sdk/models/shared/modellist.d.ts +19 -0
- package/dist/esm/sdk/models/shared/modellist.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/modellist.js +20 -0
- package/dist/esm/sdk/models/shared/modellist.js.map +1 -0
- package/dist/esm/sdk/models/shared/modelresponse.d.ts +116 -0
- package/dist/esm/sdk/models/shared/modelresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/modelresponse.js +97 -0
- package/dist/esm/sdk/models/shared/modelresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/regulatoryzonecharges.d.ts +4 -4
- package/dist/esm/sdk/models/shared/regulatoryzonecharges.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/regulatoryzonecharges.js +3 -3
- package/dist/esm/sdk/models/shared/regulatoryzonecharges.js.map +1 -1
- package/dist/esm/sdk/models/shared/responserequest.d.ts +148 -0
- package/dist/esm/sdk/models/shared/responserequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/responserequest.js +71 -0
- package/dist/esm/sdk/models/shared/responserequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/searchresponse.d.ts +4 -0
- package/dist/esm/sdk/models/shared/searchresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/searchresponse.js +1 -0
- package/dist/esm/sdk/models/shared/searchresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/site.d.ts +1 -1
- package/dist/esm/sdk/models/shared/streetdataset.d.ts +17 -0
- package/dist/esm/sdk/models/shared/streetdataset.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetdataset.js +15 -0
- package/dist/esm/sdk/models/shared/streetdataset.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetdescriptor.d.ts +2 -2
- package/dist/esm/sdk/models/shared/streetdescriptor.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetdescriptor.js +1 -1
- package/dist/esm/sdk/models/shared/streetdescriptor.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetfield.d.ts +16 -0
- package/dist/esm/sdk/models/shared/streetfield.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetfield.js +18 -0
- package/dist/esm/sdk/models/shared/streetfield.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetmatch.d.ts +9 -4
- package/dist/esm/sdk/models/shared/streetmatch.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetmatch.js +2 -0
- package/dist/esm/sdk/models/shared/streetmatch.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetnameconfidence.d.ts +17 -0
- package/dist/esm/sdk/models/shared/streetnameconfidence.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetnameconfidence.js +15 -0
- package/dist/esm/sdk/models/shared/streetnameconfidence.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetnamekind.d.ts +16 -0
- package/dist/esm/sdk/models/shared/streetnamekind.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetnamekind.js +14 -0
- package/dist/esm/sdk/models/shared/streetnamekind.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetproperties.d.ts +20 -0
- package/dist/esm/sdk/models/shared/streetproperties.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetproperties.js +14 -0
- package/dist/esm/sdk/models/shared/streetproperties.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetpropertyoptions.d.ts +28 -0
- package/dist/esm/sdk/models/shared/streetpropertyoptions.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetpropertyoptions.js +14 -0
- package/dist/esm/sdk/models/shared/streetpropertyoptions.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetprovenance.d.ts +45 -0
- package/dist/esm/sdk/models/shared/streetprovenance.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetprovenance.js +21 -0
- package/dist/esm/sdk/models/shared/streetprovenance.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.d.ts +6 -1
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.js +1 -0
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybyname.d.ts +2 -2
- package/dist/esm/sdk/models/shared/streetquerybyname.js +1 -1
- package/dist/esm/sdk/models/shared/streetquerybyname.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybypostcode.d.ts +5 -0
- package/dist/esm/sdk/models/shared/streetquerybypostcode.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybypostcode.js +1 -0
- package/dist/esm/sdk/models/shared/streetquerybypostcode.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetqueryrequest.d.ts +20 -28
- package/dist/esm/sdk/models/shared/streetqueryrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetqueryrequest.js +12 -10
- package/dist/esm/sdk/models/shared/streetqueryrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetqueryresponse.d.ts +6 -14
- package/dist/esm/sdk/models/shared/streetqueryresponse.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetqueryresponse.js +3 -6
- package/dist/esm/sdk/models/shared/streetqueryresponse.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetrecord.d.ts +126 -0
- package/dist/esm/sdk/models/shared/streetrecord.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetrecord.js +49 -0
- package/dist/esm/sdk/models/shared/streetrecord.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetsource.d.ts +16 -0
- package/dist/esm/sdk/models/shared/streetsource.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/streetsource.js +14 -0
- package/dist/esm/sdk/models/shared/streetsource.js.map +1 -0
- package/dist/esm/sdk/models/shared/titlealert.d.ts +30 -0
- package/dist/esm/sdk/models/shared/titlealert.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/titlealert.js +29 -0
- package/dist/esm/sdk/models/shared/titlealert.js.map +1 -0
- package/dist/esm/sdk/models/shared/titleextractionpayload.d.ts +5 -0
- package/dist/esm/sdk/models/shared/titleextractionpayload.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.js +2 -0
- package/dist/esm/sdk/models/shared/titleextractionpayload.js.map +1 -1
- package/dist/esm/sdk/models/shared/titlepricepaid.d.ts +19 -0
- package/dist/esm/sdk/models/shared/titlepricepaid.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titlepricepaid.js +12 -0
- package/dist/esm/sdk/models/shared/titlepricepaid.js.map +1 -1
- package/dist/esm/sdk/models.d.ts +38 -0
- package/dist/esm/sdk/models.d.ts.map +1 -0
- package/dist/esm/sdk/models.js +49 -0
- package/dist/esm/sdk/models.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/sites.d.ts +1 -1
- package/dist/esm/sdk/sites.js +1 -1
- package/dist/esm/sdk/streets.d.ts +1 -1
- package/dist/esm/sdk/streets.js +1 -1
- package/examples/addressBulkLookupPostcodes.example.ts +1 -1
- package/package.json +1 -1
- package/src/funcs/geographyGetGeographyAncestors.ts +1 -1
- package/src/funcs/geographyGetGeographyAreas.ts +1 -1
- package/src/funcs/geographyGetGeographyDescendants.ts +1 -1
- package/src/funcs/geographyGetGeographyProvenance.ts +1 -1
- package/src/funcs/geographyGetGeographyRelease.ts +1 -1
- package/src/funcs/modelsGetV1AiModels.ts +154 -0
- package/src/funcs/modelsGetV1AiModelsModel.ts +178 -0
- package/src/funcs/modelsPostV1AiChatCompletions.ts +189 -0
- package/src/funcs/modelsPostV1AiResponses.ts +175 -0
- package/src/funcs/searchSearchSuggest.ts +1 -0
- package/src/funcs/sitesGet.ts +1 -1
- package/src/funcs/streetsSearchStreets.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/geography.ts +5 -5
- package/src/sdk/models/errors/index.ts +1 -0
- package/src/sdk/models/errors/modelapierror.ts +118 -0
- package/src/sdk/models/operations/getepcbylocationid.ts +3 -3
- package/src/sdk/models/operations/getgeographychildren.ts +2 -2
- package/src/sdk/models/operations/getv1aimodelsmodel.ts +34 -0
- package/src/sdk/models/operations/index.ts +2 -0
- package/src/sdk/models/operations/postv1aichatcompletions.ts +28 -0
- package/src/sdk/models/operations/resolveaddress.ts +5 -0
- package/src/sdk/models/operations/searchsuggest.ts +26 -0
- package/src/sdk/models/shared/addressresolverequest.ts +7 -0
- package/src/sdk/models/shared/avmanalysisresponse.ts +1 -1
- package/src/sdk/models/shared/avmconfidenceinterval.ts +3 -3
- package/src/sdk/models/shared/avmmetadata.ts +1 -1
- package/src/sdk/models/shared/avmpredictbylocationrequest.ts +3 -3
- package/src/sdk/models/shared/avmpredictresponse.ts +1 -1
- package/src/sdk/models/shared/chatcompletion.ts +201 -0
- package/src/sdk/models/shared/chatcompletionrequest.ts +318 -0
- package/src/sdk/models/shared/epcqueryresponse.ts +3 -3
- package/src/sdk/models/shared/geographyarea.ts +2 -2
- package/src/sdk/models/shared/geographyrelatedarea.ts +2 -2
- package/src/sdk/models/shared/historicalvaluation.ts +3 -3
- package/src/sdk/models/shared/index.ts +16 -3
- package/src/sdk/models/shared/model.ts +130 -0
- package/src/sdk/models/shared/modellist.ts +45 -0
- package/src/sdk/models/shared/modelresponse.ts +242 -0
- package/src/sdk/models/shared/regulatoryzonecharges.ts +11 -6
- package/src/sdk/models/shared/responserequest.ts +220 -0
- package/src/sdk/models/shared/searchresponse.ts +5 -0
- package/src/sdk/models/shared/site.ts +1 -1
- package/src/sdk/models/shared/streetdataset.ts +24 -0
- package/src/sdk/models/shared/streetdescriptor.ts +3 -3
- package/src/sdk/models/shared/streetfield.ts +22 -0
- package/src/sdk/models/shared/streetmatch.ts +10 -4
- package/src/sdk/models/shared/streetnameconfidence.ts +27 -0
- package/src/sdk/models/shared/streetnamekind.ts +26 -0
- package/src/sdk/models/shared/streetproperties.ts +42 -0
- package/src/sdk/models/shared/streetpropertyoptions.ts +49 -0
- package/src/sdk/models/shared/streetprovenance.ts +73 -0
- package/src/sdk/models/shared/streetquerybycoordinates.ts +7 -1
- package/src/sdk/models/shared/streetquerybyname.ts +3 -3
- package/src/sdk/models/shared/streetquerybypostcode.ts +6 -0
- package/src/sdk/models/shared/streetqueryrequest.ts +36 -45
- package/src/sdk/models/shared/streetqueryresponse.ts +8 -21
- package/src/sdk/models/shared/streetrecord.ts +202 -0
- package/src/sdk/models/shared/streetsource.ts +26 -0
- package/src/sdk/models/shared/titlealert.ts +60 -0
- package/src/sdk/models/shared/titleextractionpayload.ts +6 -0
- package/src/sdk/models/shared/titlepricepaid.ts +24 -0
- package/src/sdk/models.ts +87 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sites.ts +1 -1
- package/src/sdk/streets.ts +1 -1
- package/dist/commonjs/sdk/models/shared/propertyonstreet.d.ts +0 -29
- package/dist/commonjs/sdk/models/shared/propertyonstreet.d.ts.map +0 -1
- package/dist/commonjs/sdk/models/shared/propertyonstreet.js.map +0 -1
- package/dist/commonjs/sdk/models/shared/streetdetails.d.ts +0 -34
- package/dist/commonjs/sdk/models/shared/streetdetails.d.ts.map +0 -1
- package/dist/commonjs/sdk/models/shared/streetdetails.js.map +0 -1
- package/dist/commonjs/sdk/models/shared/streetstatistics.d.ts +0 -19
- package/dist/commonjs/sdk/models/shared/streetstatistics.d.ts.map +0 -1
- package/dist/commonjs/sdk/models/shared/streetstatistics.js.map +0 -1
- package/dist/esm/sdk/models/shared/propertyonstreet.d.ts +0 -29
- package/dist/esm/sdk/models/shared/propertyonstreet.d.ts.map +0 -1
- package/dist/esm/sdk/models/shared/propertyonstreet.js +0 -17
- package/dist/esm/sdk/models/shared/propertyonstreet.js.map +0 -1
- package/dist/esm/sdk/models/shared/streetdetails.d.ts +0 -34
- package/dist/esm/sdk/models/shared/streetdetails.d.ts.map +0 -1
- package/dist/esm/sdk/models/shared/streetdetails.js +0 -19
- package/dist/esm/sdk/models/shared/streetdetails.js.map +0 -1
- package/dist/esm/sdk/models/shared/streetstatistics.d.ts +0 -19
- package/dist/esm/sdk/models/shared/streetstatistics.d.ts.map +0 -1
- package/dist/esm/sdk/models/shared/streetstatistics.js +0 -14
- package/dist/esm/sdk/models/shared/streetstatistics.js.map +0 -1
- package/src/sdk/models/shared/propertyonstreet.ts +0 -54
- package/src/sdk/models/shared/streetdetails.ts +0 -63
- package/src/sdk/models/shared/streetstatistics.ts +0 -39
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../sdk/models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../sdk/models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKBaseError } from "../sdk/models/errors/sdkbaseerror.js";
|
|
24
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../sdk/types/async.js";
|
|
27
|
+
import { Result } from "../sdk/types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Run a model (Responses)
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Runs a model on one input and returns its result as one `output_text` holding one JSON object. Send exactly one user message holding one `input_image` part. Charged, and repeats served from cache, exactly as chat completions. Streaming is not supported on this route.
|
|
34
|
+
*/
|
|
35
|
+
export function modelsPostV1AiResponses(
|
|
36
|
+
client: SDKCore,
|
|
37
|
+
request: shared.ResponseRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
shared.ModelResponse,
|
|
42
|
+
| errors.ModelApiError
|
|
43
|
+
| SDKBaseError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: SDKCore,
|
|
62
|
+
request: shared.ResponseRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
shared.ModelResponse,
|
|
68
|
+
| errors.ModelApiError
|
|
69
|
+
| SDKBaseError
|
|
70
|
+
| ResponseValidationError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| InvalidRequestError
|
|
75
|
+
| UnexpectedClientError
|
|
76
|
+
| SDKValidationError
|
|
77
|
+
>,
|
|
78
|
+
APICall,
|
|
79
|
+
]
|
|
80
|
+
> {
|
|
81
|
+
const parsed = safeParse(
|
|
82
|
+
request,
|
|
83
|
+
(value) => shared.ResponseRequest$outboundSchema.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
91
|
+
|
|
92
|
+
const path = pathToFunc("/v1/ai/responses")();
|
|
93
|
+
|
|
94
|
+
const headers = new Headers(compactMap({
|
|
95
|
+
"Content-Type": "application/json",
|
|
96
|
+
Accept: "application/json",
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
100
|
+
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
101
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
102
|
+
|
|
103
|
+
const context = {
|
|
104
|
+
options: client._options,
|
|
105
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
106
|
+
operationID: "post_/v1/ai/responses",
|
|
107
|
+
oAuth2Scopes: null,
|
|
108
|
+
|
|
109
|
+
resolvedSecurity: requestSecurity,
|
|
110
|
+
|
|
111
|
+
securitySource: client._options.apiKeyAuth,
|
|
112
|
+
retryConfig: options?.retries
|
|
113
|
+
|| client._options.retryConfig
|
|
114
|
+
|| { strategy: "none" },
|
|
115
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
const requestRes = client._createRequest(context, {
|
|
119
|
+
security: requestSecurity,
|
|
120
|
+
method: "POST",
|
|
121
|
+
baseURL: options?.serverURL,
|
|
122
|
+
path: path,
|
|
123
|
+
headers: headers,
|
|
124
|
+
body: body,
|
|
125
|
+
userAgent: client._options.userAgent,
|
|
126
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
127
|
+
}, options);
|
|
128
|
+
if (!requestRes.ok) {
|
|
129
|
+
return [requestRes, { status: "invalid" }];
|
|
130
|
+
}
|
|
131
|
+
const req = requestRes.value;
|
|
132
|
+
|
|
133
|
+
const doResult = await client._do(req, {
|
|
134
|
+
context,
|
|
135
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
136
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
137
|
+
retryConfig: context.retryConfig,
|
|
138
|
+
retryCodes: context.retryCodes,
|
|
139
|
+
});
|
|
140
|
+
if (!doResult.ok) {
|
|
141
|
+
return [doResult, { status: "request-error", request: req }];
|
|
142
|
+
}
|
|
143
|
+
const response = doResult.value;
|
|
144
|
+
|
|
145
|
+
const responseFields = {
|
|
146
|
+
HttpMeta: { Response: response, Request: req },
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
const [result] = await M.match<
|
|
150
|
+
shared.ModelResponse,
|
|
151
|
+
| errors.ModelApiError
|
|
152
|
+
| SDKBaseError
|
|
153
|
+
| ResponseValidationError
|
|
154
|
+
| ConnectionError
|
|
155
|
+
| RequestAbortedError
|
|
156
|
+
| RequestTimeoutError
|
|
157
|
+
| InvalidRequestError
|
|
158
|
+
| UnexpectedClientError
|
|
159
|
+
| SDKValidationError
|
|
160
|
+
>(
|
|
161
|
+
M.json(200, shared.ModelResponse$inboundSchema),
|
|
162
|
+
M.jsonErr(
|
|
163
|
+
[400, 401, 402, 403, 404, 413, 429],
|
|
164
|
+
errors.ModelApiError$inboundSchema,
|
|
165
|
+
),
|
|
166
|
+
M.jsonErr([500, 503], errors.ModelApiError$inboundSchema),
|
|
167
|
+
M.fail("4XX"),
|
|
168
|
+
M.fail("5XX"),
|
|
169
|
+
)(response, req, { extraFields: responseFields });
|
|
170
|
+
if (!result.ok) {
|
|
171
|
+
return [result, { status: "complete", request: req, response }];
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return [result, { status: "complete", request: req, response }];
|
|
175
|
+
}
|
|
@@ -97,6 +97,7 @@ async function $do(
|
|
|
97
97
|
const query = encodeFormQuery({
|
|
98
98
|
"addressable_only": payload.addressable_only,
|
|
99
99
|
"classification": payload.classification,
|
|
100
|
+
"dataset": payload.dataset,
|
|
100
101
|
"geo_mode": payload.geo_mode,
|
|
101
102
|
"granularity": payload.granularity,
|
|
102
103
|
"lat": payload.lat,
|
package/src/funcs/sitesGet.ts
CHANGED
|
@@ -31,7 +31,7 @@ import { Result } from "../sdk/types/fp.js";
|
|
|
31
31
|
* Get site by ID
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Retrieve one registered title by its identifier, which joins the country, the registry and the title number with colons, as in `GB:
|
|
34
|
+
* Retrieve one registered title by its identifier, which joins the country, the registry and the title number with colons, as in `GB:LR:AGL123456`. This endpoint returns every attribute, including the boundary geometry, ownership, property statistics, planning statistics and area metrics.
|
|
35
35
|
*/
|
|
36
36
|
export function sitesGet(
|
|
37
37
|
client: SDKCore,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../sdk/types/fp.js";
|
|
|
30
30
|
* Query streets by any identifier
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns the streets picked out by one of five identifiers: a USRN, a UPRN, a coordinate and radius, a name search, or a postcode. Each street comes back with its reference number, the
|
|
33
|
+
* Returns the streets picked out by one of five identifiers: a USRN, a UPRN, a coordinate and radius, a name search, or a postcode. Each street comes back with its reference number, the dataset that supplied it, its name in each language it is recorded in, its place names and a representative point. `dataset` chooses between Ordnance Survey open data, the Ordnance Survey National Geographic Database (NGD), or open data with the NGD answering only where the open data has nothing. Name, coordinate and postcode lookups are paged: pass the `id` of the last street as `starting_after` while `has_more` is true. Responses that carry open data include the `attribution` that must be shown with it. When an identifier matches no street, the response is an empty list with a `message` explaining which one missed.
|
|
34
34
|
*/
|
|
35
35
|
export function streetsSearchStreets(
|
|
36
36
|
client: SDKCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -60,8 +60,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
60
60
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
|
-
openapiDocVersion: "6.
|
|
63
|
+
openapiDocVersion: "6.36.0",
|
|
64
64
|
sdkVersion: "0.12.0",
|
|
65
|
-
genVersion: "2.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 0.12.0 2.
|
|
65
|
+
genVersion: "2.943.0",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 0.12.0 2.943.0 6.36.0 @vepler/sdk",
|
|
67
67
|
} as const;
|
package/src/sdk/geography.ts
CHANGED
|
@@ -17,7 +17,7 @@ export class Geography extends ClientSDK {
|
|
|
17
17
|
* Everything containing this area
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Walks the whole way up in one read: the containing area at every tier, with how many hops away it is and the worst fit along that path. Check `minFit` before aggregating
|
|
20
|
+
* Walks the whole way up in one read: the containing area at every tier, with how many hops away it is and the worst fit along that path. Check `minFit` before aggregating: an LSOA reaches its local authority by best fit in the current release, because the exact-fit spine exists only at the 2022 boundaries.
|
|
21
21
|
*/
|
|
22
22
|
async getGeographyAncestors(
|
|
23
23
|
request: operations.GetGeographyAncestorsRequest,
|
|
@@ -34,7 +34,7 @@ export class Geography extends ClientSDK {
|
|
|
34
34
|
* Look up areas by code
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
* Resolves up to 100 comma-separated GSS codes to their name, type, vintage, nation and tier. A code can legitimately exist at more than one layer or edition, so every match is returned
|
|
37
|
+
* Resolves up to 100 comma-separated GSS codes to their name, type, vintage, nation and tier. A code can legitimately exist at more than one layer or edition, so every match is returned. Narrow with `areaType` when you want a single answer.
|
|
38
38
|
*/
|
|
39
39
|
async getGeographyAreas(
|
|
40
40
|
request: operations.GetGeographyAreasRequest,
|
|
@@ -68,7 +68,7 @@ export class Geography extends ClientSDK {
|
|
|
68
68
|
* Everything inside this area
|
|
69
69
|
*
|
|
70
70
|
* @remarks
|
|
71
|
-
* Paged, because the
|
|
71
|
+
* Paged, because the set can be very large: England and Wales hold 188,880 Output Areas. `total_count` reports the full size of the set being paged through. Note that every unitary authority is both a district and a county under one code, so narrow with `areaType` or each descendant is returned once per matching type.
|
|
72
72
|
*/
|
|
73
73
|
async getGeographyDescendants(
|
|
74
74
|
request: operations.GetGeographyDescendantsRequest,
|
|
@@ -85,7 +85,7 @@ export class Geography extends ClientSDK {
|
|
|
85
85
|
* Where this area's record came from
|
|
86
86
|
*
|
|
87
87
|
* @remarks
|
|
88
|
-
* The publisher, the pinned file, its licence, and the acknowledgement line that licence requires
|
|
88
|
+
* The publisher, the pinned file, its licence, and the acknowledgement line that licence requires, verbatim, because the wording differs per custodian and anyone redistributing this data has to reproduce it. `sha256` identifies the exact file the record was parsed from; `fromArchive` is true when the publisher was unreachable and the file came from Vepler's archive.
|
|
89
89
|
*/
|
|
90
90
|
async getGeographyProvenance(
|
|
91
91
|
request: operations.GetGeographyProvenanceRequest,
|
|
@@ -102,7 +102,7 @@ export class Geography extends ClientSDK {
|
|
|
102
102
|
* Get the current geography release
|
|
103
103
|
*
|
|
104
104
|
* @remarks
|
|
105
|
-
* Returns the release every other geography endpoint answers from unless one is pinned. A release is a named set of publisher vintages that compose into one consistent tree
|
|
105
|
+
* Returns the release every other geography endpoint answers from unless one is pinned. A release is a named set of publisher vintages that compose into one consistent tree. The nations publish on their own cycles, so a UK-wide release is a composition rather than a date.
|
|
106
106
|
*/
|
|
107
107
|
async getGeographyRelease(
|
|
108
108
|
options?: RequestOptions,
|
|
@@ -113,6 +113,7 @@ export * from "./listschoolschangelog.js";
|
|
|
113
113
|
export * from "./lookupoutcode.js";
|
|
114
114
|
export * from "./lookuppostcode.js";
|
|
115
115
|
export * from "./lookupuprn.js";
|
|
116
|
+
export * from "./modelapierror.js";
|
|
116
117
|
export * from "./postcensusareaprofile.js";
|
|
117
118
|
export * from "./postcensusrollup.js";
|
|
118
119
|
export * from "./postv1titledeedstitlenumberpurchase.js";
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKBaseError } from "./sdkbaseerror.js";
|
|
11
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Broad category of the failure: a request problem, an authentication problem, a rate limit or a server fault.
|
|
15
|
+
*/
|
|
16
|
+
export const SchemasModelApiErrorType = {
|
|
17
|
+
InvalidRequestError: "invalid_request_error",
|
|
18
|
+
AuthenticationError: "authentication_error",
|
|
19
|
+
RateLimitError: "rate_limit_error",
|
|
20
|
+
ApiError: "api_error",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Broad category of the failure: a request problem, an authentication problem, a rate limit or a server fault.
|
|
24
|
+
*/
|
|
25
|
+
export type SchemasModelApiErrorType = OpenEnum<
|
|
26
|
+
typeof SchemasModelApiErrorType
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export type SchemasModelApiErrorError = {
|
|
30
|
+
/**
|
|
31
|
+
* Stable code identifying the failure, safe to branch on, or null.
|
|
32
|
+
*/
|
|
33
|
+
code: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Human-readable explanation of what went wrong.
|
|
36
|
+
*/
|
|
37
|
+
message: string;
|
|
38
|
+
/**
|
|
39
|
+
* Request parameter at fault, or null when the failure has none.
|
|
40
|
+
*/
|
|
41
|
+
param: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Broad category of the failure: a request problem, an authentication problem, a rate limit or a server fault.
|
|
44
|
+
*/
|
|
45
|
+
type: SchemasModelApiErrorType;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type ModelApiErrorData = {
|
|
49
|
+
error: SchemasModelApiErrorError;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export class ModelApiError extends SDKBaseError {
|
|
53
|
+
error: SchemasModelApiErrorError;
|
|
54
|
+
|
|
55
|
+
/** The original data that was passed to this error instance. */
|
|
56
|
+
data$: ModelApiErrorData;
|
|
57
|
+
|
|
58
|
+
constructor(
|
|
59
|
+
err: ModelApiErrorData,
|
|
60
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
61
|
+
) {
|
|
62
|
+
const message = err.error?.message
|
|
63
|
+
|| `API error occurred: ${JSON.stringify(err)}`;
|
|
64
|
+
super(message, httpMeta);
|
|
65
|
+
this.data$ = err;
|
|
66
|
+
this.error = err.error;
|
|
67
|
+
|
|
68
|
+
this.name = "ModelApiError";
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const SchemasModelApiErrorType$inboundSchema: z.ZodType<
|
|
74
|
+
SchemasModelApiErrorType,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
unknown
|
|
77
|
+
> = openEnums.inboundSchema(SchemasModelApiErrorType);
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const SchemasModelApiErrorError$inboundSchema: z.ZodType<
|
|
81
|
+
SchemasModelApiErrorError,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
unknown
|
|
84
|
+
> = z.object({
|
|
85
|
+
code: z.nullable(z.string()),
|
|
86
|
+
message: z.string(),
|
|
87
|
+
param: z.nullable(z.string()),
|
|
88
|
+
type: SchemasModelApiErrorType$inboundSchema,
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export function schemasModelApiErrorErrorFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<SchemasModelApiErrorError, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => SchemasModelApiErrorError$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'SchemasModelApiErrorError' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** @internal */
|
|
102
|
+
export const ModelApiError$inboundSchema: z.ZodType<
|
|
103
|
+
ModelApiError,
|
|
104
|
+
z.ZodTypeDef,
|
|
105
|
+
unknown
|
|
106
|
+
> = z.object({
|
|
107
|
+
error: z.lazy(() => SchemasModelApiErrorError$inboundSchema),
|
|
108
|
+
request$: z.instanceof(Request),
|
|
109
|
+
response$: z.instanceof(Response),
|
|
110
|
+
body$: z.string(),
|
|
111
|
+
})
|
|
112
|
+
.transform((v) => {
|
|
113
|
+
return new ModelApiError(v, {
|
|
114
|
+
request: v.request$,
|
|
115
|
+
response: v.response$,
|
|
116
|
+
body: v.body$,
|
|
117
|
+
});
|
|
118
|
+
});
|
|
@@ -1427,7 +1427,7 @@ export type Fabric = {
|
|
|
1427
1427
|
};
|
|
1428
1428
|
|
|
1429
1429
|
/**
|
|
1430
|
-
* Whether the building meets the Minimum Energy Efficiency Standard, worked out from the current rating band, the certificate type and the nation. `compliant` covers bands A to D, `non_compliant` bands F and G, and `at_risk` marks band E as lettable today with no headroom under the expected tightening to C. The standard is SI 2015/962, which covers both domestic and non-domestic private rented property in England and Wales but does not extend to Scotland, and which is assessed on an asset rating rather than the operational rating a Display Energy Certificate carries
|
|
1430
|
+
* Whether the building meets the Minimum Energy Efficiency Standard, worked out from the current rating band, the certificate type and the nation. `compliant` covers bands A to D, `non_compliant` bands F and G, and `at_risk` marks band E as lettable today with no headroom under the expected tightening to C. The standard is SI 2015/962, which covers both domestic and non-domestic private rented property in England and Wales but does not extend to Scotland, and which is assessed on an asset rating rather than the operational rating a Display Energy Certificate carries. Scottish certificates and DECs are therefore `not_applicable`. `exempt` means a registered PRS exemption and appears only on legacy rows; it is never derived from certificate data. `unknown` means there is not enough data to decide.
|
|
1431
1431
|
*/
|
|
1432
1432
|
export const MeesCompliance = {
|
|
1433
1433
|
Compliant: "compliant",
|
|
@@ -1438,7 +1438,7 @@ export const MeesCompliance = {
|
|
|
1438
1438
|
Unknown: "unknown",
|
|
1439
1439
|
} as const;
|
|
1440
1440
|
/**
|
|
1441
|
-
* Whether the building meets the Minimum Energy Efficiency Standard, worked out from the current rating band, the certificate type and the nation. `compliant` covers bands A to D, `non_compliant` bands F and G, and `at_risk` marks band E as lettable today with no headroom under the expected tightening to C. The standard is SI 2015/962, which covers both domestic and non-domestic private rented property in England and Wales but does not extend to Scotland, and which is assessed on an asset rating rather than the operational rating a Display Energy Certificate carries
|
|
1441
|
+
* Whether the building meets the Minimum Energy Efficiency Standard, worked out from the current rating band, the certificate type and the nation. `compliant` covers bands A to D, `non_compliant` bands F and G, and `at_risk` marks band E as lettable today with no headroom under the expected tightening to C. The standard is SI 2015/962, which covers both domestic and non-domestic private rented property in England and Wales but does not extend to Scotland, and which is assessed on an asset rating rather than the operational rating a Display Energy Certificate carries. Scottish certificates and DECs are therefore `not_applicable`. `exempt` means a registered PRS exemption and appears only on legacy rows; it is never derived from certificate data. `unknown` means there is not enough data to decide.
|
|
1442
1442
|
*/
|
|
1443
1443
|
export type MeesCompliance = OpenEnum<typeof MeesCompliance>;
|
|
1444
1444
|
|
|
@@ -2377,7 +2377,7 @@ export type GetEpcByLocationIdData = {
|
|
|
2377
2377
|
*/
|
|
2378
2378
|
lodgementDate: string;
|
|
2379
2379
|
/**
|
|
2380
|
-
* Whether the building meets the Minimum Energy Efficiency Standard, worked out from the current rating band, the certificate type and the nation. `compliant` covers bands A to D, `non_compliant` bands F and G, and `at_risk` marks band E as lettable today with no headroom under the expected tightening to C. The standard is SI 2015/962, which covers both domestic and non-domestic private rented property in England and Wales but does not extend to Scotland, and which is assessed on an asset rating rather than the operational rating a Display Energy Certificate carries
|
|
2380
|
+
* Whether the building meets the Minimum Energy Efficiency Standard, worked out from the current rating band, the certificate type and the nation. `compliant` covers bands A to D, `non_compliant` bands F and G, and `at_risk` marks band E as lettable today with no headroom under the expected tightening to C. The standard is SI 2015/962, which covers both domestic and non-domestic private rented property in England and Wales but does not extend to Scotland, and which is assessed on an asset rating rather than the operational rating a Display Energy Certificate carries. Scottish certificates and DECs are therefore `not_applicable`. `exempt` means a registered PRS exemption and appears only on legacy rows; it is never derived from certificate data. `unknown` means there is not enough data to decide.
|
|
2381
2381
|
*/
|
|
2382
2382
|
meesCompliance: MeesCompliance;
|
|
2383
2383
|
/**
|
|
@@ -30,7 +30,7 @@ export type GetGeographyChildrenRequest = {
|
|
|
30
30
|
|
|
31
31
|
export type GetGeographyChildrenData = {
|
|
32
32
|
/**
|
|
33
|
-
* The layer as its publisher names it
|
|
33
|
+
* The layer as its publisher names it, such as `lsoa`, `sct_dz` or `nir_dz`. Never carries a vintage.
|
|
34
34
|
*/
|
|
35
35
|
areaType: string;
|
|
36
36
|
/**
|
|
@@ -39,7 +39,7 @@ export type GetGeographyChildrenData = {
|
|
|
39
39
|
code: string;
|
|
40
40
|
fitType: string;
|
|
41
41
|
/**
|
|
42
|
-
* Publisher name. Null where none is published
|
|
42
|
+
* Publisher name. Null where none is published (ONS issues no names for Output Areas). Names are not unique, so never key on one.
|
|
43
43
|
*/
|
|
44
44
|
name: string | null;
|
|
45
45
|
/**
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type GetV1AiModelsModelRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Id of the model.
|
|
10
|
+
*/
|
|
11
|
+
model: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetV1AiModelsModelRequest$Outbound = {
|
|
16
|
+
model: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetV1AiModelsModelRequest$outboundSchema: z.ZodType<
|
|
21
|
+
GetV1AiModelsModelRequest$Outbound,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
GetV1AiModelsModelRequest
|
|
24
|
+
> = z.object({
|
|
25
|
+
model: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function getV1AiModelsModelRequestToJSON(
|
|
29
|
+
getV1AiModelsModelRequest: GetV1AiModelsModelRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
GetV1AiModelsModelRequest$outboundSchema.parse(getV1AiModelsModelRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -91,6 +91,7 @@ export * from "./getsubstationcapacity.js";
|
|
|
91
91
|
export * from "./getsubstationdfes.js";
|
|
92
92
|
export * from "./gettransactionbyid.js";
|
|
93
93
|
export * from "./gettransactionsbyuprn.js";
|
|
94
|
+
export * from "./getv1aimodelsmodel.js";
|
|
94
95
|
export * from "./getv1titledeedstitlenumber.js";
|
|
95
96
|
export * from "./getv1titledeedstitlenumberapplications.js";
|
|
96
97
|
export * from "./getv1titledeedstitlenumberavailability.js";
|
|
@@ -106,6 +107,7 @@ export * from "./lookuppostcode.js";
|
|
|
106
107
|
export * from "./lookupuprn.js";
|
|
107
108
|
export * from "./postcensusareaprofile.js";
|
|
108
109
|
export * from "./postcensusrollup.js";
|
|
110
|
+
export * from "./postv1aichatcompletions.js";
|
|
109
111
|
export * from "./postv1titledeedstitlenumberpurchase.js";
|
|
110
112
|
export * from "./postv1titledeedstitlenumberpurchaseasync.js";
|
|
111
113
|
export * from "./querylistings.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import * as shared from "../shared/index.js";
|
|
10
|
+
|
|
11
|
+
export type PostV1AiChatCompletionsResponse = shared.ChatCompletion | string;
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const PostV1AiChatCompletionsResponse$inboundSchema: z.ZodType<
|
|
15
|
+
PostV1AiChatCompletionsResponse,
|
|
16
|
+
z.ZodTypeDef,
|
|
17
|
+
unknown
|
|
18
|
+
> = z.union([shared.ChatCompletion$inboundSchema, z.string()]);
|
|
19
|
+
|
|
20
|
+
export function postV1AiChatCompletionsResponseFromJSON(
|
|
21
|
+
jsonString: string,
|
|
22
|
+
): SafeParseResult<PostV1AiChatCompletionsResponse, SDKValidationError> {
|
|
23
|
+
return safeParse(
|
|
24
|
+
jsonString,
|
|
25
|
+
(x) => PostV1AiChatCompletionsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
26
|
+
`Failed to parse 'PostV1AiChatCompletionsResponse' from JSON`,
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -307,6 +307,10 @@ export type RecommendationCode = OpenEnum<typeof RecommendationCode>;
|
|
|
307
307
|
* The matches and how they were arrived at. Present when the resolution succeeded.
|
|
308
308
|
*/
|
|
309
309
|
export type Result = {
|
|
310
|
+
/**
|
|
311
|
+
* The attribution that must be shown wherever the open-data street fields in this response are displayed. Present when at least one returned street carries open data.
|
|
312
|
+
*/
|
|
313
|
+
attribution?: string | undefined;
|
|
310
314
|
/**
|
|
311
315
|
* Overall confidence in this result set, from 0 to 100.
|
|
312
316
|
*/
|
|
@@ -586,6 +590,7 @@ export const RecommendationCode$inboundSchema: z.ZodType<
|
|
|
586
590
|
/** @internal */
|
|
587
591
|
export const Result$inboundSchema: z.ZodType<Result, z.ZodTypeDef, unknown> = z
|
|
588
592
|
.object({
|
|
593
|
+
attribution: z.string().optional(),
|
|
589
594
|
confidence: z.number(),
|
|
590
595
|
confidenceZone: ConfidenceZone$inboundSchema.optional(),
|
|
591
596
|
matchQuality: z.lazy(() => MatchQuality$inboundSchema).optional(),
|
|
@@ -31,6 +31,21 @@ export const Classification = {
|
|
|
31
31
|
*/
|
|
32
32
|
export type Classification = ClosedEnum<typeof Classification>;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Which street dataset street results are read from, with `granularity=street` only. 'open' reads Ordnance Survey open data published under the Open Government Licence. 'ngd' reads the Ordnance Survey National Geographic Database (NGD). 'open_then_ngd' reads the open data first and turns to the NGD only when the open data matches no street. Defaults to 'open_then_ngd'. Rejected with any other granularity.
|
|
36
|
+
*/
|
|
37
|
+
export const SearchSuggestQueryParamDataset = {
|
|
38
|
+
Open: "open",
|
|
39
|
+
Ngd: "ngd",
|
|
40
|
+
OpenThenNgd: "open_then_ngd",
|
|
41
|
+
} as const;
|
|
42
|
+
/**
|
|
43
|
+
* Which street dataset street results are read from, with `granularity=street` only. 'open' reads Ordnance Survey open data published under the Open Government Licence. 'ngd' reads the Ordnance Survey National Geographic Database (NGD). 'open_then_ngd' reads the open data first and turns to the NGD only when the open data matches no street. Defaults to 'open_then_ngd'. Rejected with any other granularity.
|
|
44
|
+
*/
|
|
45
|
+
export type SearchSuggestQueryParamDataset = ClosedEnum<
|
|
46
|
+
typeof SearchSuggestQueryParamDataset
|
|
47
|
+
>;
|
|
48
|
+
|
|
34
49
|
/**
|
|
35
50
|
* How the centre point shapes results, applied only when `lat` and `lng` are both supplied. 'bias', the default, is a soft preference: the best text matches are still returned, but results near the point rank higher. 'restrict' is a hard cutoff: only results within `radius_meters` of the point are returned, and `radius_meters` becomes required. Applies to address results.
|
|
36
51
|
*/
|
|
@@ -64,6 +79,10 @@ export type SearchSuggestRequest = {
|
|
|
64
79
|
* Filter address results by how the property is used. 'residential' covers dwellings, including houses, flats and houses in multiple occupation. 'commercial' covers non-residential premises such as offices, retail and warehouses. 'all' applies no filter. Defaults to 'residential'.
|
|
65
80
|
*/
|
|
66
81
|
classification?: Classification | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Which street dataset street results are read from, with `granularity=street` only. 'open' reads Ordnance Survey open data published under the Open Government Licence. 'ngd' reads the Ordnance Survey National Geographic Database (NGD). 'open_then_ngd' reads the open data first and turns to the NGD only when the open data matches no street. Defaults to 'open_then_ngd'. Rejected with any other granularity.
|
|
84
|
+
*/
|
|
85
|
+
dataset?: SearchSuggestQueryParamDataset | undefined;
|
|
67
86
|
/**
|
|
68
87
|
* How the centre point shapes results, applied only when `lat` and `lng` are both supplied. 'bias', the default, is a soft preference: the best text matches are still returned, but results near the point rank higher. 'restrict' is a hard cutoff: only results within `radius_meters` of the point are returned, and `radius_meters` becomes required. Applies to address results.
|
|
69
88
|
*/
|
|
@@ -116,6 +135,11 @@ export const Classification$outboundSchema: z.ZodNativeEnum<
|
|
|
116
135
|
typeof Classification
|
|
117
136
|
> = z.nativeEnum(Classification);
|
|
118
137
|
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const SearchSuggestQueryParamDataset$outboundSchema: z.ZodNativeEnum<
|
|
140
|
+
typeof SearchSuggestQueryParamDataset
|
|
141
|
+
> = z.nativeEnum(SearchSuggestQueryParamDataset);
|
|
142
|
+
|
|
119
143
|
/** @internal */
|
|
120
144
|
export const GeoMode$outboundSchema: z.ZodNativeEnum<typeof GeoMode> = z
|
|
121
145
|
.nativeEnum(GeoMode);
|
|
@@ -128,6 +152,7 @@ export const Granularity$outboundSchema: z.ZodNativeEnum<typeof Granularity> = z
|
|
|
128
152
|
export type SearchSuggestRequest$Outbound = {
|
|
129
153
|
addressable_only?: string | undefined;
|
|
130
154
|
classification?: string | undefined;
|
|
155
|
+
dataset?: string | undefined;
|
|
131
156
|
geo_mode?: string | undefined;
|
|
132
157
|
granularity?: string | undefined;
|
|
133
158
|
lat?: number | undefined;
|
|
@@ -148,6 +173,7 @@ export const SearchSuggestRequest$outboundSchema: z.ZodType<
|
|
|
148
173
|
> = z.object({
|
|
149
174
|
addressableOnly: AddressableOnly$outboundSchema.optional(),
|
|
150
175
|
classification: Classification$outboundSchema.optional(),
|
|
176
|
+
dataset: SearchSuggestQueryParamDataset$outboundSchema.optional(),
|
|
151
177
|
geoMode: GeoMode$outboundSchema.optional(),
|
|
152
178
|
granularity: Granularity$outboundSchema.optional(),
|
|
153
179
|
lat: z.number().optional(),
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
StreetDataset,
|
|
9
|
+
StreetDataset$outboundSchema,
|
|
10
|
+
} from "./streetdataset.js";
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
13
|
* Filter matched addresses by how the property is used. 'residential' covers dwellings, including houses, flats and houses in multiple occupation. 'commercial' covers non-residential premises such as offices, retail and warehouses. 'all' applies no filter. Defaults to 'residential'.
|
|
@@ -50,6 +54,7 @@ export type Options = {
|
|
|
50
54
|
* Minimum confidence, from 0 to 100, that a postcode-level fallback match must reach to count.
|
|
51
55
|
*/
|
|
52
56
|
confidenceThreshold?: number | undefined;
|
|
57
|
+
dataset?: StreetDataset | undefined;
|
|
53
58
|
/**
|
|
54
59
|
* Allow postcode-level fallback matching when the primary match is weak or absent. Defaults to true.
|
|
55
60
|
*/
|
|
@@ -134,6 +139,7 @@ export function addressResolveRequestGranularityToJSON(
|
|
|
134
139
|
export type Options$Outbound = {
|
|
135
140
|
classification?: string | undefined;
|
|
136
141
|
confidenceThreshold?: number | undefined;
|
|
142
|
+
dataset: string;
|
|
137
143
|
enableFallback?: boolean | undefined;
|
|
138
144
|
fallbackThreshold?: number | undefined;
|
|
139
145
|
granularity?: string | string | undefined;
|
|
@@ -151,6 +157,7 @@ export const Options$outboundSchema: z.ZodType<
|
|
|
151
157
|
> = z.object({
|
|
152
158
|
classification: AddressResolveRequestClassification$outboundSchema.optional(),
|
|
153
159
|
confidenceThreshold: z.number().optional(),
|
|
160
|
+
dataset: StreetDataset$outboundSchema.default("open_then_ngd"),
|
|
154
161
|
enableFallback: z.boolean().optional(),
|
|
155
162
|
fallbackThreshold: z.number().optional(),
|
|
156
163
|
granularity: z.union([
|
|
@@ -237,7 +237,7 @@ export type SaleHistory = {
|
|
|
237
237
|
*/
|
|
238
238
|
export type Valuation = {
|
|
239
239
|
/**
|
|
240
|
-
* How much confidence to place in the estimate, from 0 to 1, where 1 is the most confident.
|
|
240
|
+
* How much confidence to place in the estimate, from 0 to 1, where 1 is the most confident. For a sale valuation it is one minus the typical error of past valuations of comparable properties, so 0.88 means half of those valuations landed within 12 per cent of the price the property sold for.
|
|
241
241
|
*/
|
|
242
242
|
confidence: number;
|
|
243
243
|
confidenceInterval: AVMConfidenceInterval;
|