@orq-ai/node 2.14.6 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +106 -0
- package/README.md +495 -172
- package/RUNTIMES.md +48 -0
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/contacts/README.md +84 -0
- package/docs/sdks/deployments/README.md +239 -0
- package/docs/sdks/feedback/README.md +92 -0
- package/docs/sdks/files/README.md +473 -0
- package/docs/sdks/metrics/README.md +86 -0
- package/docs/sdks/orq/README.md +10 -0
- package/docs/sdks/prompt/README.md +6 -0
- package/docs/sdks/prompts/README.md +533 -0
- package/docs/sdks/remoteconfig/README.md +80 -0
- package/docs/sdks/snippets/README.md +84 -0
- package/docs/sdks/templates/README.md +80 -0
- package/funcs/contactsCreate.d.ts +15 -0
- package/funcs/contactsCreate.d.ts.map +1 -0
- package/funcs/contactsCreate.js +107 -0
- package/funcs/contactsCreate.js.map +1 -0
- package/funcs/deploymentsAll.d.ts +16 -0
- package/funcs/deploymentsAll.d.ts.map +1 -0
- package/funcs/deploymentsAll.js +115 -0
- package/funcs/deploymentsAll.js.map +1 -0
- package/funcs/deploymentsGetConfig.d.ts +15 -0
- package/funcs/deploymentsGetConfig.d.ts.map +1 -0
- package/funcs/deploymentsGetConfig.js +107 -0
- package/funcs/deploymentsGetConfig.js.map +1 -0
- package/funcs/deploymentsInvoke.d.ts +22 -0
- package/funcs/deploymentsInvoke.d.ts.map +1 -0
- package/funcs/deploymentsInvoke.js +117 -0
- package/funcs/deploymentsInvoke.js.map +1 -0
- package/funcs/deploymentsMetricsCreate.d.ts +15 -0
- package/funcs/deploymentsMetricsCreate.d.ts.map +1 -0
- package/funcs/deploymentsMetricsCreate.js +113 -0
- package/funcs/deploymentsMetricsCreate.js.map +1 -0
- package/funcs/feedbackCreate.d.ts +15 -0
- package/funcs/feedbackCreate.d.ts.map +1 -0
- package/funcs/feedbackCreate.js +107 -0
- package/funcs/feedbackCreate.js.map +1 -0
- package/funcs/filesBulkUpload.d.ts +15 -0
- package/funcs/filesBulkUpload.d.ts.map +1 -0
- package/funcs/filesBulkUpload.js +109 -0
- package/funcs/filesBulkUpload.js.map +1 -0
- package/funcs/filesDelete.d.ts +12 -0
- package/funcs/filesDelete.d.ts.map +1 -0
- package/funcs/filesDelete.js +110 -0
- package/funcs/filesDelete.js.map +1 -0
- package/funcs/filesGet.d.ts +12 -0
- package/funcs/filesGet.d.ts.map +1 -0
- package/funcs/filesGet.js +109 -0
- package/funcs/filesGet.js.map +1 -0
- package/funcs/filesList.d.ts +12 -0
- package/funcs/filesList.d.ts.map +1 -0
- package/funcs/filesList.js +110 -0
- package/funcs/filesList.js.map +1 -0
- package/funcs/filesUpdate.d.ts +12 -0
- package/funcs/filesUpdate.d.ts.map +1 -0
- package/funcs/filesUpdate.js +110 -0
- package/funcs/filesUpdate.js.map +1 -0
- package/funcs/filesUpload.d.ts +15 -0
- package/funcs/filesUpload.d.ts.map +1 -0
- package/funcs/filesUpload.js +125 -0
- package/funcs/filesUpload.js.map +1 -0
- package/funcs/promptSnippetsFindOne.d.ts +12 -0
- package/funcs/promptSnippetsFindOne.d.ts.map +1 -0
- package/funcs/promptSnippetsFindOne.js +109 -0
- package/funcs/promptSnippetsFindOne.js.map +1 -0
- package/funcs/promptTemplatesGetAll.d.ts +12 -0
- package/funcs/promptTemplatesGetAll.d.ts.map +1 -0
- package/funcs/promptTemplatesGetAll.js +109 -0
- package/funcs/promptTemplatesGetAll.js.map +1 -0
- package/funcs/promptsCreate.d.ts +12 -0
- package/funcs/promptsCreate.d.ts.map +1 -0
- package/funcs/promptsCreate.js +106 -0
- package/funcs/promptsCreate.js.map +1 -0
- package/funcs/promptsCreateVersion.d.ts +12 -0
- package/funcs/promptsCreateVersion.d.ts.map +1 -0
- package/funcs/promptsCreateVersion.js +110 -0
- package/funcs/promptsCreateVersion.js.map +1 -0
- package/funcs/promptsDelete.d.ts +12 -0
- package/funcs/promptsDelete.d.ts.map +1 -0
- package/funcs/promptsDelete.js +110 -0
- package/funcs/promptsDelete.js.map +1 -0
- package/funcs/promptsDuplicate.d.ts +12 -0
- package/funcs/promptsDuplicate.d.ts.map +1 -0
- package/funcs/promptsDuplicate.js +110 -0
- package/funcs/promptsDuplicate.js.map +1 -0
- package/funcs/promptsGetAll.d.ts +12 -0
- package/funcs/promptsGetAll.d.ts.map +1 -0
- package/funcs/promptsGetAll.js +106 -0
- package/funcs/promptsGetAll.js.map +1 -0
- package/funcs/promptsGetOne.d.ts +12 -0
- package/funcs/promptsGetOne.d.ts.map +1 -0
- package/funcs/promptsGetOne.js +110 -0
- package/funcs/promptsGetOne.js.map +1 -0
- package/funcs/promptsUpdate.d.ts +13 -0
- package/funcs/promptsUpdate.d.ts.map +1 -0
- package/funcs/promptsUpdate.js +114 -0
- package/funcs/promptsUpdate.js.map +1 -0
- package/funcs/remoteconfigGetConfig.d.ts +12 -0
- package/funcs/remoteconfigGetConfig.d.ts.map +1 -0
- package/funcs/remoteconfigGetConfig.js +107 -0
- package/funcs/remoteconfigGetConfig.js.map +1 -0
- package/hooks/hooks.d.ts +24 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +86 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +15 -0
- package/hooks/registration.js.map +1 -0
- package/hooks/types.d.ts +77 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +34 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +35 -0
- package/lib/config.js.map +1 -0
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.d.ts +52 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +368 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.d.ts +15 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +65 -0
- package/lib/env.js.map +1 -0
- package/lib/event-streams.d.ts +17 -0
- package/lib/event-streams.d.ts.map +1 -0
- package/lib/event-streams.js +220 -0
- package/lib/event-streams.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +36 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +217 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +207 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +23 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +104 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +154 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +19 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +59 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +60 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +280 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +82 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +139 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/models/components/deployments.d.ts +920 -0
- package/models/components/deployments.d.ts.map +1 -0
- package/models/components/deployments.js +948 -0
- package/models/components/deployments.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -0
- package/models/components/index.js +22 -0
- package/models/components/index.js.map +1 -0
- package/models/components/security.d.ts +29 -0
- package/models/components/security.d.ts.map +1 -0
- package/models/components/security.js +78 -0
- package/models/components/security.js.map +1 -0
- package/models/errors/apierror.d.ts +8 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +21 -0
- package/models/errors/apierror.js.map +1 -0
- package/models/errors/honoapierror.d.ts +42 -0
- package/models/errors/honoapierror.d.ts.map +1 -0
- package/models/errors/honoapierror.js +80 -0
- package/models/errors/honoapierror.js.map +1 -0
- package/models/errors/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.d.ts +6 -0
- package/models/errors/index.d.ts.map +1 -0
- package/models/errors/index.js +25 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +20 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +115 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/errors/updateprompt.d.ts +36 -0
- package/models/errors/updateprompt.d.ts.map +1 -0
- package/models/errors/updateprompt.js +79 -0
- package/models/errors/updateprompt.js.map +1 -0
- package/models/operations/bulkfileupload.d.ts +173 -0
- package/models/operations/bulkfileupload.d.ts.map +1 -0
- package/models/operations/bulkfileupload.js +210 -0
- package/models/operations/bulkfileupload.js.map +1 -0
- package/models/operations/createcontact.d.ts +139 -0
- package/models/operations/createcontact.d.ts.map +1 -0
- package/models/operations/createcontact.js +149 -0
- package/models/operations/createcontact.js.map +1 -0
- package/models/operations/createfeedback.d.ts +136 -0
- package/models/operations/createfeedback.d.ts.map +1 -0
- package/models/operations/createfeedback.js +172 -0
- package/models/operations/createfeedback.js.map +1 -0
- package/models/operations/createprompt.d.ts +2035 -0
- package/models/operations/createprompt.d.ts.map +1 -0
- package/models/operations/createprompt.js +1853 -0
- package/models/operations/createprompt.js.map +1 -0
- package/models/operations/createpromptversion.d.ts +2003 -0
- package/models/operations/createpromptversion.d.ts.map +1 -0
- package/models/operations/createpromptversion.js +1852 -0
- package/models/operations/createpromptversion.js.map +1 -0
- package/models/operations/deleteprompt.d.ts +32 -0
- package/models/operations/deleteprompt.d.ts.map +1 -0
- package/models/operations/deleteprompt.js +69 -0
- package/models/operations/deleteprompt.js.map +1 -0
- package/models/operations/deploymentcreatemetric.d.ts +957 -0
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -0
- package/models/operations/deploymentcreatemetric.js +954 -0
- package/models/operations/deploymentcreatemetric.js.map +1 -0
- package/models/operations/deploymentgetconfig.d.ts +1885 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -0
- package/models/operations/deploymentgetconfig.js +1782 -0
- package/models/operations/deploymentgetconfig.js.map +1 -0
- package/models/operations/deploymentinvoke.d.ts +1350 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -0
- package/models/operations/deploymentinvoke.js +1210 -0
- package/models/operations/deploymentinvoke.js.map +1 -0
- package/models/operations/deployments.d.ts +1233 -0
- package/models/operations/deployments.d.ts.map +1 -0
- package/models/operations/deployments.js +1111 -0
- package/models/operations/deployments.js.map +1 -0
- package/models/operations/duplicateprompt.d.ts +32 -0
- package/models/operations/duplicateprompt.d.ts.map +1 -0
- package/models/operations/duplicateprompt.js +69 -0
- package/models/operations/duplicateprompt.js.map +1 -0
- package/models/operations/filedelete.d.ts +32 -0
- package/models/operations/filedelete.d.ts.map +1 -0
- package/models/operations/filedelete.js +78 -0
- package/models/operations/filedelete.js.map +1 -0
- package/models/operations/fileget.d.ts +116 -0
- package/models/operations/fileget.d.ts.map +1 -0
- package/models/operations/fileget.js +154 -0
- package/models/operations/fileget.js.map +1 -0
- package/models/operations/filelist.d.ts +174 -0
- package/models/operations/filelist.d.ts.map +1 -0
- package/models/operations/filelist.js +217 -0
- package/models/operations/filelist.js.map +1 -0
- package/models/operations/fileupdate.d.ts +143 -0
- package/models/operations/fileupdate.d.ts.map +1 -0
- package/models/operations/fileupdate.js +193 -0
- package/models/operations/fileupdate.js.map +1 -0
- package/models/operations/fileupload.d.ts +179 -0
- package/models/operations/fileupload.d.ts.map +1 -0
- package/models/operations/fileupload.js +212 -0
- package/models/operations/fileupload.js.map +1 -0
- package/models/operations/findonepromptsnippet.d.ts +6278 -0
- package/models/operations/findonepromptsnippet.d.ts.map +1 -0
- package/models/operations/findonepromptsnippet.js +5891 -0
- package/models/operations/findonepromptsnippet.js.map +1 -0
- package/models/operations/getallprompts.d.ts +10675 -0
- package/models/operations/getallprompts.d.ts.map +1 -0
- package/models/operations/getallprompts.js +9398 -0
- package/models/operations/getallprompts.js.map +1 -0
- package/models/operations/getallprompttemplates.d.ts +6607 -0
- package/models/operations/getallprompttemplates.d.ts.map +1 -0
- package/models/operations/getallprompttemplates.js +6225 -0
- package/models/operations/getallprompttemplates.js.map +1 -0
- package/models/operations/getoneprompt.d.ts +32 -0
- package/models/operations/getoneprompt.d.ts.map +1 -0
- package/models/operations/getoneprompt.js +69 -0
- package/models/operations/getoneprompt.js.map +1 -0
- package/models/operations/index.d.ts +23 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +42 -0
- package/models/operations/index.js.map +1 -0
- package/models/operations/remoteconfigsgetconfig.d.ts +121 -0
- package/models/operations/remoteconfigsgetconfig.d.ts.map +1 -0
- package/models/operations/remoteconfigsgetconfig.js +126 -0
- package/models/operations/remoteconfigsgetconfig.js.map +1 -0
- package/models/operations/updateprompt.d.ts +7251 -0
- package/models/operations/updateprompt.d.ts.map +1 -0
- package/models/operations/updateprompt.js +6678 -0
- package/models/operations/updateprompt.js.map +1 -0
- package/package.json +25 -24
- package/packages/orq-rc/FUNCTIONS.md +106 -0
- package/packages/orq-rc/README.md +564 -0
- package/packages/orq-rc/RUNTIMES.md +22 -0
- package/packages/orq-rc/docs/sdks/contacts/README.md +84 -0
- package/packages/orq-rc/docs/sdks/deployments/README.md +239 -0
- package/packages/orq-rc/docs/sdks/feedback/README.md +92 -0
- package/packages/orq-rc/docs/sdks/files/README.md +473 -0
- package/packages/orq-rc/docs/sdks/metrics/README.md +86 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
- package/packages/orq-rc/docs/sdks/prompt/README.md +6 -0
- package/packages/orq-rc/docs/sdks/prompts/README.md +533 -0
- package/packages/orq-rc/docs/sdks/remoteconfig/README.md +80 -0
- package/packages/orq-rc/docs/sdks/snippets/README.md +84 -0
- package/packages/orq-rc/docs/sdks/templates/README.md +80 -0
- package/packages/orq-rc/src/core.ts +13 -0
- package/packages/orq-rc/src/funcs/contactsCreate.ts +124 -0
- package/packages/orq-rc/src/funcs/deploymentsAll.ts +138 -0
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +132 -0
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +135 -0
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +132 -0
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +124 -0
- package/packages/orq-rc/src/funcs/filesBulkUpload.ts +126 -0
- package/packages/orq-rc/src/funcs/filesDelete.ts +128 -0
- package/packages/orq-rc/src/funcs/filesGet.ts +127 -0
- package/packages/orq-rc/src/funcs/filesList.ts +129 -0
- package/packages/orq-rc/src/funcs/filesUpdate.ts +128 -0
- package/packages/orq-rc/src/funcs/filesUpload.ts +145 -0
- package/packages/orq-rc/src/funcs/promptSnippetsFindOne.ts +128 -0
- package/packages/orq-rc/src/funcs/promptTemplatesGetAll.ts +130 -0
- package/packages/orq-rc/src/funcs/promptsCreate.ts +124 -0
- package/packages/orq-rc/src/funcs/promptsCreateVersion.ts +129 -0
- package/packages/orq-rc/src/funcs/promptsDelete.ts +128 -0
- package/packages/orq-rc/src/funcs/promptsDuplicate.ts +128 -0
- package/packages/orq-rc/src/funcs/promptsGetAll.ts +126 -0
- package/packages/orq-rc/src/funcs/promptsGetOne.ts +128 -0
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +136 -0
- package/packages/orq-rc/src/funcs/remoteconfigGetConfig.ts +125 -0
- package/packages/orq-rc/src/hooks/hooks.ts +132 -0
- package/packages/orq-rc/src/hooks/index.ts +6 -0
- package/packages/orq-rc/src/hooks/registration.ts +14 -0
- package/packages/orq-rc/src/hooks/types.ts +109 -0
- package/packages/orq-rc/src/index.ts +7 -0
- package/packages/orq-rc/src/lib/base64.ts +37 -0
- package/packages/orq-rc/src/lib/config.ts +60 -0
- package/packages/orq-rc/src/lib/dlv.ts +53 -0
- package/packages/orq-rc/src/lib/encodings.ts +449 -0
- package/packages/orq-rc/src/lib/env.ts +41 -0
- package/packages/orq-rc/src/lib/event-streams.ts +264 -0
- package/packages/orq-rc/src/lib/files.ts +40 -0
- package/packages/orq-rc/src/lib/http.ts +323 -0
- package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
- package/packages/orq-rc/src/lib/logger.ts +9 -0
- package/packages/orq-rc/src/lib/matchers.ts +325 -0
- package/packages/orq-rc/src/lib/primitives.ts +122 -0
- package/packages/orq-rc/src/lib/retries.ts +219 -0
- package/packages/orq-rc/src/lib/schemas.ts +86 -0
- package/packages/orq-rc/src/lib/sdks.ts +397 -0
- package/packages/orq-rc/src/lib/security.ts +254 -0
- package/packages/orq-rc/src/lib/url.ts +33 -0
- package/packages/orq-rc/src/models/components/deployments.ts +1673 -0
- package/packages/orq-rc/src/models/components/index.ts +6 -0
- package/packages/orq-rc/src/models/components/security.ts +71 -0
- package/packages/orq-rc/src/models/errors/apierror.ts +27 -0
- package/packages/orq-rc/src/models/errors/honoapierror.ts +82 -0
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
- package/packages/orq-rc/src/models/errors/index.ts +9 -0
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +97 -0
- package/packages/orq-rc/src/models/errors/updateprompt.ts +71 -0
- package/packages/orq-rc/src/models/operations/bulkfileupload.ts +315 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +256 -0
- package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +3461 -0
- package/packages/orq-rc/src/models/operations/createpromptversion.ts +3703 -0
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +1790 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3483 -0
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2385 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +2098 -0
- package/packages/orq-rc/src/models/operations/duplicateprompt.ts +69 -0
- package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +222 -0
- package/packages/orq-rc/src/models/operations/filelist.ts +333 -0
- package/packages/orq-rc/src/models/operations/fileupdate.ts +298 -0
- package/packages/orq-rc/src/models/operations/fileupload.ts +322 -0
- package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +13629 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +18640 -0
- package/packages/orq-rc/src/models/operations/getallprompttemplates.ts +13690 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +69 -0
- package/packages/orq-rc/src/models/operations/index.ts +26 -0
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +14407 -0
- package/packages/orq-rc/src/sdk/contacts.ts +27 -0
- package/packages/orq-rc/src/sdk/deployments.ts +75 -0
- package/packages/orq-rc/src/sdk/feedback.ts +27 -0
- package/packages/orq-rc/src/sdk/files.ts +105 -0
- package/packages/orq-rc/src/sdk/index.ts +5 -0
- package/packages/orq-rc/src/sdk/metrics.ts +27 -0
- package/packages/orq-rc/src/sdk/prompt.ts +19 -0
- package/packages/orq-rc/src/sdk/prompts.ts +114 -0
- package/packages/orq-rc/src/sdk/remoteconfig.ts +24 -0
- package/packages/orq-rc/src/sdk/sdk.ts +49 -0
- package/packages/orq-rc/src/sdk/snippets.ts +24 -0
- package/packages/orq-rc/src/sdk/templates.ts +24 -0
- package/packages/orq-rc/src/types/blobs.ts +31 -0
- package/packages/orq-rc/src/types/constdatetime.ts +15 -0
- package/packages/orq-rc/src/types/enums.ts +16 -0
- package/packages/orq-rc/src/types/fp.ts +50 -0
- package/packages/orq-rc/src/types/index.ts +11 -0
- package/packages/orq-rc/src/types/operations.ts +105 -0
- package/packages/orq-rc/src/types/rfcdate.ts +54 -0
- package/packages/orq-rc/src/types/streams.ts +21 -0
- package/sdk/contacts.d.ts +12 -0
- package/sdk/contacts.d.ts.map +1 -0
- package/sdk/contacts.js +22 -0
- package/sdk/contacts.js.map +1 -0
- package/sdk/deployments.d.ts +34 -0
- package/sdk/deployments.d.ts.map +1 -0
- package/sdk/deployments.js +48 -0
- package/sdk/deployments.js.map +1 -0
- package/sdk/feedback.d.ts +12 -0
- package/sdk/feedback.d.ts.map +1 -0
- package/sdk/feedback.js +22 -0
- package/sdk/feedback.js.map +1 -0
- package/sdk/files.d.ts +35 -0
- package/sdk/files.d.ts.map +1 -0
- package/sdk/files.js +60 -0
- package/sdk/files.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/metrics.d.ts +12 -0
- package/sdk/metrics.d.ts.map +1 -0
- package/sdk/metrics.js +22 -0
- package/sdk/metrics.js.map +1 -0
- package/sdk/prompt.d.ts +10 -0
- package/sdk/prompt.d.ts.map +1 -0
- package/sdk/prompt.js +19 -0
- package/sdk/prompt.js.map +1 -0
- package/sdk/prompts.d.ts +33 -0
- package/sdk/prompts.d.ts.map +1 -0
- package/sdk/prompts.js +61 -0
- package/sdk/prompts.js.map +1 -0
- package/sdk/remoteconfig.d.ts +9 -0
- package/sdk/remoteconfig.d.ts.map +1 -0
- package/sdk/remoteconfig.js +19 -0
- package/sdk/remoteconfig.js.map +1 -0
- package/sdk/sdk.d.ts +25 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +39 -0
- package/sdk/sdk.js.map +1 -0
- package/sdk/snippets.d.ts +9 -0
- package/sdk/snippets.d.ts.map +1 -0
- package/sdk/snippets.js +19 -0
- package/sdk/snippets.js.map +1 -0
- package/sdk/templates.d.ts +9 -0
- package/sdk/templates.d.ts.map +1 -0
- package/sdk/templates.js +19 -0
- package/sdk/templates.js.map +1 -0
- package/src/core.ts +13 -0
- package/src/funcs/contactsCreate.ts +125 -0
- package/src/funcs/deploymentsAll.ts +139 -0
- package/src/funcs/deploymentsGetConfig.ts +133 -0
- package/src/funcs/deploymentsInvoke.ts +136 -0
- package/src/funcs/deploymentsMetricsCreate.ts +133 -0
- package/src/funcs/feedbackCreate.ts +125 -0
- package/src/funcs/filesBulkUpload.ts +128 -0
- package/src/funcs/filesDelete.ts +129 -0
- package/src/funcs/filesGet.ts +128 -0
- package/src/funcs/filesList.ts +130 -0
- package/src/funcs/filesUpdate.ts +129 -0
- package/src/funcs/filesUpload.ts +148 -0
- package/src/funcs/promptSnippetsFindOne.ts +129 -0
- package/src/funcs/promptTemplatesGetAll.ts +131 -0
- package/src/funcs/promptsCreate.ts +125 -0
- package/src/funcs/promptsCreateVersion.ts +130 -0
- package/src/funcs/promptsDelete.ts +129 -0
- package/src/funcs/promptsDuplicate.ts +129 -0
- package/src/funcs/promptsGetAll.ts +127 -0
- package/src/funcs/promptsGetOne.ts +129 -0
- package/src/funcs/promptsUpdate.ts +137 -0
- package/src/funcs/remoteconfigGetConfig.ts +126 -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 +109 -0
- package/src/index.ts +7 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +60 -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/event-streams.ts +264 -0
- package/src/lib/files.ts +40 -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 +325 -0
- package/src/lib/primitives.ts +136 -0
- package/src/lib/retries.ts +219 -0
- package/src/lib/schemas.ts +86 -0
- package/src/lib/sdks.ts +400 -0
- package/src/lib/security.ts +254 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/deployments.ts +1673 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/security.ts +71 -0
- package/src/models/errors/apierror.ts +27 -0
- package/src/models/errors/honoapierror.ts +82 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +9 -0
- package/src/models/errors/sdkvalidationerror.ts +97 -0
- package/src/models/errors/updateprompt.ts +71 -0
- package/src/models/operations/bulkfileupload.ts +315 -0
- package/src/models/operations/createcontact.ts +256 -0
- package/src/models/operations/createfeedback.ts +286 -0
- package/src/models/operations/createprompt.ts +3461 -0
- package/src/models/operations/createpromptversion.ts +3703 -0
- package/src/models/operations/deleteprompt.ts +69 -0
- package/src/models/operations/deploymentcreatemetric.ts +1790 -0
- package/src/models/operations/deploymentgetconfig.ts +3483 -0
- package/src/models/operations/deploymentinvoke.ts +2385 -0
- package/src/models/operations/deployments.ts +2098 -0
- package/src/models/operations/duplicateprompt.ts +69 -0
- package/src/models/operations/filedelete.ts +78 -0
- package/src/models/operations/fileget.ts +222 -0
- package/src/models/operations/filelist.ts +333 -0
- package/src/models/operations/fileupdate.ts +298 -0
- package/src/models/operations/fileupload.ts +322 -0
- package/src/models/operations/findonepromptsnippet.ts +13629 -0
- package/src/models/operations/getallprompts.ts +18640 -0
- package/src/models/operations/getallprompttemplates.ts +13690 -0
- package/src/models/operations/getoneprompt.ts +69 -0
- package/src/models/operations/index.ts +26 -0
- package/src/models/operations/remoteconfigsgetconfig.ts +190 -0
- package/src/models/operations/updateprompt.ts +14407 -0
- package/src/sdk/contacts.ts +27 -0
- package/src/sdk/deployments.ts +75 -0
- package/src/sdk/feedback.ts +27 -0
- package/src/sdk/files.ts +105 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/metrics.ts +27 -0
- package/src/sdk/prompt.ts +19 -0
- package/src/sdk/prompts.ts +114 -0
- package/src/sdk/remoteconfig.ts +24 -0
- package/src/sdk/sdk.ts +49 -0
- package/src/sdk/snippets.ts +24 -0
- package/src/sdk/templates.ts +24 -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/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.d.ts +3 -0
- package/types/constdatetime.d.ts.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +10 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +16 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
- package/src/index.d.ts +0 -3
- package/src/index.js +0 -7
- package/src/index.js.map +0 -1
- package/src/lib/api/contacts/index.d.ts +0 -9
- package/src/lib/api/contacts/index.js +0 -25
- package/src/lib/api/contacts/index.js.map +0 -1
- package/src/lib/api/deployments.d.ts +0 -45
- package/src/lib/api/deployments.js +0 -166
- package/src/lib/api/deployments.js.map +0 -1
- package/src/lib/api/feedback/feedback.d.ts +0 -20
- package/src/lib/api/feedback/feedback.js +0 -51
- package/src/lib/api/feedback/feedback.js.map +0 -1
- package/src/lib/api/feedback/index.d.ts +0 -1
- package/src/lib/api/feedback/index.js +0 -5
- package/src/lib/api/feedback/index.js.map +0 -1
- package/src/lib/api/index.d.ts +0 -1
- package/src/lib/api/index.js +0 -5
- package/src/lib/api/index.js.map +0 -1
- package/src/lib/api/webhooks/index.d.ts +0 -1
- package/src/lib/api/webhooks/index.js +0 -5
- package/src/lib/api/webhooks/index.js.map +0 -1
- package/src/lib/api/webhooks/webhooks.d.ts +0 -14
- package/src/lib/api/webhooks/webhooks.js +0 -40
- package/src/lib/api/webhooks/webhooks.js.map +0 -1
- package/src/lib/client.d.ts +0 -17
- package/src/lib/client.js +0 -47
- package/src/lib/client.js.map +0 -1
- package/src/lib/exceptions/index.d.ts +0 -9
- package/src/lib/exceptions/index.js +0 -31
- package/src/lib/exceptions/index.js.map +0 -1
- package/src/lib/http/index.d.ts +0 -7
- package/src/lib/http/index.js +0 -15
- package/src/lib/http/index.js.map +0 -1
- package/src/lib/models/contacts.d.ts +0 -8
- package/src/lib/models/contacts.js +0 -3
- package/src/lib/models/contacts.js.map +0 -1
- package/src/lib/models/deployments.d.ts +0 -167
- package/src/lib/models/deployments.js +0 -40
- package/src/lib/models/deployments.js.map +0 -1
- package/src/lib/models/feedback.models.d.ts +0 -23
- package/src/lib/models/feedback.models.js +0 -3
- package/src/lib/models/feedback.models.js.map +0 -1
- package/src/lib/models/index.d.ts +0 -6
- package/src/lib/models/index.js +0 -10
- package/src/lib/models/index.js.map +0 -1
- package/src/lib/models/options.d.ts +0 -13
- package/src/lib/models/options.js +0 -3
- package/src/lib/models/options.js.map +0 -1
- package/src/lib/models/user-info.d.ts +0 -3
- package/src/lib/models/user-info.js +0 -3
- package/src/lib/models/user-info.js.map +0 -1
- package/src/lib/models/webhooks.d.ts +0 -83
- package/src/lib/models/webhooks.js +0 -8
- package/src/lib/models/webhooks.js.map +0 -1
- package/src/lib/utils/index.d.ts +0 -6
- package/src/lib/utils/index.js +0 -51
- package/src/lib/utils/index.js.map +0 -1
- package/src/lib/version.d.ts +0 -1
- package/src/lib/version.js +0 -5
- package/src/lib/version.js.map +0 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { HTTPClient, RequestInput } from "../lib/http.js";
|
|
6
|
+
import { RetryConfig } from "../lib/retries.js";
|
|
7
|
+
import { SecurityState } from "../lib/security.js";
|
|
8
|
+
|
|
9
|
+
export type HookContext = {
|
|
10
|
+
operationID: string;
|
|
11
|
+
oAuth2Scopes?: string[];
|
|
12
|
+
securitySource?: any | (() => Promise<any>);
|
|
13
|
+
retryConfig: RetryConfig;
|
|
14
|
+
resolvedSecurity: SecurityState | null;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type Awaitable<T> = T | Promise<T>;
|
|
18
|
+
|
|
19
|
+
export type SDKInitOptions = {
|
|
20
|
+
baseURL: URL | null;
|
|
21
|
+
client: HTTPClient;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type BeforeCreateRequestContext = HookContext & {};
|
|
25
|
+
export type BeforeRequestContext = HookContext & {};
|
|
26
|
+
export type AfterSuccessContext = HookContext & {};
|
|
27
|
+
export type AfterErrorContext = HookContext & {};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* SDKInitHook is called when the SDK is initializing. The
|
|
31
|
+
* hook can return a new baseURL and HTTP client to be used by the SDK.
|
|
32
|
+
*/
|
|
33
|
+
export interface SDKInitHook {
|
|
34
|
+
sdkInit: (opts: SDKInitOptions) => SDKInitOptions;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface BeforeCreateRequestHook {
|
|
38
|
+
/**
|
|
39
|
+
* A hook that is called before the SDK creates a `Request` object. The hook
|
|
40
|
+
* can modify how a request is constructed since certain modifications, like
|
|
41
|
+
* changing the request URL, cannot be done on a request object directly.
|
|
42
|
+
*/
|
|
43
|
+
beforeCreateRequest: (
|
|
44
|
+
hookCtx: BeforeCreateRequestContext,
|
|
45
|
+
input: RequestInput,
|
|
46
|
+
) => RequestInput;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface BeforeRequestHook {
|
|
50
|
+
/**
|
|
51
|
+
* A hook that is called before the SDK sends a request. The hook can
|
|
52
|
+
* introduce instrumentation code such as logging, tracing and metrics or
|
|
53
|
+
* replace the request before it is sent or throw an error to stop the
|
|
54
|
+
* request from being sent.
|
|
55
|
+
*/
|
|
56
|
+
beforeRequest: (
|
|
57
|
+
hookCtx: BeforeRequestContext,
|
|
58
|
+
request: Request,
|
|
59
|
+
) => Awaitable<Request>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface AfterSuccessHook {
|
|
63
|
+
/**
|
|
64
|
+
* A hook that is called after the SDK receives a response. The hook can
|
|
65
|
+
* introduce instrumentation code such as logging, tracing and metrics or
|
|
66
|
+
* modify the response before it is handled or throw an error to stop the
|
|
67
|
+
* response from being handled.
|
|
68
|
+
*/
|
|
69
|
+
afterSuccess: (
|
|
70
|
+
hookCtx: AfterSuccessContext,
|
|
71
|
+
response: Response,
|
|
72
|
+
) => Awaitable<Response>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface AfterErrorHook {
|
|
76
|
+
/**
|
|
77
|
+
* A hook that is called after the SDK encounters an error, or a
|
|
78
|
+
* non-successful response. The hook can introduce instrumentation code such
|
|
79
|
+
* as logging, tracing and metrics or modify the response or error values.
|
|
80
|
+
*/
|
|
81
|
+
afterError: (
|
|
82
|
+
hookCtx: AfterErrorContext,
|
|
83
|
+
response: Response | null,
|
|
84
|
+
error: unknown,
|
|
85
|
+
) => Awaitable<{
|
|
86
|
+
response: Response | null;
|
|
87
|
+
error: unknown;
|
|
88
|
+
}>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface Hooks {
|
|
92
|
+
/** Registers a hook to be used by the SDK for initialization event. */
|
|
93
|
+
registerSDKInitHook(hook: SDKInitHook): void;
|
|
94
|
+
/** Registers a hook to be used by the SDK for to modify `Request` construction. */
|
|
95
|
+
registerBeforeCreateRequestHook(hook: BeforeCreateRequestHook): void;
|
|
96
|
+
/** Registers a hook to be used by the SDK for the before request event. */
|
|
97
|
+
registerBeforeRequestHook(hook: BeforeRequestHook): void;
|
|
98
|
+
/** Registers a hook to be used by the SDK for the after success event. */
|
|
99
|
+
registerAfterSuccessHook(hook: AfterSuccessHook): void;
|
|
100
|
+
/** Registers a hook to be used by the SDK for the after error event. */
|
|
101
|
+
registerAfterErrorHook(hook: AfterErrorHook): void;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export type Hook =
|
|
105
|
+
| SDKInitHook
|
|
106
|
+
| BeforeCreateRequestHook
|
|
107
|
+
| BeforeRequestHook
|
|
108
|
+
| AfterSuccessHook
|
|
109
|
+
| AfterErrorHook;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export function bytesToBase64(u8arr: Uint8Array): string {
|
|
8
|
+
return btoa(String.fromCodePoint(...u8arr));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function bytesFromBase64(encoded: string): Uint8Array {
|
|
12
|
+
return Uint8Array.from(atob(encoded), (c) => c.charCodeAt(0));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function stringToBytes(str: string): Uint8Array {
|
|
16
|
+
return new TextEncoder().encode(str);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function stringFromBytes(u8arr: Uint8Array): string {
|
|
20
|
+
return new TextDecoder().decode(u8arr);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function stringToBase64(str: string): string {
|
|
24
|
+
return bytesToBase64(stringToBytes(str));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function stringFromBase64(b64str: string): string {
|
|
28
|
+
return stringFromBytes(bytesFromBase64(b64str));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const zodOutbound = z
|
|
32
|
+
.instanceof(Uint8Array)
|
|
33
|
+
.or(z.string().transform(stringToBytes));
|
|
34
|
+
|
|
35
|
+
export const zodInbound = z
|
|
36
|
+
.instanceof(Uint8Array)
|
|
37
|
+
.or(z.string().transform(bytesFromBase64));
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { HTTPClient } from "./http.js";
|
|
6
|
+
import { Logger } from "./logger.js";
|
|
7
|
+
import { RetryConfig } from "./retries.js";
|
|
8
|
+
import { Params, pathToFunc } from "./url.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Contains the list of servers available to the SDK
|
|
12
|
+
*/
|
|
13
|
+
export const ServerList = [
|
|
14
|
+
"https://my.staging.orq.ai",
|
|
15
|
+
] as const;
|
|
16
|
+
|
|
17
|
+
export type SDKOptions = {
|
|
18
|
+
apiKey?: string | (() => Promise<string>);
|
|
19
|
+
|
|
20
|
+
httpClient?: HTTPClient;
|
|
21
|
+
/**
|
|
22
|
+
* Allows overriding the default server used by the SDK
|
|
23
|
+
*/
|
|
24
|
+
serverIdx?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Allows overriding the default server URL used by the SDK
|
|
27
|
+
*/
|
|
28
|
+
serverURL?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Allows overriding the default retry config used by the SDK
|
|
31
|
+
*/
|
|
32
|
+
retryConfig?: RetryConfig;
|
|
33
|
+
timeoutMs?: number;
|
|
34
|
+
debugLogger?: Logger;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
38
|
+
let serverURL = options.serverURL;
|
|
39
|
+
|
|
40
|
+
const params: Params = {};
|
|
41
|
+
|
|
42
|
+
if (!serverURL) {
|
|
43
|
+
const serverIdx = options.serverIdx ?? 0;
|
|
44
|
+
if (serverIdx < 0 || serverIdx >= ServerList.length) {
|
|
45
|
+
throw new Error(`Invalid server index ${serverIdx}`);
|
|
46
|
+
}
|
|
47
|
+
serverURL = ServerList[serverIdx] || "";
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const u = pathToFunc(serverURL)(params);
|
|
51
|
+
return new URL(u);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export const SDK_METADATA = {
|
|
55
|
+
language: "typescript",
|
|
56
|
+
openapiDocVersion: "2.0",
|
|
57
|
+
sdkVersion: "3.0.0-rc.19",
|
|
58
|
+
genVersion: "2.481.0",
|
|
59
|
+
userAgent: "speakeasy-sdk/typescript 3.0.0-rc.19 2.481.0 2.0 @orq-ai/node",
|
|
60
|
+
} as const;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2024 Jason Miller <jason@developit.ca> (http://jasonformat.com)
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
11
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
12
|
+
the Software without restriction, including without limitation the rights to
|
|
13
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
14
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
15
|
+
subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
22
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
23
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
24
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
25
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param obj The object to walk
|
|
30
|
+
* @param key The key path to walk the object with
|
|
31
|
+
* @param def A default value to return if the result is undefined
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* dlv(obj, "a.b.c.d")
|
|
35
|
+
* @example
|
|
36
|
+
* dlv(object, ["a", "b", "c", "d"])
|
|
37
|
+
* @example
|
|
38
|
+
* dlv(object, "foo.bar.baz", "Hello, default value!")
|
|
39
|
+
*/
|
|
40
|
+
export function dlv<T = any>(
|
|
41
|
+
obj: any,
|
|
42
|
+
key: string | string[],
|
|
43
|
+
def?: T,
|
|
44
|
+
p?: number,
|
|
45
|
+
undef?: never,
|
|
46
|
+
): T | undefined {
|
|
47
|
+
key = Array.isArray(key) ? key : key.split(".");
|
|
48
|
+
for (p = 0; p < key.length; p++) {
|
|
49
|
+
const k = key[p];
|
|
50
|
+
obj = k != null && obj ? obj[k] : undef;
|
|
51
|
+
}
|
|
52
|
+
return obj === undef ? def : obj;
|
|
53
|
+
}
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { bytesToBase64 } from "./base64.js";
|
|
6
|
+
import { isPlainObject } from "./is-plain-object.js";
|
|
7
|
+
|
|
8
|
+
export class EncodingError extends Error {
|
|
9
|
+
constructor(message: string) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.name = "EncodingError";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function encodeMatrix(
|
|
16
|
+
key: string,
|
|
17
|
+
value: unknown,
|
|
18
|
+
options?: { explode?: boolean; charEncoding?: "percent" | "none" },
|
|
19
|
+
): string {
|
|
20
|
+
let out = "";
|
|
21
|
+
const pairs: [string, unknown][] = options?.explode
|
|
22
|
+
? explode(key, value)
|
|
23
|
+
: [[key, value]];
|
|
24
|
+
|
|
25
|
+
const encodeString = (v: string) => {
|
|
26
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
27
|
+
};
|
|
28
|
+
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
29
|
+
|
|
30
|
+
pairs.forEach(([pk, pv]) => {
|
|
31
|
+
let tmp = "";
|
|
32
|
+
let encValue = "";
|
|
33
|
+
|
|
34
|
+
if (pv === undefined) {
|
|
35
|
+
return;
|
|
36
|
+
} else if (Array.isArray(pv)) {
|
|
37
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`).join(",");
|
|
38
|
+
} else if (isPlainObject(pv)) {
|
|
39
|
+
encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
40
|
+
return `,${encodeString(k)},${encodeValue(v)}`;
|
|
41
|
+
}).join("");
|
|
42
|
+
encValue = encValue.slice(1);
|
|
43
|
+
} else {
|
|
44
|
+
encValue = `${encodeValue(pv)}`;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const keyPrefix = encodeString(pk);
|
|
48
|
+
tmp = `${keyPrefix}=${encValue}`;
|
|
49
|
+
// trim trailing '=' if value was empty
|
|
50
|
+
if (tmp === `${keyPrefix}=`) {
|
|
51
|
+
tmp = tmp.slice(0, -1);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// If we end up with the nothing then skip forward
|
|
55
|
+
if (!tmp) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
out += `;${tmp}`;
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
return out;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function encodeLabel(
|
|
66
|
+
key: string,
|
|
67
|
+
value: unknown,
|
|
68
|
+
options?: { explode?: boolean; charEncoding?: "percent" | "none" },
|
|
69
|
+
): string {
|
|
70
|
+
let out = "";
|
|
71
|
+
const pairs: [string, unknown][] = options?.explode
|
|
72
|
+
? explode(key, value)
|
|
73
|
+
: [[key, value]];
|
|
74
|
+
|
|
75
|
+
const encodeString = (v: string) => {
|
|
76
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
77
|
+
};
|
|
78
|
+
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
79
|
+
|
|
80
|
+
pairs.forEach(([pk, pv]) => {
|
|
81
|
+
let encValue = "";
|
|
82
|
+
|
|
83
|
+
if (pv === undefined) {
|
|
84
|
+
return;
|
|
85
|
+
} else if (Array.isArray(pv)) {
|
|
86
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`).join(".");
|
|
87
|
+
} else if (isPlainObject(pv)) {
|
|
88
|
+
encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
89
|
+
return `.${encodeString(k)}.${encodeValue(v)}`;
|
|
90
|
+
}).join("");
|
|
91
|
+
encValue = encValue.slice(1);
|
|
92
|
+
} else {
|
|
93
|
+
const k =
|
|
94
|
+
options?.explode && isPlainObject(value) ? `${encodeString(pk)}=` : "";
|
|
95
|
+
encValue = `${k}${encodeValue(pv)}`;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
out += `.${encValue}`;
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
return out;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
type FormEncoder = (
|
|
105
|
+
key: string,
|
|
106
|
+
value: unknown,
|
|
107
|
+
options?: { explode?: boolean; charEncoding?: "percent" | "none" },
|
|
108
|
+
) => string;
|
|
109
|
+
|
|
110
|
+
function formEncoder(sep: string): FormEncoder {
|
|
111
|
+
return (
|
|
112
|
+
key: string,
|
|
113
|
+
value: unknown,
|
|
114
|
+
options?: { explode?: boolean; charEncoding?: "percent" | "none" },
|
|
115
|
+
) => {
|
|
116
|
+
let out = "";
|
|
117
|
+
const pairs: [string, unknown][] = options?.explode
|
|
118
|
+
? explode(key, value)
|
|
119
|
+
: [[key, value]];
|
|
120
|
+
|
|
121
|
+
const encodeString = (v: string) => {
|
|
122
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
126
|
+
|
|
127
|
+
const encodedSep = encodeString(sep);
|
|
128
|
+
|
|
129
|
+
pairs.forEach(([pk, pv]) => {
|
|
130
|
+
let tmp = "";
|
|
131
|
+
let encValue = "";
|
|
132
|
+
|
|
133
|
+
if (pv === undefined) {
|
|
134
|
+
return;
|
|
135
|
+
} else if (Array.isArray(pv)) {
|
|
136
|
+
encValue = mapDefined(pv, (v) => `${encodeValue(v)}`).join(encodedSep);
|
|
137
|
+
} else if (isPlainObject(pv)) {
|
|
138
|
+
encValue = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
139
|
+
return `${encodeString(k)}${encodedSep}${encodeValue(v)}`;
|
|
140
|
+
}).join(encodedSep);
|
|
141
|
+
} else {
|
|
142
|
+
encValue = `${encodeValue(pv)}`;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
tmp = `${encodeString(pk)}=${encValue}`;
|
|
146
|
+
|
|
147
|
+
// If we end up with the nothing then skip forward
|
|
148
|
+
if (!tmp || tmp === "=") {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
out += `&${tmp}`;
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
return out.slice(1);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export const encodeForm = formEncoder(",");
|
|
160
|
+
export const encodeSpaceDelimited = formEncoder(" ");
|
|
161
|
+
export const encodePipeDelimited = formEncoder("|");
|
|
162
|
+
|
|
163
|
+
export function encodeBodyForm(
|
|
164
|
+
key: string,
|
|
165
|
+
value: unknown,
|
|
166
|
+
options?: { explode?: boolean; charEncoding?: "percent" | "none" },
|
|
167
|
+
): string {
|
|
168
|
+
let out = "";
|
|
169
|
+
const pairs: [string, unknown][] = options?.explode
|
|
170
|
+
? explode(key, value)
|
|
171
|
+
: [[key, value]];
|
|
172
|
+
|
|
173
|
+
const encodeString = (v: string) => {
|
|
174
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
178
|
+
|
|
179
|
+
pairs.forEach(([pk, pv]) => {
|
|
180
|
+
let tmp = "";
|
|
181
|
+
let encValue = "";
|
|
182
|
+
|
|
183
|
+
if (pv === undefined) {
|
|
184
|
+
return;
|
|
185
|
+
} else if (Array.isArray(pv)) {
|
|
186
|
+
encValue = JSON.stringify(pv, jsonReplacer);
|
|
187
|
+
} else if (isPlainObject(pv)) {
|
|
188
|
+
encValue = JSON.stringify(pv, jsonReplacer);
|
|
189
|
+
} else {
|
|
190
|
+
encValue = `${encodeValue(pv)}`;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
tmp = `${encodeString(pk)}=${encValue}`;
|
|
194
|
+
|
|
195
|
+
// If we end up with the nothing then skip forward
|
|
196
|
+
if (!tmp || tmp === "=") {
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
out += `&${tmp}`;
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
return out.slice(1);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function encodeDeepObject(
|
|
207
|
+
key: string,
|
|
208
|
+
value: unknown,
|
|
209
|
+
options?: { charEncoding?: "percent" | "none" },
|
|
210
|
+
): string {
|
|
211
|
+
if (value == null) {
|
|
212
|
+
return "";
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (!isPlainObject(value)) {
|
|
216
|
+
throw new EncodingError(
|
|
217
|
+
`Value of parameter '${key}' which uses deepObject encoding must be an object`,
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
return encodeDeepObjectObject(key, value, options);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export function encodeDeepObjectObject(
|
|
225
|
+
key: string,
|
|
226
|
+
value: unknown,
|
|
227
|
+
options?: { charEncoding?: "percent" | "none" },
|
|
228
|
+
): string {
|
|
229
|
+
if (value == null) {
|
|
230
|
+
return "";
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
let out = "";
|
|
234
|
+
|
|
235
|
+
const encodeString = (v: string) => {
|
|
236
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
if (!isPlainObject(value)) {
|
|
240
|
+
throw new EncodingError(`Expected parameter '${key}' to be an object.`);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
Object.entries(value).forEach(([ck, cv]) => {
|
|
244
|
+
if (cv === undefined) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
const pk = `${key}[${ck}]`;
|
|
249
|
+
|
|
250
|
+
if (isPlainObject(cv)) {
|
|
251
|
+
const objOut = encodeDeepObjectObject(pk, cv, options);
|
|
252
|
+
|
|
253
|
+
out += `&${objOut}`;
|
|
254
|
+
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const pairs: unknown[] = Array.isArray(cv) ? cv : [cv];
|
|
259
|
+
let encoded = "";
|
|
260
|
+
|
|
261
|
+
encoded = mapDefined(pairs, (v) => {
|
|
262
|
+
return `${encodeString(pk)}=${encodeString(serializeValue(v))}`;
|
|
263
|
+
}).join("&");
|
|
264
|
+
|
|
265
|
+
out += `&${encoded}`;
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
return out.slice(1);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function encodeJSON(
|
|
272
|
+
key: string,
|
|
273
|
+
value: unknown,
|
|
274
|
+
options?: { explode?: boolean; charEncoding?: "percent" | "none" },
|
|
275
|
+
): string {
|
|
276
|
+
if (typeof value === "undefined") {
|
|
277
|
+
return "";
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
const encodeString = (v: string) => {
|
|
281
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
const encVal = encodeString(JSON.stringify(value, jsonReplacer));
|
|
285
|
+
|
|
286
|
+
return options?.explode ? encVal : `${encodeString(key)}=${encVal}`;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export const encodeSimple = (
|
|
290
|
+
key: string,
|
|
291
|
+
value: unknown,
|
|
292
|
+
options?: { explode?: boolean; charEncoding?: "percent" | "none" },
|
|
293
|
+
): string => {
|
|
294
|
+
let out = "";
|
|
295
|
+
const pairs: [string, unknown][] = options?.explode
|
|
296
|
+
? explode(key, value)
|
|
297
|
+
: [[key, value]];
|
|
298
|
+
|
|
299
|
+
const encodeString = (v: string) => {
|
|
300
|
+
return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
|
|
301
|
+
};
|
|
302
|
+
const encodeValue = (v: unknown) => encodeString(serializeValue(v));
|
|
303
|
+
|
|
304
|
+
pairs.forEach(([pk, pv]) => {
|
|
305
|
+
let tmp = "";
|
|
306
|
+
|
|
307
|
+
if (pv === undefined) {
|
|
308
|
+
return;
|
|
309
|
+
} else if (Array.isArray(pv)) {
|
|
310
|
+
tmp = mapDefined(pv, (v) => `${encodeValue(v)}`).join(",");
|
|
311
|
+
} else if (isPlainObject(pv)) {
|
|
312
|
+
tmp = mapDefinedEntries(Object.entries(pv), ([k, v]) => {
|
|
313
|
+
return `,${encodeString(k)},${encodeValue(v)}`;
|
|
314
|
+
}).join("");
|
|
315
|
+
tmp = tmp.slice(1);
|
|
316
|
+
} else {
|
|
317
|
+
const k = options?.explode && isPlainObject(value) ? `${pk}=` : "";
|
|
318
|
+
tmp = `${k}${encodeValue(pv)}`;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// If we end up with the nothing then skip forward
|
|
322
|
+
if (!tmp) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
out += `,${tmp}`;
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
return out.slice(1);
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
function explode(key: string, value: unknown): [string, unknown][] {
|
|
333
|
+
if (Array.isArray(value)) {
|
|
334
|
+
return value.map((v) => [key, v]);
|
|
335
|
+
} else if (isPlainObject(value)) {
|
|
336
|
+
const o = value ?? {};
|
|
337
|
+
return Object.entries(o).map(([k, v]) => [k, v]);
|
|
338
|
+
} else {
|
|
339
|
+
return [[key, value]];
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
function serializeValue(value: unknown): string {
|
|
344
|
+
if (value === null) {
|
|
345
|
+
return "null";
|
|
346
|
+
} else if (typeof value === "undefined") {
|
|
347
|
+
return "";
|
|
348
|
+
} else if (value instanceof Date) {
|
|
349
|
+
return value.toISOString();
|
|
350
|
+
} else if (value instanceof Uint8Array) {
|
|
351
|
+
return bytesToBase64(value);
|
|
352
|
+
} else if (typeof value === "object") {
|
|
353
|
+
return JSON.stringify(value, jsonReplacer);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
return `${value}`;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
function jsonReplacer(_: string, value: unknown): unknown {
|
|
360
|
+
if (value instanceof Uint8Array) {
|
|
361
|
+
return bytesToBase64(value);
|
|
362
|
+
} else {
|
|
363
|
+
return value;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
function mapDefined<T, R>(inp: T[], mapper: (v: T) => R): R[] {
|
|
368
|
+
return inp.reduce<R[]>((acc, v) => {
|
|
369
|
+
if (v === undefined) {
|
|
370
|
+
return acc;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
const m = mapper(v);
|
|
374
|
+
if (m === undefined) {
|
|
375
|
+
return acc;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
acc.push(m);
|
|
379
|
+
|
|
380
|
+
return acc;
|
|
381
|
+
}, []);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
function mapDefinedEntries<K, V, R>(
|
|
385
|
+
inp: Iterable<[K, V]>,
|
|
386
|
+
mapper: (v: [K, V]) => R,
|
|
387
|
+
): R[] {
|
|
388
|
+
const acc: R[] = [];
|
|
389
|
+
for (const [k, v] of inp) {
|
|
390
|
+
if (v === undefined) {
|
|
391
|
+
continue;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
const m = mapper([k, v]);
|
|
395
|
+
if (m === undefined) {
|
|
396
|
+
continue;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
acc.push(m);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
return acc;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export function queryJoin(...args: string[]): string {
|
|
406
|
+
return args.filter(Boolean).join("&");
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
type QueryEncoderOptions = {
|
|
410
|
+
explode?: boolean;
|
|
411
|
+
charEncoding?: "percent" | "none";
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
type QueryEncoder = (
|
|
415
|
+
key: string,
|
|
416
|
+
value: unknown,
|
|
417
|
+
options?: QueryEncoderOptions,
|
|
418
|
+
) => string;
|
|
419
|
+
|
|
420
|
+
type BulkQueryEncoder = (
|
|
421
|
+
values: Record<string, unknown>,
|
|
422
|
+
options?: QueryEncoderOptions,
|
|
423
|
+
) => string;
|
|
424
|
+
|
|
425
|
+
export function queryEncoder(f: QueryEncoder): BulkQueryEncoder {
|
|
426
|
+
const bulkEncode = function (
|
|
427
|
+
values: Record<string, unknown>,
|
|
428
|
+
options?: QueryEncoderOptions,
|
|
429
|
+
): string {
|
|
430
|
+
const opts: QueryEncoderOptions = {
|
|
431
|
+
...options,
|
|
432
|
+
explode: options?.explode ?? true,
|
|
433
|
+
charEncoding: options?.charEncoding ?? "percent",
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
const encoded = Object.entries(values).map(([key, value]) => {
|
|
437
|
+
return f(key, value, opts);
|
|
438
|
+
});
|
|
439
|
+
return queryJoin(...encoded);
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
return bulkEncode;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export const encodeJSONQuery = queryEncoder(encodeJSON);
|
|
446
|
+
export const encodeFormQuery = queryEncoder(encodeForm);
|
|
447
|
+
export const encodeSpaceDelimitedQuery = queryEncoder(encodeSpaceDelimited);
|
|
448
|
+
export const encodePipeDelimitedQuery = queryEncoder(encodePipeDelimited);
|
|
449
|
+
export const encodeDeepObjectQuery = queryEncoder(encodeDeepObject);
|