@katerai/sdk 0.6.0 → 0.8.0
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.
- package/CHANGELOG.md +34 -0
- package/README.md +23 -16
- package/client.d.mts +10 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -13
- package/client.d.ts.map +1 -1
- package/client.js +37 -15
- package/client.js.map +1 -1
- package/client.mjs +37 -15
- package/client.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/index.d.mts +0 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -2
- package/resources/index.mjs.map +1 -1
- package/resources/v1/compiler.d.mts +1116 -0
- package/resources/v1/compiler.d.mts.map +1 -0
- package/resources/v1/compiler.d.ts +1116 -0
- package/resources/v1/compiler.d.ts.map +1 -0
- package/resources/v1/compiler.js +70 -0
- package/resources/v1/compiler.js.map +1 -0
- package/resources/v1/compiler.mjs +66 -0
- package/resources/v1/compiler.mjs.map +1 -0
- package/resources/v1/connections.d.mts +216 -1
- package/resources/v1/connections.d.mts.map +1 -1
- package/resources/v1/connections.d.ts +216 -1
- package/resources/v1/connections.d.ts.map +1 -1
- package/resources/v1/connections.js +22 -2
- package/resources/v1/connections.js.map +1 -1
- package/resources/v1/connections.mjs +20 -1
- package/resources/v1/connections.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -6
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -6
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +7 -13
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +2 -5
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/tenants/groups.d.mts +5 -5
- package/resources/v1/tenants/groups.d.mts.map +1 -1
- package/resources/v1/tenants/groups.d.ts +5 -5
- package/resources/v1/tenants/groups.d.ts.map +1 -1
- package/resources/v1/tenants/groups.js +1 -1
- package/resources/v1/tenants/groups.js.map +1 -1
- package/resources/v1/tenants/groups.mjs +1 -1
- package/resources/v1/tenants/groups.mjs.map +1 -1
- package/resources/v1/tenants/index.d.mts +2 -4
- package/resources/v1/tenants/index.d.mts.map +1 -1
- package/resources/v1/tenants/index.d.ts +2 -4
- package/resources/v1/tenants/index.d.ts.map +1 -1
- package/resources/v1/tenants/index.js +1 -5
- package/resources/v1/tenants/index.js.map +1 -1
- package/resources/v1/tenants/index.mjs +0 -2
- package/resources/v1/tenants/index.mjs.map +1 -1
- package/resources/v1/tenants/tenants.d.mts +72 -151
- package/resources/v1/tenants/tenants.d.mts.map +1 -1
- package/resources/v1/tenants/tenants.d.ts +72 -151
- package/resources/v1/tenants/tenants.d.ts.map +1 -1
- package/resources/v1/tenants/tenants.js +29 -72
- package/resources/v1/tenants/tenants.js.map +1 -1
- package/resources/v1/tenants/tenants.mjs +29 -72
- package/resources/v1/tenants/tenants.mjs.map +1 -1
- package/resources/v1/v1.d.mts +9 -21
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +9 -21
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +6 -18
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +6 -18
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +48 -23
- package/src/internal/utils/log.ts +1 -0
- package/src/resources/index.ts +0 -2
- package/src/resources/v1/compiler.ts +1484 -0
- package/src/resources/v1/connections.ts +277 -1
- package/src/resources/v1/index.ts +23 -43
- package/src/resources/v1/tenants/groups.ts +5 -5
- package/src/resources/v1/tenants/index.ts +5 -24
- package/src/resources/v1/tenants/tenants.ts +89 -213
- package/src/resources/v1/v1.ts +49 -101
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/healthz.d.mts +0 -16
- package/resources/healthz.d.mts.map +0 -1
- package/resources/healthz.d.ts +0 -16
- package/resources/healthz.d.ts.map +0 -1
- package/resources/healthz.js +0 -15
- package/resources/healthz.js.map +0 -1
- package/resources/healthz.mjs +0 -11
- package/resources/healthz.mjs.map +0 -1
- package/resources/readyz.d.mts +0 -16
- package/resources/readyz.d.mts.map +0 -1
- package/resources/readyz.d.ts +0 -16
- package/resources/readyz.d.ts.map +0 -1
- package/resources/readyz.js +0 -15
- package/resources/readyz.js.map +0 -1
- package/resources/readyz.mjs +0 -11
- package/resources/readyz.mjs.map +0 -1
- package/resources/v1/connections/connections.d.mts +0 -1470
- package/resources/v1/connections/connections.d.mts.map +0 -1
- package/resources/v1/connections/connections.d.ts +0 -1470
- package/resources/v1/connections/connections.d.ts.map +0 -1
- package/resources/v1/connections/connections.js +0 -163
- package/resources/v1/connections/connections.js.map +0 -1
- package/resources/v1/connections/connections.mjs +0 -158
- package/resources/v1/connections/connections.mjs.map +0 -1
- package/resources/v1/connections/databases.d.mts +0 -25
- package/resources/v1/connections/databases.d.mts.map +0 -1
- package/resources/v1/connections/databases.d.ts +0 -25
- package/resources/v1/connections/databases.d.ts.map +0 -1
- package/resources/v1/connections/databases.js +0 -26
- package/resources/v1/connections/databases.js.map +0 -1
- package/resources/v1/connections/databases.mjs +0 -22
- package/resources/v1/connections/databases.mjs.map +0 -1
- package/resources/v1/connections/index.d.mts +0 -5
- package/resources/v1/connections/index.d.mts.map +0 -1
- package/resources/v1/connections/index.d.ts +0 -5
- package/resources/v1/connections/index.d.ts.map +0 -1
- package/resources/v1/connections/index.js +0 -13
- package/resources/v1/connections/index.js.map +0 -1
- package/resources/v1/connections/index.mjs +0 -6
- package/resources/v1/connections/index.mjs.map +0 -1
- package/resources/v1/connections/views.d.mts +0 -77
- package/resources/v1/connections/views.d.mts.map +0 -1
- package/resources/v1/connections/views.d.ts +0 -77
- package/resources/v1/connections/views.d.ts.map +0 -1
- package/resources/v1/connections/views.js +0 -24
- package/resources/v1/connections/views.js.map +0 -1
- package/resources/v1/connections/views.mjs +0 -20
- package/resources/v1/connections/views.mjs.map +0 -1
- package/resources/v1/connections/yaml.d.mts +0 -57
- package/resources/v1/connections/yaml.d.mts.map +0 -1
- package/resources/v1/connections/yaml.d.ts +0 -57
- package/resources/v1/connections/yaml.d.ts.map +0 -1
- package/resources/v1/connections/yaml.js +0 -22
- package/resources/v1/connections/yaml.js.map +0 -1
- package/resources/v1/connections/yaml.mjs +0 -18
- package/resources/v1/connections/yaml.mjs.map +0 -1
- package/resources/v1/github/github.d.mts +0 -99
- package/resources/v1/github/github.d.mts.map +0 -1
- package/resources/v1/github/github.d.ts +0 -99
- package/resources/v1/github/github.d.ts.map +0 -1
- package/resources/v1/github/github.js +0 -49
- package/resources/v1/github/github.js.map +0 -1
- package/resources/v1/github/github.mjs +0 -44
- package/resources/v1/github/github.mjs.map +0 -1
- package/resources/v1/github/index.d.mts +0 -5
- package/resources/v1/github/index.d.mts.map +0 -1
- package/resources/v1/github/index.d.ts +0 -5
- package/resources/v1/github/index.d.ts.map +0 -1
- package/resources/v1/github/index.js +0 -13
- package/resources/v1/github/index.js.map +0 -1
- package/resources/v1/github/index.mjs +0 -6
- package/resources/v1/github/index.mjs.map +0 -1
- package/resources/v1/github/repos.d.mts +0 -54
- package/resources/v1/github/repos.d.mts.map +0 -1
- package/resources/v1/github/repos.d.ts +0 -54
- package/resources/v1/github/repos.d.ts.map +0 -1
- package/resources/v1/github/repos.js +0 -22
- package/resources/v1/github/repos.js.map +0 -1
- package/resources/v1/github/repos.mjs +0 -18
- package/resources/v1/github/repos.mjs.map +0 -1
- package/resources/v1/github/scaffold.d.mts +0 -29
- package/resources/v1/github/scaffold.d.mts.map +0 -1
- package/resources/v1/github/scaffold.d.ts +0 -29
- package/resources/v1/github/scaffold.d.ts.map +0 -1
- package/resources/v1/github/scaffold.js +0 -21
- package/resources/v1/github/scaffold.js.map +0 -1
- package/resources/v1/github/scaffold.mjs +0 -17
- package/resources/v1/github/scaffold.mjs.map +0 -1
- package/resources/v1/github/webhooks.d.mts +0 -28
- package/resources/v1/github/webhooks.d.mts.map +0 -1
- package/resources/v1/github/webhooks.d.ts +0 -28
- package/resources/v1/github/webhooks.d.ts.map +0 -1
- package/resources/v1/github/webhooks.js +0 -27
- package/resources/v1/github/webhooks.js.map +0 -1
- package/resources/v1/github/webhooks.mjs +0 -23
- package/resources/v1/github/webhooks.mjs.map +0 -1
- package/resources/v1/github.d.mts +0 -2
- package/resources/v1/github.d.mts.map +0 -1
- package/resources/v1/github.d.ts +0 -2
- package/resources/v1/github.d.ts.map +0 -1
- package/resources/v1/github.js +0 -6
- package/resources/v1/github.js.map +0 -1
- package/resources/v1/github.mjs +0 -3
- package/resources/v1/github.mjs.map +0 -1
- package/resources/v1/groups/groups.d.mts +0 -162
- package/resources/v1/groups/groups.d.mts.map +0 -1
- package/resources/v1/groups/groups.d.ts +0 -162
- package/resources/v1/groups/groups.d.ts.map +0 -1
- package/resources/v1/groups/groups.js +0 -81
- package/resources/v1/groups/groups.js.map +0 -1
- package/resources/v1/groups/groups.mjs +0 -76
- package/resources/v1/groups/groups.mjs.map +0 -1
- package/resources/v1/groups/index.d.mts +0 -3
- package/resources/v1/groups/index.d.mts.map +0 -1
- package/resources/v1/groups/index.d.ts +0 -3
- package/resources/v1/groups/index.d.ts.map +0 -1
- package/resources/v1/groups/index.js +0 -9
- package/resources/v1/groups/index.js.map +0 -1
- package/resources/v1/groups/index.mjs +0 -4
- package/resources/v1/groups/index.mjs.map +0 -1
- package/resources/v1/groups/tenants.d.mts +0 -55
- package/resources/v1/groups/tenants.d.mts.map +0 -1
- package/resources/v1/groups/tenants.d.ts +0 -55
- package/resources/v1/groups/tenants.d.ts.map +0 -1
- package/resources/v1/groups/tenants.js +0 -39
- package/resources/v1/groups/tenants.js.map +0 -1
- package/resources/v1/groups/tenants.mjs +0 -35
- package/resources/v1/groups/tenants.mjs.map +0 -1
- package/resources/v1/groups.d.mts +0 -2
- package/resources/v1/groups.d.mts.map +0 -1
- package/resources/v1/groups.d.ts +0 -2
- package/resources/v1/groups.d.ts.map +0 -1
- package/resources/v1/groups.js +0 -6
- package/resources/v1/groups.js.map +0 -1
- package/resources/v1/groups.mjs +0 -3
- package/resources/v1/groups.mjs.map +0 -1
- package/resources/v1/me.d.mts +0 -43
- package/resources/v1/me.d.mts.map +0 -1
- package/resources/v1/me.d.ts +0 -43
- package/resources/v1/me.d.ts.map +0 -1
- package/resources/v1/me.js +0 -20
- package/resources/v1/me.js.map +0 -1
- package/resources/v1/me.mjs +0 -16
- package/resources/v1/me.mjs.map +0 -1
- package/resources/v1/org/client.d.mts +0 -53
- package/resources/v1/org/client.d.mts.map +0 -1
- package/resources/v1/org/client.d.ts +0 -53
- package/resources/v1/org/client.d.ts.map +0 -1
- package/resources/v1/org/client.js +0 -25
- package/resources/v1/org/client.js.map +0 -1
- package/resources/v1/org/client.mjs +0 -21
- package/resources/v1/org/client.mjs.map +0 -1
- package/resources/v1/org/index.d.mts +0 -4
- package/resources/v1/org/index.d.mts.map +0 -1
- package/resources/v1/org/index.d.ts +0 -4
- package/resources/v1/org/index.d.ts.map +0 -1
- package/resources/v1/org/index.js +0 -11
- package/resources/v1/org/index.js.map +0 -1
- package/resources/v1/org/index.mjs +0 -5
- package/resources/v1/org/index.mjs.map +0 -1
- package/resources/v1/org/org.d.mts +0 -14
- package/resources/v1/org/org.d.mts.map +0 -1
- package/resources/v1/org/org.d.ts +0 -14
- package/resources/v1/org/org.d.ts.map +0 -1
- package/resources/v1/org/org.js +0 -21
- package/resources/v1/org/org.js.map +0 -1
- package/resources/v1/org/org.mjs +0 -16
- package/resources/v1/org/org.mjs.map +0 -1
- package/resources/v1/org/users.d.mts +0 -87
- package/resources/v1/org/users.d.mts.map +0 -1
- package/resources/v1/org/users.d.ts +0 -87
- package/resources/v1/org/users.d.ts.map +0 -1
- package/resources/v1/org/users.js +0 -60
- package/resources/v1/org/users.js.map +0 -1
- package/resources/v1/org/users.mjs +0 -56
- package/resources/v1/org/users.mjs.map +0 -1
- package/resources/v1/org.d.mts +0 -2
- package/resources/v1/org.d.mts.map +0 -1
- package/resources/v1/org.d.ts +0 -2
- package/resources/v1/org.d.ts.map +0 -1
- package/resources/v1/org.js +0 -6
- package/resources/v1/org.js.map +0 -1
- package/resources/v1/org.mjs +0 -3
- package/resources/v1/org.mjs.map +0 -1
- package/resources/v1/tenants/batch.d.mts +0 -159
- package/resources/v1/tenants/batch.d.mts.map +0 -1
- package/resources/v1/tenants/batch.d.ts +0 -159
- package/resources/v1/tenants/batch.d.ts.map +0 -1
- package/resources/v1/tenants/batch.js +0 -42
- package/resources/v1/tenants/batch.js.map +0 -1
- package/resources/v1/tenants/batch.mjs +0 -38
- package/resources/v1/tenants/batch.mjs.map +0 -1
- package/resources/v1/tenants/import.d.mts +0 -126
- package/resources/v1/tenants/import.d.mts.map +0 -1
- package/resources/v1/tenants/import.d.ts +0 -126
- package/resources/v1/tenants/import.d.ts.map +0 -1
- package/resources/v1/tenants/import.js +0 -50
- package/resources/v1/tenants/import.js.map +0 -1
- package/resources/v1/tenants/import.mjs +0 -46
- package/resources/v1/tenants/import.mjs.map +0 -1
- package/src/resources/healthz.ts +0 -20
- package/src/resources/readyz.ts +0 -20
- package/src/resources/v1/connections/connections.ts +0 -1905
- package/src/resources/v1/connections/databases.ts +0 -42
- package/src/resources/v1/connections/index.ts +0 -33
- package/src/resources/v1/connections/views.ts +0 -112
- package/src/resources/v1/connections/yaml.ts +0 -81
- package/src/resources/v1/github/github.ts +0 -165
- package/src/resources/v1/github/index.ts +0 -20
- package/src/resources/v1/github/repos.ts +0 -85
- package/src/resources/v1/github/scaffold.ts +0 -44
- package/src/resources/v1/github/webhooks.ts +0 -60
- package/src/resources/v1/github.ts +0 -3
- package/src/resources/v1/groups/groups.ts +0 -218
- package/src/resources/v1/groups/index.ts +0 -10
- package/src/resources/v1/groups/tenants.ts +0 -78
- package/src/resources/v1/groups.ts +0 -3
- package/src/resources/v1/me.ts +0 -62
- package/src/resources/v1/org/client.ts +0 -81
- package/src/resources/v1/org/index.ts +0 -11
- package/src/resources/v1/org/org.ts +0 -32
- package/src/resources/v1/org/users.ts +0 -127
- package/src/resources/v1/org.ts +0 -3
- package/src/resources/v1/tenants/batch.ts +0 -200
- package/src/resources/v1/tenants/import.ts +0 -158
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Users = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
-
class Users extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new user in the current organization.
|
|
10
|
-
*
|
|
11
|
-
* Creates the user in PropelAuth and adds them to this organization. The user will
|
|
12
|
-
* receive an email to confirm their email address.
|
|
13
|
-
*
|
|
14
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
15
|
-
*/
|
|
16
|
-
create(body, options) {
|
|
17
|
-
return this._client.post('/api/v1/org/users', { body, ...options });
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get a specific user in the current organization.
|
|
21
|
-
*
|
|
22
|
-
* RLS: Filtered to current client, can see any user (ClientRLSDB).
|
|
23
|
-
*/
|
|
24
|
-
retrieve(userID, options) {
|
|
25
|
-
return this._client.get((0, path_1.path) `/api/v1/org/users/${userID}`, options);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Update a user in the current organization.
|
|
29
|
-
*
|
|
30
|
-
* Different PropelAuth methods are called depending on what's being updated:
|
|
31
|
-
*
|
|
32
|
-
* - Email changes require re-confirmation
|
|
33
|
-
* - Password changes take effect immediately
|
|
34
|
-
* - Profile fields (name, username, picture) are updated together
|
|
35
|
-
* - Role changes affect organization permissions
|
|
36
|
-
*
|
|
37
|
-
* RLS: Filtered to current client, can update any user (ClientRLSDB).
|
|
38
|
-
*/
|
|
39
|
-
update(userID, body, options) {
|
|
40
|
-
return this._client.patch((0, path_1.path) `/api/v1/org/users/${userID}`, { body, ...options });
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* List all users in the current organization.
|
|
44
|
-
*
|
|
45
|
-
* RLS: Filtered to current client, sees all users (ClientRLSDB).
|
|
46
|
-
*/
|
|
47
|
-
list(options) {
|
|
48
|
-
return this._client.get('/api/v1/org/users', options);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Soft delete a user from the current organization.
|
|
52
|
-
*
|
|
53
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
54
|
-
*/
|
|
55
|
-
delete(userID, options) {
|
|
56
|
-
return this._client.delete((0, path_1.path) `/api/v1/org/users/${userID}`, options);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.Users = Users;
|
|
60
|
-
//# sourceMappingURL=users.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../../src/resources/v1/org/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAvDD,sBAuDC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
-
export class Users extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new user in the current organization.
|
|
7
|
-
*
|
|
8
|
-
* Creates the user in PropelAuth and adds them to this organization. The user will
|
|
9
|
-
* receive an email to confirm their email address.
|
|
10
|
-
*
|
|
11
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
12
|
-
*/
|
|
13
|
-
create(body, options) {
|
|
14
|
-
return this._client.post('/api/v1/org/users', { body, ...options });
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get a specific user in the current organization.
|
|
18
|
-
*
|
|
19
|
-
* RLS: Filtered to current client, can see any user (ClientRLSDB).
|
|
20
|
-
*/
|
|
21
|
-
retrieve(userID, options) {
|
|
22
|
-
return this._client.get(path `/api/v1/org/users/${userID}`, options);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Update a user in the current organization.
|
|
26
|
-
*
|
|
27
|
-
* Different PropelAuth methods are called depending on what's being updated:
|
|
28
|
-
*
|
|
29
|
-
* - Email changes require re-confirmation
|
|
30
|
-
* - Password changes take effect immediately
|
|
31
|
-
* - Profile fields (name, username, picture) are updated together
|
|
32
|
-
* - Role changes affect organization permissions
|
|
33
|
-
*
|
|
34
|
-
* RLS: Filtered to current client, can update any user (ClientRLSDB).
|
|
35
|
-
*/
|
|
36
|
-
update(userID, body, options) {
|
|
37
|
-
return this._client.patch(path `/api/v1/org/users/${userID}`, { body, ...options });
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* List all users in the current organization.
|
|
41
|
-
*
|
|
42
|
-
* RLS: Filtered to current client, sees all users (ClientRLSDB).
|
|
43
|
-
*/
|
|
44
|
-
list(options) {
|
|
45
|
-
return this._client.get('/api/v1/org/users', options);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Soft delete a user from the current organization.
|
|
49
|
-
*
|
|
50
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
51
|
-
*/
|
|
52
|
-
delete(userID, options) {
|
|
53
|
-
return this._client.delete(path `/api/v1/org/users/${userID}`, options);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=users.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"users.mjs","sourceRoot":"","sources":["../../../src/resources/v1/org/users.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,qBAAqB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
package/resources/v1/org.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.d.mts","sourceRoot":"","sources":["../../src/resources/v1/org.ts"],"names":[],"mappings":""}
|
package/resources/v1/org.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.d.ts","sourceRoot":"","sources":["../../src/resources/v1/org.ts"],"names":[],"mappings":""}
|
package/resources/v1/org.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
-
tslib_1.__exportStar(require("./org/index.js"), exports);
|
|
6
|
-
//# sourceMappingURL=org.js.map
|
package/resources/v1/org.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.js","sourceRoot":"","sources":["../../src/resources/v1/org.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAA4B"}
|
package/resources/v1/org.mjs
DELETED
package/resources/v1/org.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.mjs","sourceRoot":"","sources":["../../src/resources/v1/org.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as TenantsAPI from "./tenants.mjs";
|
|
3
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
-
export declare class Batch extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create multiple tenants in a single request.
|
|
8
|
-
*
|
|
9
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
10
|
-
* Returns lists of succeeded and failed operations.
|
|
11
|
-
*
|
|
12
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
13
|
-
*/
|
|
14
|
-
create(body: BatchCreateParams, options?: RequestOptions): APIPromise<BatchCreateResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* Update multiple tenants in a single request.
|
|
17
|
-
*
|
|
18
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
19
|
-
* Returns lists of succeeded and failed operations.
|
|
20
|
-
*
|
|
21
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
22
|
-
*/
|
|
23
|
-
update(body: BatchUpdateParams, options?: RequestOptions): APIPromise<BatchUpdateResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Delete multiple tenants in a single request.
|
|
26
|
-
*
|
|
27
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
28
|
-
* Returns lists of succeeded and failed operations.
|
|
29
|
-
*
|
|
30
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
31
|
-
*/
|
|
32
|
-
delete(body: BatchDeleteParams, options?: RequestOptions): APIPromise<BatchDeleteResponse>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Failed tenant operation in batch response.
|
|
36
|
-
*/
|
|
37
|
-
export interface BatchTenantError {
|
|
38
|
-
/**
|
|
39
|
-
* Error code
|
|
40
|
-
*/
|
|
41
|
-
code: string;
|
|
42
|
-
/**
|
|
43
|
-
* Error message
|
|
44
|
-
*/
|
|
45
|
-
message: string;
|
|
46
|
-
/**
|
|
47
|
-
* Index in request array (for create operations)
|
|
48
|
-
*/
|
|
49
|
-
index?: number | null;
|
|
50
|
-
/**
|
|
51
|
-
* Tenant ID (for update/delete operations)
|
|
52
|
-
*/
|
|
53
|
-
tenant_id?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
* Tenant key (for create operations)
|
|
56
|
-
*/
|
|
57
|
-
tenant_key?: string | null;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Successful tenant operation in batch response.
|
|
61
|
-
*/
|
|
62
|
-
export interface BatchTenantSuccess {
|
|
63
|
-
/**
|
|
64
|
-
* Tenant ID
|
|
65
|
-
*/
|
|
66
|
-
tenant_id: string;
|
|
67
|
-
/**
|
|
68
|
-
* Response model for a single tenant.
|
|
69
|
-
*/
|
|
70
|
-
tenant?: TenantsAPI.Tenant | null;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Response model for batch tenant creation.
|
|
74
|
-
*/
|
|
75
|
-
export interface BatchCreateResponse {
|
|
76
|
-
/**
|
|
77
|
-
* Failed tenant creations
|
|
78
|
-
*/
|
|
79
|
-
failed: Array<BatchTenantError>;
|
|
80
|
-
/**
|
|
81
|
-
* Successfully created tenants
|
|
82
|
-
*/
|
|
83
|
-
succeeded: Array<BatchTenantSuccess>;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Response model for batch tenant updates.
|
|
87
|
-
*/
|
|
88
|
-
export interface BatchUpdateResponse {
|
|
89
|
-
/**
|
|
90
|
-
* Failed tenant updates
|
|
91
|
-
*/
|
|
92
|
-
failed: Array<BatchTenantError>;
|
|
93
|
-
/**
|
|
94
|
-
* Successfully updated tenants
|
|
95
|
-
*/
|
|
96
|
-
succeeded: Array<BatchTenantSuccess>;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Response model for batch tenant deletions.
|
|
100
|
-
*/
|
|
101
|
-
export interface BatchDeleteResponse {
|
|
102
|
-
/**
|
|
103
|
-
* Failed tenant deletions
|
|
104
|
-
*/
|
|
105
|
-
failed: Array<BatchTenantError>;
|
|
106
|
-
/**
|
|
107
|
-
* Successfully deleted tenants
|
|
108
|
-
*/
|
|
109
|
-
succeeded: Array<BatchTenantSuccess>;
|
|
110
|
-
}
|
|
111
|
-
export interface BatchCreateParams {
|
|
112
|
-
/**
|
|
113
|
-
* List of tenants to create
|
|
114
|
-
*/
|
|
115
|
-
tenants: Array<TenantsAPI.CreateTenant>;
|
|
116
|
-
}
|
|
117
|
-
export interface BatchUpdateParams {
|
|
118
|
-
/**
|
|
119
|
-
* List of tenant updates
|
|
120
|
-
*/
|
|
121
|
-
tenants: Array<BatchUpdateParams.Tenant>;
|
|
122
|
-
}
|
|
123
|
-
export declare namespace BatchUpdateParams {
|
|
124
|
-
/**
|
|
125
|
-
* Single tenant update in a batch operation.
|
|
126
|
-
*/
|
|
127
|
-
interface Tenant {
|
|
128
|
-
/**
|
|
129
|
-
* Tenant ID to update
|
|
130
|
-
*/
|
|
131
|
-
tenant_id: string;
|
|
132
|
-
/**
|
|
133
|
-
* Connection ID for database association (required with database_name)
|
|
134
|
-
*/
|
|
135
|
-
connection_id?: string | null;
|
|
136
|
-
/**
|
|
137
|
-
* Database name for association (required with connection_id)
|
|
138
|
-
*/
|
|
139
|
-
database_name?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
* New list of group names (replaces all existing associations)
|
|
142
|
-
*/
|
|
143
|
-
group_names?: Array<string> | null;
|
|
144
|
-
/**
|
|
145
|
-
* New human-readable tenant name
|
|
146
|
-
*/
|
|
147
|
-
tenant_name?: string | null;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
export interface BatchDeleteParams {
|
|
151
|
-
/**
|
|
152
|
-
* List of tenant IDs to delete
|
|
153
|
-
*/
|
|
154
|
-
tenant_ids: Array<string>;
|
|
155
|
-
}
|
|
156
|
-
export declare namespace Batch {
|
|
157
|
-
export { type BatchTenantError as BatchTenantError, type BatchTenantSuccess as BatchTenantSuccess, type BatchCreateResponse as BatchCreateResponse, type BatchUpdateResponse as BatchUpdateResponse, type BatchDeleteResponse as BatchDeleteResponse, type BatchCreateParams as BatchCreateParams, type BatchUpdateParams as BatchUpdateParams, type BatchDeleteParams as BatchDeleteParams, };
|
|
158
|
-
}
|
|
159
|
-
//# sourceMappingURL=batch.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/batch.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG3F;AAED;;GAEG;AAC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AM;QACrB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE9B;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE9B;;WAEG;QACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAEnC;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as TenantsAPI from "./tenants.js";
|
|
3
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
-
export declare class Batch extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create multiple tenants in a single request.
|
|
8
|
-
*
|
|
9
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
10
|
-
* Returns lists of succeeded and failed operations.
|
|
11
|
-
*
|
|
12
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
13
|
-
*/
|
|
14
|
-
create(body: BatchCreateParams, options?: RequestOptions): APIPromise<BatchCreateResponse>;
|
|
15
|
-
/**
|
|
16
|
-
* Update multiple tenants in a single request.
|
|
17
|
-
*
|
|
18
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
19
|
-
* Returns lists of succeeded and failed operations.
|
|
20
|
-
*
|
|
21
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
22
|
-
*/
|
|
23
|
-
update(body: BatchUpdateParams, options?: RequestOptions): APIPromise<BatchUpdateResponse>;
|
|
24
|
-
/**
|
|
25
|
-
* Delete multiple tenants in a single request.
|
|
26
|
-
*
|
|
27
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
28
|
-
* Returns lists of succeeded and failed operations.
|
|
29
|
-
*
|
|
30
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
31
|
-
*/
|
|
32
|
-
delete(body: BatchDeleteParams, options?: RequestOptions): APIPromise<BatchDeleteResponse>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Failed tenant operation in batch response.
|
|
36
|
-
*/
|
|
37
|
-
export interface BatchTenantError {
|
|
38
|
-
/**
|
|
39
|
-
* Error code
|
|
40
|
-
*/
|
|
41
|
-
code: string;
|
|
42
|
-
/**
|
|
43
|
-
* Error message
|
|
44
|
-
*/
|
|
45
|
-
message: string;
|
|
46
|
-
/**
|
|
47
|
-
* Index in request array (for create operations)
|
|
48
|
-
*/
|
|
49
|
-
index?: number | null;
|
|
50
|
-
/**
|
|
51
|
-
* Tenant ID (for update/delete operations)
|
|
52
|
-
*/
|
|
53
|
-
tenant_id?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
* Tenant key (for create operations)
|
|
56
|
-
*/
|
|
57
|
-
tenant_key?: string | null;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Successful tenant operation in batch response.
|
|
61
|
-
*/
|
|
62
|
-
export interface BatchTenantSuccess {
|
|
63
|
-
/**
|
|
64
|
-
* Tenant ID
|
|
65
|
-
*/
|
|
66
|
-
tenant_id: string;
|
|
67
|
-
/**
|
|
68
|
-
* Response model for a single tenant.
|
|
69
|
-
*/
|
|
70
|
-
tenant?: TenantsAPI.Tenant | null;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Response model for batch tenant creation.
|
|
74
|
-
*/
|
|
75
|
-
export interface BatchCreateResponse {
|
|
76
|
-
/**
|
|
77
|
-
* Failed tenant creations
|
|
78
|
-
*/
|
|
79
|
-
failed: Array<BatchTenantError>;
|
|
80
|
-
/**
|
|
81
|
-
* Successfully created tenants
|
|
82
|
-
*/
|
|
83
|
-
succeeded: Array<BatchTenantSuccess>;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Response model for batch tenant updates.
|
|
87
|
-
*/
|
|
88
|
-
export interface BatchUpdateResponse {
|
|
89
|
-
/**
|
|
90
|
-
* Failed tenant updates
|
|
91
|
-
*/
|
|
92
|
-
failed: Array<BatchTenantError>;
|
|
93
|
-
/**
|
|
94
|
-
* Successfully updated tenants
|
|
95
|
-
*/
|
|
96
|
-
succeeded: Array<BatchTenantSuccess>;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Response model for batch tenant deletions.
|
|
100
|
-
*/
|
|
101
|
-
export interface BatchDeleteResponse {
|
|
102
|
-
/**
|
|
103
|
-
* Failed tenant deletions
|
|
104
|
-
*/
|
|
105
|
-
failed: Array<BatchTenantError>;
|
|
106
|
-
/**
|
|
107
|
-
* Successfully deleted tenants
|
|
108
|
-
*/
|
|
109
|
-
succeeded: Array<BatchTenantSuccess>;
|
|
110
|
-
}
|
|
111
|
-
export interface BatchCreateParams {
|
|
112
|
-
/**
|
|
113
|
-
* List of tenants to create
|
|
114
|
-
*/
|
|
115
|
-
tenants: Array<TenantsAPI.CreateTenant>;
|
|
116
|
-
}
|
|
117
|
-
export interface BatchUpdateParams {
|
|
118
|
-
/**
|
|
119
|
-
* List of tenant updates
|
|
120
|
-
*/
|
|
121
|
-
tenants: Array<BatchUpdateParams.Tenant>;
|
|
122
|
-
}
|
|
123
|
-
export declare namespace BatchUpdateParams {
|
|
124
|
-
/**
|
|
125
|
-
* Single tenant update in a batch operation.
|
|
126
|
-
*/
|
|
127
|
-
interface Tenant {
|
|
128
|
-
/**
|
|
129
|
-
* Tenant ID to update
|
|
130
|
-
*/
|
|
131
|
-
tenant_id: string;
|
|
132
|
-
/**
|
|
133
|
-
* Connection ID for database association (required with database_name)
|
|
134
|
-
*/
|
|
135
|
-
connection_id?: string | null;
|
|
136
|
-
/**
|
|
137
|
-
* Database name for association (required with connection_id)
|
|
138
|
-
*/
|
|
139
|
-
database_name?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
* New list of group names (replaces all existing associations)
|
|
142
|
-
*/
|
|
143
|
-
group_names?: Array<string> | null;
|
|
144
|
-
/**
|
|
145
|
-
* New human-readable tenant name
|
|
146
|
-
*/
|
|
147
|
-
tenant_name?: string | null;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
export interface BatchDeleteParams {
|
|
151
|
-
/**
|
|
152
|
-
* List of tenant IDs to delete
|
|
153
|
-
*/
|
|
154
|
-
tenant_ids: Array<string>;
|
|
155
|
-
}
|
|
156
|
-
export declare namespace Batch {
|
|
157
|
-
export { type BatchTenantError as BatchTenantError, type BatchTenantSuccess as BatchTenantSuccess, type BatchCreateResponse as BatchCreateResponse, type BatchUpdateResponse as BatchUpdateResponse, type BatchDeleteResponse as BatchDeleteResponse, type BatchCreateParams as BatchCreateParams, type BatchUpdateParams as BatchUpdateParams, type BatchDeleteParams as BatchDeleteParams, };
|
|
158
|
-
}
|
|
159
|
-
//# sourceMappingURL=batch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"batch.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/tenants/batch.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ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PI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Batch = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
class Batch extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create multiple tenants in a single request.
|
|
9
|
-
*
|
|
10
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
11
|
-
* Returns lists of succeeded and failed operations.
|
|
12
|
-
*
|
|
13
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
14
|
-
*/
|
|
15
|
-
create(body, options) {
|
|
16
|
-
return this._client.post('/api/v1/tenants/batch', { body, ...options });
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Update multiple tenants in a single request.
|
|
20
|
-
*
|
|
21
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
22
|
-
* Returns lists of succeeded and failed operations.
|
|
23
|
-
*
|
|
24
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
25
|
-
*/
|
|
26
|
-
update(body, options) {
|
|
27
|
-
return this._client.patch('/api/v1/tenants/batch', { body, ...options });
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Delete multiple tenants in a single request.
|
|
31
|
-
*
|
|
32
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
33
|
-
* Returns lists of succeeded and failed operations.
|
|
34
|
-
*
|
|
35
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
36
|
-
*/
|
|
37
|
-
delete(body, options) {
|
|
38
|
-
return this._client.delete('/api/v1/tenants/batch', { body, ...options });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.Batch = Batch;
|
|
42
|
-
//# sourceMappingURL=batch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"batch.js","sourceRoot":"","sources":["../../../src/resources/v1/tenants/batch.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AApCD,sBAoCC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
export class Batch extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Create multiple tenants in a single request.
|
|
6
|
-
*
|
|
7
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
8
|
-
* Returns lists of succeeded and failed operations.
|
|
9
|
-
*
|
|
10
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
11
|
-
*/
|
|
12
|
-
create(body, options) {
|
|
13
|
-
return this._client.post('/api/v1/tenants/batch', { body, ...options });
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Update multiple tenants in a single request.
|
|
17
|
-
*
|
|
18
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
19
|
-
* Returns lists of succeeded and failed operations.
|
|
20
|
-
*
|
|
21
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
22
|
-
*/
|
|
23
|
-
update(body, options) {
|
|
24
|
-
return this._client.patch('/api/v1/tenants/batch', { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Delete multiple tenants in a single request.
|
|
28
|
-
*
|
|
29
|
-
* Each tenant is processed independently. If one fails, others may succeed.
|
|
30
|
-
* Returns lists of succeeded and failed operations.
|
|
31
|
-
*
|
|
32
|
-
* RLS: Filtered to current client (ClientRLSDB).
|
|
33
|
-
*/
|
|
34
|
-
delete(body, options) {
|
|
35
|
-
return this._client.delete('/api/v1/tenants/batch', { body, ...options });
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=batch.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"batch.mjs","sourceRoot":"","sources":["../../../src/resources/v1/tenants/batch.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|