camara-sdk 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/LICENSE +201 -0
- package/README.md +355 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +294 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +294 -0
- package/client.d.ts.map +1 -0
- package/client.js +611 -0
- package/client.js.map +1 -0
- package/client.mjs +607 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +138 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/callforwardingsignal.d.mts +94 -0
- package/resources/callforwardingsignal.d.mts.map +1 -0
- package/resources/callforwardingsignal.d.ts +94 -0
- package/resources/callforwardingsignal.d.ts.map +1 -0
- package/resources/callforwardingsignal.js +54 -0
- package/resources/callforwardingsignal.js.map +1 -0
- package/resources/callforwardingsignal.mjs +50 -0
- package/resources/callforwardingsignal.mjs.map +1 -0
- package/resources/connectednetworktype/connectednetworktype.d.mts +10 -0
- package/resources/connectednetworktype/connectednetworktype.d.mts.map +1 -0
- package/resources/connectednetworktype/connectednetworktype.d.ts +10 -0
- package/resources/connectednetworktype/connectednetworktype.d.ts.map +1 -0
- package/resources/connectednetworktype/connectednetworktype.js +17 -0
- package/resources/connectednetworktype/connectednetworktype.js.map +1 -0
- package/resources/connectednetworktype/connectednetworktype.mjs +12 -0
- package/resources/connectednetworktype/connectednetworktype.mjs.map +1 -0
- package/resources/connectednetworktype/index.d.mts +3 -0
- package/resources/connectednetworktype/index.d.mts.map +1 -0
- package/resources/connectednetworktype/index.d.ts +3 -0
- package/resources/connectednetworktype/index.d.ts.map +1 -0
- package/resources/connectednetworktype/index.js +9 -0
- package/resources/connectednetworktype/index.js.map +1 -0
- package/resources/connectednetworktype/index.mjs +4 -0
- package/resources/connectednetworktype/index.mjs.map +1 -0
- package/resources/connectednetworktype/subscriptions.d.mts +380 -0
- package/resources/connectednetworktype/subscriptions.d.mts.map +1 -0
- package/resources/connectednetworktype/subscriptions.d.ts +380 -0
- package/resources/connectednetworktype/subscriptions.d.ts.map +1 -0
- package/resources/connectednetworktype/subscriptions.js +114 -0
- package/resources/connectednetworktype/subscriptions.js.map +1 -0
- package/resources/connectednetworktype/subscriptions.mjs +110 -0
- package/resources/connectednetworktype/subscriptions.mjs.map +1 -0
- package/resources/connectednetworktype.d.mts +2 -0
- package/resources/connectednetworktype.d.mts.map +1 -0
- package/resources/connectednetworktype.d.ts +2 -0
- package/resources/connectednetworktype.d.ts.map +1 -0
- package/resources/connectednetworktype.js +6 -0
- package/resources/connectednetworktype.js.map +1 -0
- package/resources/connectednetworktype.mjs +3 -0
- package/resources/connectednetworktype.mjs.map +1 -0
- package/resources/connectivityinsights/connectivityinsights.d.mts +10 -0
- package/resources/connectivityinsights/connectivityinsights.d.mts.map +1 -0
- package/resources/connectivityinsights/connectivityinsights.d.ts +10 -0
- package/resources/connectivityinsights/connectivityinsights.d.ts.map +1 -0
- package/resources/connectivityinsights/connectivityinsights.js +17 -0
- package/resources/connectivityinsights/connectivityinsights.js.map +1 -0
- package/resources/connectivityinsights/connectivityinsights.mjs +12 -0
- package/resources/connectivityinsights/connectivityinsights.mjs.map +1 -0
- package/resources/connectivityinsights/index.d.mts +3 -0
- package/resources/connectivityinsights/index.d.mts.map +1 -0
- package/resources/connectivityinsights/index.d.ts +3 -0
- package/resources/connectivityinsights/index.d.ts.map +1 -0
- package/resources/connectivityinsights/index.js +9 -0
- package/resources/connectivityinsights/index.js.map +1 -0
- package/resources/connectivityinsights/index.mjs +4 -0
- package/resources/connectivityinsights/index.mjs.map +1 -0
- package/resources/connectivityinsights/subscriptions.d.mts +445 -0
- package/resources/connectivityinsights/subscriptions.d.mts.map +1 -0
- package/resources/connectivityinsights/subscriptions.d.ts +445 -0
- package/resources/connectivityinsights/subscriptions.d.ts.map +1 -0
- package/resources/connectivityinsights/subscriptions.js +106 -0
- package/resources/connectivityinsights/subscriptions.js.map +1 -0
- package/resources/connectivityinsights/subscriptions.mjs +102 -0
- package/resources/connectivityinsights/subscriptions.mjs.map +1 -0
- package/resources/connectivityinsights.d.mts +2 -0
- package/resources/connectivityinsights.d.mts.map +1 -0
- package/resources/connectivityinsights.d.ts +2 -0
- package/resources/connectivityinsights.d.ts.map +1 -0
- package/resources/connectivityinsights.js +6 -0
- package/resources/connectivityinsights.js.map +1 -0
- package/resources/connectivityinsights.mjs +3 -0
- package/resources/connectivityinsights.mjs.map +1 -0
- package/resources/customerinsights/customerinsights.d.mts +10 -0
- package/resources/customerinsights/customerinsights.d.mts.map +1 -0
- package/resources/customerinsights/customerinsights.d.ts +10 -0
- package/resources/customerinsights/customerinsights.d.ts.map +1 -0
- package/resources/customerinsights/customerinsights.js +17 -0
- package/resources/customerinsights/customerinsights.js.map +1 -0
- package/resources/customerinsights/customerinsights.mjs +12 -0
- package/resources/customerinsights/customerinsights.mjs.map +1 -0
- package/resources/customerinsights/index.d.mts +3 -0
- package/resources/customerinsights/index.d.mts.map +1 -0
- package/resources/customerinsights/index.d.ts +3 -0
- package/resources/customerinsights/index.d.ts.map +1 -0
- package/resources/customerinsights/index.js +9 -0
- package/resources/customerinsights/index.js.map +1 -0
- package/resources/customerinsights/index.mjs +4 -0
- package/resources/customerinsights/index.mjs.map +1 -0
- package/resources/customerinsights/scoring.d.mts +71 -0
- package/resources/customerinsights/scoring.d.mts.map +1 -0
- package/resources/customerinsights/scoring.d.ts +71 -0
- package/resources/customerinsights/scoring.d.ts.map +1 -0
- package/resources/customerinsights/scoring.js +34 -0
- package/resources/customerinsights/scoring.js.map +1 -0
- package/resources/customerinsights/scoring.mjs +30 -0
- package/resources/customerinsights/scoring.mjs.map +1 -0
- package/resources/customerinsights.d.mts +2 -0
- package/resources/customerinsights.d.mts.map +1 -0
- package/resources/customerinsights.d.ts +2 -0
- package/resources/customerinsights.d.ts.map +1 -0
- package/resources/customerinsights.js +6 -0
- package/resources/customerinsights.js.map +1 -0
- package/resources/customerinsights.mjs +3 -0
- package/resources/customerinsights.mjs.map +1 -0
- package/resources/deviceidentifier.d.mts +334 -0
- package/resources/deviceidentifier.d.mts.map +1 -0
- package/resources/deviceidentifier.d.ts +334 -0
- package/resources/deviceidentifier.d.ts.map +1 -0
- package/resources/deviceidentifier.js +70 -0
- package/resources/deviceidentifier.js.map +1 -0
- package/resources/deviceidentifier.mjs +66 -0
- package/resources/deviceidentifier.mjs.map +1 -0
- package/resources/devicelocation/devicelocation.d.mts +10 -0
- package/resources/devicelocation/devicelocation.d.mts.map +1 -0
- package/resources/devicelocation/devicelocation.d.ts +10 -0
- package/resources/devicelocation/devicelocation.d.ts.map +1 -0
- package/resources/devicelocation/devicelocation.js +17 -0
- package/resources/devicelocation/devicelocation.js.map +1 -0
- package/resources/devicelocation/devicelocation.mjs +12 -0
- package/resources/devicelocation/devicelocation.mjs.map +1 -0
- package/resources/devicelocation/index.d.mts +3 -0
- package/resources/devicelocation/index.d.mts.map +1 -0
- package/resources/devicelocation/index.d.ts +3 -0
- package/resources/devicelocation/index.d.ts.map +1 -0
- package/resources/devicelocation/index.js +9 -0
- package/resources/devicelocation/index.js.map +1 -0
- package/resources/devicelocation/index.mjs +4 -0
- package/resources/devicelocation/index.mjs.map +1 -0
- package/resources/devicelocation/subscriptions.d.mts +448 -0
- package/resources/devicelocation/subscriptions.d.mts.map +1 -0
- package/resources/devicelocation/subscriptions.d.ts +448 -0
- package/resources/devicelocation/subscriptions.d.ts.map +1 -0
- package/resources/devicelocation/subscriptions.js +115 -0
- package/resources/devicelocation/subscriptions.js.map +1 -0
- package/resources/devicelocation/subscriptions.mjs +111 -0
- package/resources/devicelocation/subscriptions.mjs.map +1 -0
- package/resources/devicelocation.d.mts +2 -0
- package/resources/devicelocation.d.mts.map +1 -0
- package/resources/devicelocation.d.ts +2 -0
- package/resources/devicelocation.d.ts.map +1 -0
- package/resources/devicelocation.js +6 -0
- package/resources/devicelocation.js.map +1 -0
- package/resources/devicelocation.mjs +3 -0
- package/resources/devicelocation.mjs.map +1 -0
- package/resources/devicereachabilitystatus/devicereachabilitystatus.d.mts +10 -0
- package/resources/devicereachabilitystatus/devicereachabilitystatus.d.mts.map +1 -0
- package/resources/devicereachabilitystatus/devicereachabilitystatus.d.ts +10 -0
- package/resources/devicereachabilitystatus/devicereachabilitystatus.d.ts.map +1 -0
- package/resources/devicereachabilitystatus/devicereachabilitystatus.js +17 -0
- package/resources/devicereachabilitystatus/devicereachabilitystatus.js.map +1 -0
- package/resources/devicereachabilitystatus/devicereachabilitystatus.mjs +12 -0
- package/resources/devicereachabilitystatus/devicereachabilitystatus.mjs.map +1 -0
- package/resources/devicereachabilitystatus/index.d.mts +3 -0
- package/resources/devicereachabilitystatus/index.d.mts.map +1 -0
- package/resources/devicereachabilitystatus/index.d.ts +3 -0
- package/resources/devicereachabilitystatus/index.d.ts.map +1 -0
- package/resources/devicereachabilitystatus/index.js +9 -0
- package/resources/devicereachabilitystatus/index.js.map +1 -0
- package/resources/devicereachabilitystatus/index.mjs +4 -0
- package/resources/devicereachabilitystatus/index.mjs.map +1 -0
- package/resources/devicereachabilitystatus/subscriptions.d.mts +387 -0
- package/resources/devicereachabilitystatus/subscriptions.d.mts.map +1 -0
- package/resources/devicereachabilitystatus/subscriptions.d.ts +387 -0
- package/resources/devicereachabilitystatus/subscriptions.d.ts.map +1 -0
- package/resources/devicereachabilitystatus/subscriptions.js +114 -0
- package/resources/devicereachabilitystatus/subscriptions.js.map +1 -0
- package/resources/devicereachabilitystatus/subscriptions.mjs +110 -0
- package/resources/devicereachabilitystatus/subscriptions.mjs.map +1 -0
- package/resources/devicereachabilitystatus.d.mts +2 -0
- package/resources/devicereachabilitystatus.d.mts.map +1 -0
- package/resources/devicereachabilitystatus.d.ts +2 -0
- package/resources/devicereachabilitystatus.d.ts.map +1 -0
- package/resources/devicereachabilitystatus.js +6 -0
- package/resources/devicereachabilitystatus.js.map +1 -0
- package/resources/devicereachabilitystatus.mjs +3 -0
- package/resources/devicereachabilitystatus.mjs.map +1 -0
- package/resources/deviceroamingstatus/deviceroamingstatus.d.mts +10 -0
- package/resources/deviceroamingstatus/deviceroamingstatus.d.mts.map +1 -0
- package/resources/deviceroamingstatus/deviceroamingstatus.d.ts +10 -0
- package/resources/deviceroamingstatus/deviceroamingstatus.d.ts.map +1 -0
- package/resources/deviceroamingstatus/deviceroamingstatus.js +17 -0
- package/resources/deviceroamingstatus/deviceroamingstatus.js.map +1 -0
- package/resources/deviceroamingstatus/deviceroamingstatus.mjs +12 -0
- package/resources/deviceroamingstatus/deviceroamingstatus.mjs.map +1 -0
- package/resources/deviceroamingstatus/index.d.mts +3 -0
- package/resources/deviceroamingstatus/index.d.mts.map +1 -0
- package/resources/deviceroamingstatus/index.d.ts +3 -0
- package/resources/deviceroamingstatus/index.d.ts.map +1 -0
- package/resources/deviceroamingstatus/index.js +9 -0
- package/resources/deviceroamingstatus/index.js.map +1 -0
- package/resources/deviceroamingstatus/index.mjs +4 -0
- package/resources/deviceroamingstatus/index.mjs.map +1 -0
- package/resources/deviceroamingstatus/subscriptions.d.mts +391 -0
- package/resources/deviceroamingstatus/subscriptions.d.mts.map +1 -0
- package/resources/deviceroamingstatus/subscriptions.d.ts +391 -0
- package/resources/deviceroamingstatus/subscriptions.d.ts.map +1 -0
- package/resources/deviceroamingstatus/subscriptions.js +113 -0
- package/resources/deviceroamingstatus/subscriptions.js.map +1 -0
- package/resources/deviceroamingstatus/subscriptions.mjs +109 -0
- package/resources/deviceroamingstatus/subscriptions.mjs.map +1 -0
- package/resources/deviceroamingstatus.d.mts +2 -0
- package/resources/deviceroamingstatus.d.mts.map +1 -0
- package/resources/deviceroamingstatus.d.ts +2 -0
- package/resources/deviceroamingstatus.d.ts.map +1 -0
- package/resources/deviceroamingstatus.js +6 -0
- package/resources/deviceroamingstatus.js.map +1 -0
- package/resources/deviceroamingstatus.mjs +3 -0
- package/resources/deviceroamingstatus.mjs.map +1 -0
- package/resources/deviceswap.d.mts +81 -0
- package/resources/deviceswap.d.mts.map +1 -0
- package/resources/deviceswap.d.ts +81 -0
- package/resources/deviceswap.d.ts.map +1 -0
- package/resources/deviceswap.js +51 -0
- package/resources/deviceswap.js.map +1 -0
- package/resources/deviceswap.mjs +47 -0
- package/resources/deviceswap.mjs.map +1 -0
- package/resources/index.d.mts +21 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +21 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +45 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +22 -0
- package/resources/index.mjs.map +1 -0
- package/resources/knowyourcustomerageverification.d.mts +168 -0
- package/resources/knowyourcustomerageverification.d.mts.map +1 -0
- package/resources/knowyourcustomerageverification.d.ts +168 -0
- package/resources/knowyourcustomerageverification.d.ts.map +1 -0
- package/resources/knowyourcustomerageverification.js +67 -0
- package/resources/knowyourcustomerageverification.js.map +1 -0
- package/resources/knowyourcustomerageverification.mjs +63 -0
- package/resources/knowyourcustomerageverification.mjs.map +1 -0
- package/resources/knowyourcustomerfill-in.d.mts +165 -0
- package/resources/knowyourcustomerfill-in.d.mts.map +1 -0
- package/resources/knowyourcustomerfill-in.d.ts +165 -0
- package/resources/knowyourcustomerfill-in.d.ts.map +1 -0
- package/resources/knowyourcustomerfill-in.js +33 -0
- package/resources/knowyourcustomerfill-in.js.map +1 -0
- package/resources/knowyourcustomerfill-in.mjs +29 -0
- package/resources/knowyourcustomerfill-in.mjs.map +1 -0
- package/resources/knowyourcustomermatch.d.mts +492 -0
- package/resources/knowyourcustomermatch.d.mts.map +1 -0
- package/resources/knowyourcustomermatch.d.ts +492 -0
- package/resources/knowyourcustomermatch.d.ts.map +1 -0
- package/resources/knowyourcustomermatch.js +85 -0
- package/resources/knowyourcustomermatch.js.map +1 -0
- package/resources/knowyourcustomermatch.mjs +81 -0
- package/resources/knowyourcustomermatch.mjs.map +1 -0
- package/resources/numberrecycling.d.mts +47 -0
- package/resources/numberrecycling.d.mts.map +1 -0
- package/resources/numberrecycling.d.ts +47 -0
- package/resources/numberrecycling.d.ts.map +1 -0
- package/resources/numberrecycling.js +32 -0
- package/resources/numberrecycling.js.map +1 -0
- package/resources/numberrecycling.mjs +28 -0
- package/resources/numberrecycling.mjs.map +1 -0
- package/resources/otpvalidation.d.mts +77 -0
- package/resources/otpvalidation.d.mts.map +1 -0
- package/resources/otpvalidation.d.ts +77 -0
- package/resources/otpvalidation.d.ts.map +1 -0
- package/resources/otpvalidation.js +56 -0
- package/resources/otpvalidation.js.map +1 -0
- package/resources/otpvalidation.mjs +52 -0
- package/resources/otpvalidation.mjs.map +1 -0
- package/resources/populationdensitydata.d.mts +180 -0
- package/resources/populationdensitydata.d.mts.map +1 -0
- package/resources/populationdensitydata.d.ts +180 -0
- package/resources/populationdensitydata.d.ts.map +1 -0
- package/resources/populationdensitydata.js +47 -0
- package/resources/populationdensitydata.js.map +1 -0
- package/resources/populationdensitydata.mjs +43 -0
- package/resources/populationdensitydata.mjs.map +1 -0
- package/resources/qualityondemand.d.mts +406 -0
- package/resources/qualityondemand.d.mts.map +1 -0
- package/resources/qualityondemand.d.ts +406 -0
- package/resources/qualityondemand.d.ts.map +1 -0
- package/resources/qualityondemand.js +73 -0
- package/resources/qualityondemand.js.map +1 -0
- package/resources/qualityondemand.mjs +69 -0
- package/resources/qualityondemand.mjs.map +1 -0
- package/resources/regiondevicecount.d.mts +178 -0
- package/resources/regiondevicecount.d.mts.map +1 -0
- package/resources/regiondevicecount.d.ts +178 -0
- package/resources/regiondevicecount.d.ts.map +1 -0
- package/resources/regiondevicecount.js +57 -0
- package/resources/regiondevicecount.js.map +1 -0
- package/resources/regiondevicecount.mjs +53 -0
- package/resources/regiondevicecount.mjs.map +1 -0
- package/resources/simswap/index.d.mts +3 -0
- package/resources/simswap/index.d.mts.map +1 -0
- package/resources/simswap/index.d.ts +3 -0
- package/resources/simswap/index.d.ts.map +1 -0
- package/resources/simswap/index.js +9 -0
- package/resources/simswap/index.js.map +1 -0
- package/resources/simswap/index.mjs +4 -0
- package/resources/simswap/index.mjs.map +1 -0
- package/resources/simswap/simswap.d.mts +10 -0
- package/resources/simswap/simswap.d.mts.map +1 -0
- package/resources/simswap/simswap.d.ts +10 -0
- package/resources/simswap/simswap.d.ts.map +1 -0
- package/resources/simswap/simswap.js +17 -0
- package/resources/simswap/simswap.js.map +1 -0
- package/resources/simswap/simswap.mjs +12 -0
- package/resources/simswap/simswap.mjs.map +1 -0
- package/resources/simswap/subscriptions.d.mts +264 -0
- package/resources/simswap/subscriptions.d.mts.map +1 -0
- package/resources/simswap/subscriptions.d.ts +264 -0
- package/resources/simswap/subscriptions.d.ts.map +1 -0
- package/resources/simswap/subscriptions.js +109 -0
- package/resources/simswap/subscriptions.js.map +1 -0
- package/resources/simswap/subscriptions.mjs +105 -0
- package/resources/simswap/subscriptions.mjs.map +1 -0
- package/resources/simswap.d.mts +2 -0
- package/resources/simswap.d.mts.map +1 -0
- package/resources/simswap.d.ts +2 -0
- package/resources/simswap.d.ts.map +1 -0
- package/resources/simswap.js +6 -0
- package/resources/simswap.js.map +1 -0
- package/resources/simswap.mjs +3 -0
- package/resources/simswap.mjs.map +1 -0
- package/resources/tenure.d.mts +59 -0
- package/resources/tenure.d.mts.map +1 -0
- package/resources/tenure.d.ts +59 -0
- package/resources/tenure.d.ts.map +1 -0
- package/resources/tenure.js +33 -0
- package/resources/tenure.js.map +1 -0
- package/resources/tenure.mjs +29 -0
- package/resources/tenure.mjs.map +1 -0
- package/resources/webrtc/index.d.mts +3 -0
- package/resources/webrtc/index.d.mts.map +1 -0
- package/resources/webrtc/index.d.ts +3 -0
- package/resources/webrtc/index.d.ts.map +1 -0
- package/resources/webrtc/index.js +9 -0
- package/resources/webrtc/index.js.map +1 -0
- package/resources/webrtc/index.mjs +4 -0
- package/resources/webrtc/index.mjs.map +1 -0
- package/resources/webrtc/sessions.d.mts +358 -0
- package/resources/webrtc/sessions.d.mts.map +1 -0
- package/resources/webrtc/sessions.d.ts +358 -0
- package/resources/webrtc/sessions.d.ts.map +1 -0
- package/resources/webrtc/sessions.js +115 -0
- package/resources/webrtc/sessions.js.map +1 -0
- package/resources/webrtc/sessions.mjs +111 -0
- package/resources/webrtc/sessions.mjs.map +1 -0
- package/resources/webrtc/webrtc.d.mts +10 -0
- package/resources/webrtc/webrtc.d.mts.map +1 -0
- package/resources/webrtc/webrtc.d.ts +10 -0
- package/resources/webrtc/webrtc.d.ts.map +1 -0
- package/resources/webrtc/webrtc.js +17 -0
- package/resources/webrtc/webrtc.js.map +1 -0
- package/resources/webrtc/webrtc.mjs +12 -0
- package/resources/webrtc/webrtc.mjs.map +1 -0
- package/resources/webrtc.d.mts +2 -0
- package/resources/webrtc.d.mts.map +1 -0
- package/resources/webrtc.d.ts +2 -0
- package/resources/webrtc.d.ts.map +1 -0
- package/resources/webrtc.js +6 -0
- package/resources/webrtc.js.map +1 -0
- package/resources/webrtc.mjs +3 -0
- package/resources/webrtc.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1146 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/callforwardingsignal.ts +140 -0
- package/src/resources/connectednetworktype/connectednetworktype.ts +39 -0
- package/src/resources/connectednetworktype/index.ts +16 -0
- package/src/resources/connectednetworktype/subscriptions.ts +485 -0
- package/src/resources/connectednetworktype.ts +3 -0
- package/src/resources/connectivityinsights/connectivityinsights.ts +39 -0
- package/src/resources/connectivityinsights/index.ts +16 -0
- package/src/resources/connectivityinsights/subscriptions.ts +556 -0
- package/src/resources/connectivityinsights.ts +3 -0
- package/src/resources/customerinsights/customerinsights.ts +19 -0
- package/src/resources/customerinsights/index.ts +4 -0
- package/src/resources/customerinsights/scoring.ts +94 -0
- package/src/resources/customerinsights.ts +3 -0
- package/src/resources/deviceidentifier.ts +418 -0
- package/src/resources/devicelocation/devicelocation.ts +43 -0
- package/src/resources/devicelocation/index.ts +18 -0
- package/src/resources/devicelocation/subscriptions.ts +558 -0
- package/src/resources/devicelocation.ts +3 -0
- package/src/resources/devicereachabilitystatus/devicereachabilitystatus.ts +39 -0
- package/src/resources/devicereachabilitystatus/index.ts +16 -0
- package/src/resources/devicereachabilitystatus/subscriptions.ts +494 -0
- package/src/resources/devicereachabilitystatus.ts +3 -0
- package/src/resources/deviceroamingstatus/deviceroamingstatus.ts +39 -0
- package/src/resources/deviceroamingstatus/index.ts +16 -0
- package/src/resources/deviceroamingstatus/subscriptions.ts +499 -0
- package/src/resources/deviceroamingstatus.ts +3 -0
- package/src/resources/deviceswap.ts +122 -0
- package/src/resources/index.ts +85 -0
- package/src/resources/knowyourcustomerageverification.ts +206 -0
- package/src/resources/knowyourcustomerfill-in.ts +219 -0
- package/src/resources/knowyourcustomermatch.ts +585 -0
- package/src/resources/numberrecycling.ts +71 -0
- package/src/resources/otpvalidation.ts +116 -0
- package/src/resources/populationdensitydata.ts +217 -0
- package/src/resources/qualityondemand.ts +493 -0
- package/src/resources/regiondevicecount.ts +216 -0
- package/src/resources/simswap/index.ts +16 -0
- package/src/resources/simswap/simswap.ts +39 -0
- package/src/resources/simswap/subscriptions.ts +357 -0
- package/src/resources/simswap.ts +3 -0
- package/src/resources/tenure.ts +78 -0
- package/src/resources/webrtc/index.ts +12 -0
- package/src/resources/webrtc/sessions.ts +519 -0
- package/src/resources/webrtc/webrtc.ts +31 -0
- package/src/resources/webrtc.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Numberrecycling extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Check whether the subscriber of the phone number has changed.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.numberrecycling.checkSubscriberChange({
|
|
12
|
+
* specifiedDate: '2024-10-31',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
checkSubscriberChange(params: NumberrecyclingCheckSubscriberChangeParams, options?: RequestOptions): APIPromise<NumberrecyclingCheckSubscriberChangeResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface NumberrecyclingCheckSubscriberChangeResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Set to true (Boolean, not string) when there has been a change in the subscriber
|
|
21
|
+
* associated with the specific phone number after “specifiedDate”.
|
|
22
|
+
*/
|
|
23
|
+
phoneNumberRecycled: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface NumberrecyclingCheckSubscriberChangeParams {
|
|
26
|
+
/**
|
|
27
|
+
* Body param: Specified date to check whether there has been a change in the
|
|
28
|
+
* subscriber associated with the specific phone number, in RFC 3339 calendar date
|
|
29
|
+
* format (YYYY-MM-DD).
|
|
30
|
+
*/
|
|
31
|
+
specifiedDate: string;
|
|
32
|
+
/**
|
|
33
|
+
* Body param: A public identifier addressing a telephone subscription. In mobile
|
|
34
|
+
* networks it corresponds to the MSISDN (Mobile Station International Subscriber
|
|
35
|
+
* Directory Number). In order to be globally unique it has to be formatted in
|
|
36
|
+
* international format, according to E.164 standard, prefixed with '+'.
|
|
37
|
+
*/
|
|
38
|
+
phoneNumber?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Header param: Correlation id for the different services
|
|
41
|
+
*/
|
|
42
|
+
'x-correlator'?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Numberrecycling {
|
|
45
|
+
export { type NumberrecyclingCheckSubscriberChangeResponse as NumberrecyclingCheckSubscriberChangeResponse, type NumberrecyclingCheckSubscriberChangeParams as NumberrecyclingCheckSubscriberChangeParams, };
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=numberrecycling.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberrecycling.d.mts","sourceRoot":"","sources":["../src/resources/numberrecycling.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,qBAAqB,CACnB,MAAM,EAAE,0CAA0C,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4CAA4C,CAAC;CAW5D;AAED,MAAM,WAAW,4CAA4C;IAC3D;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,0CAA0C;IACzD;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,0CAA0C,IAAI,0CAA0C,GAC9F,CAAC;CACH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Numberrecycling extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Check whether the subscriber of the phone number has changed.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.numberrecycling.checkSubscriberChange({
|
|
12
|
+
* specifiedDate: '2024-10-31',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
checkSubscriberChange(params: NumberrecyclingCheckSubscriberChangeParams, options?: RequestOptions): APIPromise<NumberrecyclingCheckSubscriberChangeResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface NumberrecyclingCheckSubscriberChangeResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Set to true (Boolean, not string) when there has been a change in the subscriber
|
|
21
|
+
* associated with the specific phone number after “specifiedDate”.
|
|
22
|
+
*/
|
|
23
|
+
phoneNumberRecycled: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface NumberrecyclingCheckSubscriberChangeParams {
|
|
26
|
+
/**
|
|
27
|
+
* Body param: Specified date to check whether there has been a change in the
|
|
28
|
+
* subscriber associated with the specific phone number, in RFC 3339 calendar date
|
|
29
|
+
* format (YYYY-MM-DD).
|
|
30
|
+
*/
|
|
31
|
+
specifiedDate: string;
|
|
32
|
+
/**
|
|
33
|
+
* Body param: A public identifier addressing a telephone subscription. In mobile
|
|
34
|
+
* networks it corresponds to the MSISDN (Mobile Station International Subscriber
|
|
35
|
+
* Directory Number). In order to be globally unique it has to be formatted in
|
|
36
|
+
* international format, according to E.164 standard, prefixed with '+'.
|
|
37
|
+
*/
|
|
38
|
+
phoneNumber?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Header param: Correlation id for the different services
|
|
41
|
+
*/
|
|
42
|
+
'x-correlator'?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Numberrecycling {
|
|
45
|
+
export { type NumberrecyclingCheckSubscriberChangeResponse as NumberrecyclingCheckSubscriberChangeResponse, type NumberrecyclingCheckSubscriberChangeParams as NumberrecyclingCheckSubscriberChangeParams, };
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=numberrecycling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberrecycling.d.ts","sourceRoot":"","sources":["../src/resources/numberrecycling.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,qBAAqB,CACnB,MAAM,EAAE,0CAA0C,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4CAA4C,CAAC;CAW5D;AAED,MAAM,WAAW,4CAA4C;IAC3D;;;OAGG;IACH,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,0CAA0C;IACzD;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,0CAA0C,IAAI,0CAA0C,GAC9F,CAAC;CACH"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Numberrecycling = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
class Numberrecycling extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Check whether the subscriber of the phone number has changed.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response =
|
|
14
|
+
* await client.numberrecycling.checkSubscriberChange({
|
|
15
|
+
* specifiedDate: '2024-10-31',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
checkSubscriberChange(params, options) {
|
|
20
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
21
|
+
return this._client.post('/numberrecycling/check', {
|
|
22
|
+
body,
|
|
23
|
+
...options,
|
|
24
|
+
headers: (0, headers_1.buildHeaders)([
|
|
25
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
26
|
+
options?.headers,
|
|
27
|
+
]),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Numberrecycling = Numberrecycling;
|
|
32
|
+
//# sourceMappingURL=numberrecycling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberrecycling.js","sourceRoot":"","sources":["../src/resources/numberrecycling.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAGnD,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;;;;;;;OAUG;IACH,qBAAqB,CACnB,MAAkD,EAClD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC1E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA1BD,0CA0BC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
export class Numberrecycling extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Check whether the subscriber of the phone number has changed.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response =
|
|
11
|
+
* await client.numberrecycling.checkSubscriberChange({
|
|
12
|
+
* specifiedDate: '2024-10-31',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
checkSubscriberChange(params, options) {
|
|
17
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
18
|
+
return this._client.post('/numberrecycling/check', {
|
|
19
|
+
body,
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([
|
|
22
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
23
|
+
options?.headers,
|
|
24
|
+
]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=numberrecycling.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numberrecycling.mjs","sourceRoot":"","sources":["../src/resources/numberrecycling.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;;;;;;;OAUG;IACH,qBAAqB,CACnB,MAAkD,EAClD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC1E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Otpvalidation extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Sends an SMS with the desired message and an OTP code to the received phone
|
|
7
|
+
* number.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.otpvalidation.sendCode({
|
|
12
|
+
* message:
|
|
13
|
+
* '{{code}} is your short code to authenticate with Cool App via SMS',
|
|
14
|
+
* phoneNumber: '+346661113334',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
sendCode(params: OtpvalidationSendCodeParams, options?: RequestOptions): APIPromise<OtpvalidationSendCodeResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Verifies the code is valid for the received authenticationId
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* await client.otpvalidation.validateCode({
|
|
25
|
+
* authenticationId: 'ea0840f3-3663-4149-bd10-c7c6b8912105',
|
|
26
|
+
* code: 'AJY3',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
validateCode(params: OtpvalidationValidateCodeParams, options?: RequestOptions): APIPromise<void>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Structure to provide authentication identifier
|
|
34
|
+
*/
|
|
35
|
+
export interface OtpvalidationSendCodeResponse {
|
|
36
|
+
/**
|
|
37
|
+
* unique id of the verification attempt the code belongs to.
|
|
38
|
+
*/
|
|
39
|
+
authenticationId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface OtpvalidationSendCodeParams {
|
|
42
|
+
/**
|
|
43
|
+
* Body param: Message template used to compose the content of the SMS sent to the
|
|
44
|
+
* phone number. It must include the following label indicating where to include
|
|
45
|
+
* the short code `{{code}}`
|
|
46
|
+
*/
|
|
47
|
+
message: string;
|
|
48
|
+
/**
|
|
49
|
+
* Body param: A public identifier addressing a telephone subscription. In mobile
|
|
50
|
+
* networks it corresponds to the MSISDN (Mobile Station International Subscriber
|
|
51
|
+
* Directory Number). In order to be globally unique it has to be formatted in
|
|
52
|
+
* international format, according to E.164 standard, prefixed with '+'.
|
|
53
|
+
*/
|
|
54
|
+
phoneNumber: string;
|
|
55
|
+
/**
|
|
56
|
+
* Header param: Correlation id for the different services
|
|
57
|
+
*/
|
|
58
|
+
'x-correlator'?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface OtpvalidationValidateCodeParams {
|
|
61
|
+
/**
|
|
62
|
+
* Body param: unique id of the verification attempt the code belongs to.
|
|
63
|
+
*/
|
|
64
|
+
authenticationId: string;
|
|
65
|
+
/**
|
|
66
|
+
* Body param: temporal, short code to be validated
|
|
67
|
+
*/
|
|
68
|
+
code: string;
|
|
69
|
+
/**
|
|
70
|
+
* Header param: Correlation id for the different services
|
|
71
|
+
*/
|
|
72
|
+
'x-correlator'?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace Otpvalidation {
|
|
75
|
+
export { type OtpvalidationSendCodeResponse as OtpvalidationSendCodeResponse, type OtpvalidationSendCodeParams as OtpvalidationSendCodeParams, type OtpvalidationValidateCodeParams as OtpvalidationValidateCodeParams, };
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=otpvalidation.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otpvalidation.d.mts","sourceRoot":"","sources":["../src/resources/otpvalidation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAY5C;;;;;;;;;;OAUG;IACH,YAAY,CAAC,MAAM,EAAE,+BAA+B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAWlG;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Otpvalidation extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Sends an SMS with the desired message and an OTP code to the received phone
|
|
7
|
+
* number.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.otpvalidation.sendCode({
|
|
12
|
+
* message:
|
|
13
|
+
* '{{code}} is your short code to authenticate with Cool App via SMS',
|
|
14
|
+
* phoneNumber: '+346661113334',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
sendCode(params: OtpvalidationSendCodeParams, options?: RequestOptions): APIPromise<OtpvalidationSendCodeResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Verifies the code is valid for the received authenticationId
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* await client.otpvalidation.validateCode({
|
|
25
|
+
* authenticationId: 'ea0840f3-3663-4149-bd10-c7c6b8912105',
|
|
26
|
+
* code: 'AJY3',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
validateCode(params: OtpvalidationValidateCodeParams, options?: RequestOptions): APIPromise<void>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Structure to provide authentication identifier
|
|
34
|
+
*/
|
|
35
|
+
export interface OtpvalidationSendCodeResponse {
|
|
36
|
+
/**
|
|
37
|
+
* unique id of the verification attempt the code belongs to.
|
|
38
|
+
*/
|
|
39
|
+
authenticationId: string;
|
|
40
|
+
}
|
|
41
|
+
export interface OtpvalidationSendCodeParams {
|
|
42
|
+
/**
|
|
43
|
+
* Body param: Message template used to compose the content of the SMS sent to the
|
|
44
|
+
* phone number. It must include the following label indicating where to include
|
|
45
|
+
* the short code `{{code}}`
|
|
46
|
+
*/
|
|
47
|
+
message: string;
|
|
48
|
+
/**
|
|
49
|
+
* Body param: A public identifier addressing a telephone subscription. In mobile
|
|
50
|
+
* networks it corresponds to the MSISDN (Mobile Station International Subscriber
|
|
51
|
+
* Directory Number). In order to be globally unique it has to be formatted in
|
|
52
|
+
* international format, according to E.164 standard, prefixed with '+'.
|
|
53
|
+
*/
|
|
54
|
+
phoneNumber: string;
|
|
55
|
+
/**
|
|
56
|
+
* Header param: Correlation id for the different services
|
|
57
|
+
*/
|
|
58
|
+
'x-correlator'?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface OtpvalidationValidateCodeParams {
|
|
61
|
+
/**
|
|
62
|
+
* Body param: unique id of the verification attempt the code belongs to.
|
|
63
|
+
*/
|
|
64
|
+
authenticationId: string;
|
|
65
|
+
/**
|
|
66
|
+
* Body param: temporal, short code to be validated
|
|
67
|
+
*/
|
|
68
|
+
code: string;
|
|
69
|
+
/**
|
|
70
|
+
* Header param: Correlation id for the different services
|
|
71
|
+
*/
|
|
72
|
+
'x-correlator'?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace Otpvalidation {
|
|
75
|
+
export { type OtpvalidationSendCodeResponse as OtpvalidationSendCodeResponse, type OtpvalidationSendCodeParams as OtpvalidationSendCodeParams, type OtpvalidationValidateCodeParams as OtpvalidationValidateCodeParams, };
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=otpvalidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otpvalidation.d.ts","sourceRoot":"","sources":["../src/resources/otpvalidation.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAY5C;;;;;;;;;;OAUG;IACH,YAAY,CAAC,MAAM,EAAE,+BAA+B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAWlG;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Otpvalidation = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
class Otpvalidation extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Sends an SMS with the desired message and an OTP code to the received phone
|
|
10
|
+
* number.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.otpvalidation.sendCode({
|
|
15
|
+
* message:
|
|
16
|
+
* '{{code}} is your short code to authenticate with Cool App via SMS',
|
|
17
|
+
* phoneNumber: '+346661113334',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
sendCode(params, options) {
|
|
22
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
23
|
+
return this._client.post('/otpvalidation/send-code', {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
headers: (0, headers_1.buildHeaders)([
|
|
27
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
28
|
+
options?.headers,
|
|
29
|
+
]),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Verifies the code is valid for the received authenticationId
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* await client.otpvalidation.validateCode({
|
|
38
|
+
* authenticationId: 'ea0840f3-3663-4149-bd10-c7c6b8912105',
|
|
39
|
+
* code: 'AJY3',
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
validateCode(params, options) {
|
|
44
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
45
|
+
return this._client.post('/otpvalidation/validate-code', {
|
|
46
|
+
body,
|
|
47
|
+
...options,
|
|
48
|
+
headers: (0, headers_1.buildHeaders)([
|
|
49
|
+
{ Accept: '*/*', ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
50
|
+
options?.headers,
|
|
51
|
+
]),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Otpvalidation = Otpvalidation;
|
|
56
|
+
//# sourceMappingURL=otpvalidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otpvalidation.js","sourceRoot":"","sources":["../src/resources/otpvalidation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAGnD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC1E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CAAC,MAAuC,EAAE,OAAwB;QAC5E,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE;YACvD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACzF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAnDD,sCAmDC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
export class Otpvalidation extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Sends an SMS with the desired message and an OTP code to the received phone
|
|
7
|
+
* number.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.otpvalidation.sendCode({
|
|
12
|
+
* message:
|
|
13
|
+
* '{{code}} is your short code to authenticate with Cool App via SMS',
|
|
14
|
+
* phoneNumber: '+346661113334',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
sendCode(params, options) {
|
|
19
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
20
|
+
return this._client.post('/otpvalidation/send-code', {
|
|
21
|
+
body,
|
|
22
|
+
...options,
|
|
23
|
+
headers: buildHeaders([
|
|
24
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
25
|
+
options?.headers,
|
|
26
|
+
]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Verifies the code is valid for the received authenticationId
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.otpvalidation.validateCode({
|
|
35
|
+
* authenticationId: 'ea0840f3-3663-4149-bd10-c7c6b8912105',
|
|
36
|
+
* code: 'AJY3',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
validateCode(params, options) {
|
|
41
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
42
|
+
return this._client.post('/otpvalidation/validate-code', {
|
|
43
|
+
body,
|
|
44
|
+
...options,
|
|
45
|
+
headers: buildHeaders([
|
|
46
|
+
{ Accept: '*/*', ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
47
|
+
options?.headers,
|
|
48
|
+
]),
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=otpvalidation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otpvalidation.mjs","sourceRoot":"","sources":["../src/resources/otpvalidation.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC1E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,YAAY,CAAC,MAAuC,EAAE,OAAwB;QAC5E,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE;YACvD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACzF,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Populationdensitydata extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves population density estimation together with the estimation range
|
|
7
|
+
* related for a time slot for a given area (described as a polygon) as a data set
|
|
8
|
+
* consisting of a sequence of equally-sized objects covering the input polygon
|
|
9
|
+
* area.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const populationdensitydata =
|
|
14
|
+
* await client.populationdensitydata.retrieve({
|
|
15
|
+
* area: {
|
|
16
|
+
* areaType: 'POLYGON',
|
|
17
|
+
* boundary: [
|
|
18
|
+
* { latitude: 45.754114, longitude: 4.860374 },
|
|
19
|
+
* { latitude: 45.753845, longitude: 4.863185 },
|
|
20
|
+
* { latitude: 45.75249, longitude: 4.861876 },
|
|
21
|
+
* { latitude: 45.751224, longitude: 4.861125 },
|
|
22
|
+
* { latitude: 45.751442, longitude: 4.859827 },
|
|
23
|
+
* ],
|
|
24
|
+
* },
|
|
25
|
+
* endTime: '2024-04-23T14:44:18.165Z',
|
|
26
|
+
* startTime: '2024-04-23T14:44:18.165Z',
|
|
27
|
+
* precision: 7,
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
retrieve(params: PopulationdensitydataRetrieveParams, options?: RequestOptions): APIPromise<PopulationdensitydataRetrieveResponse>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Population density values is represented in time intervals for different cells
|
|
35
|
+
* of the requested area. Each element in `timedPopulationDensityData` array
|
|
36
|
+
* corresponds to a time interval, containing population density data for the grid
|
|
37
|
+
* cells. The intervals are 1 hour long.
|
|
38
|
+
*/
|
|
39
|
+
export interface PopulationdensitydataRetrieveResponse {
|
|
40
|
+
/**
|
|
41
|
+
* Represents the state of the response for the input polygon defined in the
|
|
42
|
+
* request, the possible values are:
|
|
43
|
+
*
|
|
44
|
+
* - `SUPPORTED_AREA`: The whole request area is supported. Population density data
|
|
45
|
+
* for the entire requested area is returned.
|
|
46
|
+
* - `PART_OF_AREA_NOT_SUPPORTED`: Part of the requested area is outside the MNOs
|
|
47
|
+
* coverage area, the cells outside the coverage area will have property
|
|
48
|
+
* `dataType` with value `NO_DATA`.
|
|
49
|
+
* - `AREA_NOT_SUPPORTED`: The whole requested area is outside the MNOs coverage
|
|
50
|
+
* area. No data will be returned.
|
|
51
|
+
* - `OPERATION_NOT_COMPLETED`: An error happened during asynchronous processing of
|
|
52
|
+
* the request. This status will only be returned in case the asynchronous API
|
|
53
|
+
* behaviour is used.
|
|
54
|
+
*/
|
|
55
|
+
status: 'SUPPORTED_AREA' | 'PART_OF_AREA_NOT_SUPPORTED' | 'AREA_NOT_SUPPORTED' | 'OPERATION_NOT_COMPLETED';
|
|
56
|
+
/**
|
|
57
|
+
* Time ranges along with the population density data for the cells within it. The
|
|
58
|
+
* request startTime or the request endTime have to be fully covered by the
|
|
59
|
+
* intervals. For example, if the intervals are 1-hour long and the input date
|
|
60
|
+
* range were [2024-01-03T11:25:00Z to 2024-01-03T12:45:00Z] it would contain 2
|
|
61
|
+
* intervals (Interval from 2024-01-03T11:00:00Z to 2024-01-03T12:00:00Z and
|
|
62
|
+
* interval from 2024-01-03T12:00:00Z to 2024-01-03T13:00:00Z).
|
|
63
|
+
*/
|
|
64
|
+
timedPopulationDensityData: Array<PopulationdensitydataRetrieveResponse.TimedPopulationDensityData>;
|
|
65
|
+
/**
|
|
66
|
+
* Information about the status, mandatory when property `status` is
|
|
67
|
+
* `OPERATION_NOT_COMPLETED` for adding extra information about the error.
|
|
68
|
+
*/
|
|
69
|
+
statusInfo?: string;
|
|
70
|
+
}
|
|
71
|
+
export declare namespace PopulationdensitydataRetrieveResponse {
|
|
72
|
+
interface TimedPopulationDensityData {
|
|
73
|
+
/**
|
|
74
|
+
* Population density data for the different cells in a concrete time range.
|
|
75
|
+
*/
|
|
76
|
+
cellPopulationDensityData: Array<TimedPopulationDensityData.CellPopulationDensityData>;
|
|
77
|
+
/**
|
|
78
|
+
* Interval end time. It must follow
|
|
79
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
80
|
+
* have time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which
|
|
81
|
+
* allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
|
|
82
|
+
*/
|
|
83
|
+
endTime: string;
|
|
84
|
+
/**
|
|
85
|
+
* Interval start time. It must follow
|
|
86
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
87
|
+
* have time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which
|
|
88
|
+
* allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
|
|
89
|
+
*/
|
|
90
|
+
startTime: string;
|
|
91
|
+
}
|
|
92
|
+
namespace TimedPopulationDensityData {
|
|
93
|
+
/**
|
|
94
|
+
* Population density data of a cell in a concrete time range. In case of
|
|
95
|
+
* insufficient data, to guarantee an anonymized prediction due to the k-anonymity
|
|
96
|
+
* within a specific cell and time range, no population density data is returned
|
|
97
|
+
* and the property `dataType` value is "LOW_DENSITY". In case of a cell not
|
|
98
|
+
* supported `dataType` value is "NO_DATA"
|
|
99
|
+
*/
|
|
100
|
+
interface CellPopulationDensityData {
|
|
101
|
+
dataType: 'NO_DATA' | 'LOW_DENSITY' | 'DENSITY_ESTIMATION';
|
|
102
|
+
/**
|
|
103
|
+
* Coordinates of the cell represented as a string using the
|
|
104
|
+
* [Geohash system](https://en.wikipedia.org/wiki/Geohash). Encoding a geographic
|
|
105
|
+
* location into a short string. The value length, and thus, the cell granularity,
|
|
106
|
+
* is determined by the request body property `precision`.
|
|
107
|
+
*/
|
|
108
|
+
geohash: string;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export interface PopulationdensitydataRetrieveParams {
|
|
113
|
+
/**
|
|
114
|
+
* Body param: Base schema for all areas
|
|
115
|
+
*/
|
|
116
|
+
area: PopulationdensitydataRetrieveParams.Area;
|
|
117
|
+
/**
|
|
118
|
+
* Body param: End date time. It must follow
|
|
119
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
120
|
+
* have time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which
|
|
121
|
+
* allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z) The maximum
|
|
122
|
+
* endTime allowed is 3 months from the time of the request.
|
|
123
|
+
*/
|
|
124
|
+
endTime: string;
|
|
125
|
+
/**
|
|
126
|
+
* Body param: Start date time. It must follow
|
|
127
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
128
|
+
* have time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ
|
|
129
|
+
*/
|
|
130
|
+
startTime: string;
|
|
131
|
+
/**
|
|
132
|
+
* Body param: Precision required of response cells. Precision defines a geohash
|
|
133
|
+
* level and corresponds to the length of the geohash for each cell. More
|
|
134
|
+
* information at [Geohash system](https://en.wikipedia.org/wiki/Geohash)" If not
|
|
135
|
+
* included the default precision level 7 is used by default. In case of using a
|
|
136
|
+
* not supported level by the MNO, the API returns the error response
|
|
137
|
+
* `POPULATION_DENSITY_DATA.UNSUPPORTED_PRECISION`.
|
|
138
|
+
*/
|
|
139
|
+
precision?: number;
|
|
140
|
+
/**
|
|
141
|
+
* Body param: The address where the API response will be asynchronously delivered,
|
|
142
|
+
* using the HTTP protocol.
|
|
143
|
+
*/
|
|
144
|
+
sink?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Body param: A sink credential provides authentication or authorization
|
|
147
|
+
* information necessary to enable delivery of events to a target.
|
|
148
|
+
*/
|
|
149
|
+
sinkCredential?: PopulationdensitydataRetrieveParams.SinkCredential;
|
|
150
|
+
/**
|
|
151
|
+
* Header param: Correlation id for the different services.
|
|
152
|
+
*/
|
|
153
|
+
'x-correlator'?: string;
|
|
154
|
+
}
|
|
155
|
+
export declare namespace PopulationdensitydataRetrieveParams {
|
|
156
|
+
/**
|
|
157
|
+
* Base schema for all areas
|
|
158
|
+
*/
|
|
159
|
+
interface Area {
|
|
160
|
+
/**
|
|
161
|
+
* Type of this area. POLYGON - The area is defined as a polygon.
|
|
162
|
+
*/
|
|
163
|
+
areaType: 'POLYGON';
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* A sink credential provides authentication or authorization information necessary
|
|
167
|
+
* to enable delivery of events to a target.
|
|
168
|
+
*/
|
|
169
|
+
interface SinkCredential {
|
|
170
|
+
/**
|
|
171
|
+
* The type of the credential. Note: Type of the credential - MUST be set to
|
|
172
|
+
* ACCESSTOKEN for now
|
|
173
|
+
*/
|
|
174
|
+
credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export declare namespace Populationdensitydata {
|
|
178
|
+
export { type PopulationdensitydataRetrieveResponse as PopulationdensitydataRetrieveResponse, type PopulationdensitydataRetrieveParams as PopulationdensitydataRetrieveParams, };
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=populationdensitydata.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"populationdensitydata.d.mts","sourceRoot":"","sources":["../src/resources/populationdensitydata.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,QAAQ,CACN,MAAM,EAAE,mCAAmC,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,qCAAqC,CAAC;CAWrD;AAED;;;;;GAKG;AACH,MAAM,WAAW,qCAAqC;IACpD;;;;;;;;;;;;;;OAcG;IACH,MAAM,EAAE,gBAAgB,GAAG,4BAA4B,GAAG,oBAAoB,GAAG,yBAAyB,CAAC;IAE3G;;;;;;;OAOG;IACH,0BAA0B,EAAE,KAAK,CAAC,qCAAqC,CAAC,0BAA0B,CAAC,CAAC;IAEpG;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,yBAAiB,qCAAqC,CAAC;IACrD,UAAiB,0BAA0B;QACzC;;WAEG;QACH,yBAAyB,EAAE,KAAK,CAAC,0BAA0B,CAAC,yBAAyB,CAAC,CAAC;QAEvF;;;;;WAKG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;;;;WAKG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,0BAA0B,CAAC;QAC1C;;;;;;WAMG;QACH,UAAiB,yBAAyB;YACxC,QAAQ,EAAE,SAAS,GAAG,aAAa,GAAG,oBAAoB,CAAC;YAE3D;;;;;eAKG;YACH,OAAO,EAAE,MAAM,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,IAAI,EAAE,mCAAmC,CAAC,IAAI,CAAC;IAE/C;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,cAAc,CAAC,EAAE,mCAAmC,CAAC,cAAc,CAAC;IAEpE;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,mCAAmC,CAAC;IACnD;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,QAAQ,EAAE,SAAS,CAAC;KACrB;IAED;;;OAGG;IACH,UAAiB,cAAc;QAC7B;;;WAGG;QACH,cAAc,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC;KAC1D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EACL,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,mCAAmC,IAAI,mCAAmC,GAChF,CAAC;CACH"}
|