@touhidrahman/restauth-sdk 1.0.0 → 1.0.2

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 (42) hide show
  1. package/index.cjs.default.js +1 -0
  2. package/index.cjs.js +2892 -0
  3. package/index.cjs.mjs +2 -0
  4. package/index.d.ts +1 -0
  5. package/index.esm.js +2779 -0
  6. package/package.json +14 -15
  7. package/src/{hey-api/core → core}/params.gen.d.ts +1 -1
  8. package/src/index.d.ts +2 -3
  9. package/src/{hey-api/sdk.gen.d.ts → sdk.gen.d.ts} +2 -1
  10. package/src/{hey-api/types.gen.d.ts → types.gen.d.ts} +26 -1
  11. package/src/hey-api/client/client.gen.js +0 -217
  12. package/src/hey-api/client/index.js +0 -6
  13. package/src/hey-api/client/types.gen.js +0 -2
  14. package/src/hey-api/client/utils.gen.js +0 -233
  15. package/src/hey-api/client.gen.js +0 -3
  16. package/src/hey-api/core/auth.gen.js +0 -14
  17. package/src/hey-api/core/bodySerializer.gen.js +0 -57
  18. package/src/hey-api/core/params.gen.js +0 -106
  19. package/src/hey-api/core/pathSerializer.gen.js +0 -118
  20. package/src/hey-api/core/queryKeySerializer.gen.js +0 -100
  21. package/src/hey-api/core/serverSentEvents.gen.js +0 -136
  22. package/src/hey-api/core/types.gen.js +0 -2
  23. package/src/hey-api/core/utils.gen.js +0 -88
  24. package/src/hey-api/index.d.ts +0 -2
  25. package/src/hey-api/index.js +0 -2
  26. package/src/hey-api/sdk.gen.js +0 -698
  27. package/src/hey-api/transformers.gen.js +0 -1221
  28. package/src/hey-api/types.gen.js +0 -2
  29. package/src/index.js +0 -3
  30. /package/src/{hey-api/client → client}/client.gen.d.ts +0 -0
  31. /package/src/{hey-api/client → client}/index.d.ts +0 -0
  32. /package/src/{hey-api/client → client}/types.gen.d.ts +0 -0
  33. /package/src/{hey-api/client → client}/utils.gen.d.ts +0 -0
  34. /package/src/{hey-api/client.gen.d.ts → client.gen.d.ts} +0 -0
  35. /package/src/{hey-api/core → core}/auth.gen.d.ts +0 -0
  36. /package/src/{hey-api/core → core}/bodySerializer.gen.d.ts +0 -0
  37. /package/src/{hey-api/core → core}/pathSerializer.gen.d.ts +0 -0
  38. /package/src/{hey-api/core → core}/queryKeySerializer.gen.d.ts +0 -0
  39. /package/src/{hey-api/core → core}/serverSentEvents.gen.d.ts +0 -0
  40. /package/src/{hey-api/core → core}/types.gen.d.ts +0 -0
  41. /package/src/{hey-api/core → core}/utils.gen.d.ts +0 -0
  42. /package/src/{hey-api/transformers.gen.d.ts → transformers.gen.d.ts} +0 -0
@@ -1,57 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- const serializeFormDataPair = (data, key, value) => {
3
- if (typeof value === 'string' || value instanceof Blob) {
4
- data.append(key, value);
5
- }
6
- else if (value instanceof Date) {
7
- data.append(key, value.toISOString());
8
- }
9
- else {
10
- data.append(key, JSON.stringify(value));
11
- }
12
- };
13
- const serializeUrlSearchParamsPair = (data, key, value) => {
14
- if (typeof value === 'string') {
15
- data.append(key, value);
16
- }
17
- else {
18
- data.append(key, JSON.stringify(value));
19
- }
20
- };
21
- export const formDataBodySerializer = {
22
- bodySerializer: (body) => {
23
- const data = new FormData();
24
- Object.entries(body).forEach(([key, value]) => {
25
- if (value === undefined || value === null) {
26
- return;
27
- }
28
- if (Array.isArray(value)) {
29
- value.forEach((v) => serializeFormDataPair(data, key, v));
30
- }
31
- else {
32
- serializeFormDataPair(data, key, value);
33
- }
34
- });
35
- return data;
36
- },
37
- };
38
- export const jsonBodySerializer = {
39
- bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === 'bigint' ? value.toString() : value),
40
- };
41
- export const urlSearchParamsBodySerializer = {
42
- bodySerializer: (body) => {
43
- const data = new URLSearchParams();
44
- Object.entries(body).forEach(([key, value]) => {
45
- if (value === undefined || value === null) {
46
- return;
47
- }
48
- if (Array.isArray(value)) {
49
- value.forEach((v) => serializeUrlSearchParamsPair(data, key, v));
50
- }
51
- else {
52
- serializeUrlSearchParamsPair(data, key, value);
53
- }
54
- });
55
- return data.toString();
56
- },
57
- };
@@ -1,106 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- const extraPrefixesMap = {
3
- $body_: 'body',
4
- $headers_: 'headers',
5
- $path_: 'path',
6
- $query_: 'query',
7
- };
8
- const extraPrefixes = Object.entries(extraPrefixesMap);
9
- function buildKeyMap(fields, map) {
10
- if (!map) {
11
- map = new Map();
12
- }
13
- for (const config of fields) {
14
- if ('in' in config) {
15
- if (config.key) {
16
- map.set(config.key, {
17
- in: config.in,
18
- map: config.map,
19
- });
20
- }
21
- }
22
- else if ('key' in config) {
23
- map.set(config.key, {
24
- map: config.map,
25
- });
26
- }
27
- else if (config.args) {
28
- buildKeyMap(config.args, map);
29
- }
30
- }
31
- return map;
32
- }
33
- function stripEmptySlots(params) {
34
- for (const [slot, value] of Object.entries(params)) {
35
- if (value &&
36
- typeof value === 'object' &&
37
- !Array.isArray(value) &&
38
- !Object.keys(value).length) {
39
- delete params[slot];
40
- }
41
- }
42
- }
43
- export function buildClientParams(args, fields) {
44
- const params = {
45
- body: Object.create(null),
46
- headers: Object.create(null),
47
- path: Object.create(null),
48
- query: Object.create(null),
49
- };
50
- const map = buildKeyMap(fields);
51
- let config;
52
- for (const [index, arg] of args.entries()) {
53
- if (fields[index]) {
54
- config = fields[index];
55
- }
56
- if (!config) {
57
- continue;
58
- }
59
- if ('in' in config) {
60
- if (config.key) {
61
- const field = map.get(config.key);
62
- const name = field.map || config.key;
63
- if (field.in) {
64
- ;
65
- params[field.in][name] = arg;
66
- }
67
- }
68
- else {
69
- params.body = arg;
70
- }
71
- }
72
- else {
73
- for (const [key, value] of Object.entries(arg ?? {})) {
74
- const field = map.get(key);
75
- if (field) {
76
- if (field.in) {
77
- const name = field.map || key;
78
- params[field.in][name] =
79
- value;
80
- }
81
- else {
82
- params[field.map] = value;
83
- }
84
- }
85
- else {
86
- const extra = extraPrefixes.find(([prefix]) => key.startsWith(prefix));
87
- if (extra) {
88
- const [prefix, slot] = extra;
89
- params[slot][key.slice(prefix.length)] = value;
90
- }
91
- else if ('allowExtra' in config && config.allowExtra) {
92
- for (const [slot, allowed] of Object.entries(config.allowExtra)) {
93
- if (allowed) {
94
- ;
95
- params[slot][key] = value;
96
- break;
97
- }
98
- }
99
- }
100
- }
101
- }
102
- }
103
- }
104
- stripEmptySlots(params);
105
- return params;
106
- }
@@ -1,118 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export const separatorArrayExplode = (style) => {
3
- switch (style) {
4
- case 'label':
5
- return '.';
6
- case 'matrix':
7
- return ';';
8
- case 'simple':
9
- return ',';
10
- default:
11
- return '&';
12
- }
13
- };
14
- export const separatorArrayNoExplode = (style) => {
15
- switch (style) {
16
- case 'form':
17
- return ',';
18
- case 'pipeDelimited':
19
- return '|';
20
- case 'spaceDelimited':
21
- return '%20';
22
- default:
23
- return ',';
24
- }
25
- };
26
- export const separatorObjectExplode = (style) => {
27
- switch (style) {
28
- case 'label':
29
- return '.';
30
- case 'matrix':
31
- return ';';
32
- case 'simple':
33
- return ',';
34
- default:
35
- return '&';
36
- }
37
- };
38
- export const serializeArrayParam = ({ allowReserved, explode, name, style, value, }) => {
39
- if (!explode) {
40
- const joinedValues = (allowReserved
41
- ? value
42
- : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
43
- switch (style) {
44
- case 'label':
45
- return `.${joinedValues}`;
46
- case 'matrix':
47
- return `;${name}=${joinedValues}`;
48
- case 'simple':
49
- return joinedValues;
50
- default:
51
- return `${name}=${joinedValues}`;
52
- }
53
- }
54
- const separator = separatorArrayExplode(style);
55
- const joinedValues = value
56
- .map((v) => {
57
- if (style === 'label' || style === 'simple') {
58
- return allowReserved ? v : encodeURIComponent(v);
59
- }
60
- return serializePrimitiveParam({
61
- allowReserved,
62
- name,
63
- value: v,
64
- });
65
- })
66
- .join(separator);
67
- return style === 'label' || style === 'matrix'
68
- ? separator + joinedValues
69
- : joinedValues;
70
- };
71
- export const serializePrimitiveParam = ({ allowReserved, name, value, }) => {
72
- if (value === undefined || value === null) {
73
- return '';
74
- }
75
- if (typeof value === 'object') {
76
- throw new Error('Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.');
77
- }
78
- return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
79
- };
80
- export const serializeObjectParam = ({ allowReserved, explode, name, style, value, valueOnly, }) => {
81
- if (value instanceof Date) {
82
- return valueOnly
83
- ? value.toISOString()
84
- : `${name}=${value.toISOString()}`;
85
- }
86
- if (style !== 'deepObject' && !explode) {
87
- let values = [];
88
- Object.entries(value).forEach(([key, v]) => {
89
- values = [
90
- ...values,
91
- key,
92
- allowReserved ? v : encodeURIComponent(v),
93
- ];
94
- });
95
- const joinedValues = values.join(',');
96
- switch (style) {
97
- case 'form':
98
- return `${name}=${joinedValues}`;
99
- case 'label':
100
- return `.${joinedValues}`;
101
- case 'matrix':
102
- return `;${name}=${joinedValues}`;
103
- default:
104
- return joinedValues;
105
- }
106
- }
107
- const separator = separatorObjectExplode(style);
108
- const joinedValues = Object.entries(value)
109
- .map(([key, v]) => serializePrimitiveParam({
110
- allowReserved,
111
- name: style === 'deepObject' ? `${name}[${key}]` : key,
112
- value: v,
113
- }))
114
- .join(separator);
115
- return style === 'label' || style === 'matrix'
116
- ? separator + joinedValues
117
- : joinedValues;
118
- };
@@ -1,100 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- /**
3
- * Replacer that converts non-JSON values (bigint, Date, etc.) to safe substitutes.
4
- */
5
- export const queryKeyJsonReplacer = (_key, value) => {
6
- if (value === undefined ||
7
- typeof value === 'function' ||
8
- typeof value === 'symbol') {
9
- return undefined;
10
- }
11
- if (typeof value === 'bigint') {
12
- return value.toString();
13
- }
14
- if (value instanceof Date) {
15
- return value.toISOString();
16
- }
17
- return value;
18
- };
19
- /**
20
- * Safely stringifies a value and parses it back into a JsonValue.
21
- */
22
- export const stringifyToJsonValue = (input) => {
23
- try {
24
- const json = JSON.stringify(input, queryKeyJsonReplacer);
25
- if (json === undefined) {
26
- return undefined;
27
- }
28
- return JSON.parse(json);
29
- }
30
- catch {
31
- return undefined;
32
- }
33
- };
34
- /**
35
- * Detects plain objects (including objects with a null prototype).
36
- */
37
- const isPlainObject = (value) => {
38
- if (value === null || typeof value !== 'object') {
39
- return false;
40
- }
41
- const prototype = Object.getPrototypeOf(value);
42
- return prototype === Object.prototype || prototype === null;
43
- };
44
- /**
45
- * Turns URLSearchParams into a sorted JSON object for deterministic keys.
46
- */
47
- const serializeSearchParams = (params) => {
48
- const entries = Array.from(params.entries()).sort(([a], [b]) => a.localeCompare(b));
49
- const result = {};
50
- for (const [key, value] of entries) {
51
- const existing = result[key];
52
- if (existing === undefined) {
53
- result[key] = value;
54
- continue;
55
- }
56
- if (Array.isArray(existing)) {
57
- ;
58
- existing.push(value);
59
- }
60
- else {
61
- result[key] = [existing, value];
62
- }
63
- }
64
- return result;
65
- };
66
- /**
67
- * Normalizes any accepted value into a JSON-friendly shape for query keys.
68
- */
69
- export const serializeQueryKeyValue = (value) => {
70
- if (value === null) {
71
- return null;
72
- }
73
- if (typeof value === 'string' ||
74
- typeof value === 'number' ||
75
- typeof value === 'boolean') {
76
- return value;
77
- }
78
- if (value === undefined ||
79
- typeof value === 'function' ||
80
- typeof value === 'symbol') {
81
- return undefined;
82
- }
83
- if (typeof value === 'bigint') {
84
- return value.toString();
85
- }
86
- if (value instanceof Date) {
87
- return value.toISOString();
88
- }
89
- if (Array.isArray(value)) {
90
- return stringifyToJsonValue(value);
91
- }
92
- if (typeof URLSearchParams !== 'undefined' &&
93
- value instanceof URLSearchParams) {
94
- return serializeSearchParams(value);
95
- }
96
- if (isPlainObject(value)) {
97
- return stringifyToJsonValue(value);
98
- }
99
- return undefined;
100
- };
@@ -1,136 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export function createSseClient({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) {
3
- let lastEventId;
4
- const sleep = sseSleepFn ??
5
- ((ms) => new Promise((resolve) => setTimeout(resolve, ms)));
6
- const createStream = async function* () {
7
- let retryDelay = sseDefaultRetryDelay ?? 3000;
8
- let attempt = 0;
9
- const signal = options.signal ?? new AbortController().signal;
10
- while (true) {
11
- if (signal.aborted)
12
- break;
13
- attempt++;
14
- const headers = options.headers instanceof Headers
15
- ? options.headers
16
- : new Headers(options.headers);
17
- if (lastEventId !== undefined) {
18
- headers.set('Last-Event-ID', lastEventId);
19
- }
20
- try {
21
- const requestInit = {
22
- redirect: 'follow',
23
- ...options,
24
- body: options.serializedBody,
25
- headers,
26
- signal,
27
- };
28
- let request = new Request(url, requestInit);
29
- if (onRequest) {
30
- request = await onRequest(url, requestInit);
31
- }
32
- // fetch must be assigned here, otherwise it would throw the error:
33
- // TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
34
- const _fetch = options.fetch ?? globalThis.fetch;
35
- const response = await _fetch(request);
36
- if (!response.ok)
37
- throw new Error(`SSE failed: ${response.status} ${response.statusText}`);
38
- if (!response.body)
39
- throw new Error('No body in SSE response');
40
- const reader = response.body
41
- .pipeThrough(new TextDecoderStream())
42
- .getReader();
43
- let buffer = '';
44
- const abortHandler = () => {
45
- try {
46
- reader.cancel();
47
- }
48
- catch {
49
- // noop
50
- }
51
- };
52
- signal.addEventListener('abort', abortHandler);
53
- try {
54
- while (true) {
55
- const { done, value } = await reader.read();
56
- if (done)
57
- break;
58
- buffer += value;
59
- buffer = buffer.replace(/\r\n?/g, '\n'); // normalize line endings
60
- const chunks = buffer.split('\n\n');
61
- buffer = chunks.pop() ?? '';
62
- for (const chunk of chunks) {
63
- const lines = chunk.split('\n');
64
- const dataLines = [];
65
- let eventName;
66
- for (const line of lines) {
67
- if (line.startsWith('data:')) {
68
- dataLines.push(line.replace(/^data:\s*/, ''));
69
- }
70
- else if (line.startsWith('event:')) {
71
- eventName = line.replace(/^event:\s*/, '');
72
- }
73
- else if (line.startsWith('id:')) {
74
- lastEventId = line.replace(/^id:\s*/, '');
75
- }
76
- else if (line.startsWith('retry:')) {
77
- const parsed = Number.parseInt(line.replace(/^retry:\s*/, ''), 10);
78
- if (!Number.isNaN(parsed)) {
79
- retryDelay = parsed;
80
- }
81
- }
82
- }
83
- let data;
84
- let parsedJson = false;
85
- if (dataLines.length) {
86
- const rawData = dataLines.join('\n');
87
- try {
88
- data = JSON.parse(rawData);
89
- parsedJson = true;
90
- }
91
- catch {
92
- data = rawData;
93
- }
94
- }
95
- if (parsedJson) {
96
- if (responseValidator) {
97
- await responseValidator(data);
98
- }
99
- if (responseTransformer) {
100
- data = await responseTransformer(data);
101
- }
102
- }
103
- onSseEvent?.({
104
- data,
105
- event: eventName,
106
- id: lastEventId,
107
- retry: retryDelay,
108
- });
109
- if (dataLines.length) {
110
- yield data;
111
- }
112
- }
113
- }
114
- }
115
- finally {
116
- signal.removeEventListener('abort', abortHandler);
117
- reader.releaseLock();
118
- }
119
- break; // exit loop on normal completion
120
- }
121
- catch (error) {
122
- // connection failed or aborted; retry after delay
123
- onSseError?.(error);
124
- if (sseMaxRetryAttempts !== undefined &&
125
- attempt >= sseMaxRetryAttempts) {
126
- break; // stop after firing error
127
- }
128
- // exponential backoff: double retry each attempt, cap at 30s
129
- const backoff = Math.min(retryDelay * 2 ** (attempt - 1), sseMaxRetryDelay ?? 30000);
130
- await sleep(backoff);
131
- }
132
- }
133
- };
134
- const stream = createStream();
135
- return { stream };
136
- }
@@ -1,2 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export {};
@@ -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 &&
76
- options.serializedBody !== '';
77
- return hasSerializedBody ? options.serializedBody : null;
78
- }
79
- // not all clients implement a serializedBody property (i.e., client-axios)
80
- return options.body !== '' ? options.body : null;
81
- }
82
- // plain/text body
83
- if (hasBody) {
84
- return options.body;
85
- }
86
- // no body was provided
87
- return undefined;
88
- }
@@ -1,2 +0,0 @@
1
- export { deleteGroupsByGroupIdUsersByUserId, deleteGroupsById, deleteInvitesById, deleteMemberships, deleteMembershipsById, deleteMembershipsByIdBranch, deleteMembershipsByIdZone, deleteOrganizationsById, deleteOrganizationsByOrganizationIdBranchesById, deleteOrganizationsByOrganizationIdZonesById, deletePermissionsById, deleteProjectsByProjectId, deleteRolesById, deleteRolesByIdPermissions, deleteSecretKeysById, deleteUsers, deleteUsersById, deleteUsersByIdMembershipsByMembershipId, get, getGroups, getGroupsById, getGroupsByIdPermissions, getGroupsByIdUsers, getGroupsMy, getInvites, getInvitesById, getMemberships, getMembershipsBranchById, getMembershipsById, getMembershipsByIdPermissions, getMembershipsMy, getMembershipsZoneByZoneId, getOrganizations, getOrganizationsById, getOrganizationsByOrganizationIdBranches, getOrganizationsByOrganizationIdBranchesById, getOrganizationsByOrganizationIdBranchesMy, getOrganizationsByOrganizationIdCreator, getOrganizationsByOrganizationIdMembers, getOrganizationsByOrganizationIdZones, getOrganizationsByOrganizationIdZonesById, getOrganizationsByOrganizationIdZonesMy, getOrganizationsByOwnerByUserId, getOrganizationsByUserByUserId, getPermissions, getPermissionsById, getProjects, getProjectsByProjectId, getRoles, getRolesById, getRolesByIdPermissions, getRolesByIdUsers, getSecretKeys, getSecretKeysById, getUserPasswords, getUsers, getUsersById, getUsersByIdIdentifiers, getUsersCustomActive, getUsersCustomBanned, getUsersCustomInactive, getUsersCustomUnverified, getUsersMe, type Options, postAdminLogin, postAdminNewToken, postGroups, postGroupsByIdPermissions, postInvites, postMemberships, postMembershipsByIdBranch, postMembershipsByIdZone, postOrganizations, postOrganizationsByOrganizationIdBranches, postOrganizationsByOrganizationIdZones, postPermissions, postProjects, postRoles, postRolesByIdPermissions, postSecretKeys, postUserPasswordsUpsert, postUsers, postUsersByIdIdentifierAdd, postUsersByIdIdentifierDelete, postUsersByIdNewVerificationToken, postUsersByIdPasswordChange, postUsersLogin, postUsersLoginSwitch, postUsersLogout, postUsersPasswordForgot, postUsersPasswordResetByToken, postUsersRegister, postUsersToken, postUsersVerifyByToken, putGroupsById, putGroupsByIdChangeId, putInvitesById, putInvitesByIdChangeId, putMembershipsByIdChangeId, putOrganizationsById, putOrganizationsByIdChangeId, putOrganizationsByOrganizationIdBranchesById, putOrganizationsByOrganizationIdBranchesByIdChangeId, putOrganizationsByOrganizationIdZonesById, putOrganizationsByOrganizationIdZonesByIdChangeId, putPermissionsById, putProjectsByProjectId, putProjectsByProjectIdChangeId, putRolesById, putRolesByIdChangeId, putUsersById, putUsersByIdChangeId, } from './sdk.gen';
2
- export type { ClientOptions, DeleteGroupsByGroupIdUsersByUserIdData, DeleteGroupsByGroupIdUsersByUserIdResponse, DeleteGroupsByGroupIdUsersByUserIdResponses, DeleteGroupsByIdData, DeleteGroupsByIdResponse, DeleteGroupsByIdResponses, DeleteInvitesByIdData, DeleteInvitesByIdResponse, DeleteInvitesByIdResponses, DeleteMembershipsByIdBranchData, DeleteMembershipsByIdBranchResponse, DeleteMembershipsByIdBranchResponses, DeleteMembershipsByIdData, DeleteMembershipsByIdResponse, DeleteMembershipsByIdResponses, DeleteMembershipsByIdZoneData, DeleteMembershipsByIdZoneResponse, DeleteMembershipsByIdZoneResponses, DeleteMembershipsData, DeleteMembershipsResponse, DeleteMembershipsResponses, DeleteOrganizationsByIdData, DeleteOrganizationsByIdResponse, DeleteOrganizationsByIdResponses, DeleteOrganizationsByOrganizationIdBranchesByIdData, DeleteOrganizationsByOrganizationIdBranchesByIdResponse, DeleteOrganizationsByOrganizationIdBranchesByIdResponses, DeleteOrganizationsByOrganizationIdZonesByIdData, DeleteOrganizationsByOrganizationIdZonesByIdResponse, DeleteOrganizationsByOrganizationIdZonesByIdResponses, DeletePermissionsByIdData, DeletePermissionsByIdResponse, DeletePermissionsByIdResponses, DeleteProjectsByProjectIdData, DeleteProjectsByProjectIdResponse, DeleteProjectsByProjectIdResponses, DeleteRolesByIdData, DeleteRolesByIdPermissionsData, DeleteRolesByIdPermissionsResponse, DeleteRolesByIdPermissionsResponses, DeleteRolesByIdResponse, DeleteRolesByIdResponses, DeleteSecretKeysByIdData, DeleteSecretKeysByIdResponse, DeleteSecretKeysByIdResponses, DeleteUsersByIdData, DeleteUsersByIdMembershipsByMembershipIdData, DeleteUsersByIdMembershipsByMembershipIdResponse, DeleteUsersByIdMembershipsByMembershipIdResponses, DeleteUsersByIdResponse, DeleteUsersByIdResponses, DeleteUsersData, DeleteUsersError, DeleteUsersErrors, DeleteUsersResponse, DeleteUsersResponses, GetData, GetGroupsByIdData, GetGroupsByIdPermissionsData, GetGroupsByIdPermissionsResponse, GetGroupsByIdPermissionsResponses, GetGroupsByIdResponse, GetGroupsByIdResponses, GetGroupsByIdUsersData, GetGroupsByIdUsersResponse, GetGroupsByIdUsersResponses, GetGroupsData, GetGroupsMyData, GetGroupsMyResponse, GetGroupsMyResponses, GetGroupsResponse, GetGroupsResponses, GetInvitesByIdData, GetInvitesByIdResponse, GetInvitesByIdResponses, GetInvitesData, GetInvitesResponse, GetInvitesResponses, GetMembershipsBranchByIdData, GetMembershipsBranchByIdResponse, GetMembershipsBranchByIdResponses, GetMembershipsByIdData, GetMembershipsByIdPermissionsData, GetMembershipsByIdPermissionsResponse, GetMembershipsByIdPermissionsResponses, GetMembershipsByIdResponse, GetMembershipsByIdResponses, GetMembershipsData, GetMembershipsMyData, GetMembershipsMyResponse, GetMembershipsMyResponses, GetMembershipsResponse, GetMembershipsResponses, GetMembershipsZoneByZoneIdData, GetMembershipsZoneByZoneIdResponse, GetMembershipsZoneByZoneIdResponses, GetOrganizationsByIdData, GetOrganizationsByIdResponse, GetOrganizationsByIdResponses, GetOrganizationsByOrganizationIdBranchesByIdData, GetOrganizationsByOrganizationIdBranchesByIdResponse, GetOrganizationsByOrganizationIdBranchesByIdResponses, GetOrganizationsByOrganizationIdBranchesData, GetOrganizationsByOrganizationIdBranchesMyData, GetOrganizationsByOrganizationIdBranchesMyResponse, GetOrganizationsByOrganizationIdBranchesMyResponses, GetOrganizationsByOrganizationIdBranchesResponse, GetOrganizationsByOrganizationIdBranchesResponses, GetOrganizationsByOrganizationIdCreatorData, GetOrganizationsByOrganizationIdCreatorResponse, GetOrganizationsByOrganizationIdCreatorResponses, GetOrganizationsByOrganizationIdMembersData, GetOrganizationsByOrganizationIdMembersResponse, GetOrganizationsByOrganizationIdMembersResponses, GetOrganizationsByOrganizationIdZonesByIdData, GetOrganizationsByOrganizationIdZonesByIdResponse, GetOrganizationsByOrganizationIdZonesByIdResponses, GetOrganizationsByOrganizationIdZonesData, GetOrganizationsByOrganizationIdZonesMyData, GetOrganizationsByOrganizationIdZonesMyResponse, GetOrganizationsByOrganizationIdZonesMyResponses, GetOrganizationsByOrganizationIdZonesResponse, GetOrganizationsByOrganizationIdZonesResponses, GetOrganizationsByOwnerByUserIdData, GetOrganizationsByOwnerByUserIdResponse, GetOrganizationsByOwnerByUserIdResponses, GetOrganizationsByUserByUserIdData, GetOrganizationsByUserByUserIdResponse, GetOrganizationsByUserByUserIdResponses, GetOrganizationsData, GetOrganizationsResponse, GetOrganizationsResponses, GetPermissionsByIdData, GetPermissionsByIdResponse, GetPermissionsByIdResponses, GetPermissionsData, GetPermissionsResponse, GetPermissionsResponses, GetProjectsByProjectIdData, GetProjectsByProjectIdResponse, GetProjectsByProjectIdResponses, GetProjectsData, GetProjectsResponse, GetProjectsResponses, GetResponse, GetResponses, GetRolesByIdData, GetRolesByIdPermissionsData, GetRolesByIdPermissionsResponse, GetRolesByIdPermissionsResponses, GetRolesByIdResponse, GetRolesByIdResponses, GetRolesByIdUsersData, GetRolesByIdUsersResponse, GetRolesByIdUsersResponses, GetRolesData, GetRolesResponse, GetRolesResponses, GetSecretKeysByIdData, GetSecretKeysByIdResponse, GetSecretKeysByIdResponses, GetSecretKeysData, GetSecretKeysResponse, GetSecretKeysResponses, GetUserPasswordsData, GetUserPasswordsResponse, GetUserPasswordsResponses, GetUsersByIdData, GetUsersByIdIdentifiersData, GetUsersByIdIdentifiersResponse, GetUsersByIdIdentifiersResponses, GetUsersByIdResponse, GetUsersByIdResponses, GetUsersCustomActiveData, GetUsersCustomActiveResponse, GetUsersCustomActiveResponses, GetUsersCustomBannedData, GetUsersCustomBannedResponse, GetUsersCustomBannedResponses, GetUsersCustomInactiveData, GetUsersCustomInactiveResponse, GetUsersCustomInactiveResponses, GetUsersCustomUnverifiedData, GetUsersCustomUnverifiedResponse, GetUsersCustomUnverifiedResponses, GetUsersData, GetUsersMeData, GetUsersMeResponse, GetUsersMeResponses, GetUsersResponse, GetUsersResponses, PostAdminLoginData, PostAdminLoginResponse, PostAdminLoginResponses, PostAdminNewTokenData, PostAdminNewTokenResponse, PostAdminNewTokenResponses, PostGroupsByIdPermissionsData, PostGroupsByIdPermissionsResponse, PostGroupsByIdPermissionsResponses, PostGroupsData, PostGroupsResponse, PostGroupsResponses, PostInvitesData, PostInvitesResponse, PostInvitesResponses, PostMembershipsByIdBranchData, PostMembershipsByIdBranchResponse, PostMembershipsByIdBranchResponses, PostMembershipsByIdZoneData, PostMembershipsByIdZoneResponse, PostMembershipsByIdZoneResponses, PostMembershipsData, PostMembershipsResponse, PostMembershipsResponses, PostOrganizationsByOrganizationIdBranchesData, PostOrganizationsByOrganizationIdBranchesResponse, PostOrganizationsByOrganizationIdBranchesResponses, PostOrganizationsByOrganizationIdZonesData, PostOrganizationsByOrganizationIdZonesResponse, PostOrganizationsByOrganizationIdZonesResponses, PostOrganizationsData, PostOrganizationsResponse, PostOrganizationsResponses, PostPermissionsData, PostPermissionsResponse, PostPermissionsResponses, PostProjectsData, PostProjectsResponse, PostProjectsResponses, PostRolesByIdPermissionsData, PostRolesByIdPermissionsResponse, PostRolesByIdPermissionsResponses, PostRolesData, PostRolesError, PostRolesErrors, PostRolesResponse, PostRolesResponses, PostSecretKeysData, PostSecretKeysResponse, PostSecretKeysResponses, PostUserPasswordsUpsertData, PostUserPasswordsUpsertResponse, PostUserPasswordsUpsertResponses, PostUsersByIdIdentifierAddData, PostUsersByIdIdentifierAddResponse, PostUsersByIdIdentifierAddResponses, PostUsersByIdIdentifierDeleteData, PostUsersByIdIdentifierDeleteResponse, PostUsersByIdIdentifierDeleteResponses, PostUsersByIdNewVerificationTokenData, PostUsersByIdNewVerificationTokenResponse, PostUsersByIdNewVerificationTokenResponses, PostUsersByIdPasswordChangeData, PostUsersByIdPasswordChangeResponse, PostUsersByIdPasswordChangeResponses, PostUsersData, PostUsersLoginData, PostUsersLoginResponse, PostUsersLoginResponses, PostUsersLoginSwitchData, PostUsersLoginSwitchResponse, PostUsersLoginSwitchResponses, PostUsersLogoutData, PostUsersLogoutResponse, PostUsersLogoutResponses, PostUsersPasswordForgotData, PostUsersPasswordForgotResponse, PostUsersPasswordForgotResponses, PostUsersPasswordResetByTokenData, PostUsersPasswordResetByTokenResponse, PostUsersPasswordResetByTokenResponses, PostUsersRegisterData, PostUsersRegisterResponse, PostUsersRegisterResponses, PostUsersResponse, PostUsersResponses, PostUsersTokenData, PostUsersTokenResponse, PostUsersTokenResponses, PostUsersVerifyByTokenData, PostUsersVerifyByTokenResponse, PostUsersVerifyByTokenResponses, PutGroupsByIdChangeIdData, PutGroupsByIdChangeIdResponse, PutGroupsByIdChangeIdResponses, PutGroupsByIdData, PutGroupsByIdResponse, PutGroupsByIdResponses, PutInvitesByIdChangeIdData, PutInvitesByIdChangeIdResponse, PutInvitesByIdChangeIdResponses, PutInvitesByIdData, PutInvitesByIdResponse, PutInvitesByIdResponses, PutMembershipsByIdChangeIdData, PutMembershipsByIdChangeIdResponse, PutMembershipsByIdChangeIdResponses, PutOrganizationsByIdChangeIdData, PutOrganizationsByIdChangeIdResponse, PutOrganizationsByIdChangeIdResponses, PutOrganizationsByIdData, PutOrganizationsByIdResponse, PutOrganizationsByIdResponses, PutOrganizationsByOrganizationIdBranchesByIdChangeIdData, PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponse, PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponses, PutOrganizationsByOrganizationIdBranchesByIdData, PutOrganizationsByOrganizationIdBranchesByIdResponse, PutOrganizationsByOrganizationIdBranchesByIdResponses, PutOrganizationsByOrganizationIdZonesByIdChangeIdData, PutOrganizationsByOrganizationIdZonesByIdChangeIdResponse, PutOrganizationsByOrganizationIdZonesByIdChangeIdResponses, PutOrganizationsByOrganizationIdZonesByIdData, PutOrganizationsByOrganizationIdZonesByIdResponse, PutOrganizationsByOrganizationIdZonesByIdResponses, PutPermissionsByIdData, PutPermissionsByIdResponse, PutPermissionsByIdResponses, PutProjectsByProjectIdChangeIdData, PutProjectsByProjectIdChangeIdResponse, PutProjectsByProjectIdChangeIdResponses, PutProjectsByProjectIdData, PutProjectsByProjectIdResponse, PutProjectsByProjectIdResponses, PutRolesByIdChangeIdData, PutRolesByIdChangeIdResponse, PutRolesByIdChangeIdResponses, PutRolesByIdData, PutRolesByIdResponse, PutRolesByIdResponses, PutUsersByIdChangeIdData, PutUsersByIdChangeIdResponse, PutUsersByIdChangeIdResponses, PutUsersByIdData, PutUsersByIdResponse, PutUsersByIdResponses, } from './types.gen';
@@ -1,2 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export { deleteGroupsByGroupIdUsersByUserId, deleteGroupsById, deleteInvitesById, deleteMemberships, deleteMembershipsById, deleteMembershipsByIdBranch, deleteMembershipsByIdZone, deleteOrganizationsById, deleteOrganizationsByOrganizationIdBranchesById, deleteOrganizationsByOrganizationIdZonesById, deletePermissionsById, deleteProjectsByProjectId, deleteRolesById, deleteRolesByIdPermissions, deleteSecretKeysById, deleteUsers, deleteUsersById, deleteUsersByIdMembershipsByMembershipId, get, getGroups, getGroupsById, getGroupsByIdPermissions, getGroupsByIdUsers, getGroupsMy, getInvites, getInvitesById, getMemberships, getMembershipsBranchById, getMembershipsById, getMembershipsByIdPermissions, getMembershipsMy, getMembershipsZoneByZoneId, getOrganizations, getOrganizationsById, getOrganizationsByOrganizationIdBranches, getOrganizationsByOrganizationIdBranchesById, getOrganizationsByOrganizationIdBranchesMy, getOrganizationsByOrganizationIdCreator, getOrganizationsByOrganizationIdMembers, getOrganizationsByOrganizationIdZones, getOrganizationsByOrganizationIdZonesById, getOrganizationsByOrganizationIdZonesMy, getOrganizationsByOwnerByUserId, getOrganizationsByUserByUserId, getPermissions, getPermissionsById, getProjects, getProjectsByProjectId, getRoles, getRolesById, getRolesByIdPermissions, getRolesByIdUsers, getSecretKeys, getSecretKeysById, getUserPasswords, getUsers, getUsersById, getUsersByIdIdentifiers, getUsersCustomActive, getUsersCustomBanned, getUsersCustomInactive, getUsersCustomUnverified, getUsersMe, postAdminLogin, postAdminNewToken, postGroups, postGroupsByIdPermissions, postInvites, postMemberships, postMembershipsByIdBranch, postMembershipsByIdZone, postOrganizations, postOrganizationsByOrganizationIdBranches, postOrganizationsByOrganizationIdZones, postPermissions, postProjects, postRoles, postRolesByIdPermissions, postSecretKeys, postUserPasswordsUpsert, postUsers, postUsersByIdIdentifierAdd, postUsersByIdIdentifierDelete, postUsersByIdNewVerificationToken, postUsersByIdPasswordChange, postUsersLogin, postUsersLoginSwitch, postUsersLogout, postUsersPasswordForgot, postUsersPasswordResetByToken, postUsersRegister, postUsersToken, postUsersVerifyByToken, putGroupsById, putGroupsByIdChangeId, putInvitesById, putInvitesByIdChangeId, putMembershipsByIdChangeId, putOrganizationsById, putOrganizationsByIdChangeId, putOrganizationsByOrganizationIdBranchesById, putOrganizationsByOrganizationIdBranchesByIdChangeId, putOrganizationsByOrganizationIdZonesById, putOrganizationsByOrganizationIdZonesByIdChangeId, putPermissionsById, putProjectsByProjectId, putProjectsByProjectIdChangeId, putRolesById, putRolesByIdChangeId, putUsersById, putUsersByIdChangeId, } from './sdk.gen';