FRE-709: Document duplicate recovery wake - FRE-635 already recovered via FRE-708

This commit is contained in:
2026-04-26 20:23:14 -04:00
parent e07237b6b0
commit 0ff6c74871
5880 changed files with 1643723 additions and 908 deletions

90
node_modules/svix/README.md generated vendored Normal file
View File

@@ -0,0 +1,90 @@
<h1 align="center">
<a style="text-decoration: none" href="https://www.svix.com">
<img width="120" src="https://avatars.githubusercontent.com/u/80175132?s=200&v=4" />
<p align="center">Svix - Webhooks as a service</p>
</a>
</h1>
<h2 align="center">
<a href="https://svix.com">Website</a> | <a href="https://docs.svix.com">Documentation</a> | <a href="https://svix.com/slack">Community Slack</a>
<h2>
Typescript/Javascript library for interacting with the Svix API and verifying webhook signatures
![GitHub tag](https://img.shields.io/github/tag/svix/svix-webhooks.svg)
[![NPM version](https://img.shields.io/npm/v/svix.svg)](https://www.npmjs.com/package/svix)
[![Join our slack](https://img.shields.io/badge/Slack-join%20the%20community-blue?logo=slack&style=social)](https://www.svix.com/slack/)
# Usage Documentation
You can find general usage documentation at <https://docs.svix.com>. For complete API documentation with code examples for each endpoint in all of our official client libraries head over to our API documentation site at <https://api.svix.com>.
# Language Support
<table style="table-layout:fixed; white-space: nowrap;">
<th colspan="2">⚡️ Features ⚡️</th>
<tr>
<th>Officially Supported</th>
<th>✅</th>
</tr>
<tr>
<th>API Support</th>
<th>✅</th>
</tr>
<tr>
<th>Signature Verification</th>
<th>✅</th>
</tr>
<tr>
<th>Caveats</th>
<th>None! 🚀</th>
</tr>
</table>
# Installation
```sh
npm install svix
# or
yarn add svix
```
# Usage
```js
import { Svix } from "svix";
const svix = new Svix("AUTH_TOKEN");
const app = await svix.application.create({ name: "Application name" });
```
# Development
First checkout the [core README](../README.md#development) for details on how to generate our API bindings, then follow the steps below.
## Requirements
- node
- yarn
## Building the library
```sh
yarn
yarn build
```
## Contributing
Before opening a PR be sure to format your code!
```sh
yarn lint:fix
```
## Running Tests
Simply run:
```sh
yarn test
```

60
node_modules/svix/dist/HttpErrors.d.ts generated vendored Normal file
View File

@@ -0,0 +1,60 @@
export declare class HttpErrorOut {
code: string;
detail: string;
static readonly discriminator: string | undefined;
static readonly mapping: {
[index: string]: string;
} | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
}
export declare class ValidationError {
loc: Array<string>;
msg: string;
type: string;
static readonly discriminator: string | undefined;
static readonly mapping: {
[index: string]: string;
} | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
}
export declare class HTTPValidationError {
detail: Array<ValidationError>;
static readonly discriminator: string | undefined;
static readonly mapping: {
[index: string]: string;
} | undefined;
static readonly attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
format: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
format: string;
}[];
}

70
node_modules/svix/dist/HttpErrors.js generated vendored Normal file
View File

@@ -0,0 +1,70 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HTTPValidationError = exports.ValidationError = exports.HttpErrorOut = void 0;
class HttpErrorOut {
static getAttributeTypeMap() {
return HttpErrorOut.attributeTypeMap;
}
}
exports.HttpErrorOut = HttpErrorOut;
HttpErrorOut.discriminator = undefined;
HttpErrorOut.mapping = undefined;
HttpErrorOut.attributeTypeMap = [
{
name: "code",
baseName: "code",
type: "string",
format: "",
},
{
name: "detail",
baseName: "detail",
type: "string",
format: "",
},
];
class ValidationError {
static getAttributeTypeMap() {
return ValidationError.attributeTypeMap;
}
}
exports.ValidationError = ValidationError;
ValidationError.discriminator = undefined;
ValidationError.mapping = undefined;
ValidationError.attributeTypeMap = [
{
name: "loc",
baseName: "loc",
type: "Array<string>",
format: "",
},
{
name: "msg",
baseName: "msg",
type: "string",
format: "",
},
{
name: "type",
baseName: "type",
type: "string",
format: "",
},
];
class HTTPValidationError {
static getAttributeTypeMap() {
return HTTPValidationError.attributeTypeMap;
}
}
exports.HTTPValidationError = HTTPValidationError;
HTTPValidationError.discriminator = undefined;
HTTPValidationError.mapping = undefined;
HTTPValidationError.attributeTypeMap = [
{
name: "detail",
baseName: "detail",
type: "Array<ValidationError>",
format: "",
},
];
//# sourceMappingURL=HttpErrors.js.map

1
node_modules/svix/dist/HttpErrors.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"HttpErrors.js","sourceRoot":"","sources":["../src/HttpErrors.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IA4BvB,MAAM,CAAC,mBAAmB;QACxB,OAAO,YAAY,CAAC,gBAAgB,CAAC;IACvC,CAAC;;AA9BH,oCA+BC;AA3BiB,0BAAa,GAAuB,SAAS,CAAC;AAE9C,oBAAO,GAA4C,SAAS,CAAC;AAE7D,6BAAgB,GAK3B;IACH;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACX;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACX;CACF,CAAC;AAUJ,MAAa,eAAe;IA4C1B,MAAM,CAAC,mBAAmB;QACxB,OAAO,eAAe,CAAC,gBAAgB,CAAC;IAC1C,CAAC;;AA9CH,0CA+CC;AAjCiB,6BAAa,GAAuB,SAAS,CAAC;AAE9C,uBAAO,GAA4C,SAAS,CAAC;AAE7D,gCAAgB,GAK3B;IACH;QACE,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,EAAE;KACX;IACD;QACE,IAAI,EAAE,KAAK;QACX,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACX;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,MAAM;QAChB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,EAAE;KACX;CACF,CAAC;AAOJ,MAAa,mBAAmB;IAqB9B,MAAM,CAAC,mBAAmB;QACxB,OAAO,mBAAmB,CAAC,gBAAgB,CAAC;IAC9C,CAAC;;AAvBH,kDAwBC;AArBiB,iCAAa,GAAuB,SAAS,CAAC;AAE9C,2BAAO,GAA4C,SAAS,CAAC;AAE7D,oCAAgB,GAK3B;IACH;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,QAAQ;QAClB,IAAI,EAAE,wBAAwB;QAC9B,MAAM,EAAE,EAAE;KACX;CACF,CAAC"}

28
node_modules/svix/dist/api/application.d.ts generated vendored Normal file
View File

@@ -0,0 +1,28 @@
import { type ApplicationIn } from "../models/applicationIn";
import { type ApplicationOut } from "../models/applicationOut";
import { type ApplicationPatch } from "../models/applicationPatch";
import { type ListResponseApplicationOut } from "../models/listResponseApplicationOut";
import type { Ordering } from "../models/ordering";
import { type SvixRequestContext } from "../request";
export interface ApplicationListOptions {
excludeAppsWithNoEndpoints?: boolean;
excludeAppsWithDisabledEndpoints?: boolean;
excludeAppsWithSvixPlayEndpoints?: boolean;
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface ApplicationCreateOptions {
idempotencyKey?: string;
}
export declare class Application {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: ApplicationListOptions): Promise<ListResponseApplicationOut>;
create(applicationIn: ApplicationIn, options?: ApplicationCreateOptions): Promise<ApplicationOut>;
getOrCreate(applicationIn: ApplicationIn, options?: ApplicationCreateOptions): Promise<ApplicationOut>;
get(appId: string): Promise<ApplicationOut>;
update(appId: string, applicationIn: ApplicationIn): Promise<ApplicationOut>;
delete(appId: string): Promise<void>;
patch(appId: string, applicationPatch: ApplicationPatch): Promise<ApplicationOut>;
}

62
node_modules/svix/dist/api/application.js generated vendored Normal file
View File

@@ -0,0 +1,62 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Application = void 0;
const applicationIn_1 = require("../models/applicationIn");
const applicationOut_1 = require("../models/applicationOut");
const applicationPatch_1 = require("../models/applicationPatch");
const listResponseApplicationOut_1 = require("../models/listResponseApplicationOut");
const request_1 = require("../request");
class Application {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app");
request.setQueryParams({
exclude_apps_with_no_endpoints: options === null || options === void 0 ? void 0 : options.excludeAppsWithNoEndpoints,
exclude_apps_with_disabled_endpoints: options === null || options === void 0 ? void 0 : options.excludeAppsWithDisabledEndpoints,
exclude_apps_with_svix_play_endpoints: options === null || options === void 0 ? void 0 : options.excludeAppsWithSvixPlayEndpoints,
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseApplicationOut_1.ListResponseApplicationOutSerializer._fromJsonObject);
}
create(applicationIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(applicationIn_1.ApplicationInSerializer._toJsonObject(applicationIn));
return request.send(this.requestCtx, applicationOut_1.ApplicationOutSerializer._fromJsonObject);
}
getOrCreate(applicationIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app");
request.setQueryParam("get_if_exists", true);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(applicationIn_1.ApplicationInSerializer._toJsonObject(applicationIn));
return request.send(this.requestCtx, applicationOut_1.ApplicationOutSerializer._fromJsonObject);
}
get(appId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}");
request.setPathParam("app_id", appId);
return request.send(this.requestCtx, applicationOut_1.ApplicationOutSerializer._fromJsonObject);
}
update(appId, applicationIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/app/{app_id}");
request.setPathParam("app_id", appId);
request.setBody(applicationIn_1.ApplicationInSerializer._toJsonObject(applicationIn));
return request.send(this.requestCtx, applicationOut_1.ApplicationOutSerializer._fromJsonObject);
}
delete(appId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/app/{app_id}");
request.setPathParam("app_id", appId);
return request.sendNoResponseBody(this.requestCtx);
}
patch(appId, applicationPatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/app/{app_id}");
request.setPathParam("app_id", appId);
request.setBody(applicationPatch_1.ApplicationPatchSerializer._toJsonObject(applicationPatch));
return request.send(this.requestCtx, applicationOut_1.ApplicationOutSerializer._fromJsonObject);
}
}
exports.Application = Application;
//# sourceMappingURL=application.js.map

1
node_modules/svix/dist/api/application.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../src/api/application.ts"],"names":[],"mappings":";;;AAEA,2DAAsF;AACtF,6DAAyF;AACzF,iEAGoC;AACpC,qFAG8C;AAE9C,wCAA8E;AAoB9E,MAAa,WAAW;IACtB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CAAC,OAAgC;QAC1C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAE/D,OAAO,CAAC,cAAc,CAAC;YACrB,8BAA8B,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,0BAA0B;YACnE,oCAAoC,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gCAAgC;YAC/E,qCAAqC,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gCAAgC;YAChF,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,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0,0 +1,46 @@
import { type ApiTokenOut } from "../models/apiTokenOut";
import { type AppPortalAccessIn } from "../models/appPortalAccessIn";
import { type AppPortalAccessOut } from "../models/appPortalAccessOut";
import { type ApplicationTokenExpireIn } from "../models/applicationTokenExpireIn";
import { type RotatePollerTokenIn } from "../models/rotatePollerTokenIn";
import { type StreamPortalAccessIn } from "../models/streamPortalAccessIn";
import { type StreamTokenExpireIn } from "../models/streamTokenExpireIn";
import { type DashboardAccessOut } from "../models/dashboardAccessOut";
import { type SvixRequestContext } from "../request";
export interface AuthenticationAppPortalAccessOptions {
idempotencyKey?: string;
}
export interface AuthenticationExpireAllOptions {
idempotencyKey?: string;
}
export interface AuthenticationLogoutOptions {
idempotencyKey?: string;
}
export interface AuthenticationStreamLogoutOptions {
idempotencyKey?: string;
}
export interface AuthenticationStreamPortalAccessOptions {
idempotencyKey?: string;
}
export interface AuthenticationStreamExpireAllOptions {
idempotencyKey?: string;
}
export interface AuthenticationRotateStreamPollerTokenOptions {
idempotencyKey?: string;
}
export interface AuthenticationDashboardAccessOptions {
idempotencyKey?: string;
}
export declare class Authentication {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
appPortalAccess(appId: string, appPortalAccessIn: AppPortalAccessIn, options?: AuthenticationAppPortalAccessOptions): Promise<AppPortalAccessOut>;
expireAll(appId: string, applicationTokenExpireIn: ApplicationTokenExpireIn, options?: AuthenticationExpireAllOptions): Promise<void>;
dashboardAccess(appId: string, options?: AuthenticationDashboardAccessOptions): Promise<DashboardAccessOut>;
logout(options?: AuthenticationLogoutOptions): Promise<void>;
streamLogout(options?: AuthenticationStreamLogoutOptions): Promise<void>;
streamPortalAccess(streamId: string, streamPortalAccessIn: StreamPortalAccessIn, options?: AuthenticationStreamPortalAccessOptions): Promise<AppPortalAccessOut>;
streamExpireAll(streamId: string, streamTokenExpireIn: StreamTokenExpireIn, options?: AuthenticationStreamExpireAllOptions): Promise<void>;
getStreamPollerToken(streamId: string, sinkId: string): Promise<ApiTokenOut>;
rotateStreamPollerToken(streamId: string, sinkId: string, rotatePollerTokenIn: RotatePollerTokenIn, options?: AuthenticationRotateStreamPollerTokenOptions): Promise<ApiTokenOut>;
}

77
node_modules/svix/dist/api/authentication.js generated vendored Normal file
View File

@@ -0,0 +1,77 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Authentication = void 0;
const apiTokenOut_1 = require("../models/apiTokenOut");
const appPortalAccessIn_1 = require("../models/appPortalAccessIn");
const appPortalAccessOut_1 = require("../models/appPortalAccessOut");
const applicationTokenExpireIn_1 = require("../models/applicationTokenExpireIn");
const rotatePollerTokenIn_1 = require("../models/rotatePollerTokenIn");
const streamPortalAccessIn_1 = require("../models/streamPortalAccessIn");
const streamTokenExpireIn_1 = require("../models/streamTokenExpireIn");
const dashboardAccessOut_1 = require("../models/dashboardAccessOut");
const request_1 = require("../request");
class Authentication {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
appPortalAccess(appId, appPortalAccessIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/auth/app-portal-access/{app_id}");
request.setPathParam("app_id", appId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(appPortalAccessIn_1.AppPortalAccessInSerializer._toJsonObject(appPortalAccessIn));
return request.send(this.requestCtx, appPortalAccessOut_1.AppPortalAccessOutSerializer._fromJsonObject);
}
expireAll(appId, applicationTokenExpireIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/auth/app/{app_id}/expire-all");
request.setPathParam("app_id", appId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(applicationTokenExpireIn_1.ApplicationTokenExpireInSerializer._toJsonObject(applicationTokenExpireIn));
return request.sendNoResponseBody(this.requestCtx);
}
dashboardAccess(appId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/auth/dashboard-access/{app_id}");
request.setPathParam("app_id", appId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
return request.send(this.requestCtx, dashboardAccessOut_1.DashboardAccessOutSerializer._fromJsonObject);
}
logout(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/auth/logout");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
return request.sendNoResponseBody(this.requestCtx);
}
streamLogout(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/auth/stream-logout");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
return request.sendNoResponseBody(this.requestCtx);
}
streamPortalAccess(streamId, streamPortalAccessIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/auth/stream-portal-access/{stream_id}");
request.setPathParam("stream_id", streamId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(streamPortalAccessIn_1.StreamPortalAccessInSerializer._toJsonObject(streamPortalAccessIn));
return request.send(this.requestCtx, appPortalAccessOut_1.AppPortalAccessOutSerializer._fromJsonObject);
}
streamExpireAll(streamId, streamTokenExpireIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/auth/stream/{stream_id}/expire-all");
request.setPathParam("stream_id", streamId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(streamTokenExpireIn_1.StreamTokenExpireInSerializer._toJsonObject(streamTokenExpireIn));
return request.sendNoResponseBody(this.requestCtx);
}
getStreamPollerToken(streamId, sinkId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/auth/stream/{stream_id}/sink/{sink_id}/poller/token");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
return request.send(this.requestCtx, apiTokenOut_1.ApiTokenOutSerializer._fromJsonObject);
}
rotateStreamPollerToken(streamId, sinkId, rotatePollerTokenIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/auth/stream/{stream_id}/sink/{sink_id}/poller/token/rotate");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(rotatePollerTokenIn_1.RotatePollerTokenInSerializer._toJsonObject(rotatePollerTokenIn));
return request.send(this.requestCtx, apiTokenOut_1.ApiTokenOutSerializer._fromJsonObject);
}
}
exports.Authentication = Authentication;
//# sourceMappingURL=authentication.js.map

1
node_modules/svix/dist/api/authentication.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"authentication.js","sourceRoot":"","sources":["../../src/api/authentication.ts"],"names":[],"mappings":";;;AAEA,uDAAgF;AAChF,mEAGqC;AACrC,qEAGsC;AACtC,iFAG4C;AAC5C,uEAGuC;AACvC,yEAGwC;AACxC,uEAGuC;AACvC,qEAGsC;AACtC,wCAA8E;AAmC9E,MAAa,cAAc;IACzB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,eAAe,CACpB,KAAa,EACb,iBAAoC,EACpC,OAA8C;QAE9C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,IAAI,EACf,yCAAyC,CAC1C,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CAAC,+CAA2B,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC;QAE9E,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,iDAA4B,CAAC,eAAe,CAAC,CAAC;IACrF,CAAC;IAGM,SAAS,CACd,KAAa,EACb,wBAAkD,EAClD,OAAwC;QAExC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GAAG,EACd,6DAA6D,CAC9D,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAExC,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,mCAAqB,CAAC,eAAe,CAAC,CAAC;IAC9E,CAAC;IAGM,uBAAuB,CAC5B,QAAgB,EAChB,MAAc,EACd,mBAAwC,EACxC,OAAsD;QAEtD,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,IAAI,EACf,oEAAoE,CACrE,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CAAC,mDAA6B,CAAC,aAAa,CAAC,mBAAmB,CAAC,CAAC,CAAC;QAElF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,mCAAqB,CAAC,eAAe,CAAC,CAAC;IAC9E,CAAC;CACF;AAvJD,wCAuJC"}

20
node_modules/svix/dist/api/backgroundTask.d.ts generated vendored Normal file
View File

@@ -0,0 +1,20 @@
import { type BackgroundTaskOut } from "../models/backgroundTaskOut";
import type { BackgroundTaskStatus } from "../models/backgroundTaskStatus";
import type { BackgroundTaskType } from "../models/backgroundTaskType";
import { type ListResponseBackgroundTaskOut } from "../models/listResponseBackgroundTaskOut";
import type { Ordering } from "../models/ordering";
import { type SvixRequestContext } from "../request";
export interface BackgroundTaskListOptions {
status?: BackgroundTaskStatus;
task?: BackgroundTaskType;
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export declare class BackgroundTask {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: BackgroundTaskListOptions): Promise<ListResponseBackgroundTaskOut>;
listByEndpoint(options?: BackgroundTaskListOptions): Promise<ListResponseBackgroundTaskOut>;
get(taskId: string): Promise<BackgroundTaskOut>;
}

32
node_modules/svix/dist/api/backgroundTask.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BackgroundTask = void 0;
const backgroundTaskOut_1 = require("../models/backgroundTaskOut");
const listResponseBackgroundTaskOut_1 = require("../models/listResponseBackgroundTaskOut");
const request_1 = require("../request");
class BackgroundTask {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/background-task");
request.setQueryParams({
status: options === null || options === void 0 ? void 0 : options.status,
task: options === null || options === void 0 ? void 0 : options.task,
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseBackgroundTaskOut_1.ListResponseBackgroundTaskOutSerializer._fromJsonObject);
}
listByEndpoint(options) {
return this.list(options);
}
get(taskId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/background-task/{task_id}");
request.setPathParam("task_id", taskId);
return request.send(this.requestCtx, backgroundTaskOut_1.BackgroundTaskOutSerializer._fromJsonObject);
}
}
exports.BackgroundTask = BackgroundTask;
//# sourceMappingURL=backgroundTask.js.map

1
node_modules/svix/dist/api/backgroundTask.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"backgroundTask.js","sourceRoot":"","sources":["../../src/api/backgroundTask.ts"],"names":[],"mappings":";;;AAEA,mEAGqC;AAGrC,2FAGiD;AAEjD,wCAA8E;AAe9E,MAAa,cAAc;IACzB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CACT,OAAmC;QAEnC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,yBAAyB,CAAC,CAAC;QAE3E,OAAO,CAAC,cAAc,CAAC;YACrB,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;YACvB,IAAI,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI;YACnB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;SACtB,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,UAAU,EACf,uEAAuC,CAAC,eAAe,CACxD,CAAC;IACJ,CAAC;IAOM,cAAc,CACnB,OAAmC;QAEnC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5B,CAAC;IAGM,GAAG,CAAC,MAAc;QACvB,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,mCAAmC,CAAC,CAAC;QAErF,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAExC,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,+CAA2B,CAAC,eAAe,CAAC,CAAC;IACpF,CAAC;CACF;AA1CD,wCA0CC"}

27
node_modules/svix/dist/api/connector.d.ts generated vendored Normal file
View File

@@ -0,0 +1,27 @@
import { type ConnectorIn } from "../models/connectorIn";
import { type ConnectorOut } from "../models/connectorOut";
import { type ConnectorPatch } from "../models/connectorPatch";
import type { ConnectorProduct } from "../models/connectorProduct";
import { type ConnectorUpdate } from "../models/connectorUpdate";
import { type ListResponseConnectorOut } from "../models/listResponseConnectorOut";
import type { Ordering } from "../models/ordering";
import { type SvixRequestContext } from "../request";
export interface ConnectorListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
productType?: ConnectorProduct;
}
export interface ConnectorCreateOptions {
idempotencyKey?: string;
}
export declare class Connector {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: ConnectorListOptions): Promise<ListResponseConnectorOut>;
create(connectorIn: ConnectorIn, options?: ConnectorCreateOptions): Promise<ConnectorOut>;
get(connectorId: string): Promise<ConnectorOut>;
update(connectorId: string, connectorUpdate: ConnectorUpdate): Promise<ConnectorOut>;
delete(connectorId: string): Promise<void>;
patch(connectorId: string, connectorPatch: ConnectorPatch): Promise<ConnectorOut>;
}

54
node_modules/svix/dist/api/connector.js generated vendored Normal file
View File

@@ -0,0 +1,54 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Connector = void 0;
const connectorIn_1 = require("../models/connectorIn");
const connectorOut_1 = require("../models/connectorOut");
const connectorPatch_1 = require("../models/connectorPatch");
const connectorUpdate_1 = require("../models/connectorUpdate");
const listResponseConnectorOut_1 = require("../models/listResponseConnectorOut");
const request_1 = require("../request");
class Connector {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/connector");
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
product_type: options === null || options === void 0 ? void 0 : options.productType,
});
return request.send(this.requestCtx, listResponseConnectorOut_1.ListResponseConnectorOutSerializer._fromJsonObject);
}
create(connectorIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/connector");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(connectorIn_1.ConnectorInSerializer._toJsonObject(connectorIn));
return request.send(this.requestCtx, connectorOut_1.ConnectorOutSerializer._fromJsonObject);
}
get(connectorId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/connector/{connector_id}");
request.setPathParam("connector_id", connectorId);
return request.send(this.requestCtx, connectorOut_1.ConnectorOutSerializer._fromJsonObject);
}
update(connectorId, connectorUpdate) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/connector/{connector_id}");
request.setPathParam("connector_id", connectorId);
request.setBody(connectorUpdate_1.ConnectorUpdateSerializer._toJsonObject(connectorUpdate));
return request.send(this.requestCtx, connectorOut_1.ConnectorOutSerializer._fromJsonObject);
}
delete(connectorId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/connector/{connector_id}");
request.setPathParam("connector_id", connectorId);
return request.sendNoResponseBody(this.requestCtx);
}
patch(connectorId, connectorPatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/connector/{connector_id}");
request.setPathParam("connector_id", connectorId);
request.setBody(connectorPatch_1.ConnectorPatchSerializer._toJsonObject(connectorPatch));
return request.send(this.requestCtx, connectorOut_1.ConnectorOutSerializer._fromJsonObject);
}
}
exports.Connector = Connector;
//# sourceMappingURL=connector.js.map

1
node_modules/svix/dist/api/connector.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"connector.js","sourceRoot":"","sources":["../../src/api/connector.ts"],"names":[],"mappings":";;;AAEA,uDAAgF;AAChF,yDAAmF;AACnF,6DAAyF;AAEzF,+DAGmC;AACnC,iFAG4C;AAE5C,wCAA8E;AAgB9E,MAAa,SAAS;IACpB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CAAC,OAA8B;QACxC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,mBAAmB,CAAC,CAAC;QAErE,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,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,CAAC,CAAC;QAE1E,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,qCAAsB,CAAC,eAAe,CAAC,CAAC;IAC/E,CAAC;IAGM,MAAM,CAAC,WAAmB;QAC/B,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,MAAM,EACjB,kCAAkC,CACnC,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAElD,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAGM,KAAK,CACV,WAAmB,EACnB,cAA8B;QAE9B,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,KAAK,EAAE,kCAAkC,CAAC,CAAC;QAEtF,OAAO,CAAC,YAAY,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QAClD,OAAO,CAAC,OAAO,CAAC,yCAAwB,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC;QAExE,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,qCAAsB,CAAC,eAAe,CAAC,CAAC;IAC/E,CAAC;CACF;AA/ED,8BA+EC"}

75
node_modules/svix/dist/api/endpoint.d.ts generated vendored Normal file
View File

@@ -0,0 +1,75 @@
import { type BulkReplayIn } from "../models/bulkReplayIn";
import { type EndpointHeadersIn } from "../models/endpointHeadersIn";
import { type EndpointHeadersOut } from "../models/endpointHeadersOut";
import { type EndpointHeadersPatchIn } from "../models/endpointHeadersPatchIn";
import { type EndpointIn } from "../models/endpointIn";
import { type EndpointOut } from "../models/endpointOut";
import { type EndpointPatch } from "../models/endpointPatch";
import { type EndpointSecretOut } from "../models/endpointSecretOut";
import { type EndpointSecretRotateIn } from "../models/endpointSecretRotateIn";
import { type EndpointStats } from "../models/endpointStats";
import { type EndpointTransformationIn } from "../models/endpointTransformationIn";
import { type EndpointTransformationOut } from "../models/endpointTransformationOut";
import { type EndpointTransformationPatch } from "../models/endpointTransformationPatch";
import { type EndpointUpdate } from "../models/endpointUpdate";
import { type EventExampleIn } from "../models/eventExampleIn";
import { type ListResponseEndpointOut } from "../models/listResponseEndpointOut";
import { type MessageOut } from "../models/messageOut";
import type { Ordering } from "../models/ordering";
import { type RecoverIn } from "../models/recoverIn";
import { type RecoverOut } from "../models/recoverOut";
import { type ReplayIn } from "../models/replayIn";
import { type ReplayOut } from "../models/replayOut";
import { type SvixRequestContext } from "../request";
export interface EndpointListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface EndpointCreateOptions {
idempotencyKey?: string;
}
export interface EndpointBulkReplayOptions {
idempotencyKey?: string;
}
export interface EndpointRecoverOptions {
idempotencyKey?: string;
}
export interface EndpointReplayMissingOptions {
idempotencyKey?: string;
}
export interface EndpointRotateSecretOptions {
idempotencyKey?: string;
}
export interface EndpointSendExampleOptions {
idempotencyKey?: string;
}
export interface EndpointGetStatsOptions {
since?: Date | null;
until?: Date | null;
}
export declare class Endpoint {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(appId: string, options?: EndpointListOptions): Promise<ListResponseEndpointOut>;
create(appId: string, endpointIn: EndpointIn, options?: EndpointCreateOptions): Promise<EndpointOut>;
get(appId: string, endpointId: string): Promise<EndpointOut>;
update(appId: string, endpointId: string, endpointUpdate: EndpointUpdate): Promise<EndpointOut>;
delete(appId: string, endpointId: string): Promise<void>;
patch(appId: string, endpointId: string, endpointPatch: EndpointPatch): Promise<EndpointOut>;
bulkReplay(appId: string, endpointId: string, bulkReplayIn: BulkReplayIn, options?: EndpointBulkReplayOptions): Promise<ReplayOut>;
getHeaders(appId: string, endpointId: string): Promise<EndpointHeadersOut>;
updateHeaders(appId: string, endpointId: string, endpointHeadersIn: EndpointHeadersIn): Promise<void>;
headersUpdate(appId: string, endpointId: string, endpointHeadersIn: EndpointHeadersIn): Promise<void>;
patchHeaders(appId: string, endpointId: string, endpointHeadersPatchIn: EndpointHeadersPatchIn): Promise<void>;
headersPatch(appId: string, endpointId: string, endpointHeadersPatchIn: EndpointHeadersPatchIn): Promise<void>;
recover(appId: string, endpointId: string, recoverIn: RecoverIn, options?: EndpointRecoverOptions): Promise<RecoverOut>;
replayMissing(appId: string, endpointId: string, replayIn: ReplayIn, options?: EndpointReplayMissingOptions): Promise<ReplayOut>;
getSecret(appId: string, endpointId: string): Promise<EndpointSecretOut>;
rotateSecret(appId: string, endpointId: string, endpointSecretRotateIn: EndpointSecretRotateIn, options?: EndpointRotateSecretOptions): Promise<void>;
sendExample(appId: string, endpointId: string, eventExampleIn: EventExampleIn, options?: EndpointSendExampleOptions): Promise<MessageOut>;
getStats(appId: string, endpointId: string, options?: EndpointGetStatsOptions): Promise<EndpointStats>;
transformationGet(appId: string, endpointId: string): Promise<EndpointTransformationOut>;
patchTransformation(appId: string, endpointId: string, endpointTransformationPatch: EndpointTransformationPatch): Promise<void>;
transformationPartialUpdate(appId: string, endpointId: string, endpointTransformationIn: EndpointTransformationIn): Promise<void>;
}

177
node_modules/svix/dist/api/endpoint.js generated vendored Normal file
View File

@@ -0,0 +1,177 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Endpoint = void 0;
const bulkReplayIn_1 = require("../models/bulkReplayIn");
const endpointHeadersIn_1 = require("../models/endpointHeadersIn");
const endpointHeadersOut_1 = require("../models/endpointHeadersOut");
const endpointHeadersPatchIn_1 = require("../models/endpointHeadersPatchIn");
const endpointIn_1 = require("../models/endpointIn");
const endpointOut_1 = require("../models/endpointOut");
const endpointPatch_1 = require("../models/endpointPatch");
const endpointSecretOut_1 = require("../models/endpointSecretOut");
const endpointSecretRotateIn_1 = require("../models/endpointSecretRotateIn");
const endpointStats_1 = require("../models/endpointStats");
const endpointTransformationIn_1 = require("../models/endpointTransformationIn");
const endpointTransformationOut_1 = require("../models/endpointTransformationOut");
const endpointTransformationPatch_1 = require("../models/endpointTransformationPatch");
const endpointUpdate_1 = require("../models/endpointUpdate");
const eventExampleIn_1 = require("../models/eventExampleIn");
const listResponseEndpointOut_1 = require("../models/listResponseEndpointOut");
const messageOut_1 = require("../models/messageOut");
const recoverIn_1 = require("../models/recoverIn");
const recoverOut_1 = require("../models/recoverOut");
const replayIn_1 = require("../models/replayIn");
const replayOut_1 = require("../models/replayOut");
const request_1 = require("../request");
class Endpoint {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(appId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/endpoint");
request.setPathParam("app_id", appId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseEndpointOut_1.ListResponseEndpointOutSerializer._fromJsonObject);
}
create(appId, endpointIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/endpoint");
request.setPathParam("app_id", appId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(endpointIn_1.EndpointInSerializer._toJsonObject(endpointIn));
return request.send(this.requestCtx, endpointOut_1.EndpointOutSerializer._fromJsonObject);
}
get(appId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/endpoint/{endpoint_id}");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, endpointOut_1.EndpointOutSerializer._fromJsonObject);
}
update(appId, endpointId, endpointUpdate) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/app/{app_id}/endpoint/{endpoint_id}");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(endpointUpdate_1.EndpointUpdateSerializer._toJsonObject(endpointUpdate));
return request.send(this.requestCtx, endpointOut_1.EndpointOutSerializer._fromJsonObject);
}
delete(appId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/app/{app_id}/endpoint/{endpoint_id}");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
return request.sendNoResponseBody(this.requestCtx);
}
patch(appId, endpointId, endpointPatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/app/{app_id}/endpoint/{endpoint_id}");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(endpointPatch_1.EndpointPatchSerializer._toJsonObject(endpointPatch));
return request.send(this.requestCtx, endpointOut_1.EndpointOutSerializer._fromJsonObject);
}
bulkReplay(appId, endpointId, bulkReplayIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/bulk-replay");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(bulkReplayIn_1.BulkReplayInSerializer._toJsonObject(bulkReplayIn));
return request.send(this.requestCtx, replayOut_1.ReplayOutSerializer._fromJsonObject);
}
getHeaders(appId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, endpointHeadersOut_1.EndpointHeadersOutSerializer._fromJsonObject);
}
updateHeaders(appId, endpointId, endpointHeadersIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(endpointHeadersIn_1.EndpointHeadersInSerializer._toJsonObject(endpointHeadersIn));
return request.sendNoResponseBody(this.requestCtx);
}
headersUpdate(appId, endpointId, endpointHeadersIn) {
return this.updateHeaders(appId, endpointId, endpointHeadersIn);
}
patchHeaders(appId, endpointId, endpointHeadersPatchIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(endpointHeadersPatchIn_1.EndpointHeadersPatchInSerializer._toJsonObject(endpointHeadersPatchIn));
return request.sendNoResponseBody(this.requestCtx);
}
headersPatch(appId, endpointId, endpointHeadersPatchIn) {
return this.patchHeaders(appId, endpointId, endpointHeadersPatchIn);
}
recover(appId, endpointId, recoverIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/recover");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(recoverIn_1.RecoverInSerializer._toJsonObject(recoverIn));
return request.send(this.requestCtx, recoverOut_1.RecoverOutSerializer._fromJsonObject);
}
replayMissing(appId, endpointId, replayIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(replayIn_1.ReplayInSerializer._toJsonObject(replayIn));
return request.send(this.requestCtx, replayOut_1.ReplayOutSerializer._fromJsonObject);
}
getSecret(appId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, endpointSecretOut_1.EndpointSecretOutSerializer._fromJsonObject);
}
rotateSecret(appId, endpointId, endpointSecretRotateIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(endpointSecretRotateIn_1.EndpointSecretRotateInSerializer._toJsonObject(endpointSecretRotateIn));
return request.sendNoResponseBody(this.requestCtx);
}
sendExample(appId, endpointId, eventExampleIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/send-example");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(eventExampleIn_1.EventExampleInSerializer._toJsonObject(eventExampleIn));
return request.send(this.requestCtx, messageOut_1.MessageOutSerializer._fromJsonObject);
}
getStats(appId, endpointId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/stats");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setQueryParams({
since: options === null || options === void 0 ? void 0 : options.since,
until: options === null || options === void 0 ? void 0 : options.until,
});
return request.send(this.requestCtx, endpointStats_1.EndpointStatsSerializer._fromJsonObject);
}
transformationGet(appId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, endpointTransformationOut_1.EndpointTransformationOutSerializer._fromJsonObject);
}
patchTransformation(appId, endpointId, endpointTransformationPatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(endpointTransformationPatch_1.EndpointTransformationPatchSerializer._toJsonObject(endpointTransformationPatch));
return request.sendNoResponseBody(this.requestCtx);
}
transformationPartialUpdate(appId, endpointId, endpointTransformationIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(endpointTransformationIn_1.EndpointTransformationInSerializer._toJsonObject(endpointTransformationIn));
return request.sendNoResponseBody(this.requestCtx);
}
}
exports.Endpoint = Endpoint;
//# sourceMappingURL=endpoint.js.map

1
node_modules/svix/dist/api/endpoint.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

15
node_modules/svix/dist/api/environment.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import { type EnvironmentIn } from "../models/environmentIn";
import { type EnvironmentOut } from "../models/environmentOut";
import { type SvixRequestContext } from "../request";
export interface EnvironmentExportOptions {
idempotencyKey?: string;
}
export interface EnvironmentImportOptions {
idempotencyKey?: string;
}
export declare class Environment {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
export(options?: EnvironmentExportOptions): Promise<EnvironmentOut>;
import(environmentIn: EnvironmentIn, options?: EnvironmentImportOptions): Promise<void>;
}

24
node_modules/svix/dist/api/environment.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Environment = void 0;
const environmentIn_1 = require("../models/environmentIn");
const environmentOut_1 = require("../models/environmentOut");
const request_1 = require("../request");
class Environment {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
export(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/environment/export");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
return request.send(this.requestCtx, environmentOut_1.EnvironmentOutSerializer._fromJsonObject);
}
import(environmentIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/environment/import");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(environmentIn_1.EnvironmentInSerializer._toJsonObject(environmentIn));
return request.sendNoResponseBody(this.requestCtx);
}
}
exports.Environment = Environment;
//# sourceMappingURL=environment.js.map

1
node_modules/svix/dist/api/environment.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/api/environment.ts"],"names":[],"mappings":";;;AAEA,2DAAsF;AACtF,6DAAyF;AACzF,wCAA8E;AAU9E,MAAa,WAAW;IACtB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAQ/D,MAAM,CAAC,OAAkC;QAC9C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,IAAI,EAAE,4BAA4B,CAAC,CAAC;QAE/E,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QAEnE,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,yCAAwB,CAAC,eAAe,CAAC,CAAC;IACjF,CAAC;IAUM,MAAM,CACX,aAA4B,EAC5B,OAAkC;QAElC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,IAAI,EAAE,4BAA4B,CAAC,CAAC;QAE/E,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CAAC,uCAAuB,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC;QAEtE,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;CACF;AApCD,kCAoCC"}

36
node_modules/svix/dist/api/eventType.d.ts generated vendored Normal file
View File

@@ -0,0 +1,36 @@
import { type EventTypeImportOpenApiIn } from "../models/eventTypeImportOpenApiIn";
import { type EventTypeImportOpenApiOut } from "../models/eventTypeImportOpenApiOut";
import { type EventTypeIn } from "../models/eventTypeIn";
import { type EventTypeOut } from "../models/eventTypeOut";
import { type EventTypePatch } from "../models/eventTypePatch";
import { type EventTypeUpdate } from "../models/eventTypeUpdate";
import { type ListResponseEventTypeOut } from "../models/listResponseEventTypeOut";
import type { Ordering } from "../models/ordering";
import { type SvixRequestContext } from "../request";
export interface EventTypeListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
includeArchived?: boolean;
withContent?: boolean;
}
export interface EventTypeCreateOptions {
idempotencyKey?: string;
}
export interface EventTypeImportOpenapiOptions {
idempotencyKey?: string;
}
export interface EventTypeDeleteOptions {
expunge?: boolean;
}
export declare class EventType {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: EventTypeListOptions): Promise<ListResponseEventTypeOut>;
create(eventTypeIn: EventTypeIn, options?: EventTypeCreateOptions): Promise<EventTypeOut>;
importOpenapi(eventTypeImportOpenApiIn: EventTypeImportOpenApiIn, options?: EventTypeImportOpenapiOptions): Promise<EventTypeImportOpenApiOut>;
get(eventTypeName: string): Promise<EventTypeOut>;
update(eventTypeName: string, eventTypeUpdate: EventTypeUpdate): Promise<EventTypeOut>;
delete(eventTypeName: string, options?: EventTypeDeleteOptions): Promise<void>;
patch(eventTypeName: string, eventTypePatch: EventTypePatch): Promise<EventTypeOut>;
}

66
node_modules/svix/dist/api/eventType.js generated vendored Normal file
View File

@@ -0,0 +1,66 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventType = void 0;
const eventTypeImportOpenApiIn_1 = require("../models/eventTypeImportOpenApiIn");
const eventTypeImportOpenApiOut_1 = require("../models/eventTypeImportOpenApiOut");
const eventTypeIn_1 = require("../models/eventTypeIn");
const eventTypeOut_1 = require("../models/eventTypeOut");
const eventTypePatch_1 = require("../models/eventTypePatch");
const eventTypeUpdate_1 = require("../models/eventTypeUpdate");
const listResponseEventTypeOut_1 = require("../models/listResponseEventTypeOut");
const request_1 = require("../request");
class EventType {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/event-type");
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
include_archived: options === null || options === void 0 ? void 0 : options.includeArchived,
with_content: options === null || options === void 0 ? void 0 : options.withContent,
});
return request.send(this.requestCtx, listResponseEventTypeOut_1.ListResponseEventTypeOutSerializer._fromJsonObject);
}
create(eventTypeIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/event-type");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(eventTypeIn_1.EventTypeInSerializer._toJsonObject(eventTypeIn));
return request.send(this.requestCtx, eventTypeOut_1.EventTypeOutSerializer._fromJsonObject);
}
importOpenapi(eventTypeImportOpenApiIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/event-type/import/openapi");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(eventTypeImportOpenApiIn_1.EventTypeImportOpenApiInSerializer._toJsonObject(eventTypeImportOpenApiIn));
return request.send(this.requestCtx, eventTypeImportOpenApiOut_1.EventTypeImportOpenApiOutSerializer._fromJsonObject);
}
get(eventTypeName) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/event-type/{event_type_name}");
request.setPathParam("event_type_name", eventTypeName);
return request.send(this.requestCtx, eventTypeOut_1.EventTypeOutSerializer._fromJsonObject);
}
update(eventTypeName, eventTypeUpdate) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/event-type/{event_type_name}");
request.setPathParam("event_type_name", eventTypeName);
request.setBody(eventTypeUpdate_1.EventTypeUpdateSerializer._toJsonObject(eventTypeUpdate));
return request.send(this.requestCtx, eventTypeOut_1.EventTypeOutSerializer._fromJsonObject);
}
delete(eventTypeName, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/event-type/{event_type_name}");
request.setPathParam("event_type_name", eventTypeName);
request.setQueryParams({
expunge: options === null || options === void 0 ? void 0 : options.expunge,
});
return request.sendNoResponseBody(this.requestCtx);
}
patch(eventTypeName, eventTypePatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/event-type/{event_type_name}");
request.setPathParam("event_type_name", eventTypeName);
request.setBody(eventTypePatch_1.EventTypePatchSerializer._toJsonObject(eventTypePatch));
return request.send(this.requestCtx, eventTypeOut_1.EventTypeOutSerializer._fromJsonObject);
}
}
exports.EventType = EventType;
//# sourceMappingURL=eventType.js.map

1
node_modules/svix/dist/api/eventType.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"eventType.js","sourceRoot":"","sources":["../../src/api/eventType.ts"],"names":[],"mappings":";;;AAEA,iFAG4C;AAC5C,mFAG6C;AAC7C,uDAAgF;AAChF,yDAAmF;AACnF,6DAAyF;AACzF,+DAGmC;AACnC,iFAG4C;AAE5C,wCAA8E;AA4B9E,MAAa,SAAS;IACpB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CAAC,OAA8B;QACxC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,oBAAoB,CAAC,CAAC;QAEtE,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,gBAAgB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe;YAC1C,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;SACnC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,C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MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,GAAG,EACd,sCAAsC,CACvC,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACvD,OAAO,CAAC,OAAO,CAAC,2CAAyB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC;QAE1E,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,qCAAsB,CAAC,eAAe,CAAC,CAAC;IAC/E,CAAC;IAUM,MAAM,CAAC,aAAqB,EAAE,OAAgC;QACnE,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,MAAM,EACjB,sCAAsC,CACvC,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACvD,OAAO,CAAC,cAAc,CAAC;YACrB,OAAO,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO;SAC1B,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAGM,KAAK,CACV,aAAqB,EACrB,cAA8B;QAE9B,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,KAAK,EAChB,sCAAsC,CACvC,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACvD,OAAO,CAAC,OAAO,CAAC,yCAAwB,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC;QAExE,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,qCAAsB,CAAC,eAAe,CAAC,CAAC;IAC/E,CAAC;CACF;AAjID,8BAiIC"}

6
node_modules/svix/dist/api/health.d.ts generated vendored Normal file
View File

@@ -0,0 +1,6 @@
import { type SvixRequestContext } from "../request";
export declare class Health {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
get(): Promise<void>;
}

15
node_modules/svix/dist/api/health.js generated vendored Normal file
View File

@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Health = void 0;
const request_1 = require("../request");
class Health {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
get() {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/health");
return request.sendNoResponseBody(this.requestCtx);
}
}
exports.Health = Health;
//# sourceMappingURL=health.js.map

1
node_modules/svix/dist/api/health.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"health.js","sourceRoot":"","sources":["../../src/api/health.ts"],"names":[],"mappings":";;;AAEA,wCAA8E;AAE9E,MAAa,MAAM;IACjB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,GAAG;QACR,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QAElE,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;CACF;AATD,wBASC"}

15
node_modules/svix/dist/api/ingest.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
import { type DashboardAccessOut } from "../models/dashboardAccessOut";
import { type IngestSourceConsumerPortalAccessIn } from "../models/ingestSourceConsumerPortalAccessIn";
import { IngestEndpoint } from "./ingestEndpoint";
import { IngestSource } from "./ingestSource";
import { type SvixRequestContext } from "../request";
export interface IngestDashboardOptions {
idempotencyKey?: string;
}
export declare class Ingest {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
get endpoint(): IngestEndpoint;
get source(): IngestSource;
dashboard(sourceId: string, ingestSourceConsumerPortalAccessIn: IngestSourceConsumerPortalAccessIn, options?: IngestDashboardOptions): Promise<DashboardAccessOut>;
}

28
node_modules/svix/dist/api/ingest.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ingest = void 0;
const dashboardAccessOut_1 = require("../models/dashboardAccessOut");
const ingestSourceConsumerPortalAccessIn_1 = require("../models/ingestSourceConsumerPortalAccessIn");
const ingestEndpoint_1 = require("./ingestEndpoint");
const ingestSource_1 = require("./ingestSource");
const request_1 = require("../request");
class Ingest {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
get endpoint() {
return new ingestEndpoint_1.IngestEndpoint(this.requestCtx);
}
get source() {
return new ingestSource_1.IngestSource(this.requestCtx);
}
dashboard(sourceId, ingestSourceConsumerPortalAccessIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/ingest/api/v1/source/{source_id}/dashboard");
request.setPathParam("source_id", sourceId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(ingestSourceConsumerPortalAccessIn_1.IngestSourceConsumerPortalAccessInSerializer._toJsonObject(ingestSourceConsumerPortalAccessIn));
return request.send(this.requestCtx, dashboardAccessOut_1.DashboardAccessOutSerializer._fromJsonObject);
}
}
exports.Ingest = Ingest;
//# sourceMappingURL=ingest.js.map

1
node_modules/svix/dist/api/ingest.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"ingest.js","sourceRoot":"","sources":["../../src/api/ingest.ts"],"names":[],"mappings":";;;AAEA,qEAGsC;AACtC,qGAGsD;AACtD,qDAAkD;AAClD,iDAA8C;AAC9C,wCAA8E;AAM9E,MAAa,MAAM;IACjB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAEtE,IAAW,QAAQ;QACjB,OAAO,IAAI,+BAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7C,CAAC;IAED,IAAW,MAAM;QACf,OAAO,IAAI,2BAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAGM,SAAS,CACd,QAAgB,EAChB,kCAAsE,EACtE,OAAgC;QAEhC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,IAAI,EACf,6CAA6C,CAC9C,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CACb,iFAA4C,CAAC,aAAa,CACxD,kCAAkC,CACnC,CACF,CAAC;QAEF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,iDAA4B,CAAC,eAAe,CAAC,CAAC;IACrF,CAAC;CACF;AAhCD,wBAgCC"}

38
node_modules/svix/dist/api/ingestEndpoint.d.ts generated vendored Normal file
View File

@@ -0,0 +1,38 @@
import { type IngestEndpointHeadersIn } from "../models/ingestEndpointHeadersIn";
import { type IngestEndpointHeadersOut } from "../models/ingestEndpointHeadersOut";
import { type IngestEndpointIn } from "../models/ingestEndpointIn";
import { type IngestEndpointOut } from "../models/ingestEndpointOut";
import { type IngestEndpointSecretIn } from "../models/ingestEndpointSecretIn";
import { type IngestEndpointSecretOut } from "../models/ingestEndpointSecretOut";
import { type IngestEndpointTransformationOut } from "../models/ingestEndpointTransformationOut";
import { type IngestEndpointTransformationPatch } from "../models/ingestEndpointTransformationPatch";
import { type IngestEndpointUpdate } from "../models/ingestEndpointUpdate";
import { type ListResponseIngestEndpointOut } from "../models/listResponseIngestEndpointOut";
import type { Ordering } from "../models/ordering";
import { type SvixRequestContext } from "../request";
export interface IngestEndpointListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface IngestEndpointCreateOptions {
idempotencyKey?: string;
}
export interface IngestEndpointRotateSecretOptions {
idempotencyKey?: string;
}
export declare class IngestEndpoint {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(sourceId: string, options?: IngestEndpointListOptions): Promise<ListResponseIngestEndpointOut>;
create(sourceId: string, ingestEndpointIn: IngestEndpointIn, options?: IngestEndpointCreateOptions): Promise<IngestEndpointOut>;
get(sourceId: string, endpointId: string): Promise<IngestEndpointOut>;
update(sourceId: string, endpointId: string, ingestEndpointUpdate: IngestEndpointUpdate): Promise<IngestEndpointOut>;
delete(sourceId: string, endpointId: string): Promise<void>;
getHeaders(sourceId: string, endpointId: string): Promise<IngestEndpointHeadersOut>;
updateHeaders(sourceId: string, endpointId: string, ingestEndpointHeadersIn: IngestEndpointHeadersIn): Promise<void>;
getSecret(sourceId: string, endpointId: string): Promise<IngestEndpointSecretOut>;
rotateSecret(sourceId: string, endpointId: string, ingestEndpointSecretIn: IngestEndpointSecretIn, options?: IngestEndpointRotateSecretOptions): Promise<void>;
getTransformation(sourceId: string, endpointId: string): Promise<IngestEndpointTransformationOut>;
setTransformation(sourceId: string, endpointId: string, ingestEndpointTransformationPatch: IngestEndpointTransformationPatch): Promise<void>;
}

97
node_modules/svix/dist/api/ingestEndpoint.js generated vendored Normal file
View File

@@ -0,0 +1,97 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IngestEndpoint = void 0;
const ingestEndpointHeadersIn_1 = require("../models/ingestEndpointHeadersIn");
const ingestEndpointHeadersOut_1 = require("../models/ingestEndpointHeadersOut");
const ingestEndpointIn_1 = require("../models/ingestEndpointIn");
const ingestEndpointOut_1 = require("../models/ingestEndpointOut");
const ingestEndpointSecretIn_1 = require("../models/ingestEndpointSecretIn");
const ingestEndpointSecretOut_1 = require("../models/ingestEndpointSecretOut");
const ingestEndpointTransformationOut_1 = require("../models/ingestEndpointTransformationOut");
const ingestEndpointTransformationPatch_1 = require("../models/ingestEndpointTransformationPatch");
const ingestEndpointUpdate_1 = require("../models/ingestEndpointUpdate");
const listResponseIngestEndpointOut_1 = require("../models/listResponseIngestEndpointOut");
const request_1 = require("../request");
class IngestEndpoint {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(sourceId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/ingest/api/v1/source/{source_id}/endpoint");
request.setPathParam("source_id", sourceId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseIngestEndpointOut_1.ListResponseIngestEndpointOutSerializer._fromJsonObject);
}
create(sourceId, ingestEndpointIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/ingest/api/v1/source/{source_id}/endpoint");
request.setPathParam("source_id", sourceId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(ingestEndpointIn_1.IngestEndpointInSerializer._toJsonObject(ingestEndpointIn));
return request.send(this.requestCtx, ingestEndpointOut_1.IngestEndpointOutSerializer._fromJsonObject);
}
get(sourceId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, ingestEndpointOut_1.IngestEndpointOutSerializer._fromJsonObject);
}
update(sourceId, endpointId, ingestEndpointUpdate) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(ingestEndpointUpdate_1.IngestEndpointUpdateSerializer._toJsonObject(ingestEndpointUpdate));
return request.send(this.requestCtx, ingestEndpointOut_1.IngestEndpointOutSerializer._fromJsonObject);
}
delete(sourceId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
return request.sendNoResponseBody(this.requestCtx);
}
getHeaders(sourceId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, ingestEndpointHeadersOut_1.IngestEndpointHeadersOutSerializer._fromJsonObject);
}
updateHeaders(sourceId, endpointId, ingestEndpointHeadersIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/headers");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(ingestEndpointHeadersIn_1.IngestEndpointHeadersInSerializer._toJsonObject(ingestEndpointHeadersIn));
return request.sendNoResponseBody(this.requestCtx);
}
getSecret(sourceId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, ingestEndpointSecretOut_1.IngestEndpointSecretOutSerializer._fromJsonObject);
}
rotateSecret(sourceId, endpointId, ingestEndpointSecretIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/secret/rotate");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(ingestEndpointSecretIn_1.IngestEndpointSecretInSerializer._toJsonObject(ingestEndpointSecretIn));
return request.sendNoResponseBody(this.requestCtx);
}
getTransformation(sourceId, endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, ingestEndpointTransformationOut_1.IngestEndpointTransformationOutSerializer._fromJsonObject);
}
setTransformation(sourceId, endpointId, ingestEndpointTransformationPatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/ingest/api/v1/source/{source_id}/endpoint/{endpoint_id}/transformation");
request.setPathParam("source_id", sourceId);
request.setPathParam("endpoint_id", endpointId);
request.setBody(ingestEndpointTransformationPatch_1.IngestEndpointTransformationPatchSerializer._toJsonObject(ingestEndpointTransformationPatch));
return request.sendNoResponseBody(this.requestCtx);
}
}
exports.IngestEndpoint = IngestEndpoint;
//# sourceMappingURL=ingestEndpoint.js.map

1
node_modules/svix/dist/api/ingestEndpoint.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"ingestEndpoint.js","sourceRoot":"","sources":["../../src/api/ingestEndpoint.ts"],"names":[],"mappings":";;;AAEA,+EAG2C;AAC3C,iFAG4C;AAC5C,iEAGoC;AACpC,mEAGqC;AACrC,6EAG0C;AAC1C,+EAG2C;AAC3C,+FAGmD;AACnD,mGAGqD;AACrD,yEAGwC;AACxC,2FAGiD;AAEjD,wCAA8E;AAmB9E,MAAa,cAAc;IACzB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CACT,QAAgB,EAChB,OAAmC;QAEnC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,GAAG,EACd,4CAA4C,CAC7C,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;SACtB,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,UAAU,EACf,uEAAuC,CAAC,eAAe,CACxD,CAAC;IACJ,CAAC;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tB,QAAgB,EAChB,UAAkB,EAClB,iCAAoE;QAEpE,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,KAAK,EAChB,yEAAyE,CAC1E,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;QAChD,OAAO,CAAC,OAAO,CACb,+EAA2C,CAAC,aAAa,CACvD,iCAAiC,CAClC,CACF,CAAC;QAEF,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;CACF;AAzND,wCAyNC"}

27
node_modules/svix/dist/api/ingestSource.d.ts generated vendored Normal file
View File

@@ -0,0 +1,27 @@
import { type IngestSourceIn } from "../models/ingestSourceIn";
import { type IngestSourceOut } from "../models/ingestSourceOut";
import { type ListResponseIngestSourceOut } from "../models/listResponseIngestSourceOut";
import type { Ordering } from "../models/ordering";
import { type RotateTokenOut } from "../models/rotateTokenOut";
import { type SvixRequestContext } from "../request";
export interface IngestSourceListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface IngestSourceCreateOptions {
idempotencyKey?: string;
}
export interface IngestSourceRotateTokenOptions {
idempotencyKey?: string;
}
export declare class IngestSource {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: IngestSourceListOptions): Promise<ListResponseIngestSourceOut>;
create(ingestSourceIn: IngestSourceIn, options?: IngestSourceCreateOptions): Promise<IngestSourceOut>;
get(sourceId: string): Promise<IngestSourceOut>;
update(sourceId: string, ingestSourceIn: IngestSourceIn): Promise<IngestSourceOut>;
delete(sourceId: string): Promise<void>;
rotateToken(sourceId: string, options?: IngestSourceRotateTokenOptions): Promise<RotateTokenOut>;
}

52
node_modules/svix/dist/api/ingestSource.js generated vendored Normal file
View File

@@ -0,0 +1,52 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IngestSource = void 0;
const ingestSourceIn_1 = require("../models/ingestSourceIn");
const ingestSourceOut_1 = require("../models/ingestSourceOut");
const listResponseIngestSourceOut_1 = require("../models/listResponseIngestSourceOut");
const rotateTokenOut_1 = require("../models/rotateTokenOut");
const request_1 = require("../request");
class IngestSource {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/ingest/api/v1/source");
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseIngestSourceOut_1.ListResponseIngestSourceOutSerializer._fromJsonObject);
}
create(ingestSourceIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/ingest/api/v1/source");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(ingestSourceIn_1.IngestSourceInSerializer._toJsonObject(ingestSourceIn));
return request.send(this.requestCtx, ingestSourceOut_1.IngestSourceOutSerializer._fromJsonObject);
}
get(sourceId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/ingest/api/v1/source/{source_id}");
request.setPathParam("source_id", sourceId);
return request.send(this.requestCtx, ingestSourceOut_1.IngestSourceOutSerializer._fromJsonObject);
}
update(sourceId, ingestSourceIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/ingest/api/v1/source/{source_id}");
request.setPathParam("source_id", sourceId);
request.setBody(ingestSourceIn_1.IngestSourceInSerializer._toJsonObject(ingestSourceIn));
return request.send(this.requestCtx, ingestSourceOut_1.IngestSourceOutSerializer._fromJsonObject);
}
delete(sourceId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/ingest/api/v1/source/{source_id}");
request.setPathParam("source_id", sourceId);
return request.sendNoResponseBody(this.requestCtx);
}
rotateToken(sourceId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/ingest/api/v1/source/{source_id}/token/rotate");
request.setPathParam("source_id", sourceId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
return request.send(this.requestCtx, rotateTokenOut_1.RotateTokenOutSerializer._fromJsonObject);
}
}
exports.IngestSource = IngestSource;
//# sourceMappingURL=ingestSource.js.map

1
node_modules/svix/dist/api/ingestSource.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"ingestSource.js","sourceRoot":"","sources":["../../src/api/ingestSource.ts"],"names":[],"mappings":";;;AAEA,6DAAyF;AACzF,+DAGmC;AACnC,uFAG+C;AAE/C,6DAAyF;AACzF,wCAA8E;AAmB9E,MAAa,YAAY;IACvB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CAAC,OAAiC;QAC3C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,uBAAuB,CAAC,CAAC;QAEzE,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;SACtB,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,UAAU,EACf,mEAAqC,CAAC,eAAe,CACtD,CAAC;IACJ,CAAC;IAGM,MAAM,CACX,cAA8B,EAC9B,OAAmC;QAEnC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;QAE1E,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CAAC,yCAAwB,CA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AAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QAEnE,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,yCAAwB,CAAC,eAAe,CAAC,CAAC;IACjF,CAAC;CACF;AAxFD,oCAwFC"}

29
node_modules/svix/dist/api/integration.d.ts generated vendored Normal file
View File

@@ -0,0 +1,29 @@
import { type IntegrationIn } from "../models/integrationIn";
import { type IntegrationKeyOut } from "../models/integrationKeyOut";
import { type IntegrationOut } from "../models/integrationOut";
import { type IntegrationUpdate } from "../models/integrationUpdate";
import { type ListResponseIntegrationOut } from "../models/listResponseIntegrationOut";
import type { Ordering } from "../models/ordering";
import { type SvixRequestContext } from "../request";
export interface IntegrationListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface IntegrationCreateOptions {
idempotencyKey?: string;
}
export interface IntegrationRotateKeyOptions {
idempotencyKey?: string;
}
export declare class Integration {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(appId: string, options?: IntegrationListOptions): Promise<ListResponseIntegrationOut>;
create(appId: string, integrationIn: IntegrationIn, options?: IntegrationCreateOptions): Promise<IntegrationOut>;
get(appId: string, integId: string): Promise<IntegrationOut>;
update(appId: string, integId: string, integrationUpdate: IntegrationUpdate): Promise<IntegrationOut>;
delete(appId: string, integId: string): Promise<void>;
getKey(appId: string, integId: string): Promise<IntegrationKeyOut>;
rotateKey(appId: string, integId: string, options?: IntegrationRotateKeyOptions): Promise<IntegrationKeyOut>;
}

65
node_modules/svix/dist/api/integration.js generated vendored Normal file
View File

@@ -0,0 +1,65 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Integration = void 0;
const integrationIn_1 = require("../models/integrationIn");
const integrationKeyOut_1 = require("../models/integrationKeyOut");
const integrationOut_1 = require("../models/integrationOut");
const integrationUpdate_1 = require("../models/integrationUpdate");
const listResponseIntegrationOut_1 = require("../models/listResponseIntegrationOut");
const request_1 = require("../request");
class Integration {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(appId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/integration");
request.setPathParam("app_id", appId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseIntegrationOut_1.ListResponseIntegrationOutSerializer._fromJsonObject);
}
create(appId, integrationIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/integration");
request.setPathParam("app_id", appId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(integrationIn_1.IntegrationInSerializer._toJsonObject(integrationIn));
return request.send(this.requestCtx, integrationOut_1.IntegrationOutSerializer._fromJsonObject);
}
get(appId, integId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/integration/{integ_id}");
request.setPathParam("app_id", appId);
request.setPathParam("integ_id", integId);
return request.send(this.requestCtx, integrationOut_1.IntegrationOutSerializer._fromJsonObject);
}
update(appId, integId, integrationUpdate) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/app/{app_id}/integration/{integ_id}");
request.setPathParam("app_id", appId);
request.setPathParam("integ_id", integId);
request.setBody(integrationUpdate_1.IntegrationUpdateSerializer._toJsonObject(integrationUpdate));
return request.send(this.requestCtx, integrationOut_1.IntegrationOutSerializer._fromJsonObject);
}
delete(appId, integId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/app/{app_id}/integration/{integ_id}");
request.setPathParam("app_id", appId);
request.setPathParam("integ_id", integId);
return request.sendNoResponseBody(this.requestCtx);
}
getKey(appId, integId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/integration/{integ_id}/key");
request.setPathParam("app_id", appId);
request.setPathParam("integ_id", integId);
return request.send(this.requestCtx, integrationKeyOut_1.IntegrationKeyOutSerializer._fromJsonObject);
}
rotateKey(appId, integId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/integration/{integ_id}/key/rotate");
request.setPathParam("app_id", appId);
request.setPathParam("integ_id", integId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
return request.send(this.requestCtx, integrationKeyOut_1.IntegrationKeyOutSerializer._fromJsonObject);
}
}
exports.Integration = Integration;
//# sourceMappingURL=integration.js.map

1
node_modules/svix/dist/api/integration.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../src/api/integration.ts"],"names":[],"mappings":";;;AAEA,2DAAsF;AACtF,mEAGqC;AACrC,6DAAyF;AACzF,mEAGqC;AACrC,qFAG8C;AAE9C,wCAA8E;AAmB9E,MAAa,WAAW;IACtB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CACT,KAAa,EACb,OAAgC;QAEhC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,kCAAkC,CAAC,CAAC;QAEpF,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;SACtB,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,UAAU,EACf,iEAAoC,CAAC,eAAe,CACrD,CAAC;IACJ,CAAC;IA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ules/svix/dist/api/message.d.ts generated vendored Normal file
View File

@@ -0,0 +1,43 @@
import { type ExpungeAllContentsOut } from "../models/expungeAllContentsOut";
import { type ListResponseMessageOut } from "../models/listResponseMessageOut";
import { type MessageOut } from "../models/messageOut";
import { type MessagePrecheckIn } from "../models/messagePrecheckIn";
import { type MessagePrecheckOut } from "../models/messagePrecheckOut";
import { MessagePoller } from "./messagePoller";
import { type SvixRequestContext } from "../request";
import { type MessageIn } from "../models/messageIn";
export interface MessageListOptions {
limit?: number;
iterator?: string | null;
channel?: string;
before?: Date | null;
after?: Date | null;
withContent?: boolean;
tag?: string;
eventTypes?: string[];
}
export interface MessageCreateOptions {
withContent?: boolean;
idempotencyKey?: string;
}
export interface MessageExpungeAllContentsOptions {
idempotencyKey?: string;
}
export interface MessagePrecheckOptions {
idempotencyKey?: string;
}
export interface MessageGetOptions {
withContent?: boolean;
}
export declare class Message {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
get poller(): MessagePoller;
list(appId: string, options?: MessageListOptions): Promise<ListResponseMessageOut>;
create(appId: string, messageIn: MessageIn, options?: MessageCreateOptions): Promise<MessageOut>;
expungeAllContents(appId: string, options?: MessageExpungeAllContentsOptions): Promise<ExpungeAllContentsOut>;
precheck(appId: string, messagePrecheckIn: MessagePrecheckIn, options?: MessagePrecheckOptions): Promise<MessagePrecheckOut>;
get(appId: string, msgId: string, options?: MessageGetOptions): Promise<MessageOut>;
expungeContent(appId: string, msgId: string): Promise<void>;
}
export declare function messageInRaw(eventType: string, payload: string, contentType?: string): MessageIn;

86
node_modules/svix/dist/api/message.js generated vendored Normal file
View File

@@ -0,0 +1,86 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.messageInRaw = exports.Message = void 0;
const expungeAllContentsOut_1 = require("../models/expungeAllContentsOut");
const listResponseMessageOut_1 = require("../models/listResponseMessageOut");
const messageOut_1 = require("../models/messageOut");
const messagePrecheckIn_1 = require("../models/messagePrecheckIn");
const messagePrecheckOut_1 = require("../models/messagePrecheckOut");
const messagePoller_1 = require("./messagePoller");
const request_1 = require("../request");
const messageIn_1 = require("../models/messageIn");
class Message {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
get poller() {
return new messagePoller_1.MessagePoller(this.requestCtx);
}
list(appId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/msg");
request.setPathParam("app_id", appId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
channel: options === null || options === void 0 ? void 0 : options.channel,
before: options === null || options === void 0 ? void 0 : options.before,
after: options === null || options === void 0 ? void 0 : options.after,
with_content: options === null || options === void 0 ? void 0 : options.withContent,
tag: options === null || options === void 0 ? void 0 : options.tag,
event_types: options === null || options === void 0 ? void 0 : options.eventTypes,
});
return request.send(this.requestCtx, listResponseMessageOut_1.ListResponseMessageOutSerializer._fromJsonObject);
}
create(appId, messageIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/msg");
request.setPathParam("app_id", appId);
request.setQueryParams({
with_content: options === null || options === void 0 ? void 0 : options.withContent,
});
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(messageIn_1.MessageInSerializer._toJsonObject(messageIn));
return request.send(this.requestCtx, messageOut_1.MessageOutSerializer._fromJsonObject);
}
expungeAllContents(appId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/msg/expunge-all-contents");
request.setPathParam("app_id", appId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
return request.send(this.requestCtx, expungeAllContentsOut_1.ExpungeAllContentsOutSerializer._fromJsonObject);
}
precheck(appId, messagePrecheckIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/msg/precheck/active");
request.setPathParam("app_id", appId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(messagePrecheckIn_1.MessagePrecheckInSerializer._toJsonObject(messagePrecheckIn));
return request.send(this.requestCtx, messagePrecheckOut_1.MessagePrecheckOutSerializer._fromJsonObject);
}
get(appId, msgId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/msg/{msg_id}");
request.setPathParam("app_id", appId);
request.setPathParam("msg_id", msgId);
request.setQueryParams({
with_content: options === null || options === void 0 ? void 0 : options.withContent,
});
return request.send(this.requestCtx, messageOut_1.MessageOutSerializer._fromJsonObject);
}
expungeContent(appId, msgId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/app/{app_id}/msg/{msg_id}/content");
request.setPathParam("app_id", appId);
request.setPathParam("msg_id", msgId);
return request.sendNoResponseBody(this.requestCtx);
}
}
exports.Message = Message;
function messageInRaw(eventType, payload, contentType) {
const headers = contentType ? { "content-type": contentType } : undefined;
return {
eventType,
payload: {},
transformationsParams: {
rawPayload: payload,
headers,
},
};
}
exports.messageInRaw = messageInRaw;
//# sourceMappingURL=message.js.map

1
node_modules/svix/dist/api/message.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/api/message.ts"],"names":[],"mappings":";;;AAEA,2EAGyC;AACzC,6EAG0C;AAC1C,qDAA6E;AAC7E,mEAGqC;AACrC,qEAGsC;AACtC,mDAAgD;AAChD,wCAA8E;AAC9E,mDAA0E;AAwC1E,MAAa,OAAO;IAClB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAEtE,IAAW,MAAM;QACf,OAAO,IAAI,6BAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;IAaM,IAAI,CACT,KAAa,EACb,OAA4B;QAE5B,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,0BAA0B,CAAC,CAAC;Q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CAAC,cAAc,CAAC;YACrB,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;SACnC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,iCAAoB,CAAC,eAAe,CAAC,CAAC;IAC7E,CAAC;IAQM,cAAc,CAAC,KAAa,EAAE,KAAa;QAChD,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,MAAM,EACjB,2CAA2C,CAC5C,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAEtC,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;CACF;AAjKD,0BAiKC;AAgBD,SAAgB,YAAY,CAC1B,SAAiB,EACjB,OAAe,EACf,WAAoB;IAEpB,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAE1E,OAAO;QACL,SAAS;QACT,OAAO,EAAE,EAAE;QACX,qBAAqB,EAAE;YACrB,UAAU,EAAE,OAAO;YACnB,OAAO;SACR;KACF,CAAC;AACJ,CAAC;AAfD,oCAeC"}

63
node_modules/svix/dist/api/messageAttempt.d.ts generated vendored Normal file
View File

@@ -0,0 +1,63 @@
import { type EmptyResponse } from "../models/emptyResponse";
import { type ListResponseEndpointMessageOut } from "../models/listResponseEndpointMessageOut";
import { type ListResponseMessageAttemptOut } from "../models/listResponseMessageAttemptOut";
import { type ListResponseMessageEndpointOut } from "../models/listResponseMessageEndpointOut";
import { type MessageAttemptOut } from "../models/messageAttemptOut";
import type { MessageStatus } from "../models/messageStatus";
import type { StatusCodeClass } from "../models/statusCodeClass";
import { type SvixRequestContext } from "../request";
export interface MessageAttemptListByEndpointOptions {
limit?: number;
iterator?: string | null;
status?: MessageStatus;
statusCodeClass?: StatusCodeClass;
channel?: string;
tag?: string;
before?: Date | null;
after?: Date | null;
withContent?: boolean;
withMsg?: boolean;
eventTypes?: string[];
}
export interface MessageAttemptListByMsgOptions {
limit?: number;
iterator?: string | null;
status?: MessageStatus;
statusCodeClass?: StatusCodeClass;
channel?: string;
tag?: string;
endpointId?: string;
before?: Date | null;
after?: Date | null;
withContent?: boolean;
eventTypes?: string[];
}
export interface MessageAttemptListAttemptedMessagesOptions {
limit?: number;
iterator?: string | null;
channel?: string;
tag?: string;
status?: MessageStatus;
before?: Date | null;
after?: Date | null;
withContent?: boolean;
eventTypes?: string[];
}
export interface MessageAttemptListAttemptedDestinationsOptions {
limit?: number;
iterator?: string | null;
}
export interface MessageAttemptResendOptions {
idempotencyKey?: string;
}
export declare class MessageAttempt {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
listByEndpoint(appId: string, endpointId: string, options?: MessageAttemptListByEndpointOptions): Promise<ListResponseMessageAttemptOut>;
listByMsg(appId: string, msgId: string, options?: MessageAttemptListByMsgOptions): Promise<ListResponseMessageAttemptOut>;
listAttemptedMessages(appId: string, endpointId: string, options?: MessageAttemptListAttemptedMessagesOptions): Promise<ListResponseEndpointMessageOut>;
get(appId: string, msgId: string, attemptId: string): Promise<MessageAttemptOut>;
expungeContent(appId: string, msgId: string, attemptId: string): Promise<void>;
listAttemptedDestinations(appId: string, msgId: string, options?: MessageAttemptListAttemptedDestinationsOptions): Promise<ListResponseMessageEndpointOut>;
resend(appId: string, msgId: string, endpointId: string, options?: MessageAttemptResendOptions): Promise<EmptyResponse>;
}

103
node_modules/svix/dist/api/messageAttempt.js generated vendored Normal file
View File

@@ -0,0 +1,103 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageAttempt = void 0;
const emptyResponse_1 = require("../models/emptyResponse");
const listResponseEndpointMessageOut_1 = require("../models/listResponseEndpointMessageOut");
const listResponseMessageAttemptOut_1 = require("../models/listResponseMessageAttemptOut");
const listResponseMessageEndpointOut_1 = require("../models/listResponseMessageEndpointOut");
const messageAttemptOut_1 = require("../models/messageAttemptOut");
const request_1 = require("../request");
class MessageAttempt {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
listByEndpoint(appId, endpointId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/attempt/endpoint/{endpoint_id}");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
status: options === null || options === void 0 ? void 0 : options.status,
status_code_class: options === null || options === void 0 ? void 0 : options.statusCodeClass,
channel: options === null || options === void 0 ? void 0 : options.channel,
tag: options === null || options === void 0 ? void 0 : options.tag,
before: options === null || options === void 0 ? void 0 : options.before,
after: options === null || options === void 0 ? void 0 : options.after,
with_content: options === null || options === void 0 ? void 0 : options.withContent,
with_msg: options === null || options === void 0 ? void 0 : options.withMsg,
event_types: options === null || options === void 0 ? void 0 : options.eventTypes,
});
return request.send(this.requestCtx, listResponseMessageAttemptOut_1.ListResponseMessageAttemptOutSerializer._fromJsonObject);
}
listByMsg(appId, msgId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/attempt/msg/{msg_id}");
request.setPathParam("app_id", appId);
request.setPathParam("msg_id", msgId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
status: options === null || options === void 0 ? void 0 : options.status,
status_code_class: options === null || options === void 0 ? void 0 : options.statusCodeClass,
channel: options === null || options === void 0 ? void 0 : options.channel,
tag: options === null || options === void 0 ? void 0 : options.tag,
endpoint_id: options === null || options === void 0 ? void 0 : options.endpointId,
before: options === null || options === void 0 ? void 0 : options.before,
after: options === null || options === void 0 ? void 0 : options.after,
with_content: options === null || options === void 0 ? void 0 : options.withContent,
event_types: options === null || options === void 0 ? void 0 : options.eventTypes,
});
return request.send(this.requestCtx, listResponseMessageAttemptOut_1.ListResponseMessageAttemptOutSerializer._fromJsonObject);
}
listAttemptedMessages(appId, endpointId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/endpoint/{endpoint_id}/msg");
request.setPathParam("app_id", appId);
request.setPathParam("endpoint_id", endpointId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
channel: options === null || options === void 0 ? void 0 : options.channel,
tag: options === null || options === void 0 ? void 0 : options.tag,
status: options === null || options === void 0 ? void 0 : options.status,
before: options === null || options === void 0 ? void 0 : options.before,
after: options === null || options === void 0 ? void 0 : options.after,
with_content: options === null || options === void 0 ? void 0 : options.withContent,
event_types: options === null || options === void 0 ? void 0 : options.eventTypes,
});
return request.send(this.requestCtx, listResponseEndpointMessageOut_1.ListResponseEndpointMessageOutSerializer._fromJsonObject);
}
get(appId, msgId, attemptId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}");
request.setPathParam("app_id", appId);
request.setPathParam("msg_id", msgId);
request.setPathParam("attempt_id", attemptId);
return request.send(this.requestCtx, messageAttemptOut_1.MessageAttemptOutSerializer._fromJsonObject);
}
expungeContent(appId, msgId, attemptId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/app/{app_id}/msg/{msg_id}/attempt/{attempt_id}/content");
request.setPathParam("app_id", appId);
request.setPathParam("msg_id", msgId);
request.setPathParam("attempt_id", attemptId);
return request.sendNoResponseBody(this.requestCtx);
}
listAttemptedDestinations(appId, msgId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/msg/{msg_id}/endpoint");
request.setPathParam("app_id", appId);
request.setPathParam("msg_id", msgId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
});
return request.send(this.requestCtx, listResponseMessageEndpointOut_1.ListResponseMessageEndpointOutSerializer._fromJsonObject);
}
resend(appId, msgId, endpointId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend");
request.setPathParam("app_id", appId);
request.setPathParam("msg_id", msgId);
request.setPathParam("endpoint_id", endpointId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
return request.send(this.requestCtx, emptyResponse_1.EmptyResponseSerializer._fromJsonObject);
}
}
exports.MessageAttempt = MessageAttempt;
//# sourceMappingURL=messageAttempt.js.map

1
node_modules/svix/dist/api/messageAttempt.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"messageAttempt.js","sourceRoot":"","sources":["../../src/api/messageAttempt.ts"],"names":[],"mappings":";;;AAEA,2DAAsF;AACtF,6FAGkD;AAClD,2FAGiD;AACjD,6FAGkD;AAClD,mEAGqC;AAGrC,wCAA8E;AAoF9E,MAAa,cAAc;IACzB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAU/D,cAAc,CACnB,KAAa,EACb,UAAkB,EAClB,OAA6C;QAE7C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,GAAG,EACd,qDAAqD,CACtD,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,MAAM,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAA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,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;SAC5B,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,UAAU,EACf,yEAAwC,CAAC,eAAe,CACzD,CAAC;IACJ,CAAC;IAGM,MAAM,CACX,KAAa,EACb,KAAa,EACb,UAAkB,EAClB,OAAqC;QAErC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,IAAI,EACf,iEAAiE,CAClE,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QAEnE,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,uCAAuB,CAAC,eAAe,CAAC,CAAC;IAChF,CAAC;CACF;AAhND,wCAgNC"}

25
node_modules/svix/dist/api/messagePoller.d.ts generated vendored Normal file
View File

@@ -0,0 +1,25 @@
import { type PollingEndpointConsumerSeekIn } from "../models/pollingEndpointConsumerSeekIn";
import { type PollingEndpointConsumerSeekOut } from "../models/pollingEndpointConsumerSeekOut";
import { type PollingEndpointOut } from "../models/pollingEndpointOut";
import { type SvixRequestContext } from "../request";
export interface MessagePollerPollOptions {
limit?: number;
iterator?: string | null;
eventType?: string;
channel?: string;
after?: Date | null;
}
export interface MessagePollerConsumerPollOptions {
limit?: number;
iterator?: string | null;
}
export interface MessagePollerConsumerSeekOptions {
idempotencyKey?: string;
}
export declare class MessagePoller {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
poll(appId: string, sinkId: string, options?: MessagePollerPollOptions): Promise<PollingEndpointOut>;
consumerPoll(appId: string, sinkId: string, consumerId: string, options?: MessagePollerConsumerPollOptions): Promise<PollingEndpointOut>;
consumerSeek(appId: string, sinkId: string, consumerId: string, pollingEndpointConsumerSeekIn: PollingEndpointConsumerSeekIn, options?: MessagePollerConsumerSeekOptions): Promise<PollingEndpointConsumerSeekOut>;
}

47
node_modules/svix/dist/api/messagePoller.js generated vendored Normal file
View File

@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessagePoller = void 0;
const pollingEndpointConsumerSeekIn_1 = require("../models/pollingEndpointConsumerSeekIn");
const pollingEndpointConsumerSeekOut_1 = require("../models/pollingEndpointConsumerSeekOut");
const pollingEndpointOut_1 = require("../models/pollingEndpointOut");
const request_1 = require("../request");
class MessagePoller {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
poll(appId, sinkId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/poller/{sink_id}");
request.setPathParam("app_id", appId);
request.setPathParam("sink_id", sinkId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
event_type: options === null || options === void 0 ? void 0 : options.eventType,
channel: options === null || options === void 0 ? void 0 : options.channel,
after: options === null || options === void 0 ? void 0 : options.after,
});
return request.send(this.requestCtx, pollingEndpointOut_1.PollingEndpointOutSerializer._fromJsonObject);
}
consumerPoll(appId, sinkId, consumerId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/app/{app_id}/poller/{sink_id}/consumer/{consumer_id}");
request.setPathParam("app_id", appId);
request.setPathParam("sink_id", sinkId);
request.setPathParam("consumer_id", consumerId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
});
return request.send(this.requestCtx, pollingEndpointOut_1.PollingEndpointOutSerializer._fromJsonObject);
}
consumerSeek(appId, sinkId, consumerId, pollingEndpointConsumerSeekIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/app/{app_id}/poller/{sink_id}/consumer/{consumer_id}/seek");
request.setPathParam("app_id", appId);
request.setPathParam("sink_id", sinkId);
request.setPathParam("consumer_id", consumerId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(pollingEndpointConsumerSeekIn_1.PollingEndpointConsumerSeekInSerializer._toJsonObject(pollingEndpointConsumerSeekIn));
return request.send(this.requestCtx, pollingEndpointConsumerSeekOut_1.PollingEndpointConsumerSeekOutSerializer._fromJsonObject);
}
}
exports.MessagePoller = MessagePoller;
//# sourceMappingURL=messagePoller.js.map

1
node_modules/svix/dist/api/messagePoller.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"messagePoller.js","sourceRoot":"","sources":["../../src/api/messagePoller.ts"],"names":[],"mappings":";;;AAEA,2FAGiD;AACjD,6FAGkD;AAClD,qEAGsC;AACtC,wCAA8E;AAyB9E,MAAa,aAAa;IACxB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CACT,KAAa,EACb,MAAc,EACd,OAAkC;QAElC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,GAAG,EACd,uCAAuC,CACxC,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACtC,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAA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,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,YAAY,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;QAChD,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CACb,uEAAuC,CAAC,aAAa,CAAC,6BAA6B,CAAC,CACrF,CAAC;QAEF,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,UAAU,EACf,yEAAwC,CAAC,eAAe,CACzD,CAAC;IACJ,CAAC;CACF;AA/ED,sCA+EC"}

7
node_modules/svix/dist/api/operationalWebhook.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import { OperationalWebhookEndpoint } from "./operationalWebhookEndpoint";
import type { SvixRequestContext } from "../request";
export declare class OperationalWebhook {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
get endpoint(): OperationalWebhookEndpoint;
}

14
node_modules/svix/dist/api/operationalWebhook.js generated vendored Normal file
View File

@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OperationalWebhook = void 0;
const operationalWebhookEndpoint_1 = require("./operationalWebhookEndpoint");
class OperationalWebhook {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
get endpoint() {
return new operationalWebhookEndpoint_1.OperationalWebhookEndpoint(this.requestCtx);
}
}
exports.OperationalWebhook = OperationalWebhook;
//# sourceMappingURL=operationalWebhook.js.map

1
node_modules/svix/dist/api/operationalWebhook.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"operationalWebhook.js","sourceRoot":"","sources":["../../src/api/operationalWebhook.ts"],"names":[],"mappings":";;;AAEA,6EAA0E;AAG1E,MAAa,kBAAkB;IAC7B,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAEtE,IAAW,QAAQ;QACjB,OAAO,IAAI,uDAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzD,CAAC;CACF;AAND,gDAMC"}

View File

@@ -0,0 +1,34 @@
import { type ListResponseOperationalWebhookEndpointOut } from "../models/listResponseOperationalWebhookEndpointOut";
import { type OperationalWebhookEndpointHeadersIn } from "../models/operationalWebhookEndpointHeadersIn";
import { type OperationalWebhookEndpointHeadersOut } from "../models/operationalWebhookEndpointHeadersOut";
import { type OperationalWebhookEndpointIn } from "../models/operationalWebhookEndpointIn";
import { type OperationalWebhookEndpointOut } from "../models/operationalWebhookEndpointOut";
import { type OperationalWebhookEndpointSecretIn } from "../models/operationalWebhookEndpointSecretIn";
import { type OperationalWebhookEndpointSecretOut } from "../models/operationalWebhookEndpointSecretOut";
import { type OperationalWebhookEndpointUpdate } from "../models/operationalWebhookEndpointUpdate";
import type { Ordering } from "../models/ordering";
import { type SvixRequestContext } from "../request";
export interface OperationalWebhookEndpointListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface OperationalWebhookEndpointCreateOptions {
idempotencyKey?: string;
}
export interface OperationalWebhookEndpointRotateSecretOptions {
idempotencyKey?: string;
}
export declare class OperationalWebhookEndpoint {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: OperationalWebhookEndpointListOptions): Promise<ListResponseOperationalWebhookEndpointOut>;
create(operationalWebhookEndpointIn: OperationalWebhookEndpointIn, options?: OperationalWebhookEndpointCreateOptions): Promise<OperationalWebhookEndpointOut>;
get(endpointId: string): Promise<OperationalWebhookEndpointOut>;
update(endpointId: string, operationalWebhookEndpointUpdate: OperationalWebhookEndpointUpdate): Promise<OperationalWebhookEndpointOut>;
delete(endpointId: string): Promise<void>;
getHeaders(endpointId: string): Promise<OperationalWebhookEndpointHeadersOut>;
updateHeaders(endpointId: string, operationalWebhookEndpointHeadersIn: OperationalWebhookEndpointHeadersIn): Promise<void>;
getSecret(endpointId: string): Promise<OperationalWebhookEndpointSecretOut>;
rotateSecret(endpointId: string, operationalWebhookEndpointSecretIn: OperationalWebhookEndpointSecretIn, options?: OperationalWebhookEndpointRotateSecretOptions): Promise<void>;
}

View File

@@ -0,0 +1,73 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OperationalWebhookEndpoint = void 0;
const listResponseOperationalWebhookEndpointOut_1 = require("../models/listResponseOperationalWebhookEndpointOut");
const operationalWebhookEndpointHeadersIn_1 = require("../models/operationalWebhookEndpointHeadersIn");
const operationalWebhookEndpointHeadersOut_1 = require("../models/operationalWebhookEndpointHeadersOut");
const operationalWebhookEndpointIn_1 = require("../models/operationalWebhookEndpointIn");
const operationalWebhookEndpointOut_1 = require("../models/operationalWebhookEndpointOut");
const operationalWebhookEndpointSecretIn_1 = require("../models/operationalWebhookEndpointSecretIn");
const operationalWebhookEndpointSecretOut_1 = require("../models/operationalWebhookEndpointSecretOut");
const operationalWebhookEndpointUpdate_1 = require("../models/operationalWebhookEndpointUpdate");
const request_1 = require("../request");
class OperationalWebhookEndpoint {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/operational-webhook/endpoint");
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseOperationalWebhookEndpointOut_1.ListResponseOperationalWebhookEndpointOutSerializer._fromJsonObject);
}
create(operationalWebhookEndpointIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/operational-webhook/endpoint");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(operationalWebhookEndpointIn_1.OperationalWebhookEndpointInSerializer._toJsonObject(operationalWebhookEndpointIn));
return request.send(this.requestCtx, operationalWebhookEndpointOut_1.OperationalWebhookEndpointOutSerializer._fromJsonObject);
}
get(endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/operational-webhook/endpoint/{endpoint_id}");
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, operationalWebhookEndpointOut_1.OperationalWebhookEndpointOutSerializer._fromJsonObject);
}
update(endpointId, operationalWebhookEndpointUpdate) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/operational-webhook/endpoint/{endpoint_id}");
request.setPathParam("endpoint_id", endpointId);
request.setBody(operationalWebhookEndpointUpdate_1.OperationalWebhookEndpointUpdateSerializer._toJsonObject(operationalWebhookEndpointUpdate));
return request.send(this.requestCtx, operationalWebhookEndpointOut_1.OperationalWebhookEndpointOutSerializer._fromJsonObject);
}
delete(endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/operational-webhook/endpoint/{endpoint_id}");
request.setPathParam("endpoint_id", endpointId);
return request.sendNoResponseBody(this.requestCtx);
}
getHeaders(endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/operational-webhook/endpoint/{endpoint_id}/headers");
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, operationalWebhookEndpointHeadersOut_1.OperationalWebhookEndpointHeadersOutSerializer._fromJsonObject);
}
updateHeaders(endpointId, operationalWebhookEndpointHeadersIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/operational-webhook/endpoint/{endpoint_id}/headers");
request.setPathParam("endpoint_id", endpointId);
request.setBody(operationalWebhookEndpointHeadersIn_1.OperationalWebhookEndpointHeadersInSerializer._toJsonObject(operationalWebhookEndpointHeadersIn));
return request.sendNoResponseBody(this.requestCtx);
}
getSecret(endpointId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/operational-webhook/endpoint/{endpoint_id}/secret");
request.setPathParam("endpoint_id", endpointId);
return request.send(this.requestCtx, operationalWebhookEndpointSecretOut_1.OperationalWebhookEndpointSecretOutSerializer._fromJsonObject);
}
rotateSecret(endpointId, operationalWebhookEndpointSecretIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/operational-webhook/endpoint/{endpoint_id}/secret/rotate");
request.setPathParam("endpoint_id", endpointId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(operationalWebhookEndpointSecretIn_1.OperationalWebhookEndpointSecretInSerializer._toJsonObject(operationalWebhookEndpointSecretIn));
return request.sendNoResponseBody(this.requestCtx);
}
}
exports.OperationalWebhookEndpoint = OperationalWebhookEndpoint;
//# sourceMappingURL=operationalWebhookEndpoint.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"operationalWebhookEndpoint.js","sourceRoot":"","sources":["../../src/api/operationalWebhookEndpoint.ts"],"names":[],"mappings":";;;AAEA,mHAG6D;AAC7D,uGAGuD;AACvD,yGAGwD;AACxD,yFAGgD;AAChD,2FAGiD;AACjD,qGAGsD;AACtD,uGAGuD;AACvD,iGAGoD;AAEpD,wCAA8E;AAmB9E,MAAa,0BAA0B;IACrC,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CACT,OAA+C;QAE/C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,GAAG,EACd,sCAAsC,CACvC,CAAC;QAEF,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;SACtB,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,UAAU,EACf,+FAAmD,CAAC,eAAe,CACpE,CAAC;IACJ,CAAC;IAGM,MAAM,CACX,4BAA0D,EAC1D,OAAiD;QAEjD,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,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AAO,CACb,iFAA4C,CAAC,aAAa,CACxD,kCAAkC,CACnC,CACF,CAAC;QAEF,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;CACF;AA/KD,gEA+KC"}

13
node_modules/svix/dist/api/statistics.d.ts generated vendored Normal file
View File

@@ -0,0 +1,13 @@
import { type AggregateEventTypesOut } from "../models/aggregateEventTypesOut";
import { type AppUsageStatsIn } from "../models/appUsageStatsIn";
import { type AppUsageStatsOut } from "../models/appUsageStatsOut";
import { type SvixRequestContext } from "../request";
export interface StatisticsAggregateAppStatsOptions {
idempotencyKey?: string;
}
export declare class Statistics {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
aggregateAppStats(appUsageStatsIn: AppUsageStatsIn, options?: StatisticsAggregateAppStatsOptions): Promise<AppUsageStatsOut>;
aggregateEventTypes(): Promise<AggregateEventTypesOut>;
}

24
node_modules/svix/dist/api/statistics.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Statistics = void 0;
const aggregateEventTypesOut_1 = require("../models/aggregateEventTypesOut");
const appUsageStatsIn_1 = require("../models/appUsageStatsIn");
const appUsageStatsOut_1 = require("../models/appUsageStatsOut");
const request_1 = require("../request");
class Statistics {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
aggregateAppStats(appUsageStatsIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/stats/usage/app");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(appUsageStatsIn_1.AppUsageStatsInSerializer._toJsonObject(appUsageStatsIn));
return request.send(this.requestCtx, appUsageStatsOut_1.AppUsageStatsOutSerializer._fromJsonObject);
}
aggregateEventTypes() {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/stats/usage/event-types");
return request.send(this.requestCtx, aggregateEventTypesOut_1.AggregateEventTypesOutSerializer._fromJsonObject);
}
}
exports.Statistics = Statistics;
//# sourceMappingURL=statistics.js.map

1
node_modules/svix/dist/api/statistics.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"statistics.js","sourceRoot":"","sources":["../../src/api/statistics.ts"],"names":[],"mappings":";;;AAEA,6EAG0C;AAC1C,+DAGmC;AACnC,iEAGoC;AACpC,wCAA8E;AAM9E,MAAa,UAAU;IACrB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IA0B/D,iBAAiB,CACtB,eAAgC,EAChC,OAA4C;QAE5C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;QAE5E,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CAAC,2CAAyB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC;QAE1E,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,6CAA0B,CAAC,eAAe,CAAC,CAAC;IACnF,CAAC;IA0BM,mBAAmB;QACxB,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,iCAAiC,CAAC,CAAC;QAEnF,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,UAAU,EACf,yDAAgC,CAAC,eAAe,CACjD,CAAC;IACJ,CAAC;CACF;AAvED,gCAuEC"}

19
node_modules/svix/dist/api/streaming.d.ts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
import { type EndpointHeadersOut } from "../models/endpointHeadersOut";
import { type HttpSinkHeadersPatchIn } from "../models/httpSinkHeadersPatchIn";
import { type SinkTransformationOut } from "../models/sinkTransformationOut";
import { StreamingEventType } from "./streamingEventType";
import { StreamingEvents } from "./streamingEvents";
import { StreamingSink } from "./streamingSink";
import { StreamingStream } from "./streamingStream";
import { type SvixRequestContext } from "../request";
export declare class Streaming {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
get event_type(): StreamingEventType;
get events(): StreamingEvents;
get sink(): StreamingSink;
get stream(): StreamingStream;
sinkHeadersGet(streamId: string, sinkId: string): Promise<EndpointHeadersOut>;
sinkHeadersPatch(streamId: string, sinkId: string, httpSinkHeadersPatchIn: HttpSinkHeadersPatchIn): Promise<EndpointHeadersOut>;
sinkTransformationGet(streamId: string, sinkId: string): Promise<SinkTransformationOut>;
}

49
node_modules/svix/dist/api/streaming.js generated vendored Normal file
View File

@@ -0,0 +1,49 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Streaming = void 0;
const endpointHeadersOut_1 = require("../models/endpointHeadersOut");
const httpSinkHeadersPatchIn_1 = require("../models/httpSinkHeadersPatchIn");
const sinkTransformationOut_1 = require("../models/sinkTransformationOut");
const streamingEventType_1 = require("./streamingEventType");
const streamingEvents_1 = require("./streamingEvents");
const streamingSink_1 = require("./streamingSink");
const streamingStream_1 = require("./streamingStream");
const request_1 = require("../request");
class Streaming {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
get event_type() {
return new streamingEventType_1.StreamingEventType(this.requestCtx);
}
get events() {
return new streamingEvents_1.StreamingEvents(this.requestCtx);
}
get sink() {
return new streamingSink_1.StreamingSink(this.requestCtx);
}
get stream() {
return new streamingStream_1.StreamingStream(this.requestCtx);
}
sinkHeadersGet(streamId, sinkId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/{stream_id}/sink/{sink_id}/headers");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
return request.send(this.requestCtx, endpointHeadersOut_1.EndpointHeadersOutSerializer._fromJsonObject);
}
sinkHeadersPatch(streamId, sinkId, httpSinkHeadersPatchIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/stream/{stream_id}/sink/{sink_id}/headers");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
request.setBody(httpSinkHeadersPatchIn_1.HttpSinkHeadersPatchInSerializer._toJsonObject(httpSinkHeadersPatchIn));
return request.send(this.requestCtx, endpointHeadersOut_1.EndpointHeadersOutSerializer._fromJsonObject);
}
sinkTransformationGet(streamId, sinkId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/{stream_id}/sink/{sink_id}/transformation");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
return request.send(this.requestCtx, sinkTransformationOut_1.SinkTransformationOutSerializer._fromJsonObject);
}
}
exports.Streaming = Streaming;
//# sourceMappingURL=streaming.js.map

1
node_modules/svix/dist/api/streaming.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/api/streaming.ts"],"names":[],"mappings":";;;AAEA,qEAGsC;AACtC,6EAG0C;AAC1C,2EAGyC;AACzC,6DAA0D;AAC1D,uDAAoD;AACpD,mDAAgD;AAChD,uDAAoD;AACpD,wCAA8E;AAE9E,MAAa,SAAS;IACpB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAEtE,IAAW,UAAU;QACnB,OAAO,IAAI,uCAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,IAAW,MAAM;QACf,OAAO,IAAI,iCAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;IAED,IAAW,IAAI;QACb,OAAO,IAAI,6BAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,IAAW,MAAM;QACf,OAAO,IAAI,iCAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9C,CAAC;IAGM,cAAc,CAAC,QAAgB,EAAE,MAAc;QACpD,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,GAAG,EACd,mDAAmD,CACpD,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAExC,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,iDAA4B,CAAC,eAAe,CAAC,CAAC;IACrF,CAAC;IAGM,gBAAgB,CACrB,QAAgB,EAChB,MAAc,EACd,sBAA8C;QAE9C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,KAAK,EAChB,mDAAmD,CACpD,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,OAAO,CACb,yDAAgC,CAAC,aAAa,CAAC,sBAAsB,CAAC,CACvE,CAAC;QAEF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,iDAA4B,CAAC,eAAe,CAAC,CAAC;IACrF,CAAC;IAGM,qBAAqB,CAC1B,QAAgB,EAChB,MAAc;QAEd,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,GAAG,EACd,0DAA0D,CAC3D,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAExC,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,uDAA+B,CAAC,eAAe,CAAC,CAAC;IACxF,CAAC;CACF;AAnED,8BAmEC"}

28
node_modules/svix/dist/api/streamingEventType.d.ts generated vendored Normal file
View File

@@ -0,0 +1,28 @@
import { type ListResponseStreamEventTypeOut } from "../models/listResponseStreamEventTypeOut";
import type { Ordering } from "../models/ordering";
import { type StreamEventTypeIn } from "../models/streamEventTypeIn";
import { type StreamEventTypeOut } from "../models/streamEventTypeOut";
import { type StreamEventTypePatch } from "../models/streamEventTypePatch";
import { type SvixRequestContext } from "../request";
export interface StreamingEventTypeListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
includeArchived?: boolean;
}
export interface StreamingEventTypeCreateOptions {
idempotencyKey?: string;
}
export interface StreamingEventTypeDeleteOptions {
expunge?: boolean;
}
export declare class StreamingEventType {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: StreamingEventTypeListOptions): Promise<ListResponseStreamEventTypeOut>;
create(streamEventTypeIn: StreamEventTypeIn, options?: StreamingEventTypeCreateOptions): Promise<StreamEventTypeOut>;
get(name: string): Promise<StreamEventTypeOut>;
update(name: string, streamEventTypeIn: StreamEventTypeIn): Promise<StreamEventTypeOut>;
delete(name: string, options?: StreamingEventTypeDeleteOptions): Promise<void>;
patch(name: string, streamEventTypePatch: StreamEventTypePatch): Promise<StreamEventTypeOut>;
}

56
node_modules/svix/dist/api/streamingEventType.js generated vendored Normal file
View File

@@ -0,0 +1,56 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamingEventType = void 0;
const listResponseStreamEventTypeOut_1 = require("../models/listResponseStreamEventTypeOut");
const streamEventTypeIn_1 = require("../models/streamEventTypeIn");
const streamEventTypeOut_1 = require("../models/streamEventTypeOut");
const streamEventTypePatch_1 = require("../models/streamEventTypePatch");
const request_1 = require("../request");
class StreamingEventType {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/event-type");
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
include_archived: options === null || options === void 0 ? void 0 : options.includeArchived,
});
return request.send(this.requestCtx, listResponseStreamEventTypeOut_1.ListResponseStreamEventTypeOutSerializer._fromJsonObject);
}
create(streamEventTypeIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/stream/event-type");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(streamEventTypeIn_1.StreamEventTypeInSerializer._toJsonObject(streamEventTypeIn));
return request.send(this.requestCtx, streamEventTypeOut_1.StreamEventTypeOutSerializer._fromJsonObject);
}
get(name) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/event-type/{name}");
request.setPathParam("name", name);
return request.send(this.requestCtx, streamEventTypeOut_1.StreamEventTypeOutSerializer._fromJsonObject);
}
update(name, streamEventTypeIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/stream/event-type/{name}");
request.setPathParam("name", name);
request.setBody(streamEventTypeIn_1.StreamEventTypeInSerializer._toJsonObject(streamEventTypeIn));
return request.send(this.requestCtx, streamEventTypeOut_1.StreamEventTypeOutSerializer._fromJsonObject);
}
delete(name, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/stream/event-type/{name}");
request.setPathParam("name", name);
request.setQueryParams({
expunge: options === null || options === void 0 ? void 0 : options.expunge,
});
return request.sendNoResponseBody(this.requestCtx);
}
patch(name, streamEventTypePatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/stream/event-type/{name}");
request.setPathParam("name", name);
request.setBody(streamEventTypePatch_1.StreamEventTypePatchSerializer._toJsonObject(streamEventTypePatch));
return request.send(this.requestCtx, streamEventTypeOut_1.StreamEventTypeOutSerializer._fromJsonObject);
}
}
exports.StreamingEventType = StreamingEventType;
//# sourceMappingURL=streamingEventType.js.map

1
node_modules/svix/dist/api/streamingEventType.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"streamingEventType.js","sourceRoot":"","sources":["../../src/api/streamingEventType.ts"],"names":[],"mappings":";;;AAEA,6FAGkD;AAElD,mEAGqC;AACrC,qEAGsC;AACtC,yEAGwC;AACx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,gDAoFC"}

18
node_modules/svix/dist/api/streamingEvents.d.ts generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import { type CreateStreamEventsIn } from "../models/createStreamEventsIn";
import { type CreateStreamEventsOut } from "../models/createStreamEventsOut";
import { type EventStreamOut } from "../models/eventStreamOut";
import { type SvixRequestContext } from "../request";
export interface StreamingEventsCreateOptions {
idempotencyKey?: string;
}
export interface StreamingEventsGetOptions {
limit?: number;
iterator?: string | null;
after?: Date | null;
}
export declare class StreamingEvents {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
create(streamId: string, createStreamEventsIn: CreateStreamEventsIn, options?: StreamingEventsCreateOptions): Promise<CreateStreamEventsOut>;
get(streamId: string, sinkId: string, options?: StreamingEventsGetOptions): Promise<EventStreamOut>;
}

32
node_modules/svix/dist/api/streamingEvents.js generated vendored Normal file
View File

@@ -0,0 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamingEvents = void 0;
const createStreamEventsIn_1 = require("../models/createStreamEventsIn");
const createStreamEventsOut_1 = require("../models/createStreamEventsOut");
const eventStreamOut_1 = require("../models/eventStreamOut");
const request_1 = require("../request");
class StreamingEvents {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
create(streamId, createStreamEventsIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/stream/{stream_id}/events");
request.setPathParam("stream_id", streamId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(createStreamEventsIn_1.CreateStreamEventsInSerializer._toJsonObject(createStreamEventsIn));
return request.send(this.requestCtx, createStreamEventsOut_1.CreateStreamEventsOutSerializer._fromJsonObject);
}
get(streamId, sinkId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/{stream_id}/sink/{sink_id}/events");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
after: options === null || options === void 0 ? void 0 : options.after,
});
return request.send(this.requestCtx, eventStreamOut_1.EventStreamOutSerializer._fromJsonObject);
}
}
exports.StreamingEvents = StreamingEvents;
//# sourceMappingURL=streamingEvents.js.map

1
node_modules/svix/dist/api/streamingEvents.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"streamingEvents.js","sourceRoot":"","sources":["../../src/api/streamingEvents.ts"],"names":[],"mappings":";;;AAEA,yEAGwC;AACxC,2EAGyC;AACzC,6DAAyF;AACzF,wCAA8E;AAc9E,MAAa,eAAe;IAC1B,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,MAAM,CACX,QAAgB,EAChB,oBAA0C,EAC1C,OAAsC;QAEtC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,IAAI,EAAE,mCAAmC,CAAC,CAAC;QAEtF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CAAC,qDAA8B,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC;QAEpF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,uDAA+B,CAAC,eAAe,CAAC,CAAC;IACxF,CAAC;IAOM,GAAG,CACR,QAAgB,EAChB,MAAc,EACd,OAAmC;QAEnC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,GAAG,EACd,kDAAkD,CACnD,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;SACtB,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,yCAAwB,CAAC,eAAe,CAAC,CAAC;IACjF,CAAC;CACF;AA3CD,0CA2CC"}

34
node_modules/svix/dist/api/streamingSink.d.ts generated vendored Normal file
View File

@@ -0,0 +1,34 @@
import { type EmptyResponse } from "../models/emptyResponse";
import { type EndpointSecretRotateIn } from "../models/endpointSecretRotateIn";
import { type ListResponseStreamSinkOut } from "../models/listResponseStreamSinkOut";
import type { Ordering } from "../models/ordering";
import { type SinkSecretOut } from "../models/sinkSecretOut";
import { type SinkTransformIn } from "../models/sinkTransformIn";
import { type StreamSinkIn } from "../models/streamSinkIn";
import { type StreamSinkOut } from "../models/streamSinkOut";
import { type StreamSinkPatch } from "../models/streamSinkPatch";
import { type SvixRequestContext } from "../request";
export interface StreamingSinkListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface StreamingSinkCreateOptions {
idempotencyKey?: string;
}
export interface StreamingSinkRotateSecretOptions {
idempotencyKey?: string;
}
export declare class StreamingSink {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(streamId: string, options?: StreamingSinkListOptions): Promise<ListResponseStreamSinkOut>;
create(streamId: string, streamSinkIn: StreamSinkIn, options?: StreamingSinkCreateOptions): Promise<StreamSinkOut>;
get(streamId: string, sinkId: string): Promise<StreamSinkOut>;
update(streamId: string, sinkId: string, streamSinkIn: StreamSinkIn): Promise<StreamSinkOut>;
delete(streamId: string, sinkId: string): Promise<void>;
patch(streamId: string, sinkId: string, streamSinkPatch: StreamSinkPatch): Promise<StreamSinkOut>;
getSecret(streamId: string, sinkId: string): Promise<SinkSecretOut>;
rotateSecret(streamId: string, sinkId: string, endpointSecretRotateIn: EndpointSecretRotateIn, options?: StreamingSinkRotateSecretOptions): Promise<EmptyResponse>;
transformationPartialUpdate(streamId: string, sinkId: string, sinkTransformIn: SinkTransformIn): Promise<EmptyResponse>;
}

83
node_modules/svix/dist/api/streamingSink.js generated vendored Normal file
View File

@@ -0,0 +1,83 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamingSink = void 0;
const emptyResponse_1 = require("../models/emptyResponse");
const endpointSecretRotateIn_1 = require("../models/endpointSecretRotateIn");
const listResponseStreamSinkOut_1 = require("../models/listResponseStreamSinkOut");
const sinkSecretOut_1 = require("../models/sinkSecretOut");
const sinkTransformIn_1 = require("../models/sinkTransformIn");
const streamSinkIn_1 = require("../models/streamSinkIn");
const streamSinkOut_1 = require("../models/streamSinkOut");
const streamSinkPatch_1 = require("../models/streamSinkPatch");
const request_1 = require("../request");
class StreamingSink {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(streamId, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/{stream_id}/sink");
request.setPathParam("stream_id", streamId);
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseStreamSinkOut_1.ListResponseStreamSinkOutSerializer._fromJsonObject);
}
create(streamId, streamSinkIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/stream/{stream_id}/sink");
request.setPathParam("stream_id", streamId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(streamSinkIn_1.StreamSinkInSerializer._toJsonObject(streamSinkIn));
return request.send(this.requestCtx, streamSinkOut_1.StreamSinkOutSerializer._fromJsonObject);
}
get(streamId, sinkId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/{stream_id}/sink/{sink_id}");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
return request.send(this.requestCtx, streamSinkOut_1.StreamSinkOutSerializer._fromJsonObject);
}
update(streamId, sinkId, streamSinkIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/stream/{stream_id}/sink/{sink_id}");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
request.setBody(streamSinkIn_1.StreamSinkInSerializer._toJsonObject(streamSinkIn));
return request.send(this.requestCtx, streamSinkOut_1.StreamSinkOutSerializer._fromJsonObject);
}
delete(streamId, sinkId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/stream/{stream_id}/sink/{sink_id}");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
return request.sendNoResponseBody(this.requestCtx);
}
patch(streamId, sinkId, streamSinkPatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/stream/{stream_id}/sink/{sink_id}");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
request.setBody(streamSinkPatch_1.StreamSinkPatchSerializer._toJsonObject(streamSinkPatch));
return request.send(this.requestCtx, streamSinkOut_1.StreamSinkOutSerializer._fromJsonObject);
}
getSecret(streamId, sinkId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/{stream_id}/sink/{sink_id}/secret");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
return request.send(this.requestCtx, sinkSecretOut_1.SinkSecretOutSerializer._fromJsonObject);
}
rotateSecret(streamId, sinkId, endpointSecretRotateIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/stream/{stream_id}/sink/{sink_id}/secret/rotate");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(endpointSecretRotateIn_1.EndpointSecretRotateInSerializer._toJsonObject(endpointSecretRotateIn));
return request.send(this.requestCtx, emptyResponse_1.EmptyResponseSerializer._fromJsonObject);
}
transformationPartialUpdate(streamId, sinkId, sinkTransformIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/stream/{stream_id}/sink/{sink_id}/transformation");
request.setPathParam("stream_id", streamId);
request.setPathParam("sink_id", sinkId);
request.setBody(sinkTransformIn_1.SinkTransformInSerializer._toJsonObject(sinkTransformIn));
return request.send(this.requestCtx, emptyResponse_1.EmptyResponseSerializer._fromJsonObject);
}
}
exports.StreamingSink = StreamingSink;
//# sourceMappingURL=streamingSink.js.map

1
node_modules/svix/dist/api/streamingSink.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"streamingSink.js","sourceRoot":"","sources":["../../src/api/streamingSink.ts"],"names":[],"mappings":";;;AAEA,2DAAsF;AACtF,6EAG0C;AAC1C,mFAG6C;AAE7C,2DAAsF;AACtF,+DAGmC;AACnC,yDAAmF;AACnF,2DAAsF;AACtF,+DAGmC;AACnC,wCAA8E;AAmB9E,MAAa,aAAa;IACxB,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CACT,QAAgB,EAChB,OAAkC;QAElC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,iCAAiC,CAAC,CAAC;QAEnF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;SACtB,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CACjB,IAAI,CAAC,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CAAC,CAAC;IAChF,CAAC;IAGM,YAAY,CACjB,QAAgB,EAChB,MAAc,EACd,sBAA8C,EAC9C,OAA0C;QAE1C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,IAAI,EACf,yDAAyD,CAC1D,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,cAAc,CAAC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACnE,OAAO,CAAC,OAAO,CACb,yDAAgC,CAAC,aAAa,CAAC,sBAAsB,CAAC,CACvE,CAAC;QAEF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,uCAAuB,CAAC,eAAe,CAAC,CAAC;IAChF,CAAC;IAGM,2BAA2B,CAChC,QAAgB,EAChB,MAAc,EACd,eAAgC;QAEhC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAC7B,oBAAU,CAAC,KAAK,EAChB,0DAA0D,CAC3D,CAAC;QAEF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,OAAO,CAAC,2CAAyB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC;QAE1E,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,uCAAuB,CAAC,eAAe,CAAC,CAAC;IAChF,CAAC;CACF;AA9JD,sCA8JC"}

24
node_modules/svix/dist/api/streamingStream.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
import { type ListResponseStreamOut } from "../models/listResponseStreamOut";
import type { Ordering } from "../models/ordering";
import { type StreamIn } from "../models/streamIn";
import { type StreamOut } from "../models/streamOut";
import { type StreamPatch } from "../models/streamPatch";
import { type SvixRequestContext } from "../request";
export interface StreamingStreamListOptions {
limit?: number;
iterator?: string | null;
order?: Ordering;
}
export interface StreamingStreamCreateOptions {
idempotencyKey?: string;
}
export declare class StreamingStream {
private readonly requestCtx;
constructor(requestCtx: SvixRequestContext);
list(options?: StreamingStreamListOptions): Promise<ListResponseStreamOut>;
create(streamIn: StreamIn, options?: StreamingStreamCreateOptions): Promise<StreamOut>;
get(streamId: string): Promise<StreamOut>;
update(streamId: string, streamIn: StreamIn): Promise<StreamOut>;
delete(streamId: string): Promise<void>;
patch(streamId: string, streamPatch: StreamPatch): Promise<StreamOut>;
}

52
node_modules/svix/dist/api/streamingStream.js generated vendored Normal file
View File

@@ -0,0 +1,52 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamingStream = void 0;
const listResponseStreamOut_1 = require("../models/listResponseStreamOut");
const streamIn_1 = require("../models/streamIn");
const streamOut_1 = require("../models/streamOut");
const streamPatch_1 = require("../models/streamPatch");
const request_1 = require("../request");
class StreamingStream {
constructor(requestCtx) {
this.requestCtx = requestCtx;
}
list(options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream");
request.setQueryParams({
limit: options === null || options === void 0 ? void 0 : options.limit,
iterator: options === null || options === void 0 ? void 0 : options.iterator,
order: options === null || options === void 0 ? void 0 : options.order,
});
return request.send(this.requestCtx, listResponseStreamOut_1.ListResponseStreamOutSerializer._fromJsonObject);
}
create(streamIn, options) {
const request = new request_1.SvixRequest(request_1.HttpMethod.POST, "/api/v1/stream");
request.setHeaderParam("idempotency-key", options === null || options === void 0 ? void 0 : options.idempotencyKey);
request.setBody(streamIn_1.StreamInSerializer._toJsonObject(streamIn));
return request.send(this.requestCtx, streamOut_1.StreamOutSerializer._fromJsonObject);
}
get(streamId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.GET, "/api/v1/stream/{stream_id}");
request.setPathParam("stream_id", streamId);
return request.send(this.requestCtx, streamOut_1.StreamOutSerializer._fromJsonObject);
}
update(streamId, streamIn) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PUT, "/api/v1/stream/{stream_id}");
request.setPathParam("stream_id", streamId);
request.setBody(streamIn_1.StreamInSerializer._toJsonObject(streamIn));
return request.send(this.requestCtx, streamOut_1.StreamOutSerializer._fromJsonObject);
}
delete(streamId) {
const request = new request_1.SvixRequest(request_1.HttpMethod.DELETE, "/api/v1/stream/{stream_id}");
request.setPathParam("stream_id", streamId);
return request.sendNoResponseBody(this.requestCtx);
}
patch(streamId, streamPatch) {
const request = new request_1.SvixRequest(request_1.HttpMethod.PATCH, "/api/v1/stream/{stream_id}");
request.setPathParam("stream_id", streamId);
request.setBody(streamPatch_1.StreamPatchSerializer._toJsonObject(streamPatch));
return request.send(this.requestCtx, streamOut_1.StreamOutSerializer._fromJsonObject);
}
}
exports.StreamingStream = StreamingStream;
//# sourceMappingURL=streamingStream.js.map

1
node_modules/svix/dist/api/streamingStream.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"streamingStream.js","sourceRoot":"","sources":["../../src/api/streamingStream.ts"],"names":[],"mappings":";;;AAEA,2EAGyC;AAEzC,iDAAuE;AACvE,mDAA0E;AAC1E,uDAAgF;AAChF,wCAA8E;AAe9E,MAAa,eAAe;IAC1B,YAAoC,UAA8B;QAA9B,eAAU,GAAV,UAAU,CAAoB;IAAG,CAAC;IAG/D,IAAI,CAAC,OAAoC;QAC9C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QAElE,OAAO,CAAC,cAAc,CAAC;YACrB,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;YACrB,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;YAC3B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK;SACtB,CAAC,CAAC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GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC;QAEjF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAE5C,OAAO,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAGM,KAAK,CAAC,QAAgB,EAAE,WAAwB;QACrD,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,oBAAU,CAAC,KAAK,EAAE,4BAA4B,CAAC,CAAC;QAEhF,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,OAAO,CAAC,OAAO,CAAC,mCAAqB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;QAElE,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,+BAAmB,CAAC,eAAe,CAAC,CAAC;IAC5E,CAAC;CACF;AAlED,0CAkEC"}

59
node_modules/svix/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,59 @@
import { Application } from "./api/application";
import { Authentication } from "./api/authentication";
import { BackgroundTask } from "./api/backgroundTask";
import { Connector } from "./api/connector";
import { Endpoint } from "./api/endpoint";
import { Environment } from "./api/environment";
import { EventType } from "./api/eventType";
import { Health } from "./api/health";
import { Ingest } from "./api/ingest";
import { Integration } from "./api/integration";
import { Message } from "./api/message";
import { MessageAttempt } from "./api/messageAttempt";
import { OperationalWebhook } from "./api/operationalWebhook";
import { Statistics } from "./api/statistics";
import { Streaming } from "./api/streaming";
import { OperationalWebhookEndpoint } from "./api/operationalWebhookEndpoint";
export { PostOptions, ApiException } from "./util";
export { HTTPValidationError, HttpErrorOut, ValidationError } from "./HttpErrors";
export * from "./webhook";
export * from "./models/index";
import type { XOR } from "./util";
export { ApplicationListOptions } from "./api/application";
export { BackgroundTaskListOptions } from "./api/backgroundTask";
export { EndpointListOptions, EndpointGetStatsOptions } from "./api/endpoint";
export { EventTypeListOptions } from "./api/eventType";
export { IntegrationListOptions } from "./api/integration";
export { MessageListOptions, messageInRaw } from "./api/message";
export { MessageAttemptListByEndpointOptions } from "./api/messageAttempt";
export { OperationalWebhookEndpointListOptions } from "./api/operationalWebhookEndpoint";
export type SvixOptions = {
debug?: boolean;
serverUrl?: string;
requestTimeout?: number;
fetch?: typeof fetch;
} & XOR<{
retryScheduleInMs?: number[];
}, {
numRetries?: number;
}>;
export declare class Svix {
private readonly requestCtx;
constructor(token: string, options?: SvixOptions);
get application(): Application;
get authentication(): Authentication;
get backgroundTask(): BackgroundTask;
get connector(): Connector;
get endpoint(): Endpoint;
get environment(): Environment;
get eventType(): EventType;
get health(): Health;
get ingest(): Ingest;
get integration(): Integration;
get message(): Message;
get messageAttempt(): MessageAttempt;
get operationalWebhook(): OperationalWebhook;
get statistics(): Statistics;
get streaming(): Streaming;
get operationalWebhookEndpoint(): OperationalWebhookEndpoint;
}

133
node_modules/svix/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,133 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Svix = exports.messageInRaw = exports.ValidationError = exports.HttpErrorOut = exports.HTTPValidationError = exports.ApiException = void 0;
const application_1 = require("./api/application");
const authentication_1 = require("./api/authentication");
const backgroundTask_1 = require("./api/backgroundTask");
const connector_1 = require("./api/connector");
const endpoint_1 = require("./api/endpoint");
const environment_1 = require("./api/environment");
const eventType_1 = require("./api/eventType");
const health_1 = require("./api/health");
const ingest_1 = require("./api/ingest");
const integration_1 = require("./api/integration");
const message_1 = require("./api/message");
const messageAttempt_1 = require("./api/messageAttempt");
const operationalWebhook_1 = require("./api/operationalWebhook");
const statistics_1 = require("./api/statistics");
const streaming_1 = require("./api/streaming");
const operationalWebhookEndpoint_1 = require("./api/operationalWebhookEndpoint");
var util_1 = require("./util");
Object.defineProperty(exports, "ApiException", { enumerable: true, get: function () { return util_1.ApiException; } });
var HttpErrors_1 = require("./HttpErrors");
Object.defineProperty(exports, "HTTPValidationError", { enumerable: true, get: function () { return HttpErrors_1.HTTPValidationError; } });
Object.defineProperty(exports, "HttpErrorOut", { enumerable: true, get: function () { return HttpErrors_1.HttpErrorOut; } });
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return HttpErrors_1.ValidationError; } });
__exportStar(require("./webhook"), exports);
__exportStar(require("./models/index"), exports);
var message_2 = require("./api/message");
Object.defineProperty(exports, "messageInRaw", { enumerable: true, get: function () { return message_2.messageInRaw; } });
const REGIONS = [
{ region: "us", url: "https://api.us.svix.com" },
{ region: "eu", url: "https://api.eu.svix.com" },
{ region: "in", url: "https://api.in.svix.com" },
{ region: "ca", url: "https://api.ca.svix.com" },
{ region: "au", url: "https://api.au.svix.com" },
];
class Svix {
constructor(token, options = {}) {
var _a, _b, _c;
const regionalUrl = (_a = REGIONS.find((x) => x.region === token.split(".")[1])) === null || _a === void 0 ? void 0 : _a.url;
const baseUrl = (_c = (_b = options.serverUrl) !== null && _b !== void 0 ? _b : regionalUrl) !== null && _c !== void 0 ? _c : "https://api.svix.com";
if (options.retryScheduleInMs) {
this.requestCtx = {
baseUrl,
token,
timeout: options.requestTimeout,
retryScheduleInMs: options.retryScheduleInMs,
fetch: options.fetch,
};
return;
}
if (options.numRetries) {
this.requestCtx = {
baseUrl,
token,
timeout: options.requestTimeout,
numRetries: options.numRetries,
fetch: options.fetch,
};
return;
}
this.requestCtx = {
baseUrl,
token,
timeout: options.requestTimeout,
fetch: options.fetch,
};
}
get application() {
return new application_1.Application(this.requestCtx);
}
get authentication() {
return new authentication_1.Authentication(this.requestCtx);
}
get backgroundTask() {
return new backgroundTask_1.BackgroundTask(this.requestCtx);
}
get connector() {
return new connector_1.Connector(this.requestCtx);
}
get endpoint() {
return new endpoint_1.Endpoint(this.requestCtx);
}
get environment() {
return new environment_1.Environment(this.requestCtx);
}
get eventType() {
return new eventType_1.EventType(this.requestCtx);
}
get health() {
return new health_1.Health(this.requestCtx);
}
get ingest() {
return new ingest_1.Ingest(this.requestCtx);
}
get integration() {
return new integration_1.Integration(this.requestCtx);
}
get message() {
return new message_1.Message(this.requestCtx);
}
get messageAttempt() {
return new messageAttempt_1.MessageAttempt(this.requestCtx);
}
get operationalWebhook() {
return new operationalWebhook_1.OperationalWebhook(this.requestCtx);
}
get statistics() {
return new statistics_1.Statistics(this.requestCtx);
}
get streaming() {
return new streaming_1.Streaming(this.requestCtx);
}
get operationalWebhookEndpoint() {
return new operationalWebhookEndpoint_1.OperationalWebhookEndpoint(this.requestCtx);
}
}
exports.Svix = Svix;
//# sourceMappingURL=index.js.map

1
node_modules/svix/dist/index.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,mDAAgD;AAChD,yDAAsD;AACtD,yDAAsD;AACtD,+CAA4C;AAC5C,6CAA0C;AAC1C,mDAAgD;AAChD,+CAA4C;AAC5C,yCAAsC;AACtC,yCAAsC;AACtC,mDAAgD;AAChD,2CAAwC;AACxC,yDAAsD;AACtD,iEAA8D;AAC9D,iDAA8C;AAC9C,+CAA4C;AAC5C,iFAA8E;AAG9E,+BAAmD;AAA7B,oGAAA,YAAY,OAAA;AAClC,2CAAkF;AAAzE,iHAAA,mBAAmB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAAE,6GAAA,eAAe,OAAA;AAC3D,4CA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AW,kBAAkB;QAC3B,OAAO,IAAI,uCAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAED,IAAW,UAAU;QACnB,OAAO,IAAI,uBAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzC,CAAC;IAED,IAAW,SAAS;QAClB,OAAO,IAAI,qBAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;IAED,IAAW,0BAA0B;QACnC,OAAO,IAAI,uDAA0B,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACzD,CAAC;CACF;AAlGD,oBAkGC"}

7
node_modules/svix/dist/models/adobeSignConfig.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
export interface AdobeSignConfig {
clientId: string;
}
export declare const AdobeSignConfigSerializer: {
_fromJsonObject(object: any): AdobeSignConfig;
_toJsonObject(self: AdobeSignConfig): any;
};

16
node_modules/svix/dist/models/adobeSignConfig.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdobeSignConfigSerializer = void 0;
exports.AdobeSignConfigSerializer = {
_fromJsonObject(object) {
return {
clientId: object["clientId"],
};
},
_toJsonObject(self) {
return {
clientId: self.clientId,
};
},
};
//# sourceMappingURL=adobeSignConfig.js.map

1
node_modules/svix/dist/models/adobeSignConfig.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"adobeSignConfig.js","sourceRoot":"","sources":["../../src/models/adobeSignConfig.ts"],"names":[],"mappings":";;;AAMa,QAAA,yBAAyB,GAAG;IACvC,eAAe,CAAC,MAAW;QACzB,OAAO;YACL,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC;SAC7B,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,IAAqB;QACjC,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC;IACJ,CAAC;CACF,CAAC"}

View File

@@ -0,0 +1,6 @@
export interface AdobeSignConfigOut {
}
export declare const AdobeSignConfigOutSerializer: {
_fromJsonObject(_object: any): AdobeSignConfigOut;
_toJsonObject(_self: AdobeSignConfigOut): any;
};

12
node_modules/svix/dist/models/adobeSignConfigOut.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AdobeSignConfigOutSerializer = void 0;
exports.AdobeSignConfigOutSerializer = {
_fromJsonObject(_object) {
return {};
},
_toJsonObject(_self) {
return {};
},
};
//# sourceMappingURL=adobeSignConfigOut.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"adobeSignConfigOut.js","sourceRoot":"","sources":["../../src/models/adobeSignConfigOut.ts"],"names":[],"mappings":";;;AAMa,QAAA,4BAA4B,GAAG;IAC1C,eAAe,CAAC,OAAY;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,aAAa,CAAC,KAAyB;QACrC,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC"}

View File

@@ -0,0 +1,12 @@
import { type BackgroundTaskStatus } from "./backgroundTaskStatus";
import { type BackgroundTaskType } from "./backgroundTaskType";
export interface AggregateEventTypesOut {
id: string;
status: BackgroundTaskStatus;
task: BackgroundTaskType;
updatedAt: Date;
}
export declare const AggregateEventTypesOutSerializer: {
_fromJsonObject(object: any): AggregateEventTypesOut;
_toJsonObject(self: AggregateEventTypesOut): any;
};

View File

@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AggregateEventTypesOutSerializer = void 0;
const backgroundTaskStatus_1 = require("./backgroundTaskStatus");
const backgroundTaskType_1 = require("./backgroundTaskType");
exports.AggregateEventTypesOutSerializer = {
_fromJsonObject(object) {
return {
id: object["id"],
status: backgroundTaskStatus_1.BackgroundTaskStatusSerializer._fromJsonObject(object["status"]),
task: backgroundTaskType_1.BackgroundTaskTypeSerializer._fromJsonObject(object["task"]),
updatedAt: new Date(object["updatedAt"]),
};
},
_toJsonObject(self) {
return {
id: self.id,
status: backgroundTaskStatus_1.BackgroundTaskStatusSerializer._toJsonObject(self.status),
task: backgroundTaskType_1.BackgroundTaskTypeSerializer._toJsonObject(self.task),
updatedAt: self.updatedAt,
};
},
};
//# sourceMappingURL=aggregateEventTypesOut.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"aggregateEventTypesOut.js","sourceRoot":"","sources":["../../src/models/aggregateEventTypesOut.ts"],"names":[],"mappings":";;;AACA,iEAGgC;AAChC,6DAG8B;AAUjB,QAAA,gCAAgC,GAAG;IAC9C,eAAe,CAAC,MAAW;QACzB,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC;YAChB,MAAM,EAAE,qDAA8B,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YACxE,IAAI,EAAE,iDAA4B,CAAC,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAClE,SAAS,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;SACzC,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,IAA4B;QACxC,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,MAAM,EAAE,qDAA8B,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;YACjE,IAAI,EAAE,iDAA4B,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;YAC3D,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;CACF,CAAC"}

7
node_modules/svix/dist/models/airwallexConfig.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
export interface AirwallexConfig {
secret: string;
}
export declare const AirwallexConfigSerializer: {
_fromJsonObject(object: any): AirwallexConfig;
_toJsonObject(self: AirwallexConfig): any;
};

16
node_modules/svix/dist/models/airwallexConfig.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AirwallexConfigSerializer = void 0;
exports.AirwallexConfigSerializer = {
_fromJsonObject(object) {
return {
secret: object["secret"],
};
},
_toJsonObject(self) {
return {
secret: self.secret,
};
},
};
//# sourceMappingURL=airwallexConfig.js.map

1
node_modules/svix/dist/models/airwallexConfig.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"airwallexConfig.js","sourceRoot":"","sources":["../../src/models/airwallexConfig.ts"],"names":[],"mappings":";;;AAMa,QAAA,yBAAyB,GAAG;IACvC,eAAe,CAAC,MAAW;QACzB,OAAO;YACL,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;SACzB,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,IAAqB;QACjC,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;CACF,CAAC"}

View File

@@ -0,0 +1,6 @@
export interface AirwallexConfigOut {
}
export declare const AirwallexConfigOutSerializer: {
_fromJsonObject(_object: any): AirwallexConfigOut;
_toJsonObject(_self: AirwallexConfigOut): any;
};

12
node_modules/svix/dist/models/airwallexConfigOut.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AirwallexConfigOutSerializer = void 0;
exports.AirwallexConfigOutSerializer = {
_fromJsonObject(_object) {
return {};
},
_toJsonObject(_self) {
return {};
},
};
//# sourceMappingURL=airwallexConfigOut.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"airwallexConfigOut.js","sourceRoot":"","sources":["../../src/models/airwallexConfigOut.ts"],"names":[],"mappings":";;;AAMa,QAAA,4BAA4B,GAAG;IAC1C,eAAe,CAAC,OAAY;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,aAAa,CAAC,KAAyB;QACrC,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC"}

11
node_modules/svix/dist/models/amazonS3PatchConfig.d.ts generated vendored Normal file
View File

@@ -0,0 +1,11 @@
export interface AmazonS3PatchConfig {
accessKeyId?: string;
bucket?: string;
endpointUrl?: string;
region?: string;
secretAccessKey?: string;
}
export declare const AmazonS3PatchConfigSerializer: {
_fromJsonObject(object: any): AmazonS3PatchConfig;
_toJsonObject(self: AmazonS3PatchConfig): any;
};

24
node_modules/svix/dist/models/amazonS3PatchConfig.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AmazonS3PatchConfigSerializer = void 0;
exports.AmazonS3PatchConfigSerializer = {
_fromJsonObject(object) {
return {
accessKeyId: object["accessKeyId"],
bucket: object["bucket"],
endpointUrl: object["endpointUrl"],
region: object["region"],
secretAccessKey: object["secretAccessKey"],
};
},
_toJsonObject(self) {
return {
accessKeyId: self.accessKeyId,
bucket: self.bucket,
endpointUrl: self.endpointUrl,
region: self.region,
secretAccessKey: self.secretAccessKey,
};
},
};
//# sourceMappingURL=amazonS3PatchConfig.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"amazonS3PatchConfig.js","sourceRoot":"","sources":["../../src/models/amazonS3PatchConfig.ts"],"names":[],"mappings":";;;AAUa,QAAA,6BAA6B,GAAG;IAC3C,eAAe,CAAC,MAAW;QACzB,OAAO;YACL,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;YAClC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;YACxB,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;YAClC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;YACxB,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC;SAC3C,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,IAAyB;QACrC,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,eAAe,EAAE,IAAI,CAAC,eAAe;SACtC,CAAC;IACJ,CAAC;CACF,CAAC"}

12
node_modules/svix/dist/models/apiTokenOut.d.ts generated vendored Normal file
View File

@@ -0,0 +1,12 @@
export interface ApiTokenOut {
createdAt: Date;
expiresAt?: Date | null;
id: string;
name?: string | null;
scopes?: string[] | null;
token: string;
}
export declare const ApiTokenOutSerializer: {
_fromJsonObject(object: any): ApiTokenOut;
_toJsonObject(self: ApiTokenOut): any;
};

26
node_modules/svix/dist/models/apiTokenOut.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiTokenOutSerializer = void 0;
exports.ApiTokenOutSerializer = {
_fromJsonObject(object) {
return {
createdAt: new Date(object["createdAt"]),
expiresAt: object["expiresAt"] ? new Date(object["expiresAt"]) : null,
id: object["id"],
name: object["name"],
scopes: object["scopes"],
token: object["token"],
};
},
_toJsonObject(self) {
return {
createdAt: self.createdAt,
expiresAt: self.expiresAt,
id: self.id,
name: self.name,
scopes: self.scopes,
token: self.token,
};
},
};
//# sourceMappingURL=apiTokenOut.js.map

1
node_modules/svix/dist/models/apiTokenOut.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"file":"apiTokenOut.js","sourceRoot":"","sources":["../../src/models/apiTokenOut.ts"],"names":[],"mappings":";;;AAWa,QAAA,qBAAqB,GAAG;IACnC,eAAe,CAAC,MAAW;QACzB,OAAO;YACL,SAAS,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACxC,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI;YACrE,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC;YAChB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;YACpB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;YACxB,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC;SACvB,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,IAAiB;QAC7B,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;CACF,CAAC"}

14
node_modules/svix/dist/models/appPortalAccessIn.d.ts generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import { type AppPortalCapability } from "./appPortalCapability";
import { type ApplicationIn } from "./applicationIn";
export interface AppPortalAccessIn {
application?: ApplicationIn | null;
capabilities?: AppPortalCapability[] | null;
expiry?: number | null;
featureFlags?: string[];
readOnly?: boolean | null;
sessionId?: string | null;
}
export declare const AppPortalAccessInSerializer: {
_fromJsonObject(object: any): AppPortalAccessIn;
_toJsonObject(self: AppPortalAccessIn): any;
};

34
node_modules/svix/dist/models/appPortalAccessIn.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppPortalAccessInSerializer = void 0;
const appPortalCapability_1 = require("./appPortalCapability");
const applicationIn_1 = require("./applicationIn");
exports.AppPortalAccessInSerializer = {
_fromJsonObject(object) {
var _a;
return {
application: object["application"] != null
? applicationIn_1.ApplicationInSerializer._fromJsonObject(object["application"])
: undefined,
capabilities: (_a = object["capabilities"]) === null || _a === void 0 ? void 0 : _a.map((item) => appPortalCapability_1.AppPortalCapabilitySerializer._fromJsonObject(item)),
expiry: object["expiry"],
featureFlags: object["featureFlags"],
readOnly: object["readOnly"],
sessionId: object["sessionId"],
};
},
_toJsonObject(self) {
var _a;
return {
application: self.application != null
? applicationIn_1.ApplicationInSerializer._toJsonObject(self.application)
: undefined,
capabilities: (_a = self.capabilities) === null || _a === void 0 ? void 0 : _a.map((item) => appPortalCapability_1.AppPortalCapabilitySerializer._toJsonObject(item)),
expiry: self.expiry,
featureFlags: self.featureFlags,
readOnly: self.readOnly,
sessionId: self.sessionId,
};
},
};
//# sourceMappingURL=appPortalAccessIn.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"appPortalAccessIn.js","sourceRoot":"","sources":["../../src/models/appPortalAccessIn.ts"],"names":[],"mappings":";;;AACA,+DAG+B;AAC/B,mDAA8E;AAmDjE,QAAA,2BAA2B,GAAG;IACzC,eAAe,CAAC,MAAW;;QACzB,OAAO;YACL,WAAW,EACT,MAAM,CAAC,aAAa,CAAC,IAAI,IAAI;gBAC3B,CAAC,CAAC,uCAAuB,CAAC,eAAe,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;gBAChE,CAAC,CAAC,SAAS;YACf,YAAY,EAAE,MAAA,MAAM,CAAC,cAAc,CAAC,0CAAE,GAAG,CAAC,CAAC,IAAyB,EAAE,EAAE,CACtE,mDAA6B,CAAC,eAAe,CAAC,IAAI,CAAC,CACpD;YACD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;YACxB,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC;YACpC,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC;YAC5B,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;SAC/B,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,IAAuB;;QACnC,OAAO;YACL,WAAW,EACT,IAAI,CAAC,WAAW,IAAI,IAAI;gBACtB,CAAC,CAAC,uCAAuB,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC;gBACzD,CAAC,CAAC,SAAS;YACf,YAAY,EAAE,MAAA,IAAI,CAAC,YAAY,0CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAC5C,mDAA6B,CAAC,aAAa,CAAC,IAAI,CAAC,CAClD;YACD,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;CACF,CAAC"}

Some files were not shown because too many files have changed in this diff Show More