@functional-systems/lambdadb 0.1.4 → 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 +2 -2
- package/examples/package-lock.json +3 -3
- package/jsr.json +1 -1
- package/package.json +3 -3
- 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,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 { ClosedEnum } from "../../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -48,11 +48,11 @@ export type GetBulkUpsertDocsResponse = {
|
|
|
48
48
|
/**
|
|
49
49
|
* Content type that must be specified when uploading documents.
|
|
50
50
|
*/
|
|
51
|
-
type
|
|
51
|
+
type: Type;
|
|
52
52
|
/**
|
|
53
53
|
* HTTP method that must be specified when uploading documents.
|
|
54
54
|
*/
|
|
55
|
-
httpMethod
|
|
55
|
+
httpMethod: HttpMethod;
|
|
56
56
|
/**
|
|
57
57
|
* Object key that must be specified when uploading documents.
|
|
58
58
|
*/
|
|
@@ -60,18 +60,9 @@ export type GetBulkUpsertDocsResponse = {
|
|
|
60
60
|
/**
|
|
61
61
|
* Object size limit in bytes.
|
|
62
62
|
*/
|
|
63
|
-
sizeLimitBytes
|
|
63
|
+
sizeLimitBytes: number;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const GetBulkUpsertDocsRequest$inboundSchema: z.ZodType<
|
|
68
|
-
GetBulkUpsertDocsRequest,
|
|
69
|
-
z.ZodTypeDef,
|
|
70
|
-
unknown
|
|
71
|
-
> = z.object({
|
|
72
|
-
collectionName: z.string(),
|
|
73
|
-
});
|
|
74
|
-
|
|
75
66
|
/** @internal */
|
|
76
67
|
export type GetBulkUpsertDocsRequest$Outbound = {
|
|
77
68
|
collectionName: string;
|
|
@@ -86,19 +77,6 @@ export const GetBulkUpsertDocsRequest$outboundSchema: z.ZodType<
|
|
|
86
77
|
collectionName: z.string(),
|
|
87
78
|
});
|
|
88
79
|
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
-
*/
|
|
93
|
-
export namespace GetBulkUpsertDocsRequest$ {
|
|
94
|
-
/** @deprecated use `GetBulkUpsertDocsRequest$inboundSchema` instead. */
|
|
95
|
-
export const inboundSchema = GetBulkUpsertDocsRequest$inboundSchema;
|
|
96
|
-
/** @deprecated use `GetBulkUpsertDocsRequest$outboundSchema` instead. */
|
|
97
|
-
export const outboundSchema = GetBulkUpsertDocsRequest$outboundSchema;
|
|
98
|
-
/** @deprecated use `GetBulkUpsertDocsRequest$Outbound` instead. */
|
|
99
|
-
export type Outbound = GetBulkUpsertDocsRequest$Outbound;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
80
|
export function getBulkUpsertDocsRequestToJSON(
|
|
103
81
|
getBulkUpsertDocsRequest: GetBulkUpsertDocsRequest,
|
|
104
82
|
): string {
|
|
@@ -107,55 +85,15 @@ export function getBulkUpsertDocsRequestToJSON(
|
|
|
107
85
|
);
|
|
108
86
|
}
|
|
109
87
|
|
|
110
|
-
export function getBulkUpsertDocsRequestFromJSON(
|
|
111
|
-
jsonString: string,
|
|
112
|
-
): SafeParseResult<GetBulkUpsertDocsRequest, SDKValidationError> {
|
|
113
|
-
return safeParse(
|
|
114
|
-
jsonString,
|
|
115
|
-
(x) => GetBulkUpsertDocsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
-
`Failed to parse 'GetBulkUpsertDocsRequest' from JSON`,
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
88
|
/** @internal */
|
|
121
89
|
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
122
90
|
Type,
|
|
123
91
|
);
|
|
124
92
|
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
127
|
-
Type$inboundSchema;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @internal
|
|
131
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
|
-
*/
|
|
133
|
-
export namespace Type$ {
|
|
134
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
135
|
-
export const inboundSchema = Type$inboundSchema;
|
|
136
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
137
|
-
export const outboundSchema = Type$outboundSchema;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
93
|
/** @internal */
|
|
141
94
|
export const HttpMethod$inboundSchema: z.ZodNativeEnum<typeof HttpMethod> = z
|
|
142
95
|
.nativeEnum(HttpMethod);
|
|
143
96
|
|
|
144
|
-
/** @internal */
|
|
145
|
-
export const HttpMethod$outboundSchema: z.ZodNativeEnum<typeof HttpMethod> =
|
|
146
|
-
HttpMethod$inboundSchema;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @internal
|
|
150
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
-
*/
|
|
152
|
-
export namespace HttpMethod$ {
|
|
153
|
-
/** @deprecated use `HttpMethod$inboundSchema` instead. */
|
|
154
|
-
export const inboundSchema = HttpMethod$inboundSchema;
|
|
155
|
-
/** @deprecated use `HttpMethod$outboundSchema` instead. */
|
|
156
|
-
export const outboundSchema = HttpMethod$outboundSchema;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
97
|
/** @internal */
|
|
160
98
|
export const GetBulkUpsertDocsResponse$inboundSchema: z.ZodType<
|
|
161
99
|
GetBulkUpsertDocsResponse,
|
|
@@ -169,49 +107,6 @@ export const GetBulkUpsertDocsResponse$inboundSchema: z.ZodType<
|
|
|
169
107
|
sizeLimitBytes: z.number().int().default(209715200),
|
|
170
108
|
});
|
|
171
109
|
|
|
172
|
-
/** @internal */
|
|
173
|
-
export type GetBulkUpsertDocsResponse$Outbound = {
|
|
174
|
-
url: string;
|
|
175
|
-
type: string;
|
|
176
|
-
httpMethod: string;
|
|
177
|
-
objectKey: string;
|
|
178
|
-
sizeLimitBytes: number;
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
/** @internal */
|
|
182
|
-
export const GetBulkUpsertDocsResponse$outboundSchema: z.ZodType<
|
|
183
|
-
GetBulkUpsertDocsResponse$Outbound,
|
|
184
|
-
z.ZodTypeDef,
|
|
185
|
-
GetBulkUpsertDocsResponse
|
|
186
|
-
> = z.object({
|
|
187
|
-
url: z.string(),
|
|
188
|
-
type: Type$outboundSchema.default("application/json"),
|
|
189
|
-
httpMethod: HttpMethod$outboundSchema.default("PUT"),
|
|
190
|
-
objectKey: z.string(),
|
|
191
|
-
sizeLimitBytes: z.number().int().default(209715200),
|
|
192
|
-
});
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* @internal
|
|
196
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
197
|
-
*/
|
|
198
|
-
export namespace GetBulkUpsertDocsResponse$ {
|
|
199
|
-
/** @deprecated use `GetBulkUpsertDocsResponse$inboundSchema` instead. */
|
|
200
|
-
export const inboundSchema = GetBulkUpsertDocsResponse$inboundSchema;
|
|
201
|
-
/** @deprecated use `GetBulkUpsertDocsResponse$outboundSchema` instead. */
|
|
202
|
-
export const outboundSchema = GetBulkUpsertDocsResponse$outboundSchema;
|
|
203
|
-
/** @deprecated use `GetBulkUpsertDocsResponse$Outbound` instead. */
|
|
204
|
-
export type Outbound = GetBulkUpsertDocsResponse$Outbound;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export function getBulkUpsertDocsResponseToJSON(
|
|
208
|
-
getBulkUpsertDocsResponse: GetBulkUpsertDocsResponse,
|
|
209
|
-
): string {
|
|
210
|
-
return JSON.stringify(
|
|
211
|
-
GetBulkUpsertDocsResponse$outboundSchema.parse(getBulkUpsertDocsResponse),
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
110
|
export function getBulkUpsertDocsResponseFromJSON(
|
|
216
111
|
jsonString: string,
|
|
217
112
|
): SafeParseResult<GetBulkUpsertDocsResponse, 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";
|
|
@@ -22,15 +22,6 @@ export type GetCollectionResponse = {
|
|
|
22
22
|
collection: models.CollectionResponse;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const GetCollectionRequest$inboundSchema: z.ZodType<
|
|
27
|
-
GetCollectionRequest,
|
|
28
|
-
z.ZodTypeDef,
|
|
29
|
-
unknown
|
|
30
|
-
> = z.object({
|
|
31
|
-
collectionName: z.string(),
|
|
32
|
-
});
|
|
33
|
-
|
|
34
25
|
/** @internal */
|
|
35
26
|
export type GetCollectionRequest$Outbound = {
|
|
36
27
|
collectionName: string;
|
|
@@ -45,19 +36,6 @@ export const GetCollectionRequest$outboundSchema: z.ZodType<
|
|
|
45
36
|
collectionName: z.string(),
|
|
46
37
|
});
|
|
47
38
|
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export namespace GetCollectionRequest$ {
|
|
53
|
-
/** @deprecated use `GetCollectionRequest$inboundSchema` instead. */
|
|
54
|
-
export const inboundSchema = GetCollectionRequest$inboundSchema;
|
|
55
|
-
/** @deprecated use `GetCollectionRequest$outboundSchema` instead. */
|
|
56
|
-
export const outboundSchema = GetCollectionRequest$outboundSchema;
|
|
57
|
-
/** @deprecated use `GetCollectionRequest$Outbound` instead. */
|
|
58
|
-
export type Outbound = GetCollectionRequest$Outbound;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
39
|
export function getCollectionRequestToJSON(
|
|
62
40
|
getCollectionRequest: GetCollectionRequest,
|
|
63
41
|
): string {
|
|
@@ -66,16 +44,6 @@ export function getCollectionRequestToJSON(
|
|
|
66
44
|
);
|
|
67
45
|
}
|
|
68
46
|
|
|
69
|
-
export function getCollectionRequestFromJSON(
|
|
70
|
-
jsonString: string,
|
|
71
|
-
): SafeParseResult<GetCollectionRequest, SDKValidationError> {
|
|
72
|
-
return safeParse(
|
|
73
|
-
jsonString,
|
|
74
|
-
(x) => GetCollectionRequest$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
-
`Failed to parse 'GetCollectionRequest' from JSON`,
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
47
|
/** @internal */
|
|
80
48
|
export const GetCollectionResponse$inboundSchema: z.ZodType<
|
|
81
49
|
GetCollectionResponse,
|
|
@@ -85,41 +53,6 @@ export const GetCollectionResponse$inboundSchema: z.ZodType<
|
|
|
85
53
|
collection: models.CollectionResponse$inboundSchema,
|
|
86
54
|
});
|
|
87
55
|
|
|
88
|
-
/** @internal */
|
|
89
|
-
export type GetCollectionResponse$Outbound = {
|
|
90
|
-
collection: models.CollectionResponse$Outbound;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/** @internal */
|
|
94
|
-
export const GetCollectionResponse$outboundSchema: z.ZodType<
|
|
95
|
-
GetCollectionResponse$Outbound,
|
|
96
|
-
z.ZodTypeDef,
|
|
97
|
-
GetCollectionResponse
|
|
98
|
-
> = z.object({
|
|
99
|
-
collection: models.CollectionResponse$outboundSchema,
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
-
*/
|
|
106
|
-
export namespace GetCollectionResponse$ {
|
|
107
|
-
/** @deprecated use `GetCollectionResponse$inboundSchema` instead. */
|
|
108
|
-
export const inboundSchema = GetCollectionResponse$inboundSchema;
|
|
109
|
-
/** @deprecated use `GetCollectionResponse$outboundSchema` instead. */
|
|
110
|
-
export const outboundSchema = GetCollectionResponse$outboundSchema;
|
|
111
|
-
/** @deprecated use `GetCollectionResponse$Outbound` instead. */
|
|
112
|
-
export type Outbound = GetCollectionResponse$Outbound;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export function getCollectionResponseToJSON(
|
|
116
|
-
getCollectionResponse: GetCollectionResponse,
|
|
117
|
-
): string {
|
|
118
|
-
return JSON.stringify(
|
|
119
|
-
GetCollectionResponse$outboundSchema.parse(getCollectionResponse),
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
56
|
export function getCollectionResponseFromJSON(
|
|
124
57
|
jsonString: string,
|
|
125
58
|
): SafeParseResult<GetCollectionResponse, SDKValidationError> {
|
|
@@ -10,6 +10,7 @@ export * from "./fetchdocs.js";
|
|
|
10
10
|
export * from "./getbulkupsertdocs.js";
|
|
11
11
|
export * from "./getcollection.js";
|
|
12
12
|
export * from "./listcollections.js";
|
|
13
|
+
export * from "./listdocs.js";
|
|
13
14
|
export * from "./querycollection.js";
|
|
14
15
|
export * from "./updatecollection.js";
|
|
15
16
|
export * from "./updatedocs.js";
|
|
@@ -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";
|
|
@@ -24,41 +24,6 @@ export const ListCollectionsResponse$inboundSchema: z.ZodType<
|
|
|
24
24
|
collections: z.array(models.CollectionResponse$inboundSchema),
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
-
/** @internal */
|
|
28
|
-
export type ListCollectionsResponse$Outbound = {
|
|
29
|
-
collections: Array<models.CollectionResponse$Outbound>;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const ListCollectionsResponse$outboundSchema: z.ZodType<
|
|
34
|
-
ListCollectionsResponse$Outbound,
|
|
35
|
-
z.ZodTypeDef,
|
|
36
|
-
ListCollectionsResponse
|
|
37
|
-
> = z.object({
|
|
38
|
-
collections: z.array(models.CollectionResponse$outboundSchema),
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export namespace ListCollectionsResponse$ {
|
|
46
|
-
/** @deprecated use `ListCollectionsResponse$inboundSchema` instead. */
|
|
47
|
-
export const inboundSchema = ListCollectionsResponse$inboundSchema;
|
|
48
|
-
/** @deprecated use `ListCollectionsResponse$outboundSchema` instead. */
|
|
49
|
-
export const outboundSchema = ListCollectionsResponse$outboundSchema;
|
|
50
|
-
/** @deprecated use `ListCollectionsResponse$Outbound` instead. */
|
|
51
|
-
export type Outbound = ListCollectionsResponse$Outbound;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function listCollectionsResponseToJSON(
|
|
55
|
-
listCollectionsResponse: ListCollectionsResponse,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
ListCollectionsResponse$outboundSchema.parse(listCollectionsResponse),
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
27
|
export function listCollectionsResponseFromJSON(
|
|
63
28
|
jsonString: string,
|
|
64
29
|
): SafeParseResult<ListCollectionsResponse, SDKValidationError> {
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
|
|
10
|
+
export type ListDocsRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* Collection name.
|
|
13
|
+
*/
|
|
14
|
+
collectionName: string;
|
|
15
|
+
/**
|
|
16
|
+
* Max number of documents to return at once.
|
|
17
|
+
*/
|
|
18
|
+
size?: number | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Next page token.
|
|
21
|
+
*/
|
|
22
|
+
pageToken?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Documents list.
|
|
27
|
+
*/
|
|
28
|
+
export type ListDocsResponse = {
|
|
29
|
+
total: number;
|
|
30
|
+
/**
|
|
31
|
+
* A list of documents.
|
|
32
|
+
*/
|
|
33
|
+
docs: Array<{ [k: string]: any }>;
|
|
34
|
+
nextPageToken?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type ListDocsRequest$Outbound = {
|
|
39
|
+
collectionName: string;
|
|
40
|
+
size?: number | undefined;
|
|
41
|
+
pageToken?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const ListDocsRequest$outboundSchema: z.ZodType<
|
|
46
|
+
ListDocsRequest$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
ListDocsRequest
|
|
49
|
+
> = z.object({
|
|
50
|
+
collectionName: z.string(),
|
|
51
|
+
size: z.number().int().optional(),
|
|
52
|
+
pageToken: z.string().optional(),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function listDocsRequestToJSON(
|
|
56
|
+
listDocsRequest: ListDocsRequest,
|
|
57
|
+
): string {
|
|
58
|
+
return JSON.stringify(ListDocsRequest$outboundSchema.parse(listDocsRequest));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const ListDocsResponse$inboundSchema: z.ZodType<
|
|
63
|
+
ListDocsResponse,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
unknown
|
|
66
|
+
> = z.object({
|
|
67
|
+
total: z.number().int(),
|
|
68
|
+
docs: z.array(z.record(z.any())),
|
|
69
|
+
nextPageToken: z.string().optional(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function listDocsResponseFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<ListDocsResponse, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => ListDocsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'ListDocsResponse' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -2,11 +2,12 @@
|
|
|
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
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import * as models from "../index.js";
|
|
10
11
|
|
|
11
12
|
export type QueryCollectionRequestBody = {
|
|
12
13
|
/**
|
|
@@ -30,9 +31,10 @@ export type QueryCollectionRequestBody = {
|
|
|
30
31
|
*/
|
|
31
32
|
sort?: Array<{ [k: string]: any }> | undefined;
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* An object to specify a list of field names to include and/or exclude in the result.
|
|
34
35
|
*/
|
|
35
|
-
fields?:
|
|
36
|
+
fields?: models.FieldsSelectorUnion | undefined;
|
|
37
|
+
partitionFilter?: models.PartitionFilter | undefined;
|
|
36
38
|
};
|
|
37
39
|
|
|
38
40
|
export type QueryCollectionRequest = {
|
|
@@ -77,20 +79,6 @@ export type QueryCollectionResponse = {
|
|
|
77
79
|
docs: Array<QueryCollectionDoc>;
|
|
78
80
|
};
|
|
79
81
|
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const QueryCollectionRequestBody$inboundSchema: z.ZodType<
|
|
82
|
-
QueryCollectionRequestBody,
|
|
83
|
-
z.ZodTypeDef,
|
|
84
|
-
unknown
|
|
85
|
-
> = z.object({
|
|
86
|
-
size: z.number().int().optional(),
|
|
87
|
-
query: z.record(z.any()),
|
|
88
|
-
consistentRead: z.boolean().default(false),
|
|
89
|
-
includeVectors: z.boolean().default(false),
|
|
90
|
-
sort: z.array(z.record(z.any())).optional(),
|
|
91
|
-
fields: z.array(z.string()).optional(),
|
|
92
|
-
});
|
|
93
|
-
|
|
94
82
|
/** @internal */
|
|
95
83
|
export type QueryCollectionRequestBody$Outbound = {
|
|
96
84
|
size?: number | undefined;
|
|
@@ -98,7 +86,8 @@ export type QueryCollectionRequestBody$Outbound = {
|
|
|
98
86
|
consistentRead: boolean;
|
|
99
87
|
includeVectors: boolean;
|
|
100
88
|
sort?: Array<{ [k: string]: any }> | undefined;
|
|
101
|
-
fields?:
|
|
89
|
+
fields?: models.FieldsSelectorUnion$Outbound | undefined;
|
|
90
|
+
partitionFilter?: models.PartitionFilter$Outbound | undefined;
|
|
102
91
|
};
|
|
103
92
|
|
|
104
93
|
/** @internal */
|
|
@@ -112,22 +101,10 @@ export const QueryCollectionRequestBody$outboundSchema: z.ZodType<
|
|
|
112
101
|
consistentRead: z.boolean().default(false),
|
|
113
102
|
includeVectors: z.boolean().default(false),
|
|
114
103
|
sort: z.array(z.record(z.any())).optional(),
|
|
115
|
-
fields:
|
|
104
|
+
fields: models.FieldsSelectorUnion$outboundSchema.optional(),
|
|
105
|
+
partitionFilter: models.PartitionFilter$outboundSchema.optional(),
|
|
116
106
|
});
|
|
117
107
|
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
121
|
-
*/
|
|
122
|
-
export namespace QueryCollectionRequestBody$ {
|
|
123
|
-
/** @deprecated use `QueryCollectionRequestBody$inboundSchema` instead. */
|
|
124
|
-
export const inboundSchema = QueryCollectionRequestBody$inboundSchema;
|
|
125
|
-
/** @deprecated use `QueryCollectionRequestBody$outboundSchema` instead. */
|
|
126
|
-
export const outboundSchema = QueryCollectionRequestBody$outboundSchema;
|
|
127
|
-
/** @deprecated use `QueryCollectionRequestBody$Outbound` instead. */
|
|
128
|
-
export type Outbound = QueryCollectionRequestBody$Outbound;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
108
|
export function queryCollectionRequestBodyToJSON(
|
|
132
109
|
queryCollectionRequestBody: QueryCollectionRequestBody,
|
|
133
110
|
): string {
|
|
@@ -136,30 +113,6 @@ export function queryCollectionRequestBodyToJSON(
|
|
|
136
113
|
);
|
|
137
114
|
}
|
|
138
115
|
|
|
139
|
-
export function queryCollectionRequestBodyFromJSON(
|
|
140
|
-
jsonString: string,
|
|
141
|
-
): SafeParseResult<QueryCollectionRequestBody, SDKValidationError> {
|
|
142
|
-
return safeParse(
|
|
143
|
-
jsonString,
|
|
144
|
-
(x) => QueryCollectionRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
-
`Failed to parse 'QueryCollectionRequestBody' from JSON`,
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const QueryCollectionRequest$inboundSchema: z.ZodType<
|
|
151
|
-
QueryCollectionRequest,
|
|
152
|
-
z.ZodTypeDef,
|
|
153
|
-
unknown
|
|
154
|
-
> = z.object({
|
|
155
|
-
collectionName: z.string(),
|
|
156
|
-
RequestBody: z.lazy(() => QueryCollectionRequestBody$inboundSchema),
|
|
157
|
-
}).transform((v) => {
|
|
158
|
-
return remap$(v, {
|
|
159
|
-
"RequestBody": "requestBody",
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
|
|
163
116
|
/** @internal */
|
|
164
117
|
export type QueryCollectionRequest$Outbound = {
|
|
165
118
|
collectionName: string;
|
|
@@ -180,19 +133,6 @@ export const QueryCollectionRequest$outboundSchema: z.ZodType<
|
|
|
180
133
|
});
|
|
181
134
|
});
|
|
182
135
|
|
|
183
|
-
/**
|
|
184
|
-
* @internal
|
|
185
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
186
|
-
*/
|
|
187
|
-
export namespace QueryCollectionRequest$ {
|
|
188
|
-
/** @deprecated use `QueryCollectionRequest$inboundSchema` instead. */
|
|
189
|
-
export const inboundSchema = QueryCollectionRequest$inboundSchema;
|
|
190
|
-
/** @deprecated use `QueryCollectionRequest$outboundSchema` instead. */
|
|
191
|
-
export const outboundSchema = QueryCollectionRequest$outboundSchema;
|
|
192
|
-
/** @deprecated use `QueryCollectionRequest$Outbound` instead. */
|
|
193
|
-
export type Outbound = QueryCollectionRequest$Outbound;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
136
|
export function queryCollectionRequestToJSON(
|
|
197
137
|
queryCollectionRequest: QueryCollectionRequest,
|
|
198
138
|
): string {
|
|
@@ -201,16 +141,6 @@ export function queryCollectionRequestToJSON(
|
|
|
201
141
|
);
|
|
202
142
|
}
|
|
203
143
|
|
|
204
|
-
export function queryCollectionRequestFromJSON(
|
|
205
|
-
jsonString: string,
|
|
206
|
-
): SafeParseResult<QueryCollectionRequest, SDKValidationError> {
|
|
207
|
-
return safeParse(
|
|
208
|
-
jsonString,
|
|
209
|
-
(x) => QueryCollectionRequest$inboundSchema.parse(JSON.parse(x)),
|
|
210
|
-
`Failed to parse 'QueryCollectionRequest' from JSON`,
|
|
211
|
-
);
|
|
212
|
-
}
|
|
213
|
-
|
|
214
144
|
/** @internal */
|
|
215
145
|
export const QueryCollectionDoc$inboundSchema: z.ZodType<
|
|
216
146
|
QueryCollectionDoc,
|
|
@@ -222,45 +152,6 @@ export const QueryCollectionDoc$inboundSchema: z.ZodType<
|
|
|
222
152
|
doc: z.record(z.any()),
|
|
223
153
|
});
|
|
224
154
|
|
|
225
|
-
/** @internal */
|
|
226
|
-
export type QueryCollectionDoc$Outbound = {
|
|
227
|
-
collection: string;
|
|
228
|
-
score?: number | undefined;
|
|
229
|
-
doc: { [k: string]: any };
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
/** @internal */
|
|
233
|
-
export const QueryCollectionDoc$outboundSchema: z.ZodType<
|
|
234
|
-
QueryCollectionDoc$Outbound,
|
|
235
|
-
z.ZodTypeDef,
|
|
236
|
-
QueryCollectionDoc
|
|
237
|
-
> = z.object({
|
|
238
|
-
collection: z.string(),
|
|
239
|
-
score: z.number().optional(),
|
|
240
|
-
doc: z.record(z.any()),
|
|
241
|
-
});
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* @internal
|
|
245
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
246
|
-
*/
|
|
247
|
-
export namespace QueryCollectionDoc$ {
|
|
248
|
-
/** @deprecated use `QueryCollectionDoc$inboundSchema` instead. */
|
|
249
|
-
export const inboundSchema = QueryCollectionDoc$inboundSchema;
|
|
250
|
-
/** @deprecated use `QueryCollectionDoc$outboundSchema` instead. */
|
|
251
|
-
export const outboundSchema = QueryCollectionDoc$outboundSchema;
|
|
252
|
-
/** @deprecated use `QueryCollectionDoc$Outbound` instead. */
|
|
253
|
-
export type Outbound = QueryCollectionDoc$Outbound;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export function queryCollectionDocToJSON(
|
|
257
|
-
queryCollectionDoc: QueryCollectionDoc,
|
|
258
|
-
): string {
|
|
259
|
-
return JSON.stringify(
|
|
260
|
-
QueryCollectionDoc$outboundSchema.parse(queryCollectionDoc),
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
155
|
export function queryCollectionDocFromJSON(
|
|
265
156
|
jsonString: string,
|
|
266
157
|
): SafeParseResult<QueryCollectionDoc, SDKValidationError> {
|
|
@@ -283,47 +174,6 @@ export const QueryCollectionResponse$inboundSchema: z.ZodType<
|
|
|
283
174
|
docs: z.array(z.lazy(() => QueryCollectionDoc$inboundSchema)),
|
|
284
175
|
});
|
|
285
176
|
|
|
286
|
-
/** @internal */
|
|
287
|
-
export type QueryCollectionResponse$Outbound = {
|
|
288
|
-
took: number;
|
|
289
|
-
maxScore?: number | undefined;
|
|
290
|
-
total: number;
|
|
291
|
-
docs: Array<QueryCollectionDoc$Outbound>;
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
/** @internal */
|
|
295
|
-
export const QueryCollectionResponse$outboundSchema: z.ZodType<
|
|
296
|
-
QueryCollectionResponse$Outbound,
|
|
297
|
-
z.ZodTypeDef,
|
|
298
|
-
QueryCollectionResponse
|
|
299
|
-
> = z.object({
|
|
300
|
-
took: z.number().int(),
|
|
301
|
-
maxScore: z.number().optional(),
|
|
302
|
-
total: z.number().int(),
|
|
303
|
-
docs: z.array(z.lazy(() => QueryCollectionDoc$outboundSchema)),
|
|
304
|
-
});
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* @internal
|
|
308
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
309
|
-
*/
|
|
310
|
-
export namespace QueryCollectionResponse$ {
|
|
311
|
-
/** @deprecated use `QueryCollectionResponse$inboundSchema` instead. */
|
|
312
|
-
export const inboundSchema = QueryCollectionResponse$inboundSchema;
|
|
313
|
-
/** @deprecated use `QueryCollectionResponse$outboundSchema` instead. */
|
|
314
|
-
export const outboundSchema = QueryCollectionResponse$outboundSchema;
|
|
315
|
-
/** @deprecated use `QueryCollectionResponse$Outbound` instead. */
|
|
316
|
-
export type Outbound = QueryCollectionResponse$Outbound;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export function queryCollectionResponseToJSON(
|
|
320
|
-
queryCollectionResponse: QueryCollectionResponse,
|
|
321
|
-
): string {
|
|
322
|
-
return JSON.stringify(
|
|
323
|
-
QueryCollectionResponse$outboundSchema.parse(queryCollectionResponse),
|
|
324
|
-
);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
177
|
export function queryCollectionResponseFromJSON(
|
|
328
178
|
jsonString: string,
|
|
329
179
|
): SafeParseResult<QueryCollectionResponse, SDKValidationError> {
|