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,264 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Subscriptions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a sim swap event subscription for a phone number
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const simSwapSubscription =
|
|
11
|
+
* await client.simswap.subscriptions.create({
|
|
12
|
+
* config: {
|
|
13
|
+
* subscriptionDetail: { phoneNumber: '+123456789' },
|
|
14
|
+
* subscriptionMaxEvents: 10,
|
|
15
|
+
* subscriptionExpireTime: '2025-01-17T13:18:23.682Z',
|
|
16
|
+
* },
|
|
17
|
+
* protocol: 'HTTP',
|
|
18
|
+
* sink: 'https://endpoint.example.com/sink',
|
|
19
|
+
* types: [
|
|
20
|
+
* 'org.camaraproject.sim-swap-subscriptions.v0.swapped',
|
|
21
|
+
* ],
|
|
22
|
+
* sinkCredential: {
|
|
23
|
+
* credentialType: 'ACCESSTOKEN',
|
|
24
|
+
* accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
|
|
25
|
+
* accessTokenExpiresUtc: '1717753038',
|
|
26
|
+
* accessTokenType: 'bearer',
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<SimSwapSubscription>;
|
|
32
|
+
/**
|
|
33
|
+
* retrieve event subscription information for a given subscription.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const simSwapSubscription =
|
|
38
|
+
* await client.simswap.subscriptions.retrieve(
|
|
39
|
+
* 'qs15-h556-rt89-1298',
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
retrieve(subscriptionID: string, params?: SubscriptionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<SimSwapSubscription>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve a list of sim swap event subscription(s)
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const simSwapSubscriptions =
|
|
50
|
+
* await client.simswap.subscriptions.list();
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
list(params?: SubscriptionListParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionListResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* delete a given event subscription.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const subscription =
|
|
60
|
+
* await client.simswap.subscriptions.delete(
|
|
61
|
+
* 'qs15-h556-rt89-1298',
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
delete(subscriptionID: string, params?: SubscriptionDeleteParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionDeleteResponse>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Implementation-specific configuration parameters needed by the subscription
|
|
69
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
70
|
+
* `subscriptionExpireTime` or `subscriptionMaxEvents` to limit subscription
|
|
71
|
+
* lifetime. Event type attributes must be defined in `subscriptionDetail`
|
|
72
|
+
*/
|
|
73
|
+
export interface SimSwapConfig {
|
|
74
|
+
/**
|
|
75
|
+
* The detail of the requested event subscription
|
|
76
|
+
*/
|
|
77
|
+
subscriptionDetail: SimSwapConfig.SubscriptionDetail;
|
|
78
|
+
/**
|
|
79
|
+
* The subscription expiration time (in date-time format) requested by the API
|
|
80
|
+
* consumer. It must follow
|
|
81
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
82
|
+
* have time zone.
|
|
83
|
+
*/
|
|
84
|
+
subscriptionExpireTime?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Identifies the maximum number of event reports to be generated (>=1) requested
|
|
87
|
+
* by the API consumer - Once this number is reached, the subscription ends.
|
|
88
|
+
*/
|
|
89
|
+
subscriptionMaxEvents?: number;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace SimSwapConfig {
|
|
92
|
+
/**
|
|
93
|
+
* The detail of the requested event subscription
|
|
94
|
+
*/
|
|
95
|
+
interface SubscriptionDetail {
|
|
96
|
+
/**
|
|
97
|
+
* A public identifier addressing a telephone subscription. In mobile networks it
|
|
98
|
+
* corresponds to the MSISDN (Mobile Station International Subscriber Directory
|
|
99
|
+
* Number). In order to be globally unique it has to be formatted in international
|
|
100
|
+
* format, according to E.164 standard, prefixed with '+'.
|
|
101
|
+
*/
|
|
102
|
+
phoneNumber?: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
107
|
+
*/
|
|
108
|
+
export type SimSwapProtocol = 'HTTP' | 'MQTT3' | 'MQTT5' | 'AMQP' | 'NATS' | 'KAFKA';
|
|
109
|
+
/**
|
|
110
|
+
* Represents a event-type subscription.
|
|
111
|
+
*/
|
|
112
|
+
export interface SimSwapSubscription {
|
|
113
|
+
/**
|
|
114
|
+
* The unique identifier of the subscription in the scope of the subscription
|
|
115
|
+
* manager. When this information is contained within an event notification, this
|
|
116
|
+
* concept SHALL be referred as subscriptionId as per Commonalities Event
|
|
117
|
+
* Notification Model.
|
|
118
|
+
*/
|
|
119
|
+
id: string;
|
|
120
|
+
/**
|
|
121
|
+
* Implementation-specific configuration parameters needed by the subscription
|
|
122
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
123
|
+
* `subscriptionExpireTime` or `subscriptionMaxEvents` to limit subscription
|
|
124
|
+
* lifetime. Event type attributes must be defined in `subscriptionDetail`
|
|
125
|
+
*/
|
|
126
|
+
config: SimSwapConfig;
|
|
127
|
+
/**
|
|
128
|
+
* Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
129
|
+
*/
|
|
130
|
+
protocol: SimSwapProtocol;
|
|
131
|
+
/**
|
|
132
|
+
* The address to which events shall be delivered using the selected protocol.
|
|
133
|
+
*/
|
|
134
|
+
sink: string;
|
|
135
|
+
/**
|
|
136
|
+
* Camara Event types eligible for subscription:
|
|
137
|
+
*
|
|
138
|
+
* - org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification
|
|
139
|
+
* when a sim swap is performed on the line. Note: for the Commonalities
|
|
140
|
+
* meta-release v0.4 we enforce to have only event type per subscription then for
|
|
141
|
+
* following meta-release use of array MUST be decided at API project level.
|
|
142
|
+
*/
|
|
143
|
+
types: Array<SimSwapSubscriptionEventType>;
|
|
144
|
+
/**
|
|
145
|
+
* Date when the event subscription will expire. Only provided when
|
|
146
|
+
* `subscriptionExpireTime` is indicated by API client or Telco Operator has
|
|
147
|
+
* specific policy about that. It must follow
|
|
148
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
149
|
+
* have time zone.
|
|
150
|
+
*/
|
|
151
|
+
expiresAt?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Date when the event subscription will begin/began It must follow
|
|
154
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
155
|
+
* have time zone.
|
|
156
|
+
*/
|
|
157
|
+
startsAt?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Current status of the subscription - Management of Subscription State engine is
|
|
160
|
+
* not mandatory for now. Note not all statuses may be considered to be
|
|
161
|
+
* implemented. Details:
|
|
162
|
+
*
|
|
163
|
+
* - `ACTIVATION_REQUESTED`: Subscription creation (POST) is triggered but
|
|
164
|
+
* subscription creation process is not finished yet.
|
|
165
|
+
* - `ACTIVE`: Subscription creation process is completed. Subscription is fully
|
|
166
|
+
* operative.
|
|
167
|
+
* - `INACTIVE`: Subscription is temporarily inactive, but its workflow logic is
|
|
168
|
+
* not deleted.
|
|
169
|
+
* - `EXPIRED`: Subscription is ended (no longer active). This status applies when
|
|
170
|
+
* subscription is ended due to `SUBSCRIPTION_EXPIRED` event.
|
|
171
|
+
* - `DELETED`: Subscription is ended as deleted (no longer active). This status
|
|
172
|
+
* applies when subscription information is kept (i.e. subscription workflow is
|
|
173
|
+
* no longer active but its metainformation is kept).
|
|
174
|
+
*/
|
|
175
|
+
status?: 'ACTIVATION_REQUESTED' | 'ACTIVE' | 'EXPIRED' | 'INACTIVE' | 'DELETED';
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* swapped - Event triggered when a sim swap occurs on the line
|
|
179
|
+
*/
|
|
180
|
+
export type SimSwapSubscriptionEventType = 'org.camaraproject.sim-swap-subscriptions.v0.swapped';
|
|
181
|
+
export type SubscriptionListResponse = Array<SimSwapSubscription>;
|
|
182
|
+
/**
|
|
183
|
+
* Response for a event-type subscription request managed asynchronously (Creation
|
|
184
|
+
* or Deletion)
|
|
185
|
+
*/
|
|
186
|
+
export interface SubscriptionDeleteResponse {
|
|
187
|
+
/**
|
|
188
|
+
* The unique identifier of the subscription in the scope of the subscription
|
|
189
|
+
* manager. When this information is contained within an event notification, this
|
|
190
|
+
* concept SHALL be referred as subscriptionId as per Commonalities Event
|
|
191
|
+
* Notification Model.
|
|
192
|
+
*/
|
|
193
|
+
id?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface SubscriptionCreateParams {
|
|
196
|
+
/**
|
|
197
|
+
* Body param: Implementation-specific configuration parameters needed by the
|
|
198
|
+
* subscription manager for acquiring events. In CAMARA we have predefined
|
|
199
|
+
* attributes like `subscriptionExpireTime` or `subscriptionMaxEvents` to limit
|
|
200
|
+
* subscription lifetime. Event type attributes must be defined in
|
|
201
|
+
* `subscriptionDetail`
|
|
202
|
+
*/
|
|
203
|
+
config: SimSwapConfig;
|
|
204
|
+
/**
|
|
205
|
+
* Body param: Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
206
|
+
*/
|
|
207
|
+
protocol: SimSwapProtocol;
|
|
208
|
+
/**
|
|
209
|
+
* Body param: The address to which events shall be delivered using the selected
|
|
210
|
+
* protocol.
|
|
211
|
+
*/
|
|
212
|
+
sink: string;
|
|
213
|
+
/**
|
|
214
|
+
* Body param: Camara Event types eligible for subscription:
|
|
215
|
+
*
|
|
216
|
+
* - org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification
|
|
217
|
+
* when a sim swap is performed on the line.
|
|
218
|
+
*/
|
|
219
|
+
types: Array<SimSwapSubscriptionEventType>;
|
|
220
|
+
/**
|
|
221
|
+
* Body param: A sink credential provides authentication or authorization
|
|
222
|
+
* information necessary to enable delivery of events to a target.
|
|
223
|
+
*/
|
|
224
|
+
sinkCredential?: SubscriptionCreateParams.SinkCredential;
|
|
225
|
+
/**
|
|
226
|
+
* Header param: Correlation id for the different services
|
|
227
|
+
*/
|
|
228
|
+
'x-correlator'?: string;
|
|
229
|
+
}
|
|
230
|
+
export declare namespace SubscriptionCreateParams {
|
|
231
|
+
/**
|
|
232
|
+
* A sink credential provides authentication or authorization information necessary
|
|
233
|
+
* to enable delivery of events to a target.
|
|
234
|
+
*/
|
|
235
|
+
interface SinkCredential {
|
|
236
|
+
/**
|
|
237
|
+
* The type of the credential. With the current API version the type MUST be set to
|
|
238
|
+
* ACCESSTOKEN.
|
|
239
|
+
*/
|
|
240
|
+
credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export interface SubscriptionRetrieveParams {
|
|
244
|
+
/**
|
|
245
|
+
* Correlation id for the different services
|
|
246
|
+
*/
|
|
247
|
+
'x-correlator'?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface SubscriptionListParams {
|
|
250
|
+
/**
|
|
251
|
+
* Correlation id for the different services
|
|
252
|
+
*/
|
|
253
|
+
'x-correlator'?: string;
|
|
254
|
+
}
|
|
255
|
+
export interface SubscriptionDeleteParams {
|
|
256
|
+
/**
|
|
257
|
+
* Correlation id for the different services
|
|
258
|
+
*/
|
|
259
|
+
'x-correlator'?: string;
|
|
260
|
+
}
|
|
261
|
+
export declare namespace Subscriptions {
|
|
262
|
+
export { type SimSwapConfig as SimSwapConfig, type SimSwapProtocol as SimSwapProtocol, type SimSwapSubscription as SimSwapSubscription, type SimSwapSubscriptionEventType as SimSwapSubscriptionEventType, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionDeleteParams as SubscriptionDeleteParams, };
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=subscriptions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.d.mts","sourceRoot":"","sources":["../../src/resources/simswap/subscriptions.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Subscriptions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a sim swap event subscription for a phone number
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const simSwapSubscription =
|
|
11
|
+
* await client.simswap.subscriptions.create({
|
|
12
|
+
* config: {
|
|
13
|
+
* subscriptionDetail: { phoneNumber: '+123456789' },
|
|
14
|
+
* subscriptionMaxEvents: 10,
|
|
15
|
+
* subscriptionExpireTime: '2025-01-17T13:18:23.682Z',
|
|
16
|
+
* },
|
|
17
|
+
* protocol: 'HTTP',
|
|
18
|
+
* sink: 'https://endpoint.example.com/sink',
|
|
19
|
+
* types: [
|
|
20
|
+
* 'org.camaraproject.sim-swap-subscriptions.v0.swapped',
|
|
21
|
+
* ],
|
|
22
|
+
* sinkCredential: {
|
|
23
|
+
* credentialType: 'ACCESSTOKEN',
|
|
24
|
+
* accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
|
|
25
|
+
* accessTokenExpiresUtc: '1717753038',
|
|
26
|
+
* accessTokenType: 'bearer',
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
create(params: SubscriptionCreateParams, options?: RequestOptions): APIPromise<SimSwapSubscription>;
|
|
32
|
+
/**
|
|
33
|
+
* retrieve event subscription information for a given subscription.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const simSwapSubscription =
|
|
38
|
+
* await client.simswap.subscriptions.retrieve(
|
|
39
|
+
* 'qs15-h556-rt89-1298',
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
retrieve(subscriptionID: string, params?: SubscriptionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<SimSwapSubscription>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieve a list of sim swap event subscription(s)
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const simSwapSubscriptions =
|
|
50
|
+
* await client.simswap.subscriptions.list();
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
list(params?: SubscriptionListParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionListResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* delete a given event subscription.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const subscription =
|
|
60
|
+
* await client.simswap.subscriptions.delete(
|
|
61
|
+
* 'qs15-h556-rt89-1298',
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
delete(subscriptionID: string, params?: SubscriptionDeleteParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionDeleteResponse>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Implementation-specific configuration parameters needed by the subscription
|
|
69
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
70
|
+
* `subscriptionExpireTime` or `subscriptionMaxEvents` to limit subscription
|
|
71
|
+
* lifetime. Event type attributes must be defined in `subscriptionDetail`
|
|
72
|
+
*/
|
|
73
|
+
export interface SimSwapConfig {
|
|
74
|
+
/**
|
|
75
|
+
* The detail of the requested event subscription
|
|
76
|
+
*/
|
|
77
|
+
subscriptionDetail: SimSwapConfig.SubscriptionDetail;
|
|
78
|
+
/**
|
|
79
|
+
* The subscription expiration time (in date-time format) requested by the API
|
|
80
|
+
* consumer. It must follow
|
|
81
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
82
|
+
* have time zone.
|
|
83
|
+
*/
|
|
84
|
+
subscriptionExpireTime?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Identifies the maximum number of event reports to be generated (>=1) requested
|
|
87
|
+
* by the API consumer - Once this number is reached, the subscription ends.
|
|
88
|
+
*/
|
|
89
|
+
subscriptionMaxEvents?: number;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace SimSwapConfig {
|
|
92
|
+
/**
|
|
93
|
+
* The detail of the requested event subscription
|
|
94
|
+
*/
|
|
95
|
+
interface SubscriptionDetail {
|
|
96
|
+
/**
|
|
97
|
+
* A public identifier addressing a telephone subscription. In mobile networks it
|
|
98
|
+
* corresponds to the MSISDN (Mobile Station International Subscriber Directory
|
|
99
|
+
* Number). In order to be globally unique it has to be formatted in international
|
|
100
|
+
* format, according to E.164 standard, prefixed with '+'.
|
|
101
|
+
*/
|
|
102
|
+
phoneNumber?: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
107
|
+
*/
|
|
108
|
+
export type SimSwapProtocol = 'HTTP' | 'MQTT3' | 'MQTT5' | 'AMQP' | 'NATS' | 'KAFKA';
|
|
109
|
+
/**
|
|
110
|
+
* Represents a event-type subscription.
|
|
111
|
+
*/
|
|
112
|
+
export interface SimSwapSubscription {
|
|
113
|
+
/**
|
|
114
|
+
* The unique identifier of the subscription in the scope of the subscription
|
|
115
|
+
* manager. When this information is contained within an event notification, this
|
|
116
|
+
* concept SHALL be referred as subscriptionId as per Commonalities Event
|
|
117
|
+
* Notification Model.
|
|
118
|
+
*/
|
|
119
|
+
id: string;
|
|
120
|
+
/**
|
|
121
|
+
* Implementation-specific configuration parameters needed by the subscription
|
|
122
|
+
* manager for acquiring events. In CAMARA we have predefined attributes like
|
|
123
|
+
* `subscriptionExpireTime` or `subscriptionMaxEvents` to limit subscription
|
|
124
|
+
* lifetime. Event type attributes must be defined in `subscriptionDetail`
|
|
125
|
+
*/
|
|
126
|
+
config: SimSwapConfig;
|
|
127
|
+
/**
|
|
128
|
+
* Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
129
|
+
*/
|
|
130
|
+
protocol: SimSwapProtocol;
|
|
131
|
+
/**
|
|
132
|
+
* The address to which events shall be delivered using the selected protocol.
|
|
133
|
+
*/
|
|
134
|
+
sink: string;
|
|
135
|
+
/**
|
|
136
|
+
* Camara Event types eligible for subscription:
|
|
137
|
+
*
|
|
138
|
+
* - org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification
|
|
139
|
+
* when a sim swap is performed on the line. Note: for the Commonalities
|
|
140
|
+
* meta-release v0.4 we enforce to have only event type per subscription then for
|
|
141
|
+
* following meta-release use of array MUST be decided at API project level.
|
|
142
|
+
*/
|
|
143
|
+
types: Array<SimSwapSubscriptionEventType>;
|
|
144
|
+
/**
|
|
145
|
+
* Date when the event subscription will expire. Only provided when
|
|
146
|
+
* `subscriptionExpireTime` is indicated by API client or Telco Operator has
|
|
147
|
+
* specific policy about that. It must follow
|
|
148
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
149
|
+
* have time zone.
|
|
150
|
+
*/
|
|
151
|
+
expiresAt?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Date when the event subscription will begin/began It must follow
|
|
154
|
+
* [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) and must
|
|
155
|
+
* have time zone.
|
|
156
|
+
*/
|
|
157
|
+
startsAt?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Current status of the subscription - Management of Subscription State engine is
|
|
160
|
+
* not mandatory for now. Note not all statuses may be considered to be
|
|
161
|
+
* implemented. Details:
|
|
162
|
+
*
|
|
163
|
+
* - `ACTIVATION_REQUESTED`: Subscription creation (POST) is triggered but
|
|
164
|
+
* subscription creation process is not finished yet.
|
|
165
|
+
* - `ACTIVE`: Subscription creation process is completed. Subscription is fully
|
|
166
|
+
* operative.
|
|
167
|
+
* - `INACTIVE`: Subscription is temporarily inactive, but its workflow logic is
|
|
168
|
+
* not deleted.
|
|
169
|
+
* - `EXPIRED`: Subscription is ended (no longer active). This status applies when
|
|
170
|
+
* subscription is ended due to `SUBSCRIPTION_EXPIRED` event.
|
|
171
|
+
* - `DELETED`: Subscription is ended as deleted (no longer active). This status
|
|
172
|
+
* applies when subscription information is kept (i.e. subscription workflow is
|
|
173
|
+
* no longer active but its metainformation is kept).
|
|
174
|
+
*/
|
|
175
|
+
status?: 'ACTIVATION_REQUESTED' | 'ACTIVE' | 'EXPIRED' | 'INACTIVE' | 'DELETED';
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* swapped - Event triggered when a sim swap occurs on the line
|
|
179
|
+
*/
|
|
180
|
+
export type SimSwapSubscriptionEventType = 'org.camaraproject.sim-swap-subscriptions.v0.swapped';
|
|
181
|
+
export type SubscriptionListResponse = Array<SimSwapSubscription>;
|
|
182
|
+
/**
|
|
183
|
+
* Response for a event-type subscription request managed asynchronously (Creation
|
|
184
|
+
* or Deletion)
|
|
185
|
+
*/
|
|
186
|
+
export interface SubscriptionDeleteResponse {
|
|
187
|
+
/**
|
|
188
|
+
* The unique identifier of the subscription in the scope of the subscription
|
|
189
|
+
* manager. When this information is contained within an event notification, this
|
|
190
|
+
* concept SHALL be referred as subscriptionId as per Commonalities Event
|
|
191
|
+
* Notification Model.
|
|
192
|
+
*/
|
|
193
|
+
id?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface SubscriptionCreateParams {
|
|
196
|
+
/**
|
|
197
|
+
* Body param: Implementation-specific configuration parameters needed by the
|
|
198
|
+
* subscription manager for acquiring events. In CAMARA we have predefined
|
|
199
|
+
* attributes like `subscriptionExpireTime` or `subscriptionMaxEvents` to limit
|
|
200
|
+
* subscription lifetime. Event type attributes must be defined in
|
|
201
|
+
* `subscriptionDetail`
|
|
202
|
+
*/
|
|
203
|
+
config: SimSwapConfig;
|
|
204
|
+
/**
|
|
205
|
+
* Body param: Identifier of a delivery protocol. Only HTTP is allowed for now
|
|
206
|
+
*/
|
|
207
|
+
protocol: SimSwapProtocol;
|
|
208
|
+
/**
|
|
209
|
+
* Body param: The address to which events shall be delivered using the selected
|
|
210
|
+
* protocol.
|
|
211
|
+
*/
|
|
212
|
+
sink: string;
|
|
213
|
+
/**
|
|
214
|
+
* Body param: Camara Event types eligible for subscription:
|
|
215
|
+
*
|
|
216
|
+
* - org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification
|
|
217
|
+
* when a sim swap is performed on the line.
|
|
218
|
+
*/
|
|
219
|
+
types: Array<SimSwapSubscriptionEventType>;
|
|
220
|
+
/**
|
|
221
|
+
* Body param: A sink credential provides authentication or authorization
|
|
222
|
+
* information necessary to enable delivery of events to a target.
|
|
223
|
+
*/
|
|
224
|
+
sinkCredential?: SubscriptionCreateParams.SinkCredential;
|
|
225
|
+
/**
|
|
226
|
+
* Header param: Correlation id for the different services
|
|
227
|
+
*/
|
|
228
|
+
'x-correlator'?: string;
|
|
229
|
+
}
|
|
230
|
+
export declare namespace SubscriptionCreateParams {
|
|
231
|
+
/**
|
|
232
|
+
* A sink credential provides authentication or authorization information necessary
|
|
233
|
+
* to enable delivery of events to a target.
|
|
234
|
+
*/
|
|
235
|
+
interface SinkCredential {
|
|
236
|
+
/**
|
|
237
|
+
* The type of the credential. With the current API version the type MUST be set to
|
|
238
|
+
* ACCESSTOKEN.
|
|
239
|
+
*/
|
|
240
|
+
credentialType: 'PLAIN' | 'ACCESSTOKEN' | 'REFRESHTOKEN';
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export interface SubscriptionRetrieveParams {
|
|
244
|
+
/**
|
|
245
|
+
* Correlation id for the different services
|
|
246
|
+
*/
|
|
247
|
+
'x-correlator'?: string;
|
|
248
|
+
}
|
|
249
|
+
export interface SubscriptionListParams {
|
|
250
|
+
/**
|
|
251
|
+
* Correlation id for the different services
|
|
252
|
+
*/
|
|
253
|
+
'x-correlator'?: string;
|
|
254
|
+
}
|
|
255
|
+
export interface SubscriptionDeleteParams {
|
|
256
|
+
/**
|
|
257
|
+
* Correlation id for the different services
|
|
258
|
+
*/
|
|
259
|
+
'x-correlator'?: string;
|
|
260
|
+
}
|
|
261
|
+
export declare namespace Subscriptions {
|
|
262
|
+
export { type SimSwapConfig as SimSwapConfig, type SimSwapProtocol as SimSwapProtocol, type SimSwapSubscription as SimSwapSubscription, type SimSwapSubscriptionEventType as SimSwapSubscriptionEventType, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionDeleteResponse as SubscriptionDeleteResponse, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionDeleteParams as SubscriptionDeleteParams, };
|
|
263
|
+
}
|
|
264
|
+
//# sourceMappingURL=subscriptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/resources/simswap/subscriptions.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 sim swap event subscription for a phone number
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const simSwapSubscription =
|
|
15
|
+
* await client.simswap.subscriptions.create({
|
|
16
|
+
* config: {
|
|
17
|
+
* subscriptionDetail: { phoneNumber: '+123456789' },
|
|
18
|
+
* subscriptionMaxEvents: 10,
|
|
19
|
+
* subscriptionExpireTime: '2025-01-17T13:18:23.682Z',
|
|
20
|
+
* },
|
|
21
|
+
* protocol: 'HTTP',
|
|
22
|
+
* sink: 'https://endpoint.example.com/sink',
|
|
23
|
+
* types: [
|
|
24
|
+
* 'org.camaraproject.sim-swap-subscriptions.v0.swapped',
|
|
25
|
+
* ],
|
|
26
|
+
* sinkCredential: {
|
|
27
|
+
* credentialType: 'ACCESSTOKEN',
|
|
28
|
+
* accessToken: 'yJ2ZXIiOiIxLjAiLCJ0eXAiO...',
|
|
29
|
+
* accessTokenExpiresUtc: '1717753038',
|
|
30
|
+
* accessTokenType: 'bearer',
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
create(params, options) {
|
|
36
|
+
const { 'x-correlator': xCorrelator, ...body } = params;
|
|
37
|
+
return this._client.post('/simswap/subscriptions', {
|
|
38
|
+
body,
|
|
39
|
+
...options,
|
|
40
|
+
headers: (0, headers_1.buildHeaders)([
|
|
41
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
42
|
+
options?.headers,
|
|
43
|
+
]),
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* retrieve event subscription information for a given subscription.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const simSwapSubscription =
|
|
52
|
+
* await client.simswap.subscriptions.retrieve(
|
|
53
|
+
* 'qs15-h556-rt89-1298',
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
retrieve(subscriptionID, params = {}, options) {
|
|
58
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
59
|
+
return this._client.get((0, path_1.path) `/simswap/subscriptions/${subscriptionID}`, {
|
|
60
|
+
...options,
|
|
61
|
+
headers: (0, headers_1.buildHeaders)([
|
|
62
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
63
|
+
options?.headers,
|
|
64
|
+
]),
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Retrieve a list of sim swap event subscription(s)
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const simSwapSubscriptions =
|
|
73
|
+
* await client.simswap.subscriptions.list();
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
list(params = {}, options) {
|
|
77
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
78
|
+
return this._client.get('/simswap/subscriptions', {
|
|
79
|
+
...options,
|
|
80
|
+
headers: (0, headers_1.buildHeaders)([
|
|
81
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
82
|
+
options?.headers,
|
|
83
|
+
]),
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* delete a given event subscription.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const subscription =
|
|
92
|
+
* await client.simswap.subscriptions.delete(
|
|
93
|
+
* 'qs15-h556-rt89-1298',
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
delete(subscriptionID, params = {}, options) {
|
|
98
|
+
const { 'x-correlator': xCorrelator } = params ?? {};
|
|
99
|
+
return this._client.delete((0, path_1.path) `/simswap/subscriptions/${subscriptionID}`, {
|
|
100
|
+
...options,
|
|
101
|
+
headers: (0, headers_1.buildHeaders)([
|
|
102
|
+
{ ...(xCorrelator != null ? { 'x-correlator': xCorrelator } : undefined) },
|
|
103
|
+
options?.headers,
|
|
104
|
+
]),
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.Subscriptions = Subscriptions;
|
|
109
|
+
//# sourceMappingURL=subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/resources/simswap/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;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,wBAAwB,EAAE;YACjD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC1E,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;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,0BAA0B,cAAc,EAAE,EAAE;YACtE,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,wBAAwB,EAAE;YAChD,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,0BAA0B,cAAc,EAAE,EAAE;YACzE,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;AAjHD,sCAiHC"}
|