@studyfetch/sdk 1.7.0 → 1.9.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 +16 -0
- package/README.md +0 -1
- package/package.json +1 -1
- package/resources/v1/auth/auth.d.mts +4 -93
- package/resources/v1/auth/auth.d.mts.map +1 -1
- package/resources/v1/auth/auth.d.ts +4 -93
- package/resources/v1/auth/auth.d.ts.map +1 -1
- package/resources/v1/auth/auth.js +0 -86
- package/resources/v1/auth/auth.js.map +1 -1
- package/resources/v1/auth/auth.mjs +1 -87
- package/resources/v1/auth/auth.mjs.map +1 -1
- package/resources/v1/auth/index.d.mts +3 -3
- package/resources/v1/auth/index.d.mts.map +1 -1
- package/resources/v1/auth/index.d.ts +3 -3
- package/resources/v1/auth/index.d.ts.map +1 -1
- package/resources/v1/auth/index.js.map +1 -1
- package/resources/v1/auth/index.mjs +3 -3
- package/resources/v1/auth/index.mjs.map +1 -1
- package/resources/v1/auth/login.d.mts +0 -65
- package/resources/v1/auth/login.d.mts.map +1 -1
- package/resources/v1/auth/login.d.ts +0 -65
- package/resources/v1/auth/login.d.ts.map +1 -1
- package/resources/v1/auth/login.js +0 -49
- package/resources/v1/auth/login.js.map +1 -1
- package/resources/v1/auth/login.mjs +0 -49
- package/resources/v1/auth/login.mjs.map +1 -1
- package/resources/v1/auth/number-2fa.d.mts +1 -53
- package/resources/v1/auth/number-2fa.d.mts.map +1 -1
- package/resources/v1/auth/number-2fa.d.ts +1 -53
- package/resources/v1/auth/number-2fa.d.ts.map +1 -1
- package/resources/v1/auth/number-2fa.js +0 -57
- package/resources/v1/auth/number-2fa.js.map +1 -1
- package/resources/v1/auth/number-2fa.mjs +0 -57
- package/resources/v1/auth/number-2fa.mjs.map +1 -1
- package/resources/v1/auth/organization-invites.d.mts +0 -9
- package/resources/v1/auth/organization-invites.d.mts.map +1 -1
- package/resources/v1/auth/organization-invites.d.ts +0 -9
- package/resources/v1/auth/organization-invites.d.ts.map +1 -1
- package/resources/v1/auth/organization-invites.js +0 -14
- package/resources/v1/auth/organization-invites.js.map +1 -1
- package/resources/v1/auth/organization-invites.mjs +0 -14
- package/resources/v1/auth/organization-invites.mjs.map +1 -1
- package/resources/v1/chat/chat.d.mts +2 -2
- package/resources/v1/chat/chat.d.mts.map +1 -1
- package/resources/v1/chat/chat.d.ts +2 -2
- package/resources/v1/chat/chat.d.ts.map +1 -1
- package/resources/v1/components.d.mts +2 -2
- package/resources/v1/components.d.mts.map +1 -1
- package/resources/v1/components.d.ts +2 -2
- package/resources/v1/components.d.ts.map +1 -1
- package/resources/v1/flashcards.d.mts +6 -6
- package/resources/v1/flashcards.d.mts.map +1 -1
- package/resources/v1/flashcards.d.ts +6 -6
- package/resources/v1/flashcards.d.ts.map +1 -1
- package/resources/v1/flashcards.js +1 -1
- package/resources/v1/flashcards.mjs +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/organizations/api-keys.d.mts +0 -23
- package/resources/v1/organizations/api-keys.d.mts.map +1 -1
- package/resources/v1/organizations/api-keys.d.ts +0 -23
- package/resources/v1/organizations/api-keys.d.ts.map +1 -1
- package/resources/v1/organizations/api-keys.js +0 -38
- package/resources/v1/organizations/api-keys.js.map +1 -1
- package/resources/v1/organizations/api-keys.mjs +0 -38
- package/resources/v1/organizations/api-keys.mjs.map +1 -1
- package/resources/v1/organizations/index.d.mts +3 -3
- package/resources/v1/organizations/index.d.mts.map +1 -1
- package/resources/v1/organizations/index.d.ts +3 -3
- package/resources/v1/organizations/index.d.ts.map +1 -1
- package/resources/v1/organizations/index.js.map +1 -1
- package/resources/v1/organizations/index.mjs +1 -1
- package/resources/v1/organizations/index.mjs.map +1 -1
- package/resources/v1/organizations/logo/logo.d.mts +0 -9
- package/resources/v1/organizations/logo/logo.d.mts.map +1 -1
- package/resources/v1/organizations/logo/logo.d.ts +0 -9
- package/resources/v1/organizations/logo/logo.d.ts.map +1 -1
- package/resources/v1/organizations/logo/logo.js +0 -13
- package/resources/v1/organizations/logo/logo.js.map +1 -1
- package/resources/v1/organizations/logo/logo.mjs +0 -13
- package/resources/v1/organizations/logo/logo.mjs.map +1 -1
- package/resources/v1/organizations/logo/upload.d.mts +0 -16
- package/resources/v1/organizations/logo/upload.d.mts.map +1 -1
- package/resources/v1/organizations/logo/upload.d.ts +0 -16
- package/resources/v1/organizations/logo/upload.d.ts.map +1 -1
- package/resources/v1/organizations/logo/upload.js +0 -25
- package/resources/v1/organizations/logo/upload.js.map +1 -1
- package/resources/v1/organizations/logo/upload.mjs +0 -25
- package/resources/v1/organizations/logo/upload.mjs.map +1 -1
- package/resources/v1/organizations/organizations.d.mts +4 -23
- package/resources/v1/organizations/organizations.d.mts.map +1 -1
- package/resources/v1/organizations/organizations.d.ts +4 -23
- package/resources/v1/organizations/organizations.d.ts.map +1 -1
- package/resources/v1/organizations/organizations.js +0 -27
- package/resources/v1/organizations/organizations.js.map +1 -1
- package/resources/v1/organizations/organizations.mjs +1 -28
- package/resources/v1/organizations/organizations.mjs.map +1 -1
- package/resources/v1/organizations/profile/index.d.mts +2 -2
- package/resources/v1/organizations/profile/index.d.mts.map +1 -1
- package/resources/v1/organizations/profile/index.d.ts +2 -2
- package/resources/v1/organizations/profile/index.d.ts.map +1 -1
- package/resources/v1/organizations/profile/index.js.map +1 -1
- package/resources/v1/organizations/profile/index.mjs +1 -1
- package/resources/v1/organizations/profile/index.mjs.map +1 -1
- package/resources/v1/organizations/profile/models.d.mts +0 -9
- package/resources/v1/organizations/profile/models.d.mts.map +1 -1
- package/resources/v1/organizations/profile/models.d.ts +0 -9
- package/resources/v1/organizations/profile/models.d.ts.map +1 -1
- package/resources/v1/organizations/profile/models.js +0 -13
- package/resources/v1/organizations/profile/models.js.map +1 -1
- package/resources/v1/organizations/profile/models.mjs +0 -13
- package/resources/v1/organizations/profile/models.mjs.map +1 -1
- package/resources/v1/organizations/profile/profile.d.mts +2 -22
- package/resources/v1/organizations/profile/profile.d.mts.map +1 -1
- package/resources/v1/organizations/profile/profile.d.ts +2 -22
- package/resources/v1/organizations/profile/profile.d.ts.map +1 -1
- package/resources/v1/organizations/profile/profile.js +0 -26
- package/resources/v1/organizations/profile/profile.js.map +1 -1
- package/resources/v1/organizations/profile/profile.mjs +0 -26
- package/resources/v1/organizations/profile/profile.mjs.map +1 -1
- package/resources/v1/organizations/profile/team.d.mts +0 -57
- package/resources/v1/organizations/profile/team.d.mts.map +1 -1
- package/resources/v1/organizations/profile/team.d.ts +0 -57
- package/resources/v1/organizations/profile/team.d.ts.map +1 -1
- package/resources/v1/organizations/profile/team.js +0 -80
- package/resources/v1/organizations/profile/team.js.map +1 -1
- package/resources/v1/organizations/profile/team.mjs +0 -80
- package/resources/v1/organizations/profile/team.mjs.map +1 -1
- package/resources/v1/organizations/team/index.d.mts +2 -2
- package/resources/v1/organizations/team/index.d.mts.map +1 -1
- package/resources/v1/organizations/team/index.d.ts +2 -2
- package/resources/v1/organizations/team/index.d.ts.map +1 -1
- package/resources/v1/organizations/team/index.js.map +1 -1
- package/resources/v1/organizations/team/index.mjs +1 -1
- package/resources/v1/organizations/team/index.mjs.map +1 -1
- package/resources/v1/organizations/team/invite.d.mts +0 -23
- package/resources/v1/organizations/team/invite.d.mts.map +1 -1
- package/resources/v1/organizations/team/invite.d.ts +0 -23
- package/resources/v1/organizations/team/invite.d.ts.map +1 -1
- package/resources/v1/organizations/team/invite.js +0 -29
- package/resources/v1/organizations/team/invite.js.map +1 -1
- package/resources/v1/organizations/team/invite.mjs +0 -29
- package/resources/v1/organizations/team/invite.mjs.map +1 -1
- package/resources/v1/organizations/team/team.d.mts +2 -64
- package/resources/v1/organizations/team/team.d.mts.map +1 -1
- package/resources/v1/organizations/team/team.d.ts +2 -64
- package/resources/v1/organizations/team/team.d.ts.map +1 -1
- package/resources/v1/organizations/team/team.js +0 -85
- package/resources/v1/organizations/team/team.js.map +1 -1
- package/resources/v1/organizations/team/team.mjs +0 -85
- package/resources/v1/organizations/team/team.mjs.map +1 -1
- package/resources/v1/organizations/theme.d.mts +0 -16
- package/resources/v1/organizations/theme.d.mts.map +1 -1
- package/resources/v1/organizations/theme.d.ts +0 -16
- package/resources/v1/organizations/theme.d.ts.map +1 -1
- package/resources/v1/organizations/theme.js +0 -25
- package/resources/v1/organizations/theme.js.map +1 -1
- package/resources/v1/organizations/theme.mjs +0 -25
- package/resources/v1/organizations/theme.mjs.map +1 -1
- package/resources/v1/organizations/usage.d.mts +0 -16
- package/resources/v1/organizations/usage.d.mts.map +1 -1
- package/resources/v1/organizations/usage.d.ts +0 -16
- package/resources/v1/organizations/usage.d.ts.map +1 -1
- package/resources/v1/organizations/usage.js +0 -26
- package/resources/v1/organizations/usage.js.map +1 -1
- package/resources/v1/organizations/usage.mjs +0 -26
- package/resources/v1/organizations/usage.mjs.map +1 -1
- package/resources/v1/usage.d.mts +1 -169
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +1 -169
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1/usage.js +0 -45
- package/resources/v1/usage.js.map +1 -1
- package/resources/v1/usage.mjs +0 -45
- package/resources/v1/usage.mjs.map +1 -1
- package/resources/v1/v1.d.mts +6 -6
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -6
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/auth/auth.ts +4 -163
- package/src/resources/v1/auth/index.ts +3 -20
- package/src/resources/v1/auth/login.ts +1 -99
- package/src/resources/v1/auth/number-2fa.ts +1 -91
- package/src/resources/v1/auth/organization-invites.ts +1 -18
- package/src/resources/v1/chat/chat.ts +2 -2
- package/src/resources/v1/components.ts +2 -2
- package/src/resources/v1/flashcards.ts +6 -6
- package/src/resources/v1/index.ts +2 -10
- package/src/resources/v1/organizations/api-keys.ts +1 -44
- package/src/resources/v1/organizations/index.ts +3 -9
- package/src/resources/v1/organizations/logo/logo.ts +0 -16
- package/src/resources/v1/organizations/logo/upload.ts +1 -30
- package/src/resources/v1/organizations/organizations.ts +4 -55
- package/src/resources/v1/organizations/profile/index.ts +2 -8
- package/src/resources/v1/organizations/profile/models.ts +1 -17
- package/src/resources/v1/organizations/profile/profile.ts +2 -47
- package/src/resources/v1/organizations/profile/team.ts +1 -106
- package/src/resources/v1/organizations/team/index.ts +2 -8
- package/src/resources/v1/organizations/team/invite.ts +1 -40
- package/src/resources/v1/organizations/team/team.ts +2 -116
- package/src/resources/v1/organizations/theme.ts +1 -30
- package/src/resources/v1/organizations/usage.ts +1 -31
- package/src/resources/v1/usage.ts +0 -272
- package/src/resources/v1/v1.ts +5 -26
- 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
|
@@ -2,33 +2,13 @@ import { APIResource } from "../../../../core/resource.js";
|
|
|
2
2
|
import * as ModelsAPI from "./models.js";
|
|
3
3
|
import { Models } from "./models.js";
|
|
4
4
|
import * as TeamAPI from "./team.js";
|
|
5
|
-
import {
|
|
6
|
-
import { APIPromise } from "../../../../core/api-promise.js";
|
|
7
|
-
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
5
|
+
import { Team } from "./team.js";
|
|
8
6
|
export declare class Profile extends APIResource {
|
|
9
7
|
models: ModelsAPI.Models;
|
|
10
8
|
team: TeamAPI.Team;
|
|
11
|
-
/**
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* await client.v1.organizations.profile.list();
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
list(options?: RequestOptions): APIPromise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* await client.v1.organizations.profile.patchAll();
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
patchAll(body: ProfilePatchAllParams, options?: RequestOptions): APIPromise<void>;
|
|
25
|
-
}
|
|
26
|
-
export type UpdateOrganization = unknown;
|
|
27
|
-
export interface ProfilePatchAllParams {
|
|
28
9
|
}
|
|
29
10
|
export declare namespace Profile {
|
|
30
|
-
export { type UpdateOrganization as UpdateOrganization, type ProfilePatchAllParams as ProfilePatchAllParams, };
|
|
31
11
|
export { Models as Models };
|
|
32
|
-
export { Team as Team
|
|
12
|
+
export { Team as Team };
|
|
33
13
|
}
|
|
34
14
|
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/profile.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,KAAK,OAAO;OACZ,EAAE,
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/profile.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;AAEf,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAKD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;IAE5B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
|
|
@@ -8,38 +8,12 @@ const ModelsAPI = tslib_1.__importStar(require("./models.js"));
|
|
|
8
8
|
const models_1 = require("./models.js");
|
|
9
9
|
const TeamAPI = tslib_1.__importStar(require("./team.js"));
|
|
10
10
|
const team_1 = require("./team.js");
|
|
11
|
-
const headers_1 = require("../../../../internal/headers.js");
|
|
12
11
|
class Profile extends resource_1.APIResource {
|
|
13
12
|
constructor() {
|
|
14
13
|
super(...arguments);
|
|
15
14
|
this.models = new ModelsAPI.Models(this._client);
|
|
16
15
|
this.team = new TeamAPI.Team(this._client);
|
|
17
16
|
}
|
|
18
|
-
/**
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* await client.v1.organizations.profile.list();
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
list(options) {
|
|
25
|
-
return this._client.get('/api/v1/organizations/profile', {
|
|
26
|
-
...options,
|
|
27
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* await client.v1.organizations.profile.patchAll();
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
patchAll(body, options) {
|
|
37
|
-
return this._client.patch('/api/v1/organizations/profile', {
|
|
38
|
-
body,
|
|
39
|
-
...options,
|
|
40
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
17
|
}
|
|
44
18
|
exports.Profile = Profile;
|
|
45
19
|
Profile.Models = models_1.Models;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,2DAAwD;AACxD,+DAAsC;AACtC,wCAAkC;AAClC,2DAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,2DAAwD;AACxD,+DAAsC;AACtC,wCAAkC;AAClC,2DAAkC;AAClC,oCAA8B;AAE9B,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAHD,0BAGC;AAED,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
|
@@ -4,38 +4,12 @@ import * as ModelsAPI from "./models.mjs";
|
|
|
4
4
|
import { Models } from "./models.mjs";
|
|
5
5
|
import * as TeamAPI from "./team.mjs";
|
|
6
6
|
import { Team } from "./team.mjs";
|
|
7
|
-
import { buildHeaders } from "../../../../internal/headers.mjs";
|
|
8
7
|
export class Profile extends APIResource {
|
|
9
8
|
constructor() {
|
|
10
9
|
super(...arguments);
|
|
11
10
|
this.models = new ModelsAPI.Models(this._client);
|
|
12
11
|
this.team = new TeamAPI.Team(this._client);
|
|
13
12
|
}
|
|
14
|
-
/**
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* await client.v1.organizations.profile.list();
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
list(options) {
|
|
21
|
-
return this._client.get('/api/v1/organizations/profile', {
|
|
22
|
-
...options,
|
|
23
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* await client.v1.organizations.profile.patchAll();
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
patchAll(body, options) {
|
|
33
|
-
return this._client.patch('/api/v1/organizations/profile', {
|
|
34
|
-
body,
|
|
35
|
-
...options,
|
|
36
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
13
|
}
|
|
40
14
|
Profile.Models = Models;
|
|
41
15
|
Profile.Team = Team;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,KAAK,OAAO;OACZ,
|
|
1
|
+
{"version":3,"file":"profile.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;OACV,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAED,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,61 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
4
2
|
export declare class Team extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.organizations.profile.team.list();
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
list(options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.organizations.profile.team.delete('email');
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
delete(email: string, options?: RequestOptions): APIPromise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* await client.v1.organizations.profile.team.invite();
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
invite(body: TeamInviteParams, options?: RequestOptions): APIPromise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* await client.v1.organizations.profile.team.resendInvite(
|
|
30
|
-
* 'email',
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
resendInvite(email: string, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* await client.v1.organizations.profile.team.retrieveDetailed();
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
retrieveDetailed(options?: RequestOptions): APIPromise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* await client.v1.organizations.profile.team.updateRole(
|
|
46
|
-
* 'email',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
updateRole(email: string, body: TeamUpdateRoleParams, options?: RequestOptions): APIPromise<void>;
|
|
51
|
-
}
|
|
52
|
-
export type InviteTeamMember = unknown;
|
|
53
|
-
export type UpdateMemberRole = unknown;
|
|
54
|
-
export interface TeamInviteParams {
|
|
55
|
-
}
|
|
56
|
-
export interface TeamUpdateRoleParams {
|
|
57
|
-
}
|
|
58
|
-
export declare namespace Team {
|
|
59
|
-
export { type InviteTeamMember as InviteTeamMember, type UpdateMemberRole as UpdateMemberRole, type TeamInviteParams as TeamInviteParams, type TeamUpdateRoleParams as TeamUpdateRoleParams, };
|
|
60
3
|
}
|
|
61
4
|
//# sourceMappingURL=team.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/team.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"team.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/team.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,IAAK,SAAQ,WAAW;CAAG"}
|
|
@@ -1,61 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
4
2
|
export declare class Team extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.organizations.profile.team.list();
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
list(options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.organizations.profile.team.delete('email');
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
delete(email: string, options?: RequestOptions): APIPromise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* await client.v1.organizations.profile.team.invite();
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
invite(body: TeamInviteParams, options?: RequestOptions): APIPromise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* await client.v1.organizations.profile.team.resendInvite(
|
|
30
|
-
* 'email',
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
resendInvite(email: string, options?: RequestOptions): APIPromise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* await client.v1.organizations.profile.team.retrieveDetailed();
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
retrieveDetailed(options?: RequestOptions): APIPromise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* @example
|
|
44
|
-
* ```ts
|
|
45
|
-
* await client.v1.organizations.profile.team.updateRole(
|
|
46
|
-
* 'email',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
updateRole(email: string, body: TeamUpdateRoleParams, options?: RequestOptions): APIPromise<void>;
|
|
51
|
-
}
|
|
52
|
-
export type InviteTeamMember = unknown;
|
|
53
|
-
export type UpdateMemberRole = unknown;
|
|
54
|
-
export interface TeamInviteParams {
|
|
55
|
-
}
|
|
56
|
-
export interface TeamUpdateRoleParams {
|
|
57
|
-
}
|
|
58
|
-
export declare namespace Team {
|
|
59
|
-
export { type InviteTeamMember as InviteTeamMember, type UpdateMemberRole as UpdateMemberRole, type TeamInviteParams as TeamInviteParams, type TeamUpdateRoleParams as TeamUpdateRoleParams, };
|
|
60
3
|
}
|
|
61
4
|
//# sourceMappingURL=team.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/team.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/team.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,IAAK,SAAQ,WAAW;CAAG"}
|
|
@@ -3,87 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Team = void 0;
|
|
5
5
|
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../../../internal/headers.js");
|
|
7
|
-
const path_1 = require("../../../../internal/utils/path.js");
|
|
8
6
|
class Team extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* await client.v1.organizations.profile.team.list();
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
list(options) {
|
|
16
|
-
return this._client.get('/api/v1/organizations/profile/team', {
|
|
17
|
-
...options,
|
|
18
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* await client.v1.organizations.profile.team.delete('email');
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
delete(email, options) {
|
|
28
|
-
return this._client.delete((0, path_1.path) `/api/v1/organizations/profile/team/${email}`, {
|
|
29
|
-
...options,
|
|
30
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* await client.v1.organizations.profile.team.invite();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
invite(body, options) {
|
|
40
|
-
return this._client.post('/api/v1/organizations/profile/team/invite', {
|
|
41
|
-
body,
|
|
42
|
-
...options,
|
|
43
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* await client.v1.organizations.profile.team.resendInvite(
|
|
50
|
-
* 'email',
|
|
51
|
-
* );
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
resendInvite(email, options) {
|
|
55
|
-
return this._client.post((0, path_1.path) `/api/v1/organizations/profile/team/${email}/resend-invite`, {
|
|
56
|
-
...options,
|
|
57
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @example
|
|
62
|
-
* ```ts
|
|
63
|
-
* await client.v1.organizations.profile.team.retrieveDetailed();
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
retrieveDetailed(options) {
|
|
67
|
-
return this._client.get('/api/v1/organizations/profile/team/detailed', {
|
|
68
|
-
...options,
|
|
69
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* await client.v1.organizations.profile.team.updateRole(
|
|
76
|
-
* 'email',
|
|
77
|
-
* );
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
updateRole(email, body, options) {
|
|
81
|
-
return this._client.put((0, path_1.path) `/api/v1/organizations/profile/team/${email}/role`, {
|
|
82
|
-
body,
|
|
83
|
-
...options,
|
|
84
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
7
|
}
|
|
88
8
|
exports.Team = Team;
|
|
89
9
|
//# sourceMappingURL=team.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/team.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/team.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,MAAa,IAAK,SAAQ,sBAAW;CAAG;AAAxC,oBAAwC"}
|
|
@@ -1,85 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../../../internal/headers.mjs";
|
|
4
|
-
import { path } from "../../../../internal/utils/path.mjs";
|
|
5
3
|
export class Team extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* await client.v1.organizations.profile.team.list();
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
list(options) {
|
|
13
|
-
return this._client.get('/api/v1/organizations/profile/team', {
|
|
14
|
-
...options,
|
|
15
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* await client.v1.organizations.profile.team.delete('email');
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
delete(email, options) {
|
|
25
|
-
return this._client.delete(path `/api/v1/organizations/profile/team/${email}`, {
|
|
26
|
-
...options,
|
|
27
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* await client.v1.organizations.profile.team.invite();
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
invite(body, options) {
|
|
37
|
-
return this._client.post('/api/v1/organizations/profile/team/invite', {
|
|
38
|
-
body,
|
|
39
|
-
...options,
|
|
40
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* await client.v1.organizations.profile.team.resendInvite(
|
|
47
|
-
* 'email',
|
|
48
|
-
* );
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
resendInvite(email, options) {
|
|
52
|
-
return this._client.post(path `/api/v1/organizations/profile/team/${email}/resend-invite`, {
|
|
53
|
-
...options,
|
|
54
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* @example
|
|
59
|
-
* ```ts
|
|
60
|
-
* await client.v1.organizations.profile.team.retrieveDetailed();
|
|
61
|
-
* ```
|
|
62
|
-
*/
|
|
63
|
-
retrieveDetailed(options) {
|
|
64
|
-
return this._client.get('/api/v1/organizations/profile/team/detailed', {
|
|
65
|
-
...options,
|
|
66
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* await client.v1.organizations.profile.team.updateRole(
|
|
73
|
-
* 'email',
|
|
74
|
-
* );
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
updateRole(email, body, options) {
|
|
78
|
-
return this._client.put(path `/api/v1/organizations/profile/team/${email}/role`, {
|
|
79
|
-
body,
|
|
80
|
-
...options,
|
|
81
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
4
|
}
|
|
85
5
|
//# sourceMappingURL=team.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/team.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"team.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/profile/team.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,IAAK,SAAQ,WAAW;CAAG"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Invite
|
|
2
|
-
export { Team
|
|
1
|
+
export { Invite } from "./invite.mjs";
|
|
2
|
+
export { Team } from "./team.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EAAE,IAAI,EAAE"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Invite
|
|
2
|
-
export { Team
|
|
1
|
+
export { Invite } from "./invite.js";
|
|
2
|
+
export { Team } from "./team.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/index.ts"],"names":[],"mappings":"OAEO,EAAE,MAAM,EAAE;OACV,EAAE,IAAI,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,kCAA8B;AAArB,4FAAA,IAAI,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,MAAM,EAAE;OACV,EAAE,IAAI,EAAE"}
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
4
2
|
export declare class Invite extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.organizations.team.invite.create('id');
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
create(id: string, body: InviteCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.organizations.team.invite.retrievePreview(
|
|
16
|
-
* 'token',
|
|
17
|
-
* );
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
retrievePreview(token: string, options?: RequestOptions): APIPromise<void>;
|
|
21
|
-
}
|
|
22
|
-
export interface InviteCreateParams {
|
|
23
|
-
}
|
|
24
|
-
export declare namespace Invite {
|
|
25
|
-
export { type InviteCreateParams as InviteCreateParams };
|
|
26
3
|
}
|
|
27
4
|
//# sourceMappingURL=invite.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/invite.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"invite.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/invite.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,MAAO,SAAQ,WAAW;CAAG"}
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
4
2
|
export declare class Invite extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* await client.v1.organizations.team.invite.create('id');
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
create(id: string, body: InviteCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* await client.v1.organizations.team.invite.retrievePreview(
|
|
16
|
-
* 'token',
|
|
17
|
-
* );
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
retrievePreview(token: string, options?: RequestOptions): APIPromise<void>;
|
|
21
|
-
}
|
|
22
|
-
export interface InviteCreateParams {
|
|
23
|
-
}
|
|
24
|
-
export declare namespace Invite {
|
|
25
|
-
export { type InviteCreateParams as InviteCreateParams };
|
|
26
3
|
}
|
|
27
4
|
//# sourceMappingURL=invite.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/invite.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/invite.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,MAAO,SAAQ,WAAW;CAAG"}
|
|
@@ -3,36 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Invite = void 0;
|
|
5
5
|
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../../../internal/headers.js");
|
|
7
|
-
const path_1 = require("../../../../internal/utils/path.js");
|
|
8
6
|
class Invite extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* await client.v1.organizations.team.invite.create('id');
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
create(id, body, options) {
|
|
16
|
-
return this._client.post((0, path_1.path) `/api/v1/organizations/${id}/team/invite`, {
|
|
17
|
-
body,
|
|
18
|
-
...options,
|
|
19
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* await client.v1.organizations.team.invite.retrievePreview(
|
|
26
|
-
* 'token',
|
|
27
|
-
* );
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
retrievePreview(token, options) {
|
|
31
|
-
return this._client.get((0, path_1.path) `/api/v1/organizations/team/invite/${token}/preview`, {
|
|
32
|
-
...options,
|
|
33
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
7
|
}
|
|
37
8
|
exports.Invite = Invite;
|
|
38
9
|
//# sourceMappingURL=invite.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/invite.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,
|
|
1
|
+
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../../../../src/resources/v1/organizations/team/invite.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAExD,MAAa,MAAO,SAAQ,sBAAW;CAAG;AAA1C,wBAA0C"}
|