@dfns/sdk 0.8.21 → 0.8.24

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.
@@ -1,11 +1,17 @@
1
1
  export type GetLatestUnacceptedAgreementQuery = {
2
+ /** Type of agreement to look up. */
2
3
  agreementType: "PrivacyPolicy" | "TermsAndConditions" | "UniswapTermsOfService" | "UniswapPrivacyPolicy";
3
4
  };
4
5
  export type GetLatestUnacceptedAgreementResponse = {
6
+ /** Latest unaccepted agreement, or `null` if none. */
5
7
  latestAgreement: {
8
+ /** ID of the agreement. */
6
9
  id: string;
10
+ /** URL where the full agreement document can be viewed. */
7
11
  agreementUrl?: string | undefined;
12
+ /** Details of the agreement. */
8
13
  details: string;
14
+ /** Type of the agreement. */
9
15
  agreementType: "PrivacyPolicy" | "TermsAndConditions" | "UniswapTermsOfService" | "UniswapPrivacyPolicy";
10
16
  } | null;
11
17
  };
@@ -13,10 +19,13 @@ export type GetLatestUnacceptedAgreementRequest = {
13
19
  query?: GetLatestUnacceptedAgreementQuery;
14
20
  };
15
21
  export type RecordAgreementAcceptanceParams = {
22
+ /** ID of the agreement to accept. */
16
23
  agreementId: string;
17
24
  };
18
25
  export type RecordAgreementAcceptanceResponse = {
26
+ /** ID of the agreement that was accepted. */
19
27
  agreementId: string;
28
+ /** User id. */
20
29
  userId: string;
21
30
  dateAccepted: string;
22
31
  };