@factify/sdk 0.3.8 → 0.3.10
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 +5 -7
- package/README.md +46 -54
- package/dist/commonjs/funcs/apiKeysCreateAPIKey.d.ts +19 -0
- package/dist/commonjs/funcs/apiKeysCreateAPIKey.d.ts.map +1 -0
- package/dist/commonjs/funcs/apiKeysCreateAPIKey.js +122 -0
- package/dist/commonjs/funcs/apiKeysCreateAPIKey.js.map +1 -0
- package/dist/commonjs/funcs/{versionsUpdate.d.ts → apiKeysListAPIKeys.d.ts} +4 -4
- package/dist/commonjs/funcs/apiKeysListAPIKeys.d.ts.map +1 -0
- package/dist/commonjs/funcs/apiKeysListAPIKeys.js +127 -0
- package/dist/commonjs/funcs/apiKeysListAPIKeys.js.map +1 -0
- package/dist/commonjs/funcs/apiKeysRevokeAPIKey.d.ts +18 -0
- package/dist/commonjs/funcs/apiKeysRevokeAPIKey.d.ts.map +1 -0
- package/dist/commonjs/funcs/apiKeysRevokeAPIKey.js +127 -0
- package/dist/commonjs/funcs/apiKeysRevokeAPIKey.js.map +1 -0
- package/dist/commonjs/funcs/organizationsCreateOrganization.d.ts +19 -0
- package/dist/commonjs/funcs/organizationsCreateOrganization.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsCreateOrganization.js +122 -0
- package/dist/commonjs/funcs/organizationsCreateOrganization.js.map +1 -0
- package/dist/commonjs/funcs/organizationsGetOrganization.d.ts +18 -0
- package/dist/commonjs/funcs/organizationsGetOrganization.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsGetOrganization.js +126 -0
- package/dist/commonjs/funcs/organizationsGetOrganization.js.map +1 -0
- package/dist/commonjs/funcs/organizationsListOrganizations.d.ts +18 -0
- package/dist/commonjs/funcs/organizationsListOrganizations.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListOrganizations.js +125 -0
- package/dist/commonjs/funcs/organizationsListOrganizations.js.map +1 -0
- package/dist/{esm/funcs/versionsUpdate.d.ts → commonjs/funcs/versionsGetVersion.d.ts} +4 -4
- package/dist/commonjs/funcs/versionsGetVersion.d.ts.map +1 -0
- package/dist/commonjs/funcs/{versionsGet.js → versionsGetVersion.js} +7 -11
- package/dist/commonjs/funcs/versionsGetVersion.js.map +1 -0
- package/dist/commonjs/funcs/{versionsGet.d.ts → versionsUpdateVersion.d.ts} +4 -4
- package/dist/commonjs/funcs/versionsUpdateVersion.d.ts.map +1 -0
- package/dist/commonjs/funcs/{versionsUpdate.js → versionsUpdateVersion.js} +7 -11
- package/dist/commonjs/funcs/{versionsGet.js.map → versionsUpdateVersion.js.map} +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/sdks.js +2 -2
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/components/apikey.d.ts +56 -0
- package/dist/commonjs/models/components/apikey.d.ts.map +1 -0
- package/dist/commonjs/models/components/apikey.js +68 -0
- package/dist/commonjs/models/components/apikey.js.map +1 -0
- package/dist/commonjs/models/components/createapikeyrequest.d.ts +37 -0
- package/dist/commonjs/models/components/createapikeyrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/createapikeyrequest.js +57 -0
- package/dist/commonjs/models/components/createapikeyrequest.js.map +1 -0
- package/dist/commonjs/models/components/createapikeyresponse.d.ts +29 -0
- package/dist/commonjs/models/components/createapikeyresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/createapikeyresponse.js +58 -0
- package/dist/commonjs/models/components/createapikeyresponse.js.map +1 -0
- package/dist/commonjs/models/components/createdocumentresponse.d.ts +1 -1
- package/dist/commonjs/models/components/createdocumentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/createdocumentresponse.js +1 -2
- package/dist/commonjs/models/components/createdocumentresponse.js.map +1 -1
- package/dist/commonjs/models/components/createorganizationrequest.d.ts +28 -0
- package/dist/commonjs/models/components/createorganizationrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/createorganizationrequest.js +55 -0
- package/dist/commonjs/models/components/createorganizationrequest.js.map +1 -0
- package/dist/commonjs/models/components/createorganizationresponse.d.ts +17 -0
- package/dist/commonjs/models/components/createorganizationresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/createorganizationresponse.js +51 -0
- package/dist/commonjs/models/components/createorganizationresponse.js.map +1 -0
- package/dist/commonjs/models/components/getdocumentresponse.d.ts +1 -1
- package/dist/commonjs/models/components/getdocumentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/getdocumentresponse.js +1 -2
- package/dist/commonjs/models/components/getdocumentresponse.js.map +1 -1
- package/dist/commonjs/models/components/getorganizationresponse.d.ts +17 -0
- package/dist/commonjs/models/components/getorganizationresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/getorganizationresponse.js +51 -0
- package/dist/commonjs/models/components/getorganizationresponse.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +10 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +10 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/listapikeysresponse.d.ts +25 -0
- package/dist/commonjs/models/components/listapikeysresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/listapikeysresponse.js +54 -0
- package/dist/commonjs/models/components/listapikeysresponse.js.map +1 -0
- package/dist/commonjs/models/components/listdocumentpoliciesresponse.d.ts +1 -1
- package/dist/commonjs/models/components/listdocumentpoliciesresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/listdocumentpoliciesresponse.js +1 -1
- package/dist/commonjs/models/components/listdocumentpoliciesresponse.js.map +1 -1
- package/dist/commonjs/models/components/listdocumentsresponse.d.ts +1 -1
- package/dist/commonjs/models/components/listdocumentsresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/listdocumentsresponse.js +1 -1
- package/dist/commonjs/models/components/listdocumentsresponse.js.map +1 -1
- package/dist/commonjs/models/components/listorganizationsresponse.d.ts +25 -0
- package/dist/commonjs/models/components/listorganizationsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/listorganizationsresponse.js +54 -0
- package/dist/commonjs/models/components/listorganizationsresponse.js.map +1 -0
- package/dist/commonjs/models/components/listversionsresponse.d.ts +1 -1
- package/dist/commonjs/models/components/listversionsresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/listversionsresponse.js +1 -1
- package/dist/commonjs/models/components/listversionsresponse.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +27 -0
- package/dist/commonjs/models/components/organization.d.ts.map +1 -0
- package/dist/commonjs/models/components/organization.js +58 -0
- package/dist/commonjs/models/components/organization.js.map +1 -0
- package/dist/commonjs/models/components/revokeapikeyresponse.d.ts +17 -0
- package/dist/commonjs/models/components/revokeapikeyresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/revokeapikeyresponse.js +56 -0
- package/dist/commonjs/models/components/revokeapikeyresponse.js.map +1 -0
- package/dist/commonjs/models/components/updatedocumentresponse.d.ts +1 -1
- package/dist/commonjs/models/components/updatedocumentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatedocumentresponse.js +1 -2
- package/dist/commonjs/models/components/updatedocumentresponse.js.map +1 -1
- package/dist/commonjs/models/operations/createapikey.d.ts +18 -0
- package/dist/commonjs/models/operations/createapikey.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createapikey.js +61 -0
- package/dist/commonjs/models/operations/createapikey.js.map +1 -0
- package/dist/commonjs/models/operations/createorganization.d.ts +18 -0
- package/dist/commonjs/models/operations/createorganization.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createorganization.js +61 -0
- package/dist/commonjs/models/operations/createorganization.js.map +1 -0
- package/dist/commonjs/models/operations/getorganization.d.ts +34 -0
- package/dist/commonjs/models/operations/getorganization.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getorganization.js +73 -0
- package/dist/commonjs/models/operations/getorganization.js.map +1 -0
- package/dist/commonjs/models/operations/getversion.d.ts +34 -0
- package/dist/commonjs/models/operations/getversion.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{getdocumentversion.js → getversion.js} +10 -12
- package/dist/commonjs/models/operations/getversion.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +8 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +8 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listapikeys.d.ts +54 -0
- package/dist/commonjs/models/operations/listapikeys.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listapikeys.js +79 -0
- package/dist/commonjs/models/operations/listapikeys.js.map +1 -0
- package/dist/commonjs/models/operations/listorganizations.d.ts +36 -0
- package/dist/commonjs/models/operations/listorganizations.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listorganizations.js +75 -0
- package/dist/commonjs/models/operations/listorganizations.js.map +1 -0
- package/dist/commonjs/models/operations/revokeapikey.d.ts +55 -0
- package/dist/commonjs/models/operations/revokeapikey.d.ts.map +1 -0
- package/dist/commonjs/models/operations/revokeapikey.js +82 -0
- package/dist/commonjs/models/operations/revokeapikey.js.map +1 -0
- package/dist/commonjs/models/operations/{updatedocumentversion.d.ts → updateversion.d.ts} +14 -22
- package/dist/commonjs/models/operations/updateversion.d.ts.map +1 -0
- package/dist/commonjs/models/operations/{updatedocumentversion.js → updateversion.js} +14 -16
- package/dist/commonjs/models/operations/updateversion.js.map +1 -0
- package/dist/commonjs/sdk/apikeys.d.ts +27 -0
- package/dist/commonjs/sdk/apikeys.d.ts.map +1 -0
- package/dist/commonjs/sdk/apikeys.js +42 -0
- package/dist/commonjs/sdk/apikeys.js.map +1 -0
- package/dist/commonjs/sdk/organizations.d.ts +27 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -0
- package/dist/commonjs/sdk/organizations.js +42 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/versions.d.ts +2 -2
- package/dist/commonjs/sdk/versions.d.ts.map +1 -1
- package/dist/commonjs/sdk/versions.js +6 -6
- package/dist/commonjs/sdk/versions.js.map +1 -1
- package/dist/esm/funcs/apiKeysCreateAPIKey.d.ts +19 -0
- package/dist/esm/funcs/apiKeysCreateAPIKey.d.ts.map +1 -0
- package/dist/esm/funcs/apiKeysCreateAPIKey.js +86 -0
- package/dist/esm/funcs/apiKeysCreateAPIKey.js.map +1 -0
- package/dist/esm/funcs/apiKeysListAPIKeys.d.ts +18 -0
- package/dist/esm/funcs/apiKeysListAPIKeys.d.ts.map +1 -0
- package/dist/esm/funcs/apiKeysListAPIKeys.js +91 -0
- package/dist/esm/funcs/apiKeysListAPIKeys.js.map +1 -0
- package/dist/esm/funcs/apiKeysRevokeAPIKey.d.ts +18 -0
- package/dist/esm/funcs/apiKeysRevokeAPIKey.d.ts.map +1 -0
- package/dist/esm/funcs/apiKeysRevokeAPIKey.js +91 -0
- package/dist/esm/funcs/apiKeysRevokeAPIKey.js.map +1 -0
- package/dist/esm/funcs/organizationsCreateOrganization.d.ts +19 -0
- package/dist/esm/funcs/organizationsCreateOrganization.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsCreateOrganization.js +86 -0
- package/dist/esm/funcs/organizationsCreateOrganization.js.map +1 -0
- package/dist/esm/funcs/organizationsGetOrganization.d.ts +18 -0
- package/dist/esm/funcs/organizationsGetOrganization.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsGetOrganization.js +90 -0
- package/dist/esm/funcs/organizationsGetOrganization.js.map +1 -0
- package/dist/esm/funcs/organizationsListOrganizations.d.ts +18 -0
- package/dist/esm/funcs/organizationsListOrganizations.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListOrganizations.js +89 -0
- package/dist/esm/funcs/organizationsListOrganizations.js.map +1 -0
- package/dist/esm/funcs/versionsGetVersion.d.ts +18 -0
- package/dist/esm/funcs/versionsGetVersion.d.ts.map +1 -0
- package/dist/esm/funcs/{versionsGet.js → versionsGetVersion.js} +6 -10
- package/dist/esm/funcs/versionsGetVersion.js.map +1 -0
- package/dist/esm/funcs/{versionsGet.d.ts → versionsUpdateVersion.d.ts} +4 -4
- package/dist/esm/funcs/versionsUpdateVersion.d.ts.map +1 -0
- package/dist/esm/funcs/{versionsUpdate.js → versionsUpdateVersion.js} +6 -10
- package/dist/esm/funcs/versionsUpdateVersion.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/sdks.js +2 -2
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/components/apikey.d.ts +56 -0
- package/dist/esm/models/components/apikey.d.ts.map +1 -0
- package/dist/esm/models/components/apikey.js +31 -0
- package/dist/esm/models/components/apikey.js.map +1 -0
- package/dist/esm/models/components/createapikeyrequest.d.ts +37 -0
- package/dist/esm/models/components/createapikeyrequest.d.ts.map +1 -0
- package/dist/esm/models/components/createapikeyrequest.js +20 -0
- package/dist/esm/models/components/createapikeyrequest.js.map +1 -0
- package/dist/esm/models/components/createapikeyresponse.d.ts +29 -0
- package/dist/esm/models/components/createapikeyresponse.d.ts.map +1 -0
- package/dist/esm/models/components/createapikeyresponse.js +21 -0
- package/dist/esm/models/components/createapikeyresponse.js.map +1 -0
- package/dist/esm/models/components/createdocumentresponse.d.ts +1 -1
- package/dist/esm/models/components/createdocumentresponse.d.ts.map +1 -1
- package/dist/esm/models/components/createdocumentresponse.js +1 -2
- package/dist/esm/models/components/createdocumentresponse.js.map +1 -1
- package/dist/esm/models/components/createorganizationrequest.d.ts +28 -0
- package/dist/esm/models/components/createorganizationrequest.d.ts.map +1 -0
- package/dist/esm/models/components/createorganizationrequest.js +18 -0
- package/dist/esm/models/components/createorganizationrequest.js.map +1 -0
- package/dist/esm/models/components/createorganizationresponse.d.ts +17 -0
- package/dist/esm/models/components/createorganizationresponse.d.ts.map +1 -0
- package/dist/esm/models/components/createorganizationresponse.js +14 -0
- package/dist/esm/models/components/createorganizationresponse.js.map +1 -0
- package/dist/esm/models/components/getdocumentresponse.d.ts +1 -1
- package/dist/esm/models/components/getdocumentresponse.d.ts.map +1 -1
- package/dist/esm/models/components/getdocumentresponse.js +1 -2
- package/dist/esm/models/components/getdocumentresponse.js.map +1 -1
- package/dist/esm/models/components/getorganizationresponse.d.ts +17 -0
- package/dist/esm/models/components/getorganizationresponse.d.ts.map +1 -0
- package/dist/esm/models/components/getorganizationresponse.js +14 -0
- package/dist/esm/models/components/getorganizationresponse.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +10 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +10 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/listapikeysresponse.d.ts +25 -0
- package/dist/esm/models/components/listapikeysresponse.d.ts.map +1 -0
- package/dist/esm/models/components/listapikeysresponse.js +17 -0
- package/dist/esm/models/components/listapikeysresponse.js.map +1 -0
- package/dist/esm/models/components/listdocumentpoliciesresponse.d.ts +1 -1
- package/dist/esm/models/components/listdocumentpoliciesresponse.d.ts.map +1 -1
- package/dist/esm/models/components/listdocumentpoliciesresponse.js +1 -1
- package/dist/esm/models/components/listdocumentpoliciesresponse.js.map +1 -1
- package/dist/esm/models/components/listdocumentsresponse.d.ts +1 -1
- package/dist/esm/models/components/listdocumentsresponse.d.ts.map +1 -1
- package/dist/esm/models/components/listdocumentsresponse.js +1 -1
- package/dist/esm/models/components/listdocumentsresponse.js.map +1 -1
- package/dist/esm/models/components/listorganizationsresponse.d.ts +25 -0
- package/dist/esm/models/components/listorganizationsresponse.d.ts.map +1 -0
- package/dist/esm/models/components/listorganizationsresponse.js +17 -0
- package/dist/esm/models/components/listorganizationsresponse.js.map +1 -0
- package/dist/esm/models/components/listversionsresponse.d.ts +1 -1
- package/dist/esm/models/components/listversionsresponse.d.ts.map +1 -1
- package/dist/esm/models/components/listversionsresponse.js +1 -1
- package/dist/esm/models/components/listversionsresponse.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +27 -0
- package/dist/esm/models/components/organization.d.ts.map +1 -0
- package/dist/esm/models/components/organization.js +21 -0
- package/dist/esm/models/components/organization.js.map +1 -0
- package/dist/esm/models/components/revokeapikeyresponse.d.ts +17 -0
- package/dist/esm/models/components/revokeapikeyresponse.d.ts.map +1 -0
- package/dist/esm/models/components/revokeapikeyresponse.js +19 -0
- package/dist/esm/models/components/revokeapikeyresponse.js.map +1 -0
- package/dist/esm/models/components/updatedocumentresponse.d.ts +1 -1
- package/dist/esm/models/components/updatedocumentresponse.d.ts.map +1 -1
- package/dist/esm/models/components/updatedocumentresponse.js +1 -2
- package/dist/esm/models/components/updatedocumentresponse.js.map +1 -1
- package/dist/esm/models/operations/createapikey.d.ts +18 -0
- package/dist/esm/models/operations/createapikey.d.ts.map +1 -0
- package/dist/esm/models/operations/createapikey.js +24 -0
- package/dist/esm/models/operations/createapikey.js.map +1 -0
- package/dist/esm/models/operations/createorganization.d.ts +18 -0
- package/dist/esm/models/operations/createorganization.d.ts.map +1 -0
- package/dist/esm/models/operations/createorganization.js +24 -0
- package/dist/esm/models/operations/createorganization.js.map +1 -0
- package/dist/esm/models/operations/getorganization.d.ts +34 -0
- package/dist/esm/models/operations/getorganization.d.ts.map +1 -0
- package/dist/esm/models/operations/getorganization.js +35 -0
- package/dist/esm/models/operations/getorganization.js.map +1 -0
- package/dist/esm/models/operations/getversion.d.ts +34 -0
- package/dist/esm/models/operations/getversion.d.ts.map +1 -0
- package/dist/esm/models/operations/{getdocumentversion.js → getversion.js} +7 -9
- package/dist/esm/models/operations/getversion.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +8 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +8 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listapikeys.d.ts +54 -0
- package/dist/esm/models/operations/listapikeys.d.ts.map +1 -0
- package/dist/esm/models/operations/listapikeys.js +41 -0
- package/dist/esm/models/operations/listapikeys.js.map +1 -0
- package/dist/esm/models/operations/listorganizations.d.ts +36 -0
- package/dist/esm/models/operations/listorganizations.d.ts.map +1 -0
- package/dist/esm/models/operations/listorganizations.js +37 -0
- package/dist/esm/models/operations/listorganizations.js.map +1 -0
- package/dist/esm/models/operations/revokeapikey.d.ts +55 -0
- package/dist/esm/models/operations/revokeapikey.d.ts.map +1 -0
- package/dist/esm/models/operations/revokeapikey.js +43 -0
- package/dist/esm/models/operations/revokeapikey.js.map +1 -0
- package/dist/esm/models/operations/{updatedocumentversion.d.ts → updateversion.d.ts} +14 -22
- package/dist/esm/models/operations/updateversion.d.ts.map +1 -0
- package/dist/esm/models/operations/{updatedocumentversion.js → updateversion.js} +11 -13
- package/dist/esm/models/operations/updateversion.js.map +1 -0
- package/dist/esm/sdk/apikeys.d.ts +27 -0
- package/dist/esm/sdk/apikeys.d.ts.map +1 -0
- package/dist/esm/sdk/apikeys.js +38 -0
- package/dist/esm/sdk/apikeys.js.map +1 -0
- package/dist/esm/sdk/organizations.d.ts +27 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -0
- package/dist/esm/sdk/organizations.js +38 -0
- package/dist/esm/sdk/organizations.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/versions.d.ts +2 -2
- package/dist/esm/sdk/versions.d.ts.map +1 -1
- package/dist/esm/sdk/versions.js +6 -6
- package/dist/esm/sdk/versions.js.map +1 -1
- package/examples/{documentsList.example.ts → apiKeysListAPIKeys.example.ts} +4 -7
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/openapi.json +830 -219
- package/package.json +1 -1
- package/src/funcs/apiKeysCreateAPIKey.ts +175 -0
- package/src/funcs/apiKeysListAPIKeys.ts +181 -0
- package/src/funcs/apiKeysRevokeAPIKey.ts +181 -0
- package/src/funcs/organizationsCreateOrganization.ts +176 -0
- package/src/funcs/organizationsGetOrganization.ts +182 -0
- package/src/funcs/organizationsListOrganizations.ts +183 -0
- package/src/funcs/{versionsGet.ts → versionsGetVersion.ts} +10 -17
- package/src/funcs/{versionsUpdate.ts → versionsUpdateVersion.ts} +10 -17
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/apikey.ts +94 -0
- package/src/models/components/createapikeyrequest.ts +66 -0
- package/src/models/components/createapikeyresponse.ts +59 -0
- package/src/models/components/createdocumentresponse.ts +2 -3
- package/src/models/components/createorganizationrequest.ts +55 -0
- package/src/models/components/createorganizationresponse.ts +37 -0
- package/src/models/components/getdocumentresponse.ts +2 -3
- package/src/models/components/getorganizationresponse.ts +37 -0
- package/src/models/components/index.ts +10 -0
- package/src/models/components/listapikeysresponse.ts +47 -0
- package/src/models/components/listdocumentpoliciesresponse.ts +2 -2
- package/src/models/components/listdocumentsresponse.ts +2 -2
- package/src/models/components/listorganizationsresponse.ts +47 -0
- package/src/models/components/listversionsresponse.ts +2 -2
- package/src/models/components/organization.ts +56 -0
- package/src/models/components/revokeapikeyresponse.ts +45 -0
- package/src/models/components/updatedocumentresponse.ts +2 -3
- package/src/models/operations/createapikey.ts +51 -0
- package/src/models/operations/createorganization.ts +53 -0
- package/src/models/operations/getorganization.ts +89 -0
- package/src/models/operations/{getdocumentversion.ts → getversion.ts} +16 -26
- package/src/models/operations/index.ts +8 -2
- package/src/models/operations/listapikeys.ts +115 -0
- package/src/models/operations/listorganizations.ts +93 -0
- package/src/models/operations/revokeapikey.ts +128 -0
- package/src/models/operations/{updatedocumentversion.ts → updateversion.ts} +28 -38
- package/src/sdk/apikeys.ts +64 -0
- package/src/sdk/organizations.ts +64 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/versions.ts +10 -10
- package/dist/commonjs/funcs/versionsGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/versionsUpdate.d.ts.map +0 -1
- package/dist/commonjs/funcs/versionsUpdate.js.map +0 -1
- package/dist/commonjs/models/operations/getdocumentversion.d.ts +0 -42
- package/dist/commonjs/models/operations/getdocumentversion.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getdocumentversion.js.map +0 -1
- package/dist/commonjs/models/operations/updatedocumentversion.d.ts.map +0 -1
- package/dist/commonjs/models/operations/updatedocumentversion.js.map +0 -1
- package/dist/esm/funcs/versionsGet.d.ts.map +0 -1
- package/dist/esm/funcs/versionsGet.js.map +0 -1
- package/dist/esm/funcs/versionsUpdate.d.ts.map +0 -1
- package/dist/esm/funcs/versionsUpdate.js.map +0 -1
- package/dist/esm/models/operations/getdocumentversion.d.ts +0 -42
- package/dist/esm/models/operations/getdocumentversion.d.ts.map +0 -1
- package/dist/esm/models/operations/getdocumentversion.js.map +0 -1
- package/dist/esm/models/operations/updatedocumentversion.d.ts.map +0 -1
- package/dist/esm/models/operations/updatedocumentversion.js.map +0 -1
|
@@ -32,13 +32,13 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Update version title and description.
|
|
34
34
|
*/
|
|
35
|
-
export function
|
|
35
|
+
export function versionsUpdateVersion(
|
|
36
36
|
client: FactifyCore,
|
|
37
|
-
request: operations.
|
|
37
|
+
request: operations.UpdateVersionRequest,
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
operations.
|
|
41
|
+
operations.UpdateVersionResponse,
|
|
42
42
|
| errors.ErrorT
|
|
43
43
|
| FactifyError
|
|
44
44
|
| ResponseValidationError
|
|
@@ -59,12 +59,12 @@ export function versionsUpdate(
|
|
|
59
59
|
|
|
60
60
|
async function $do(
|
|
61
61
|
client: FactifyCore,
|
|
62
|
-
request: operations.
|
|
62
|
+
request: operations.UpdateVersionRequest,
|
|
63
63
|
options?: RequestOptions,
|
|
64
64
|
): Promise<
|
|
65
65
|
[
|
|
66
66
|
Result<
|
|
67
|
-
operations.
|
|
67
|
+
operations.UpdateVersionResponse,
|
|
68
68
|
| errors.ErrorT
|
|
69
69
|
| FactifyError
|
|
70
70
|
| ResponseValidationError
|
|
@@ -80,8 +80,7 @@ async function $do(
|
|
|
80
80
|
> {
|
|
81
81
|
const parsed = safeParse(
|
|
82
82
|
request,
|
|
83
|
-
(value) =>
|
|
84
|
-
z.parse(operations.UpdateDocumentVersionRequest$outboundSchema, value),
|
|
83
|
+
(value) => z.parse(operations.UpdateVersionRequest$outboundSchema, value),
|
|
85
84
|
"Input validation failed",
|
|
86
85
|
);
|
|
87
86
|
if (!parsed.ok) {
|
|
@@ -91,19 +90,13 @@ async function $do(
|
|
|
91
90
|
const body = encodeJSON("body", payload.body, { explode: true });
|
|
92
91
|
|
|
93
92
|
const pathParams = {
|
|
94
|
-
document_id: encodeSimple("document_id", payload.document_id, {
|
|
95
|
-
explode: false,
|
|
96
|
-
charEncoding: "percent",
|
|
97
|
-
}),
|
|
98
93
|
version_id: encodeSimple("version_id", payload.version_id, {
|
|
99
94
|
explode: false,
|
|
100
95
|
charEncoding: "percent",
|
|
101
96
|
}),
|
|
102
97
|
};
|
|
103
98
|
|
|
104
|
-
const path = pathToFunc(
|
|
105
|
-
"/v1beta/documents/{document_id}/versions/{version_id}",
|
|
106
|
-
)(pathParams);
|
|
99
|
+
const path = pathToFunc("/v1beta/versions/{version_id}")(pathParams);
|
|
107
100
|
|
|
108
101
|
const headers = new Headers(compactMap({
|
|
109
102
|
"Content-Type": "application/json",
|
|
@@ -117,7 +110,7 @@ async function $do(
|
|
|
117
110
|
const context = {
|
|
118
111
|
options: client._options,
|
|
119
112
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
-
operationID: "
|
|
113
|
+
operationID: "updateVersion",
|
|
121
114
|
oAuth2Scopes: null,
|
|
122
115
|
|
|
123
116
|
resolvedSecurity: requestSecurity,
|
|
@@ -160,7 +153,7 @@ async function $do(
|
|
|
160
153
|
};
|
|
161
154
|
|
|
162
155
|
const [result] = await M.match<
|
|
163
|
-
operations.
|
|
156
|
+
operations.UpdateVersionResponse,
|
|
164
157
|
| errors.ErrorT
|
|
165
158
|
| FactifyError
|
|
166
159
|
| ResponseValidationError
|
|
@@ -171,7 +164,7 @@ async function $do(
|
|
|
171
164
|
| UnexpectedClientError
|
|
172
165
|
| SDKValidationError
|
|
173
166
|
>(
|
|
174
|
-
M.json(200, operations.
|
|
167
|
+
M.json(200, operations.UpdateVersionResponse$inboundSchema, {
|
|
175
168
|
key: "Version",
|
|
176
169
|
}),
|
|
177
170
|
M.jsonErr([400, 401, 403, 404], errors.ErrorT$inboundSchema),
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0.0",
|
|
68
|
-
sdkVersion: "0.3.
|
|
69
|
-
genVersion: "2.
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.3.
|
|
68
|
+
sdkVersion: "0.3.10",
|
|
69
|
+
genVersion: "2.794.1",
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.3.10 2.794.1 1.0.0 @factify/sdk",
|
|
71
71
|
} as const;
|
package/src/lib/sdks.ts
CHANGED
|
@@ -303,9 +303,9 @@ export class ClientSDK {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
const jsonLikeContentTypeRE =
|
|
306
|
+
const jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
|
|
307
307
|
const jsonlLikeContentTypeRE =
|
|
308
|
-
|
|
308
|
+
/^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
|
|
309
309
|
async function logRequest(logger: Logger | undefined, req: Request) {
|
|
310
310
|
if (!logger) {
|
|
311
311
|
return;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
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 * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* ApiKey represents an authentication credential for programmatic API access.
|
|
14
|
+
*/
|
|
15
|
+
export type ApiKey = {
|
|
16
|
+
/**
|
|
17
|
+
* Timestamp when the key was created.
|
|
18
|
+
*/
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
/**
|
|
21
|
+
* Expiration timestamp. If set, the key becomes invalid after this time.
|
|
22
|
+
*/
|
|
23
|
+
expiresAt?: Date | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Unique ID for the API key.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* Pattern: key_[0-9a-hjkmnp-tv-z]{26}
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the key is currently active (not revoked and not expired).
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Computed: is_active = (revoked_at == null) && (expires_at == null || expires_at > now())
|
|
36
|
+
*/
|
|
37
|
+
isActive: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Truncated key prefix for identification in UI (e.g., "ffy_prod_01jd4h5...").
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* Shows the first 16 characters for better uniqueness while maintaining security.
|
|
43
|
+
*/
|
|
44
|
+
keyPrefix: string;
|
|
45
|
+
/**
|
|
46
|
+
* Human-readable name for the key (e.g., "Production", "Staging").
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
* ID of the organization this key belongs to.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Pattern: org_[0-9a-hjkmnp-tv-z]{26}
|
|
54
|
+
*/
|
|
55
|
+
organizationId: string;
|
|
56
|
+
/**
|
|
57
|
+
* Timestamp when the key was revoked. Null if the key has not been revoked.
|
|
58
|
+
*/
|
|
59
|
+
revokedAt?: Date | undefined;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const ApiKey$inboundSchema: z.ZodMiniType<ApiKey, unknown> = z.pipe(
|
|
64
|
+
z.object({
|
|
65
|
+
created_at: types.date(),
|
|
66
|
+
expires_at: types.optional(types.date()),
|
|
67
|
+
id: types.string(),
|
|
68
|
+
is_active: types.boolean(),
|
|
69
|
+
key_prefix: types.string(),
|
|
70
|
+
name: types.string(),
|
|
71
|
+
organization_id: types.string(),
|
|
72
|
+
revoked_at: types.optional(types.date()),
|
|
73
|
+
}),
|
|
74
|
+
z.transform((v) => {
|
|
75
|
+
return remap$(v, {
|
|
76
|
+
"created_at": "createdAt",
|
|
77
|
+
"expires_at": "expiresAt",
|
|
78
|
+
"is_active": "isActive",
|
|
79
|
+
"key_prefix": "keyPrefix",
|
|
80
|
+
"organization_id": "organizationId",
|
|
81
|
+
"revoked_at": "revokedAt",
|
|
82
|
+
});
|
|
83
|
+
}),
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
export function apiKeyFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<ApiKey, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => ApiKey$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'ApiKey' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* CreateApiKeyRequest contains the data needed to create a new API key.
|
|
10
|
+
*/
|
|
11
|
+
export type CreateApiKeyRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* Expiration timestamp. If not set, the key does not expire.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* When set, must be in the future and within 1 year.
|
|
17
|
+
* Security note: Keys without expiration should be rotated periodically.
|
|
18
|
+
* timestamp.gt_now = true
|
|
19
|
+
* timestamp.within = 8760h0m0s
|
|
20
|
+
*/
|
|
21
|
+
expiresAt?: Date | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Human-readable name for the key (e.g., "Production", "Staging").
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* Organization ID to create the key for.
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Pattern: org_[0-9a-hjkmnp-tv-z]{26}
|
|
31
|
+
*/
|
|
32
|
+
organizationId: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type CreateApiKeyRequest$Outbound = {
|
|
37
|
+
expires_at?: string | undefined;
|
|
38
|
+
name: string;
|
|
39
|
+
organization_id: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const CreateApiKeyRequest$outboundSchema: z.ZodMiniType<
|
|
44
|
+
CreateApiKeyRequest$Outbound,
|
|
45
|
+
CreateApiKeyRequest
|
|
46
|
+
> = z.pipe(
|
|
47
|
+
z.object({
|
|
48
|
+
expiresAt: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
49
|
+
name: z.string(),
|
|
50
|
+
organizationId: z.string(),
|
|
51
|
+
}),
|
|
52
|
+
z.transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
expiresAt: "expires_at",
|
|
55
|
+
organizationId: "organization_id",
|
|
56
|
+
});
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
export function createApiKeyRequestToJSON(
|
|
61
|
+
createApiKeyRequest: CreateApiKeyRequest,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
CreateApiKeyRequest$outboundSchema.parse(createApiKeyRequest),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
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 * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import { ApiKey, ApiKey$inboundSchema } from "./apikey.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* CreateApiKeyResponse contains the newly created API key and its secret.
|
|
15
|
+
*/
|
|
16
|
+
export type CreateApiKeyResponse = {
|
|
17
|
+
/**
|
|
18
|
+
* ApiKey represents an authentication credential for programmatic API access.
|
|
19
|
+
*/
|
|
20
|
+
apiKey: ApiKey;
|
|
21
|
+
/**
|
|
22
|
+
* The API key secret. This is only returned once and cannot be retrieved later.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Format: ffy_{env}_{base32_uuid7}{base62_random}
|
|
26
|
+
* - env: "prod" or "test"
|
|
27
|
+
* - base32_uuid7: 26 chars (TypeID base32 alphabet: 0-9a-hjkmnp-tv-z)
|
|
28
|
+
* - base62_random: 43 chars (0-9A-Za-z)
|
|
29
|
+
* Store this value securely - it will not be shown again.
|
|
30
|
+
* SECURITY WARNING: This field must NEVER be logged. Handlers must redact secrets from all logs.
|
|
31
|
+
*/
|
|
32
|
+
secret: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const CreateApiKeyResponse$inboundSchema: z.ZodMiniType<
|
|
37
|
+
CreateApiKeyResponse,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.pipe(
|
|
40
|
+
z.object({
|
|
41
|
+
api_key: ApiKey$inboundSchema,
|
|
42
|
+
secret: types.string(),
|
|
43
|
+
}),
|
|
44
|
+
z.transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"api_key": "apiKey",
|
|
47
|
+
});
|
|
48
|
+
}),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export function createApiKeyResponseFromJSON(
|
|
52
|
+
jsonString: string,
|
|
53
|
+
): SafeParseResult<CreateApiKeyResponse, SDKValidationError> {
|
|
54
|
+
return safeParse(
|
|
55
|
+
jsonString,
|
|
56
|
+
(x) => CreateApiKeyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
57
|
+
`Failed to parse 'CreateApiKeyResponse' from JSON`,
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import * as types from "../../types/primitives.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import { Document, Document$inboundSchema } from "./document.js";
|
|
11
10
|
|
|
@@ -16,7 +15,7 @@ export type CreateDocumentResponse = {
|
|
|
16
15
|
/**
|
|
17
16
|
* Document represents a Factify document.
|
|
18
17
|
*/
|
|
19
|
-
document
|
|
18
|
+
document: Document;
|
|
20
19
|
};
|
|
21
20
|
|
|
22
21
|
/** @internal */
|
|
@@ -24,7 +23,7 @@ export const CreateDocumentResponse$inboundSchema: z.ZodMiniType<
|
|
|
24
23
|
CreateDocumentResponse,
|
|
25
24
|
unknown
|
|
26
25
|
> = z.object({
|
|
27
|
-
document:
|
|
26
|
+
document: Document$inboundSchema,
|
|
28
27
|
});
|
|
29
28
|
|
|
30
29
|
export function createDocumentResponseFromJSON(
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* CreateOrganizationRequest contains the data needed to create a new organization.
|
|
10
|
+
*/
|
|
11
|
+
export type CreateOrganizationRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* Human-readable organization name.
|
|
14
|
+
*/
|
|
15
|
+
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Owner user ID. If not provided, the authenticated user becomes the owner.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Authorization: Specifying a different user requires system maintainer role.
|
|
21
|
+
* Required when the caller is a service account (service accounts cannot own organizations).
|
|
22
|
+
* Pattern: user_[0-9a-hjkmnp-tv-z]{26}
|
|
23
|
+
*/
|
|
24
|
+
ownerUserId?: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type CreateOrganizationRequest$Outbound = {
|
|
29
|
+
name: string;
|
|
30
|
+
owner_user_id?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const CreateOrganizationRequest$outboundSchema: z.ZodMiniType<
|
|
35
|
+
CreateOrganizationRequest$Outbound,
|
|
36
|
+
CreateOrganizationRequest
|
|
37
|
+
> = z.pipe(
|
|
38
|
+
z.object({
|
|
39
|
+
name: z.string(),
|
|
40
|
+
ownerUserId: z.optional(z.string()),
|
|
41
|
+
}),
|
|
42
|
+
z.transform((v) => {
|
|
43
|
+
return remap$(v, {
|
|
44
|
+
ownerUserId: "owner_user_id",
|
|
45
|
+
});
|
|
46
|
+
}),
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export function createOrganizationRequestToJSON(
|
|
50
|
+
createOrganizationRequest: CreateOrganizationRequest,
|
|
51
|
+
): string {
|
|
52
|
+
return JSON.stringify(
|
|
53
|
+
CreateOrganizationRequest$outboundSchema.parse(createOrganizationRequest),
|
|
54
|
+
);
|
|
55
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Organization, Organization$inboundSchema } from "./organization.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* CreateOrganizationResponse contains the newly created organization.
|
|
13
|
+
*/
|
|
14
|
+
export type CreateOrganizationResponse = {
|
|
15
|
+
/**
|
|
16
|
+
* Organization represents a Factify organization.
|
|
17
|
+
*/
|
|
18
|
+
organization: Organization;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const CreateOrganizationResponse$inboundSchema: z.ZodMiniType<
|
|
23
|
+
CreateOrganizationResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
organization: Organization$inboundSchema,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function createOrganizationResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<CreateOrganizationResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => CreateOrganizationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'CreateOrganizationResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import * as types from "../../types/primitives.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import { Document, Document$inboundSchema } from "./document.js";
|
|
11
10
|
|
|
@@ -16,7 +15,7 @@ export type GetDocumentResponse = {
|
|
|
16
15
|
/**
|
|
17
16
|
* Document represents a Factify document.
|
|
18
17
|
*/
|
|
19
|
-
document
|
|
18
|
+
document: Document;
|
|
20
19
|
};
|
|
21
20
|
|
|
22
21
|
/** @internal */
|
|
@@ -24,7 +23,7 @@ export const GetDocumentResponse$inboundSchema: z.ZodMiniType<
|
|
|
24
23
|
GetDocumentResponse,
|
|
25
24
|
unknown
|
|
26
25
|
> = z.object({
|
|
27
|
-
document:
|
|
26
|
+
document: Document$inboundSchema,
|
|
28
27
|
});
|
|
29
28
|
|
|
30
29
|
export function getDocumentResponseFromJSON(
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import { Organization, Organization$inboundSchema } from "./organization.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* GetOrganizationResponse contains the requested organization.
|
|
13
|
+
*/
|
|
14
|
+
export type GetOrganizationResponse = {
|
|
15
|
+
/**
|
|
16
|
+
* Organization represents a Factify organization.
|
|
17
|
+
*/
|
|
18
|
+
organization: Organization;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const GetOrganizationResponse$inboundSchema: z.ZodMiniType<
|
|
23
|
+
GetOrganizationResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
organization: Organization$inboundSchema,
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function getOrganizationResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<GetOrganizationResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => GetOrganizationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'GetOrganizationResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./accesslevel.js";
|
|
6
|
+
export * from "./apikey.js";
|
|
7
|
+
export * from "./createapikeyrequest.js";
|
|
8
|
+
export * from "./createapikeyresponse.js";
|
|
6
9
|
export * from "./createdocumentrequest.js";
|
|
7
10
|
export * from "./createdocumentresponse.js";
|
|
11
|
+
export * from "./createorganizationrequest.js";
|
|
12
|
+
export * from "./createorganizationresponse.js";
|
|
8
13
|
export * from "./createversionrequest.js";
|
|
9
14
|
export * from "./document.js";
|
|
10
15
|
export * from "./documentpolicy.js";
|
|
@@ -12,13 +17,18 @@ export * from "./empty.js";
|
|
|
12
17
|
export * from "./error.js";
|
|
13
18
|
export * from "./generateentrypageresponse.js";
|
|
14
19
|
export * from "./getdocumentresponse.js";
|
|
20
|
+
export * from "./getorganizationresponse.js";
|
|
15
21
|
export * from "./httpmetadata.js";
|
|
22
|
+
export * from "./listapikeysresponse.js";
|
|
16
23
|
export * from "./listdocumentpoliciesresponse.js";
|
|
17
24
|
export * from "./listdocumentsresponse.js";
|
|
25
|
+
export * from "./listorganizationsresponse.js";
|
|
18
26
|
export * from "./listversionsresponse.js";
|
|
27
|
+
export * from "./organization.js";
|
|
19
28
|
export * from "./pagination.js";
|
|
20
29
|
export * from "./policy.js";
|
|
21
30
|
export * from "./processingstatus.js";
|
|
31
|
+
export * from "./revokeapikeyresponse.js";
|
|
22
32
|
export * from "./security.js";
|
|
23
33
|
export * from "./updatedocumentresponse.js";
|
|
24
34
|
export * from "./user.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { ApiKey, ApiKey$inboundSchema } from "./apikey.js";
|
|
11
|
+
import { Pagination, Pagination$inboundSchema } from "./pagination.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* ListApiKeysResponse contains a page of API keys.
|
|
15
|
+
*/
|
|
16
|
+
export type ListApiKeysResponse = {
|
|
17
|
+
/**
|
|
18
|
+
* List of API keys (secrets are never included).
|
|
19
|
+
*/
|
|
20
|
+
items?: Array<ApiKey> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Pagination contains cursor-based pagination metadata.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Follows Google AIP-158 for pagination field naming.
|
|
26
|
+
*/
|
|
27
|
+
pagination: Pagination;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ListApiKeysResponse$inboundSchema: z.ZodMiniType<
|
|
32
|
+
ListApiKeysResponse,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
items: types.optional(z.array(ApiKey$inboundSchema)),
|
|
36
|
+
pagination: Pagination$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function listApiKeysResponseFromJSON(
|
|
40
|
+
jsonString: string,
|
|
41
|
+
): SafeParseResult<ListApiKeysResponse, SDKValidationError> {
|
|
42
|
+
return safeParse(
|
|
43
|
+
jsonString,
|
|
44
|
+
(x) => ListApiKeysResponse$inboundSchema.parse(JSON.parse(x)),
|
|
45
|
+
`Failed to parse 'ListApiKeysResponse' from JSON`,
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -27,7 +27,7 @@ export type ListDocumentPoliciesResponse = {
|
|
|
27
27
|
* @remarks
|
|
28
28
|
* Follows Google AIP-158 for pagination field naming.
|
|
29
29
|
*/
|
|
30
|
-
pagination
|
|
30
|
+
pagination: Pagination;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
@@ -36,7 +36,7 @@ export const ListDocumentPoliciesResponse$inboundSchema: z.ZodMiniType<
|
|
|
36
36
|
unknown
|
|
37
37
|
> = z.object({
|
|
38
38
|
items: types.optional(z.array(DocumentPolicy$inboundSchema)),
|
|
39
|
-
pagination:
|
|
39
|
+
pagination: Pagination$inboundSchema,
|
|
40
40
|
});
|
|
41
41
|
|
|
42
42
|
export function listDocumentPoliciesResponseFromJSON(
|
|
@@ -24,7 +24,7 @@ export type ListDocumentsResponse = {
|
|
|
24
24
|
* @remarks
|
|
25
25
|
* Follows Google AIP-158 for pagination field naming.
|
|
26
26
|
*/
|
|
27
|
-
pagination
|
|
27
|
+
pagination: Pagination;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
@@ -33,7 +33,7 @@ export const ListDocumentsResponse$inboundSchema: z.ZodMiniType<
|
|
|
33
33
|
unknown
|
|
34
34
|
> = z.object({
|
|
35
35
|
items: types.optional(z.array(Document$inboundSchema)),
|
|
36
|
-
pagination:
|
|
36
|
+
pagination: Pagination$inboundSchema,
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
export function listDocumentsResponseFromJSON(
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { Organization, Organization$inboundSchema } from "./organization.js";
|
|
11
|
+
import { Pagination, Pagination$inboundSchema } from "./pagination.js";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* ListOrganizationsResponse contains a page of organizations.
|
|
15
|
+
*/
|
|
16
|
+
export type ListOrganizationsResponse = {
|
|
17
|
+
/**
|
|
18
|
+
* List of organizations.
|
|
19
|
+
*/
|
|
20
|
+
items?: Array<Organization> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Pagination contains cursor-based pagination metadata.
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* Follows Google AIP-158 for pagination field naming.
|
|
26
|
+
*/
|
|
27
|
+
pagination: Pagination;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ListOrganizationsResponse$inboundSchema: z.ZodMiniType<
|
|
32
|
+
ListOrganizationsResponse,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
items: types.optional(z.array(Organization$inboundSchema)),
|
|
36
|
+
pagination: Pagination$inboundSchema,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function listOrganizationsResponseFromJSON(
|
|
40
|
+
jsonString: string,
|
|
41
|
+
): SafeParseResult<ListOrganizationsResponse, SDKValidationError> {
|
|
42
|
+
return safeParse(
|
|
43
|
+
jsonString,
|
|
44
|
+
(x) => ListOrganizationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
45
|
+
`Failed to parse 'ListOrganizationsResponse' from JSON`,
|
|
46
|
+
);
|
|
47
|
+
}
|