Initial project import

This commit is contained in:
drjones
2026-06-13 17:36:44 -07:00
commit ad2a18cc8d
18471 changed files with 4497570 additions and 0 deletions

201
node_modules/stripe/cjs/resources/Apps/Secrets.d.ts generated vendored Normal file
View 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';
}
}
}

35
node_modules/stripe/cjs/resources/Apps/Secrets.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.SecretResource = void 0;
const StripeResource_js_1 = require("../../StripeResource.js");
class SecretResource extends StripeResource_js_1.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);
}
}
exports.SecretResource = SecretResource;
//# sourceMappingURL=Secrets.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"Secrets.js","sourceRoot":"","sources":["../../../src/resources/Apps/Secrets.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAIvD,MAAa,cAAe,SAAQ,kCAAc;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;AAtDD,wCAsDC"}

15
node_modules/stripe/cjs/resources/Apps/index.d.ts generated vendored Normal file
View 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 };
}

13
node_modules/stripe/cjs/resources/Apps/index.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.Apps = void 0;
const Secrets_js_1 = require("./Secrets.js");
class Apps {
constructor(stripe) {
this.stripe = stripe;
this.secrets = new Secrets_js_1.SecretResource(stripe);
}
}
exports.Apps = Apps;
//# sourceMappingURL=index.js.map

1
node_modules/stripe/cjs/resources/Apps/index.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Apps/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,6CAA4E;AAI5E,MAAa,IAAI;IAGf,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,2BAAc,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACF;AAND,oBAMC"}