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,448 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as SubscriptionsAPI from "./subscriptions.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Subscriptions extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a subscription for a device to receive notifications when the device
|
|
8
|
+
* enters or exits a specified area.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const deviceLocationSubscription =
|
|
13
|
+
* await client.devicelocation.subscriptions.create({
|
|
14
|
+
* config: {
|
|
15
|
+
* subscriptionDetail: {
|
|
16
|
+
* device: { phoneNumber: '+12345678912' },
|
|
17
|
+
* area: {
|
|
18
|
+
* areaType: 'CIRCLE',
|
|
19
|
+
* center: {
|
|
20
|
+
* latitude: 50.735851,
|
|
21
|
+
* longitude: 7.10066,
|
|
22
|
+
* },
|
|
23
|
+
* radius: 2000,
|
|
24
|
+
* },
|
|
25
|
+
* },
|
|
26
|
+
* initialEvent: true,
|
|
27
|
+
* subscriptionMaxEvents: 10,
|
|
28
|
+
* subscriptionExpireTime: '2024-03-22T05:40:58.469Z',
|
|
29
|
+
* },
|
|
30
|
+
* protocol: 'HTTP',
|
|
31
|
+
* sink: 'https://notificationSendServer12.supertelco.com',
|
|
32
|
+
* types: [
|
|
33
|
+
* 'org.camaraproject.geofencing-subscriptions.v0.area-entered',
|
|
34
|
+
* ],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
create(params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<DeviceLocationSubscription>;
|
|
39
|
+
/**
|
|
40
|
+
* Retrieve Geofencing subscription information for a given subscription ID.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const deviceLocationSubscription =
|
|
45
|
+
* await client.devicelocation.subscriptions.retrieve(
|
|
46
|
+
* 'qs15-h556-rt89-1298',
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
retrieve(subscriptionID: string, params?: SubscriptionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<DeviceLocationSubscription>;
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve a list of geofencing event subscription(s).
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const deviceLocationSubscriptions =
|
|
57
|
+
* await client.devicelocation.subscriptions.list();
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
list(params?: SubscriptionListParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionListResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* Delete a given Geofencing subscription.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const subscription =
|
|
67
|
+
* await client.devicelocation.subscriptions.delete(
|
|
68
|
+
* 'qs15-h556-rt89-1298',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
delete(subscriptionID: string, params?: SubscriptionDeleteParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionDeleteResponse>;
|
|
73
|
+
}
|
|
74
|
+
export interface DeviceLocationArea {
|
|
75
|
+
/**
|
|
76
|
+
* Type of this area. CIRCLE - The area is defined as a circle.
|
|
77
|
+
*/
|
|
78
|
+
areaType: 'CIRCLE';
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Implementation-specific configuration parameters are needed by the subscription
|
|
82
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
83
|
+
* `subscriptionExpireTime`, `subscriptionMaxEvents`, `initialEvent`.
|
|
84
|
+
*/
|
|
85
|
+
export interface DeviceLocationConfig {
|
|
86
|
+
/**
|
|
87
|
+
* Set to `true` by API consumer if consumer wants to get an event as soon as the
|
|
88
|
+
* subscription is created and current situation reflects event request. Example:
|
|
89
|
+
* Consumer request area entered event. If consumer sets initialEvent to true and
|
|
90
|
+
* device is already in the geofence, an event is triggered.
|
|
91
|
+
*/
|
|
92
|
+
initialEvent?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* The subscription expiration time (in date-time format) requested by the API
|
|
95
|
+
* consumer. It must follow
|
|
96
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
97
|
+
* have time zone.
|
|
98
|
+
*/
|
|
99
|
+
subscriptionExpireTime?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Identifies the maximum number of event reports to be generated (>=1) requested
|
|
102
|
+
* by the API consumer - Once this number is reached, the subscription ends. Note
|
|
103
|
+
* on combined usage of `initialEvent` and `subscriptionMaxEvents`: If an event is
|
|
104
|
+
* triggered following `initialEvent` set to `true`, this event will be counted
|
|
105
|
+
* towards `subscriptionMaxEvents`.
|
|
106
|
+
*/
|
|
107
|
+
subscriptionMaxEvents?: number;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* End-user device able to connect to a mobile network. Examples of devices include
|
|
111
|
+
* smartphones or IoT sensors/actuators.
|
|
112
|
+
*
|
|
113
|
+
* The developer can choose to provide the below specified device identifiers:
|
|
114
|
+
*
|
|
115
|
+
* - `ipv4Address`
|
|
116
|
+
* - `ipv6Address`
|
|
117
|
+
* - `phoneNumber`
|
|
118
|
+
* - `networkAccessIdentifier`
|
|
119
|
+
*
|
|
120
|
+
* NOTE1: the API provider might support only a subset of these options. The API
|
|
121
|
+
* consumer can provide multiple identifiers to be compatible across different API
|
|
122
|
+
* providers. In this case the identifiers MUST belong to the same device. Where
|
|
123
|
+
* more than one device identifier is provided, only one identifier will be
|
|
124
|
+
* selected by the implementation and this choice indicated to the API consumer in
|
|
125
|
+
* the response or event. NOTE2: as for this Commonalities release, we are
|
|
126
|
+
* enforcing that the networkAccessIdentifier is only part of the schema for
|
|
127
|
+
* future-proofing, and CAMARA does not currently allow its use. After the CAMARA
|
|
128
|
+
* meta-release work is concluded and the relevant issues are resolved, its use
|
|
129
|
+
* will need to be explicitly documented in the guidelines.
|
|
130
|
+
*/
|
|
131
|
+
export interface DeviceLocationDevice {
|
|
132
|
+
/**
|
|
133
|
+
* The device should be identified by either the public (observed) IP address and
|
|
134
|
+
* port as seen by the application server, or the private (local) and any public
|
|
135
|
+
* (observed) IP addresses in use by the device (this information can be obtained
|
|
136
|
+
* by various means, for example from some DNS servers).
|
|
137
|
+
*
|
|
138
|
+
* If the allocated and observed IP addresses are the same (i.e. NAT is not in use)
|
|
139
|
+
* then the same address should be specified for both publicAddress and
|
|
140
|
+
* privateAddress.
|
|
141
|
+
*
|
|
142
|
+
* If NAT64 is in use, the device should be identified by its publicAddress and
|
|
143
|
+
* publicPort, or separately by its allocated IPv6 address (field ipv6Address of
|
|
144
|
+
* the Device object)
|
|
145
|
+
*
|
|
146
|
+
* In all cases, publicAddress must be specified, along with at least one of either
|
|
147
|
+
* privateAddress or publicPort, dependent upon which is known. In general, mobile
|
|
148
|
+
* devices cannot be identified by their public IPv4 address alone.
|
|
149
|
+
*/
|
|
150
|
+
ipv4Address?: DeviceLocationDevice.Ipv4Address;
|
|
151
|
+
/**
|
|
152
|
+
* The device should be identified by the observed IPv6 address, or by any single
|
|
153
|
+
* IPv6 address from within the subnet allocated to the device (e.g. adding ::0 to
|
|
154
|
+
* the /64 prefix).
|
|
155
|
+
*/
|
|
156
|
+
ipv6Address?: string;
|
|
157
|
+
/**
|
|
158
|
+
* A public identifier addressing a subscription in a mobile network. In 3GPP
|
|
159
|
+
* terminology, it corresponds to the GPSI formatted with the External Identifier
|
|
160
|
+
* ({Local Identifier}@{Domain Identifier}). Unlike the telephone number, the
|
|
161
|
+
* network access identifier is not subjected to portability ruling in force, and
|
|
162
|
+
* is individually managed by each operator.
|
|
163
|
+
*/
|
|
164
|
+
networkAccessIdentifier?: string;
|
|
165
|
+
/**
|
|
166
|
+
* A public identifier addressing a telephone subscription. In mobile networks, it
|
|
167
|
+
* corresponds to the MSISDN (Mobile Station International Subscriber Directory
|
|
168
|
+
* Number). In order to be globally unique it has to be formatted in international
|
|
169
|
+
* format, according to E.164 standard, prefixed with '+'.
|
|
170
|
+
*/
|
|
171
|
+
phoneNumber?: string;
|
|
172
|
+
}
|
|
173
|
+
export declare namespace DeviceLocationDevice {
|
|
174
|
+
/**
|
|
175
|
+
* The device should be identified by either the public (observed) IP address and
|
|
176
|
+
* port as seen by the application server, or the private (local) and any public
|
|
177
|
+
* (observed) IP addresses in use by the device (this information can be obtained
|
|
178
|
+
* by various means, for example from some DNS servers).
|
|
179
|
+
*
|
|
180
|
+
* If the allocated and observed IP addresses are the same (i.e. NAT is not in use)
|
|
181
|
+
* then the same address should be specified for both publicAddress and
|
|
182
|
+
* privateAddress.
|
|
183
|
+
*
|
|
184
|
+
* If NAT64 is in use, the device should be identified by its publicAddress and
|
|
185
|
+
* publicPort, or separately by its allocated IPv6 address (field ipv6Address of
|
|
186
|
+
* the Device object)
|
|
187
|
+
*
|
|
188
|
+
* In all cases, publicAddress must be specified, along with at least one of either
|
|
189
|
+
* privateAddress or publicPort, dependent upon which is known. In general, mobile
|
|
190
|
+
* devices cannot be identified by their public IPv4 address alone.
|
|
191
|
+
*/
|
|
192
|
+
interface Ipv4Address {
|
|
193
|
+
/**
|
|
194
|
+
* A single IPv4 address with no subnet mask.
|
|
195
|
+
*/
|
|
196
|
+
privateAddress?: string;
|
|
197
|
+
/**
|
|
198
|
+
* A single IPv4 address with no subnet mask.
|
|
199
|
+
*/
|
|
200
|
+
publicAddress?: string;
|
|
201
|
+
/**
|
|
202
|
+
* TCP or UDP port number.
|
|
203
|
+
*/
|
|
204
|
+
publicPort?: number;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Identifier of a delivery protocol. Only HTTP is allowed for now.
|
|
209
|
+
*/
|
|
210
|
+
export type DeviceLocationProtocol = 'HTTP' | 'MQTT3' | 'MQTT5' | 'AMQP' | 'NATS' | 'KAFKA';
|
|
211
|
+
/**
|
|
212
|
+
* Represents a event-type subscription.
|
|
213
|
+
*/
|
|
214
|
+
export interface DeviceLocationSubscription {
|
|
215
|
+
/**
|
|
216
|
+
* The unique identifier of the subscription in the scope of the subscription
|
|
217
|
+
* manager. When this information is contained within an event notification, this
|
|
218
|
+
* concept SHALL be referred as subscriptionId as per Commonalities Event
|
|
219
|
+
* Notification Model.
|
|
220
|
+
*/
|
|
221
|
+
id: string;
|
|
222
|
+
/**
|
|
223
|
+
* Implementation-specific configuration parameters are needed by the subscription
|
|
224
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
225
|
+
* `subscriptionExpireTime`, `subscriptionMaxEvents`, `initialEvent`.
|
|
226
|
+
*/
|
|
227
|
+
config: DeviceLocationSubscription.Config;
|
|
228
|
+
/**
|
|
229
|
+
* Identifier of a delivery protocol. Only HTTP is allowed for now.
|
|
230
|
+
*/
|
|
231
|
+
protocol: DeviceLocationProtocol;
|
|
232
|
+
/**
|
|
233
|
+
* The address to which events shall be delivered using the selected protocol.
|
|
234
|
+
*/
|
|
235
|
+
sink: string;
|
|
236
|
+
/**
|
|
237
|
+
* Date when the event subscription will begin/began It must follow
|
|
238
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
239
|
+
* have time zone.
|
|
240
|
+
*/
|
|
241
|
+
startsAt: string;
|
|
242
|
+
/**
|
|
243
|
+
* Camara Event types eligible to be delivered by this subscription. Note: As of
|
|
244
|
+
* now we enforce to have only event type per subscription.
|
|
245
|
+
*/
|
|
246
|
+
types: Array<DeviceLocationSubscriptionEventType>;
|
|
247
|
+
/**
|
|
248
|
+
* Date when the event subscription will expire. Only provided when
|
|
249
|
+
* `subscriptionExpireTime` is indicated by API client or Telco Operator has
|
|
250
|
+
* specific policy about that. It must follow
|
|
251
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
252
|
+
* have time zone.
|
|
253
|
+
*/
|
|
254
|
+
expiresAt?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Current status of the subscription - Management of Subscription State engine is
|
|
257
|
+
* not mandatory for now. Note not all statuses may be considered to be
|
|
258
|
+
* implemented. Details:
|
|
259
|
+
*
|
|
260
|
+
* - `ACTIVATION_REQUESTED`: Subscription creation (POST) is triggered but
|
|
261
|
+
* subscription creation process is not finished yet.
|
|
262
|
+
* - `ACTIVE`: Subscription creation process is completed. Subscription is fully
|
|
263
|
+
* operative.
|
|
264
|
+
* - `INACTIVE`: Subscription is temporarily inactive, but its workflow logic is
|
|
265
|
+
* not deleted.
|
|
266
|
+
* - `EXPIRED`: Subscription is ended (no longer active). This status applies when
|
|
267
|
+
* subscription is ended due to `SUBSCRIPTION_EXPIRED` or `ACCESS_TOKEN_EXPIRED`
|
|
268
|
+
* event.
|
|
269
|
+
* - `DELETED`: Subscription is ended as deleted (no longer active). This status
|
|
270
|
+
* applies when subscription information is kept (i.e. subscription workflow is
|
|
271
|
+
* no longer active but its meta-information is kept).
|
|
272
|
+
*/
|
|
273
|
+
status?: 'ACTIVATION_REQUESTED' | 'ACTIVE' | 'EXPIRED' | 'INACTIVE' | 'DELETED';
|
|
274
|
+
}
|
|
275
|
+
export declare namespace DeviceLocationSubscription {
|
|
276
|
+
/**
|
|
277
|
+
* Implementation-specific configuration parameters are needed by the subscription
|
|
278
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
279
|
+
* `subscriptionExpireTime`, `subscriptionMaxEvents`, `initialEvent`.
|
|
280
|
+
*/
|
|
281
|
+
interface Config extends SubscriptionsAPI.DeviceLocationConfig {
|
|
282
|
+
/**
|
|
283
|
+
* The detail of the event subscription granted by the implementation.
|
|
284
|
+
*/
|
|
285
|
+
subscriptionDetail: Config.SubscriptionDetail;
|
|
286
|
+
}
|
|
287
|
+
namespace Config {
|
|
288
|
+
/**
|
|
289
|
+
* The detail of the event subscription granted by the implementation.
|
|
290
|
+
*/
|
|
291
|
+
interface SubscriptionDetail {
|
|
292
|
+
area: SubscriptionsAPI.DeviceLocationArea;
|
|
293
|
+
/**
|
|
294
|
+
* End-user device able to connect to a mobile network. Examples of devices include
|
|
295
|
+
* smartphones or IoT sensors/actuators.
|
|
296
|
+
*
|
|
297
|
+
* The developer can choose to provide the below specified device identifiers:
|
|
298
|
+
*
|
|
299
|
+
* - `ipv4Address`
|
|
300
|
+
* - `ipv6Address`
|
|
301
|
+
* - `phoneNumber`
|
|
302
|
+
* - `networkAccessIdentifier`
|
|
303
|
+
*
|
|
304
|
+
* NOTE1: the API provider might support only a subset of these options. The API
|
|
305
|
+
* consumer can provide multiple identifiers to be compatible across different API
|
|
306
|
+
* providers. In this case the identifiers MUST belong to the same device. Where
|
|
307
|
+
* more than one device identifier is provided, only one identifier will be
|
|
308
|
+
* selected by the implementation and this choice indicated to the API consumer in
|
|
309
|
+
* the response or event. NOTE2: as for this Commonalities release, we are
|
|
310
|
+
* enforcing that the networkAccessIdentifier is only part of the schema for
|
|
311
|
+
* future-proofing, and CAMARA does not currently allow its use. After the CAMARA
|
|
312
|
+
* meta-release work is concluded and the relevant issues are resolved, its use
|
|
313
|
+
* will need to be explicitly documented in the guidelines.
|
|
314
|
+
*/
|
|
315
|
+
device?: SubscriptionsAPI.DeviceLocationDevice;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* area-entered - Event triggered when the device enters the given area
|
|
321
|
+
*
|
|
322
|
+
* area-left - Event triggered when the device leaves the given area
|
|
323
|
+
*/
|
|
324
|
+
export type DeviceLocationSubscriptionEventType = 'org.camaraproject.geofencing-subscriptions.v0.area-entered' | 'org.camaraproject.geofencing-subscriptions.v0.area-left';
|
|
325
|
+
export type SubscriptionListResponse = Array<DeviceLocationSubscription>;
|
|
326
|
+
/**
|
|
327
|
+
* Response for an event-type subscription request managed asynchronously (Creation
|
|
328
|
+
* or Deletion).
|
|
329
|
+
*/
|
|
330
|
+
export interface SubscriptionDeleteResponse {
|
|
331
|
+
/**
|
|
332
|
+
* The unique identifier of the subscription in the scope of the subscription
|
|
333
|
+
* manager. When this information is contained within an event notification, this
|
|
334
|
+
* concept SHALL be referred as subscriptionId as per Commonalities Event
|
|
335
|
+
* Notification Model.
|
|
336
|
+
*/
|
|
337
|
+
id: string;
|
|
338
|
+
}
|
|
339
|
+
export interface SubscriptionCreateParams {
|
|
340
|
+
/**
|
|
341
|
+
* Body param: Implementation-specific configuration parameters are needed by the
|
|
342
|
+
* subscription manager for acquiring events. In CAMARA we have predefined
|
|
343
|
+
* attributes like `subscriptionExpireTime`, `subscriptionMaxEvents`,
|
|
344
|
+
* `initialEvent`.
|
|
345
|
+
*/
|
|
346
|
+
config: SubscriptionCreateParams.Config;
|
|
347
|
+
/**
|
|
348
|
+
* Body param: Identifier of a delivery protocol. Only HTTP is allowed for now.
|
|
349
|
+
*/
|
|
350
|
+
protocol: DeviceLocationProtocol;
|
|
351
|
+
/**
|
|
352
|
+
* Body param: The address to which events shall be delivered using the selected
|
|
353
|
+
* protocol.
|
|
354
|
+
*/
|
|
355
|
+
sink: string;
|
|
356
|
+
/**
|
|
357
|
+
* Body param: Camara Event types which are eligible to be delivered by this
|
|
358
|
+
* subscription. Note: As of now we enforce to have only event type per
|
|
359
|
+
* subscription.
|
|
360
|
+
*/
|
|
361
|
+
types: Array<DeviceLocationSubscriptionEventType>;
|
|
362
|
+
/**
|
|
363
|
+
* Body param: A sink credential provides authentication or authorization
|
|
364
|
+
* information necessary to enable delivery of events to a target.
|
|
365
|
+
*/
|
|
366
|
+
sinkCredential?: SubscriptionCreateParams.SinkCredential;
|
|
367
|
+
/**
|
|
368
|
+
* Header param: Correlation id for the different services.
|
|
369
|
+
*/
|
|
370
|
+
'x-correlator'?: string;
|
|
371
|
+
}
|
|
372
|
+
export declare namespace SubscriptionCreateParams {
|
|
373
|
+
/**
|
|
374
|
+
* Implementation-specific configuration parameters are needed by the subscription
|
|
375
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
376
|
+
* `subscriptionExpireTime`, `subscriptionMaxEvents`, `initialEvent`.
|
|
377
|
+
*/
|
|
378
|
+
interface Config extends SubscriptionsAPI.DeviceLocationConfig {
|
|
379
|
+
/**
|
|
380
|
+
* The detail of the requested event subscription.
|
|
381
|
+
*/
|
|
382
|
+
subscriptionDetail: Config.SubscriptionDetail;
|
|
383
|
+
}
|
|
384
|
+
namespace Config {
|
|
385
|
+
/**
|
|
386
|
+
* The detail of the requested event subscription.
|
|
387
|
+
*/
|
|
388
|
+
interface SubscriptionDetail {
|
|
389
|
+
area: SubscriptionsAPI.DeviceLocationArea;
|
|
390
|
+
/**
|
|
391
|
+
* End-user device able to connect to a mobile network. Examples of devices include
|
|
392
|
+
* smartphones or IoT sensors/actuators.
|
|
393
|
+
*
|
|
394
|
+
* The developer can choose to provide the below specified device identifiers:
|
|
395
|
+
*
|
|
396
|
+
* - `ipv4Address`
|
|
397
|
+
* - `ipv6Address`
|
|
398
|
+
* - `phoneNumber`
|
|
399
|
+
* - `networkAccessIdentifier`
|
|
400
|
+
*
|
|
401
|
+
* NOTE1: the API provider might support only a subset of these options. The API
|
|
402
|
+
* consumer can provide multiple identifiers to be compatible across different API
|
|
403
|
+
* providers. In this case the identifiers MUST belong to the same device. Where
|
|
404
|
+
* more than one device identifier is provided, only one identifier will be
|
|
405
|
+
* selected by the implementation and this choice indicated to the API consumer in
|
|
406
|
+
* the response or event. NOTE2: as for this Commonalities release, we are
|
|
407
|
+
* enforcing that the networkAccessIdentifier is only part of the schema for
|
|
408
|
+
* future-proofing, and CAMARA does not currently allow its use. After the CAMARA
|
|
409
|
+
* meta-release work is concluded and the relevant issues are resolved, its use
|
|
410
|
+
* will need to be explicitly documented in the guidelines.
|
|
411
|
+
*/
|
|
412
|
+
device?: SubscriptionsAPI.DeviceLocationDevice;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* A sink credential provides authentication or authorization information necessary
|
|
417
|
+
* to enable delivery of events to a target.
|
|
418
|
+
*/
|
|
419
|
+
interface SinkCredential {
|
|
420
|
+
/**
|
|
421
|
+
* The type of the credential. Note: Type of the credential - MUST be set to
|
|
422
|
+
* ACCESSTOKEN for now
|
|
423
|
+
*/
|
|
424
|
+
credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
export interface SubscriptionRetrieveParams {
|
|
428
|
+
/**
|
|
429
|
+
* Correlation id for the different services.
|
|
430
|
+
*/
|
|
431
|
+
'x-correlator'?: string;
|
|
432
|
+
}
|
|
433
|
+
export interface SubscriptionListParams {
|
|
434
|
+
/**
|
|
435
|
+
* Correlation id for the different services.
|
|
436
|
+
*/
|
|
437
|
+
'x-correlator'?: string;
|
|
438
|
+
}
|
|
439
|
+
export interface SubscriptionDeleteParams {
|
|
440
|
+
/**
|
|
441
|
+
* Correlation id for the different services.
|
|
442
|
+
*/
|
|
443
|
+
'x-correlator'?: string;
|
|
444
|
+
}
|
|
445
|
+
export declare namespace Subscriptions {
|
|
446
|
+
export { type DeviceLocationArea as DeviceLocationArea, type DeviceLocationConfig as DeviceLocationConfig, type DeviceLocationDevice as DeviceLocationDevice, type DeviceLocationProtocol as DeviceLocationProtocol, type DeviceLocationSubscription as DeviceLocationSubscription, type DeviceLocationSubscriptionEventType as DeviceLocationSubscriptionEventType, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionDeleteParams as SubscriptionDeleteParams, };
|
|
447
|
+
}
|
|
448
|
+
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/resources/devicelocation/subscriptions.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Subscriptions extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a subscription for a device to receive notifications when the device
|
|
11
|
+
* enters or exits a specified area.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const deviceLocationSubscription =
|
|
16
|
+
* await client.devicelocation.subscriptions.create({
|
|
17
|
+
* config: {
|
|
18
|
+
* subscriptionDetail: {
|
|
19
|
+
* device: { phoneNumber: '+12345678912' },
|
|
20
|
+
* area: {
|
|
21
|
+
* areaType: 'CIRCLE',
|
|
22
|
+
* center: {
|
|
23
|
+
* latitude: 50.735851,
|
|
24
|
+
* longitude: 7.10066,
|
|
25
|
+
* },
|
|
26
|
+
* radius: 2000,
|
|
27
|
+
* },
|
|
28
|
+
* },
|
|
29
|
+
* initialEvent: true,
|
|
30
|
+
* subscriptionMaxEvents: 10,
|
|
31
|
+
* subscriptionExpireTime: '2024-03-22T05:40:58.469Z',
|
|
32
|
+
* },
|
|
33
|
+
* protocol: 'HTTP',
|
|
34
|
+
* sink: 'https://notificationSendServer12.supertelco.com',
|
|
35
|
+
* types: [
|
|
36
|
+
* 'org.camaraproject.geofencing-subscriptions.v0.area-entered',
|
|
37
|
+
* ],
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
create(params, options) {
|
|
42
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
43
|
+
return this._client.post('/devicelocation/subscriptions', {
|
|
44
|
+
body,
|
|
45
|
+
...options,
|
|
46
|
+
headers: (0, headers_1.buildHeaders)([
|
|
47
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
48
|
+
options?.headers,
|
|
49
|
+
]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve Geofencing subscription information for a given subscription ID.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const deviceLocationSubscription =
|
|
58
|
+
* await client.devicelocation.subscriptions.retrieve(
|
|
59
|
+
* 'qs15-h556-rt89-1298',
|
|
60
|
+
* );
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
retrieve(subscriptionID, params = {}, options) {
|
|
64
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
65
|
+
return this._client.get((0, path_1.path) `/devicelocation/subscriptions/${subscriptionID}`, {
|
|
66
|
+
...options,
|
|
67
|
+
headers: (0, headers_1.buildHeaders)([
|
|
68
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
69
|
+
options?.headers,
|
|
70
|
+
]),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Retrieve a list of geofencing event subscription(s).
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const deviceLocationSubscriptions =
|
|
79
|
+
* await client.devicelocation.subscriptions.list();
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
list(params = {}, options) {
|
|
83
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
84
|
+
return this._client.get('/devicelocation/subscriptions', {
|
|
85
|
+
...options,
|
|
86
|
+
headers: (0, headers_1.buildHeaders)([
|
|
87
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
88
|
+
options?.headers,
|
|
89
|
+
]),
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Delete a given Geofencing subscription.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* const subscription =
|
|
98
|
+
* await client.devicelocation.subscriptions.delete(
|
|
99
|
+
* 'qs15-h556-rt89-1298',
|
|
100
|
+
* );
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
delete(subscriptionID, params = {}, options) {
|
|
104
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
105
|
+
return this._client.delete((0, path_1.path) `/devicelocation/subscriptions/${subscriptionID}`, {
|
|
106
|
+
...options,
|
|
107
|
+
headers: (0, headers_1.buildHeaders)([
|
|
108
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
109
|
+
options?.headers,
|
|
110
|
+
]),
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.Subscriptions = Subscriptions;
|
|
115
|
+
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/resources/devicelocation/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,MAAM,CAAC,MAAgC,EAAE,OAAwB;QAC/D,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACxD,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,QAAQ,CACN,cAAsB,EACtB,SAAwD,EAAE,EAC1D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iCAAiC,cAAc,EAAE,EAAE;YAC7E,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;;;;;;;;OAQG;IACH,IAAI,CACF,SAAoD,EAAE,EACtD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE;YACvD,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,MAAM,CACJ,cAAsB,EACtB,SAAsD,EAAE,EACxD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,iCAAiC,cAAc,EAAE,EAAE;YAChF,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;AAvHD,sCAuHC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Subscriptions extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a subscription for a device to receive notifications when the device
|
|
8
|
+
* enters or exits a specified area.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const deviceLocationSubscription =
|
|
13
|
+
* await client.devicelocation.subscriptions.create({
|
|
14
|
+
* config: {
|
|
15
|
+
* subscriptionDetail: {
|
|
16
|
+
* device: { phoneNumber: '+12345678912' },
|
|
17
|
+
* area: {
|
|
18
|
+
* areaType: 'CIRCLE',
|
|
19
|
+
* center: {
|
|
20
|
+
* latitude: 50.735851,
|
|
21
|
+
* longitude: 7.10066,
|
|
22
|
+
* },
|
|
23
|
+
* radius: 2000,
|
|
24
|
+
* },
|
|
25
|
+
* },
|
|
26
|
+
* initialEvent: true,
|
|
27
|
+
* subscriptionMaxEvents: 10,
|
|
28
|
+
* subscriptionExpireTime: '2024-03-22T05:40:58.469Z',
|
|
29
|
+
* },
|
|
30
|
+
* protocol: 'HTTP',
|
|
31
|
+
* sink: 'https://notificationSendServer12.supertelco.com',
|
|
32
|
+
* types: [
|
|
33
|
+
* 'org.camaraproject.geofencing-subscriptions.v0.area-entered',
|
|
34
|
+
* ],
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
create(params, options) {
|
|
39
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
40
|
+
return this._client.post('/devicelocation/subscriptions', {
|
|
41
|
+
body,
|
|
42
|
+
...options,
|
|
43
|
+
headers: buildHeaders([
|
|
44
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
45
|
+
options?.headers,
|
|
46
|
+
]),
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Retrieve Geofencing subscription information for a given subscription ID.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const deviceLocationSubscription =
|
|
55
|
+
* await client.devicelocation.subscriptions.retrieve(
|
|
56
|
+
* 'qs15-h556-rt89-1298',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
retrieve(subscriptionID, params = {}, options) {
|
|
61
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
62
|
+
return this._client.get(path `/devicelocation/subscriptions/${subscriptionID}`, {
|
|
63
|
+
...options,
|
|
64
|
+
headers: buildHeaders([
|
|
65
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
66
|
+
options?.headers,
|
|
67
|
+
]),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Retrieve a list of geofencing event subscription(s).
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const deviceLocationSubscriptions =
|
|
76
|
+
* await client.devicelocation.subscriptions.list();
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
list(params = {}, options) {
|
|
80
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
81
|
+
return this._client.get('/devicelocation/subscriptions', {
|
|
82
|
+
...options,
|
|
83
|
+
headers: buildHeaders([
|
|
84
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
85
|
+
options?.headers,
|
|
86
|
+
]),
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Delete a given Geofencing subscription.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* const subscription =
|
|
95
|
+
* await client.devicelocation.subscriptions.delete(
|
|
96
|
+
* 'qs15-h556-rt89-1298',
|
|
97
|
+
* );
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
delete(subscriptionID, params = {}, options) {
|
|
101
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
102
|
+
return this._client.delete(path `/devicelocation/subscriptions/${subscriptionID}`, {
|
|
103
|
+
...options,
|
|
104
|
+
headers: buildHeaders([
|
|
105
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
106
|
+
options?.headers,
|
|
107
|
+
]),
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=subscriptions.mjs.map
|