@foru-ms/sdk 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/BaseClient.d.ts +4 -0
- package/dist/cjs/BaseClient.js +3 -2
- package/dist/cjs/Client.d.ts +4 -1
- package/dist/cjs/Client.js +22 -17
- package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/auth/client/Client.js +46 -36
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/integrations/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/integrations/client/Client.js +46 -36
- package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/notifications/client/Client.js +46 -36
- package/dist/cjs/api/resources/posts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/posts/client/Client.js +109 -85
- package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/privateMessages/client/Client.js +82 -64
- package/dist/cjs/api/resources/provisioning/client/Client.d.ts +359 -0
- package/dist/cjs/api/resources/provisioning/client/Client.js +1291 -0
- package/dist/cjs/api/resources/provisioning/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/provisioning/client/index.js +17 -0
- package/dist/cjs/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.d.ts +13 -0
- package/dist/cjs/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/CreateInstance.d.ts +13 -0
- package/dist/cjs/api/resources/provisioning/client/requests/CreateInstance.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.d.ts +15 -0
- package/dist/cjs/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/DeleteInstance.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/client/requests/DeleteInstance.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.d.ts +11 -0
- package/dist/cjs/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.d.ts +9 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.d.ts +29 -0
- package/dist/cjs/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.js +17 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListProvisioningRequest.d.ts +8 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.d.ts +9 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.d.ts +11 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.d.ts +11 -0
- package/dist/cjs/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpdateInstance.d.ts +14 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpdateInstance.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.d.ts +15 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.js +3 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpgradeInstance.d.ts +26 -0
- package/dist/cjs/api/resources/provisioning/client/requests/UpgradeInstance.js +13 -0
- package/dist/cjs/api/resources/provisioning/client/requests/index.d.ts +19 -0
- package/dist/cjs/api/resources/provisioning/client/requests/index.js +7 -0
- package/dist/cjs/api/resources/provisioning/index.d.ts +2 -0
- package/dist/cjs/api/resources/provisioning/index.js +18 -0
- package/dist/cjs/api/resources/provisioning/types/AddDomainProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/AddDomainProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/ChangePlanProvisioningResponse.d.ts +19 -0
- package/dist/cjs/api/resources/provisioning/types/ChangePlanProvisioningResponse.js +14 -0
- package/dist/cjs/api/resources/provisioning/types/CreateProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/CreateProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/CreateWebhookProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/CreateWebhookProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/DeleteProvisioningResponse.d.ts +8 -0
- package/dist/cjs/api/resources/provisioning/types/DeleteProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/DeleteWebhookProvisioningResponse.d.ts +8 -0
- package/dist/cjs/api/resources/provisioning/types/DeleteWebhookProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/ExportDataProvisioningResponse.d.ts +17 -0
- package/dist/cjs/api/resources/provisioning/types/ExportDataProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/GetBillingProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/GetBillingProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/GetUsageProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/GetUsageProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/InviteTeamProvisioningResponse.d.ts +8 -0
- package/dist/cjs/api/resources/provisioning/types/InviteTeamProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/ListDomainsProvisioningResponse.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/types/ListDomainsProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/ListProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/ListProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/ListTeamProvisioningResponse.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/types/ListTeamProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/ListWebhooksProvisioningResponse.d.ts +10 -0
- package/dist/cjs/api/resources/provisioning/types/ListWebhooksProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/RegenerateApiKeyProvisioningResponse.d.ts +9 -0
- package/dist/cjs/api/resources/provisioning/types/RegenerateApiKeyProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/RemoveDomainProvisioningResponse.d.ts +8 -0
- package/dist/cjs/api/resources/provisioning/types/RemoveDomainProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/RemoveTeamMemberProvisioningResponse.d.ts +8 -0
- package/dist/cjs/api/resources/provisioning/types/RemoveTeamMemberProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/UpdateProvisioningResponse.d.ts +9 -0
- package/dist/cjs/api/resources/provisioning/types/UpdateProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/UpdateWebhookProvisioningResponse.d.ts +4 -0
- package/dist/cjs/api/resources/provisioning/types/UpdateWebhookProvisioningResponse.js +3 -0
- package/dist/cjs/api/resources/provisioning/types/index.d.ts +19 -0
- package/dist/cjs/api/resources/provisioning/types/index.js +35 -0
- package/dist/cjs/api/resources/reports/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/reports/client/Client.js +46 -36
- package/dist/cjs/api/resources/roles/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/roles/client/Client.js +46 -36
- package/dist/cjs/api/resources/search/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/search/client/Client.js +10 -8
- package/dist/cjs/api/resources/ssOs/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/ssOs/client/Client.js +46 -36
- package/dist/cjs/api/resources/tags/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/tags/client/Client.js +73 -57
- package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/threads/client/Client.js +163 -127
- package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/Client.js +100 -78
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +73 -57
- package/dist/cjs/api/types/BillingInfo.d.ts +17 -0
- package/dist/cjs/api/types/BillingInfo.js +13 -0
- package/dist/cjs/api/types/Instance.d.ts +7 -0
- package/dist/cjs/api/types/Instance.js +3 -0
- package/dist/cjs/api/types/InstanceDomain.d.ts +6 -0
- package/dist/cjs/api/types/InstanceDomain.js +3 -0
- package/dist/cjs/api/types/InstanceList.d.ts +14 -0
- package/dist/cjs/api/types/InstanceList.js +3 -0
- package/dist/cjs/api/types/InstanceWebhook.d.ts +8 -0
- package/dist/cjs/api/types/InstanceWebhook.js +3 -0
- package/dist/cjs/api/types/TeamMember.d.ts +21 -0
- package/dist/cjs/api/types/TeamMember.js +16 -0
- package/dist/cjs/api/types/UsageStats.d.ts +10 -0
- package/dist/cjs/api/types/UsageStats.js +3 -0
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +7 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +4 -0
- package/dist/esm/BaseClient.mjs +3 -2
- package/dist/esm/Client.d.mts +4 -1
- package/dist/esm/Client.mjs +6 -1
- package/dist/esm/api/resources/auth/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/auth/client/Client.mjs +47 -37
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/integrations/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/integrations/client/Client.mjs +47 -37
- package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/notifications/client/Client.mjs +47 -37
- package/dist/esm/api/resources/posts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/posts/client/Client.mjs +110 -86
- package/dist/esm/api/resources/privateMessages/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/privateMessages/client/Client.mjs +83 -65
- package/dist/esm/api/resources/provisioning/client/Client.d.mts +359 -0
- package/dist/esm/api/resources/provisioning/client/Client.mjs +1254 -0
- package/dist/esm/api/resources/provisioning/client/index.d.mts +1 -0
- package/dist/esm/api/resources/provisioning/client/index.mjs +1 -0
- package/dist/esm/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.d.mts +13 -0
- package/dist/esm/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/CreateInstance.d.mts +13 -0
- package/dist/esm/api/resources/provisioning/client/requests/CreateInstance.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.d.mts +15 -0
- package/dist/esm/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/DeleteInstance.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/client/requests/DeleteInstance.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.d.mts +11 -0
- package/dist/esm/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.d.mts +9 -0
- package/dist/esm/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.d.mts +29 -0
- package/dist/esm/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.mjs +14 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListProvisioningRequest.d.mts +8 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.d.mts +9 -0
- package/dist/esm/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.d.mts +11 -0
- package/dist/esm/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.d.mts +11 -0
- package/dist/esm/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpdateInstance.d.mts +14 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpdateInstance.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.d.mts +15 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.mjs +2 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpgradeInstance.d.mts +26 -0
- package/dist/esm/api/resources/provisioning/client/requests/UpgradeInstance.mjs +10 -0
- package/dist/esm/api/resources/provisioning/client/requests/index.d.mts +19 -0
- package/dist/esm/api/resources/provisioning/client/requests/index.mjs +2 -0
- package/dist/esm/api/resources/provisioning/index.d.mts +2 -0
- package/dist/esm/api/resources/provisioning/index.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/AddDomainProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/AddDomainProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/ChangePlanProvisioningResponse.d.mts +19 -0
- package/dist/esm/api/resources/provisioning/types/ChangePlanProvisioningResponse.mjs +11 -0
- package/dist/esm/api/resources/provisioning/types/CreateProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/CreateProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/CreateWebhookProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/CreateWebhookProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/DeleteProvisioningResponse.d.mts +8 -0
- package/dist/esm/api/resources/provisioning/types/DeleteProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/DeleteWebhookProvisioningResponse.d.mts +8 -0
- package/dist/esm/api/resources/provisioning/types/DeleteWebhookProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/ExportDataProvisioningResponse.d.mts +17 -0
- package/dist/esm/api/resources/provisioning/types/ExportDataProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/GetBillingProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/GetBillingProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/GetUsageProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/GetUsageProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/InviteTeamProvisioningResponse.d.mts +8 -0
- package/dist/esm/api/resources/provisioning/types/InviteTeamProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/ListDomainsProvisioningResponse.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/types/ListDomainsProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/ListProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/ListProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/ListTeamProvisioningResponse.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/types/ListTeamProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/ListWebhooksProvisioningResponse.d.mts +10 -0
- package/dist/esm/api/resources/provisioning/types/ListWebhooksProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/RegenerateApiKeyProvisioningResponse.d.mts +9 -0
- package/dist/esm/api/resources/provisioning/types/RegenerateApiKeyProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/RemoveDomainProvisioningResponse.d.mts +8 -0
- package/dist/esm/api/resources/provisioning/types/RemoveDomainProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/RemoveTeamMemberProvisioningResponse.d.mts +8 -0
- package/dist/esm/api/resources/provisioning/types/RemoveTeamMemberProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/UpdateProvisioningResponse.d.mts +9 -0
- package/dist/esm/api/resources/provisioning/types/UpdateProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/UpdateWebhookProvisioningResponse.d.mts +4 -0
- package/dist/esm/api/resources/provisioning/types/UpdateWebhookProvisioningResponse.mjs +2 -0
- package/dist/esm/api/resources/provisioning/types/index.d.mts +19 -0
- package/dist/esm/api/resources/provisioning/types/index.mjs +19 -0
- package/dist/esm/api/resources/reports/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/reports/client/Client.mjs +47 -37
- package/dist/esm/api/resources/roles/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/roles/client/Client.mjs +47 -37
- package/dist/esm/api/resources/search/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/search/client/Client.mjs +11 -9
- package/dist/esm/api/resources/ssOs/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/ssOs/client/Client.mjs +47 -37
- package/dist/esm/api/resources/tags/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/tags/client/Client.mjs +74 -58
- package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/threads/client/Client.mjs +164 -128
- package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/users/client/Client.mjs +101 -79
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +74 -58
- package/dist/esm/api/types/BillingInfo.d.mts +17 -0
- package/dist/esm/api/types/BillingInfo.mjs +10 -0
- package/dist/esm/api/types/Instance.d.mts +7 -0
- package/dist/esm/api/types/Instance.mjs +2 -0
- package/dist/esm/api/types/InstanceDomain.d.mts +6 -0
- package/dist/esm/api/types/InstanceDomain.mjs +2 -0
- package/dist/esm/api/types/InstanceList.d.mts +14 -0
- package/dist/esm/api/types/InstanceList.mjs +2 -0
- package/dist/esm/api/types/InstanceWebhook.d.mts +8 -0
- package/dist/esm/api/types/InstanceWebhook.mjs +2 -0
- package/dist/esm/api/types/TeamMember.d.mts +21 -0
- package/dist/esm/api/types/TeamMember.mjs +13 -0
- package/dist/esm/api/types/UsageStats.d.mts +10 -0
- package/dist/esm/api/types/UsageStats.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1246 -0
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ Instantiate and use the client with the following:
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { ForumClient } from "@foru-ms/sdk";
|
|
48
48
|
|
|
49
|
-
const client = new ForumClient({ apiKey: "YOUR_API_KEY" });
|
|
49
|
+
const client = new ForumClient({ apiKey: "YOUR_API_KEY", provisioningKey: "YOUR_PROVISIONING_KEY" });
|
|
50
50
|
await client.auth.register({
|
|
51
51
|
username: "username",
|
|
52
52
|
email: "email",
|
package/dist/cjs/BaseClient.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export type BaseClientOptions = {
|
|
|
5
5
|
environment?: core.Supplier<environments.ForumEnvironment | string>;
|
|
6
6
|
/** Specify a custom URL to connect the client to. */
|
|
7
7
|
baseUrl?: core.Supplier<string>;
|
|
8
|
+
/** Override the x-provisioning-key header */
|
|
9
|
+
provisioningKey: core.Supplier<string>;
|
|
8
10
|
/** Additional headers to include in requests. */
|
|
9
11
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
10
12
|
/** The default maximum time to wait for a response in seconds. */
|
|
@@ -24,6 +26,8 @@ export interface BaseRequestOptions {
|
|
|
24
26
|
maxRetries?: number;
|
|
25
27
|
/** A hook to abort the request. */
|
|
26
28
|
abortSignal?: AbortSignal;
|
|
29
|
+
/** Override the x-provisioning-key header */
|
|
30
|
+
provisioningKey?: string;
|
|
27
31
|
/** Additional query string parameters to include in the request. */
|
|
28
32
|
queryParams?: Record<string, unknown>;
|
|
29
33
|
/** Additional headers to include in the request. */
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,10 +43,11 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@foru-ms/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "2.1.
|
|
47
|
-
"User-Agent": "@foru-ms/sdk/2.1.
|
|
46
|
+
"X-Fern-SDK-Version": "2.1.4",
|
|
47
|
+
"User-Agent": "@foru-ms/sdk/2.1.4",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
|
+
"x-provisioning-key": options === null || options === void 0 ? void 0 : options.provisioningKey,
|
|
50
51
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
51
52
|
return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
|
|
52
53
|
}
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { IntegrationsClient } from "./api/resources/integrations/client/Client.j
|
|
|
3
3
|
import { NotificationsClient } from "./api/resources/notifications/client/Client.js";
|
|
4
4
|
import { PostsClient } from "./api/resources/posts/client/Client.js";
|
|
5
5
|
import { PrivateMessagesClient } from "./api/resources/privateMessages/client/Client.js";
|
|
6
|
+
import { ProvisioningClient } from "./api/resources/provisioning/client/Client.js";
|
|
6
7
|
import { ReportsClient } from "./api/resources/reports/client/Client.js";
|
|
7
8
|
import { RolesClient } from "./api/resources/roles/client/Client.js";
|
|
8
9
|
import { SearchClient } from "./api/resources/search/client/Client.js";
|
|
@@ -33,7 +34,8 @@ export declare class ForumClient {
|
|
|
33
34
|
protected _webhooks: WebhooksClient | undefined;
|
|
34
35
|
protected _integrations: IntegrationsClient | undefined;
|
|
35
36
|
protected _ssOs: SsOsClient | undefined;
|
|
36
|
-
|
|
37
|
+
protected _provisioning: ProvisioningClient | undefined;
|
|
38
|
+
constructor(options: ForumClient.Options);
|
|
37
39
|
get auth(): AuthClient;
|
|
38
40
|
get search(): SearchClient;
|
|
39
41
|
get tags(): TagsClient;
|
|
@@ -47,4 +49,5 @@ export declare class ForumClient {
|
|
|
47
49
|
get webhooks(): WebhooksClient;
|
|
48
50
|
get integrations(): IntegrationsClient;
|
|
49
51
|
get ssOs(): SsOsClient;
|
|
52
|
+
get provisioning(): ProvisioningClient;
|
|
50
53
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -7,17 +7,18 @@ const Client_js_2 = require("./api/resources/integrations/client/Client.js");
|
|
|
7
7
|
const Client_js_3 = require("./api/resources/notifications/client/Client.js");
|
|
8
8
|
const Client_js_4 = require("./api/resources/posts/client/Client.js");
|
|
9
9
|
const Client_js_5 = require("./api/resources/privateMessages/client/Client.js");
|
|
10
|
-
const Client_js_6 = require("./api/resources/
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
16
|
-
const Client_js_12 = require("./api/resources/
|
|
17
|
-
const Client_js_13 = require("./api/resources/
|
|
10
|
+
const Client_js_6 = require("./api/resources/provisioning/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/reports/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/roles/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/search/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/ssOs/client/Client.js");
|
|
15
|
+
const Client_js_11 = require("./api/resources/tags/client/Client.js");
|
|
16
|
+
const Client_js_12 = require("./api/resources/threads/client/Client.js");
|
|
17
|
+
const Client_js_13 = require("./api/resources/users/client/Client.js");
|
|
18
|
+
const Client_js_14 = require("./api/resources/webhooks/client/Client.js");
|
|
18
19
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
19
20
|
class ForumClient {
|
|
20
|
-
constructor(options
|
|
21
|
+
constructor(options) {
|
|
21
22
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
22
23
|
}
|
|
23
24
|
get auth() {
|
|
@@ -26,15 +27,15 @@ class ForumClient {
|
|
|
26
27
|
}
|
|
27
28
|
get search() {
|
|
28
29
|
var _a;
|
|
29
|
-
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new
|
|
30
|
+
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_js_9.SearchClient(this._options)));
|
|
30
31
|
}
|
|
31
32
|
get tags() {
|
|
32
33
|
var _a;
|
|
33
|
-
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new
|
|
34
|
+
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_11.TagsClient(this._options)));
|
|
34
35
|
}
|
|
35
36
|
get threads() {
|
|
36
37
|
var _a;
|
|
37
|
-
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new
|
|
38
|
+
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_12.ThreadsClient(this._options)));
|
|
38
39
|
}
|
|
39
40
|
get posts() {
|
|
40
41
|
var _a;
|
|
@@ -46,15 +47,15 @@ class ForumClient {
|
|
|
46
47
|
}
|
|
47
48
|
get users() {
|
|
48
49
|
var _a;
|
|
49
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
50
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_13.UsersClient(this._options)));
|
|
50
51
|
}
|
|
51
52
|
get roles() {
|
|
52
53
|
var _a;
|
|
53
|
-
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new
|
|
54
|
+
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_8.RolesClient(this._options)));
|
|
54
55
|
}
|
|
55
56
|
get reports() {
|
|
56
57
|
var _a;
|
|
57
|
-
return ((_a = this._reports) !== null && _a !== void 0 ? _a : (this._reports = new
|
|
58
|
+
return ((_a = this._reports) !== null && _a !== void 0 ? _a : (this._reports = new Client_js_7.ReportsClient(this._options)));
|
|
58
59
|
}
|
|
59
60
|
get notifications() {
|
|
60
61
|
var _a;
|
|
@@ -62,7 +63,7 @@ class ForumClient {
|
|
|
62
63
|
}
|
|
63
64
|
get webhooks() {
|
|
64
65
|
var _a;
|
|
65
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
66
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_14.WebhooksClient(this._options)));
|
|
66
67
|
}
|
|
67
68
|
get integrations() {
|
|
68
69
|
var _a;
|
|
@@ -70,7 +71,11 @@ class ForumClient {
|
|
|
70
71
|
}
|
|
71
72
|
get ssOs() {
|
|
72
73
|
var _a;
|
|
73
|
-
return ((_a = this._ssOs) !== null && _a !== void 0 ? _a : (this._ssOs = new
|
|
74
|
+
return ((_a = this._ssOs) !== null && _a !== void 0 ? _a : (this._ssOs = new Client_js_10.SsOsClient(this._options)));
|
|
75
|
+
}
|
|
76
|
+
get provisioning() {
|
|
77
|
+
var _a;
|
|
78
|
+
return ((_a = this._provisioning) !== null && _a !== void 0 ? _a : (this._provisioning = new Client_js_6.ProvisioningClient(this._options)));
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
exports.ForumClient = ForumClient;
|
|
@@ -12,7 +12,7 @@ export declare namespace AuthClient {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class AuthClient {
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<AuthClient.Options>;
|
|
15
|
-
constructor(options
|
|
15
|
+
constructor(options: AuthClient.Options);
|
|
16
16
|
/**
|
|
17
17
|
* Register a new user in your forum instance. Requires API key for instance identification. Returns a JWT token for subsequent authenticated requests.
|
|
18
18
|
*
|
|
@@ -55,7 +55,7 @@ const Forum = __importStar(require("../../../index.js"));
|
|
|
55
55
|
* Operations for auth
|
|
56
56
|
*/
|
|
57
57
|
class AuthClient {
|
|
58
|
-
constructor(options
|
|
58
|
+
constructor(options) {
|
|
59
59
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
@@ -82,21 +82,23 @@ class AuthClient {
|
|
|
82
82
|
}
|
|
83
83
|
__register(request, requestOptions) {
|
|
84
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
85
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
86
86
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
87
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
88
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
89
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
90
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
91
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "auth/register"),
|
|
90
92
|
method: "POST",
|
|
91
93
|
headers: _headers,
|
|
92
94
|
contentType: "application/json",
|
|
93
95
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
94
96
|
requestType: "json",
|
|
95
97
|
body: request,
|
|
96
|
-
timeoutMs: ((
|
|
97
|
-
maxRetries: (
|
|
98
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
99
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
98
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
|
-
fetchFn: (
|
|
101
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
100
102
|
logging: this._options.logging,
|
|
101
103
|
});
|
|
102
104
|
if (_response.ok) {
|
|
@@ -148,21 +150,23 @@ class AuthClient {
|
|
|
148
150
|
}
|
|
149
151
|
__login(request, requestOptions) {
|
|
150
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
153
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
152
154
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
153
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
156
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
157
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
158
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
159
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "auth/login"),
|
|
156
160
|
method: "POST",
|
|
157
161
|
headers: _headers,
|
|
158
162
|
contentType: "application/json",
|
|
159
163
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
160
164
|
requestType: "json",
|
|
161
165
|
body: request,
|
|
162
|
-
timeoutMs: ((
|
|
163
|
-
maxRetries: (
|
|
166
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
167
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
164
168
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
165
|
-
fetchFn: (
|
|
169
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
166
170
|
logging: this._options.logging,
|
|
167
171
|
});
|
|
168
172
|
if (_response.ok) {
|
|
@@ -207,18 +211,20 @@ class AuthClient {
|
|
|
207
211
|
}
|
|
208
212
|
__me(requestOptions) {
|
|
209
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
214
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
211
215
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
212
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
213
|
-
|
|
214
|
-
|
|
216
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
217
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
218
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
219
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
220
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "auth/me"),
|
|
215
221
|
method: "GET",
|
|
216
222
|
headers: _headers,
|
|
217
223
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
218
|
-
timeoutMs: ((
|
|
219
|
-
maxRetries: (
|
|
224
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
225
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
220
226
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
221
|
-
fetchFn: (
|
|
227
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
222
228
|
logging: this._options.logging,
|
|
223
229
|
});
|
|
224
230
|
if (_response.ok) {
|
|
@@ -267,21 +273,23 @@ class AuthClient {
|
|
|
267
273
|
}
|
|
268
274
|
__forgotPassword(request, requestOptions) {
|
|
269
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
276
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
271
277
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
272
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
273
|
-
|
|
274
|
-
|
|
278
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
279
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
280
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
281
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
282
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "auth/forgot-password"),
|
|
275
283
|
method: "POST",
|
|
276
284
|
headers: _headers,
|
|
277
285
|
contentType: "application/json",
|
|
278
286
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
279
287
|
requestType: "json",
|
|
280
288
|
body: request,
|
|
281
|
-
timeoutMs: ((
|
|
282
|
-
maxRetries: (
|
|
289
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
290
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
283
291
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
284
|
-
fetchFn: (
|
|
292
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
285
293
|
logging: this._options.logging,
|
|
286
294
|
});
|
|
287
295
|
if (_response.ok) {
|
|
@@ -332,21 +340,23 @@ class AuthClient {
|
|
|
332
340
|
}
|
|
333
341
|
__resetPassword(request, requestOptions) {
|
|
334
342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
343
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
336
344
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
337
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
338
|
-
|
|
339
|
-
|
|
345
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
346
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
347
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
348
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
349
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "auth/reset-password"),
|
|
340
350
|
method: "POST",
|
|
341
351
|
headers: _headers,
|
|
342
352
|
contentType: "application/json",
|
|
343
353
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
344
354
|
requestType: "json",
|
|
345
355
|
body: request,
|
|
346
|
-
timeoutMs: ((
|
|
347
|
-
maxRetries: (
|
|
356
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
357
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
348
358
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
349
|
-
fetchFn: (
|
|
359
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
350
360
|
logging: this._options.logging,
|
|
351
361
|
});
|
|
352
362
|
if (_response.ok) {
|
|
@@ -12,6 +12,9 @@ export * from "./posts/types/index.js";
|
|
|
12
12
|
export * from "./privateMessages/client/requests/index.js";
|
|
13
13
|
export * as privateMessages from "./privateMessages/index.js";
|
|
14
14
|
export * from "./privateMessages/types/index.js";
|
|
15
|
+
export * from "./provisioning/client/requests/index.js";
|
|
16
|
+
export * as provisioning from "./provisioning/index.js";
|
|
17
|
+
export * from "./provisioning/types/index.js";
|
|
15
18
|
export * from "./reports/client/requests/index.js";
|
|
16
19
|
export * as reports from "./reports/index.js";
|
|
17
20
|
export * from "./reports/types/index.js";
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhooks = exports.users = exports.threads = exports.tags = exports.ssOs = exports.search = exports.roles = exports.reports = exports.privateMessages = exports.posts = exports.notifications = exports.integrations = exports.auth = void 0;
|
|
39
|
+
exports.webhooks = exports.users = exports.threads = exports.tags = exports.ssOs = exports.search = exports.roles = exports.reports = exports.provisioning = exports.privateMessages = exports.posts = exports.notifications = exports.integrations = exports.auth = void 0;
|
|
40
40
|
__exportStar(require("./auth/client/requests/index.js"), exports);
|
|
41
41
|
exports.auth = __importStar(require("./auth/index.js"));
|
|
42
42
|
__exportStar(require("./integrations/client/requests/index.js"), exports);
|
|
@@ -51,6 +51,9 @@ __exportStar(require("./posts/types/index.js"), exports);
|
|
|
51
51
|
__exportStar(require("./privateMessages/client/requests/index.js"), exports);
|
|
52
52
|
exports.privateMessages = __importStar(require("./privateMessages/index.js"));
|
|
53
53
|
__exportStar(require("./privateMessages/types/index.js"), exports);
|
|
54
|
+
__exportStar(require("./provisioning/client/requests/index.js"), exports);
|
|
55
|
+
exports.provisioning = __importStar(require("./provisioning/index.js"));
|
|
56
|
+
__exportStar(require("./provisioning/types/index.js"), exports);
|
|
54
57
|
__exportStar(require("./reports/client/requests/index.js"), exports);
|
|
55
58
|
exports.reports = __importStar(require("./reports/index.js"));
|
|
56
59
|
__exportStar(require("./reports/types/index.js"), exports);
|
|
@@ -12,7 +12,7 @@ export declare namespace IntegrationsClient {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class IntegrationsClient {
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<IntegrationsClient.Options>;
|
|
15
|
-
constructor(options
|
|
15
|
+
constructor(options: IntegrationsClient.Options);
|
|
16
16
|
/**
|
|
17
17
|
* Retrieve a paginated list of integrations. Use cursor for pagination.
|
|
18
18
|
*
|
|
@@ -66,7 +66,7 @@ const Forum = __importStar(require("../../../index.js"));
|
|
|
66
66
|
* Operations for integrations
|
|
67
67
|
*/
|
|
68
68
|
class IntegrationsClient {
|
|
69
|
-
constructor(options
|
|
69
|
+
constructor(options) {
|
|
70
70
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
@@ -90,23 +90,25 @@ class IntegrationsClient {
|
|
|
90
90
|
}
|
|
91
91
|
__list() {
|
|
92
92
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
93
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
93
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
94
94
|
const { limit, cursor } = request;
|
|
95
95
|
const _queryParams = {
|
|
96
96
|
limit,
|
|
97
97
|
cursor,
|
|
98
98
|
};
|
|
99
99
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
100
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
101
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
102
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
103
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
104
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "integrations"),
|
|
103
105
|
method: "GET",
|
|
104
106
|
headers: _headers,
|
|
105
107
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
106
|
-
timeoutMs: ((
|
|
107
|
-
maxRetries: (
|
|
108
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
109
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
108
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
109
|
-
fetchFn: (
|
|
111
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
110
112
|
logging: this._options.logging,
|
|
111
113
|
});
|
|
112
114
|
if (_response.ok) {
|
|
@@ -161,21 +163,23 @@ class IntegrationsClient {
|
|
|
161
163
|
}
|
|
162
164
|
__create(request, requestOptions) {
|
|
163
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
166
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
165
167
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
166
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
169
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
170
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
171
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
172
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "integrations"),
|
|
169
173
|
method: "POST",
|
|
170
174
|
headers: _headers,
|
|
171
175
|
contentType: "application/json",
|
|
172
176
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
173
177
|
requestType: "json",
|
|
174
178
|
body: request,
|
|
175
|
-
timeoutMs: ((
|
|
176
|
-
maxRetries: (
|
|
179
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
180
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
177
181
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
178
|
-
fetchFn: (
|
|
182
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
179
183
|
logging: this._options.logging,
|
|
180
184
|
});
|
|
181
185
|
if (_response.ok) {
|
|
@@ -228,19 +232,21 @@ class IntegrationsClient {
|
|
|
228
232
|
}
|
|
229
233
|
__retrieve(request, requestOptions) {
|
|
230
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
235
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
232
236
|
const { id } = request;
|
|
233
237
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
234
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
235
|
-
|
|
236
|
-
|
|
238
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
239
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
240
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
241
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
242
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `integrations/${core.url.encodePathParam(id)}`),
|
|
237
243
|
method: "GET",
|
|
238
244
|
headers: _headers,
|
|
239
245
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
240
|
-
timeoutMs: ((
|
|
241
|
-
maxRetries: (
|
|
246
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
247
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
242
248
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
243
|
-
fetchFn: (
|
|
249
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
244
250
|
logging: this._options.logging,
|
|
245
251
|
});
|
|
246
252
|
if (_response.ok) {
|
|
@@ -293,19 +299,21 @@ class IntegrationsClient {
|
|
|
293
299
|
}
|
|
294
300
|
__delete(request, requestOptions) {
|
|
295
301
|
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
302
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
297
303
|
const { id } = request;
|
|
298
304
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
299
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
300
|
-
|
|
301
|
-
|
|
305
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
306
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
307
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
308
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
309
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `integrations/${core.url.encodePathParam(id)}`),
|
|
302
310
|
method: "DELETE",
|
|
303
311
|
headers: _headers,
|
|
304
312
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
305
|
-
timeoutMs: ((
|
|
306
|
-
maxRetries: (
|
|
313
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
314
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
307
315
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
308
|
-
fetchFn: (
|
|
316
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
309
317
|
logging: this._options.logging,
|
|
310
318
|
});
|
|
311
319
|
if (_response.ok) {
|
|
@@ -359,22 +367,24 @@ class IntegrationsClient {
|
|
|
359
367
|
}
|
|
360
368
|
__update(request, requestOptions) {
|
|
361
369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
370
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
363
371
|
const { id } = request, _body = __rest(request, ["id"]);
|
|
364
372
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
365
|
-
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers,
|
|
366
|
-
|
|
367
|
-
|
|
373
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
|
|
374
|
+
"x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
|
|
375
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
376
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
377
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `integrations/${core.url.encodePathParam(id)}`),
|
|
368
378
|
method: "PATCH",
|
|
369
379
|
headers: _headers,
|
|
370
380
|
contentType: "application/json",
|
|
371
381
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
372
382
|
requestType: "json",
|
|
373
383
|
body: _body,
|
|
374
|
-
timeoutMs: ((
|
|
375
|
-
maxRetries: (
|
|
384
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
385
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
376
386
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
377
|
-
fetchFn: (
|
|
387
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
378
388
|
logging: this._options.logging,
|
|
379
389
|
});
|
|
380
390
|
if (_response.ok) {
|
|
@@ -12,7 +12,7 @@ export declare namespace NotificationsClient {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class NotificationsClient {
|
|
14
14
|
protected readonly _options: NormalizedClientOptionsWithAuth<NotificationsClient.Options>;
|
|
15
|
-
constructor(options
|
|
15
|
+
constructor(options: NotificationsClient.Options);
|
|
16
16
|
/**
|
|
17
17
|
* Retrieve a paginated list of notifications. Use cursor for pagination.
|
|
18
18
|
*
|