@azure-tools/communication-recipient-verification 1.0.0-alpha.20241119.1 → 1.0.0-alpha.20241203.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/package.json
CHANGED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import type { CommonClientOptions } from '@azure/core-client';
|
|
2
|
-
import * as coreClient from '@azure/core-client';
|
|
3
|
-
import type { KeyCredential } from '@azure/core-auth';
|
|
4
|
-
import type { TokenCredential } from '@azure/core-auth';
|
|
5
|
-
|
|
6
|
-
/** Model response returned for users. */
|
|
7
|
-
export declare interface AcsVerification {
|
|
8
|
-
/** Immutable Id of the resource. */
|
|
9
|
-
immutableId?: string;
|
|
10
|
-
/** VerificationId of the number assigned to the verified recipient. */
|
|
11
|
-
verificationId?: string;
|
|
12
|
-
/** Status of the Verification (Pending or Verified). */
|
|
13
|
-
status?: string;
|
|
14
|
-
/** Subscription Id of the resource. */
|
|
15
|
-
subscriptionId?: string;
|
|
16
|
-
/** The phone number that was used to verify. */
|
|
17
|
-
identity?: string;
|
|
18
|
-
/** Verification Id for the 3rd party verification service. */
|
|
19
|
-
challengeId?: string;
|
|
20
|
-
/** Number of times the verification code has been sent. */
|
|
21
|
-
retries?: number;
|
|
22
|
-
/** Number of times the user has tried to validate the code. */
|
|
23
|
-
attempts?: number;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/** Optional parameters. */
|
|
27
|
-
export declare interface AcsVerificationDeleteVerificationOptionalParams extends coreClient.OperationOptions {
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/** Optional parameters. */
|
|
31
|
-
export declare interface AcsVerificationGetVerificationConstantsOptionalParams extends coreClient.OperationOptions {
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/** Contains response data for the getVerificationConstants operation. */
|
|
35
|
-
export declare type AcsVerificationGetVerificationConstantsResponse = VerificationConstantsResponse;
|
|
36
|
-
|
|
37
|
-
/** Optional parameters. */
|
|
38
|
-
export declare interface AcsVerificationGetVerificationsOptionalParams extends coreClient.OperationOptions {
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** Contains response data for the getVerifications operation. */
|
|
42
|
-
export declare type AcsVerificationGetVerificationsResponse = AcsVerification[];
|
|
43
|
-
|
|
44
|
-
export declare const AcsVerificationMapper: coreClient.CompositeMapper;
|
|
45
|
-
|
|
46
|
-
/** Optional parameters. */
|
|
47
|
-
export declare interface AcsVerificationRequestVerificationOptionalParams extends coreClient.OperationOptions {
|
|
48
|
-
/** The phone number that was used to verify. */
|
|
49
|
-
identity?: string;
|
|
50
|
-
/** Prefered verification channel. */
|
|
51
|
-
channel?: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/** Contains response data for the requestVerification operation. */
|
|
55
|
-
export declare type AcsVerificationRequestVerificationResponse = VerificationResponse;
|
|
56
|
-
|
|
57
|
-
/** Optional parameters. */
|
|
58
|
-
export declare interface AcsVerificationVerifyIdentityOptionalParams extends coreClient.OperationOptions {
|
|
59
|
-
/** The verification code returned. */
|
|
60
|
-
verificationCode?: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/** Contains response data for the verifyIdentity operation. */
|
|
64
|
-
export declare type AcsVerificationVerifyIdentityResponse = VerificationResponse;
|
|
65
|
-
|
|
66
|
-
export declare const ConstantsMapper: coreClient.CompositeMapper;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Client class for interacting with Azure Communication Services Recipient Verification.
|
|
70
|
-
*/
|
|
71
|
-
export declare class RecipientVerificationClient {
|
|
72
|
-
/**
|
|
73
|
-
* A reference to the auto-generated RecipientVerification HTTP client.
|
|
74
|
-
*/
|
|
75
|
-
private readonly client;
|
|
76
|
-
/**
|
|
77
|
-
* Initializes a new instance of the RecipientVerificationClient class using a connection string.
|
|
78
|
-
*
|
|
79
|
-
* @param connectionString - Connection string to connect to an Azure Communication Service resource. (eg: endpoint=https://contoso.eastus.communications.azure.net/;accesskey=secret)
|
|
80
|
-
* @param options - Optional. Options to configure the HTTP pipeline.
|
|
81
|
-
*/
|
|
82
|
-
constructor(connectionString: string, options?: RecipientVerificationClientOptions);
|
|
83
|
-
/**
|
|
84
|
-
* Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.
|
|
85
|
-
*
|
|
86
|
-
* @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)
|
|
87
|
-
* @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.
|
|
88
|
-
* @param options - Optional. Options to configure the HTTP pipeline.
|
|
89
|
-
*/
|
|
90
|
-
constructor(endpoint: string, credential: KeyCredential, options?: RecipientVerificationClientOptions);
|
|
91
|
-
/**
|
|
92
|
-
* Initializes a new instance of the RecipientVerificationClient class using an Azure KeyCredential.
|
|
93
|
-
*
|
|
94
|
-
* @param endpoint - The endpoint of the service (eg: https://contoso.eastus.communications.azure.net)
|
|
95
|
-
* @param credential - An object that is used to authenticate requests to the service. Use the Azure KeyCredential or `@azure/identity` to create a credential.
|
|
96
|
-
* @param options - Optional. Options to configure the HTTP pipeline.
|
|
97
|
-
*/
|
|
98
|
-
constructor(endpoint: string, credential: TokenCredential, options?: RecipientVerificationClientOptions);
|
|
99
|
-
/**
|
|
100
|
-
* Returns list of verified/pending phone numbers.
|
|
101
|
-
*
|
|
102
|
-
* @param options - Additional request options.
|
|
103
|
-
*/
|
|
104
|
-
getVerifications(options?: AcsVerificationGetVerificationsOptionalParams): Promise<AcsVerification[]>;
|
|
105
|
-
/**
|
|
106
|
-
* Removes a pending/verified number.
|
|
107
|
-
*
|
|
108
|
-
* @param verificationId - Id that is used to reference users phone number.
|
|
109
|
-
* @param options - Additional request options.
|
|
110
|
-
*/
|
|
111
|
-
deleteVerification(verificationId: string, options?: AcsVerificationDeleteVerificationOptionalParams): Promise<void>;
|
|
112
|
-
/**
|
|
113
|
-
* Verifies a users phone number.
|
|
114
|
-
*
|
|
115
|
-
* @param verificationId - Id that is used to reference users phone number.
|
|
116
|
-
* @param options - Additional request options.
|
|
117
|
-
*/
|
|
118
|
-
verifyIdentity(verificationId: string, options?: AcsVerificationVerifyIdentityOptionalParams): Promise<AcsVerificationVerifyIdentityResponse>;
|
|
119
|
-
/**
|
|
120
|
-
* Returns information about a resource in relation to recipient verification.
|
|
121
|
-
*
|
|
122
|
-
* @param options - Additional request options.
|
|
123
|
-
*/
|
|
124
|
-
getVerificationConstants(options?: AcsVerificationGetVerificationConstantsOptionalParams): Promise<VerificationConstantsResponse>;
|
|
125
|
-
/**
|
|
126
|
-
* Sends a code to users phone number that will be used for verification.
|
|
127
|
-
*
|
|
128
|
-
* @param options - Additional request options.
|
|
129
|
-
*/
|
|
130
|
-
requestVerification(options?: AcsVerificationRequestVerificationOptionalParams): Promise<AcsVerificationRequestVerificationResponse>;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Client options used to configure the RecipientVerificationGeneratedClient API requests.
|
|
135
|
-
*/
|
|
136
|
-
export declare interface RecipientVerificationClientOptions extends CommonClientOptions {
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export declare const VerificationCodeRequestMapper: coreClient.CompositeMapper;
|
|
140
|
-
|
|
141
|
-
/** Model verified recipients. */
|
|
142
|
-
export declare interface VerificationConstantsResponse {
|
|
143
|
-
/** Max retries allowed for resource. */
|
|
144
|
-
maxRetriesAllowed?: number;
|
|
145
|
-
/** Max verified numbers allowed for resource. */
|
|
146
|
-
maxVerificationsAllowed?: number;
|
|
147
|
-
/** Current number of verified numbers for the resource. */
|
|
148
|
-
currentNumberOfVerifications?: number;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export declare const VerificationRequestMapper: coreClient.CompositeMapper;
|
|
152
|
-
|
|
153
|
-
/** Model that contains the verification code. */
|
|
154
|
-
export declare interface VerificationResponse {
|
|
155
|
-
/** VerificationId of the number assigned to the verified recipient. */
|
|
156
|
-
verificationId?: string;
|
|
157
|
-
/** Verification status of the number. */
|
|
158
|
-
isVerified?: boolean;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export declare const VerificationResponseMapper: coreClient.CompositeMapper;
|
|
162
|
-
|
|
163
|
-
export { }
|