Skip to content

Commit

Permalink
feat: SP
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-dixit committed Jan 13, 2025
1 parent f3caa5c commit 4e7e487
Show file tree
Hide file tree
Showing 1,321 changed files with 27,752 additions and 10 deletions.
20 changes: 10 additions & 10 deletions js/fern/openapi/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ paths:
x-fern-sdk-group-name:
- apps
x-fern-sdk-method-name: _getOpenAPISpecs
/api/v1/apps/openapi/spec/delete/{id}:
delete:
x-fern-sdk-group-name:
- apps
x-fern-sdk-method-name: _deleteOpenAPISpecTool
# /api/v1/apps/openapi/spec/delete/{id}:
# delete:
# x-fern-sdk-group-name:
# - apps
# x-fern-sdk-method-name: _deleteOpenAPISpecTool
/api/v1/apps/openapi/send_email_to_client:
post:
x-fern-sdk-group-name:
- apps
x-fern-sdk-method-name: _AppController.sendEmailToClient
/api/v1/apps/openapi/spec/status/{id}:
get:
x-fern-sdk-group-name:
- apps
x-fern-sdk-method-name: _getOpenAPISpecStatus
# /api/v1/apps/openapi/spec/status/{id}:
# get:
# x-fern-sdk-group-name:
# - apps
# x-fern-sdk-method-name: _getOpenAPISpecStatus
/api/v1/apps/{appName}:
get:
x-fern-sdk-group-name:
Expand Down
72 changes: 72 additions & 0 deletions js/sdks/typescript/Client.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as environments from "./environments";
import * as core from "./core";
import { Auth } from "./api/resources/auth/client/Client";
import { Client } from "./api/resources/client/client/Client";
import { Team } from "./api/resources/team/client/Client";
import { ApiKeys } from "./api/resources/apiKeys/client/Client";
import { Apps } from "./api/resources/apps/client/Client";
import { Integrations } from "./api/resources/integrations/client/Client";
import { Actions } from "./api/resources/actions/client/Client";
import { Connections } from "./api/resources/connections/client/Client";
import { Triggers } from "./api/resources/triggers/client/Client";
import { Cli } from "./api/resources/cli/client/Client";
import { Logs } from "./api/resources/logs/client/Client";
import { Projects } from "./api/resources/projects/client/Client";
import { Admin } from "./api/resources/admin/client/Client";
import { Analytics } from "./api/resources/analytics/client/Client";
import { EventLogs } from "./api/resources/eventLogs/client/Client";
export declare namespace ComposioApiClient {
interface Options {
environment?: core.Supplier<environments.ComposioApiEnvironment | string>;
apiKey: core.Supplier<string>;
/** Override the x-org-api-key header */
orgApiKey: core.Supplier<string>;
}
interface RequestOptions {
/** The maximum time to wait for a response in seconds. */
timeoutInSeconds?: number;
/** The number of times to retry the request. Defaults to 2. */
maxRetries?: number;
/** A hook to abort the request. */
abortSignal?: AbortSignal;
/** Override the x-org-api-key header */
orgApiKey?: string;
}
}
export declare class ComposioApiClient {
protected readonly _options: ComposioApiClient.Options;
constructor(_options: ComposioApiClient.Options);
protected _auth: Auth | undefined;
get auth(): Auth;
protected _client: Client | undefined;
get client(): Client;
protected _team: Team | undefined;
get team(): Team;
protected _apiKeys: ApiKeys | undefined;
get apiKeys(): ApiKeys;
protected _apps: Apps | undefined;
get apps(): Apps;
protected _integrations: Integrations | undefined;
get integrations(): Integrations;
protected _actions: Actions | undefined;
get actions(): Actions;
protected _connections: Connections | undefined;
get connections(): Connections;
protected _triggers: Triggers | undefined;
get triggers(): Triggers;
protected _cli: Cli | undefined;
get cli(): Cli;
protected _logs: Logs | undefined;
get logs(): Logs;
protected _projects: Projects | undefined;
get projects(): Projects;
protected _admin: Admin | undefined;
get admin(): Admin;
protected _analytics: Analytics | undefined;
get analytics(): Analytics;
protected _eventLogs: EventLogs | undefined;
get eventLogs(): EventLogs;
}
87 changes: 87 additions & 0 deletions js/sdks/typescript/Client.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
"use strict";
/**
* This file was auto-generated by Fern from our API Definition.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComposioApiClient = void 0;
const Client_1 = require("./api/resources/auth/client/Client");
const Client_2 = require("./api/resources/client/client/Client");
const Client_3 = require("./api/resources/team/client/Client");
const Client_4 = require("./api/resources/apiKeys/client/Client");
const Client_5 = require("./api/resources/apps/client/Client");
const Client_6 = require("./api/resources/integrations/client/Client");
const Client_7 = require("./api/resources/actions/client/Client");
const Client_8 = require("./api/resources/connections/client/Client");
const Client_9 = require("./api/resources/triggers/client/Client");
const Client_10 = require("./api/resources/cli/client/Client");
const Client_11 = require("./api/resources/logs/client/Client");
const Client_12 = require("./api/resources/projects/client/Client");
const Client_13 = require("./api/resources/admin/client/Client");
const Client_14 = require("./api/resources/analytics/client/Client");
const Client_15 = require("./api/resources/eventLogs/client/Client");
class ComposioApiClient {
constructor(_options) {
this._options = _options;
}
get auth() {
var _a;
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_1.Auth(this._options)));
}
get client() {
var _a;
return ((_a = this._client) !== null && _a !== void 0 ? _a : (this._client = new Client_2.Client(this._options)));
}
get team() {
var _a;
return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_3.Team(this._options)));
}
get apiKeys() {
var _a;
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_4.ApiKeys(this._options)));
}
get apps() {
var _a;
return ((_a = this._apps) !== null && _a !== void 0 ? _a : (this._apps = new Client_5.Apps(this._options)));
}
get integrations() {
var _a;
return ((_a = this._integrations) !== null && _a !== void 0 ? _a : (this._integrations = new Client_6.Integrations(this._options)));
}
get actions() {
var _a;
return ((_a = this._actions) !== null && _a !== void 0 ? _a : (this._actions = new Client_7.Actions(this._options)));
}
get connections() {
var _a;
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_8.Connections(this._options)));
}
get triggers() {
var _a;
return ((_a = this._triggers) !== null && _a !== void 0 ? _a : (this._triggers = new Client_9.Triggers(this._options)));
}
get cli() {
var _a;
return ((_a = this._cli) !== null && _a !== void 0 ? _a : (this._cli = new Client_10.Cli(this._options)));
}
get logs() {
var _a;
return ((_a = this._logs) !== null && _a !== void 0 ? _a : (this._logs = new Client_11.Logs(this._options)));
}
get projects() {
var _a;
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_12.Projects(this._options)));
}
get admin() {
var _a;
return ((_a = this._admin) !== null && _a !== void 0 ? _a : (this._admin = new Client_13.Admin(this._options)));
}
get analytics() {
var _a;
return ((_a = this._analytics) !== null && _a !== void 0 ? _a : (this._analytics = new Client_14.Analytics(this._options)));
}
get eventLogs() {
var _a;
return ((_a = this._eventLogs) !== null && _a !== void 0 ? _a : (this._eventLogs = new Client_15.EventLogs(this._options)));
}
}
exports.ComposioApiClient = ComposioApiClient;
7 changes: 7 additions & 0 deletions js/sdks/typescript/api/errors/BadRequestError.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as errors from "../../errors/index";
export declare class BadRequestError extends errors.ComposioApiError {
constructor(body?: unknown);
}
41 changes: 41 additions & 0 deletions js/sdks/typescript/api/errors/BadRequestError.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
"use strict";
/**
* This file was auto-generated by Fern from our API Definition.
*/
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BadRequestError = void 0;
const errors = __importStar(require("../../errors/index"));
class BadRequestError extends errors.ComposioApiError {
constructor(body) {
super({
message: "BadRequestError",
statusCode: 400,
body: body,
});
Object.setPrototypeOf(this, BadRequestError.prototype);
}
}
exports.BadRequestError = BadRequestError;
7 changes: 7 additions & 0 deletions js/sdks/typescript/api/errors/NotFoundError.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as errors from "../../errors/index";
export declare class NotFoundError extends errors.ComposioApiError {
constructor(body?: unknown);
}
41 changes: 41 additions & 0 deletions js/sdks/typescript/api/errors/NotFoundError.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
"use strict";
/**
* This file was auto-generated by Fern from our API Definition.
*/
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotFoundError = void 0;
const errors = __importStar(require("../../errors/index"));
class NotFoundError extends errors.ComposioApiError {
constructor(body) {
super({
message: "NotFoundError",
statusCode: 404,
body: body,
});
Object.setPrototypeOf(this, NotFoundError.prototype);
}
}
exports.NotFoundError = NotFoundError;
2 changes: 2 additions & 0 deletions js/sdks/typescript/api/errors/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "./BadRequestError";
export * from "./NotFoundError";
18 changes: 18 additions & 0 deletions js/sdks/typescript/api/errors/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"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 });
__exportStar(require("./BadRequestError"), exports);
__exportStar(require("./NotFoundError"), exports);
3 changes: 3 additions & 0 deletions js/sdks/typescript/api/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from "./resources";
export * from "./types";
export * from "./errors";
19 changes: 19 additions & 0 deletions js/sdks/typescript/api/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"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 });
__exportStar(require("./resources"), exports);
__exportStar(require("./types"), exports);
__exportStar(require("./errors"), exports);
Loading

0 comments on commit 4e7e487

Please sign in to comment.