rebilly-js-sdk 62.182.2 → 62.183.0
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 +3 -3
- package/dist/rebilly-js-sdk.d.cts +0 -195
- package/dist/rebilly-js-sdk.d.mts +0 -195
- package/dist/rebilly-js-sdk.d.ts +0 -195
- package/dist/rebilly-js-sdk.es.mjs +1 -19
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/resources/profile-resource.js +0 -12
- package/src/resources/users-resource.js +0 -6
package/dist/rebilly-js-sdk.d.ts
CHANGED
|
@@ -1814,14 +1814,6 @@ declare namespace rebilly {
|
|
|
1814
1814
|
type PutProfileResponse = operations['PutProfile']['responses']['200']['content']['application/json']
|
|
1815
1815
|
type PutProfileResponsePromise = Promise<{fields: PutProfileResponse}>
|
|
1816
1816
|
|
|
1817
|
-
|
|
1818
|
-
type GetProfileMfaResponse = operations['GetProfileMfa']['responses']['200']['content']['application/json']
|
|
1819
|
-
type GetProfileMfaResponsePromise = Promise<{fields: GetProfileMfaResponse}>
|
|
1820
|
-
type PostProfileMfaResponse = operations['PostProfileMfa']['responses']['201']['content']['application/json']
|
|
1821
|
-
type PostProfileMfaResponsePromise = Promise<{fields: PostProfileMfaResponse}>
|
|
1822
|
-
type DeleteProfileMfaResponse = operations['DeleteProfileMfa']['responses']['204']
|
|
1823
|
-
type DeleteProfileMfaResponsePromise = Promise<{fields: DeleteProfileMfaResponse}>
|
|
1824
|
-
|
|
1825
1817
|
type GetRoleCollectionRequest = operations['GetRoleCollection']['parameters']["query"] & (operations['GetRoleCollection']['parameters'] extends {path: {}} ? operations['GetRoleCollection']['parameters']["path"] : {})
|
|
1826
1818
|
|
|
1827
1819
|
type GetRoleCollectionResponse = operations['GetRoleCollection']['responses']['200']['content']['application/json'][0]
|
|
@@ -1905,11 +1897,6 @@ declare namespace rebilly {
|
|
|
1905
1897
|
type PutUserResponse = operations['PutUser']['responses']['201']['content']['application/json']
|
|
1906
1898
|
type PutUserResponsePromise = Promise<{fields: PutUserResponse}>
|
|
1907
1899
|
|
|
1908
|
-
type GetUserMfaRequest = { id: string }
|
|
1909
|
-
|
|
1910
|
-
type GetUserMfaResponse = operations['GetUserMfa']['responses']['200']['content']['application/json']
|
|
1911
|
-
type GetUserMfaResponsePromise = Promise<{fields: GetUserMfaResponse}>
|
|
1912
|
-
|
|
1913
1900
|
type GetWebhookCollectionRequest = operations['GetWebhookCollection']['parameters']["query"] & (operations['GetWebhookCollection']['parameters'] extends {path: {}} ? operations['GetWebhookCollection']['parameters']["path"] : {})
|
|
1914
1901
|
|
|
1915
1902
|
type GetWebhookCollectionResponse = operations['GetWebhookCollection']['responses']['200']['content']['application/json'][0]
|
|
@@ -5708,22 +5695,6 @@ export interface corePaths {
|
|
|
5708
5695
|
/** Updates user profile. */
|
|
5709
5696
|
put: operations["PutProfile"];
|
|
5710
5697
|
};
|
|
5711
|
-
"/profile/mfa": {
|
|
5712
|
-
/** Retrieves Multi-Factor Authentication (MFA) status of a user. */
|
|
5713
|
-
get: operations["GetProfileMfa"];
|
|
5714
|
-
/**
|
|
5715
|
-
* Updates the Multi-Factor Authentication (MFA) information of a user.
|
|
5716
|
-
*
|
|
5717
|
-
* The generated link with an `enrollment` `rel` link must be followed to verify the existing MFA or enroll new MFA.
|
|
5718
|
-
*/
|
|
5719
|
-
post: operations["PostProfileMfa"];
|
|
5720
|
-
/**
|
|
5721
|
-
* Deletes the Multi-Factor Authentication (MFA) information of a user.
|
|
5722
|
-
*
|
|
5723
|
-
* To complete this operation, the `lastAuthTime` value must be no more than 10 minutes before this request.
|
|
5724
|
-
*/
|
|
5725
|
-
delete: operations["DeleteProfileMfa"];
|
|
5726
|
-
};
|
|
5727
5698
|
"/roles": {
|
|
5728
5699
|
/** Retrieves a list of user roles. */
|
|
5729
5700
|
get: operations["GetRoleCollection"];
|
|
@@ -5835,16 +5806,6 @@ export interface corePaths {
|
|
|
5835
5806
|
};
|
|
5836
5807
|
};
|
|
5837
5808
|
};
|
|
5838
|
-
"/users/{id}/mfa": {
|
|
5839
|
-
/** Retrieves the Multi-Factor Authentication (MFA) status of a user with a specified ID. */
|
|
5840
|
-
get: operations["GetUserMfa"];
|
|
5841
|
-
parameters: {
|
|
5842
|
-
path: {
|
|
5843
|
-
/** ID of the resource. */
|
|
5844
|
-
id: coreComponents["parameters"]["resourceId"];
|
|
5845
|
-
};
|
|
5846
|
-
};
|
|
5847
|
-
};
|
|
5848
5809
|
"/webhooks": {
|
|
5849
5810
|
/** Retrieves a list of webhooks. */
|
|
5850
5811
|
get: operations["GetWebhookCollection"];
|
|
@@ -23400,28 +23361,6 @@ export interface coreComponents {
|
|
|
23400
23361
|
} | null;
|
|
23401
23362
|
_links?: coreComponents["schemas"]["SelfLink"];
|
|
23402
23363
|
};
|
|
23403
|
-
ProfileMfa: {
|
|
23404
|
-
/** Status of Multi-Factor Authentication (MFA) enrollment. */
|
|
23405
|
-
status?: "active" | "inactive";
|
|
23406
|
-
/**
|
|
23407
|
-
* Type of MFA enrollment.
|
|
23408
|
-
* Type `duo` cannot be updated or deleted.
|
|
23409
|
-
* If you need to reset your Duo MFA, [Contact support](https://www.rebilly.com/support/).
|
|
23410
|
-
*/
|
|
23411
|
-
type?: ("duo" | "otp") | null;
|
|
23412
|
-
/**
|
|
23413
|
-
* Date and time when MFA verification is most recently passed.
|
|
23414
|
-
* To disable MFA, no more than 10 minutes must elapse between this value and the request to disable MFA.
|
|
23415
|
-
*/
|
|
23416
|
-
lastAuthTime?: string | null;
|
|
23417
|
-
/** Related links. */
|
|
23418
|
-
_links?: {
|
|
23419
|
-
/** Link URL. */
|
|
23420
|
-
href?: string;
|
|
23421
|
-
/** Type of link. */
|
|
23422
|
-
rel?: "self" | "enrollment";
|
|
23423
|
-
}[];
|
|
23424
|
-
};
|
|
23425
23364
|
Role: {
|
|
23426
23365
|
/** ID of the role. */
|
|
23427
23366
|
id?: string;
|
|
@@ -43564,55 +43503,6 @@ export interface operations {
|
|
|
43564
43503
|
};
|
|
43565
43504
|
};
|
|
43566
43505
|
};
|
|
43567
|
-
/** Retrieves Multi-Factor Authentication (MFA) status of a user. */
|
|
43568
|
-
GetProfileMfa: {
|
|
43569
|
-
responses: {
|
|
43570
|
-
/** User MFA status retrieved. */
|
|
43571
|
-
200: {
|
|
43572
|
-
content: {
|
|
43573
|
-
"application/json": coreComponents["schemas"]["ProfileMfa"];
|
|
43574
|
-
};
|
|
43575
|
-
};
|
|
43576
|
-
401: coreComponents["responses"]["Unauthorized"];
|
|
43577
|
-
403: coreComponents["responses"]["Forbidden"];
|
|
43578
|
-
404: coreComponents["responses"]["NotFound"];
|
|
43579
|
-
};
|
|
43580
|
-
};
|
|
43581
|
-
/**
|
|
43582
|
-
* Updates the Multi-Factor Authentication (MFA) information of a user.
|
|
43583
|
-
*
|
|
43584
|
-
* The generated link with an `enrollment` `rel` link must be followed to verify the existing MFA or enroll new MFA.
|
|
43585
|
-
*/
|
|
43586
|
-
PostProfileMfa: {
|
|
43587
|
-
responses: {
|
|
43588
|
-
/** User MFA update URL created. */
|
|
43589
|
-
201: {
|
|
43590
|
-
headers: {};
|
|
43591
|
-
content: {
|
|
43592
|
-
"application/json": coreComponents["schemas"]["ProfileMfa"];
|
|
43593
|
-
};
|
|
43594
|
-
};
|
|
43595
|
-
401: coreComponents["responses"]["Unauthorized"];
|
|
43596
|
-
403: coreComponents["responses"]["Forbidden"];
|
|
43597
|
-
404: coreComponents["responses"]["NotFound"];
|
|
43598
|
-
429: coreComponents["responses"]["TooManyRequests"];
|
|
43599
|
-
};
|
|
43600
|
-
};
|
|
43601
|
-
/**
|
|
43602
|
-
* Deletes the Multi-Factor Authentication (MFA) information of a user.
|
|
43603
|
-
*
|
|
43604
|
-
* To complete this operation, the `lastAuthTime` value must be no more than 10 minutes before this request.
|
|
43605
|
-
*/
|
|
43606
|
-
DeleteProfileMfa: {
|
|
43607
|
-
responses: {
|
|
43608
|
-
/** User MFA deleted. */
|
|
43609
|
-
204: never;
|
|
43610
|
-
401: coreComponents["responses"]["Unauthorized"];
|
|
43611
|
-
403: coreComponents["responses"]["Forbidden"];
|
|
43612
|
-
404: coreComponents["responses"]["NotFound"];
|
|
43613
|
-
429: coreComponents["responses"]["TooManyRequests"];
|
|
43614
|
-
};
|
|
43615
|
-
};
|
|
43616
43506
|
/** Retrieves a list of user roles. */
|
|
43617
43507
|
GetRoleCollection: {
|
|
43618
43508
|
parameters: {
|
|
@@ -44158,26 +44048,6 @@ export interface operations {
|
|
|
44158
44048
|
};
|
|
44159
44049
|
requestBody: coreComponents["requestBodies"]["User"];
|
|
44160
44050
|
};
|
|
44161
|
-
/** Retrieves the Multi-Factor Authentication (MFA) status of a user with a specified ID. */
|
|
44162
|
-
GetUserMfa: {
|
|
44163
|
-
parameters: {
|
|
44164
|
-
path: {
|
|
44165
|
-
/** ID of the resource. */
|
|
44166
|
-
id: coreComponents["parameters"]["resourceId"];
|
|
44167
|
-
};
|
|
44168
|
-
};
|
|
44169
|
-
responses: {
|
|
44170
|
-
/** User MFA status retrieved. */
|
|
44171
|
-
200: {
|
|
44172
|
-
content: {
|
|
44173
|
-
"application/json": coreComponents["schemas"]["ProfileMfa"];
|
|
44174
|
-
};
|
|
44175
|
-
};
|
|
44176
|
-
401: coreComponents["responses"]["Unauthorized"];
|
|
44177
|
-
403: coreComponents["responses"]["Forbidden"];
|
|
44178
|
-
404: coreComponents["responses"]["NotFound"];
|
|
44179
|
-
};
|
|
44180
|
-
};
|
|
44181
44051
|
/** Retrieves a list of webhooks. */
|
|
44182
44052
|
GetWebhookCollection: {
|
|
44183
44053
|
parameters: {
|
|
@@ -62898,28 +62768,6 @@ export interface storefrontComponents {
|
|
|
62898
62768
|
} | null;
|
|
62899
62769
|
_links?: storefrontComponents["schemas"]["SelfLink"];
|
|
62900
62770
|
};
|
|
62901
|
-
ProfileMfa: {
|
|
62902
|
-
/** Status of Multi-Factor Authentication (MFA) enrollment. */
|
|
62903
|
-
status?: "active" | "inactive";
|
|
62904
|
-
/**
|
|
62905
|
-
* Type of MFA enrollment.
|
|
62906
|
-
* Type `duo` cannot be updated or deleted.
|
|
62907
|
-
* If you need to reset your Duo MFA, [Contact support](https://www.rebilly.com/support/).
|
|
62908
|
-
*/
|
|
62909
|
-
type?: ("duo" | "otp") | null;
|
|
62910
|
-
/**
|
|
62911
|
-
* Date and time when MFA verification is most recently passed.
|
|
62912
|
-
* To disable MFA, no more than 10 minutes must elapse between this value and the request to disable MFA.
|
|
62913
|
-
*/
|
|
62914
|
-
lastAuthTime?: string | null;
|
|
62915
|
-
/** Related links. */
|
|
62916
|
-
_links?: {
|
|
62917
|
-
/** Link URL. */
|
|
62918
|
-
href?: string;
|
|
62919
|
-
/** Type of link. */
|
|
62920
|
-
rel?: "self" | "enrollment";
|
|
62921
|
-
}[];
|
|
62922
|
-
};
|
|
62923
62771
|
Role: {
|
|
62924
62772
|
/** ID of the role. */
|
|
62925
62773
|
id?: string;
|
|
@@ -89529,28 +89377,6 @@ export interface reportsComponents {
|
|
|
89529
89377
|
} | null;
|
|
89530
89378
|
_links?: reportsComponents["schemas"]["SelfLink"];
|
|
89531
89379
|
};
|
|
89532
|
-
ProfileMfa: {
|
|
89533
|
-
/** Status of Multi-Factor Authentication (MFA) enrollment. */
|
|
89534
|
-
status?: "active" | "inactive";
|
|
89535
|
-
/**
|
|
89536
|
-
* Type of MFA enrollment.
|
|
89537
|
-
* Type `duo` cannot be updated or deleted.
|
|
89538
|
-
* If you need to reset your Duo MFA, [Contact support](https://www.rebilly.com/support/).
|
|
89539
|
-
*/
|
|
89540
|
-
type?: ("duo" | "otp") | null;
|
|
89541
|
-
/**
|
|
89542
|
-
* Date and time when MFA verification is most recently passed.
|
|
89543
|
-
* To disable MFA, no more than 10 minutes must elapse between this value and the request to disable MFA.
|
|
89544
|
-
*/
|
|
89545
|
-
lastAuthTime?: string | null;
|
|
89546
|
-
/** Related links. */
|
|
89547
|
-
_links?: {
|
|
89548
|
-
/** Link URL. */
|
|
89549
|
-
href?: string;
|
|
89550
|
-
/** Type of link. */
|
|
89551
|
-
rel?: "self" | "enrollment";
|
|
89552
|
-
}[];
|
|
89553
|
-
};
|
|
89554
89380
|
Role: {
|
|
89555
89381
|
/** ID of the role. */
|
|
89556
89382
|
id?: string;
|
|
@@ -99839,12 +99665,6 @@ declare module "rebilly-js-sdk" {
|
|
|
99839
99665
|
export type PutProfileRequest = rebilly.PutProfileRequest;
|
|
99840
99666
|
export type PutProfileResponse = rebilly.PutProfileResponse;
|
|
99841
99667
|
export type PutProfileResponsePromise = rebilly.PutProfileResponsePromise;
|
|
99842
|
-
export type GetProfileMfaResponse = rebilly.GetProfileMfaResponse;
|
|
99843
|
-
export type GetProfileMfaResponsePromise = rebilly.GetProfileMfaResponsePromise;
|
|
99844
|
-
export type PostProfileMfaResponse = rebilly.PostProfileMfaResponse;
|
|
99845
|
-
export type PostProfileMfaResponsePromise = rebilly.PostProfileMfaResponsePromise;
|
|
99846
|
-
export type DeleteProfileMfaResponse = rebilly.DeleteProfileMfaResponse;
|
|
99847
|
-
export type DeleteProfileMfaResponsePromise = rebilly.DeleteProfileMfaResponsePromise;
|
|
99848
99668
|
export type GetRoleCollectionRequest = rebilly.GetRoleCollectionRequest;
|
|
99849
99669
|
export type GetRoleCollectionResponse = rebilly.GetRoleCollectionResponse;
|
|
99850
99670
|
export type GetRoleCollectionResponsePromise = rebilly.GetRoleCollectionResponsePromise;
|
|
@@ -99901,9 +99721,6 @@ declare module "rebilly-js-sdk" {
|
|
|
99901
99721
|
export type PutUserRequest = rebilly.PutUserRequest;
|
|
99902
99722
|
export type PutUserResponse = rebilly.PutUserResponse;
|
|
99903
99723
|
export type PutUserResponsePromise = rebilly.PutUserResponsePromise;
|
|
99904
|
-
export type GetUserMfaRequest = rebilly.GetUserMfaRequest;
|
|
99905
|
-
export type GetUserMfaResponse = rebilly.GetUserMfaResponse;
|
|
99906
|
-
export type GetUserMfaResponsePromise = rebilly.GetUserMfaResponsePromise;
|
|
99907
99724
|
export type GetWebhookCollectionRequest = rebilly.GetWebhookCollectionRequest;
|
|
99908
99725
|
export type GetWebhookCollectionResponse = rebilly.GetWebhookCollectionResponse;
|
|
99909
99726
|
export type GetWebhookCollectionResponsePromise = rebilly.GetWebhookCollectionResponsePromise;
|
|
@@ -101988,9 +101805,6 @@ declare module "resources/profile-resource" {
|
|
|
101988
101805
|
update({ data }: {
|
|
101989
101806
|
data: any;
|
|
101990
101807
|
}): rebilly.PutProfileResponsePromise;
|
|
101991
|
-
getMfa(): rebilly.GetProfileMfaResponsePromise;
|
|
101992
|
-
updateMfa(): any;
|
|
101993
|
-
deleteMfa(): any;
|
|
101994
101808
|
getDashboard(): rebilly.GetProfileDashboardResponsePromise;
|
|
101995
101809
|
updateDashboard({ data }: {
|
|
101996
101810
|
data: any;
|
|
@@ -102508,9 +102322,6 @@ declare module "resources/users-resource" {
|
|
|
102508
102322
|
id: any;
|
|
102509
102323
|
data: any;
|
|
102510
102324
|
}): rebilly.PutUserResponsePromise;
|
|
102511
|
-
getMfa({ id }: {
|
|
102512
|
-
id: any;
|
|
102513
|
-
}): rebilly.GetUserMfaResponsePromise;
|
|
102514
102325
|
};
|
|
102515
102326
|
}
|
|
102516
102327
|
declare module "resources/webhooks-resource" {
|
|
@@ -103753,9 +103564,6 @@ declare module "resources/api-instance" {
|
|
|
103753
103564
|
update({ data }: {
|
|
103754
103565
|
data: any;
|
|
103755
103566
|
}): rebilly.PutProfileResponsePromise;
|
|
103756
|
-
getMfa(): rebilly.GetProfileMfaResponsePromise;
|
|
103757
|
-
updateMfa(): any;
|
|
103758
|
-
deleteMfa(): any;
|
|
103759
103567
|
getDashboard(): rebilly.GetProfileDashboardResponsePromise;
|
|
103760
103568
|
updateDashboard({ data }: {
|
|
103761
103569
|
data: any;
|
|
@@ -104189,9 +103997,6 @@ declare module "resources/api-instance" {
|
|
|
104189
103997
|
id: any;
|
|
104190
103998
|
data: any;
|
|
104191
103999
|
}): rebilly.PutUserResponsePromise;
|
|
104192
|
-
getMfa({ id }: {
|
|
104193
|
-
id: any;
|
|
104194
|
-
}): rebilly.GetUserMfaResponsePromise;
|
|
104195
104000
|
};
|
|
104196
104001
|
webhooks: {
|
|
104197
104002
|
getAll({ limit, offset, filter }?: rebilly.GetWebhookCollectionRequest): rebilly.GetWebhookCollectionResponsePromise;
|
|
@@ -489,7 +489,7 @@ function O({ options: e }) {
|
|
|
489
489
|
}
|
|
490
490
|
function o() {
|
|
491
491
|
const a = {
|
|
492
|
-
"REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m) => m).join("/")}@
|
|
492
|
+
"REB-API-CONSUMER": `${["Rebilly", e.appName, "js-sdk"].filter((m) => m).join("/")}@8cc65a0`
|
|
493
493
|
};
|
|
494
494
|
return e.apiKey && (a["REB-APIKEY"] = e.apiKey), a;
|
|
495
495
|
}
|
|
@@ -3226,18 +3226,6 @@ function Je({ apiHandler: e }) {
|
|
|
3226
3226
|
update({ data: t }) {
|
|
3227
3227
|
return e.put("profile", t);
|
|
3228
3228
|
},
|
|
3229
|
-
/**
|
|
3230
|
-
* @returns { rebilly.GetProfileMfaResponsePromise } response
|
|
3231
|
-
*/
|
|
3232
|
-
getMfa() {
|
|
3233
|
-
return e.get("profile/mfa");
|
|
3234
|
-
},
|
|
3235
|
-
updateMfa() {
|
|
3236
|
-
return e.post("profile/mfa");
|
|
3237
|
-
},
|
|
3238
|
-
deleteMfa() {
|
|
3239
|
-
return e.delete("profile/mfa");
|
|
3240
|
-
},
|
|
3241
3229
|
/**
|
|
3242
3230
|
* @returns { rebilly.GetProfileDashboardResponsePromise } response
|
|
3243
3231
|
*/
|
|
@@ -4151,12 +4139,6 @@ function ms({ apiHandler: e }) {
|
|
|
4151
4139
|
*/
|
|
4152
4140
|
update({ id: t, data: s }) {
|
|
4153
4141
|
return e.put(`users/${t}`, s);
|
|
4154
|
-
},
|
|
4155
|
-
/**
|
|
4156
|
-
* @returns { rebilly.GetUserMfaResponsePromise } response
|
|
4157
|
-
*/
|
|
4158
|
-
getMfa({ id: t }) {
|
|
4159
|
-
return e.get(`users/${t}/mfa`);
|
|
4160
4142
|
}
|
|
4161
4143
|
};
|
|
4162
4144
|
}
|