@functional-systems/lambdadb 0.1.3
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/.devcontainer/README.md +30 -0
- package/.devcontainer/devcontainer.json +45 -0
- package/FUNCTIONS.md +87 -0
- package/LICENSE +201 -0
- package/README.md +470 -0
- package/RUNTIMES.md +48 -0
- package/dist/commonjs/core.d.ts +10 -0
- package/dist/commonjs/core.d.ts.map +1 -0
- package/dist/commonjs/core.js +17 -0
- package/dist/commonjs/core.js.map +1 -0
- package/dist/commonjs/funcs/collectionsCreate.d.ts +15 -0
- package/dist/commonjs/funcs/collectionsCreate.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsCreate.js +125 -0
- package/dist/commonjs/funcs/collectionsCreate.js.map +1 -0
- package/dist/commonjs/funcs/collectionsDelete.d.ts +16 -0
- package/dist/commonjs/funcs/collectionsDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsDelete.js +131 -0
- package/dist/commonjs/funcs/collectionsDelete.js.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsBulkUpsert.d.ts +16 -0
- package/dist/commonjs/funcs/collectionsDocsBulkUpsert.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsBulkUpsert.js +132 -0
- package/dist/commonjs/funcs/collectionsDocsBulkUpsert.js.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsDelete.d.ts +16 -0
- package/dist/commonjs/funcs/collectionsDocsDelete.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsDelete.js +132 -0
- package/dist/commonjs/funcs/collectionsDocsDelete.js.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsFetch.d.ts +15 -0
- package/dist/commonjs/funcs/collectionsDocsFetch.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsFetch.js +131 -0
- package/dist/commonjs/funcs/collectionsDocsFetch.js.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.d.ts +15 -0
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.js +130 -0
- package/dist/commonjs/funcs/collectionsDocsGetBulkUpsert.js.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsUpdate.d.ts +16 -0
- package/dist/commonjs/funcs/collectionsDocsUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsUpdate.js +132 -0
- package/dist/commonjs/funcs/collectionsDocsUpdate.js.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsUpsert.d.ts +16 -0
- package/dist/commonjs/funcs/collectionsDocsUpsert.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsDocsUpsert.js +132 -0
- package/dist/commonjs/funcs/collectionsDocsUpsert.js.map +1 -0
- package/dist/commonjs/funcs/collectionsGet.d.ts +15 -0
- package/dist/commonjs/funcs/collectionsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsGet.js +130 -0
- package/dist/commonjs/funcs/collectionsGet.js.map +1 -0
- package/dist/commonjs/funcs/collectionsList.d.ts +15 -0
- package/dist/commonjs/funcs/collectionsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsList.js +115 -0
- package/dist/commonjs/funcs/collectionsList.js.map +1 -0
- package/dist/commonjs/funcs/collectionsQuery.d.ts +15 -0
- package/dist/commonjs/funcs/collectionsQuery.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsQuery.js +131 -0
- package/dist/commonjs/funcs/collectionsQuery.js.map +1 -0
- package/dist/commonjs/funcs/collectionsUpdate.d.ts +15 -0
- package/dist/commonjs/funcs/collectionsUpdate.d.ts.map +1 -0
- package/dist/commonjs/funcs/collectionsUpdate.js +131 -0
- package/dist/commonjs/funcs/collectionsUpdate.js.map +1 -0
- package/dist/commonjs/hooks/hooks.d.ts +25 -0
- package/dist/commonjs/hooks/hooks.d.ts.map +1 -0
- package/dist/commonjs/hooks/hooks.js +86 -0
- package/dist/commonjs/hooks/hooks.js.map +1 -0
- package/dist/commonjs/hooks/index.d.ts +3 -0
- package/dist/commonjs/hooks/index.d.ts.map +1 -0
- package/dist/commonjs/hooks/index.js +22 -0
- package/dist/commonjs/hooks/index.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts +3 -0
- package/dist/commonjs/hooks/registration.d.ts.map +1 -0
- package/dist/commonjs/hooks/registration.js +15 -0
- package/dist/commonjs/hooks/registration.js.map +1 -0
- package/dist/commonjs/hooks/types.d.ts +76 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -0
- package/dist/commonjs/hooks/types.js +6 -0
- package/dist/commonjs/hooks/types.js.map +1 -0
- package/dist/commonjs/index.d.ts +6 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +48 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lib/base64.d.ts +10 -0
- package/dist/commonjs/lib/base64.d.ts.map +1 -0
- package/dist/commonjs/lib/base64.js +71 -0
- package/dist/commonjs/lib/base64.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +42 -0
- package/dist/commonjs/lib/config.d.ts.map +1 -0
- package/dist/commonjs/lib/config.js +44 -0
- package/dist/commonjs/lib/config.js.map +1 -0
- package/dist/commonjs/lib/dlv.d.ts +14 -0
- package/dist/commonjs/lib/dlv.d.ts.map +1 -0
- package/dist/commonjs/lib/dlv.js +49 -0
- package/dist/commonjs/lib/dlv.js.map +1 -0
- package/dist/commonjs/lib/encodings.d.ts +52 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -0
- package/dist/commonjs/lib/encodings.js +368 -0
- package/dist/commonjs/lib/encodings.js.map +1 -0
- package/dist/commonjs/lib/env.d.ts +15 -0
- package/dist/commonjs/lib/env.d.ts.map +1 -0
- package/dist/commonjs/lib/env.js +65 -0
- package/dist/commonjs/lib/env.js.map +1 -0
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -0
- package/dist/commonjs/lib/files.js +77 -0
- package/dist/commonjs/lib/files.js.map +1 -0
- package/dist/commonjs/lib/http.d.ts +67 -0
- package/dist/commonjs/lib/http.d.ts.map +1 -0
- package/dist/commonjs/lib/http.js +217 -0
- package/dist/commonjs/lib/http.js.map +1 -0
- package/dist/commonjs/lib/is-plain-object.d.ts +2 -0
- package/dist/commonjs/lib/is-plain-object.d.ts.map +1 -0
- package/dist/commonjs/lib/is-plain-object.js +41 -0
- package/dist/commonjs/lib/is-plain-object.js.map +1 -0
- package/dist/commonjs/lib/logger.d.ts +6 -0
- package/dist/commonjs/lib/logger.d.ts.map +1 -0
- package/dist/commonjs/lib/logger.js +6 -0
- package/dist/commonjs/lib/logger.js.map +1 -0
- package/dist/commonjs/lib/matchers.d.ts +59 -0
- package/dist/commonjs/lib/matchers.d.ts.map +1 -0
- package/dist/commonjs/lib/matchers.js +222 -0
- package/dist/commonjs/lib/matchers.js.map +1 -0
- package/dist/commonjs/lib/primitives.d.ts +26 -0
- package/dist/commonjs/lib/primitives.d.ts.map +1 -0
- package/dist/commonjs/lib/primitives.js +111 -0
- package/dist/commonjs/lib/primitives.js.map +1 -0
- package/dist/commonjs/lib/retries.d.ts +38 -0
- package/dist/commonjs/lib/retries.d.ts.map +1 -0
- package/dist/commonjs/lib/retries.js +153 -0
- package/dist/commonjs/lib/retries.js.map +1 -0
- package/dist/commonjs/lib/schemas.d.ts +19 -0
- package/dist/commonjs/lib/schemas.d.ts.map +1 -0
- package/dist/commonjs/lib/schemas.js +62 -0
- package/dist/commonjs/lib/schemas.js.map +1 -0
- package/dist/commonjs/lib/sdks.d.ts +63 -0
- package/dist/commonjs/lib/sdks.d.ts.map +1 -0
- package/dist/commonjs/lib/sdks.js +273 -0
- package/dist/commonjs/lib/sdks.js.map +1 -0
- package/dist/commonjs/lib/security.d.ts +83 -0
- package/dist/commonjs/lib/security.d.ts.map +1 -0
- package/dist/commonjs/lib/security.js +144 -0
- package/dist/commonjs/lib/security.js.map +1 -0
- package/dist/commonjs/lib/url.d.ts +5 -0
- package/dist/commonjs/lib/url.d.ts.map +1 -0
- package/dist/commonjs/lib/url.js +25 -0
- package/dist/commonjs/lib/url.js.map +1 -0
- package/dist/commonjs/models/collectionresponse.d.ts +70 -0
- package/dist/commonjs/models/collectionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/collectionresponse.js +85 -0
- package/dist/commonjs/models/collectionresponse.js.map +1 -0
- package/dist/commonjs/models/errors/badrequesterror.d.ts +35 -0
- package/dist/commonjs/models/errors/badrequesterror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/badrequesterror.js +82 -0
- package/dist/commonjs/models/errors/badrequesterror.js.map +1 -0
- package/dist/commonjs/models/errors/httpclienterrors.d.ts +44 -0
- package/dist/commonjs/models/errors/httpclienterrors.d.ts.map +1 -0
- package/dist/commonjs/models/errors/httpclienterrors.js +78 -0
- package/dist/commonjs/models/errors/httpclienterrors.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +11 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -0
- package/dist/commonjs/models/errors/index.js +30 -0
- package/dist/commonjs/models/errors/index.js.map +1 -0
- package/dist/commonjs/models/errors/internalservererror.d.ts +35 -0
- package/dist/commonjs/models/errors/internalservererror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/internalservererror.js +82 -0
- package/dist/commonjs/models/errors/internalservererror.js.map +1 -0
- package/dist/commonjs/models/errors/lambdadbdefaulterror.d.ts +10 -0
- package/dist/commonjs/models/errors/lambdadbdefaulterror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/lambdadbdefaulterror.js +34 -0
- package/dist/commonjs/models/errors/lambdadbdefaulterror.js.map +1 -0
- package/dist/commonjs/models/errors/lambdadberror.d.ts +19 -0
- package/dist/commonjs/models/errors/lambdadberror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/lambdadberror.js +20 -0
- package/dist/commonjs/models/errors/lambdadberror.js.map +1 -0
- package/dist/commonjs/models/errors/resourcealreadyexistserror.d.ts +35 -0
- package/dist/commonjs/models/errors/resourcealreadyexistserror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/resourcealreadyexistserror.js +82 -0
- package/dist/commonjs/models/errors/resourcealreadyexistserror.js.map +1 -0
- package/dist/commonjs/models/errors/resourcenotfounderror.d.ts +35 -0
- package/dist/commonjs/models/errors/resourcenotfounderror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/resourcenotfounderror.js +82 -0
- package/dist/commonjs/models/errors/resourcenotfounderror.js.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/commonjs/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js +66 -0
- package/dist/commonjs/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts +21 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js +129 -0
- package/dist/commonjs/models/errors/sdkvalidationerror.js.map +1 -0
- package/dist/commonjs/models/errors/toomanyrequestserror.d.ts +35 -0
- package/dist/commonjs/models/errors/toomanyrequestserror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/toomanyrequestserror.js +82 -0
- package/dist/commonjs/models/errors/toomanyrequestserror.js.map +1 -0
- package/dist/commonjs/models/errors/unauthenticatederror.d.ts +35 -0
- package/dist/commonjs/models/errors/unauthenticatederror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/unauthenticatederror.js +82 -0
- package/dist/commonjs/models/errors/unauthenticatederror.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +6 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +25 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/indexconfigsunion.d.ts +321 -0
- package/dist/commonjs/models/indexconfigsunion.d.ts.map +1 -0
- package/dist/commonjs/models/indexconfigsunion.js +318 -0
- package/dist/commonjs/models/indexconfigsunion.js.map +1 -0
- package/dist/commonjs/models/messageresponse.d.ts +29 -0
- package/dist/commonjs/models/messageresponse.d.ts.map +1 -0
- package/dist/commonjs/models/messageresponse.js +69 -0
- package/dist/commonjs/models/messageresponse.js.map +1 -0
- package/dist/commonjs/models/operations/bulkupsertdocs.d.ts +62 -0
- package/dist/commonjs/models/operations/bulkupsertdocs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/bulkupsertdocs.js +107 -0
- package/dist/commonjs/models/operations/bulkupsertdocs.js.map +1 -0
- package/dist/commonjs/models/operations/createcollection.d.ts +75 -0
- package/dist/commonjs/models/operations/createcollection.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createcollection.js +107 -0
- package/dist/commonjs/models/operations/createcollection.js.map +1 -0
- package/dist/commonjs/models/operations/deletecollection.d.ts +32 -0
- package/dist/commonjs/models/operations/deletecollection.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletecollection.js +69 -0
- package/dist/commonjs/models/operations/deletecollection.js.map +1 -0
- package/dist/commonjs/models/operations/deletedocs.d.ts +71 -0
- package/dist/commonjs/models/operations/deletedocs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletedocs.js +109 -0
- package/dist/commonjs/models/operations/deletedocs.js.map +1 -0
- package/dist/commonjs/models/operations/fetchdocs.d.ts +141 -0
- package/dist/commonjs/models/operations/fetchdocs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/fetchdocs.js +171 -0
- package/dist/commonjs/models/operations/fetchdocs.js.map +1 -0
- package/dist/commonjs/models/operations/getbulkupsertdocs.d.ts +140 -0
- package/dist/commonjs/models/operations/getbulkupsertdocs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getbulkupsertdocs.js +147 -0
- package/dist/commonjs/models/operations/getbulkupsertdocs.js.map +1 -0
- package/dist/commonjs/models/operations/getcollection.d.ts +61 -0
- package/dist/commonjs/models/operations/getcollection.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcollection.js +97 -0
- package/dist/commonjs/models/operations/getcollection.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +13 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -0
- package/dist/commonjs/models/operations/index.js +32 -0
- package/dist/commonjs/models/operations/index.js.map +1 -0
- package/dist/commonjs/models/operations/listcollections.d.ts +33 -0
- package/dist/commonjs/models/operations/listcollections.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listcollections.js +70 -0
- package/dist/commonjs/models/operations/listcollections.js.map +1 -0
- package/dist/commonjs/models/operations/querycollection.d.ts +180 -0
- package/dist/commonjs/models/operations/querycollection.d.ts.map +1 -0
- package/dist/commonjs/models/operations/querycollection.js +181 -0
- package/dist/commonjs/models/operations/querycollection.js.map +1 -0
- package/dist/commonjs/models/operations/updatecollection.d.ts +92 -0
- package/dist/commonjs/models/operations/updatecollection.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatecollection.js +135 -0
- package/dist/commonjs/models/operations/updatecollection.js.map +1 -0
- package/dist/commonjs/models/operations/updatedocs.d.ts +66 -0
- package/dist/commonjs/models/operations/updatedocs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updatedocs.js +107 -0
- package/dist/commonjs/models/operations/updatedocs.js.map +1 -0
- package/dist/commonjs/models/operations/upsertdocs.d.ts +66 -0
- package/dist/commonjs/models/operations/upsertdocs.d.ts.map +1 -0
- package/dist/commonjs/models/operations/upsertdocs.js +107 -0
- package/dist/commonjs/models/operations/upsertdocs.js.map +1 -0
- package/dist/commonjs/models/security.d.ts +29 -0
- package/dist/commonjs/models/security.d.ts.map +1 -0
- package/dist/commonjs/models/security.js +78 -0
- package/dist/commonjs/models/security.js.map +1 -0
- package/dist/commonjs/models/status.d.ts +37 -0
- package/dist/commonjs/models/status.d.ts.map +1 -0
- package/dist/commonjs/models/status.js +65 -0
- package/dist/commonjs/models/status.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/sdk/collections.d.ts +33 -0
- package/dist/commonjs/sdk/collections.d.ts.map +1 -0
- package/dist/commonjs/sdk/collections.js +58 -0
- package/dist/commonjs/sdk/collections.js.map +1 -0
- package/dist/commonjs/sdk/docs.d.ts +30 -0
- package/dist/commonjs/sdk/docs.d.ts.map +1 -0
- package/dist/commonjs/sdk/docs.js +54 -0
- package/dist/commonjs/sdk/docs.js.map +1 -0
- package/dist/commonjs/sdk/index.d.ts +2 -0
- package/dist/commonjs/sdk/index.d.ts.map +1 -0
- package/dist/commonjs/sdk/index.js +21 -0
- package/dist/commonjs/sdk/index.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +7 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -0
- package/dist/commonjs/sdk/sdk.js +15 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -0
- package/dist/commonjs/types/async.d.ts +23 -0
- package/dist/commonjs/types/async.d.ts.map +1 -0
- package/dist/commonjs/types/async.js +44 -0
- package/dist/commonjs/types/async.js.map +1 -0
- package/dist/commonjs/types/blobs.d.ts +4 -0
- package/dist/commonjs/types/blobs.d.ts.map +1 -0
- package/dist/commonjs/types/blobs.js +62 -0
- package/dist/commonjs/types/blobs.js.map +1 -0
- package/dist/commonjs/types/constdatetime.d.ts +3 -0
- package/dist/commonjs/types/constdatetime.d.ts.map +1 -0
- package/dist/commonjs/types/constdatetime.js +46 -0
- package/dist/commonjs/types/constdatetime.js.map +1 -0
- package/dist/commonjs/types/enums.d.ts +12 -0
- package/dist/commonjs/types/enums.d.ts.map +1 -0
- package/dist/commonjs/types/enums.js +10 -0
- package/dist/commonjs/types/enums.js.map +1 -0
- package/dist/commonjs/types/fp.d.ts +31 -0
- package/dist/commonjs/types/fp.d.ts.map +1 -0
- package/dist/commonjs/types/fp.js +37 -0
- package/dist/commonjs/types/fp.js.map +1 -0
- package/dist/commonjs/types/index.d.ts +8 -0
- package/dist/commonjs/types/index.d.ts.map +1 -0
- package/dist/commonjs/types/index.js +16 -0
- package/dist/commonjs/types/index.js.map +1 -0
- package/dist/commonjs/types/operations.d.ts +27 -0
- package/dist/commonjs/types/operations.d.ts.map +1 -0
- package/dist/commonjs/types/operations.js +83 -0
- package/dist/commonjs/types/operations.js.map +1 -0
- package/dist/commonjs/types/rfcdate.d.ts +21 -0
- package/dist/commonjs/types/rfcdate.d.ts.map +1 -0
- package/dist/commonjs/types/rfcdate.js +46 -0
- package/dist/commonjs/types/rfcdate.js.map +1 -0
- package/dist/commonjs/types/streams.d.ts +2 -0
- package/dist/commonjs/types/streams.d.ts.map +1 -0
- package/dist/commonjs/types/streams.js +18 -0
- package/dist/commonjs/types/streams.js.map +1 -0
- package/dist/esm/core.d.ts +10 -0
- package/dist/esm/core.d.ts.map +1 -0
- package/dist/esm/core.js +13 -0
- package/dist/esm/core.js.map +1 -0
- package/dist/esm/funcs/collectionsCreate.d.ts +15 -0
- package/dist/esm/funcs/collectionsCreate.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsCreate.js +89 -0
- package/dist/esm/funcs/collectionsCreate.js.map +1 -0
- package/dist/esm/funcs/collectionsDelete.d.ts +16 -0
- package/dist/esm/funcs/collectionsDelete.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsDelete.js +95 -0
- package/dist/esm/funcs/collectionsDelete.js.map +1 -0
- package/dist/esm/funcs/collectionsDocsBulkUpsert.d.ts +16 -0
- package/dist/esm/funcs/collectionsDocsBulkUpsert.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsDocsBulkUpsert.js +96 -0
- package/dist/esm/funcs/collectionsDocsBulkUpsert.js.map +1 -0
- package/dist/esm/funcs/collectionsDocsDelete.d.ts +16 -0
- package/dist/esm/funcs/collectionsDocsDelete.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsDocsDelete.js +96 -0
- package/dist/esm/funcs/collectionsDocsDelete.js.map +1 -0
- package/dist/esm/funcs/collectionsDocsFetch.d.ts +15 -0
- package/dist/esm/funcs/collectionsDocsFetch.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsDocsFetch.js +95 -0
- package/dist/esm/funcs/collectionsDocsFetch.js.map +1 -0
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.d.ts +15 -0
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.js +94 -0
- package/dist/esm/funcs/collectionsDocsGetBulkUpsert.js.map +1 -0
- package/dist/esm/funcs/collectionsDocsUpdate.d.ts +16 -0
- package/dist/esm/funcs/collectionsDocsUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsDocsUpdate.js +96 -0
- package/dist/esm/funcs/collectionsDocsUpdate.js.map +1 -0
- package/dist/esm/funcs/collectionsDocsUpsert.d.ts +16 -0
- package/dist/esm/funcs/collectionsDocsUpsert.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsDocsUpsert.js +96 -0
- package/dist/esm/funcs/collectionsDocsUpsert.js.map +1 -0
- package/dist/esm/funcs/collectionsGet.d.ts +15 -0
- package/dist/esm/funcs/collectionsGet.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsGet.js +94 -0
- package/dist/esm/funcs/collectionsGet.js.map +1 -0
- package/dist/esm/funcs/collectionsList.d.ts +15 -0
- package/dist/esm/funcs/collectionsList.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsList.js +79 -0
- package/dist/esm/funcs/collectionsList.js.map +1 -0
- package/dist/esm/funcs/collectionsQuery.d.ts +15 -0
- package/dist/esm/funcs/collectionsQuery.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsQuery.js +95 -0
- package/dist/esm/funcs/collectionsQuery.js.map +1 -0
- package/dist/esm/funcs/collectionsUpdate.d.ts +15 -0
- package/dist/esm/funcs/collectionsUpdate.d.ts.map +1 -0
- package/dist/esm/funcs/collectionsUpdate.js +95 -0
- package/dist/esm/funcs/collectionsUpdate.js.map +1 -0
- package/dist/esm/hooks/hooks.d.ts +25 -0
- package/dist/esm/hooks/hooks.d.ts.map +1 -0
- package/dist/esm/hooks/hooks.js +82 -0
- package/dist/esm/hooks/hooks.js.map +1 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/index.js +6 -0
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts +3 -0
- package/dist/esm/hooks/registration.d.ts.map +1 -0
- package/dist/esm/hooks/registration.js +12 -0
- package/dist/esm/hooks/registration.js.map +1 -0
- package/dist/esm/hooks/types.d.ts +76 -0
- package/dist/esm/hooks/types.d.ts.map +1 -0
- package/dist/esm/hooks/types.js +5 -0
- package/dist/esm/hooks/types.js.map +1 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +8 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/base64.d.ts +10 -0
- package/dist/esm/lib/base64.d.ts.map +1 -0
- package/dist/esm/lib/base64.js +29 -0
- package/dist/esm/lib/base64.js.map +1 -0
- package/dist/esm/lib/config.d.ts +42 -0
- package/dist/esm/lib/config.d.ts.map +1 -0
- package/dist/esm/lib/config.js +40 -0
- package/dist/esm/lib/config.js.map +1 -0
- package/dist/esm/lib/dlv.d.ts +14 -0
- package/dist/esm/lib/dlv.d.ts.map +1 -0
- package/dist/esm/lib/dlv.js +46 -0
- package/dist/esm/lib/dlv.js.map +1 -0
- package/dist/esm/lib/encodings.d.ts +52 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -0
- package/dist/esm/lib/encodings.js +354 -0
- package/dist/esm/lib/encodings.js.map +1 -0
- package/dist/esm/lib/env.d.ts +15 -0
- package/dist/esm/lib/env.d.ts.map +1 -0
- package/dist/esm/lib/env.js +27 -0
- package/dist/esm/lib/env.js.map +1 -0
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -0
- package/dist/esm/lib/files.js +73 -0
- package/dist/esm/lib/files.js.map +1 -0
- package/dist/esm/lib/http.d.ts +67 -0
- package/dist/esm/lib/http.d.ts.map +1 -0
- package/dist/esm/lib/http.js +207 -0
- package/dist/esm/lib/http.js.map +1 -0
- package/dist/esm/lib/is-plain-object.d.ts +2 -0
- package/dist/esm/lib/is-plain-object.d.ts.map +1 -0
- package/dist/esm/lib/is-plain-object.js +38 -0
- package/dist/esm/lib/is-plain-object.js.map +1 -0
- package/dist/esm/lib/logger.d.ts +6 -0
- package/dist/esm/lib/logger.d.ts.map +1 -0
- package/dist/esm/lib/logger.js +5 -0
- package/dist/esm/lib/logger.js.map +1 -0
- package/dist/esm/lib/matchers.d.ts +59 -0
- package/dist/esm/lib/matchers.d.ts.map +1 -0
- package/dist/esm/lib/matchers.js +203 -0
- package/dist/esm/lib/matchers.js.map +1 -0
- package/dist/esm/lib/primitives.d.ts +26 -0
- package/dist/esm/lib/primitives.d.ts.map +1 -0
- package/dist/esm/lib/primitives.js +103 -0
- package/dist/esm/lib/primitives.js.map +1 -0
- package/dist/esm/lib/retries.d.ts +38 -0
- package/dist/esm/lib/retries.d.ts.map +1 -0
- package/dist/esm/lib/retries.js +147 -0
- package/dist/esm/lib/retries.js.map +1 -0
- package/dist/esm/lib/schemas.d.ts +19 -0
- package/dist/esm/lib/schemas.d.ts.map +1 -0
- package/dist/esm/lib/schemas.js +57 -0
- package/dist/esm/lib/schemas.js.map +1 -0
- package/dist/esm/lib/sdks.d.ts +63 -0
- package/dist/esm/lib/sdks.d.ts.map +1 -0
- package/dist/esm/lib/sdks.js +269 -0
- package/dist/esm/lib/sdks.js.map +1 -0
- package/dist/esm/lib/security.d.ts +83 -0
- package/dist/esm/lib/security.d.ts.map +1 -0
- package/dist/esm/lib/security.js +137 -0
- package/dist/esm/lib/security.js.map +1 -0
- package/dist/esm/lib/url.d.ts +5 -0
- package/dist/esm/lib/url.d.ts.map +1 -0
- package/dist/esm/lib/url.js +22 -0
- package/dist/esm/lib/url.js.map +1 -0
- package/dist/esm/models/collectionresponse.d.ts +70 -0
- package/dist/esm/models/collectionresponse.d.ts.map +1 -0
- package/dist/esm/models/collectionresponse.js +47 -0
- package/dist/esm/models/collectionresponse.js.map +1 -0
- package/dist/esm/models/errors/badrequesterror.d.ts +35 -0
- package/dist/esm/models/errors/badrequesterror.d.ts.map +1 -0
- package/dist/esm/models/errors/badrequesterror.js +45 -0
- package/dist/esm/models/errors/badrequesterror.js.map +1 -0
- package/dist/esm/models/errors/httpclienterrors.d.ts +44 -0
- package/dist/esm/models/errors/httpclienterrors.d.ts.map +1 -0
- package/dist/esm/models/errors/httpclienterrors.js +69 -0
- package/dist/esm/models/errors/httpclienterrors.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +11 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -0
- package/dist/esm/models/errors/index.js +14 -0
- package/dist/esm/models/errors/index.js.map +1 -0
- package/dist/esm/models/errors/internalservererror.d.ts +35 -0
- package/dist/esm/models/errors/internalservererror.d.ts.map +1 -0
- package/dist/esm/models/errors/internalservererror.js +45 -0
- package/dist/esm/models/errors/internalservererror.js.map +1 -0
- package/dist/esm/models/errors/lambdadbdefaulterror.d.ts +10 -0
- package/dist/esm/models/errors/lambdadbdefaulterror.d.ts.map +1 -0
- package/dist/esm/models/errors/lambdadbdefaulterror.js +30 -0
- package/dist/esm/models/errors/lambdadbdefaulterror.js.map +1 -0
- package/dist/esm/models/errors/lambdadberror.d.ts +19 -0
- package/dist/esm/models/errors/lambdadberror.d.ts.map +1 -0
- package/dist/esm/models/errors/lambdadberror.js +16 -0
- package/dist/esm/models/errors/lambdadberror.js.map +1 -0
- package/dist/esm/models/errors/resourcealreadyexistserror.d.ts +35 -0
- package/dist/esm/models/errors/resourcealreadyexistserror.d.ts.map +1 -0
- package/dist/esm/models/errors/resourcealreadyexistserror.js +45 -0
- package/dist/esm/models/errors/resourcealreadyexistserror.js.map +1 -0
- package/dist/esm/models/errors/resourcenotfounderror.d.ts +35 -0
- package/dist/esm/models/errors/resourcenotfounderror.d.ts.map +1 -0
- package/dist/esm/models/errors/resourcenotfounderror.js +45 -0
- package/dist/esm/models/errors/resourcenotfounderror.js.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts +26 -0
- package/dist/esm/models/errors/responsevalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/responsevalidationerror.js +29 -0
- package/dist/esm/models/errors/responsevalidationerror.js.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts +21 -0
- package/dist/esm/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/dist/esm/models/errors/sdkvalidationerror.js +91 -0
- package/dist/esm/models/errors/sdkvalidationerror.js.map +1 -0
- package/dist/esm/models/errors/toomanyrequestserror.d.ts +35 -0
- package/dist/esm/models/errors/toomanyrequestserror.d.ts.map +1 -0
- package/dist/esm/models/errors/toomanyrequestserror.js +45 -0
- package/dist/esm/models/errors/toomanyrequestserror.js.map +1 -0
- package/dist/esm/models/errors/unauthenticatederror.d.ts +35 -0
- package/dist/esm/models/errors/unauthenticatederror.d.ts.map +1 -0
- package/dist/esm/models/errors/unauthenticatederror.js +45 -0
- package/dist/esm/models/errors/unauthenticatederror.js.map +1 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/indexconfigsunion.d.ts +321 -0
- package/dist/esm/models/indexconfigsunion.d.ts.map +1 -0
- package/dist/esm/models/indexconfigsunion.js +272 -0
- package/dist/esm/models/indexconfigsunion.js.map +1 -0
- package/dist/esm/models/messageresponse.d.ts +29 -0
- package/dist/esm/models/messageresponse.d.ts.map +1 -0
- package/dist/esm/models/messageresponse.js +31 -0
- package/dist/esm/models/messageresponse.js.map +1 -0
- package/dist/esm/models/operations/bulkupsertdocs.d.ts +62 -0
- package/dist/esm/models/operations/bulkupsertdocs.d.ts.map +1 -0
- package/dist/esm/models/operations/bulkupsertdocs.js +67 -0
- package/dist/esm/models/operations/bulkupsertdocs.js.map +1 -0
- package/dist/esm/models/operations/createcollection.d.ts +75 -0
- package/dist/esm/models/operations/createcollection.d.ts.map +1 -0
- package/dist/esm/models/operations/createcollection.js +67 -0
- package/dist/esm/models/operations/createcollection.js.map +1 -0
- package/dist/esm/models/operations/deletecollection.d.ts +32 -0
- package/dist/esm/models/operations/deletecollection.d.ts.map +1 -0
- package/dist/esm/models/operations/deletecollection.js +31 -0
- package/dist/esm/models/operations/deletecollection.js.map +1 -0
- package/dist/esm/models/operations/deletedocs.d.ts +71 -0
- package/dist/esm/models/operations/deletedocs.d.ts.map +1 -0
- package/dist/esm/models/operations/deletedocs.js +69 -0
- package/dist/esm/models/operations/deletedocs.js.map +1 -0
- package/dist/esm/models/operations/fetchdocs.d.ts +141 -0
- package/dist/esm/models/operations/fetchdocs.d.ts.map +1 -0
- package/dist/esm/models/operations/fetchdocs.js +127 -0
- package/dist/esm/models/operations/fetchdocs.js.map +1 -0
- package/dist/esm/models/operations/getbulkupsertdocs.d.ts +140 -0
- package/dist/esm/models/operations/getbulkupsertdocs.d.ts.map +1 -0
- package/dist/esm/models/operations/getbulkupsertdocs.js +107 -0
- package/dist/esm/models/operations/getbulkupsertdocs.js.map +1 -0
- package/dist/esm/models/operations/getcollection.d.ts +61 -0
- package/dist/esm/models/operations/getcollection.d.ts.map +1 -0
- package/dist/esm/models/operations/getcollection.js +57 -0
- package/dist/esm/models/operations/getcollection.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +13 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -0
- package/dist/esm/models/operations/index.js +16 -0
- package/dist/esm/models/operations/index.js.map +1 -0
- package/dist/esm/models/operations/listcollections.d.ts +33 -0
- package/dist/esm/models/operations/listcollections.d.ts.map +1 -0
- package/dist/esm/models/operations/listcollections.js +32 -0
- package/dist/esm/models/operations/listcollections.js.map +1 -0
- package/dist/esm/models/operations/querycollection.d.ts +180 -0
- package/dist/esm/models/operations/querycollection.d.ts.map +1 -0
- package/dist/esm/models/operations/querycollection.js +137 -0
- package/dist/esm/models/operations/querycollection.js.map +1 -0
- package/dist/esm/models/operations/updatecollection.d.ts +92 -0
- package/dist/esm/models/operations/updatecollection.d.ts.map +1 -0
- package/dist/esm/models/operations/updatecollection.js +93 -0
- package/dist/esm/models/operations/updatecollection.js.map +1 -0
- package/dist/esm/models/operations/updatedocs.d.ts +66 -0
- package/dist/esm/models/operations/updatedocs.d.ts.map +1 -0
- package/dist/esm/models/operations/updatedocs.js +67 -0
- package/dist/esm/models/operations/updatedocs.js.map +1 -0
- package/dist/esm/models/operations/upsertdocs.d.ts +66 -0
- package/dist/esm/models/operations/upsertdocs.d.ts.map +1 -0
- package/dist/esm/models/operations/upsertdocs.js +67 -0
- package/dist/esm/models/operations/upsertdocs.js.map +1 -0
- package/dist/esm/models/security.d.ts +29 -0
- package/dist/esm/models/security.d.ts.map +1 -0
- package/dist/esm/models/security.js +40 -0
- package/dist/esm/models/security.js.map +1 -0
- package/dist/esm/models/status.d.ts +37 -0
- package/dist/esm/models/status.d.ts.map +1 -0
- package/dist/esm/models/status.js +29 -0
- package/dist/esm/models/status.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/sdk/collections.d.ts +33 -0
- package/dist/esm/sdk/collections.d.ts.map +1 -0
- package/dist/esm/sdk/collections.js +54 -0
- package/dist/esm/sdk/collections.js.map +1 -0
- package/dist/esm/sdk/docs.d.ts +30 -0
- package/dist/esm/sdk/docs.d.ts.map +1 -0
- package/dist/esm/sdk/docs.js +50 -0
- package/dist/esm/sdk/docs.js.map +1 -0
- package/dist/esm/sdk/index.d.ts +2 -0
- package/dist/esm/sdk/index.d.ts.map +1 -0
- package/dist/esm/sdk/index.js +5 -0
- package/dist/esm/sdk/index.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +7 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -0
- package/dist/esm/sdk/sdk.js +11 -0
- package/dist/esm/sdk/sdk.js.map +1 -0
- package/dist/esm/types/async.d.ts +23 -0
- package/dist/esm/types/async.d.ts.map +1 -0
- package/dist/esm/types/async.js +40 -0
- package/dist/esm/types/async.js.map +1 -0
- package/dist/esm/types/blobs.d.ts +4 -0
- package/dist/esm/types/blobs.d.ts.map +1 -0
- package/dist/esm/types/blobs.js +25 -0
- package/dist/esm/types/blobs.js.map +1 -0
- package/dist/esm/types/constdatetime.d.ts +3 -0
- package/dist/esm/types/constdatetime.d.ts.map +1 -0
- package/dist/esm/types/constdatetime.js +10 -0
- package/dist/esm/types/constdatetime.js.map +1 -0
- package/dist/esm/types/enums.d.ts +12 -0
- package/dist/esm/types/enums.d.ts.map +1 -0
- package/dist/esm/types/enums.js +7 -0
- package/dist/esm/types/enums.js.map +1 -0
- package/dist/esm/types/fp.d.ts +31 -0
- package/dist/esm/types/fp.d.ts.map +1 -0
- package/dist/esm/types/fp.js +31 -0
- package/dist/esm/types/fp.js.map +1 -0
- package/dist/esm/types/index.d.ts +8 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/index.js +8 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/types/operations.d.ts +27 -0
- package/dist/esm/types/operations.d.ts.map +1 -0
- package/dist/esm/types/operations.js +77 -0
- package/dist/esm/types/operations.js.map +1 -0
- package/dist/esm/types/rfcdate.d.ts +21 -0
- package/dist/esm/types/rfcdate.d.ts.map +1 -0
- package/dist/esm/types/rfcdate.js +42 -0
- package/dist/esm/types/rfcdate.js.map +1 -0
- package/dist/esm/types/streams.d.ts +2 -0
- package/dist/esm/types/streams.d.ts.map +1 -0
- package/dist/esm/types/streams.js +15 -0
- package/dist/esm/types/streams.js.map +1 -0
- package/docs/sdks/collections/README.md +551 -0
- package/docs/sdks/docs/README.md +594 -0
- package/docs/sdks/lambdadb/README.md +7 -0
- package/examples/README.md +31 -0
- package/examples/collectionsList.example.ts +26 -0
- package/examples/package-lock.json +611 -0
- package/examples/package.json +18 -0
- package/jsr.json +27 -0
- package/package.json +122 -0
- package/src/core.ts +13 -0
- package/src/funcs/collectionsCreate.ts +192 -0
- package/src/funcs/collectionsDelete.ts +195 -0
- package/src/funcs/collectionsDocsBulkUpsert.ts +202 -0
- package/src/funcs/collectionsDocsDelete.ts +202 -0
- package/src/funcs/collectionsDocsFetch.ts +201 -0
- package/src/funcs/collectionsDocsGetBulkUpsert.ts +196 -0
- package/src/funcs/collectionsDocsUpdate.ts +202 -0
- package/src/funcs/collectionsDocsUpsert.ts +202 -0
- package/src/funcs/collectionsGet.ts +194 -0
- package/src/funcs/collectionsList.ts +170 -0
- package/src/funcs/collectionsQuery.ts +199 -0
- package/src/funcs/collectionsUpdate.ts +199 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +107 -0
- package/src/index.ts +9 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +78 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +483 -0
- package/src/lib/env.ts +41 -0
- package/src/lib/files.ts +82 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +352 -0
- package/src/lib/primitives.ts +150 -0
- package/src/lib/retries.ts +218 -0
- package/src/lib/schemas.ts +91 -0
- package/src/lib/sdks.ts +406 -0
- package/src/lib/security.ts +261 -0
- package/src/lib/url.ts +33 -0
- package/src/models/collectionresponse.ts +126 -0
- package/src/models/errors/badrequesterror.ts +74 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +14 -0
- package/src/models/errors/internalservererror.ts +74 -0
- package/src/models/errors/lambdadbdefaulterror.ts +40 -0
- package/src/models/errors/lambdadberror.ts +35 -0
- package/src/models/errors/resourcealreadyexistserror.ts +74 -0
- package/src/models/errors/resourcenotfounderror.ts +74 -0
- package/src/models/errors/responsevalidationerror.ts +50 -0
- package/src/models/errors/sdkvalidationerror.ts +109 -0
- package/src/models/errors/toomanyrequestserror.ts +74 -0
- package/src/models/errors/unauthenticatederror.ts +74 -0
- package/src/models/index.ts +9 -0
- package/src/models/indexconfigsunion.ts +495 -0
- package/src/models/messageresponse.ts +64 -0
- package/src/models/operations/bulkupsertdocs.ts +143 -0
- package/src/models/operations/createcollection.ts +151 -0
- package/src/models/operations/deletecollection.ts +69 -0
- package/src/models/operations/deletedocs.ts +150 -0
- package/src/models/operations/fetchdocs.ts +290 -0
- package/src/models/operations/getbulkupsertdocs.ts +223 -0
- package/src/models/operations/getcollection.ts +131 -0
- package/src/models/operations/index.ts +16 -0
- package/src/models/operations/listcollections.ts +70 -0
- package/src/models/operations/querycollection.ts +335 -0
- package/src/models/operations/updatecollection.ts +204 -0
- package/src/models/operations/updatedocs.ts +143 -0
- package/src/models/operations/upsertdocs.ts +143 -0
- package/src/models/security.ts +71 -0
- package/src/models/status.ts +38 -0
- package/src/sdk/collections.ts +104 -0
- package/src/sdk/docs.ts +100 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/sdk.ts +13 -0
- package/src/types/async.ts +68 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/tsconfig.json +41 -0
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const TypeObject = {
|
|
12
|
+
Object: "object",
|
|
13
|
+
} as const;
|
|
14
|
+
export type TypeObject = ClosedEnum<typeof TypeObject>;
|
|
15
|
+
|
|
16
|
+
export type IndexConfigsObject = {
|
|
17
|
+
type: TypeObject;
|
|
18
|
+
objectIndexConfigs: { [k: string]: any };
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const Type = {
|
|
22
|
+
Keyword: "keyword",
|
|
23
|
+
Long: "long",
|
|
24
|
+
Double: "double",
|
|
25
|
+
Datetime: "datetime",
|
|
26
|
+
Boolean: "boolean",
|
|
27
|
+
SparseVector: "sparseVector",
|
|
28
|
+
} as const;
|
|
29
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Types that do not need additional parameters.
|
|
33
|
+
*/
|
|
34
|
+
export type IndexConfigs = {
|
|
35
|
+
type: Type;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export const TypeVector = {
|
|
39
|
+
Vector: "vector",
|
|
40
|
+
} as const;
|
|
41
|
+
export type TypeVector = ClosedEnum<typeof TypeVector>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Vector similarity metric.
|
|
45
|
+
*/
|
|
46
|
+
export const Similarity = {
|
|
47
|
+
Cosine: "cosine",
|
|
48
|
+
Euclidean: "euclidean",
|
|
49
|
+
DotProduct: "dot_product",
|
|
50
|
+
MaxInnerProduct: "max_inner_product",
|
|
51
|
+
} as const;
|
|
52
|
+
/**
|
|
53
|
+
* Vector similarity metric.
|
|
54
|
+
*/
|
|
55
|
+
export type Similarity = ClosedEnum<typeof Similarity>;
|
|
56
|
+
|
|
57
|
+
export type IndexConfigsVector = {
|
|
58
|
+
type: TypeVector;
|
|
59
|
+
/**
|
|
60
|
+
* Vector dimensions.
|
|
61
|
+
*/
|
|
62
|
+
dimensions: number;
|
|
63
|
+
/**
|
|
64
|
+
* Vector similarity metric.
|
|
65
|
+
*/
|
|
66
|
+
similarity?: Similarity | undefined;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const TypeText = {
|
|
70
|
+
Text: "text",
|
|
71
|
+
} as const;
|
|
72
|
+
export type TypeText = ClosedEnum<typeof TypeText>;
|
|
73
|
+
|
|
74
|
+
export const Analyzer = {
|
|
75
|
+
Standard: "standard",
|
|
76
|
+
Korean: "korean",
|
|
77
|
+
Japanese: "japanese",
|
|
78
|
+
English: "english",
|
|
79
|
+
} as const;
|
|
80
|
+
export type Analyzer = ClosedEnum<typeof Analyzer>;
|
|
81
|
+
|
|
82
|
+
export type IndexConfigsText = {
|
|
83
|
+
type: TypeText;
|
|
84
|
+
/**
|
|
85
|
+
* Analyzers.
|
|
86
|
+
*/
|
|
87
|
+
analyzers?: Array<Analyzer> | undefined;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export type IndexConfigsUnion =
|
|
91
|
+
| IndexConfigsVector
|
|
92
|
+
| IndexConfigsObject
|
|
93
|
+
| IndexConfigsText
|
|
94
|
+
| IndexConfigs;
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const TypeObject$inboundSchema: z.ZodNativeEnum<typeof TypeObject> = z
|
|
98
|
+
.nativeEnum(TypeObject);
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const TypeObject$outboundSchema: z.ZodNativeEnum<typeof TypeObject> =
|
|
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
|
+
}
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const IndexConfigsObject$inboundSchema: z.ZodType<
|
|
117
|
+
IndexConfigsObject,
|
|
118
|
+
z.ZodTypeDef,
|
|
119
|
+
unknown
|
|
120
|
+
> = z.object({
|
|
121
|
+
type: TypeObject$inboundSchema,
|
|
122
|
+
objectIndexConfigs: z.record(z.any()),
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export type IndexConfigsObject$Outbound = {
|
|
127
|
+
type: string;
|
|
128
|
+
objectIndexConfigs: { [k: string]: any };
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const IndexConfigsObject$outboundSchema: z.ZodType<
|
|
133
|
+
IndexConfigsObject$Outbound,
|
|
134
|
+
z.ZodTypeDef,
|
|
135
|
+
IndexConfigsObject
|
|
136
|
+
> = z.object({
|
|
137
|
+
type: TypeObject$outboundSchema,
|
|
138
|
+
objectIndexConfigs: z.record(z.any()),
|
|
139
|
+
});
|
|
140
|
+
|
|
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
|
+
export function indexConfigsObjectToJSON(
|
|
155
|
+
indexConfigsObject: IndexConfigsObject,
|
|
156
|
+
): string {
|
|
157
|
+
return JSON.stringify(
|
|
158
|
+
IndexConfigsObject$outboundSchema.parse(indexConfigsObject),
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function indexConfigsObjectFromJSON(
|
|
163
|
+
jsonString: string,
|
|
164
|
+
): SafeParseResult<IndexConfigsObject, SDKValidationError> {
|
|
165
|
+
return safeParse(
|
|
166
|
+
jsonString,
|
|
167
|
+
(x) => IndexConfigsObject$inboundSchema.parse(JSON.parse(x)),
|
|
168
|
+
`Failed to parse 'IndexConfigsObject' from JSON`,
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** @internal */
|
|
173
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
174
|
+
Type,
|
|
175
|
+
);
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
179
|
+
Type$inboundSchema;
|
|
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
|
+
}
|
|
191
|
+
|
|
192
|
+
/** @internal */
|
|
193
|
+
export const IndexConfigs$inboundSchema: z.ZodType<
|
|
194
|
+
IndexConfigs,
|
|
195
|
+
z.ZodTypeDef,
|
|
196
|
+
unknown
|
|
197
|
+
> = z.object({
|
|
198
|
+
type: Type$inboundSchema,
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
/** @internal */
|
|
202
|
+
export type IndexConfigs$Outbound = {
|
|
203
|
+
type: string;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
/** @internal */
|
|
207
|
+
export const IndexConfigs$outboundSchema: z.ZodType<
|
|
208
|
+
IndexConfigs$Outbound,
|
|
209
|
+
z.ZodTypeDef,
|
|
210
|
+
IndexConfigs
|
|
211
|
+
> = z.object({
|
|
212
|
+
type: Type$outboundSchema,
|
|
213
|
+
});
|
|
214
|
+
|
|
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
|
+
export function indexConfigsToJSON(indexConfigs: IndexConfigs): string {
|
|
229
|
+
return JSON.stringify(IndexConfigs$outboundSchema.parse(indexConfigs));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export function indexConfigsFromJSON(
|
|
233
|
+
jsonString: string,
|
|
234
|
+
): SafeParseResult<IndexConfigs, SDKValidationError> {
|
|
235
|
+
return safeParse(
|
|
236
|
+
jsonString,
|
|
237
|
+
(x) => IndexConfigs$inboundSchema.parse(JSON.parse(x)),
|
|
238
|
+
`Failed to parse 'IndexConfigs' from JSON`,
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
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
|
+
/** @internal */
|
|
262
|
+
export const Similarity$inboundSchema: z.ZodNativeEnum<typeof Similarity> = z
|
|
263
|
+
.nativeEnum(Similarity);
|
|
264
|
+
|
|
265
|
+
/** @internal */
|
|
266
|
+
export const Similarity$outboundSchema: z.ZodNativeEnum<typeof Similarity> =
|
|
267
|
+
Similarity$inboundSchema;
|
|
268
|
+
|
|
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
|
+
/** @internal */
|
|
281
|
+
export const IndexConfigsVector$inboundSchema: z.ZodType<
|
|
282
|
+
IndexConfigsVector,
|
|
283
|
+
z.ZodTypeDef,
|
|
284
|
+
unknown
|
|
285
|
+
> = z.object({
|
|
286
|
+
type: TypeVector$inboundSchema,
|
|
287
|
+
dimensions: z.number().int(),
|
|
288
|
+
similarity: Similarity$inboundSchema.default("cosine"),
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
/** @internal */
|
|
292
|
+
export type IndexConfigsVector$Outbound = {
|
|
293
|
+
type: string;
|
|
294
|
+
dimensions: number;
|
|
295
|
+
similarity: string;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/** @internal */
|
|
299
|
+
export const IndexConfigsVector$outboundSchema: z.ZodType<
|
|
300
|
+
IndexConfigsVector$Outbound,
|
|
301
|
+
z.ZodTypeDef,
|
|
302
|
+
IndexConfigsVector
|
|
303
|
+
> = z.object({
|
|
304
|
+
type: TypeVector$outboundSchema,
|
|
305
|
+
dimensions: z.number().int(),
|
|
306
|
+
similarity: Similarity$outboundSchema.default("cosine"),
|
|
307
|
+
});
|
|
308
|
+
|
|
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
|
+
export function indexConfigsVectorToJSON(
|
|
323
|
+
indexConfigsVector: IndexConfigsVector,
|
|
324
|
+
): string {
|
|
325
|
+
return JSON.stringify(
|
|
326
|
+
IndexConfigsVector$outboundSchema.parse(indexConfigsVector),
|
|
327
|
+
);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export function indexConfigsVectorFromJSON(
|
|
331
|
+
jsonString: string,
|
|
332
|
+
): SafeParseResult<IndexConfigsVector, SDKValidationError> {
|
|
333
|
+
return safeParse(
|
|
334
|
+
jsonString,
|
|
335
|
+
(x) => IndexConfigsVector$inboundSchema.parse(JSON.parse(x)),
|
|
336
|
+
`Failed to parse 'IndexConfigsVector' from JSON`,
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
|
|
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
|
+
/** @internal */
|
|
360
|
+
export const Analyzer$inboundSchema: z.ZodNativeEnum<typeof Analyzer> = z
|
|
361
|
+
.nativeEnum(Analyzer);
|
|
362
|
+
|
|
363
|
+
/** @internal */
|
|
364
|
+
export const Analyzer$outboundSchema: z.ZodNativeEnum<typeof Analyzer> =
|
|
365
|
+
Analyzer$inboundSchema;
|
|
366
|
+
|
|
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
|
+
/** @internal */
|
|
379
|
+
export const IndexConfigsText$inboundSchema: z.ZodType<
|
|
380
|
+
IndexConfigsText,
|
|
381
|
+
z.ZodTypeDef,
|
|
382
|
+
unknown
|
|
383
|
+
> = z.object({
|
|
384
|
+
type: TypeText$inboundSchema,
|
|
385
|
+
analyzers: z.array(Analyzer$inboundSchema).optional(),
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
/** @internal */
|
|
389
|
+
export type IndexConfigsText$Outbound = {
|
|
390
|
+
type: string;
|
|
391
|
+
analyzers?: Array<string> | undefined;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
/** @internal */
|
|
395
|
+
export const IndexConfigsText$outboundSchema: z.ZodType<
|
|
396
|
+
IndexConfigsText$Outbound,
|
|
397
|
+
z.ZodTypeDef,
|
|
398
|
+
IndexConfigsText
|
|
399
|
+
> = z.object({
|
|
400
|
+
type: TypeText$outboundSchema,
|
|
401
|
+
analyzers: z.array(Analyzer$outboundSchema).optional(),
|
|
402
|
+
});
|
|
403
|
+
|
|
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
|
+
export function indexConfigsTextToJSON(
|
|
418
|
+
indexConfigsText: IndexConfigsText,
|
|
419
|
+
): string {
|
|
420
|
+
return JSON.stringify(
|
|
421
|
+
IndexConfigsText$outboundSchema.parse(indexConfigsText),
|
|
422
|
+
);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export function indexConfigsTextFromJSON(
|
|
426
|
+
jsonString: string,
|
|
427
|
+
): SafeParseResult<IndexConfigsText, SDKValidationError> {
|
|
428
|
+
return safeParse(
|
|
429
|
+
jsonString,
|
|
430
|
+
(x) => IndexConfigsText$inboundSchema.parse(JSON.parse(x)),
|
|
431
|
+
`Failed to parse 'IndexConfigsText' from JSON`,
|
|
432
|
+
);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/** @internal */
|
|
436
|
+
export const IndexConfigsUnion$inboundSchema: z.ZodType<
|
|
437
|
+
IndexConfigsUnion,
|
|
438
|
+
z.ZodTypeDef,
|
|
439
|
+
unknown
|
|
440
|
+
> = z.union([
|
|
441
|
+
z.lazy(() => IndexConfigsVector$inboundSchema),
|
|
442
|
+
z.lazy(() => IndexConfigsObject$inboundSchema),
|
|
443
|
+
z.lazy(() => IndexConfigsText$inboundSchema),
|
|
444
|
+
z.lazy(() => IndexConfigs$inboundSchema),
|
|
445
|
+
]);
|
|
446
|
+
|
|
447
|
+
/** @internal */
|
|
448
|
+
export type IndexConfigsUnion$Outbound =
|
|
449
|
+
| IndexConfigsVector$Outbound
|
|
450
|
+
| IndexConfigsObject$Outbound
|
|
451
|
+
| IndexConfigsText$Outbound
|
|
452
|
+
| IndexConfigs$Outbound;
|
|
453
|
+
|
|
454
|
+
/** @internal */
|
|
455
|
+
export const IndexConfigsUnion$outboundSchema: z.ZodType<
|
|
456
|
+
IndexConfigsUnion$Outbound,
|
|
457
|
+
z.ZodTypeDef,
|
|
458
|
+
IndexConfigsUnion
|
|
459
|
+
> = z.union([
|
|
460
|
+
z.lazy(() => IndexConfigsVector$outboundSchema),
|
|
461
|
+
z.lazy(() => IndexConfigsObject$outboundSchema),
|
|
462
|
+
z.lazy(() => IndexConfigsText$outboundSchema),
|
|
463
|
+
z.lazy(() => IndexConfigs$outboundSchema),
|
|
464
|
+
]);
|
|
465
|
+
|
|
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
|
+
export function indexConfigsUnionToJSON(
|
|
480
|
+
indexConfigsUnion: IndexConfigsUnion,
|
|
481
|
+
): string {
|
|
482
|
+
return JSON.stringify(
|
|
483
|
+
IndexConfigsUnion$outboundSchema.parse(indexConfigsUnion),
|
|
484
|
+
);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export function indexConfigsUnionFromJSON(
|
|
488
|
+
jsonString: string,
|
|
489
|
+
): SafeParseResult<IndexConfigsUnion, SDKValidationError> {
|
|
490
|
+
return safeParse(
|
|
491
|
+
jsonString,
|
|
492
|
+
(x) => IndexConfigsUnion$inboundSchema.parse(JSON.parse(x)),
|
|
493
|
+
`Failed to parse 'IndexConfigsUnion' from JSON`,
|
|
494
|
+
);
|
|
495
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 MessageResponse = {
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const MessageResponse$inboundSchema: z.ZodType<
|
|
16
|
+
MessageResponse,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
message: z.string(),
|
|
21
|
+
});
|
|
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
|
+
export function messageResponseFromJSON(
|
|
57
|
+
jsonString: string,
|
|
58
|
+
): SafeParseResult<MessageResponse, SDKValidationError> {
|
|
59
|
+
return safeParse(
|
|
60
|
+
jsonString,
|
|
61
|
+
(x) => MessageResponse$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'MessageResponse' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
|
|
11
|
+
export type BulkUpsertDocsRequestBody = {
|
|
12
|
+
/**
|
|
13
|
+
* Object key uploaded based on bulk upsert info.
|
|
14
|
+
*/
|
|
15
|
+
objectKey: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type BulkUpsertDocsRequest = {
|
|
19
|
+
/**
|
|
20
|
+
* Collection name.
|
|
21
|
+
*/
|
|
22
|
+
collectionName: string;
|
|
23
|
+
requestBody: BulkUpsertDocsRequestBody;
|
|
24
|
+
};
|
|
25
|
+
|
|
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
|
+
/** @internal */
|
|
36
|
+
export type BulkUpsertDocsRequestBody$Outbound = {
|
|
37
|
+
objectKey: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const BulkUpsertDocsRequestBody$outboundSchema: z.ZodType<
|
|
42
|
+
BulkUpsertDocsRequestBody$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
BulkUpsertDocsRequestBody
|
|
45
|
+
> = z.object({
|
|
46
|
+
objectKey: z.string(),
|
|
47
|
+
});
|
|
48
|
+
|
|
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
|
+
export function bulkUpsertDocsRequestBodyToJSON(
|
|
63
|
+
bulkUpsertDocsRequestBody: BulkUpsertDocsRequestBody,
|
|
64
|
+
): string {
|
|
65
|
+
return JSON.stringify(
|
|
66
|
+
BulkUpsertDocsRequestBody$outboundSchema.parse(bulkUpsertDocsRequestBody),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
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
|
+
/** @internal */
|
|
95
|
+
export type BulkUpsertDocsRequest$Outbound = {
|
|
96
|
+
collectionName: string;
|
|
97
|
+
RequestBody: BulkUpsertDocsRequestBody$Outbound;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const BulkUpsertDocsRequest$outboundSchema: z.ZodType<
|
|
102
|
+
BulkUpsertDocsRequest$Outbound,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
BulkUpsertDocsRequest
|
|
105
|
+
> = z.object({
|
|
106
|
+
collectionName: z.string(),
|
|
107
|
+
requestBody: z.lazy(() => BulkUpsertDocsRequestBody$outboundSchema),
|
|
108
|
+
}).transform((v) => {
|
|
109
|
+
return remap$(v, {
|
|
110
|
+
requestBody: "RequestBody",
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
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
|
+
export function bulkUpsertDocsRequestToJSON(
|
|
128
|
+
bulkUpsertDocsRequest: BulkUpsertDocsRequest,
|
|
129
|
+
): string {
|
|
130
|
+
return JSON.stringify(
|
|
131
|
+
BulkUpsertDocsRequest$outboundSchema.parse(bulkUpsertDocsRequest),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
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
|
+
}
|