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,140 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Callforwardingsignal extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* This endpoint provides information about which type of call forwarding service
|
|
11
|
+
* is active. More than one service can be active, e.g. conditional and
|
|
12
|
+
* unconditional. This endpoint exceeds the main scope of the Call Forwarding
|
|
13
|
+
* Signal API, for this reason an error code 501 can be returned.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const response =
|
|
18
|
+
* await client.callforwardingsignal.checkActiveForwardings();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
checkActiveForwardings(
|
|
22
|
+
params: CallforwardingsignalCheckActiveForwardingsParams,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<CallforwardingsignalCheckActiveForwardingsResponse> {
|
|
25
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
26
|
+
return this._client.post('/callforwardingsignal/call-forwardings', {
|
|
27
|
+
body,
|
|
28
|
+
...options,
|
|
29
|
+
headers: buildHeaders([
|
|
30
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
31
|
+
options?.headers,
|
|
32
|
+
]),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* This endpoint provides information about the status of the unconditional call
|
|
38
|
+
* forwarding, being active or not.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const response =
|
|
43
|
+
* await client.callforwardingsignal.checkUnconditionalForwarding();
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
checkUnconditionalForwarding(
|
|
47
|
+
params: CallforwardingsignalCheckUnconditionalForwardingParams,
|
|
48
|
+
options?: RequestOptions,
|
|
49
|
+
): APIPromise<CallforwardingsignalCheckUnconditionalForwardingResponse> {
|
|
50
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
51
|
+
return this._client.post('/callforwardingsignal/unconditional-call-forwardings', {
|
|
52
|
+
body,
|
|
53
|
+
...options,
|
|
54
|
+
headers: buildHeaders([
|
|
55
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
56
|
+
options?.headers,
|
|
57
|
+
]),
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* resource containing the phone number (PhoneNumber) regarding which the Call
|
|
64
|
+
* Forwarding Service must be checked. To be provided/valued only in case of
|
|
65
|
+
* two-legged authentication. If provided/valued with three-legged authentication a
|
|
66
|
+
* 422-UNNECESSARY_IDENTIFIER error code is returned.
|
|
67
|
+
*/
|
|
68
|
+
export interface CallForwardingSignal {
|
|
69
|
+
/**
|
|
70
|
+
* A public identifier addressing a telephone subscription. In mobile networks it
|
|
71
|
+
* corresponds to the MSISDN (Mobile Station International Subscriber Directory
|
|
72
|
+
* Number). In order to be globally unique it has to be formatted in international
|
|
73
|
+
* format, according to E.164 standard, prefixed with '+'.
|
|
74
|
+
*/
|
|
75
|
+
phoneNumber?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* resource containing the list of the Call Forwarding Services active for the
|
|
80
|
+
* given phone number (PhoneNumber). The possible states are, 'inactive' (no call
|
|
81
|
+
* forwarding service activated), 'unconditional' (call forwarded independently
|
|
82
|
+
* from the device status), 'conditional_busy' (call forwarded if the device is on
|
|
83
|
+
* an active call), 'conditional_not_reachable' (call forwarded if the device is
|
|
84
|
+
* not reachable), 'conditional_no_answer' (call forwarded if the device doesn't
|
|
85
|
+
* answer the incoming call).
|
|
86
|
+
*/
|
|
87
|
+
export type CallforwardingsignalCheckActiveForwardingsResponse = Array<
|
|
88
|
+
'inactive' | 'unconditional' | 'conditional_busy' | 'conditional_not_reachable' | 'conditional_no_answer'
|
|
89
|
+
>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* resource containing the information about the Unconditional Call Forwarding
|
|
93
|
+
* Service for the given phone number (PhoneNumber)
|
|
94
|
+
*/
|
|
95
|
+
export interface CallforwardingsignalCheckUnconditionalForwardingResponse {
|
|
96
|
+
/**
|
|
97
|
+
* Indicates if the unconditional call forwarding service is active.
|
|
98
|
+
*/
|
|
99
|
+
active?: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface CallforwardingsignalCheckActiveForwardingsParams {
|
|
103
|
+
/**
|
|
104
|
+
* Body param: A public identifier addressing a telephone subscription. In mobile
|
|
105
|
+
* networks it corresponds to the MSISDN (Mobile Station International Subscriber
|
|
106
|
+
* Directory Number). In order to be globally unique it has to be formatted in
|
|
107
|
+
* international format, according to E.164 standard, prefixed with '+'.
|
|
108
|
+
*/
|
|
109
|
+
phoneNumber?: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Header param: Correlation id for the different services
|
|
113
|
+
*/
|
|
114
|
+
'x-correlator'?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface CallforwardingsignalCheckUnconditionalForwardingParams {
|
|
118
|
+
/**
|
|
119
|
+
* Body param: A public identifier addressing a telephone subscription. In mobile
|
|
120
|
+
* networks it corresponds to the MSISDN (Mobile Station International Subscriber
|
|
121
|
+
* Directory Number). In order to be globally unique it has to be formatted in
|
|
122
|
+
* international format, according to E.164 standard, prefixed with '+'.
|
|
123
|
+
*/
|
|
124
|
+
phoneNumber?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Header param: Correlation id for the different services
|
|
128
|
+
*/
|
|
129
|
+
'x-correlator'?: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export declare namespace Callforwardingsignal {
|
|
133
|
+
export {
|
|
134
|
+
type CallForwardingSignal as CallForwardingSignal,
|
|
135
|
+
type CallforwardingsignalCheckActiveForwardingsResponse as CallforwardingsignalCheckActiveForwardingsResponse,
|
|
136
|
+
type CallforwardingsignalCheckUnconditionalForwardingResponse as CallforwardingsignalCheckUnconditionalForwardingResponse,
|
|
137
|
+
type CallforwardingsignalCheckActiveForwardingsParams as CallforwardingsignalCheckActiveForwardingsParams,
|
|
138
|
+
type CallforwardingsignalCheckUnconditionalForwardingParams as CallforwardingsignalCheckUnconditionalForwardingParams,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as SubscriptionsAPI from './subscriptions';
|
|
5
|
+
import {
|
|
6
|
+
ConnectedNetworkTypeConfig,
|
|
7
|
+
ConnectedNetworkTypeProtocol,
|
|
8
|
+
ConnectedNetworkTypeSubscription,
|
|
9
|
+
ConnectedNetworkTypeSubscriptionEventType,
|
|
10
|
+
SubscriptionCreateParams,
|
|
11
|
+
SubscriptionDeleteParams,
|
|
12
|
+
SubscriptionDeleteResponse,
|
|
13
|
+
SubscriptionListParams,
|
|
14
|
+
SubscriptionListResponse,
|
|
15
|
+
SubscriptionRetrieveParams,
|
|
16
|
+
Subscriptions,
|
|
17
|
+
} from './subscriptions';
|
|
18
|
+
|
|
19
|
+
export class Connectednetworktype extends APIResource {
|
|
20
|
+
subscriptions: SubscriptionsAPI.Subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
Connectednetworktype.Subscriptions = Subscriptions;
|
|
24
|
+
|
|
25
|
+
export declare namespace Connectednetworktype {
|
|
26
|
+
export {
|
|
27
|
+
Subscriptions as Subscriptions,
|
|
28
|
+
type ConnectedNetworkTypeConfig as ConnectedNetworkTypeConfig,
|
|
29
|
+
type ConnectedNetworkTypeProtocol as ConnectedNetworkTypeProtocol,
|
|
30
|
+
type ConnectedNetworkTypeSubscription as ConnectedNetworkTypeSubscription,
|
|
31
|
+
type ConnectedNetworkTypeSubscriptionEventType as ConnectedNetworkTypeSubscriptionEventType,
|
|
32
|
+
type SubscriptionListResponse as SubscriptionListResponse,
|
|
33
|
+
type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
|
|
34
|
+
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
35
|
+
type SubscriptionRetrieveParams as SubscriptionRetrieveParams,
|
|
36
|
+
type SubscriptionListParams as SubscriptionListParams,
|
|
37
|
+
type SubscriptionDeleteParams as SubscriptionDeleteParams,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Connectednetworktype } from './connectednetworktype';
|
|
4
|
+
export {
|
|
5
|
+
Subscriptions,
|
|
6
|
+
type ConnectedNetworkTypeConfig,
|
|
7
|
+
type ConnectedNetworkTypeProtocol,
|
|
8
|
+
type ConnectedNetworkTypeSubscription,
|
|
9
|
+
type ConnectedNetworkTypeSubscriptionEventType,
|
|
10
|
+
type SubscriptionListResponse,
|
|
11
|
+
type SubscriptionDeleteResponse,
|
|
12
|
+
type SubscriptionCreateParams,
|
|
13
|
+
type SubscriptionRetrieveParams,
|
|
14
|
+
type SubscriptionListParams,
|
|
15
|
+
type SubscriptionDeleteParams,
|
|
16
|
+
} from './subscriptions';
|
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Subscriptions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a subscription for receiving notifications on changes to the connected
|
|
12
|
+
* network type of a device.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const connectedNetworkTypeSubscription =
|
|
17
|
+
* await client.connectednetworktype.subscriptions.create({
|
|
18
|
+
* config: {
|
|
19
|
+
* subscriptionDetail: {
|
|
20
|
+
* device: { phoneNumber: '+123456789' },
|
|
21
|
+
* },
|
|
22
|
+
* subscriptionExpireTime: '2023-01-17T13:18:23.682Z',
|
|
23
|
+
* subscriptionMaxEvents: 5,
|
|
24
|
+
* initialEvent: true,
|
|
25
|
+
* },
|
|
26
|
+
* protocol: 'HTTP',
|
|
27
|
+
* sink: 'https://endpoint.example.com/sink',
|
|
28
|
+
* types: [
|
|
29
|
+
* 'org.camaraproject.connected-network-type-subscriptions.v0.network-type-changed',
|
|
30
|
+
* ],
|
|
31
|
+
* sinkCredential: {
|
|
32
|
+
* credentialType: 'ACCESSTOKEN',
|
|
33
|
+
* accessToken: 'xxx',
|
|
34
|
+
* accessTokenExpiresUtc: '2024-02-17T16:23:45Z',
|
|
35
|
+
* accessTokenType: 'bearer',
|
|
36
|
+
* },
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
create(
|
|
41
|
+
params: SubscriptionCreateParams,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<ConnectedNetworkTypeSubscription> {
|
|
44
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
45
|
+
return this._client.post('/connectednetworktype/subscriptions', {
|
|
46
|
+
body,
|
|
47
|
+
...options,
|
|
48
|
+
headers: buildHeaders([
|
|
49
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
50
|
+
options?.headers,
|
|
51
|
+
]),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* retrieve ConnectedNetworkType subscription information for a given subscription
|
|
57
|
+
* ID.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const connectedNetworkTypeSubscription =
|
|
62
|
+
* await client.connectednetworktype.subscriptions.retrieve(
|
|
63
|
+
* 'qs15-h556-rt89-1298',
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
retrieve(
|
|
68
|
+
subscriptionID: string,
|
|
69
|
+
params: SubscriptionRetrieveParams | null | undefined = {},
|
|
70
|
+
options?: RequestOptions,
|
|
71
|
+
): APIPromise<ConnectedNetworkTypeSubscription> {
|
|
72
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
73
|
+
return this._client.get(path`/connectednetworktype/subscriptions/${subscriptionID}`, {
|
|
74
|
+
...options,
|
|
75
|
+
headers: buildHeaders([
|
|
76
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
77
|
+
options?.headers,
|
|
78
|
+
]),
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Retrieve a list of device connected network type event subscription(s)
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const connectedNetworkTypeSubscriptions =
|
|
88
|
+
* await client.connectednetworktype.subscriptions.list();
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
list(
|
|
92
|
+
params: SubscriptionListParams | null | undefined = {},
|
|
93
|
+
options?: RequestOptions,
|
|
94
|
+
): APIPromise<SubscriptionListResponse> {
|
|
95
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
96
|
+
return this._client.get('/connectednetworktype/subscriptions', {
|
|
97
|
+
...options,
|
|
98
|
+
headers: buildHeaders([
|
|
99
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
100
|
+
options?.headers,
|
|
101
|
+
]),
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* delete a given ConnectedNetworkType subscription.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```ts
|
|
110
|
+
* const subscription =
|
|
111
|
+
* await client.connectednetworktype.subscriptions.delete(
|
|
112
|
+
* 'qs15-h556-rt89-1298',
|
|
113
|
+
* );
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
delete(
|
|
117
|
+
subscriptionID: string,
|
|
118
|
+
params: SubscriptionDeleteParams | null | undefined = {},
|
|
119
|
+
options?: RequestOptions,
|
|
120
|
+
): APIPromise<SubscriptionDeleteResponse> {
|
|
121
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
122
|
+
return this._client.delete(path`/connectednetworktype/subscriptions/${subscriptionID}`, {
|
|
123
|
+
...options,
|
|
124
|
+
headers: buildHeaders([
|
|
125
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
126
|
+
options?.headers,
|
|
127
|
+
]),
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Implementation-specific configuration parameters needed by the subscription
|
|
134
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
135
|
+
* `subscriptionExpireTime`, `subscriptionMaxEvents`, `initialEvent` Specific event
|
|
136
|
+
* type attributes must be defined in `subscriptionDetail` Note: if a request is
|
|
137
|
+
* performed for several event type, all subscribed event will use same `config`
|
|
138
|
+
* parameters.
|
|
139
|
+
*/
|
|
140
|
+
export interface ConnectedNetworkTypeConfig {
|
|
141
|
+
/**
|
|
142
|
+
* The detail of the requested event subscription.
|
|
143
|
+
*/
|
|
144
|
+
subscriptionDetail: ConnectedNetworkTypeConfig.SubscriptionDetail;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Set to `true` by API consumer if consumer wants to get an event as soon as the
|
|
148
|
+
* subscription is created and current situation reflects event request. Example:
|
|
149
|
+
* Consumer request area entered event. If consumer sets initialEvent to true and
|
|
150
|
+
* device is already in the geofence, an event is triggered
|
|
151
|
+
*/
|
|
152
|
+
initialEvent?: boolean;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The subscription expiration time (in date-time format) requested by the API
|
|
156
|
+
* consumer.
|
|
157
|
+
*/
|
|
158
|
+
subscriptionExpireTime?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Identifies the maximum number of event reports to be generated (>=1) requested
|
|
162
|
+
* by the API consumer - Once this number is reached, the subscription ends.
|
|
163
|
+
*/
|
|
164
|
+
subscriptionMaxEvents?: number;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export namespace ConnectedNetworkTypeConfig {
|
|
168
|
+
/**
|
|
169
|
+
* The detail of the requested event subscription.
|
|
170
|
+
*/
|
|
171
|
+
export interface SubscriptionDetail {
|
|
172
|
+
/**
|
|
173
|
+
* End-user equipment able to connect to a mobile network. Examples of devices
|
|
174
|
+
* include smartphones or IoT sensors/actuators.
|
|
175
|
+
*
|
|
176
|
+
* The developer can choose to provide the below specified device identifiers:
|
|
177
|
+
*
|
|
178
|
+
* - `ipv4Address`
|
|
179
|
+
* - `ipv6Address`
|
|
180
|
+
* - `phoneNumber`
|
|
181
|
+
* - `networkAccessIdentifier`
|
|
182
|
+
*
|
|
183
|
+
* NOTE: the MNO might support only a subset of these options. The API invoker can
|
|
184
|
+
* provide multiple identifiers to be compatible across different MNOs. In this
|
|
185
|
+
* case the identifiers MUST belong to the same device.
|
|
186
|
+
*/
|
|
187
|
+
device?: SubscriptionDetail.Device;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export namespace SubscriptionDetail {
|
|
191
|
+
/**
|
|
192
|
+
* End-user equipment able to connect to a mobile network. Examples of devices
|
|
193
|
+
* include smartphones or IoT sensors/actuators.
|
|
194
|
+
*
|
|
195
|
+
* The developer can choose to provide the below specified device identifiers:
|
|
196
|
+
*
|
|
197
|
+
* - `ipv4Address`
|
|
198
|
+
* - `ipv6Address`
|
|
199
|
+
* - `phoneNumber`
|
|
200
|
+
* - `networkAccessIdentifier`
|
|
201
|
+
*
|
|
202
|
+
* NOTE: the MNO might support only a subset of these options. The API invoker can
|
|
203
|
+
* provide multiple identifiers to be compatible across different MNOs. In this
|
|
204
|
+
* case the identifiers MUST belong to the same device.
|
|
205
|
+
*/
|
|
206
|
+
export interface Device {
|
|
207
|
+
/**
|
|
208
|
+
* The device should be identified by either the public (observed) IP address and
|
|
209
|
+
* port as seen by the application server, or the private (local) and any public
|
|
210
|
+
* (observed) IP addresses in use by the device (this information can be obtained
|
|
211
|
+
* by various means, for example from some DNS servers).
|
|
212
|
+
*
|
|
213
|
+
* If the allocated and observed IP addresses are the same (i.e. NAT is not in use)
|
|
214
|
+
* then the same address should be specified for both publicAddress and
|
|
215
|
+
* privateAddress.
|
|
216
|
+
*
|
|
217
|
+
* If NAT64 is in use, the device should be identified by its publicAddress and
|
|
218
|
+
* publicPort, or separately by its allocated IPv6 address (field ipv6Address of
|
|
219
|
+
* the Device object)
|
|
220
|
+
*
|
|
221
|
+
* In all cases, publicAddress must be specified, along with at least one of either
|
|
222
|
+
* privateAddress or publicPort, dependent upon which is known. In general, mobile
|
|
223
|
+
* devices cannot be identified by their public IPv4 address alone.
|
|
224
|
+
*/
|
|
225
|
+
ipv4Address?: Device.Ipv4Address;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The device should be identified by the observed IPv6 address, or by any single
|
|
229
|
+
* IPv6 address from within the subnet allocated to the device (e.g. adding ::0 to
|
|
230
|
+
* the /64 prefix).
|
|
231
|
+
*/
|
|
232
|
+
ipv6Address?: string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* A public identifier addressing a subscription in a mobile network. In 3GPP
|
|
236
|
+
* terminology, it corresponds to the GPSI formatted with the External Identifier
|
|
237
|
+
* ({Local Identifier}@{Domain Identifier}). Unlike the telephone number, the
|
|
238
|
+
* network access identifier is not subjected to portability ruling in force, and
|
|
239
|
+
* is individually managed by each operator.
|
|
240
|
+
*/
|
|
241
|
+
networkAccessIdentifier?: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* A public identifier addressing a telephone subscription. In mobile networks it
|
|
245
|
+
* corresponds to the MSISDN (Mobile Station International Subscriber Directory
|
|
246
|
+
* Number). In order to be globally unique it has to be formatted in international
|
|
247
|
+
* format, according to E.164 standard, prefixed with '+'.
|
|
248
|
+
*/
|
|
249
|
+
phoneNumber?: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export namespace Device {
|
|
253
|
+
/**
|
|
254
|
+
* The device should be identified by either the public (observed) IP address and
|
|
255
|
+
* port as seen by the application server, or the private (local) and any public
|
|
256
|
+
* (observed) IP addresses in use by the device (this information can be obtained
|
|
257
|
+
* by various means, for example from some DNS servers).
|
|
258
|
+
*
|
|
259
|
+
* If the allocated and observed IP addresses are the same (i.e. NAT is not in use)
|
|
260
|
+
* then the same address should be specified for both publicAddress and
|
|
261
|
+
* privateAddress.
|
|
262
|
+
*
|
|
263
|
+
* If NAT64 is in use, the device should be identified by its publicAddress and
|
|
264
|
+
* publicPort, or separately by its allocated IPv6 address (field ipv6Address of
|
|
265
|
+
* the Device object)
|
|
266
|
+
*
|
|
267
|
+
* In all cases, publicAddress must be specified, along with at least one of either
|
|
268
|
+
* privateAddress or publicPort, dependent upon which is known. In general, mobile
|
|
269
|
+
* devices cannot be identified by their public IPv4 address alone.
|
|
270
|
+
*/
|
|
271
|
+
export interface Ipv4Address {
|
|
272
|
+
/**
|
|
273
|
+
* A single IPv4 address with no subnet mask
|
|
274
|
+
*/
|
|
275
|
+
privateAddress?: string;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* A single IPv4 address with no subnet mask
|
|
279
|
+
*/
|
|
280
|
+
publicAddress?: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* TCP or UDP port number
|
|
284
|
+
*/
|
|
285
|
+
publicPort?: number;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
293
|
+
*/
|
|
294
|
+
export type ConnectedNetworkTypeProtocol = 'HTTP' | 'MQTT3' | 'MQTT5' | 'AMQP' | 'NATS' | 'KAFKA';
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Represents a event-type subscription.
|
|
298
|
+
*/
|
|
299
|
+
export interface ConnectedNetworkTypeSubscription {
|
|
300
|
+
/**
|
|
301
|
+
* The unique identifier of the subscription in the scope of the subscription
|
|
302
|
+
* manager. When this information is contained within an event notification, this
|
|
303
|
+
* concept SHALL be referred as subscriptionId as per Commonalities Event
|
|
304
|
+
* Notification Model.
|
|
305
|
+
*/
|
|
306
|
+
id: string;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Implementation-specific configuration parameters needed by the subscription
|
|
310
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
311
|
+
* `subscriptionExpireTime`, `subscriptionMaxEvents`, `initialEvent` Specific event
|
|
312
|
+
* type attributes must be defined in `subscriptionDetail` Note: if a request is
|
|
313
|
+
* performed for several event type, all subscribed event will use same `config`
|
|
314
|
+
* parameters.
|
|
315
|
+
*/
|
|
316
|
+
config: ConnectedNetworkTypeConfig;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
320
|
+
*/
|
|
321
|
+
protocol: ConnectedNetworkTypeProtocol;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* The address to which events shall be delivered using the selected protocol.
|
|
325
|
+
*/
|
|
326
|
+
sink: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Camara Event types eligible to be delivered by this subscription. Note: For the
|
|
330
|
+
* current Commonalities API design guidelines, only one event type per
|
|
331
|
+
* subscription is allowed
|
|
332
|
+
*/
|
|
333
|
+
types: Array<ConnectedNetworkTypeSubscriptionEventType>;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Date when the event subscription will expire. Only provided when
|
|
337
|
+
* `subscriptionExpireTime` is indicated by API client or Telco Operator has
|
|
338
|
+
* specific policy about that. It must follow
|
|
339
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
340
|
+
* have time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which
|
|
341
|
+
* allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
|
|
342
|
+
*/
|
|
343
|
+
expiresAt?: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Date when the event subscription will begin/began It must follow
|
|
347
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
348
|
+
* have time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which
|
|
349
|
+
* allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
|
|
350
|
+
*/
|
|
351
|
+
startsAt?: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Current status of the subscription - Management of Subscription State engine is
|
|
355
|
+
* not mandatory for now. Note not all statuses may be considered to be
|
|
356
|
+
* implemented. Details:
|
|
357
|
+
*
|
|
358
|
+
* - `ACTIVATION_REQUESTED`: Subscription creation (POST) is triggered but
|
|
359
|
+
* subscription creation process is not finished yet.
|
|
360
|
+
* - `ACTIVE`: Subscription creation process is completed. Subscription is fully
|
|
361
|
+
* operative.
|
|
362
|
+
* - `INACTIVE`: Subscription is temporarily inactive, but its workflow logic is
|
|
363
|
+
* not deleted.
|
|
364
|
+
* - `EXPIRED`: Subscription is ended (no longer active). This status applies when
|
|
365
|
+
* subscription is ended due to `SUBSCRIPTION_EXPIRED` or `ACCESS_TOKEN_EXPIRED`
|
|
366
|
+
* event.
|
|
367
|
+
* - `DELETED`: Subscription is ended as deleted (no longer active). This status
|
|
368
|
+
* applies when subscription information is kept (i.e. subscription workflow is
|
|
369
|
+
* no longer active but its meta-information is kept).
|
|
370
|
+
*/
|
|
371
|
+
status?: 'ACTIVATION_REQUESTED' | 'ACTIVE' | 'EXPIRED' | 'INACTIVE' | 'DELETED';
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* network-type-changed - Event triggered when the connected network type of the
|
|
376
|
+
* device changes.
|
|
377
|
+
*/
|
|
378
|
+
export type ConnectedNetworkTypeSubscriptionEventType =
|
|
379
|
+
'org.camaraproject.connected-network-type-subscriptions.v0.network-type-changed';
|
|
380
|
+
|
|
381
|
+
export type SubscriptionListResponse = Array<ConnectedNetworkTypeSubscription>;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Response for a event-type subscription request managed asynchronously (Creation
|
|
385
|
+
* or Deletion)
|
|
386
|
+
*/
|
|
387
|
+
export interface SubscriptionDeleteResponse {
|
|
388
|
+
/**
|
|
389
|
+
* The unique identifier of the subscription in the scope of the subscription
|
|
390
|
+
* manager. When this information is contained within an event notification, this
|
|
391
|
+
* concept SHALL be referred as subscriptionId as per Commonalities Event
|
|
392
|
+
* Notification Model.
|
|
393
|
+
*/
|
|
394
|
+
id: string;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export interface SubscriptionCreateParams {
|
|
398
|
+
/**
|
|
399
|
+
* Body param: Implementation-specific configuration parameters needed by the
|
|
400
|
+
* subscription manager for acquiring events. In CAMARA we have predefined
|
|
401
|
+
* attributes like `subscriptionExpireTime`, `subscriptionMaxEvents`,
|
|
402
|
+
* `initialEvent` Specific event type attributes must be defined in
|
|
403
|
+
* `subscriptionDetail` Note: if a request is performed for several event type, all
|
|
404
|
+
* subscribed event will use same `config` parameters.
|
|
405
|
+
*/
|
|
406
|
+
config: ConnectedNetworkTypeConfig;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Body param: Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
410
|
+
*/
|
|
411
|
+
protocol: ConnectedNetworkTypeProtocol;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Body param: The address to which events shall be delivered using the selected
|
|
415
|
+
* protocol.
|
|
416
|
+
*/
|
|
417
|
+
sink: string;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Body param: Camara Event types eligible to be delivered by this subscription.
|
|
421
|
+
* Note: As of now we enforce to have only event type per subscription.
|
|
422
|
+
*/
|
|
423
|
+
types: Array<ConnectedNetworkTypeSubscriptionEventType>;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Body param: A sink credential provides authentication or authorization
|
|
427
|
+
* information necessary to enable delivery of events to a target.
|
|
428
|
+
*/
|
|
429
|
+
sinkCredential?: SubscriptionCreateParams.SinkCredential;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Header param: Correlation id for the different services
|
|
433
|
+
*/
|
|
434
|
+
'x-correlator'?: string;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export namespace SubscriptionCreateParams {
|
|
438
|
+
/**
|
|
439
|
+
* A sink credential provides authentication or authorization information necessary
|
|
440
|
+
* to enable delivery of events to a target.
|
|
441
|
+
*/
|
|
442
|
+
export interface SinkCredential {
|
|
443
|
+
/**
|
|
444
|
+
* The type of the credential. Note: Type of the credential - MUST be set to
|
|
445
|
+
* ACCESSTOKEN for now
|
|
446
|
+
*/
|
|
447
|
+
credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export interface SubscriptionRetrieveParams {
|
|
452
|
+
/**
|
|
453
|
+
* Correlation id for the different services
|
|
454
|
+
*/
|
|
455
|
+
'x-correlator'?: string;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export interface SubscriptionListParams {
|
|
459
|
+
/**
|
|
460
|
+
* Correlation id for the different services
|
|
461
|
+
*/
|
|
462
|
+
'x-correlator'?: string;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export interface SubscriptionDeleteParams {
|
|
466
|
+
/**
|
|
467
|
+
* Correlation id for the different services
|
|
468
|
+
*/
|
|
469
|
+
'x-correlator'?: string;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export declare namespace Subscriptions {
|
|
473
|
+
export {
|
|
474
|
+
type ConnectedNetworkTypeConfig as ConnectedNetworkTypeConfig,
|
|
475
|
+
type ConnectedNetworkTypeProtocol as ConnectedNetworkTypeProtocol,
|
|
476
|
+
type ConnectedNetworkTypeSubscription as ConnectedNetworkTypeSubscription,
|
|
477
|
+
type ConnectedNetworkTypeSubscriptionEventType as ConnectedNetworkTypeSubscriptionEventType,
|
|
478
|
+
type SubscriptionListResponse as SubscriptionListResponse,
|
|
479
|
+
type SubscriptionDeleteResponse as SubscriptionDeleteResponse,
|
|
480
|
+
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
481
|
+
type SubscriptionRetrieveParams as SubscriptionRetrieveParams,
|
|
482
|
+
type SubscriptionListParams as SubscriptionListParams,
|
|
483
|
+
type SubscriptionDeleteParams as SubscriptionDeleteParams,
|
|
484
|
+
};
|
|
485
|
+
}
|