rebilly-js-sdk 62.182.2 → 62.183.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.
@@ -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]
@@ -2073,11 +2060,6 @@ declare namespace rebilly {
2073
2060
  type StorefrontGetCashierResponse = operations['StorefrontGetCashier']['responses']['200']['content']['application/json']
2074
2061
  type StorefrontGetCashierResponsePromise = Promise<{fields: StorefrontGetCashierResponse}>
2075
2062
 
2076
- type StorefrontPostCashierPayoutRequestCancellationRequest = operations['StorefrontPostCashierPayoutRequestCancellation']['requestBody']['content']['application/json']
2077
- type StorefrontCreateCashierPayoutRequestCancellationRequest = { id?: string, data: StorefrontPostCashierPayoutRequestCancellationRequest, expand?: string }
2078
- type StorefrontPostCashierPayoutRequestCancellationResponse = operations['StorefrontPostCashierPayoutRequestCancellation']['responses']['200']['content']['application/json']
2079
- type StorefrontPostCashierPayoutRequestCancellationResponsePromise = Promise<{fields: StorefrontPostCashierPayoutRequestCancellationResponse}>
2080
-
2081
2063
  type StorefrontPostDepositRequest = operations['StorefrontPostDeposit']['requestBody']['content']['application/json']
2082
2064
  type StorefrontCreateDepositRequest = { id?: string, data: StorefrontPostDepositRequest, expand?: string }
2083
2065
  type StorefrontPostDepositResponse = operations['StorefrontPostDeposit']['responses']['201']['content']['application/json']
@@ -5708,22 +5690,6 @@ export interface corePaths {
5708
5690
  /** Updates user profile. */
5709
5691
  put: operations["PutProfile"];
5710
5692
  };
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
5693
  "/roles": {
5728
5694
  /** Retrieves a list of user roles. */
5729
5695
  get: operations["GetRoleCollection"];
@@ -5835,16 +5801,6 @@ export interface corePaths {
5835
5801
  };
5836
5802
  };
5837
5803
  };
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
5804
  "/webhooks": {
5849
5805
  /** Retrieves a list of webhooks. */
5850
5806
  get: operations["GetWebhookCollection"];
@@ -23400,28 +23356,6 @@ export interface coreComponents {
23400
23356
  } | null;
23401
23357
  _links?: coreComponents["schemas"]["SelfLink"];
23402
23358
  };
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
23359
  Role: {
23426
23360
  /** ID of the role. */
23427
23361
  id?: string;
@@ -25504,10 +25438,6 @@ export interface coreComponents {
25504
25438
  updatedTime?: coreComponents["schemas"]["UpdatedTime"];
25505
25439
  _links?: coreComponents["schemas"]["SelfLink"];
25506
25440
  };
25507
- PostCashierPayoutRequestCancellation: {
25508
- /** Pending payout request amount to be canceled. */
25509
- amount: number;
25510
- };
25511
25441
  /**
25512
25442
  * URL to redirect the end-user when an offsite transaction is completed.
25513
25443
  * If `website.url` is `https://example.com`, then the `redirectUrl` could be set to any of these:
@@ -43564,55 +43494,6 @@ export interface operations {
43564
43494
  };
43565
43495
  };
43566
43496
  };
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
43497
  /** Retrieves a list of user roles. */
43617
43498
  GetRoleCollection: {
43618
43499
  parameters: {
@@ -44158,26 +44039,6 @@ export interface operations {
44158
44039
  };
44159
44040
  requestBody: coreComponents["requestBodies"]["User"];
44160
44041
  };
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
44042
  /** Retrieves a list of webhooks. */
44182
44043
  GetWebhookCollection: {
44183
44044
  parameters: {
@@ -44983,25 +44844,6 @@ export interface storefrontPaths {
44983
44844
  };
44984
44845
  };
44985
44846
  };
44986
- "/cashiers/{id}/cancel-payout-requests": {
44987
- /**
44988
- * Cancels pending payout requests that are associated with the cashier resource.
44989
- *
44990
- * - To cancel all pending payout requests, omit the request body.
44991
- * - To cancel payout requests based on a specific amount, include the amount in the request body.
44992
- * The oldest requests are canceled first until the specified amount is reached.
44993
- *
44994
- * This endpoint is deprecated.
44995
- * Use [Cancel pending payout requests](../StorefrontPostPayoutRequestCancellation) instead.
44996
- */
44997
- post: operations["StorefrontPostCashierPayoutRequestCancellation"];
44998
- parameters: {
44999
- path: {
45000
- /** ID of the resource. */
45001
- id: storefrontComponents["parameters"]["resourceId"];
45002
- };
45003
- };
45004
- };
45005
44847
  "/deposit": {
45006
44848
  /** Creates a deposit transaction. */
45007
44849
  post: operations["StorefrontPostDeposit"];
@@ -62898,28 +62740,6 @@ export interface storefrontComponents {
62898
62740
  } | null;
62899
62741
  _links?: storefrontComponents["schemas"]["SelfLink"];
62900
62742
  };
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
62743
  Role: {
62924
62744
  /** ID of the role. */
62925
62745
  id?: string;
@@ -65002,10 +64822,6 @@ export interface storefrontComponents {
65002
64822
  updatedTime?: storefrontComponents["schemas"]["UpdatedTime"];
65003
64823
  _links?: storefrontComponents["schemas"]["SelfLink"];
65004
64824
  };
65005
- PostCashierPayoutRequestCancellation: {
65006
- /** Pending payout request amount to be canceled. */
65007
- amount: number;
65008
- };
65009
64825
  /**
65010
64826
  * URL to redirect the end-user when an offsite transaction is completed.
65011
64827
  * If `website.url` is `https://example.com`, then the `redirectUrl` could be set to any of these:
@@ -70267,41 +70083,6 @@ export interface operations {
70267
70083
  404: storefrontComponents["responses"]["NotFound"];
70268
70084
  };
70269
70085
  };
70270
- /**
70271
- * Cancels pending payout requests that are associated with the cashier resource.
70272
- *
70273
- * - To cancel all pending payout requests, omit the request body.
70274
- * - To cancel payout requests based on a specific amount, include the amount in the request body.
70275
- * The oldest requests are canceled first until the specified amount is reached.
70276
- *
70277
- * This endpoint is deprecated.
70278
- * Use [Cancel pending payout requests](../StorefrontPostPayoutRequestCancellation) instead.
70279
- */
70280
- StorefrontPostCashierPayoutRequestCancellation: {
70281
- parameters: {
70282
- path: {
70283
- /** ID of the resource. */
70284
- id: storefrontComponents["parameters"]["resourceId"];
70285
- };
70286
- };
70287
- responses: {
70288
- /** Canceled all applicable pending cashier payout requests. */
70289
- 200: {
70290
- content: {
70291
- "application/json": storefrontComponents["schemas"]["Cashier"];
70292
- };
70293
- };
70294
- 401: storefrontComponents["responses"]["Unauthorized"];
70295
- 403: storefrontComponents["responses"]["Forbidden"];
70296
- 404: storefrontComponents["responses"]["NotFound"];
70297
- 422: storefrontComponents["responses"]["ValidationError"];
70298
- };
70299
- requestBody: {
70300
- content: {
70301
- "application/json": storefrontComponents["schemas"]["PostCashierPayoutRequestCancellation"];
70302
- };
70303
- };
70304
- };
70305
70086
  /** Creates a deposit transaction. */
70306
70087
  StorefrontPostDeposit: {
70307
70088
  responses: {
@@ -89529,28 +89310,6 @@ export interface reportsComponents {
89529
89310
  } | null;
89530
89311
  _links?: reportsComponents["schemas"]["SelfLink"];
89531
89312
  };
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
89313
  Role: {
89555
89314
  /** ID of the role. */
89556
89315
  id?: string;
@@ -91633,10 +91392,6 @@ export interface reportsComponents {
91633
91392
  updatedTime?: reportsComponents["schemas"]["UpdatedTime"];
91634
91393
  _links?: reportsComponents["schemas"]["SelfLink"];
91635
91394
  };
91636
- PostCashierPayoutRequestCancellation: {
91637
- /** Pending payout request amount to be canceled. */
91638
- amount: number;
91639
- };
91640
91395
  /**
91641
91396
  * URL to redirect the end-user when an offsite transaction is completed.
91642
91397
  * If `website.url` is `https://example.com`, then the `redirectUrl` could be set to any of these:
@@ -99839,12 +99594,6 @@ declare module "rebilly-js-sdk" {
99839
99594
  export type PutProfileRequest = rebilly.PutProfileRequest;
99840
99595
  export type PutProfileResponse = rebilly.PutProfileResponse;
99841
99596
  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
99597
  export type GetRoleCollectionRequest = rebilly.GetRoleCollectionRequest;
99849
99598
  export type GetRoleCollectionResponse = rebilly.GetRoleCollectionResponse;
99850
99599
  export type GetRoleCollectionResponsePromise = rebilly.GetRoleCollectionResponsePromise;
@@ -99901,9 +99650,6 @@ declare module "rebilly-js-sdk" {
99901
99650
  export type PutUserRequest = rebilly.PutUserRequest;
99902
99651
  export type PutUserResponse = rebilly.PutUserResponse;
99903
99652
  export type PutUserResponsePromise = rebilly.PutUserResponsePromise;
99904
- export type GetUserMfaRequest = rebilly.GetUserMfaRequest;
99905
- export type GetUserMfaResponse = rebilly.GetUserMfaResponse;
99906
- export type GetUserMfaResponsePromise = rebilly.GetUserMfaResponsePromise;
99907
99653
  export type GetWebhookCollectionRequest = rebilly.GetWebhookCollectionRequest;
99908
99654
  export type GetWebhookCollectionResponse = rebilly.GetWebhookCollectionResponse;
99909
99655
  export type GetWebhookCollectionResponsePromise = rebilly.GetWebhookCollectionResponsePromise;
@@ -100024,10 +99770,6 @@ declare module "rebilly-js-sdk" {
100024
99770
  export type StorefrontGetCashierRequest = rebilly.StorefrontGetCashierRequest;
100025
99771
  export type StorefrontGetCashierResponse = rebilly.StorefrontGetCashierResponse;
100026
99772
  export type StorefrontGetCashierResponsePromise = rebilly.StorefrontGetCashierResponsePromise;
100027
- export type StorefrontPostCashierPayoutRequestCancellationRequest = rebilly.StorefrontPostCashierPayoutRequestCancellationRequest;
100028
- export type StorefrontCreateCashierPayoutRequestCancellationRequest = rebilly.StorefrontCreateCashierPayoutRequestCancellationRequest;
100029
- export type StorefrontPostCashierPayoutRequestCancellationResponse = rebilly.StorefrontPostCashierPayoutRequestCancellationResponse;
100030
- export type StorefrontPostCashierPayoutRequestCancellationResponsePromise = rebilly.StorefrontPostCashierPayoutRequestCancellationResponsePromise;
100031
99773
  export type StorefrontPostDepositRequest = rebilly.StorefrontPostDepositRequest;
100032
99774
  export type StorefrontCreateDepositRequest = rebilly.StorefrontCreateDepositRequest;
100033
99775
  export type StorefrontPostDepositResponse = rebilly.StorefrontPostDepositResponse;
@@ -101988,9 +101730,6 @@ declare module "resources/profile-resource" {
101988
101730
  update({ data }: {
101989
101731
  data: any;
101990
101732
  }): rebilly.PutProfileResponsePromise;
101991
- getMfa(): rebilly.GetProfileMfaResponsePromise;
101992
- updateMfa(): any;
101993
- deleteMfa(): any;
101994
101733
  getDashboard(): rebilly.GetProfileDashboardResponsePromise;
101995
101734
  updateDashboard({ data }: {
101996
101735
  data: any;
@@ -102508,9 +102247,6 @@ declare module "resources/users-resource" {
102508
102247
  id: any;
102509
102248
  data: any;
102510
102249
  }): rebilly.PutUserResponsePromise;
102511
- getMfa({ id }: {
102512
- id: any;
102513
- }): rebilly.GetUserMfaResponsePromise;
102514
102250
  };
102515
102251
  }
102516
102252
  declare module "resources/webhooks-resource" {
@@ -103753,9 +103489,6 @@ declare module "resources/api-instance" {
103753
103489
  update({ data }: {
103754
103490
  data: any;
103755
103491
  }): rebilly.PutProfileResponsePromise;
103756
- getMfa(): rebilly.GetProfileMfaResponsePromise;
103757
- updateMfa(): any;
103758
- deleteMfa(): any;
103759
103492
  getDashboard(): rebilly.GetProfileDashboardResponsePromise;
103760
103493
  updateDashboard({ data }: {
103761
103494
  data: any;
@@ -104189,9 +103922,6 @@ declare module "resources/api-instance" {
104189
103922
  id: any;
104190
103923
  data: any;
104191
103924
  }): rebilly.PutUserResponsePromise;
104192
- getMfa({ id }: {
104193
- id: any;
104194
- }): rebilly.GetUserMfaResponsePromise;
104195
103925
  };
104196
103926
  webhooks: {
104197
103927
  getAll({ limit, offset, filter }?: rebilly.GetWebhookCollectionRequest): rebilly.GetWebhookCollectionResponsePromise;