🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/gitlab

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/gitlab - npm Package Compare versions

Comparing version
0.1.1
to
0.3.0
+39
dist/gitlab.d.ts
/**
* RobinPath GitLab Module (Node port)
*
* GitLab REST API v4 client covering the day-to-day surface: projects,
* branches, commits, repository files, issues, merge requests, releases,
* labels, pipelines (CI/CD), jobs, users, and search.
*
* Mirror of packages/php/gitlab/src/index.php — shares the same credential
* contract, metadata shape, and error taxonomy so the visual editor can
* render both identically.
*
* Works transparently against gitlab.com **and** self-hosted GitLab
* instances — point the credential's `base_url` field at
* `https://gitlab.mycompany.com/api/v4` and every call is routed there.
*
* Authentication uses the RobinPath credential vault. Every handler takes
* a credential slug as its first argument; the module resolves the stored
* Personal / Project / Group access token (or OAuth2 bearer) at call time.
* Tokens are sent both as `Authorization: Bearer` (modern) and as
* `PRIVATE-TOKEN` (legacy) so either style is accepted.
*
* Projects can be referenced by numeric ID (`12345`) **or** by the
* URL-encoded namespace path (`mygroup/myproject` → `mygroup%2Fmyproject`).
* The module encodes `/` automatically — pass whichever form you have.
*
* Credential type declared by this module:
* - gitlab : { token, base_url? } → Bearer auth on gitlab.com or a
* self-hosted v4 API endpoint
*
* All handlers return the parsed JSON response as-is. Errors are never
* thrown — they are returned as `{error, code, status?, gitlab_error?}`.
*/
import type { BuiltinHandler, CredentialTypeSchema, FunctionMetadata, ModuleHost, ModuleMetadata } from "@robinpath/core";
export declare function configureGitlab(h: ModuleHost): void;
export declare const GitlabFunctions: Record<string, BuiltinHandler>;
export declare const GitlabCredentialTypes: CredentialTypeSchema[];
export declare const GitlabFunctionMetadata: Record<string, FunctionMetadata>;
export declare const GitlabModuleMetadata: ModuleMetadata;
//# sourceMappingURL=gitlab.d.ts.map
{"version":3,"file":"gitlab.d.ts","sourceRoot":"","sources":["../src/gitlab.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAezB,wBAAgB,eAAe,CAAC,CAAC,EAAE,UAAU,GAAG,IAAI,CAEnD;AAohDD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA4D1D,CAAC;AAIF,eAAO,MAAM,qBAAqB,EAAE,oBAAoB,EA2BvD,CAAC;AAyEF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CA4yDnE,CAAC;AAIF,eAAO,MAAM,oBAAoB,EAAE,cAwElC,CAAC"}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

import type { ModuleAdapter } from "@robinpath/core";
declare const GitlabModule: ModuleAdapter;
export default GitlabModule;
export { GitlabModule };
export { GitlabFunctions, GitlabFunctionMetadata, GitlabModuleMetadata, GitlabCredentialTypes, configureGitlab, } from "./gitlab.js";
//# sourceMappingURL=index.d.ts.map
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AASrD,QAAA,MAAM,YAAY,EAAE,aAQnB,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,GAChB,MAAM,aAAa,CAAC"}
import { GitlabFunctions, GitlabFunctionMetadata, GitlabModuleMetadata, GitlabCredentialTypes, configureGitlab, } from "./gitlab.js";
const GitlabModule = {
name: "gitlab",
functions: GitlabFunctions,
functionMetadata: GitlabFunctionMetadata,
moduleMetadata: GitlabModuleMetadata,
credentialTypes: GitlabCredentialTypes,
configure: configureGitlab,
global: false,
};
export default GitlabModule;
export { GitlabModule };
export { GitlabFunctions, GitlabFunctionMetadata, GitlabModuleMetadata, GitlabCredentialTypes, configureGitlab, } from "./gitlab.js";
//# sourceMappingURL=index.js.map
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,GAChB,MAAM,aAAa,CAAC;AAErB,MAAM,YAAY,GAAkB;IAClC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,eAAe;IAC1B,gBAAgB,EAAE,sBAAsB;IACxC,cAAc,EAAE,oBAAoB;IACpC,eAAe,EAAE,qBAAqB;IACtC,SAAS,EAAE,eAAe;IAC1B,MAAM,EAAE,KAAK;CACd,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,GAChB,MAAM,aAAa,CAAC"}
+22
-8
{
"name": "@robinpath/gitlab",
"version": "0.1.1",
"version": "0.3.0",
"publishConfig": {

@@ -23,12 +23,20 @@ "access": "public"

"peerDependencies": {
"@robinpath/core": ">=0.20.0"
"@robinpath/core": ">=0.40.0"
},
"devDependencies": {
"@robinpath/core": "^0.30.1",
"@robinpath/core": "^0.40.0",
"typescript": "^5.6.0"
},
"description": "GitLab module for RobinPath.",
"description": "GitLab REST API v4 client — projects, branches, commits, files, issues, merge requests, releases, pipelines (CI), jobs, labels, and search. Works with gitlab.com and self-hosted instances. Uses the encrypted credential vault for personal / project / group access tokens (glpat-…) and OAuth2 bearer tokens.",
"keywords": [
"gitlab",
"devops"
"devops",
"git",
"issues",
"merge-request",
"pipeline",
"ci",
"cd",
"release",
"self-hosted"
],

@@ -38,7 +46,13 @@ "license": "MIT",

"category": "devops",
"type": "integration",
"auth": "api-key",
"type": "module",
"auth": "credential-vault",
"functionCount": 29,
"baseUrl": "https://gitlab.com"
"baseUrl": "https://gitlab.com",
"language": "nodejs",
"platforms": [
"cloud",
"cli",
"desktop"
]
}
}

@@ -22,3 +22,3 @@ # @robinpath/gitlab

```bash
npm install @robinpath/gitlab
robinpath add @robinpath/gitlab
```

@@ -25,0 +25,0 @@