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,178 @@
|
|
|
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 Regiondevicecount extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the number of devices in the specified area during a certain time interval.
|
|
7
|
+
*
|
|
8
|
+
* - The query area can be a circle or a polygon composed of longitude and latitude
|
|
9
|
+
* points.
|
|
10
|
+
* - If the areaType is circle, the circleCenter and circleRadius must be provided;
|
|
11
|
+
* if the area is a polygon, the point list must be provided.
|
|
12
|
+
* - If starttime and endtime are not passed in,this api should return the current
|
|
13
|
+
* number of devices in the area.
|
|
14
|
+
* - If the device appears in the specified area at least once during the certain
|
|
15
|
+
* time interval, it should be counted.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const response = await client.regiondevicecount.getCount({
|
|
20
|
+
* area: {
|
|
21
|
+
* areaType: 'CIRCLE',
|
|
22
|
+
* center: { latitude: 45.754114, longitude: 4.860374 },
|
|
23
|
+
* radius: 800,
|
|
24
|
+
* },
|
|
25
|
+
* endtime: '2023-07-04T14:27:08.312+02:00',
|
|
26
|
+
* filter: {
|
|
27
|
+
* roamingStatus: ['roaming'],
|
|
28
|
+
* deviceType: ['human device', 'IoT device'],
|
|
29
|
+
* },
|
|
30
|
+
* sink: 'https://endpoint.example.com/sink',
|
|
31
|
+
* sinkCredential: {
|
|
32
|
+
* credentialType: 'ACCESSTOKEN',
|
|
33
|
+
* accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
|
|
34
|
+
* accessTokenExpiresUtc: '1717753038',
|
|
35
|
+
* accessTokenType: 'bearer',
|
|
36
|
+
* },
|
|
37
|
+
* starttime: '2023-07-03T14:27:08.312+02:00',
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
getCount(params: RegiondevicecountGetCountParams, options?: RequestOptions): APIPromise<RegiondevicecountGetCountResponse>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* RegionDeviceCount result
|
|
45
|
+
*/
|
|
46
|
+
export interface RegiondevicecountGetCountResponse {
|
|
47
|
+
/**
|
|
48
|
+
* Device Count
|
|
49
|
+
*/
|
|
50
|
+
count?: number;
|
|
51
|
+
/**
|
|
52
|
+
* SUPPORTED_AREA: The whole requested area is supported Region Device Count for
|
|
53
|
+
* the entire requested area is returned - Telco Coverage = 100 %
|
|
54
|
+
*
|
|
55
|
+
* PART_OF_AREA_NOT_SUPPORTED: Part of the requested area is outside the MNOs
|
|
56
|
+
* coverage area, the area outside the coverage area are not returned - 100% >Telco
|
|
57
|
+
* Coverage >=50%
|
|
58
|
+
*
|
|
59
|
+
* AREA_NOT_SUPPORTED: The whole requested area is outside the MNO coverage area No
|
|
60
|
+
* data will be returned- Telco Coverage <50%
|
|
61
|
+
*
|
|
62
|
+
* DENSITY_BELOW_PRIVACY_THRESHOLD: The number of connected devices is below
|
|
63
|
+
* privacy threshold of local regulation
|
|
64
|
+
*
|
|
65
|
+
* TIME_INTERVAL_NO_DATA_FOUND: Unable to find device count data within the
|
|
66
|
+
* requested time interval
|
|
67
|
+
*/
|
|
68
|
+
status?: 'SUPPORTED_AREA' | 'PART_OF_AREA_NOT_SUPPORTED' | 'AREA_NOT_SUPPORTED' | 'DENSITY_BELOW_PRIVACY_THRESHOLD' | 'TIME_INTERVAL_NO_DATA_FOUND';
|
|
69
|
+
}
|
|
70
|
+
export interface RegiondevicecountGetCountParams {
|
|
71
|
+
/**
|
|
72
|
+
* Body param:
|
|
73
|
+
*/
|
|
74
|
+
area?: RegiondevicecountGetCountParams.Area;
|
|
75
|
+
/**
|
|
76
|
+
* Body param: Ending timestamp for counting the number of devices in the area. It
|
|
77
|
+
* must follow
|
|
78
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
79
|
+
* have time zone.
|
|
80
|
+
*/
|
|
81
|
+
endtime?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Body param: This parameter is used to filter devices. Currently, two filtering
|
|
84
|
+
* criteria are defined, `roamingStatus` and `deviceType`, which can be expanded in
|
|
85
|
+
* the future. `IN` logic is used used for multiple filtering items within a single
|
|
86
|
+
* filtering criterion, `AND` logic is used between multiple filtering criteria.
|
|
87
|
+
*
|
|
88
|
+
* - If a filtering critera is not provided, it means that there is no need to
|
|
89
|
+
* filter this item.
|
|
90
|
+
* - At least one of the criteria must be provided,a filter without any criteria is
|
|
91
|
+
* not allowed.
|
|
92
|
+
* - If no filtering is required, this parameter does not need to be provided. For
|
|
93
|
+
* example
|
|
94
|
+
* ,`"filter":{"roamingStatus": ["roaming"],"deviceType": ["human device","IoT device"]}`
|
|
95
|
+
* means the API need to return the count of human network devices and IoT
|
|
96
|
+
* devices that are in roaming mode.`"filter":{"roamingStatus": ["non-roaming"]}`
|
|
97
|
+
* means that the API need to return the count of all devices that are not in
|
|
98
|
+
* roaming mode.
|
|
99
|
+
*/
|
|
100
|
+
filter?: RegiondevicecountGetCountParams.Filter;
|
|
101
|
+
/**
|
|
102
|
+
* Body param: The URL where the API response will be asynchronously delivered,
|
|
103
|
+
* using the HTTP protocol.
|
|
104
|
+
*/
|
|
105
|
+
sink?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Body param: A sink credential provides authentication or authorization
|
|
108
|
+
* information necessary to enable delivery of events to a target.
|
|
109
|
+
*/
|
|
110
|
+
sinkCredential?: RegiondevicecountGetCountParams.SinkCredential;
|
|
111
|
+
/**
|
|
112
|
+
* Body param: Starting timestamp for counting the number of devices in the area.
|
|
113
|
+
* It must follow
|
|
114
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
115
|
+
* have time zone.
|
|
116
|
+
*/
|
|
117
|
+
starttime?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Header param: Correlation ID for cross-service tracking
|
|
120
|
+
*/
|
|
121
|
+
'x-correlator'?: string;
|
|
122
|
+
}
|
|
123
|
+
export declare namespace RegiondevicecountGetCountParams {
|
|
124
|
+
interface Area {
|
|
125
|
+
/**
|
|
126
|
+
* Type of this area. CIRCLE - The area is defined as a circle. POLYGON - The area
|
|
127
|
+
* is defined as a polygon.
|
|
128
|
+
*/
|
|
129
|
+
areaType: 'CIRCLE' | 'POLYGON';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* This parameter is used to filter devices. Currently, two filtering criteria are
|
|
133
|
+
* defined, `roamingStatus` and `deviceType`, which can be expanded in the future.
|
|
134
|
+
* `IN` logic is used used for multiple filtering items within a single filtering
|
|
135
|
+
* criterion, `AND` logic is used between multiple filtering criteria.
|
|
136
|
+
*
|
|
137
|
+
* - If a filtering critera is not provided, it means that there is no need to
|
|
138
|
+
* filter this item.
|
|
139
|
+
* - At least one of the criteria must be provided,a filter without any criteria is
|
|
140
|
+
* not allowed.
|
|
141
|
+
* - If no filtering is required, this parameter does not need to be provided. For
|
|
142
|
+
* example
|
|
143
|
+
* ,`"filter":{"roamingStatus": ["roaming"],"deviceType": ["human device","IoT device"]}`
|
|
144
|
+
* means the API need to return the count of human network devices and IoT
|
|
145
|
+
* devices that are in roaming mode.`"filter":{"roamingStatus": ["non-roaming"]}`
|
|
146
|
+
* means that the API need to return the count of all devices that are not in
|
|
147
|
+
* roaming mode.
|
|
148
|
+
*/
|
|
149
|
+
interface Filter {
|
|
150
|
+
/**
|
|
151
|
+
* Filtering by device type, 'human device' represents the need to filter for human
|
|
152
|
+
* network devices, 'IoT device' represents the need to filter for IoT devices, and
|
|
153
|
+
* 'other' represents the need to filter for other types of devices.
|
|
154
|
+
*/
|
|
155
|
+
deviceType?: Array<'human device' | 'IoT device' | 'other'>;
|
|
156
|
+
/**
|
|
157
|
+
* Filter whether the device is in roaming mode,'roaming' represents the need to
|
|
158
|
+
* filter devices that are in roaming mode,'non-roaming' represents the need to
|
|
159
|
+
* filter devices that are not roaming.
|
|
160
|
+
*/
|
|
161
|
+
roamingStatus?: Array<'roaming' | 'non-roaming'>;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* A sink credential provides authentication or authorization information necessary
|
|
165
|
+
* to enable delivery of events to a target.
|
|
166
|
+
*/
|
|
167
|
+
interface SinkCredential {
|
|
168
|
+
/**
|
|
169
|
+
* The type of the credential. Note: Type of the credential - MUST be set to
|
|
170
|
+
* ACCESSTOKEN for now
|
|
171
|
+
*/
|
|
172
|
+
credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
export declare namespace Regiondevicecount {
|
|
176
|
+
export { type RegiondevicecountGetCountResponse as RegiondevicecountGetCountResponse, type RegiondevicecountGetCountParams as RegiondevicecountGetCountParams, };
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=regiondevicecount.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regiondevicecount.d.mts","sourceRoot":"","sources":["../src/resources/regiondevicecount.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,QAAQ,CACN,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAWjD;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EACH,gBAAgB,GAChB,4BAA4B,GAC5B,oBAAoB,GACpB,iCAAiC,GACjC,6BAA6B,CAAC;CACnC;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,+BAA+B,CAAC,IAAI,CAAC;IAE5C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,EAAE,+BAA+B,CAAC,MAAM,CAAC;IAEhD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,cAAc,CAAC,EAAE,+BAA+B,CAAC,cAAc,CAAC;IAEhE;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,IAAI;QACnB;;;WAGG;QACH,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;KAChC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAiB,MAAM;QACrB;;;;WAIG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,YAAY,GAAG,OAAO,CAAC,CAAC;QAE5D;;;;WAIG;QACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,aAAa,CAAC,CAAC;KAClD;IAED;;;OAGG;IACH,UAAiB,cAAc;QAC7B;;;WAGG;QACH,cAAc,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC;KAC1D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,178 @@
|
|
|
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 Regiondevicecount extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the number of devices in the specified area during a certain time interval.
|
|
7
|
+
*
|
|
8
|
+
* - The query area can be a circle or a polygon composed of longitude and latitude
|
|
9
|
+
* points.
|
|
10
|
+
* - If the areaType is circle, the circleCenter and circleRadius must be provided;
|
|
11
|
+
* if the area is a polygon, the point list must be provided.
|
|
12
|
+
* - If starttime and endtime are not passed in,this api should return the current
|
|
13
|
+
* number of devices in the area.
|
|
14
|
+
* - If the device appears in the specified area at least once during the certain
|
|
15
|
+
* time interval, it should be counted.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const response = await client.regiondevicecount.getCount({
|
|
20
|
+
* area: {
|
|
21
|
+
* areaType: 'CIRCLE',
|
|
22
|
+
* center: { latitude: 45.754114, longitude: 4.860374 },
|
|
23
|
+
* radius: 800,
|
|
24
|
+
* },
|
|
25
|
+
* endtime: '2023-07-04T14:27:08.312+02:00',
|
|
26
|
+
* filter: {
|
|
27
|
+
* roamingStatus: ['roaming'],
|
|
28
|
+
* deviceType: ['human device', 'IoT device'],
|
|
29
|
+
* },
|
|
30
|
+
* sink: 'https://endpoint.example.com/sink',
|
|
31
|
+
* sinkCredential: {
|
|
32
|
+
* credentialType: 'ACCESSTOKEN',
|
|
33
|
+
* accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
|
|
34
|
+
* accessTokenExpiresUtc: '1717753038',
|
|
35
|
+
* accessTokenType: 'bearer',
|
|
36
|
+
* },
|
|
37
|
+
* starttime: '2023-07-03T14:27:08.312+02:00',
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
getCount(params: RegiondevicecountGetCountParams, options?: RequestOptions): APIPromise<RegiondevicecountGetCountResponse>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* RegionDeviceCount result
|
|
45
|
+
*/
|
|
46
|
+
export interface RegiondevicecountGetCountResponse {
|
|
47
|
+
/**
|
|
48
|
+
* Device Count
|
|
49
|
+
*/
|
|
50
|
+
count?: number;
|
|
51
|
+
/**
|
|
52
|
+
* SUPPORTED_AREA: The whole requested area is supported Region Device Count for
|
|
53
|
+
* the entire requested area is returned - Telco Coverage = 100 %
|
|
54
|
+
*
|
|
55
|
+
* PART_OF_AREA_NOT_SUPPORTED: Part of the requested area is outside the MNOs
|
|
56
|
+
* coverage area, the area outside the coverage area are not returned - 100% >Telco
|
|
57
|
+
* Coverage >=50%
|
|
58
|
+
*
|
|
59
|
+
* AREA_NOT_SUPPORTED: The whole requested area is outside the MNO coverage area No
|
|
60
|
+
* data will be returned- Telco Coverage <50%
|
|
61
|
+
*
|
|
62
|
+
* DENSITY_BELOW_PRIVACY_THRESHOLD: The number of connected devices is below
|
|
63
|
+
* privacy threshold of local regulation
|
|
64
|
+
*
|
|
65
|
+
* TIME_INTERVAL_NO_DATA_FOUND: Unable to find device count data within the
|
|
66
|
+
* requested time interval
|
|
67
|
+
*/
|
|
68
|
+
status?: 'SUPPORTED_AREA' | 'PART_OF_AREA_NOT_SUPPORTED' | 'AREA_NOT_SUPPORTED' | 'DENSITY_BELOW_PRIVACY_THRESHOLD' | 'TIME_INTERVAL_NO_DATA_FOUND';
|
|
69
|
+
}
|
|
70
|
+
export interface RegiondevicecountGetCountParams {
|
|
71
|
+
/**
|
|
72
|
+
* Body param:
|
|
73
|
+
*/
|
|
74
|
+
area?: RegiondevicecountGetCountParams.Area;
|
|
75
|
+
/**
|
|
76
|
+
* Body param: Ending timestamp for counting the number of devices in the area. It
|
|
77
|
+
* must follow
|
|
78
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
79
|
+
* have time zone.
|
|
80
|
+
*/
|
|
81
|
+
endtime?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Body param: This parameter is used to filter devices. Currently, two filtering
|
|
84
|
+
* criteria are defined, `roamingStatus` and `deviceType`, which can be expanded in
|
|
85
|
+
* the future. `IN` logic is used used for multiple filtering items within a single
|
|
86
|
+
* filtering criterion, `AND` logic is used between multiple filtering criteria.
|
|
87
|
+
*
|
|
88
|
+
* - If a filtering critera is not provided, it means that there is no need to
|
|
89
|
+
* filter this item.
|
|
90
|
+
* - At least one of the criteria must be provided,a filter without any criteria is
|
|
91
|
+
* not allowed.
|
|
92
|
+
* - If no filtering is required, this parameter does not need to be provided. For
|
|
93
|
+
* example
|
|
94
|
+
* ,`"filter":{"roamingStatus": ["roaming"],"deviceType": ["human device","IoT device"]}`
|
|
95
|
+
* means the API need to return the count of human network devices and IoT
|
|
96
|
+
* devices that are in roaming mode.`"filter":{"roamingStatus": ["non-roaming"]}`
|
|
97
|
+
* means that the API need to return the count of all devices that are not in
|
|
98
|
+
* roaming mode.
|
|
99
|
+
*/
|
|
100
|
+
filter?: RegiondevicecountGetCountParams.Filter;
|
|
101
|
+
/**
|
|
102
|
+
* Body param: The URL where the API response will be asynchronously delivered,
|
|
103
|
+
* using the HTTP protocol.
|
|
104
|
+
*/
|
|
105
|
+
sink?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Body param: A sink credential provides authentication or authorization
|
|
108
|
+
* information necessary to enable delivery of events to a target.
|
|
109
|
+
*/
|
|
110
|
+
sinkCredential?: RegiondevicecountGetCountParams.SinkCredential;
|
|
111
|
+
/**
|
|
112
|
+
* Body param: Starting timestamp for counting the number of devices in the area.
|
|
113
|
+
* It must follow
|
|
114
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
115
|
+
* have time zone.
|
|
116
|
+
*/
|
|
117
|
+
starttime?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Header param: Correlation ID for cross-service tracking
|
|
120
|
+
*/
|
|
121
|
+
'x-correlator'?: string;
|
|
122
|
+
}
|
|
123
|
+
export declare namespace RegiondevicecountGetCountParams {
|
|
124
|
+
interface Area {
|
|
125
|
+
/**
|
|
126
|
+
* Type of this area. CIRCLE - The area is defined as a circle. POLYGON - The area
|
|
127
|
+
* is defined as a polygon.
|
|
128
|
+
*/
|
|
129
|
+
areaType: 'CIRCLE' | 'POLYGON';
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* This parameter is used to filter devices. Currently, two filtering criteria are
|
|
133
|
+
* defined, `roamingStatus` and `deviceType`, which can be expanded in the future.
|
|
134
|
+
* `IN` logic is used used for multiple filtering items within a single filtering
|
|
135
|
+
* criterion, `AND` logic is used between multiple filtering criteria.
|
|
136
|
+
*
|
|
137
|
+
* - If a filtering critera is not provided, it means that there is no need to
|
|
138
|
+
* filter this item.
|
|
139
|
+
* - At least one of the criteria must be provided,a filter without any criteria is
|
|
140
|
+
* not allowed.
|
|
141
|
+
* - If no filtering is required, this parameter does not need to be provided. For
|
|
142
|
+
* example
|
|
143
|
+
* ,`"filter":{"roamingStatus": ["roaming"],"deviceType": ["human device","IoT device"]}`
|
|
144
|
+
* means the API need to return the count of human network devices and IoT
|
|
145
|
+
* devices that are in roaming mode.`"filter":{"roamingStatus": ["non-roaming"]}`
|
|
146
|
+
* means that the API need to return the count of all devices that are not in
|
|
147
|
+
* roaming mode.
|
|
148
|
+
*/
|
|
149
|
+
interface Filter {
|
|
150
|
+
/**
|
|
151
|
+
* Filtering by device type, 'human device' represents the need to filter for human
|
|
152
|
+
* network devices, 'IoT device' represents the need to filter for IoT devices, and
|
|
153
|
+
* 'other' represents the need to filter for other types of devices.
|
|
154
|
+
*/
|
|
155
|
+
deviceType?: Array<'human device' | 'IoT device' | 'other'>;
|
|
156
|
+
/**
|
|
157
|
+
* Filter whether the device is in roaming mode,'roaming' represents the need to
|
|
158
|
+
* filter devices that are in roaming mode,'non-roaming' represents the need to
|
|
159
|
+
* filter devices that are not roaming.
|
|
160
|
+
*/
|
|
161
|
+
roamingStatus?: Array<'roaming' | 'non-roaming'>;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* A sink credential provides authentication or authorization information necessary
|
|
165
|
+
* to enable delivery of events to a target.
|
|
166
|
+
*/
|
|
167
|
+
interface SinkCredential {
|
|
168
|
+
/**
|
|
169
|
+
* The type of the credential. Note: Type of the credential - MUST be set to
|
|
170
|
+
* ACCESSTOKEN for now
|
|
171
|
+
*/
|
|
172
|
+
credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
export declare namespace Regiondevicecount {
|
|
176
|
+
export { type RegiondevicecountGetCountResponse as RegiondevicecountGetCountResponse, type RegiondevicecountGetCountParams as RegiondevicecountGetCountParams, };
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=regiondevicecount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regiondevicecount.d.ts","sourceRoot":"","sources":["../src/resources/regiondevicecount.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,QAAQ,CACN,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAWjD;AAED;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EACH,gBAAgB,GAChB,4BAA4B,GAC5B,oBAAoB,GACpB,iCAAiC,GACjC,6BAA6B,CAAC;CACnC;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,IAAI,CAAC,EAAE,+BAA+B,CAAC,IAAI,CAAC;IAE5C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,EAAE,+BAA+B,CAAC,MAAM,CAAC;IAEhD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,cAAc,CAAC,EAAE,+BAA+B,CAAC,cAAc,CAAC;IAEhE;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,IAAI;QACnB;;;WAGG;QACH,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;KAChC;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,UAAiB,MAAM;QACrB;;;;WAIG;QACH,UAAU,CAAC,EAAE,KAAK,CAAC,cAAc,GAAG,YAAY,GAAG,OAAO,CAAC,CAAC;QAE5D;;;;WAIG;QACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,aAAa,CAAC,CAAC;KAClD;IAED;;;OAGG;IACH,UAAiB,cAAc;QAC7B;;;WAGG;QACH,cAAc,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC;KAC1D;CACF;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.Regiondevicecount = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
class Regiondevicecount extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get the number of devices in the specified area during a certain time interval.
|
|
10
|
+
*
|
|
11
|
+
* - The query area can be a circle or a polygon composed of longitude and latitude
|
|
12
|
+
* points.
|
|
13
|
+
* - If the areaType is circle, the circleCenter and circleRadius must be provided;
|
|
14
|
+
* if the area is a polygon, the point list must be provided.
|
|
15
|
+
* - If starttime and endtime are not passed in,this api should return the current
|
|
16
|
+
* number of devices in the area.
|
|
17
|
+
* - If the device appears in the specified area at least once during the certain
|
|
18
|
+
* time interval, it should be counted.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response = await client.regiondevicecount.getCount({
|
|
23
|
+
* area: {
|
|
24
|
+
* areaType: 'CIRCLE',
|
|
25
|
+
* center: { latitude: 45.754114, longitude: 4.860374 },
|
|
26
|
+
* radius: 800,
|
|
27
|
+
* },
|
|
28
|
+
* endtime: '2023-07-04T14:27:08.312+02:00',
|
|
29
|
+
* filter: {
|
|
30
|
+
* roamingStatus: ['roaming'],
|
|
31
|
+
* deviceType: ['human device', 'IoT device'],
|
|
32
|
+
* },
|
|
33
|
+
* sink: 'https://endpoint.example.com/sink',
|
|
34
|
+
* sinkCredential: {
|
|
35
|
+
* credentialType: 'ACCESSTOKEN',
|
|
36
|
+
* accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
|
|
37
|
+
* accessTokenExpiresUtc: '1717753038',
|
|
38
|
+
* accessTokenType: 'bearer',
|
|
39
|
+
* },
|
|
40
|
+
* starttime: '2023-07-03T14:27:08.312+02:00',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
getCount(params, options) {
|
|
45
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
46
|
+
return this._client.post('/regiondevicecount/count', {
|
|
47
|
+
body,
|
|
48
|
+
...options,
|
|
49
|
+
headers: (0, headers_1.buildHeaders)([
|
|
50
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
51
|
+
options?.headers,
|
|
52
|
+
]),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.Regiondevicecount = Regiondevicecount;
|
|
57
|
+
//# sourceMappingURL=regiondevicecount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regiondevicecount.js","sourceRoot":"","sources":["../src/resources/regiondevicecount.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAGnD,MAAa,iBAAkB,SAAQ,sBAAW;IAChD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,QAAQ,CACN,MAAuC,EACvC,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;CACF;AAnDD,8CAmDC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 Regiondevicecount extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the number of devices in the specified area during a certain time interval.
|
|
7
|
+
*
|
|
8
|
+
* - The query area can be a circle or a polygon composed of longitude and latitude
|
|
9
|
+
* points.
|
|
10
|
+
* - If the areaType is circle, the circleCenter and circleRadius must be provided;
|
|
11
|
+
* if the area is a polygon, the point list must be provided.
|
|
12
|
+
* - If starttime and endtime are not passed in,this api should return the current
|
|
13
|
+
* number of devices in the area.
|
|
14
|
+
* - If the device appears in the specified area at least once during the certain
|
|
15
|
+
* time interval, it should be counted.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const response = await client.regiondevicecount.getCount({
|
|
20
|
+
* area: {
|
|
21
|
+
* areaType: 'CIRCLE',
|
|
22
|
+
* center: { latitude: 45.754114, longitude: 4.860374 },
|
|
23
|
+
* radius: 800,
|
|
24
|
+
* },
|
|
25
|
+
* endtime: '2023-07-04T14:27:08.312+02:00',
|
|
26
|
+
* filter: {
|
|
27
|
+
* roamingStatus: ['roaming'],
|
|
28
|
+
* deviceType: ['human device', 'IoT device'],
|
|
29
|
+
* },
|
|
30
|
+
* sink: 'https://endpoint.example.com/sink',
|
|
31
|
+
* sinkCredential: {
|
|
32
|
+
* credentialType: 'ACCESSTOKEN',
|
|
33
|
+
* accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
|
|
34
|
+
* accessTokenExpiresUtc: '1717753038',
|
|
35
|
+
* accessTokenType: 'bearer',
|
|
36
|
+
* },
|
|
37
|
+
* starttime: '2023-07-03T14:27:08.312+02:00',
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
getCount(params, options) {
|
|
42
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
43
|
+
return this._client.post('/regiondevicecount/count', {
|
|
44
|
+
body,
|
|
45
|
+
...options,
|
|
46
|
+
headers: buildHeaders([
|
|
47
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
48
|
+
options?.headers,
|
|
49
|
+
]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=regiondevicecount.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regiondevicecount.mjs","sourceRoot":"","sources":["../src/resources/regiondevicecount.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;AAGvB,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,QAAQ,CACN,MAAuC,EACvC,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;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Simswap } from "./simswap.mjs";
|
|
2
|
+
export { Subscriptions, type SimSwapConfig, type SimSwapProtocol, type SimSwapSubscription, type SimSwapSubscriptionEventType, type SubscriptionListResponse, type SubscriptionDeleteResponse, type SubscriptionCreateParams, type SubscriptionRetrieveParams, type SubscriptionListParams, type SubscriptionDeleteParams, } from "./subscriptions.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/simswap/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Simswap } from "./simswap.js";
|
|
2
|
+
export { Subscriptions, type SimSwapConfig, type SimSwapProtocol, type SimSwapSubscription, type SimSwapSubscriptionEventType, type SubscriptionListResponse, type SubscriptionDeleteResponse, type SubscriptionCreateParams, type SubscriptionRetrieveParams, type SubscriptionListParams, type SubscriptionDeleteParams, } from "./subscriptions.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/simswap/index.ts"],"names":[],"mappings":"OAEO,EAAE,OAAO,EAAE;OACX,EACL,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Subscriptions = exports.Simswap = void 0;
|
|
5
|
+
var simswap_1 = require("./simswap.js");
|
|
6
|
+
Object.defineProperty(exports, "Simswap", { enumerable: true, get: function () { return simswap_1.Simswap; } });
|
|
7
|
+
var subscriptions_1 = require("./subscriptions.js");
|
|
8
|
+
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return subscriptions_1.Subscriptions; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/simswap/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,oDAYyB;AAXvB,8GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/simswap/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,OAAO,EAAE;OACX,EACL,aAAa,GAWd"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as SubscriptionsAPI from "./subscriptions.mjs";
|
|
3
|
+
import { SimSwapConfig, SimSwapProtocol, SimSwapSubscription, SimSwapSubscriptionEventType, SubscriptionCreateParams, SubscriptionDeleteParams, SubscriptionDeleteResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionRetrieveParams, Subscriptions } from "./subscriptions.mjs";
|
|
4
|
+
export declare class Simswap extends APIResource {
|
|
5
|
+
subscriptions: SubscriptionsAPI.Subscriptions;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Simswap {
|
|
8
|
+
export { Subscriptions as Subscriptions, type SimSwapConfig as SimSwapConfig, type SimSwapProtocol as SimSwapProtocol, type SimSwapSubscription as SimSwapSubscription, type SimSwapSubscriptionEventType as SimSwapSubscriptionEventType, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionDeleteParams as SubscriptionDeleteParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=simswap.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simswap.d.mts","sourceRoot":"","sources":["../../src/resources/simswap/simswap.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EACL,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACd;AAED,qBAAa,OAAQ,SAAQ,WAAW;IACtC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as SubscriptionsAPI from "./subscriptions.js";
|
|
3
|
+
import { SimSwapConfig, SimSwapProtocol, SimSwapSubscription, SimSwapSubscriptionEventType, SubscriptionCreateParams, SubscriptionDeleteParams, SubscriptionDeleteResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionRetrieveParams, Subscriptions } from "./subscriptions.js";
|
|
4
|
+
export declare class Simswap extends APIResource {
|
|
5
|
+
subscriptions: SubscriptionsAPI.Subscriptions;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Simswap {
|
|
8
|
+
export { Subscriptions as Subscriptions, type SimSwapConfig as SimSwapConfig, type SimSwapProtocol as SimSwapProtocol, type SimSwapSubscription as SimSwapSubscription, type SimSwapSubscriptionEventType as SimSwapSubscriptionEventType, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionDeleteParams as SubscriptionDeleteParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=simswap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simswap.d.ts","sourceRoot":"","sources":["../../src/resources/simswap/simswap.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EACL,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,4BAA4B,EAC5B,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACd;AAED,qBAAa,OAAQ,SAAQ,WAAW;IACtC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.Simswap = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const SubscriptionsAPI = tslib_1.__importStar(require("./subscriptions.js"));
|
|
8
|
+
const subscriptions_1 = require("./subscriptions.js");
|
|
9
|
+
class Simswap extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Simswap = Simswap;
|
|
16
|
+
Simswap.Subscriptions = subscriptions_1.Subscriptions;
|
|
17
|
+
//# sourceMappingURL=simswap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simswap.js","sourceRoot":"","sources":["../../src/resources/simswap/simswap.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6EAAoD;AACpD,sDAYyB;AAEzB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAFD,0BAEC;AAED,OAAO,CAAC,aAAa,GAAG,6BAAa,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as SubscriptionsAPI from "./subscriptions.mjs";
|
|
4
|
+
import { Subscriptions, } from "./subscriptions.mjs";
|
|
5
|
+
export class Simswap extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Simswap.Subscriptions = Subscriptions;
|
|
12
|
+
//# sourceMappingURL=simswap.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simswap.mjs","sourceRoot":"","sources":["../../src/resources/simswap/simswap.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAWL,aAAa,GACd;AAED,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAED,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC"}
|