@mesadev/rest 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/index.d.mts +3361 -0
  2. package/dist/index.d.mts.map +1 -0
  3. package/dist/index.mjs +944 -0
  4. package/dist/index.mjs.map +1 -0
  5. package/package.json +8 -6
  6. package/dist/client/client.gen.d.ts +0 -3
  7. package/dist/client/client.gen.d.ts.map +0 -1
  8. package/dist/client/client.gen.js +0 -235
  9. package/dist/client/client.gen.js.map +0 -1
  10. package/dist/client/index.d.ts +0 -9
  11. package/dist/client/index.d.ts.map +0 -1
  12. package/dist/client/index.js +0 -7
  13. package/dist/client/index.js.map +0 -1
  14. package/dist/client/types.gen.d.ts +0 -118
  15. package/dist/client/types.gen.d.ts.map +0 -1
  16. package/dist/client/types.gen.js +0 -3
  17. package/dist/client/types.gen.js.map +0 -1
  18. package/dist/client/utils.gen.d.ts +0 -34
  19. package/dist/client/utils.gen.d.ts.map +0 -1
  20. package/dist/client/utils.gen.js +0 -229
  21. package/dist/client/utils.gen.js.map +0 -1
  22. package/dist/client.gen.d.ts +0 -13
  23. package/dist/client.gen.d.ts.map +0 -1
  24. package/dist/client.gen.js +0 -4
  25. package/dist/client.gen.js.map +0 -1
  26. package/dist/core/auth.gen.d.ts +0 -19
  27. package/dist/core/auth.gen.d.ts.map +0 -1
  28. package/dist/core/auth.gen.js +0 -15
  29. package/dist/core/auth.gen.js.map +0 -1
  30. package/dist/core/bodySerializer.gen.d.ts +0 -26
  31. package/dist/core/bodySerializer.gen.d.ts.map +0 -1
  32. package/dist/core/bodySerializer.gen.js +0 -58
  33. package/dist/core/bodySerializer.gen.js.map +0 -1
  34. package/dist/core/params.gen.d.ts +0 -44
  35. package/dist/core/params.gen.d.ts.map +0 -1
  36. package/dist/core/params.gen.js +0 -101
  37. package/dist/core/params.gen.js.map +0 -1
  38. package/dist/core/pathSerializer.gen.d.ts +0 -34
  39. package/dist/core/pathSerializer.gen.d.ts.map +0 -1
  40. package/dist/core/pathSerializer.gen.js +0 -107
  41. package/dist/core/pathSerializer.gen.js.map +0 -1
  42. package/dist/core/queryKeySerializer.gen.d.ts +0 -19
  43. package/dist/core/queryKeySerializer.gen.d.ts.map +0 -1
  44. package/dist/core/queryKeySerializer.gen.js +0 -93
  45. package/dist/core/queryKeySerializer.gen.js.map +0 -1
  46. package/dist/core/serverSentEvents.gen.d.ts +0 -72
  47. package/dist/core/serverSentEvents.gen.d.ts.map +0 -1
  48. package/dist/core/serverSentEvents.gen.js +0 -134
  49. package/dist/core/serverSentEvents.gen.js.map +0 -1
  50. package/dist/core/types.gen.d.ts +0 -79
  51. package/dist/core/types.gen.d.ts.map +0 -1
  52. package/dist/core/types.gen.js +0 -3
  53. package/dist/core/types.gen.js.map +0 -1
  54. package/dist/core/utils.gen.d.ts +0 -20
  55. package/dist/core/utils.gen.d.ts.map +0 -1
  56. package/dist/core/utils.gen.js +0 -88
  57. package/dist/core/utils.gen.js.map +0 -1
  58. package/dist/index.d.ts +0 -3
  59. package/dist/index.d.ts.map +0 -1
  60. package/dist/index.js +0 -3
  61. package/dist/index.js.map +0 -1
  62. package/dist/sdk.gen.d.ts +0 -154
  63. package/dist/sdk.gen.d.ts.map +0 -1
  64. package/dist/sdk.gen.js +0 -261
  65. package/dist/sdk.gen.js.map +0 -1
  66. package/dist/types.gen.d.ts +0 -2895
  67. package/dist/types.gen.d.ts.map +0 -1
  68. package/dist/types.gen.js +0 -3
  69. package/dist/types.gen.js.map +0 -1
@@ -1,88 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam, } from './pathSerializer.gen';
3
- export const PATH_PARAM_RE = /\{[^{}]+\}/g;
4
- export const defaultPathSerializer = ({ path, url: _url }) => {
5
- let url = _url;
6
- const matches = _url.match(PATH_PARAM_RE);
7
- if (matches) {
8
- for (const match of matches) {
9
- let explode = false;
10
- let name = match.substring(1, match.length - 1);
11
- let style = 'simple';
12
- if (name.endsWith('*')) {
13
- explode = true;
14
- name = name.substring(0, name.length - 1);
15
- }
16
- if (name.startsWith('.')) {
17
- name = name.substring(1);
18
- style = 'label';
19
- }
20
- else if (name.startsWith(';')) {
21
- name = name.substring(1);
22
- style = 'matrix';
23
- }
24
- const value = path[name];
25
- if (value === undefined || value === null) {
26
- continue;
27
- }
28
- if (Array.isArray(value)) {
29
- url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
30
- continue;
31
- }
32
- if (typeof value === 'object') {
33
- url = url.replace(match, serializeObjectParam({
34
- explode,
35
- name,
36
- style,
37
- value: value,
38
- valueOnly: true,
39
- }));
40
- continue;
41
- }
42
- if (style === 'matrix') {
43
- url = url.replace(match, `;${serializePrimitiveParam({
44
- name,
45
- value: value,
46
- })}`);
47
- continue;
48
- }
49
- const replaceValue = encodeURIComponent(style === 'label' ? `.${value}` : value);
50
- url = url.replace(match, replaceValue);
51
- }
52
- }
53
- return url;
54
- };
55
- export const getUrl = ({ baseUrl, path, query, querySerializer, url: _url, }) => {
56
- const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
57
- let url = (baseUrl ?? '') + pathUrl;
58
- if (path) {
59
- url = defaultPathSerializer({ path, url });
60
- }
61
- let search = query ? querySerializer(query) : '';
62
- if (search.startsWith('?')) {
63
- search = search.substring(1);
64
- }
65
- if (search) {
66
- url += `?${search}`;
67
- }
68
- return url;
69
- };
70
- export function getValidRequestBody(options) {
71
- const hasBody = options.body !== undefined;
72
- const isSerializedBody = hasBody && options.bodySerializer;
73
- if (isSerializedBody) {
74
- if ('serializedBody' in options) {
75
- const hasSerializedBody = options.serializedBody !== undefined && options.serializedBody !== '';
76
- return hasSerializedBody ? options.serializedBody : null;
77
- }
78
- // not all clients implement a serializedBody property (i.e. client-axios)
79
- return options.body !== '' ? options.body : null;
80
- }
81
- // plain/text body
82
- if (hasBody) {
83
- return options.body;
84
- }
85
- // no body was provided
86
- return undefined;
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AC,CAAC,CAAC,IAAI,CAAC;IACnD,CAAC;IAED,kBAAkB;IAClB,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;IAED,uBAAuB;IACvB,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { deleteByOrgApiKeyById, deleteByOrgByRepo, deleteByOrgByRepoBranchByBranch, deleteByOrgByRepoWebhookByWebhookId, getByOrg, getByOrgApiKey, getByOrgByRepo, getByOrgByRepoBranch, getByOrgByRepoCommit, getByOrgByRepoCommitBySha, getByOrgByRepoContent, getByOrgByRepoDiff, getByOrgByRepoWebhook, getByOrgRepo, getByOrgRepoTags, getWhoami, type Options, patchByOrgByRepo, postByOrgApiKey, postByOrgByRepoBranch, postByOrgByRepoCommit, postByOrgByRepoWebhook, postByOrgRepo, postByOrgRepoBulkTags, } from './sdk.gen';
2
- export type { ClientOptions, DeleteByOrgApiKeyByIdData, DeleteByOrgApiKeyByIdError, DeleteByOrgApiKeyByIdErrors, DeleteByOrgApiKeyByIdResponse, DeleteByOrgApiKeyByIdResponses, DeleteByOrgByRepoBranchByBranchData, DeleteByOrgByRepoBranchByBranchError, DeleteByOrgByRepoBranchByBranchErrors, DeleteByOrgByRepoBranchByBranchResponse, DeleteByOrgByRepoBranchByBranchResponses, DeleteByOrgByRepoData, DeleteByOrgByRepoError, DeleteByOrgByRepoErrors, DeleteByOrgByRepoResponse, DeleteByOrgByRepoResponses, DeleteByOrgByRepoWebhookByWebhookIdData, DeleteByOrgByRepoWebhookByWebhookIdError, DeleteByOrgByRepoWebhookByWebhookIdErrors, DeleteByOrgByRepoWebhookByWebhookIdResponse, DeleteByOrgByRepoWebhookByWebhookIdResponses, GetByOrgApiKeyData, GetByOrgApiKeyError, GetByOrgApiKeyErrors, GetByOrgApiKeyResponse, GetByOrgApiKeyResponses, GetByOrgByRepoBranchData, GetByOrgByRepoBranchError, GetByOrgByRepoBranchErrors, GetByOrgByRepoBranchResponse, GetByOrgByRepoBranchResponses, GetByOrgByRepoCommitByShaData, GetByOrgByRepoCommitByShaError, GetByOrgByRepoCommitByShaErrors, GetByOrgByRepoCommitByShaResponse, GetByOrgByRepoCommitByShaResponses, GetByOrgByRepoCommitData, GetByOrgByRepoCommitError, GetByOrgByRepoCommitErrors, GetByOrgByRepoCommitResponse, GetByOrgByRepoCommitResponses, GetByOrgByRepoContentData, GetByOrgByRepoContentError, GetByOrgByRepoContentErrors, GetByOrgByRepoContentResponse, GetByOrgByRepoContentResponses, GetByOrgByRepoData, GetByOrgByRepoDiffData, GetByOrgByRepoDiffError, GetByOrgByRepoDiffErrors, GetByOrgByRepoDiffResponse, GetByOrgByRepoDiffResponses, GetByOrgByRepoError, GetByOrgByRepoErrors, GetByOrgByRepoResponse, GetByOrgByRepoResponses, GetByOrgByRepoWebhookData, GetByOrgByRepoWebhookError, GetByOrgByRepoWebhookErrors, GetByOrgByRepoWebhookResponse, GetByOrgByRepoWebhookResponses, GetByOrgData, GetByOrgError, GetByOrgErrors, GetByOrgRepoData, GetByOrgRepoError, GetByOrgRepoErrors, GetByOrgRepoResponse, GetByOrgRepoResponses, GetByOrgRepoTagsData, GetByOrgRepoTagsError, GetByOrgRepoTagsErrors, GetByOrgRepoTagsResponse, GetByOrgRepoTagsResponses, GetByOrgResponse, GetByOrgResponses, GetWhoamiData, GetWhoamiError, GetWhoamiErrors, GetWhoamiResponse, GetWhoamiResponses, PatchByOrgByRepoData, PatchByOrgByRepoError, PatchByOrgByRepoErrors, PatchByOrgByRepoResponse, PatchByOrgByRepoResponses, PostByOrgApiKeyData, PostByOrgApiKeyError, PostByOrgApiKeyErrors, PostByOrgApiKeyResponse, PostByOrgApiKeyResponses, PostByOrgByRepoBranchData, PostByOrgByRepoBranchError, PostByOrgByRepoBranchErrors, PostByOrgByRepoBranchResponse, PostByOrgByRepoBranchResponses, PostByOrgByRepoCommitData, PostByOrgByRepoCommitError, PostByOrgByRepoCommitErrors, PostByOrgByRepoCommitResponse, PostByOrgByRepoCommitResponses, PostByOrgByRepoWebhookData, PostByOrgByRepoWebhookError, PostByOrgByRepoWebhookErrors, PostByOrgByRepoWebhookResponse, PostByOrgByRepoWebhookResponses, PostByOrgRepoBulkTagsData, PostByOrgRepoBulkTagsError, PostByOrgRepoBulkTagsErrors, PostByOrgRepoBulkTagsResponse, PostByOrgRepoBulkTagsResponses, PostByOrgRepoData, PostByOrgRepoError, PostByOrgRepoErrors, PostByOrgRepoResponse, PostByOrgRepoResponses, } from './types.gen';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,+BAA+B,EAC/B,mCAAmC,EACnC,QAAQ,EACR,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,KAAK,OAAO,EACZ,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,YAAY,EACV,aAAa,EACb,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,8BAA8B,EAC9B,mCAAmC,EACnC,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACvC,wCAAwC,EACxC,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,0BAA0B,EAC1B,uCAAuC,EACvC,wCAAwC,EACxC,yCAAyC,EACzC,2CAA2C,EAC3C,4CAA4C,EAC5C,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,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9B,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,aAAa,CAAC"}
package/dist/index.js DELETED
@@ -1,3 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export { deleteByOrgApiKeyById, deleteByOrgByRepo, deleteByOrgByRepoBranchByBranch, deleteByOrgByRepoWebhookByWebhookId, getByOrg, getByOrgApiKey, getByOrgByRepo, getByOrgByRepoBranch, getByOrgByRepoCommit, getByOrgByRepoCommitBySha, getByOrgByRepoContent, getByOrgByRepoDiff, getByOrgByRepoWebhook, getByOrgRepo, getByOrgRepoTags, getWhoami, patchByOrgByRepo, postByOrgApiKey, postByOrgByRepoBranch, postByOrgByRepoCommit, postByOrgByRepoWebhook, postByOrgRepo, postByOrgRepoBulkTags, } from './sdk.gen';
3
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAErD,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,+BAA+B,EAC/B,mCAAmC,EACnC,QAAQ,EACR,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,SAAS,EAET,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,GACtB,MAAM,WAAW,CAAC"}
package/dist/sdk.gen.d.ts DELETED
@@ -1,154 +0,0 @@
1
- import type { Client, Options as Options2, TDataShape } from './client';
2
- import type { DeleteByOrgApiKeyByIdData, DeleteByOrgApiKeyByIdErrors, DeleteByOrgApiKeyByIdResponses, DeleteByOrgByRepoBranchByBranchData, DeleteByOrgByRepoBranchByBranchErrors, DeleteByOrgByRepoBranchByBranchResponses, DeleteByOrgByRepoData, DeleteByOrgByRepoErrors, DeleteByOrgByRepoResponses, DeleteByOrgByRepoWebhookByWebhookIdData, DeleteByOrgByRepoWebhookByWebhookIdErrors, DeleteByOrgByRepoWebhookByWebhookIdResponses, GetByOrgApiKeyData, GetByOrgApiKeyErrors, GetByOrgApiKeyResponses, GetByOrgByRepoBranchData, GetByOrgByRepoBranchErrors, GetByOrgByRepoBranchResponses, GetByOrgByRepoCommitByShaData, GetByOrgByRepoCommitByShaErrors, GetByOrgByRepoCommitByShaResponses, GetByOrgByRepoCommitData, GetByOrgByRepoCommitErrors, GetByOrgByRepoCommitResponses, GetByOrgByRepoContentData, GetByOrgByRepoContentErrors, GetByOrgByRepoContentResponses, GetByOrgByRepoData, GetByOrgByRepoDiffData, GetByOrgByRepoDiffErrors, GetByOrgByRepoDiffResponses, GetByOrgByRepoErrors, GetByOrgByRepoResponses, GetByOrgByRepoWebhookData, GetByOrgByRepoWebhookErrors, GetByOrgByRepoWebhookResponses, GetByOrgData, GetByOrgErrors, GetByOrgRepoData, GetByOrgRepoErrors, GetByOrgRepoResponses, GetByOrgRepoTagsData, GetByOrgRepoTagsErrors, GetByOrgRepoTagsResponses, GetByOrgResponses, GetWhoamiData, GetWhoamiErrors, GetWhoamiResponses, PatchByOrgByRepoData, PatchByOrgByRepoErrors, PatchByOrgByRepoResponses, PostByOrgApiKeyData, PostByOrgApiKeyErrors, PostByOrgApiKeyResponses, PostByOrgByRepoBranchData, PostByOrgByRepoBranchErrors, PostByOrgByRepoBranchResponses, PostByOrgByRepoCommitData, PostByOrgByRepoCommitErrors, PostByOrgByRepoCommitResponses, PostByOrgByRepoWebhookData, PostByOrgByRepoWebhookErrors, PostByOrgByRepoWebhookResponses, PostByOrgRepoBulkTagsData, PostByOrgRepoBulkTagsErrors, PostByOrgRepoBulkTagsResponses, PostByOrgRepoData, PostByOrgRepoErrors, PostByOrgRepoResponses } from './types.gen';
3
- export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
- /**
5
- * You can provide a client instance returned by `createClient()` instead of
6
- * individual options. This might be also useful if you want to implement a
7
- * custom client.
8
- */
9
- client?: Client;
10
- /**
11
- * You can pass arbitrary values through the `meta` object. This can be
12
- * used to access values that aren't defined as part of the SDK function.
13
- */
14
- meta?: Record<string, unknown>;
15
- };
16
- /**
17
- * Get caller identity
18
- *
19
- * Get the authenticated organization, effective scopes, and API key metadata
20
- */
21
- export declare const getWhoami: <ThrowOnError extends boolean = false>(options?: Options<GetWhoamiData, ThrowOnError>) => import("./client").RequestResult<GetWhoamiResponses, GetWhoamiErrors, ThrowOnError, "fields">;
22
- /**
23
- * List API keys
24
- *
25
- * List all API keys for the organization (key values are not returned)
26
- */
27
- export declare const getByOrgApiKey: <ThrowOnError extends boolean = false>(options: Options<GetByOrgApiKeyData, ThrowOnError>) => import("./client").RequestResult<GetByOrgApiKeyResponses, GetByOrgApiKeyErrors, ThrowOnError, "fields">;
28
- /**
29
- * Create API key
30
- *
31
- * Create a new API key for programmatic access
32
- */
33
- export declare const postByOrgApiKey: <ThrowOnError extends boolean = false>(options: Options<PostByOrgApiKeyData, ThrowOnError>) => import("./client").RequestResult<PostByOrgApiKeyResponses, PostByOrgApiKeyErrors, ThrowOnError, "fields">;
34
- /**
35
- * Revoke API key
36
- *
37
- * Revoke an API key by its ID
38
- */
39
- export declare const deleteByOrgApiKeyById: <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgApiKeyByIdData, ThrowOnError>) => import("./client").RequestResult<DeleteByOrgApiKeyByIdResponses, DeleteByOrgApiKeyByIdErrors, ThrowOnError, "fields">;
40
- /**
41
- * List repositories
42
- *
43
- * List repositories in the organization using cursor pagination
44
- */
45
- export declare const getByOrgRepo: <ThrowOnError extends boolean = false>(options: Options<GetByOrgRepoData, ThrowOnError>) => import("./client").RequestResult<GetByOrgRepoResponses, GetByOrgRepoErrors, ThrowOnError, "fields">;
46
- /**
47
- * Create repository
48
- *
49
- * Create a new repository in the organization
50
- */
51
- export declare const postByOrgRepo: <ThrowOnError extends boolean = false>(options: Options<PostByOrgRepoData, ThrowOnError>) => import("./client").RequestResult<PostByOrgRepoResponses, PostByOrgRepoErrors, ThrowOnError, "fields">;
52
- /**
53
- * Delete repository
54
- *
55
- * Permanently delete a repository and all its data
56
- */
57
- export declare const deleteByOrgByRepo: <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoData, ThrowOnError>) => import("./client").RequestResult<DeleteByOrgByRepoResponses, DeleteByOrgByRepoErrors, ThrowOnError, "fields">;
58
- /**
59
- * Get repository
60
- *
61
- * Get metadata for a specific repository
62
- */
63
- export declare const getByOrgByRepo: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoResponses, GetByOrgByRepoErrors, ThrowOnError, "fields">;
64
- /**
65
- * Update repository
66
- *
67
- * Update repository name, default branch, tags, or upstream configuration. Tags are patched: set values to add/update and null values to remove.
68
- */
69
- export declare const patchByOrgByRepo: <ThrowOnError extends boolean = false>(options: Options<PatchByOrgByRepoData, ThrowOnError>) => import("./client").RequestResult<PatchByOrgByRepoResponses, PatchByOrgByRepoErrors, ThrowOnError, "fields">;
70
- /**
71
- * Get repo Tags
72
- *
73
- * Get repository tag values and counts
74
- */
75
- export declare const getByOrgRepoTags: <ThrowOnError extends boolean = false>(options: Options<GetByOrgRepoTagsData, ThrowOnError>) => import("./client").RequestResult<GetByOrgRepoTagsResponses, GetByOrgRepoTagsErrors, ThrowOnError, "fields">;
76
- /**
77
- * Bulk update Tags
78
- *
79
- * Bulk set or remove repo tags
80
- */
81
- export declare const postByOrgRepoBulkTags: <ThrowOnError extends boolean = false>(options: Options<PostByOrgRepoBulkTagsData, ThrowOnError>) => import("./client").RequestResult<PostByOrgRepoBulkTagsResponses, PostByOrgRepoBulkTagsErrors, ThrowOnError, "fields">;
82
- /**
83
- * Get content
84
- *
85
- * Get file content or directory listing at a path. Use Accept: application/json for the JSON union response, or Accept: application/octet-stream for raw file bytes. Directory + octet-stream requests return 406 Not Acceptable.
86
- */
87
- export declare const getByOrgByRepoContent: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoContentData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoContentResponses, GetByOrgByRepoContentErrors, ThrowOnError, "fields">;
88
- /**
89
- * List branches
90
- *
91
- * List all branches in a repository
92
- */
93
- export declare const getByOrgByRepoBranch: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoBranchData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoBranchResponses, GetByOrgByRepoBranchErrors, ThrowOnError, "fields">;
94
- /**
95
- * Create branch
96
- *
97
- * Create a new branch from an existing ref
98
- */
99
- export declare const postByOrgByRepoBranch: <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoBranchData, ThrowOnError>) => import("./client").RequestResult<PostByOrgByRepoBranchResponses, PostByOrgByRepoBranchErrors, ThrowOnError, "fields">;
100
- /**
101
- * Delete branch
102
- *
103
- * Delete a branch from a repository
104
- */
105
- export declare const deleteByOrgByRepoBranchByBranch: <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoBranchByBranchData, ThrowOnError>) => import("./client").RequestResult<DeleteByOrgByRepoBranchByBranchResponses, DeleteByOrgByRepoBranchByBranchErrors, ThrowOnError, "fields">;
106
- /**
107
- * List commits
108
- *
109
- * List commits for a repository from a specific ref
110
- */
111
- export declare const getByOrgByRepoCommit: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoCommitData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoCommitResponses, GetByOrgByRepoCommitErrors, ThrowOnError, "fields">;
112
- /**
113
- * Create commit
114
- *
115
- * Create a new commit on a branch with file changes
116
- */
117
- export declare const postByOrgByRepoCommit: <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoCommitData, ThrowOnError>) => import("./client").RequestResult<PostByOrgByRepoCommitResponses, PostByOrgByRepoCommitErrors, ThrowOnError, "fields">;
118
- /**
119
- * Get commit
120
- *
121
- * Retrieve a specific commit by its SHA
122
- */
123
- export declare const getByOrgByRepoCommitBySha: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoCommitByShaData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoCommitByShaResponses, GetByOrgByRepoCommitByShaErrors, ThrowOnError, "fields">;
124
- /**
125
- * Get diff
126
- *
127
- * Retrieve the diff between two commit OIDs
128
- */
129
- export declare const getByOrgByRepoDiff: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoDiffData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoDiffResponses, GetByOrgByRepoDiffErrors, ThrowOnError, "fields">;
130
- /**
131
- * List webhooks
132
- *
133
- * List webhooks for a repository
134
- */
135
- export declare const getByOrgByRepoWebhook: <ThrowOnError extends boolean = false>(options: Options<GetByOrgByRepoWebhookData, ThrowOnError>) => import("./client").RequestResult<GetByOrgByRepoWebhookResponses, GetByOrgByRepoWebhookErrors, ThrowOnError, "fields">;
136
- /**
137
- * Create webhook
138
- *
139
- * Create a webhook for a repository
140
- */
141
- export declare const postByOrgByRepoWebhook: <ThrowOnError extends boolean = false>(options: Options<PostByOrgByRepoWebhookData, ThrowOnError>) => import("./client").RequestResult<PostByOrgByRepoWebhookResponses, PostByOrgByRepoWebhookErrors, ThrowOnError, "fields">;
142
- /**
143
- * Delete webhook
144
- *
145
- * Delete a webhook from a repository
146
- */
147
- export declare const deleteByOrgByRepoWebhookByWebhookId: <ThrowOnError extends boolean = false>(options: Options<DeleteByOrgByRepoWebhookByWebhookIdData, ThrowOnError>) => import("./client").RequestResult<DeleteByOrgByRepoWebhookByWebhookIdResponses, DeleteByOrgByRepoWebhookByWebhookIdErrors, ThrowOnError, "fields">;
148
- /**
149
- * Get organization
150
- *
151
- * Get organization metadata and repository counts
152
- */
153
- export declare const getByOrg: <ThrowOnError extends boolean = false>(options: Options<GetByOrgData, ThrowOnError>) => import("./client").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- * Get caller identity
5
- *
6
- * Get the authenticated organization, effective scopes, and API key metadata
7
- */
8
- export const getWhoami = (options) => (options?.client ?? client).get({
9
- security: [{ scheme: 'bearer', type: 'http' }],
10
- url: '/whoami',
11
- ...options
12
- });
13
- /**
14
- * List API keys
15
- *
16
- * List all API keys for the organization (key values are not returned)
17
- */
18
- export const getByOrgApiKey = (options) => (options.client ?? client).get({
19
- security: [{ scheme: 'bearer', type: 'http' }],
20
- url: '/{org}/api-key',
21
- ...options
22
- });
23
- /**
24
- * Create API key
25
- *
26
- * Create a new API key for programmatic access
27
- */
28
- export const postByOrgApiKey = (options) => (options.client ?? client).post({
29
- security: [{ scheme: 'bearer', type: 'http' }],
30
- url: '/{org}/api-key',
31
- ...options,
32
- headers: {
33
- 'Content-Type': 'application/json',
34
- ...options.headers
35
- }
36
- });
37
- /**
38
- * Revoke API key
39
- *
40
- * Revoke an API key by its ID
41
- */
42
- export const deleteByOrgApiKeyById = (options) => (options.client ?? client).delete({
43
- security: [{ scheme: 'bearer', type: 'http' }],
44
- url: '/{org}/api-key/{id}',
45
- ...options
46
- });
47
- /**
48
- * List repositories
49
- *
50
- * List repositories in the organization using cursor pagination
51
- */
52
- export const getByOrgRepo = (options) => (options.client ?? client).get({
53
- security: [{ scheme: 'bearer', type: 'http' }],
54
- url: '/{org}/repo',
55
- ...options
56
- });
57
- /**
58
- * Create repository
59
- *
60
- * Create a new repository in the organization
61
- */
62
- export const postByOrgRepo = (options) => (options.client ?? client).post({
63
- security: [{ scheme: 'bearer', type: 'http' }],
64
- url: '/{org}/repo',
65
- ...options,
66
- headers: {
67
- 'Content-Type': 'application/json',
68
- ...options.headers
69
- }
70
- });
71
- /**
72
- * Delete repository
73
- *
74
- * Permanently delete a repository and all its data
75
- */
76
- export const deleteByOrgByRepo = (options) => (options.client ?? client).delete({
77
- security: [{ scheme: 'bearer', type: 'http' }],
78
- url: '/{org}/{repo}',
79
- ...options
80
- });
81
- /**
82
- * Get repository
83
- *
84
- * Get metadata for a specific repository
85
- */
86
- export const getByOrgByRepo = (options) => (options.client ?? client).get({
87
- security: [{ scheme: 'bearer', type: 'http' }],
88
- url: '/{org}/{repo}',
89
- ...options
90
- });
91
- /**
92
- * Update repository
93
- *
94
- * Update repository name, default branch, tags, or upstream configuration. Tags are patched: set values to add/update and null values to remove.
95
- */
96
- export const patchByOrgByRepo = (options) => (options.client ?? client).patch({
97
- security: [{ scheme: 'bearer', type: 'http' }],
98
- url: '/{org}/{repo}',
99
- ...options,
100
- headers: {
101
- 'Content-Type': 'application/json',
102
- ...options.headers
103
- }
104
- });
105
- /**
106
- * Get repo Tags
107
- *
108
- * Get repository tag values and counts
109
- */
110
- export const getByOrgRepoTags = (options) => (options.client ?? client).get({
111
- security: [{ scheme: 'bearer', type: 'http' }],
112
- url: '/{org}/repo/tags',
113
- ...options
114
- });
115
- /**
116
- * Bulk update Tags
117
- *
118
- * Bulk set or remove repo tags
119
- */
120
- export const postByOrgRepoBulkTags = (options) => (options.client ?? client).post({
121
- security: [{ scheme: 'bearer', type: 'http' }],
122
- url: '/{org}/repo/bulk/tags',
123
- ...options,
124
- headers: {
125
- 'Content-Type': 'application/json',
126
- ...options.headers
127
- }
128
- });
129
- /**
130
- * Get content
131
- *
132
- * Get file content or directory listing at a path. Use Accept: application/json for the JSON union response, or Accept: application/octet-stream for raw file bytes. Directory + octet-stream requests return 406 Not Acceptable.
133
- */
134
- export const getByOrgByRepoContent = (options) => (options.client ?? client).get({
135
- security: [{ scheme: 'bearer', type: 'http' }],
136
- url: '/{org}/{repo}/content',
137
- ...options
138
- });
139
- /**
140
- * List branches
141
- *
142
- * List all branches in a repository
143
- */
144
- export const getByOrgByRepoBranch = (options) => (options.client ?? client).get({
145
- security: [{ scheme: 'bearer', type: 'http' }],
146
- url: '/{org}/{repo}/branch',
147
- ...options
148
- });
149
- /**
150
- * Create branch
151
- *
152
- * Create a new branch from an existing ref
153
- */
154
- export const postByOrgByRepoBranch = (options) => (options.client ?? client).post({
155
- security: [{ scheme: 'bearer', type: 'http' }],
156
- url: '/{org}/{repo}/branch',
157
- ...options,
158
- headers: {
159
- 'Content-Type': 'application/json',
160
- ...options.headers
161
- }
162
- });
163
- /**
164
- * Delete branch
165
- *
166
- * Delete a branch from a repository
167
- */
168
- export const deleteByOrgByRepoBranchByBranch = (options) => (options.client ?? client).delete({
169
- security: [{ scheme: 'bearer', type: 'http' }],
170
- url: '/{org}/{repo}/branch/{branch}',
171
- ...options
172
- });
173
- /**
174
- * List commits
175
- *
176
- * List commits for a repository from a specific ref
177
- */
178
- export const getByOrgByRepoCommit = (options) => (options.client ?? client).get({
179
- security: [{ scheme: 'bearer', type: 'http' }],
180
- url: '/{org}/{repo}/commit',
181
- ...options
182
- });
183
- /**
184
- * Create commit
185
- *
186
- * Create a new commit on a branch with file changes
187
- */
188
- export const postByOrgByRepoCommit = (options) => (options.client ?? client).post({
189
- security: [{ scheme: 'bearer', type: 'http' }],
190
- url: '/{org}/{repo}/commit',
191
- ...options,
192
- headers: {
193
- 'Content-Type': 'application/json',
194
- ...options.headers
195
- }
196
- });
197
- /**
198
- * Get commit
199
- *
200
- * Retrieve a specific commit by its SHA
201
- */
202
- export const getByOrgByRepoCommitBySha = (options) => (options.client ?? client).get({
203
- security: [{ scheme: 'bearer', type: 'http' }],
204
- url: '/{org}/{repo}/commit/{sha}',
205
- ...options
206
- });
207
- /**
208
- * Get diff
209
- *
210
- * Retrieve the diff between two commit OIDs
211
- */
212
- export const getByOrgByRepoDiff = (options) => (options.client ?? client).get({
213
- security: [{ scheme: 'bearer', type: 'http' }],
214
- url: '/{org}/{repo}/diff',
215
- ...options
216
- });
217
- /**
218
- * List webhooks
219
- *
220
- * List webhooks for a repository
221
- */
222
- export const getByOrgByRepoWebhook = (options) => (options.client ?? client).get({
223
- security: [{ scheme: 'bearer', type: 'http' }],
224
- url: '/{org}/{repo}/webhook',
225
- ...options
226
- });
227
- /**
228
- * Create webhook
229
- *
230
- * Create a webhook for a repository
231
- */
232
- export const postByOrgByRepoWebhook = (options) => (options.client ?? client).post({
233
- security: [{ scheme: 'bearer', type: 'http' }],
234
- url: '/{org}/{repo}/webhook',
235
- ...options,
236
- headers: {
237
- 'Content-Type': 'application/json',
238
- ...options.headers
239
- }
240
- });
241
- /**
242
- * Delete webhook
243
- *
244
- * Delete a webhook from a repository
245
- */
246
- export const deleteByOrgByRepoWebhookByWebhookId = (options) => (options.client ?? client).delete({
247
- security: [{ scheme: 'bearer', type: 'http' }],
248
- url: '/{org}/{repo}/webhook/{webhookId}',
249
- ...options
250
- });
251
- /**
252
- * Get organization
253
- *
254
- * Get organization metadata and repository counts
255
- */
256
- export const getByOrg = (options) => (options.client ?? client).get({
257
- security: [{ scheme: 'bearer', type: 'http' }],
258
- url: '/{org}',
259
- ...options
260
- });
261
- //# sourceMappingURL=sdk.gen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../src/sdk.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAiBtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAuC,OAA8C,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,MAAM,IAAI,MAAM,CAAC,CAAC,GAAG,CAAoD;IAClM,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC9C,GAAG,EAAE,SAAS;IACd,GAAG,OAAO;CACb,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAuC,OAAkD,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,GAAG,CAA8D;IACpN,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC9C,GAAG,EAAE,gBAAgB;IACrB,GAAG,OAA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