@aw-labs/appwrite-console
Advanced tools
Comparing version 13.0.0 to 13.1.0
@@ -12,3 +12,3 @@ import { Client, Projects } from "appwrite"; | ||
const promise = projects.create('[PROJECT_ID]', '[NAME]', '[TEAM_ID]', 'default'); | ||
const promise = projects.create('[PROJECT_ID]', '[NAME]', '[TEAM_ID]'); | ||
@@ -15,0 +15,0 @@ promise.then(function (response) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API", | ||
"version": "13.0.0", | ||
"version": "13.1.0", | ||
"license": "BSD-3-Clause", | ||
@@ -8,0 +8,0 @@ "main": "dist/cjs/sdk.js", |
# Appwrite Console SDK | ||
![License](https://img.shields.io/github/license/appwrite/sdk-for-console.svg?style=flat-square) | ||
![Version](https://img.shields.io/badge/api%20version-1.1.0-blue.svg?style=flat-square) | ||
![Version](https://img.shields.io/badge/api%20version-1.2.0-blue.svg?style=flat-square) | ||
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator) | ||
@@ -9,3 +9,3 @@ [![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite) | ||
**This SDK is compatible with Appwrite server version latest. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).** | ||
**This SDK is compatible with Appwrite server version 1.2.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-console/releases).** | ||
@@ -37,3 +37,3 @@ Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Console SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs) | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/appwrite@7.1.0"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/appwrite@7.2.0"></script> | ||
``` | ||
@@ -40,0 +40,0 @@ |
@@ -107,3 +107,3 @@ import 'isomorphic-form-data'; | ||
'x-sdk-language': 'web', | ||
'x-sdk-version': '7.1.0', | ||
'x-sdk-version': '7.2.0', | ||
'X-Appwrite-Response-Format': '1.0.0', | ||
@@ -110,0 +110,0 @@ }; |
@@ -6,2 +6,3 @@ export { Client, Query, AppwriteException } from './client'; | ||
export { Functions } from './services/functions'; | ||
export { Graphql } from './services/graphql'; | ||
export { Health } from './services/health'; | ||
@@ -8,0 +9,0 @@ export { Locale } from './services/locale'; |
@@ -937,2 +937,6 @@ export namespace Models { | ||
export type AlgoMd5 = { | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
} | ||
@@ -943,2 +947,6 @@ /** | ||
export type AlgoSha = { | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
} | ||
@@ -949,2 +957,6 @@ /** | ||
export type AlgoPhpass = { | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
} | ||
@@ -955,2 +967,6 @@ /** | ||
export type AlgoBcrypt = { | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
} | ||
@@ -962,2 +978,6 @@ /** | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
/** | ||
* CPU complexity of computed hash. | ||
@@ -984,2 +1004,6 @@ */ | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
/** | ||
* Salt used to compute hash. | ||
@@ -1002,2 +1026,6 @@ */ | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
/** | ||
* Memory used to compute hash. | ||
@@ -1699,2 +1727,6 @@ */ | ||
/** | ||
* Max sessions allowed per user. 100 maximum. | ||
*/ | ||
authSessionsLimit: number; | ||
/** | ||
* List of Providers. | ||
@@ -1779,2 +1811,6 @@ */ | ||
serviceStatusForFunctions: boolean; | ||
/** | ||
* GraphQL service status | ||
*/ | ||
serviceStatusForGraphql: boolean; | ||
} | ||
@@ -1781,0 +1817,0 @@ /** |
@@ -60,3 +60,3 @@ import { Service } from '../service'; | ||
*/ | ||
async create(projectId: string, name: string, teamId: string, region: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project> { | ||
async create(projectId: string, name: string, teamId: string, region?: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project> { | ||
if (typeof projectId === 'undefined') { | ||
@@ -74,6 +74,2 @@ throw new AppwriteException('Missing required parameter: "projectId"'); | ||
if (typeof region === 'undefined') { | ||
throw new AppwriteException('Missing required parameter: "region"'); | ||
} | ||
let path = '/projects'; | ||
@@ -332,2 +328,33 @@ let payload: Payload = {}; | ||
/** | ||
* Update Project user sessions limit | ||
* | ||
* | ||
* @param {string} projectId | ||
* @param {number} limit | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
async updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project> { | ||
if (typeof projectId === 'undefined') { | ||
throw new AppwriteException('Missing required parameter: "projectId"'); | ||
} | ||
if (typeof limit === 'undefined') { | ||
throw new AppwriteException('Missing required parameter: "limit"'); | ||
} | ||
let path = '/projects/{projectId}/auth/max-sessions'.replace('{projectId}', projectId); | ||
let payload: Payload = {}; | ||
if (typeof limit !== 'undefined') { | ||
payload['limit'] = limit; | ||
} | ||
const uri = new URL(this.client.config.endpoint + path); | ||
return await this.client.call('patch', uri, { | ||
'content-type': 'application/json', | ||
}, payload); | ||
} | ||
/** | ||
* Update Project auth method status. Use this endpoint to enable or disable a given auth method for this project. | ||
@@ -334,0 +361,0 @@ * |
@@ -6,2 +6,3 @@ export { Client, Query, AppwriteException } from './client'; | ||
export { Functions } from './services/functions'; | ||
export { Graphql } from './services/graphql'; | ||
export { Health } from './services/health'; | ||
@@ -8,0 +9,0 @@ export { Locale } from './services/locale'; |
@@ -936,15 +936,35 @@ export declare namespace Models { | ||
*/ | ||
type AlgoMd5 = {}; | ||
type AlgoMd5 = { | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
}; | ||
/** | ||
* AlgoSHA | ||
*/ | ||
type AlgoSha = {}; | ||
type AlgoSha = { | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
}; | ||
/** | ||
* AlgoPHPass | ||
*/ | ||
type AlgoPhpass = {}; | ||
type AlgoPhpass = { | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
}; | ||
/** | ||
* AlgoBcrypt | ||
*/ | ||
type AlgoBcrypt = {}; | ||
type AlgoBcrypt = { | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
}; | ||
/** | ||
@@ -955,2 +975,6 @@ * AlgoScrypt | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
/** | ||
* CPU complexity of computed hash. | ||
@@ -977,2 +1001,6 @@ */ | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
/** | ||
* Salt used to compute hash. | ||
@@ -995,2 +1023,6 @@ */ | ||
/** | ||
* Algo type. | ||
*/ | ||
type: string; | ||
/** | ||
* Memory used to compute hash. | ||
@@ -1692,2 +1724,6 @@ */ | ||
/** | ||
* Max sessions allowed per user. 100 maximum. | ||
*/ | ||
authSessionsLimit: number; | ||
/** | ||
* List of Providers. | ||
@@ -1772,2 +1808,6 @@ */ | ||
serviceStatusForFunctions: boolean; | ||
/** | ||
* GraphQL service status | ||
*/ | ||
serviceStatusForGraphql: boolean; | ||
}; | ||
@@ -1774,0 +1814,0 @@ /** |
@@ -36,3 +36,3 @@ import { Service } from '../service'; | ||
*/ | ||
create(projectId: string, name: string, teamId: string, region: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>; | ||
create(projectId: string, name: string, teamId: string, region?: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>; | ||
/** | ||
@@ -97,2 +97,12 @@ * Get Project | ||
/** | ||
* Update Project user sessions limit | ||
* | ||
* | ||
* @param {string} projectId | ||
* @param {number} limit | ||
* @throws {AppwriteException} | ||
* @returns {Promise} | ||
*/ | ||
updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>; | ||
/** | ||
* Update Project auth method status. Use this endpoint to enable or disable a given auth method for this project. | ||
@@ -99,0 +109,0 @@ * |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2428457
254
36331
2