New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@maxim_mazurok/gapi.client.firebasestorage-v1beta

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maxim_mazurok/gapi.client.firebasestorage-v1beta - npm Package Compare versions

Comparing version 0.0.20231117 to 0.0.20231201

533

index.d.ts

@@ -12,3 +12,3 @@ /* Type definitions for non-npm package Cloud Storage for Firebase API v1beta 0.0 */

// Generated from: https://firebasestorage.googleapis.com/$discovery/rest?version=v1beta
// Revision: 20231117
// Revision: 20231201

@@ -18,312 +18,227 @@ /// <reference types="gapi.client" />

declare namespace gapi.client {
/** Load Cloud Storage for Firebase API v1beta */
function load(urlOrObject: "https://firebasestorage.googleapis.com/$discovery/rest?version=v1beta"): Promise<void>;
/** @deprecated Please load APIs with discovery documents. */
function load(name: "firebasestorage", version: "v1beta"): Promise<void>;
/** @deprecated Please load APIs with discovery documents. */
function load(name: "firebasestorage", version: "v1beta", callback: () => any): void;
/** Load Cloud Storage for Firebase API v1beta */
function load(
urlOrObject: 'https://firebasestorage.googleapis.com/$discovery/rest?version=v1beta'
): Promise<void>;
/** @deprecated Please load APIs with discovery documents. */
function load(name: 'firebasestorage', version: 'v1beta'): Promise<void>;
/** @deprecated Please load APIs with discovery documents. */
function load(
name: 'firebasestorage',
version: 'v1beta',
callback: () => any
): void;
namespace firebasestorage {
// tslint:disable-next-line:no-empty-interface
interface AddFirebaseRequest {
}
interface Bucket {
/** Output only. Resource name of the bucket. */
name?:
string;
}
// tslint:disable-next-line:no-empty-interface
interface Empty {
}
interface GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata {
/** The time the LRO was created. */
createTime?:
string;
/** The time the LRO was last updated. */
lastUpdateTime?:
string;
/** The current state of the migration. */
state?:
string;
}
interface GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata {
/** The time the LRO was created. */
createTime?:
string;
/** The time the LRO was last updated. */
lastUpdateTime?:
string;
/** The current state of the migration. */
state?:
string;
}
interface ListBucketsResponse {
/** The list of linked buckets. */
buckets?:
Bucket[];
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
nextPageToken?:
string;
}
// tslint:disable-next-line:no-empty-interface
interface RemoveFirebaseRequest {
}
interface BucketsResource {
/** Links a Google Cloud Storage bucket to a Firebase project. */
addFirebase(request: {
/** V1 error format. */
"$.xgafv"?:
string;
/** OAuth access token. */
access_token?:
string;
/** Data format for response. */
alt?:
string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
bucket:
string;
/** JSONP */
callback?:
string;
/** Selector specifying which fields to include in a partial response. */
fields?:
string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?:
string;
/** OAuth 2.0 token for the current user. */
oauth_token?:
string;
/** Returns response with indentations and line breaks. */
prettyPrint?:
boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?:
string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?:
string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?:
string;
/** Request body */
resource:
AddFirebaseRequest;
}): Request<Bucket>;
addFirebase(request: {
/** V1 error format. */
"$.xgafv"?:
string;
/** OAuth access token. */
access_token?:
string;
/** Data format for response. */
alt?:
string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
bucket:
string;
/** JSONP */
callback?:
string;
/** Selector specifying which fields to include in a partial response. */
fields?:
string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?:
string;
/** OAuth 2.0 token for the current user. */
oauth_token?:
string;
/** Returns response with indentations and line breaks. */
prettyPrint?:
boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?:
string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?:
string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?:
string;
},
body: AddFirebaseRequest): Request<Bucket>;
/** Gets a single linked storage bucket. */
get(request?: {
/** V1 error format. */
"$.xgafv"?:
string;
/** OAuth access token. */
access_token?:
string;
/** Data format for response. */
alt?:
string;
/** JSONP */
callback?:
string;
/** Selector specifying which fields to include in a partial response. */
fields?:
string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?:
string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
name:
string;
/** OAuth 2.0 token for the current user. */
oauth_token?:
string;
/** Returns response with indentations and line breaks. */
prettyPrint?:
boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?:
string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?:
string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?:
string;
}): Request<Bucket>;
/** Lists the linked storage buckets for a project. */
list(request?: {
/** V1 error format. */
"$.xgafv"?:
string;
/** OAuth access token. */
access_token?:
string;
/** Data format for response. */
alt?:
string;
/** JSONP */
callback?:
string;
/** Selector specifying which fields to include in a partial response. */
fields?:
string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?:
string;
/** OAuth 2.0 token for the current user. */
oauth_token?:
string;
/** The maximum number of buckets to return. If not set, the server will use a reasonable default. */
pageSize?:
number;
/**
* A page token, received from a previous `ListBuckets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBuckets` must
* match the call that provided the page token.
*/
pageToken?:
string;
/** Required. Resource name of the parent Firebase project, `projects/{project_id_or_number}`. */
parent:
string;
/** Returns response with indentations and line breaks. */
prettyPrint?:
boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?:
string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?:
string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?:
string;
}): Request<ListBucketsResponse>;
/** Unlinks a linked Google Cloud Storage bucket from a Firebase project. */
removeFirebase(request: {
/** V1 error format. */
"$.xgafv"?:
string;
/** OAuth access token. */
access_token?:
string;
/** Data format for response. */
alt?:
string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
bucket:
string;
/** JSONP */
callback?:
string;
/** Selector specifying which fields to include in a partial response. */
fields?:
string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?:
string;
/** OAuth 2.0 token for the current user. */
oauth_token?:
string;
/** Returns response with indentations and line breaks. */
prettyPrint?:
boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?:
string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?:
string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?:
string;
/** Request body */
resource:
RemoveFirebaseRequest;
}): Request<{}>;
removeFirebase(request: {
/** V1 error format. */
"$.xgafv"?:
string;
/** OAuth access token. */
access_token?:
string;
/** Data format for response. */
alt?:
string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
bucket:
string;
/** JSONP */
callback?:
string;
/** Selector specifying which fields to include in a partial response. */
fields?:
string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?:
string;
/** OAuth 2.0 token for the current user. */
oauth_token?:
string;
/** Returns response with indentations and line breaks. */
prettyPrint?:
boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?:
string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?:
string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?:
string;
},
body: RemoveFirebaseRequest): Request<{}>;
}
interface ProjectsResource {
buckets:
BucketsResource;
}
namespace firebasestorage {
interface AddFirebaseRequest {}
interface Bucket {
/** Output only. Resource name of the bucket. */
name?: string;
}
interface Empty {}
interface GoogleFirebaseStorageControlplaneV1alphaMigrateLocationDestructivelyMetadata {
/** The time the LRO was created. */
createTime?: string;
/** The time the LRO was last updated. */
lastUpdateTime?: string;
/** The current state of the migration. */
state?: string;
}
interface GoogleFirebaseStorageControlplaneV1betaMigrateLocationDestructivelyMetadata {
/** The time the LRO was created. */
createTime?: string;
/** The time the LRO was last updated. */
lastUpdateTime?: string;
/** The current state of the migration. */
state?: string;
}
interface ListBucketsResponse {
/** The list of linked buckets. */
buckets?: Bucket[];
/** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
nextPageToken?: string;
}
interface RemoveFirebaseRequest {}
interface BucketsResource {
/** Links a Google Cloud Storage bucket to a Firebase project. */
addFirebase(request: {
/** V1 error format. */
'$.xgafv'?: string;
/** OAuth access token. */
access_token?: string;
/** Data format for response. */
alt?: string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
bucket: string;
/** JSONP */
callback?: string;
/** Selector specifying which fields to include in a partial response. */
fields?: string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?: string;
/** OAuth 2.0 token for the current user. */
oauth_token?: string;
/** Returns response with indentations and line breaks. */
prettyPrint?: boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?: string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?: string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?: string;
/** Request body */
resource: AddFirebaseRequest;
}): Request<Bucket>;
addFirebase(
request: {
/** V1 error format. */
'$.xgafv'?: string;
/** OAuth access token. */
access_token?: string;
/** Data format for response. */
alt?: string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
bucket: string;
/** JSONP */
callback?: string;
/** Selector specifying which fields to include in a partial response. */
fields?: string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?: string;
/** OAuth 2.0 token for the current user. */
oauth_token?: string;
/** Returns response with indentations and line breaks. */
prettyPrint?: boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?: string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?: string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?: string;
},
body: AddFirebaseRequest
): Request<Bucket>;
/** Gets a single linked storage bucket. */
get(request?: {
/** V1 error format. */
'$.xgafv'?: string;
/** OAuth access token. */
access_token?: string;
/** Data format for response. */
alt?: string;
/** JSONP */
callback?: string;
/** Selector specifying which fields to include in a partial response. */
fields?: string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?: string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
name: string;
/** OAuth 2.0 token for the current user. */
oauth_token?: string;
/** Returns response with indentations and line breaks. */
prettyPrint?: boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?: string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?: string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?: string;
}): Request<Bucket>;
/** Lists the linked storage buckets for a project. */
list(request?: {
/** V1 error format. */
'$.xgafv'?: string;
/** OAuth access token. */
access_token?: string;
/** Data format for response. */
alt?: string;
/** JSONP */
callback?: string;
/** Selector specifying which fields to include in a partial response. */
fields?: string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?: string;
/** OAuth 2.0 token for the current user. */
oauth_token?: string;
/** The maximum number of buckets to return. If not set, the server will use a reasonable default. */
pageSize?: number;
/** A page token, received from a previous `ListBuckets` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListBuckets` must match the call that provided the page token. */
pageToken?: string;
/** Required. Resource name of the parent Firebase project, `projects/{project_id_or_number}`. */
parent: string;
/** Returns response with indentations and line breaks. */
prettyPrint?: boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?: string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?: string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?: string;
}): Request<ListBucketsResponse>;
/** Unlinks a linked Google Cloud Storage bucket from a Firebase project. */
removeFirebase(request: {
/** V1 error format. */
'$.xgafv'?: string;
/** OAuth access token. */
access_token?: string;
/** Data format for response. */
alt?: string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
bucket: string;
/** JSONP */
callback?: string;
/** Selector specifying which fields to include in a partial response. */
fields?: string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?: string;
/** OAuth 2.0 token for the current user. */
oauth_token?: string;
/** Returns response with indentations and line breaks. */
prettyPrint?: boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?: string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?: string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?: string;
/** Request body */
resource: RemoveFirebaseRequest;
}): Request<{}>;
removeFirebase(
request: {
/** V1 error format. */
'$.xgafv'?: string;
/** OAuth access token. */
access_token?: string;
/** Data format for response. */
alt?: string;
/** Required. Resource name of the bucket, mirrors the ID of the underlying Google Cloud Storage bucket, `projects/{project_id_or_number}/buckets/{bucket_id}`. */
bucket: string;
/** JSONP */
callback?: string;
/** Selector specifying which fields to include in a partial response. */
fields?: string;
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
key?: string;
/** OAuth 2.0 token for the current user. */
oauth_token?: string;
/** Returns response with indentations and line breaks. */
prettyPrint?: boolean;
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
quotaUser?: string;
/** Upload protocol for media (e.g. "raw", "multipart"). */
upload_protocol?: string;
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
uploadType?: string;
},
body: RemoveFirebaseRequest
): Request<{}>;
}
interface ProjectsResource {
buckets: BucketsResource;
}
const projects: ProjectsResource;
}
const projects: ProjectsResource;
}
}
{
"name": "@maxim_mazurok/gapi.client.firebasestorage-v1beta",
"version": "0.0.20231117",
"version": "0.0.20231201",
"description": "TypeScript typings for Cloud Storage for Firebase API v1beta",
"repository": {
"type": "git",
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
},
"license": "MIT",
"author": {
"name": "Maxim Mazurok",
"email": "maxim@mazurok.com",
"name": "Maxim Mazurok",
"url": "https://maxim.mazurok.com"
},
"repository": {
"type": "git",
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
},
"types": "index.d.ts",

@@ -16,0 +16,0 @@ "dependencies": {

@@ -28,6 +28,9 @@ # TypeScript typings for Cloud Storage for Firebase API v1beta

```typescript
gapi.client.load('https://firebasestorage.googleapis.com/$discovery/rest?version=v1beta', () => {
// now we can use:
// gapi.client.firebasestorage
});
gapi.client.load(
'https://firebasestorage.googleapis.com/$discovery/rest?version=v1beta',
() => {
// now we can use:
// gapi.client.firebasestorage
}
);
```

@@ -49,20 +52,21 @@

scope = [
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
'https://www.googleapis.com/auth/cloud-platform',
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
'https://www.googleapis.com/auth/cloud-platform',
// View and administer all your Firebase data and settings
'https://www.googleapis.com/auth/firebase',
],
immediate = true;
// View and administer all your Firebase data and settings
'https://www.googleapis.com/auth/firebase',
],
immediate = true;
// ...
gapi.auth.authorize(
{ client_id: client_id, scope: scope, immediate: immediate },
{client_id: client_id, scope: scope, immediate: immediate},
authResult => {
if (authResult && !authResult.error) {
/* handle successful authorization */
/* handle successful authorization */
} else {
/* handle authorization error */
/* handle authorization error */
}
});
}
);
```

@@ -73,2 +77,3 @@

```typescript
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc