0.0.20240514 • Published 2 days ago

@maxim_mazurok/gapi.client.digitalassetlinks-v1 v0.0.20240514

Weekly downloads
-
License
MIT
Repository
github
Last release
2 days ago

TypeScript typings for Digital Asset Links API v1

Discovers relationships between online assets such as websites or mobile apps. For detailed description please check documentation.

Installing

Install typings for Digital Asset Links API:

npm install @types/gapi.client.digitalassetlinks-v1 --save-dev

Usage

You need to initialize Google API client in your code:

gapi.load('client', () => {
  // now we can use gapi.client
  // ...
});

Then load api client wrapper:

gapi.client.load(
  'https://digitalassetlinks.googleapis.com/$discovery/rest?version=v1',
  () => {
    // now we can use:
    // gapi.client.digitalassetlinks
  }
);
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
gapi.client.load('digitalassetlinks', 'v1', () => {
  // now we can use:
  // gapi.client.digitalassetlinks
});

After that you can use Digital Asset Links API resources:

/*
Send a bundle of statement checks in a single RPC to minimize latency and service load. Statements need not be all for the same source and/or target. We recommend using this method when you need to check more than one statement in a short period of time.
*/
await gapi.client.digitalassetlinks.assetlinks.bulkCheck({});

/*
Determines whether the specified (directional) relationship exists between the specified source and target assets. The relation describes the intent of the link between the two assets as claimed by the source asset. An example for such relationships is the delegation of privileges or permissions. This command is most often used by infrastructure systems to check preconditions for an action. For example, a client may want to know if it is OK to send a web URL to a particular mobile app instead. The client can check for the relevant asset link from the website to the mobile app to decide if the operation should be allowed. A note about security: if you specify a secure asset as the source, such as an HTTPS website or an Android app, the API will ensure that any statements used to generate the response have been made in a secure way by the owner of that asset. Conversely, if the source asset is an insecure HTTP website (that is, the URL starts with `http://` instead of `https://`), the API cannot verify its statements securely, and it is not possible to ensure that the website's statements have not been altered by a third party. For more information, see the [Digital Asset Links technical design specification](https://github.com/google/digitalassetlinks/blob/master/well-known/details.md).
*/
await gapi.client.digitalassetlinks.assetlinks.check({});

/*
Retrieves a list of all statements from a given source that match the specified target and statement string. The API guarantees that all statements with secure source assets, such as HTTPS websites or Android apps, have been made in a secure way by the owner of those assets, as described in the [Digital Asset Links technical design specification](https://github.com/google/digitalassetlinks/blob/master/well-known/details.md). Specifically, you should consider that for insecure websites (that is, where the URL starts with `http://` instead of `https://`), this guarantee cannot be made. The `List` command is most useful in cases where the API client wants to know all the ways in which two assets are related, or enumerate all the relationships from a particular source asset. Example: a feature that helps users navigate to related items. When a mobile app is running on a device, the feature would make it easy to navigate to the corresponding web site or Google+ profile.
*/
await gapi.client.digitalassetlinks.statements.list({});
0.0.20240514

2 days ago

0.0.20240511

6 days ago

0.0.20240507

9 days ago

0.0.20240504

9 days ago

0.0.20240430

16 days ago

0.0.20240420

20 days ago

0.0.20240416

1 month ago

0.0.20240403

1 month ago

0.0.20240326

2 months ago

0.0.20240323

2 months ago

0.0.20240312

2 months ago

0.0.20240309

2 months ago

0.0.20240305

2 months ago

0.0.20240227

3 months ago

0.0.20240224

3 months ago

0.0.20240217

3 months ago

0.0.20240213

3 months ago

0.0.20240210

3 months ago

0.0.20240206

3 months ago

0.0.20240202

3 months ago

0.0.20240130

4 months ago

0.0.20240127

4 months ago

0.0.20240123

4 months ago

0.0.20240120

4 months ago

0.0.20240116

4 months ago

0.0.20240113

4 months ago

0.0.20240108

4 months ago

0.0.20240106

4 months ago

0.0.20231220

5 months ago

0.0.20231216

5 months ago

0.0.20231212

5 months ago

0.0.20231209

5 months ago

0.0.20231205

5 months ago

0.0.20231202

6 months ago

0.0.20231128

6 months ago

0.0.20230819

9 months ago

0.0.20231107

6 months ago

0.0.20230815

9 months ago

0.0.20230812

9 months ago

0.0.20231111

6 months ago

0.0.20230807

10 months ago

0.0.20230929

8 months ago

0.0.20230808

9 months ago

0.0.20230920

8 months ago

0.0.20230801

10 months ago

0.0.20231104

7 months ago

0.0.20230718

10 months ago

0.0.20231007

7 months ago

0.0.20230711

10 months ago

0.0.20230715

10 months ago

0.0.20231010

7 months ago

0.0.20231014

7 months ago

0.0.20230708

10 months ago

0.0.20230828

9 months ago

0.0.20230822

9 months ago

0.0.20231118

6 months ago

0.0.20230704

11 months ago

0.0.20230826

9 months ago

0.0.20231001

8 months ago

0.0.20231121

6 months ago

0.0.20231124

6 months ago

0.0.20231028

7 months ago

0.0.20231031

7 months ago

0.0.20230729

10 months ago

0.0.20230722

10 months ago

0.0.20231017

7 months ago

0.0.20231019

7 months ago

0.0.20230725

10 months ago

0.0.20230914

8 months ago

0.0.20230905

8 months ago

0.0.20230909

8 months ago

0.0.20230902

9 months ago

0.0.20230627

11 months ago

0.0.20230624

11 months ago

0.0.20230620

11 months ago

0.0.20230610

11 months ago

0.0.20230617

11 months ago

0.0.20230614

11 months ago

0.0.20230523

12 months ago

0.0.20230606

12 months ago

0.0.20230603

12 months ago

0.0.20230527

12 months ago

0.0.20230530

12 months ago

0.0.20230513

1 year ago

0.0.20230515

1 year ago

0.0.20230520

12 months ago

0.0.20230509

1 year ago

0.0.20230502

1 year ago

0.0.20230506

1 year ago

0.0.20230415

1 year ago

0.0.20230418

1 year ago

0.0.20230422

1 year ago

0.0.20230401

1 year ago

0.0.20230328

1 year ago

0.0.20230322

1 year ago

0.0.20230304

1 year ago

0.0.20230228

1 year ago

0.0.20230308

1 year ago

0.0.20230307

1 year ago

0.0.20230201

1 year ago

0.0.20230124

1 year ago

0.0.20230204

1 year ago

0.0.20230207

1 year ago

0.0.20230211

1 year ago

0.0.20230117

1 year ago

0.0.20221115

2 years ago

0.0.20221112

2 years ago

0.0.20230121

1 year ago

0.0.20221209

1 year ago

0.0.20230103

1 year ago

0.0.20221229

1 year ago

0.0.20221108

2 years ago

0.0.20221206

1 year ago

0.0.20221129

1 year ago

0.0.20221203

1 year ago

0.0.20221126

1 year ago

0.0.20221103

2 years ago

0.0.20230105

1 year ago

0.0.20221122

1 year ago

0.0.20230110

1 year ago

0.0.20230114

1 year ago

0.0.20221216

1 year ago

0.0.20221025

2 years ago

0.0.20221021

2 years ago

0.0.20221029

2 years ago

0.0.20221018

2 years ago

0.0.20220920

2 years ago

0.0.20220926

2 years ago

0.0.20220830

2 years ago

0.0.20220917

2 years ago

0.0.20220906

2 years ago

0.0.20220820

2 years ago

0.0.20220910

2 years ago

0.0.20220823

2 years ago

0.0.20220913

2 years ago

0.0.20220903

2 years ago

0.0.20220827

2 years ago

0.0.20220816

2 years ago

0.0.20220813

2 years ago

0.0.20220809

2 years ago

0.0.20220806

2 years ago