Initial project import
This commit is contained in:
201
node_modules/stripe/esm/resources/Apps/Secrets.d.ts
generated
vendored
Normal file
201
node_modules/stripe/esm/resources/Apps/Secrets.d.ts
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { PaginationParams } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class SecretResource extends StripeResource {
|
||||
/**
|
||||
* List all secrets stored on the given scope.
|
||||
*/
|
||||
list(params: Apps.SecretListParams, options?: RequestOptions): ApiListPromise<Secret>;
|
||||
/**
|
||||
* Create or replace a secret in the secret store.
|
||||
*/
|
||||
create(params: Apps.SecretCreateParams, options?: RequestOptions): Promise<Response<Secret>>;
|
||||
/**
|
||||
* Finds a secret in the secret store by name and scope.
|
||||
*/
|
||||
find(params: Apps.SecretFindParams, options?: RequestOptions): Promise<Response<Secret>>;
|
||||
/**
|
||||
* Deletes a secret from the secret store by name and scope.
|
||||
*/
|
||||
deleteWhere(params: Apps.SecretDeleteWhereParams, options?: RequestOptions): Promise<Response<Secret>>;
|
||||
}
|
||||
export interface Secret {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'apps.secret';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* If true, indicates that this secret has been deleted
|
||||
*/
|
||||
deleted?: boolean;
|
||||
/**
|
||||
* The Unix timestamp for the expiry time of the secret, after which the secret deletes.
|
||||
*/
|
||||
expires_at: number | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* A name for the secret that's unique within the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The plaintext secret value to be stored.
|
||||
*/
|
||||
payload?: string | null;
|
||||
scope: Apps.Secret.Scope;
|
||||
}
|
||||
export declare namespace Apps {
|
||||
namespace Secret {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID, if type is set to "user"
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Apps {
|
||||
interface SecretCreateParams {
|
||||
/**
|
||||
* A name for the secret that's unique within the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The plaintext secret value to be stored.
|
||||
*/
|
||||
payload: string;
|
||||
/**
|
||||
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
||||
*/
|
||||
scope: SecretCreateParams.Scope;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* The Unix timestamp for the expiry time of the secret, after which the secret deletes.
|
||||
*/
|
||||
expires_at?: number;
|
||||
}
|
||||
namespace SecretCreateParams {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Apps {
|
||||
interface SecretListParams extends PaginationParams {
|
||||
/**
|
||||
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
||||
*/
|
||||
scope: SecretListParams.Scope;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace SecretListParams {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Apps {
|
||||
interface SecretDeleteWhereParams {
|
||||
/**
|
||||
* A name for the secret that's unique within the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
||||
*/
|
||||
scope: SecretDeleteWhereParams.Scope;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace SecretDeleteWhereParams {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Apps {
|
||||
interface SecretFindParams {
|
||||
/**
|
||||
* A name for the secret that's unique within the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
||||
*/
|
||||
scope: SecretFindParams.Scope;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace SecretFindParams {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
31
node_modules/stripe/esm/resources/Apps/Secrets.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/Apps/Secrets.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class SecretResource extends StripeResource {
|
||||
/**
|
||||
* List all secrets stored on the given scope.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/apps/secrets', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create or replace a secret in the secret store.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/apps/secrets', params, options);
|
||||
}
|
||||
/**
|
||||
* Finds a secret in the secret store by name and scope.
|
||||
*/
|
||||
find(params, options) {
|
||||
return this._makeRequest('GET', '/v1/apps/secrets/find', params, options);
|
||||
}
|
||||
/**
|
||||
* Deletes a secret from the secret store by name and scope.
|
||||
*/
|
||||
deleteWhere(params, options) {
|
||||
return this._makeRequest('POST', '/v1/apps/secrets/delete', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Secrets.js.map
|
||||
1
node_modules/stripe/esm/resources/Apps/Secrets.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Apps/Secrets.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Secrets.js","sourceRoot":"","sources":["../../../src/resources/Apps/Secrets.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAIvD,MAAM,OAAO,cAAe,SAAQ,cAAc;IAChD;;OAEG;IACH,IAAI,CACF,MAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE;YACnE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,kBAAkB,EAClB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,uBAAuB,EACvB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,WAAW,CACT,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,yBAAyB,EACzB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
15
node_modules/stripe/esm/resources/Apps/index.d.ts
generated
vendored
Normal file
15
node_modules/stripe/esm/resources/Apps/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { Apps as AppsNamespace0, Secret, SecretResource } from './Secrets.js';
|
||||
export { Secret } from './Secrets.js';
|
||||
export declare class Apps {
|
||||
private readonly stripe;
|
||||
secrets: SecretResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Apps {
|
||||
export import SecretListParams = AppsNamespace0.SecretListParams;
|
||||
export import SecretCreateParams = AppsNamespace0.SecretCreateParams;
|
||||
export import SecretFindParams = AppsNamespace0.SecretFindParams;
|
||||
export import SecretDeleteWhereParams = AppsNamespace0.SecretDeleteWhereParams;
|
||||
export { Secret };
|
||||
}
|
||||
9
node_modules/stripe/esm/resources/Apps/index.js
generated
vendored
Normal file
9
node_modules/stripe/esm/resources/Apps/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { SecretResource } from './Secrets.js';
|
||||
export class Apps {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.secrets = new SecretResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/Apps/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Apps/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Apps/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAAiC,cAAc,EAAC,MAAM,cAAc,CAAC;AAI5E,MAAM,OAAO,IAAI;IAGf,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACF"}
|
||||
Reference in New Issue
Block a user