@functional-systems/lambdadb 0.1.5 → 0.2.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/README.md +10 -11
- package/RUNTIMES.md +6 -6
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/dist/commonjs/funcs/collectionsCreate.js +1 -1
- package/dist/commonjs/funcs/collectionsCreate.js.map +1 -1
- package/dist/commonjs/funcs/collectionsDelete.js +1 -1
- package/dist/commonjs/funcs/collectionsDelete.js.map +1 -1
- package/dist/commonjs/funcs/collectionsDocsBulkUpsert.js +1 -1
- package/dist/commonjs/funcs/collectionsDocsBulkUpsert.js.map +1 -1
- package/dist/commonjs/funcs/collectionsDocsDelete.js +1 -1
- package/dist/commonjs/funcs/collectionsDocsDelete.js.map +1 -1
- package/dist/commonjs/funcs/collectionsDocsFetch.js +1 -1
- package/dist/commonjs/funcs/collectionsDocsFetch.js.map +1 -1
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.js +1 -1
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.js.map +1 -1
- package/dist/commonjs/funcs/collectionsDocsListDocs.d.ts +15 -0
- package/dist/commonjs/funcs/collectionsDocsListDocs.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsListDocs.js +135 -0
- package/dist/commonjs/funcs/collectionsDocsListDocs.js.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsUpdate.js +1 -1
- package/dist/commonjs/funcs/collectionsDocsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/collectionsDocsUpsert.js +1 -1
- package/dist/commonjs/funcs/collectionsDocsUpsert.js.map +1 -1
- package/dist/commonjs/funcs/collectionsGet.js +1 -1
- package/dist/commonjs/funcs/collectionsGet.js.map +1 -1
- package/dist/commonjs/funcs/collectionsList.js +1 -1
- package/dist/commonjs/funcs/collectionsList.js.map +1 -1
- package/dist/commonjs/funcs/collectionsQuery.js +1 -1
- package/dist/commonjs/funcs/collectionsQuery.js.map +1 -1
- package/dist/commonjs/funcs/collectionsUpdate.js +1 -1
- package/dist/commonjs/funcs/collectionsUpdate.js.map +1 -1
- package/dist/commonjs/hooks/hooks.d.ts.map +1 -1
- package/dist/commonjs/hooks/hooks.js +0 -2
- package/dist/commonjs/hooks/hooks.js.map +1 -1
- package/dist/commonjs/lib/base64.d.ts +1 -1
- package/dist/commonjs/lib/base64.d.ts.map +1 -1
- package/dist/commonjs/lib/base64.js +1 -1
- package/dist/commonjs/lib/base64.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.d.ts +1 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +12 -1
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/env.d.ts +1 -1
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +19 -2
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/schemas.d.ts +1 -1
- package/dist/commonjs/lib/schemas.d.ts.map +1 -1
- package/dist/commonjs/lib/schemas.js +2 -2
- package/dist/commonjs/lib/schemas.js.map +1 -1
- package/dist/commonjs/lib/sdks.js +2 -2
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/collectionresponse.d.ts +8 -30
- package/dist/commonjs/models/collectionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/collectionresponse.js +5 -28
- package/dist/commonjs/models/collectionresponse.js.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.d.ts +1 -19
- package/dist/commonjs/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/badrequesterror.js +2 -19
- package/dist/commonjs/models/errors/badrequesterror.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.d.ts +1 -19
- package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/internalservererror.js +2 -19
- package/dist/commonjs/models/errors/internalservererror.js.map +1 -1
- package/dist/commonjs/models/errors/resourcealreadyexistserror.d.ts +1 -19
- package/dist/commonjs/models/errors/resourcealreadyexistserror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/resourcealreadyexistserror.js +2 -19
- package/dist/commonjs/models/errors/resourcealreadyexistserror.js.map +1 -1
- package/dist/commonjs/models/errors/resourcenotfounderror.d.ts +1 -19
- package/dist/commonjs/models/errors/resourcenotfounderror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/resourcenotfounderror.js +2 -19
- package/dist/commonjs/models/errors/resourcenotfounderror.js.map +1 -1
- package/dist/commonjs/models/errors/responsevalidationerror.js +1 -1
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.js +1 -1
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/commonjs/models/errors/toomanyrequestserror.d.ts +1 -19
- package/dist/commonjs/models/errors/toomanyrequestserror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/toomanyrequestserror.js +2 -19
- package/dist/commonjs/models/errors/toomanyrequestserror.js.map +1 -1
- package/dist/commonjs/models/errors/unauthenticatederror.d.ts +1 -19
- package/dist/commonjs/models/errors/unauthenticatederror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/unauthenticatederror.js +2 -19
- package/dist/commonjs/models/errors/unauthenticatederror.js.map +1 -1
- package/dist/commonjs/models/fieldsselectorunion.d.ts +47 -0
- package/dist/commonjs/models/fieldsselectorunion.d.ts.map +1 -0
- package/dist/commonjs/models/fieldsselectorunion.js +68 -0
- package/dist/commonjs/models/fieldsselectorunion.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/indexconfigsunion.d.ts +38 -204
- package/dist/commonjs/models/indexconfigsunion.d.ts.map +1 -1
- package/dist/commonjs/models/indexconfigsunion.js +28 -162
- package/dist/commonjs/models/indexconfigsunion.js.map +1 -1
- package/dist/commonjs/models/messageresponse.d.ts +1 -20
- package/dist/commonjs/models/messageresponse.d.ts.map +1 -1
- package/dist/commonjs/models/messageresponse.js +2 -21
- package/dist/commonjs/models/messageresponse.js.map +1 -1
- package/dist/commonjs/models/operations/bulkupsertdocs.d.ts +1 -33
- package/dist/commonjs/models/operations/bulkupsertdocs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkupsertdocs.js +2 -46
- package/dist/commonjs/models/operations/bulkupsertdocs.js.map +1 -1
- package/dist/commonjs/models/operations/createcollection.d.ts +3 -35
- package/dist/commonjs/models/operations/createcollection.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcollection.js +3 -45
- package/dist/commonjs/models/operations/createcollection.js.map +1 -1
- package/dist/commonjs/models/operations/deletecollection.d.ts +1 -18
- package/dist/commonjs/models/operations/deletecollection.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletecollection.js +2 -22
- package/dist/commonjs/models/operations/deletecollection.js.map +1 -1
- package/dist/commonjs/models/operations/deletedocs.d.ts +4 -33
- package/dist/commonjs/models/operations/deletedocs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deletedocs.js +4 -47
- package/dist/commonjs/models/operations/deletedocs.js.map +1 -1
- package/dist/commonjs/models/operations/fetchdocs.d.ts +9 -74
- package/dist/commonjs/models/operations/fetchdocs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/fetchdocs.js +5 -88
- package/dist/commonjs/models/operations/fetchdocs.js.map +1 -1
- package/dist/commonjs/models/operations/getbulkupsertdocs.d.ts +4 -74
- package/dist/commonjs/models/operations/getbulkupsertdocs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getbulkupsertdocs.js +2 -70
- package/dist/commonjs/models/operations/getbulkupsertdocs.js.map +1 -1
- package/dist/commonjs/models/operations/getcollection.d.ts +1 -35
- package/dist/commonjs/models/operations/getcollection.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcollection.js +2 -40
- package/dist/commonjs/models/operations/getcollection.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listcollections.d.ts +1 -20
- package/dist/commonjs/models/operations/listcollections.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcollections.js +2 -21
- package/dist/commonjs/models/operations/listcollections.js.map +1 -1
- package/dist/commonjs/models/operations/listdocs.d.ts +43 -0
- package/dist/commonjs/models/operations/listdocs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listdocs.js +62 -0
- package/dist/commonjs/models/operations/listdocs.js.map +1 -0
- package/dist/commonjs/models/operations/querycollection.d.ts +7 -79
- package/dist/commonjs/models/operations/querycollection.d.ts.map +1 -1
- package/dist/commonjs/models/operations/querycollection.js +5 -94
- package/dist/commonjs/models/operations/querycollection.js.map +1 -1
- package/dist/commonjs/models/operations/updatecollection.d.ts +1 -50
- package/dist/commonjs/models/operations/updatecollection.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecollection.js +2 -64
- package/dist/commonjs/models/operations/updatecollection.js.map +1 -1
- package/dist/commonjs/models/operations/updatedocs.d.ts +1 -33
- package/dist/commonjs/models/operations/updatedocs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatedocs.js +2 -46
- package/dist/commonjs/models/operations/updatedocs.js.map +1 -1
- package/dist/commonjs/models/operations/upsertdocs.d.ts +1 -33
- package/dist/commonjs/models/operations/upsertdocs.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertdocs.js +2 -46
- package/dist/commonjs/models/operations/upsertdocs.js.map +1 -1
- package/dist/commonjs/models/partitionconfig.d.ts +45 -0
- package/dist/commonjs/models/partitionconfig.d.ts.map +1 -0
- package/dist/commonjs/models/partitionconfig.js +73 -0
- package/dist/commonjs/models/partitionconfig.js.map +1 -0
- package/dist/commonjs/models/partitionfilter.d.ts +20 -0
- package/dist/commonjs/models/partitionfilter.d.ts.map +1 -0
- package/dist/commonjs/models/partitionfilter.js +50 -0
- package/dist/commonjs/models/partitionfilter.js.map +1 -0
- package/dist/commonjs/models/security.d.ts +1 -18
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +2 -26
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/models/status.d.ts +1 -21
- package/dist/commonjs/models/status.d.ts.map +1 -1
- package/dist/commonjs/models/status.js +2 -15
- package/dist/commonjs/models/status.js.map +1 -1
- package/dist/commonjs/sdk/docs.d.ts +4 -0
- package/dist/commonjs/sdk/docs.d.ts.map +1 -1
- package/dist/commonjs/sdk/docs.js +7 -0
- package/dist/commonjs/sdk/docs.js.map +1 -1
- package/dist/commonjs/types/blobs.d.ts +1 -1
- package/dist/commonjs/types/blobs.d.ts.map +1 -1
- package/dist/commonjs/types/blobs.js +1 -1
- package/dist/commonjs/types/blobs.js.map +1 -1
- package/dist/commonjs/types/constdatetime.d.ts +1 -1
- package/dist/commonjs/types/constdatetime.d.ts.map +1 -1
- package/dist/commonjs/types/constdatetime.js +1 -1
- package/dist/commonjs/types/constdatetime.js.map +1 -1
- package/dist/commonjs/types/enums.d.ts +8 -11
- package/dist/commonjs/types/enums.d.ts.map +1 -1
- package/dist/commonjs/types/enums.js +59 -3
- package/dist/commonjs/types/enums.js.map +1 -1
- package/dist/commonjs/types/index.d.ts +2 -2
- package/dist/commonjs/types/index.d.ts.map +1 -1
- package/dist/commonjs/types/index.js +16 -3
- package/dist/commonjs/types/index.js.map +1 -1
- package/dist/commonjs/types/unrecognized.d.ts +16 -0
- package/dist/commonjs/types/unrecognized.d.ts.map +1 -0
- package/dist/commonjs/types/unrecognized.js +34 -0
- package/dist/commonjs/types/unrecognized.js.map +1 -0
- package/dist/esm/funcs/collectionsCreate.js +1 -1
- package/dist/esm/funcs/collectionsCreate.js.map +1 -1
- package/dist/esm/funcs/collectionsDelete.js +1 -1
- package/dist/esm/funcs/collectionsDelete.js.map +1 -1
- package/dist/esm/funcs/collectionsDocsBulkUpsert.js +1 -1
- package/dist/esm/funcs/collectionsDocsBulkUpsert.js.map +1 -1
- package/dist/esm/funcs/collectionsDocsDelete.js +1 -1
- package/dist/esm/funcs/collectionsDocsDelete.js.map +1 -1
- package/dist/esm/funcs/collectionsDocsFetch.js +1 -1
- package/dist/esm/funcs/collectionsDocsFetch.js.map +1 -1
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.js +1 -1
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.js.map +1 -1
- package/dist/esm/funcs/collectionsDocsListDocs.d.ts +15 -0
- package/dist/esm/funcs/collectionsDocsListDocs.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsDocsListDocs.js +99 -0
- package/dist/esm/funcs/collectionsDocsListDocs.js.map +1 -0
- package/dist/esm/funcs/collectionsDocsUpdate.js +1 -1
- package/dist/esm/funcs/collectionsDocsUpdate.js.map +1 -1
- package/dist/esm/funcs/collectionsDocsUpsert.js +1 -1
- package/dist/esm/funcs/collectionsDocsUpsert.js.map +1 -1
- package/dist/esm/funcs/collectionsGet.js +1 -1
- package/dist/esm/funcs/collectionsGet.js.map +1 -1
- package/dist/esm/funcs/collectionsList.js +1 -1
- package/dist/esm/funcs/collectionsList.js.map +1 -1
- package/dist/esm/funcs/collectionsQuery.js +1 -1
- package/dist/esm/funcs/collectionsQuery.js.map +1 -1
- package/dist/esm/funcs/collectionsUpdate.js +1 -1
- package/dist/esm/funcs/collectionsUpdate.js.map +1 -1
- package/dist/esm/hooks/hooks.d.ts.map +1 -1
- package/dist/esm/hooks/hooks.js +0 -2
- package/dist/esm/hooks/hooks.js.map +1 -1
- package/dist/esm/lib/base64.d.ts +1 -1
- package/dist/esm/lib/base64.d.ts.map +1 -1
- package/dist/esm/lib/base64.js +1 -1
- package/dist/esm/lib/base64.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.d.ts +1 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +12 -1
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/env.d.ts +1 -1
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +19 -2
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/schemas.d.ts +1 -1
- package/dist/esm/lib/schemas.d.ts.map +1 -1
- package/dist/esm/lib/schemas.js +1 -1
- package/dist/esm/lib/schemas.js.map +1 -1
- package/dist/esm/lib/sdks.js +2 -2
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/collectionresponse.d.ts +8 -30
- package/dist/esm/models/collectionresponse.d.ts.map +1 -1
- package/dist/esm/models/collectionresponse.js +6 -28
- package/dist/esm/models/collectionresponse.js.map +1 -1
- package/dist/esm/models/errors/badrequesterror.d.ts +1 -19
- package/dist/esm/models/errors/badrequesterror.d.ts.map +1 -1
- package/dist/esm/models/errors/badrequesterror.js +1 -18
- package/dist/esm/models/errors/badrequesterror.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/internalservererror.d.ts +1 -19
- package/dist/esm/models/errors/internalservererror.d.ts.map +1 -1
- package/dist/esm/models/errors/internalservererror.js +1 -18
- package/dist/esm/models/errors/internalservererror.js.map +1 -1
- package/dist/esm/models/errors/resourcealreadyexistserror.d.ts +1 -19
- package/dist/esm/models/errors/resourcealreadyexistserror.d.ts.map +1 -1
- package/dist/esm/models/errors/resourcealreadyexistserror.js +1 -18
- package/dist/esm/models/errors/resourcealreadyexistserror.js.map +1 -1
- package/dist/esm/models/errors/resourcenotfounderror.d.ts +1 -19
- package/dist/esm/models/errors/resourcenotfounderror.d.ts.map +1 -1
- package/dist/esm/models/errors/resourcenotfounderror.js +1 -18
- package/dist/esm/models/errors/resourcenotfounderror.js.map +1 -1
- package/dist/esm/models/errors/responsevalidationerror.js +1 -1
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.js +1 -1
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -1
- package/dist/esm/models/errors/toomanyrequestserror.d.ts +1 -19
- package/dist/esm/models/errors/toomanyrequestserror.d.ts.map +1 -1
- package/dist/esm/models/errors/toomanyrequestserror.js +1 -18
- package/dist/esm/models/errors/toomanyrequestserror.js.map +1 -1
- package/dist/esm/models/errors/unauthenticatederror.d.ts +1 -19
- package/dist/esm/models/errors/unauthenticatederror.d.ts.map +1 -1
- package/dist/esm/models/errors/unauthenticatederror.js +1 -18
- package/dist/esm/models/errors/unauthenticatederror.js.map +1 -1
- package/dist/esm/models/fieldsselectorunion.d.ts +47 -0
- package/dist/esm/models/fieldsselectorunion.d.ts.map +1 -0
- package/dist/esm/models/fieldsselectorunion.js +29 -0
- package/dist/esm/models/fieldsselectorunion.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/indexconfigsunion.d.ts +38 -204
- package/dist/esm/models/indexconfigsunion.d.ts.map +1 -1
- package/dist/esm/models/indexconfigsunion.js +27 -161
- package/dist/esm/models/indexconfigsunion.js.map +1 -1
- package/dist/esm/models/messageresponse.d.ts +1 -20
- package/dist/esm/models/messageresponse.d.ts.map +1 -1
- package/dist/esm/models/messageresponse.js +1 -19
- package/dist/esm/models/messageresponse.js.map +1 -1
- package/dist/esm/models/operations/bulkupsertdocs.d.ts +1 -33
- package/dist/esm/models/operations/bulkupsertdocs.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkupsertdocs.js +1 -43
- package/dist/esm/models/operations/bulkupsertdocs.js.map +1 -1
- package/dist/esm/models/operations/createcollection.d.ts +3 -35
- package/dist/esm/models/operations/createcollection.d.ts.map +1 -1
- package/dist/esm/models/operations/createcollection.js +2 -42
- package/dist/esm/models/operations/createcollection.js.map +1 -1
- package/dist/esm/models/operations/deletecollection.d.ts +1 -18
- package/dist/esm/models/operations/deletecollection.d.ts.map +1 -1
- package/dist/esm/models/operations/deletecollection.js +1 -20
- package/dist/esm/models/operations/deletecollection.js.map +1 -1
- package/dist/esm/models/operations/deletedocs.d.ts +4 -33
- package/dist/esm/models/operations/deletedocs.d.ts.map +1 -1
- package/dist/esm/models/operations/deletedocs.js +3 -44
- package/dist/esm/models/operations/deletedocs.js.map +1 -1
- package/dist/esm/models/operations/fetchdocs.d.ts +9 -74
- package/dist/esm/models/operations/fetchdocs.d.ts.map +1 -1
- package/dist/esm/models/operations/fetchdocs.js +4 -83
- package/dist/esm/models/operations/fetchdocs.js.map +1 -1
- package/dist/esm/models/operations/getbulkupsertdocs.d.ts +4 -74
- package/dist/esm/models/operations/getbulkupsertdocs.d.ts.map +1 -1
- package/dist/esm/models/operations/getbulkupsertdocs.js +1 -67
- package/dist/esm/models/operations/getbulkupsertdocs.js.map +1 -1
- package/dist/esm/models/operations/getcollection.d.ts +1 -35
- package/dist/esm/models/operations/getcollection.d.ts.map +1 -1
- package/dist/esm/models/operations/getcollection.js +1 -37
- package/dist/esm/models/operations/getcollection.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listcollections.d.ts +1 -20
- package/dist/esm/models/operations/listcollections.d.ts.map +1 -1
- package/dist/esm/models/operations/listcollections.js +1 -19
- package/dist/esm/models/operations/listcollections.js.map +1 -1
- package/dist/esm/models/operations/listdocs.d.ts +43 -0
- package/dist/esm/models/operations/listdocs.d.ts.map +1 -0
- package/dist/esm/models/operations/listdocs.js +24 -0
- package/dist/esm/models/operations/listdocs.js.map +1 -0
- package/dist/esm/models/operations/querycollection.d.ts +7 -79
- package/dist/esm/models/operations/querycollection.d.ts.map +1 -1
- package/dist/esm/models/operations/querycollection.js +4 -89
- package/dist/esm/models/operations/querycollection.js.map +1 -1
- package/dist/esm/models/operations/updatecollection.d.ts +1 -50
- package/dist/esm/models/operations/updatecollection.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecollection.js +1 -60
- package/dist/esm/models/operations/updatecollection.js.map +1 -1
- package/dist/esm/models/operations/updatedocs.d.ts +1 -33
- package/dist/esm/models/operations/updatedocs.d.ts.map +1 -1
- package/dist/esm/models/operations/updatedocs.js +1 -43
- package/dist/esm/models/operations/updatedocs.js.map +1 -1
- package/dist/esm/models/operations/upsertdocs.d.ts +1 -33
- package/dist/esm/models/operations/upsertdocs.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertdocs.js +1 -43
- package/dist/esm/models/operations/upsertdocs.js.map +1 -1
- package/dist/esm/models/partitionconfig.d.ts +45 -0
- package/dist/esm/models/partitionconfig.d.ts.map +1 -0
- package/dist/esm/models/partitionconfig.js +35 -0
- package/dist/esm/models/partitionconfig.js.map +1 -0
- package/dist/esm/models/partitionfilter.d.ts +20 -0
- package/dist/esm/models/partitionfilter.d.ts.map +1 -0
- package/dist/esm/models/partitionfilter.js +13 -0
- package/dist/esm/models/partitionfilter.js.map +1 -0
- package/dist/esm/models/security.d.ts +1 -18
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +1 -24
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/models/status.d.ts +1 -21
- package/dist/esm/models/status.d.ts.map +1 -1
- package/dist/esm/models/status.js +1 -14
- package/dist/esm/models/status.js.map +1 -1
- package/dist/esm/sdk/docs.d.ts +4 -0
- package/dist/esm/sdk/docs.d.ts.map +1 -1
- package/dist/esm/sdk/docs.js +7 -0
- package/dist/esm/sdk/docs.js.map +1 -1
- package/dist/esm/types/blobs.d.ts +1 -1
- package/dist/esm/types/blobs.d.ts.map +1 -1
- package/dist/esm/types/blobs.js +1 -1
- package/dist/esm/types/blobs.js.map +1 -1
- package/dist/esm/types/constdatetime.d.ts +1 -1
- package/dist/esm/types/constdatetime.d.ts.map +1 -1
- package/dist/esm/types/constdatetime.js +1 -1
- package/dist/esm/types/constdatetime.js.map +1 -1
- package/dist/esm/types/enums.d.ts +8 -11
- package/dist/esm/types/enums.d.ts.map +1 -1
- package/dist/esm/types/enums.js +22 -2
- package/dist/esm/types/enums.js.map +1 -1
- package/dist/esm/types/index.d.ts +2 -2
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +1 -1
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/unrecognized.d.ts +16 -0
- package/dist/esm/types/unrecognized.d.ts.map +1 -0
- package/dist/esm/types/unrecognized.js +31 -0
- package/dist/esm/types/unrecognized.js.map +1 -0
- package/examples/collectionsList.example.ts +1 -1
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/collectionsCreate.ts +1 -1
- package/src/funcs/collectionsDelete.ts +1 -1
- package/src/funcs/collectionsDocsBulkUpsert.ts +1 -1
- package/src/funcs/collectionsDocsDelete.ts +1 -1
- package/src/funcs/collectionsDocsFetch.ts +1 -1
- package/src/funcs/collectionsDocsGetBulkUpsert.ts +1 -1
- package/src/funcs/collectionsDocsListDocs.ts +204 -0
- package/src/funcs/collectionsDocsUpdate.ts +1 -1
- package/src/funcs/collectionsDocsUpsert.ts +1 -1
- package/src/funcs/collectionsGet.ts +1 -1
- package/src/funcs/collectionsList.ts +1 -1
- package/src/funcs/collectionsQuery.ts +1 -1
- package/src/funcs/collectionsUpdate.ts +1 -1
- package/src/hooks/hooks.ts +0 -3
- package/src/lib/base64.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +17 -3
- package/src/lib/env.ts +21 -5
- package/src/lib/schemas.ts +1 -1
- package/src/lib/sdks.ts +2 -2
- package/src/lib/security.ts +4 -1
- package/src/lib/url.ts +1 -1
- package/src/models/collectionresponse.ts +12 -56
- package/src/models/errors/badrequesterror.ts +1 -30
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/internalservererror.ts +1 -30
- package/src/models/errors/resourcealreadyexistserror.ts +1 -30
- package/src/models/errors/resourcenotfounderror.ts +1 -30
- package/src/models/errors/responsevalidationerror.ts +1 -1
- package/src/models/errors/sdkvalidationerror.ts +1 -1
- package/src/models/errors/toomanyrequestserror.ts +1 -30
- package/src/models/errors/unauthenticatederror.ts +1 -30
- package/src/models/fieldsselectorunion.ts +99 -0
- package/src/models/index.ts +3 -0
- package/src/models/indexconfigsunion.ts +76 -216
- package/src/models/messageresponse.ts +1 -34
- package/src/models/operations/bulkupsertdocs.ts +1 -73
- package/src/models/operations/createcollection.ts +4 -73
- package/src/models/operations/deletecollection.ts +1 -36
- package/src/models/operations/deletedocs.ts +5 -74
- package/src/models/operations/fetchdocs.ts +11 -144
- package/src/models/operations/getbulkupsertdocs.ts +4 -109
- package/src/models/operations/getcollection.ts +1 -68
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcollections.ts +1 -36
- package/src/models/operations/listdocs.ts +80 -0
- package/src/models/operations/querycollection.ts +9 -159
- package/src/models/operations/updatecollection.ts +1 -105
- package/src/models/operations/updatedocs.ts +1 -73
- package/src/models/operations/upsertdocs.ts +1 -73
- package/src/models/partitionconfig.ts +85 -0
- package/src/models/partitionfilter.ts +38 -0
- package/src/models/security.ts +1 -40
- package/src/models/status.ts +1 -16
- package/src/sdk/docs.ts +15 -0
- package/src/types/blobs.ts +7 -6
- package/src/types/constdatetime.ts +1 -1
- package/src/types/enums.ts +38 -9
- package/src/types/index.ts +2 -2
- package/src/types/unrecognized.ts +35 -0
- package/tsconfig.json +1 -2
- package/.devcontainer/README.md +0 -30
- package/docs/sdks/collections/README.md +0 -551
- package/docs/sdks/docs/README.md +0 -594
- package/docs/sdks/lambdadb/README.md +0 -7
- package/examples/README.md +0 -31
|
@@ -2,23 +2,18 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
import { ClosedEnum } from "../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export const TypeObject = {
|
|
12
|
-
Object: "object",
|
|
13
|
-
} as const;
|
|
14
|
-
export type TypeObject = ClosedEnum<typeof TypeObject>;
|
|
15
|
-
|
|
16
11
|
export type IndexConfigsObject = {
|
|
17
|
-
type:
|
|
12
|
+
type: "object";
|
|
18
13
|
objectIndexConfigs: { [k: string]: any };
|
|
19
14
|
};
|
|
20
15
|
|
|
21
|
-
export const
|
|
16
|
+
export const TypeEnum = {
|
|
22
17
|
Keyword: "keyword",
|
|
23
18
|
Long: "long",
|
|
24
19
|
Double: "double",
|
|
@@ -26,20 +21,15 @@ export const Type = {
|
|
|
26
21
|
Boolean: "boolean",
|
|
27
22
|
SparseVector: "sparseVector",
|
|
28
23
|
} as const;
|
|
29
|
-
export type
|
|
24
|
+
export type TypeEnum = ClosedEnum<typeof TypeEnum>;
|
|
30
25
|
|
|
31
26
|
/**
|
|
32
27
|
* Types that do not need additional parameters.
|
|
33
28
|
*/
|
|
34
29
|
export type IndexConfigs = {
|
|
35
|
-
type:
|
|
30
|
+
type: TypeEnum;
|
|
36
31
|
};
|
|
37
32
|
|
|
38
|
-
export const TypeVector = {
|
|
39
|
-
Vector: "vector",
|
|
40
|
-
} as const;
|
|
41
|
-
export type TypeVector = ClosedEnum<typeof TypeVector>;
|
|
42
|
-
|
|
43
33
|
/**
|
|
44
34
|
* Vector similarity metric.
|
|
45
35
|
*/
|
|
@@ -55,7 +45,7 @@ export const Similarity = {
|
|
|
55
45
|
export type Similarity = ClosedEnum<typeof Similarity>;
|
|
56
46
|
|
|
57
47
|
export type IndexConfigsVector = {
|
|
58
|
-
type:
|
|
48
|
+
type: "vector";
|
|
59
49
|
/**
|
|
60
50
|
* Vector dimensions.
|
|
61
51
|
*/
|
|
@@ -66,11 +56,6 @@ export type IndexConfigsVector = {
|
|
|
66
56
|
similarity?: Similarity | undefined;
|
|
67
57
|
};
|
|
68
58
|
|
|
69
|
-
export const TypeText = {
|
|
70
|
-
Text: "text",
|
|
71
|
-
} as const;
|
|
72
|
-
export type TypeText = ClosedEnum<typeof TypeText>;
|
|
73
|
-
|
|
74
59
|
export const Analyzer = {
|
|
75
60
|
Standard: "standard",
|
|
76
61
|
Korean: "korean",
|
|
@@ -80,7 +65,7 @@ export const Analyzer = {
|
|
|
80
65
|
export type Analyzer = ClosedEnum<typeof Analyzer>;
|
|
81
66
|
|
|
82
67
|
export type IndexConfigsText = {
|
|
83
|
-
type:
|
|
68
|
+
type: "text";
|
|
84
69
|
/**
|
|
85
70
|
* Analyzers.
|
|
86
71
|
*/
|
|
@@ -88,29 +73,15 @@ export type IndexConfigsText = {
|
|
|
88
73
|
};
|
|
89
74
|
|
|
90
75
|
export type IndexConfigsUnion =
|
|
91
|
-
| IndexConfigsVector
|
|
92
|
-
| IndexConfigsObject
|
|
93
76
|
| IndexConfigsText
|
|
94
|
-
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
TypeObject$inboundSchema;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
-
*/
|
|
108
|
-
export namespace TypeObject$ {
|
|
109
|
-
/** @deprecated use `TypeObject$inboundSchema` instead. */
|
|
110
|
-
export const inboundSchema = TypeObject$inboundSchema;
|
|
111
|
-
/** @deprecated use `TypeObject$outboundSchema` instead. */
|
|
112
|
-
export const outboundSchema = TypeObject$outboundSchema;
|
|
113
|
-
}
|
|
77
|
+
| IndexConfigsVector
|
|
78
|
+
| (IndexConfigs & { type: "keyword" })
|
|
79
|
+
| (IndexConfigs & { type: "long" })
|
|
80
|
+
| (IndexConfigs & { type: "double" })
|
|
81
|
+
| (IndexConfigs & { type: "datetime" })
|
|
82
|
+
| (IndexConfigs & { type: "boolean" })
|
|
83
|
+
| (IndexConfigs & { type: "sparseVector" })
|
|
84
|
+
| IndexConfigsObject;
|
|
114
85
|
|
|
115
86
|
/** @internal */
|
|
116
87
|
export const IndexConfigsObject$inboundSchema: z.ZodType<
|
|
@@ -118,13 +89,12 @@ export const IndexConfigsObject$inboundSchema: z.ZodType<
|
|
|
118
89
|
z.ZodTypeDef,
|
|
119
90
|
unknown
|
|
120
91
|
> = z.object({
|
|
121
|
-
type:
|
|
92
|
+
type: z.literal("object"),
|
|
122
93
|
objectIndexConfigs: z.record(z.any()),
|
|
123
94
|
});
|
|
124
|
-
|
|
125
95
|
/** @internal */
|
|
126
96
|
export type IndexConfigsObject$Outbound = {
|
|
127
|
-
type:
|
|
97
|
+
type: "object";
|
|
128
98
|
objectIndexConfigs: { [k: string]: any };
|
|
129
99
|
};
|
|
130
100
|
|
|
@@ -134,23 +104,10 @@ export const IndexConfigsObject$outboundSchema: z.ZodType<
|
|
|
134
104
|
z.ZodTypeDef,
|
|
135
105
|
IndexConfigsObject
|
|
136
106
|
> = z.object({
|
|
137
|
-
type:
|
|
107
|
+
type: z.literal("object"),
|
|
138
108
|
objectIndexConfigs: z.record(z.any()),
|
|
139
109
|
});
|
|
140
110
|
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
144
|
-
*/
|
|
145
|
-
export namespace IndexConfigsObject$ {
|
|
146
|
-
/** @deprecated use `IndexConfigsObject$inboundSchema` instead. */
|
|
147
|
-
export const inboundSchema = IndexConfigsObject$inboundSchema;
|
|
148
|
-
/** @deprecated use `IndexConfigsObject$outboundSchema` instead. */
|
|
149
|
-
export const outboundSchema = IndexConfigsObject$outboundSchema;
|
|
150
|
-
/** @deprecated use `IndexConfigsObject$Outbound` instead. */
|
|
151
|
-
export type Outbound = IndexConfigsObject$Outbound;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
111
|
export function indexConfigsObjectToJSON(
|
|
155
112
|
indexConfigsObject: IndexConfigsObject,
|
|
156
113
|
): string {
|
|
@@ -158,7 +115,6 @@ export function indexConfigsObjectToJSON(
|
|
|
158
115
|
IndexConfigsObject$outboundSchema.parse(indexConfigsObject),
|
|
159
116
|
);
|
|
160
117
|
}
|
|
161
|
-
|
|
162
118
|
export function indexConfigsObjectFromJSON(
|
|
163
119
|
jsonString: string,
|
|
164
120
|
): SafeParseResult<IndexConfigsObject, SDKValidationError> {
|
|
@@ -170,24 +126,11 @@ export function indexConfigsObjectFromJSON(
|
|
|
170
126
|
}
|
|
171
127
|
|
|
172
128
|
/** @internal */
|
|
173
|
-
export const
|
|
174
|
-
|
|
175
|
-
);
|
|
176
|
-
|
|
129
|
+
export const TypeEnum$inboundSchema: z.ZodNativeEnum<typeof TypeEnum> = z
|
|
130
|
+
.nativeEnum(TypeEnum);
|
|
177
131
|
/** @internal */
|
|
178
|
-
export const
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @internal
|
|
183
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
184
|
-
*/
|
|
185
|
-
export namespace Type$ {
|
|
186
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
187
|
-
export const inboundSchema = Type$inboundSchema;
|
|
188
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
189
|
-
export const outboundSchema = Type$outboundSchema;
|
|
190
|
-
}
|
|
132
|
+
export const TypeEnum$outboundSchema: z.ZodNativeEnum<typeof TypeEnum> =
|
|
133
|
+
TypeEnum$inboundSchema;
|
|
191
134
|
|
|
192
135
|
/** @internal */
|
|
193
136
|
export const IndexConfigs$inboundSchema: z.ZodType<
|
|
@@ -195,9 +138,8 @@ export const IndexConfigs$inboundSchema: z.ZodType<
|
|
|
195
138
|
z.ZodTypeDef,
|
|
196
139
|
unknown
|
|
197
140
|
> = z.object({
|
|
198
|
-
type:
|
|
141
|
+
type: TypeEnum$inboundSchema,
|
|
199
142
|
});
|
|
200
|
-
|
|
201
143
|
/** @internal */
|
|
202
144
|
export type IndexConfigs$Outbound = {
|
|
203
145
|
type: string;
|
|
@@ -209,26 +151,12 @@ export const IndexConfigs$outboundSchema: z.ZodType<
|
|
|
209
151
|
z.ZodTypeDef,
|
|
210
152
|
IndexConfigs
|
|
211
153
|
> = z.object({
|
|
212
|
-
type:
|
|
154
|
+
type: TypeEnum$outboundSchema,
|
|
213
155
|
});
|
|
214
156
|
|
|
215
|
-
/**
|
|
216
|
-
* @internal
|
|
217
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
218
|
-
*/
|
|
219
|
-
export namespace IndexConfigs$ {
|
|
220
|
-
/** @deprecated use `IndexConfigs$inboundSchema` instead. */
|
|
221
|
-
export const inboundSchema = IndexConfigs$inboundSchema;
|
|
222
|
-
/** @deprecated use `IndexConfigs$outboundSchema` instead. */
|
|
223
|
-
export const outboundSchema = IndexConfigs$outboundSchema;
|
|
224
|
-
/** @deprecated use `IndexConfigs$Outbound` instead. */
|
|
225
|
-
export type Outbound = IndexConfigs$Outbound;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
157
|
export function indexConfigsToJSON(indexConfigs: IndexConfigs): string {
|
|
229
158
|
return JSON.stringify(IndexConfigs$outboundSchema.parse(indexConfigs));
|
|
230
159
|
}
|
|
231
|
-
|
|
232
160
|
export function indexConfigsFromJSON(
|
|
233
161
|
jsonString: string,
|
|
234
162
|
): SafeParseResult<IndexConfigs, SDKValidationError> {
|
|
@@ -239,58 +167,26 @@ export function indexConfigsFromJSON(
|
|
|
239
167
|
);
|
|
240
168
|
}
|
|
241
169
|
|
|
242
|
-
/** @internal */
|
|
243
|
-
export const TypeVector$inboundSchema: z.ZodNativeEnum<typeof TypeVector> = z
|
|
244
|
-
.nativeEnum(TypeVector);
|
|
245
|
-
|
|
246
|
-
/** @internal */
|
|
247
|
-
export const TypeVector$outboundSchema: z.ZodNativeEnum<typeof TypeVector> =
|
|
248
|
-
TypeVector$inboundSchema;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* @internal
|
|
252
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
253
|
-
*/
|
|
254
|
-
export namespace TypeVector$ {
|
|
255
|
-
/** @deprecated use `TypeVector$inboundSchema` instead. */
|
|
256
|
-
export const inboundSchema = TypeVector$inboundSchema;
|
|
257
|
-
/** @deprecated use `TypeVector$outboundSchema` instead. */
|
|
258
|
-
export const outboundSchema = TypeVector$outboundSchema;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
170
|
/** @internal */
|
|
262
171
|
export const Similarity$inboundSchema: z.ZodNativeEnum<typeof Similarity> = z
|
|
263
172
|
.nativeEnum(Similarity);
|
|
264
|
-
|
|
265
173
|
/** @internal */
|
|
266
174
|
export const Similarity$outboundSchema: z.ZodNativeEnum<typeof Similarity> =
|
|
267
175
|
Similarity$inboundSchema;
|
|
268
176
|
|
|
269
|
-
/**
|
|
270
|
-
* @internal
|
|
271
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
272
|
-
*/
|
|
273
|
-
export namespace Similarity$ {
|
|
274
|
-
/** @deprecated use `Similarity$inboundSchema` instead. */
|
|
275
|
-
export const inboundSchema = Similarity$inboundSchema;
|
|
276
|
-
/** @deprecated use `Similarity$outboundSchema` instead. */
|
|
277
|
-
export const outboundSchema = Similarity$outboundSchema;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
177
|
/** @internal */
|
|
281
178
|
export const IndexConfigsVector$inboundSchema: z.ZodType<
|
|
282
179
|
IndexConfigsVector,
|
|
283
180
|
z.ZodTypeDef,
|
|
284
181
|
unknown
|
|
285
182
|
> = z.object({
|
|
286
|
-
type:
|
|
183
|
+
type: z.literal("vector"),
|
|
287
184
|
dimensions: z.number().int(),
|
|
288
185
|
similarity: Similarity$inboundSchema.default("cosine"),
|
|
289
186
|
});
|
|
290
|
-
|
|
291
187
|
/** @internal */
|
|
292
188
|
export type IndexConfigsVector$Outbound = {
|
|
293
|
-
type:
|
|
189
|
+
type: "vector";
|
|
294
190
|
dimensions: number;
|
|
295
191
|
similarity: string;
|
|
296
192
|
};
|
|
@@ -301,24 +197,11 @@ export const IndexConfigsVector$outboundSchema: z.ZodType<
|
|
|
301
197
|
z.ZodTypeDef,
|
|
302
198
|
IndexConfigsVector
|
|
303
199
|
> = z.object({
|
|
304
|
-
type:
|
|
200
|
+
type: z.literal("vector"),
|
|
305
201
|
dimensions: z.number().int(),
|
|
306
202
|
similarity: Similarity$outboundSchema.default("cosine"),
|
|
307
203
|
});
|
|
308
204
|
|
|
309
|
-
/**
|
|
310
|
-
* @internal
|
|
311
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
312
|
-
*/
|
|
313
|
-
export namespace IndexConfigsVector$ {
|
|
314
|
-
/** @deprecated use `IndexConfigsVector$inboundSchema` instead. */
|
|
315
|
-
export const inboundSchema = IndexConfigsVector$inboundSchema;
|
|
316
|
-
/** @deprecated use `IndexConfigsVector$outboundSchema` instead. */
|
|
317
|
-
export const outboundSchema = IndexConfigsVector$outboundSchema;
|
|
318
|
-
/** @deprecated use `IndexConfigsVector$Outbound` instead. */
|
|
319
|
-
export type Outbound = IndexConfigsVector$Outbound;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
205
|
export function indexConfigsVectorToJSON(
|
|
323
206
|
indexConfigsVector: IndexConfigsVector,
|
|
324
207
|
): string {
|
|
@@ -326,7 +209,6 @@ export function indexConfigsVectorToJSON(
|
|
|
326
209
|
IndexConfigsVector$outboundSchema.parse(indexConfigsVector),
|
|
327
210
|
);
|
|
328
211
|
}
|
|
329
|
-
|
|
330
212
|
export function indexConfigsVectorFromJSON(
|
|
331
213
|
jsonString: string,
|
|
332
214
|
): SafeParseResult<IndexConfigsVector, SDKValidationError> {
|
|
@@ -337,57 +219,25 @@ export function indexConfigsVectorFromJSON(
|
|
|
337
219
|
);
|
|
338
220
|
}
|
|
339
221
|
|
|
340
|
-
/** @internal */
|
|
341
|
-
export const TypeText$inboundSchema: z.ZodNativeEnum<typeof TypeText> = z
|
|
342
|
-
.nativeEnum(TypeText);
|
|
343
|
-
|
|
344
|
-
/** @internal */
|
|
345
|
-
export const TypeText$outboundSchema: z.ZodNativeEnum<typeof TypeText> =
|
|
346
|
-
TypeText$inboundSchema;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* @internal
|
|
350
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
351
|
-
*/
|
|
352
|
-
export namespace TypeText$ {
|
|
353
|
-
/** @deprecated use `TypeText$inboundSchema` instead. */
|
|
354
|
-
export const inboundSchema = TypeText$inboundSchema;
|
|
355
|
-
/** @deprecated use `TypeText$outboundSchema` instead. */
|
|
356
|
-
export const outboundSchema = TypeText$outboundSchema;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
222
|
/** @internal */
|
|
360
223
|
export const Analyzer$inboundSchema: z.ZodNativeEnum<typeof Analyzer> = z
|
|
361
224
|
.nativeEnum(Analyzer);
|
|
362
|
-
|
|
363
225
|
/** @internal */
|
|
364
226
|
export const Analyzer$outboundSchema: z.ZodNativeEnum<typeof Analyzer> =
|
|
365
227
|
Analyzer$inboundSchema;
|
|
366
228
|
|
|
367
|
-
/**
|
|
368
|
-
* @internal
|
|
369
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
370
|
-
*/
|
|
371
|
-
export namespace Analyzer$ {
|
|
372
|
-
/** @deprecated use `Analyzer$inboundSchema` instead. */
|
|
373
|
-
export const inboundSchema = Analyzer$inboundSchema;
|
|
374
|
-
/** @deprecated use `Analyzer$outboundSchema` instead. */
|
|
375
|
-
export const outboundSchema = Analyzer$outboundSchema;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
229
|
/** @internal */
|
|
379
230
|
export const IndexConfigsText$inboundSchema: z.ZodType<
|
|
380
231
|
IndexConfigsText,
|
|
381
232
|
z.ZodTypeDef,
|
|
382
233
|
unknown
|
|
383
234
|
> = z.object({
|
|
384
|
-
type:
|
|
235
|
+
type: z.literal("text"),
|
|
385
236
|
analyzers: z.array(Analyzer$inboundSchema).optional(),
|
|
386
237
|
});
|
|
387
|
-
|
|
388
238
|
/** @internal */
|
|
389
239
|
export type IndexConfigsText$Outbound = {
|
|
390
|
-
type:
|
|
240
|
+
type: "text";
|
|
391
241
|
analyzers?: Array<string> | undefined;
|
|
392
242
|
};
|
|
393
243
|
|
|
@@ -397,23 +247,10 @@ export const IndexConfigsText$outboundSchema: z.ZodType<
|
|
|
397
247
|
z.ZodTypeDef,
|
|
398
248
|
IndexConfigsText
|
|
399
249
|
> = z.object({
|
|
400
|
-
type:
|
|
250
|
+
type: z.literal("text"),
|
|
401
251
|
analyzers: z.array(Analyzer$outboundSchema).optional(),
|
|
402
252
|
});
|
|
403
253
|
|
|
404
|
-
/**
|
|
405
|
-
* @internal
|
|
406
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
407
|
-
*/
|
|
408
|
-
export namespace IndexConfigsText$ {
|
|
409
|
-
/** @deprecated use `IndexConfigsText$inboundSchema` instead. */
|
|
410
|
-
export const inboundSchema = IndexConfigsText$inboundSchema;
|
|
411
|
-
/** @deprecated use `IndexConfigsText$outboundSchema` instead. */
|
|
412
|
-
export const outboundSchema = IndexConfigsText$outboundSchema;
|
|
413
|
-
/** @deprecated use `IndexConfigsText$Outbound` instead. */
|
|
414
|
-
export type Outbound = IndexConfigsText$Outbound;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
254
|
export function indexConfigsTextToJSON(
|
|
418
255
|
indexConfigsText: IndexConfigsText,
|
|
419
256
|
): string {
|
|
@@ -421,7 +258,6 @@ export function indexConfigsTextToJSON(
|
|
|
421
258
|
IndexConfigsText$outboundSchema.parse(indexConfigsText),
|
|
422
259
|
);
|
|
423
260
|
}
|
|
424
|
-
|
|
425
261
|
export function indexConfigsTextFromJSON(
|
|
426
262
|
jsonString: string,
|
|
427
263
|
): SafeParseResult<IndexConfigsText, SDKValidationError> {
|
|
@@ -438,18 +274,39 @@ export const IndexConfigsUnion$inboundSchema: z.ZodType<
|
|
|
438
274
|
z.ZodTypeDef,
|
|
439
275
|
unknown
|
|
440
276
|
> = z.union([
|
|
277
|
+
z.lazy(() => IndexConfigsText$inboundSchema),
|
|
441
278
|
z.lazy(() => IndexConfigsVector$inboundSchema),
|
|
279
|
+
z.lazy(() => IndexConfigs$inboundSchema).and(
|
|
280
|
+
z.object({ type: z.literal("keyword") }),
|
|
281
|
+
),
|
|
282
|
+
z.lazy(() => IndexConfigs$inboundSchema).and(
|
|
283
|
+
z.object({ type: z.literal("long") }),
|
|
284
|
+
),
|
|
285
|
+
z.lazy(() => IndexConfigs$inboundSchema).and(
|
|
286
|
+
z.object({ type: z.literal("double") }),
|
|
287
|
+
),
|
|
288
|
+
z.lazy(() => IndexConfigs$inboundSchema).and(
|
|
289
|
+
z.object({ type: z.literal("datetime") }),
|
|
290
|
+
),
|
|
291
|
+
z.lazy(() => IndexConfigs$inboundSchema).and(
|
|
292
|
+
z.object({ type: z.literal("boolean") }),
|
|
293
|
+
),
|
|
294
|
+
z.lazy(() => IndexConfigs$inboundSchema).and(
|
|
295
|
+
z.object({ type: z.literal("sparseVector") }),
|
|
296
|
+
),
|
|
442
297
|
z.lazy(() => IndexConfigsObject$inboundSchema),
|
|
443
|
-
z.lazy(() => IndexConfigsText$inboundSchema),
|
|
444
|
-
z.lazy(() => IndexConfigs$inboundSchema),
|
|
445
298
|
]);
|
|
446
|
-
|
|
447
299
|
/** @internal */
|
|
448
300
|
export type IndexConfigsUnion$Outbound =
|
|
449
|
-
| IndexConfigsVector$Outbound
|
|
450
|
-
| IndexConfigsObject$Outbound
|
|
451
301
|
| IndexConfigsText$Outbound
|
|
452
|
-
|
|
|
302
|
+
| IndexConfigsVector$Outbound
|
|
303
|
+
| (IndexConfigs$Outbound & { type: "keyword" })
|
|
304
|
+
| (IndexConfigs$Outbound & { type: "long" })
|
|
305
|
+
| (IndexConfigs$Outbound & { type: "double" })
|
|
306
|
+
| (IndexConfigs$Outbound & { type: "datetime" })
|
|
307
|
+
| (IndexConfigs$Outbound & { type: "boolean" })
|
|
308
|
+
| (IndexConfigs$Outbound & { type: "sparseVector" })
|
|
309
|
+
| IndexConfigsObject$Outbound;
|
|
453
310
|
|
|
454
311
|
/** @internal */
|
|
455
312
|
export const IndexConfigsUnion$outboundSchema: z.ZodType<
|
|
@@ -457,25 +314,29 @@ export const IndexConfigsUnion$outboundSchema: z.ZodType<
|
|
|
457
314
|
z.ZodTypeDef,
|
|
458
315
|
IndexConfigsUnion
|
|
459
316
|
> = z.union([
|
|
317
|
+
z.lazy(() => IndexConfigsText$outboundSchema),
|
|
460
318
|
z.lazy(() => IndexConfigsVector$outboundSchema),
|
|
319
|
+
z.lazy(() => IndexConfigs$outboundSchema).and(
|
|
320
|
+
z.object({ type: z.literal("keyword") }),
|
|
321
|
+
),
|
|
322
|
+
z.lazy(() => IndexConfigs$outboundSchema).and(
|
|
323
|
+
z.object({ type: z.literal("long") }),
|
|
324
|
+
),
|
|
325
|
+
z.lazy(() => IndexConfigs$outboundSchema).and(
|
|
326
|
+
z.object({ type: z.literal("double") }),
|
|
327
|
+
),
|
|
328
|
+
z.lazy(() => IndexConfigs$outboundSchema).and(
|
|
329
|
+
z.object({ type: z.literal("datetime") }),
|
|
330
|
+
),
|
|
331
|
+
z.lazy(() => IndexConfigs$outboundSchema).and(
|
|
332
|
+
z.object({ type: z.literal("boolean") }),
|
|
333
|
+
),
|
|
334
|
+
z.lazy(() => IndexConfigs$outboundSchema).and(
|
|
335
|
+
z.object({ type: z.literal("sparseVector") }),
|
|
336
|
+
),
|
|
461
337
|
z.lazy(() => IndexConfigsObject$outboundSchema),
|
|
462
|
-
z.lazy(() => IndexConfigsText$outboundSchema),
|
|
463
|
-
z.lazy(() => IndexConfigs$outboundSchema),
|
|
464
338
|
]);
|
|
465
339
|
|
|
466
|
-
/**
|
|
467
|
-
* @internal
|
|
468
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
469
|
-
*/
|
|
470
|
-
export namespace IndexConfigsUnion$ {
|
|
471
|
-
/** @deprecated use `IndexConfigsUnion$inboundSchema` instead. */
|
|
472
|
-
export const inboundSchema = IndexConfigsUnion$inboundSchema;
|
|
473
|
-
/** @deprecated use `IndexConfigsUnion$outboundSchema` instead. */
|
|
474
|
-
export const outboundSchema = IndexConfigsUnion$outboundSchema;
|
|
475
|
-
/** @deprecated use `IndexConfigsUnion$Outbound` instead. */
|
|
476
|
-
export type Outbound = IndexConfigsUnion$Outbound;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
340
|
export function indexConfigsUnionToJSON(
|
|
480
341
|
indexConfigsUnion: IndexConfigsUnion,
|
|
481
342
|
): string {
|
|
@@ -483,7 +344,6 @@ export function indexConfigsUnionToJSON(
|
|
|
483
344
|
IndexConfigsUnion$outboundSchema.parse(indexConfigsUnion),
|
|
484
345
|
);
|
|
485
346
|
}
|
|
486
|
-
|
|
487
347
|
export function indexConfigsUnionFromJSON(
|
|
488
348
|
jsonString: string,
|
|
489
349
|
): SafeParseResult<IndexConfigsUnion, SDKValidationError> {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -20,39 +20,6 @@ export const MessageResponse$inboundSchema: z.ZodType<
|
|
|
20
20
|
message: z.string(),
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
/** @internal */
|
|
24
|
-
export type MessageResponse$Outbound = {
|
|
25
|
-
message: string;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const MessageResponse$outboundSchema: z.ZodType<
|
|
30
|
-
MessageResponse$Outbound,
|
|
31
|
-
z.ZodTypeDef,
|
|
32
|
-
MessageResponse
|
|
33
|
-
> = z.object({
|
|
34
|
-
message: z.string(),
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export namespace MessageResponse$ {
|
|
42
|
-
/** @deprecated use `MessageResponse$inboundSchema` instead. */
|
|
43
|
-
export const inboundSchema = MessageResponse$inboundSchema;
|
|
44
|
-
/** @deprecated use `MessageResponse$outboundSchema` instead. */
|
|
45
|
-
export const outboundSchema = MessageResponse$outboundSchema;
|
|
46
|
-
/** @deprecated use `MessageResponse$Outbound` instead. */
|
|
47
|
-
export type Outbound = MessageResponse$Outbound;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function messageResponseToJSON(
|
|
51
|
-
messageResponse: MessageResponse,
|
|
52
|
-
): string {
|
|
53
|
-
return JSON.stringify(MessageResponse$outboundSchema.parse(messageResponse));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
23
|
export function messageResponseFromJSON(
|
|
57
24
|
jsonString: string,
|
|
58
25
|
): SafeParseResult<MessageResponse, SDKValidationError> {
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import * as z from "zod";
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
7
|
|
|
11
8
|
export type BulkUpsertDocsRequestBody = {
|
|
12
9
|
/**
|
|
@@ -23,15 +20,6 @@ export type BulkUpsertDocsRequest = {
|
|
|
23
20
|
requestBody: BulkUpsertDocsRequestBody;
|
|
24
21
|
};
|
|
25
22
|
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const BulkUpsertDocsRequestBody$inboundSchema: z.ZodType<
|
|
28
|
-
BulkUpsertDocsRequestBody,
|
|
29
|
-
z.ZodTypeDef,
|
|
30
|
-
unknown
|
|
31
|
-
> = z.object({
|
|
32
|
-
objectKey: z.string(),
|
|
33
|
-
});
|
|
34
|
-
|
|
35
23
|
/** @internal */
|
|
36
24
|
export type BulkUpsertDocsRequestBody$Outbound = {
|
|
37
25
|
objectKey: string;
|
|
@@ -46,19 +34,6 @@ export const BulkUpsertDocsRequestBody$outboundSchema: z.ZodType<
|
|
|
46
34
|
objectKey: z.string(),
|
|
47
35
|
});
|
|
48
36
|
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export namespace BulkUpsertDocsRequestBody$ {
|
|
54
|
-
/** @deprecated use `BulkUpsertDocsRequestBody$inboundSchema` instead. */
|
|
55
|
-
export const inboundSchema = BulkUpsertDocsRequestBody$inboundSchema;
|
|
56
|
-
/** @deprecated use `BulkUpsertDocsRequestBody$outboundSchema` instead. */
|
|
57
|
-
export const outboundSchema = BulkUpsertDocsRequestBody$outboundSchema;
|
|
58
|
-
/** @deprecated use `BulkUpsertDocsRequestBody$Outbound` instead. */
|
|
59
|
-
export type Outbound = BulkUpsertDocsRequestBody$Outbound;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
37
|
export function bulkUpsertDocsRequestBodyToJSON(
|
|
63
38
|
bulkUpsertDocsRequestBody: BulkUpsertDocsRequestBody,
|
|
64
39
|
): string {
|
|
@@ -67,30 +42,6 @@ export function bulkUpsertDocsRequestBodyToJSON(
|
|
|
67
42
|
);
|
|
68
43
|
}
|
|
69
44
|
|
|
70
|
-
export function bulkUpsertDocsRequestBodyFromJSON(
|
|
71
|
-
jsonString: string,
|
|
72
|
-
): SafeParseResult<BulkUpsertDocsRequestBody, SDKValidationError> {
|
|
73
|
-
return safeParse(
|
|
74
|
-
jsonString,
|
|
75
|
-
(x) => BulkUpsertDocsRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
-
`Failed to parse 'BulkUpsertDocsRequestBody' from JSON`,
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const BulkUpsertDocsRequest$inboundSchema: z.ZodType<
|
|
82
|
-
BulkUpsertDocsRequest,
|
|
83
|
-
z.ZodTypeDef,
|
|
84
|
-
unknown
|
|
85
|
-
> = z.object({
|
|
86
|
-
collectionName: z.string(),
|
|
87
|
-
RequestBody: z.lazy(() => BulkUpsertDocsRequestBody$inboundSchema),
|
|
88
|
-
}).transform((v) => {
|
|
89
|
-
return remap$(v, {
|
|
90
|
-
"RequestBody": "requestBody",
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
|
|
94
45
|
/** @internal */
|
|
95
46
|
export type BulkUpsertDocsRequest$Outbound = {
|
|
96
47
|
collectionName: string;
|
|
@@ -111,19 +62,6 @@ export const BulkUpsertDocsRequest$outboundSchema: z.ZodType<
|
|
|
111
62
|
});
|
|
112
63
|
});
|
|
113
64
|
|
|
114
|
-
/**
|
|
115
|
-
* @internal
|
|
116
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
117
|
-
*/
|
|
118
|
-
export namespace BulkUpsertDocsRequest$ {
|
|
119
|
-
/** @deprecated use `BulkUpsertDocsRequest$inboundSchema` instead. */
|
|
120
|
-
export const inboundSchema = BulkUpsertDocsRequest$inboundSchema;
|
|
121
|
-
/** @deprecated use `BulkUpsertDocsRequest$outboundSchema` instead. */
|
|
122
|
-
export const outboundSchema = BulkUpsertDocsRequest$outboundSchema;
|
|
123
|
-
/** @deprecated use `BulkUpsertDocsRequest$Outbound` instead. */
|
|
124
|
-
export type Outbound = BulkUpsertDocsRequest$Outbound;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
65
|
export function bulkUpsertDocsRequestToJSON(
|
|
128
66
|
bulkUpsertDocsRequest: BulkUpsertDocsRequest,
|
|
129
67
|
): string {
|
|
@@ -131,13 +69,3 @@ export function bulkUpsertDocsRequestToJSON(
|
|
|
131
69
|
BulkUpsertDocsRequest$outboundSchema.parse(bulkUpsertDocsRequest),
|
|
132
70
|
);
|
|
133
71
|
}
|
|
134
|
-
|
|
135
|
-
export function bulkUpsertDocsRequestFromJSON(
|
|
136
|
-
jsonString: string,
|
|
137
|
-
): SafeParseResult<BulkUpsertDocsRequest, SDKValidationError> {
|
|
138
|
-
return safeParse(
|
|
139
|
-
jsonString,
|
|
140
|
-
(x) => BulkUpsertDocsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
141
|
-
`Failed to parse 'BulkUpsertDocsRequest' from JSON`,
|
|
142
|
-
);
|
|
143
|
-
}
|