@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
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EACL,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EACzB,qBAAqB,EACrB,uBAAuB,EACvB,UAAU,EACX;OACM,KAAK,aAAa;OAClB,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,UAAU,EAAE;OACnE,KAAK,aAAa;OAClB,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,iCAAiC,EACjC,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACnB,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2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,UAAU,IAAI,UAAU,EACxB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;IAE5B,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,CAAC;CAC3B"}
|
package/resources/v1/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uEAA8C;AAC9C,gDAWsB;AACtB,uEAA8C;AAC9C,gDAA+F;AAC/F,uEAA8C;AAC9C,gDAUsB;AACtB,iEAAwC;AACxC,0CAA8F;AAC9F,6DAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uEAA8C;A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"./folders.mjs";
|
|
10
10
|
import { Folders } from "./folders.mjs";
|
|
11
11
|
import * as UsageAPI from "./usage.mjs";
|
|
12
|
-
import { Usage
|
|
12
|
+
import { Usage } from "./usage.mjs";
|
|
13
13
|
import * as AdminAPI from "./admin/admin.mjs";
|
|
14
14
|
import { Admin } from "./admin/admin.mjs";
|
|
15
15
|
import * as AudioRecapsAPI from "./audio-recaps/audio-recaps.mjs";
|
|
16
16
|
import { AudioRecaps, } from "./audio-recaps/audio-recaps.mjs";
|
|
17
17
|
import * as AuthAPI from "./auth/auth.mjs";
|
|
18
|
-
import { Auth
|
|
18
|
+
import { Auth } from "./auth/auth.mjs";
|
|
19
19
|
import * as ChatAPI from "./chat/chat.mjs";
|
|
20
20
|
import { Chat } from "./chat/chat.mjs";
|
|
21
21
|
import * as EmbedAPI from "./embed/embed.mjs";
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAUL,UAAU,GACX;OACM,KAAK,aAAa;OAClB,EAAuD,UAAU,EAAE;OACnE,KAAK,aAAa;OAClB,EASL,UAAU,GACX;OACM,KAAK,UAAU;OACf,EAA4D,OAAO,EAAE;OACrE,KAAK,QAAQ;OACb,
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAUL,UAAU,GACX;OACM,KAAK,aAAa;OAClB,EAAuD,UAAU,EAAE;OACnE,KAAK,aAAa;OAClB,EASL,UAAU,GACX;OACM,KAAK,UAAU;OACf,EAA4D,OAAO,EAAE;OACrE,KAAK,QAAQ;OACb,EAAE,KAAK,EAAqE;OAC5E,KAAK,QAAQ;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AO,CAAC,CAAC;QACzD,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,aAAa,GAAG,aAAa,CAAC;AACjC,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;AACrB,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC;AAC7B,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;AACnB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -2,15 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as LoginAPI from './login';
|
|
5
|
-
import { Login
|
|
5
|
+
import { Login } from './login';
|
|
6
6
|
import * as Number2faAPI from './number-2fa';
|
|
7
|
-
import {
|
|
8
|
-
Number2fa,
|
|
9
|
-
Number2faDisableParams,
|
|
10
|
-
Number2faEnableParams,
|
|
11
|
-
Number2faRegenerateBackupCodesParams,
|
|
12
|
-
Number2faSendCodeParams,
|
|
13
|
-
} from './number-2fa';
|
|
7
|
+
import { Number2fa, Number2faSendCodeParams } from './number-2fa';
|
|
14
8
|
import * as OrganizationInvitesAPI from './organization-invites';
|
|
15
9
|
import { OrganizationInvites } from './organization-invites';
|
|
16
10
|
import { APIPromise } from '../../../core/api-promise';
|
|
@@ -23,98 +17,6 @@ export class Auth extends APIResource {
|
|
|
23
17
|
organizationInvites: OrganizationInvitesAPI.OrganizationInvites =
|
|
24
18
|
new OrganizationInvitesAPI.OrganizationInvites(this._client);
|
|
25
19
|
|
|
26
|
-
/**
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* await client.v1.auth.getProfile();
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
getProfile(options?: RequestOptions): APIPromise<void> {
|
|
33
|
-
return this._client.get('/api/v1/auth/profile', {
|
|
34
|
-
...options,
|
|
35
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @example
|
|
41
|
-
* ```ts
|
|
42
|
-
* await client.v1.auth.registerNewUser({
|
|
43
|
-
* email: 'user@example.com',
|
|
44
|
-
* name: 'John Doe',
|
|
45
|
-
* organizationName: 'Acme Corp',
|
|
46
|
-
* password: 'password123',
|
|
47
|
-
* });
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
registerNewUser(body: AuthRegisterNewUserParams, options?: RequestOptions): APIPromise<void> {
|
|
51
|
-
return this._client.post('/api/v1/auth/register', {
|
|
52
|
-
body,
|
|
53
|
-
...options,
|
|
54
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* await client.v1.auth.registerOrganization();
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
registerOrganization(options?: RequestOptions): APIPromise<void> {
|
|
65
|
-
return this._client.post('/api/v1/auth/register-organization', {
|
|
66
|
-
...options,
|
|
67
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* await client.v1.auth.registerWithInvite();
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
registerWithInvite(body: AuthRegisterWithInviteParams, options?: RequestOptions): APIPromise<void> {
|
|
78
|
-
return this._client.post('/api/v1/auth/register-with-invite', {
|
|
79
|
-
body,
|
|
80
|
-
...options,
|
|
81
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @example
|
|
87
|
-
* ```ts
|
|
88
|
-
* await client.v1.auth.requestPasswordReset({
|
|
89
|
-
* email: 'user@example.com',
|
|
90
|
-
* });
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
requestPasswordReset(body: AuthRequestPasswordResetParams, options?: RequestOptions): APIPromise<void> {
|
|
94
|
-
return this._client.post('/api/v1/auth/forgot-password', {
|
|
95
|
-
body,
|
|
96
|
-
...options,
|
|
97
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @example
|
|
103
|
-
* ```ts
|
|
104
|
-
* await client.v1.auth.resetPassword({
|
|
105
|
-
* token: 'reset-token-uuid',
|
|
106
|
-
* newPassword: 'newPassword123',
|
|
107
|
-
* });
|
|
108
|
-
* ```
|
|
109
|
-
*/
|
|
110
|
-
resetPassword(body: AuthResetPasswordParams, options?: RequestOptions): APIPromise<void> {
|
|
111
|
-
return this._client.post('/api/v1/auth/reset-password', {
|
|
112
|
-
body,
|
|
113
|
-
...options,
|
|
114
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
20
|
/**
|
|
119
21
|
* Verify password reset token
|
|
120
22
|
*
|
|
@@ -131,75 +33,14 @@ export class Auth extends APIResource {
|
|
|
131
33
|
}
|
|
132
34
|
}
|
|
133
35
|
|
|
134
|
-
export interface AuthRegisterNewUserParams {
|
|
135
|
-
/**
|
|
136
|
-
* User email address
|
|
137
|
-
*/
|
|
138
|
-
email: string;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* User full name
|
|
142
|
-
*/
|
|
143
|
-
name: string;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Organization name
|
|
147
|
-
*/
|
|
148
|
-
organizationName: string;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* User password
|
|
152
|
-
*/
|
|
153
|
-
password: string;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export interface AuthRegisterWithInviteParams {}
|
|
157
|
-
|
|
158
|
-
export interface AuthRequestPasswordResetParams {
|
|
159
|
-
/**
|
|
160
|
-
* Email address to send reset link
|
|
161
|
-
*/
|
|
162
|
-
email: string;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface AuthResetPasswordParams {
|
|
166
|
-
/**
|
|
167
|
-
* Password reset token from email
|
|
168
|
-
*/
|
|
169
|
-
token: string;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* New password
|
|
173
|
-
*/
|
|
174
|
-
newPassword: string;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
36
|
Auth.Login = Login;
|
|
178
37
|
Auth.Number2fa = Number2fa;
|
|
179
38
|
Auth.OrganizationInvites = OrganizationInvites;
|
|
180
39
|
|
|
181
40
|
export declare namespace Auth {
|
|
182
|
-
export {
|
|
183
|
-
type AuthRegisterNewUserParams as AuthRegisterNewUserParams,
|
|
184
|
-
type AuthRegisterWithInviteParams as AuthRegisterWithInviteParams,
|
|
185
|
-
type AuthRequestPasswordResetParams as AuthRequestPasswordResetParams,
|
|
186
|
-
type AuthResetPasswordParams as AuthResetPasswordParams,
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
export {
|
|
190
|
-
Login as Login,
|
|
191
|
-
type LoginAuthenticateParams as LoginAuthenticateParams,
|
|
192
|
-
type LoginVerify2faParams as LoginVerify2faParams,
|
|
193
|
-
type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams,
|
|
194
|
-
};
|
|
41
|
+
export { Login as Login };
|
|
195
42
|
|
|
196
|
-
export {
|
|
197
|
-
Number2fa as Number2fa,
|
|
198
|
-
type Number2faDisableParams as Number2faDisableParams,
|
|
199
|
-
type Number2faEnableParams as Number2faEnableParams,
|
|
200
|
-
type Number2faRegenerateBackupCodesParams as Number2faRegenerateBackupCodesParams,
|
|
201
|
-
type Number2faSendCodeParams as Number2faSendCodeParams,
|
|
202
|
-
};
|
|
43
|
+
export { Number2fa as Number2fa, type Number2faSendCodeParams as Number2faSendCodeParams };
|
|
203
44
|
|
|
204
45
|
export { OrganizationInvites as OrganizationInvites };
|
|
205
46
|
}
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type AuthRegisterWithInviteParams,
|
|
7
|
-
type AuthRequestPasswordResetParams,
|
|
8
|
-
type AuthResetPasswordParams,
|
|
9
|
-
} from './auth';
|
|
10
|
-
export {
|
|
11
|
-
Login,
|
|
12
|
-
type LoginAuthenticateParams,
|
|
13
|
-
type LoginVerify2faParams,
|
|
14
|
-
type LoginVerifyBackupCodeParams,
|
|
15
|
-
} from './login';
|
|
16
|
-
export {
|
|
17
|
-
Number2fa,
|
|
18
|
-
type Number2faDisableParams,
|
|
19
|
-
type Number2faEnableParams,
|
|
20
|
-
type Number2faRegenerateBackupCodesParams,
|
|
21
|
-
type Number2faSendCodeParams,
|
|
22
|
-
} from './number-2fa';
|
|
3
|
+
export { Auth } from './auth';
|
|
4
|
+
export { Login } from './login';
|
|
5
|
+
export { Number2fa, type Number2faSendCodeParams } from './number-2fa';
|
|
23
6
|
export { OrganizationInvites } from './organization-invites';
|
|
@@ -1,103 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
7
4
|
|
|
8
|
-
export class Login extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* await client.v1.auth.login.authenticate({
|
|
13
|
-
* email: 'user@example.com',
|
|
14
|
-
* password: 'password123',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
authenticate(body: LoginAuthenticateParams, options?: RequestOptions): APIPromise<void> {
|
|
19
|
-
return this._client.post('/api/v1/auth/login', {
|
|
20
|
-
body,
|
|
21
|
-
...options,
|
|
22
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* await client.v1.auth.login.verify2fa({
|
|
30
|
-
* code: '123456',
|
|
31
|
-
* email: 'user@example.com',
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
verify2fa(body: LoginVerify2faParams, options?: RequestOptions): APIPromise<void> {
|
|
36
|
-
return this._client.post('/api/v1/auth/login/verify-2fa', {
|
|
37
|
-
body,
|
|
38
|
-
...options,
|
|
39
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* await client.v1.auth.login.verifyBackupCode({
|
|
47
|
-
* backupCode: 'ABCD-EFGH-IJKL',
|
|
48
|
-
* email: 'user@example.com',
|
|
49
|
-
* });
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
verifyBackupCode(body: LoginVerifyBackupCodeParams, options?: RequestOptions): APIPromise<void> {
|
|
53
|
-
return this._client.post('/api/v1/auth/login/verify-backup-code', {
|
|
54
|
-
body,
|
|
55
|
-
...options,
|
|
56
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface LoginAuthenticateParams {
|
|
62
|
-
/**
|
|
63
|
-
* User email address
|
|
64
|
-
*/
|
|
65
|
-
email: string;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* User password
|
|
69
|
-
*/
|
|
70
|
-
password: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export interface LoginVerify2faParams {
|
|
74
|
-
/**
|
|
75
|
-
* 6-digit verification code
|
|
76
|
-
*/
|
|
77
|
-
code: string;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* User email address
|
|
81
|
-
*/
|
|
82
|
-
email: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface LoginVerifyBackupCodeParams {
|
|
86
|
-
/**
|
|
87
|
-
* Backup code
|
|
88
|
-
*/
|
|
89
|
-
backupCode: string;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* User email address
|
|
93
|
-
*/
|
|
94
|
-
email: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export declare namespace Login {
|
|
98
|
-
export {
|
|
99
|
-
type LoginAuthenticateParams as LoginAuthenticateParams,
|
|
100
|
-
type LoginVerify2faParams as LoginVerify2faParams,
|
|
101
|
-
type LoginVerifyBackupCodeParams as LoginVerifyBackupCodeParams,
|
|
102
|
-
};
|
|
103
|
-
}
|
|
5
|
+
export class Login extends APIResource {}
|
|
@@ -6,70 +6,6 @@ import { buildHeaders } from '../../../internal/headers';
|
|
|
6
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
7
|
|
|
8
8
|
export class Number2fa extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* await client.v1.auth.number2fa.disable({
|
|
13
|
-
* password: 'password123',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
disable(body: Number2faDisableParams, options?: RequestOptions): APIPromise<void> {
|
|
18
|
-
return this._client.post('/api/v1/auth/2fa/disable', {
|
|
19
|
-
body,
|
|
20
|
-
...options,
|
|
21
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* await client.v1.auth.number2fa.enable({
|
|
29
|
-
* password: 'password123',
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
enable(body: Number2faEnableParams, options?: RequestOptions): APIPromise<void> {
|
|
34
|
-
return this._client.post('/api/v1/auth/2fa/enable', {
|
|
35
|
-
body,
|
|
36
|
-
...options,
|
|
37
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* await client.v1.auth.number2fa.getStatus();
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
getStatus(options?: RequestOptions): APIPromise<void> {
|
|
48
|
-
return this._client.get('/api/v1/auth/2fa/status', {
|
|
49
|
-
...options,
|
|
50
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await client.v1.auth.number2fa.regenerateBackupCodes({
|
|
58
|
-
* password: 'password123',
|
|
59
|
-
* });
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
regenerateBackupCodes(
|
|
63
|
-
body: Number2faRegenerateBackupCodesParams,
|
|
64
|
-
options?: RequestOptions,
|
|
65
|
-
): APIPromise<void> {
|
|
66
|
-
return this._client.post('/api/v1/auth/2fa/regenerate-backup-codes', {
|
|
67
|
-
body,
|
|
68
|
-
...options,
|
|
69
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
9
|
/**
|
|
74
10
|
* @example
|
|
75
11
|
* ```ts
|
|
@@ -87,27 +23,6 @@ export class Number2fa extends APIResource {
|
|
|
87
23
|
}
|
|
88
24
|
}
|
|
89
25
|
|
|
90
|
-
export interface Number2faDisableParams {
|
|
91
|
-
/**
|
|
92
|
-
* User password for verification
|
|
93
|
-
*/
|
|
94
|
-
password: string;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface Number2faEnableParams {
|
|
98
|
-
/**
|
|
99
|
-
* User password for verification
|
|
100
|
-
*/
|
|
101
|
-
password: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface Number2faRegenerateBackupCodesParams {
|
|
105
|
-
/**
|
|
106
|
-
* User password for verification
|
|
107
|
-
*/
|
|
108
|
-
password: string;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
26
|
export interface Number2faSendCodeParams {
|
|
112
27
|
/**
|
|
113
28
|
* Email to send verification code
|
|
@@ -116,10 +31,5 @@ export interface Number2faSendCodeParams {
|
|
|
116
31
|
}
|
|
117
32
|
|
|
118
33
|
export declare namespace Number2fa {
|
|
119
|
-
export {
|
|
120
|
-
type Number2faDisableParams as Number2faDisableParams,
|
|
121
|
-
type Number2faEnableParams as Number2faEnableParams,
|
|
122
|
-
type Number2faRegenerateBackupCodesParams as Number2faRegenerateBackupCodesParams,
|
|
123
|
-
type Number2faSendCodeParams as Number2faSendCodeParams,
|
|
124
|
-
};
|
|
34
|
+
export { type Number2faSendCodeParams as Number2faSendCodeParams };
|
|
125
35
|
}
|
|
@@ -1,22 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
-
import { path } from '../../../internal/utils/path';
|
|
8
4
|
|
|
9
|
-
export class OrganizationInvites extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* await client.v1.auth.organizationInvites.preview('token');
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
preview(token: string, options?: RequestOptions): APIPromise<void> {
|
|
17
|
-
return this._client.get(path`/api/v1/auth/organization-invites/preview/${token}`, {
|
|
18
|
-
...options,
|
|
19
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
5
|
+
export class OrganizationInvites extends APIResource {}
|
|
@@ -126,9 +126,9 @@ export interface ChatSendMessageParams {
|
|
|
126
126
|
context?: unknown;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Body param: Group
|
|
129
|
+
* Body param: Group IDs for collaboration
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
groupIds?: Array<string>;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* Body param: Session ID for conversation continuity
|
|
@@ -493,9 +493,9 @@ export interface ComponentEmbedParams {
|
|
|
493
493
|
features?: ComponentEmbedParams.Features;
|
|
494
494
|
|
|
495
495
|
/**
|
|
496
|
-
* Group
|
|
496
|
+
* Group IDs for collaboration
|
|
497
497
|
*/
|
|
498
|
-
|
|
498
|
+
groupIds?: Array<string>;
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
501
|
* Embed height (e.g., "400px", "100vh")
|
|
@@ -65,7 +65,7 @@ export class Flashcards extends APIResource {
|
|
|
65
65
|
* @example
|
|
66
66
|
* ```ts
|
|
67
67
|
* await client.v1.flashcards.getDue('componentId', {
|
|
68
|
-
*
|
|
68
|
+
* groupIds: 'groupIds',
|
|
69
69
|
* });
|
|
70
70
|
* ```
|
|
71
71
|
*/
|
|
@@ -272,9 +272,9 @@ export namespace FlashcardBatchProcessParams {
|
|
|
272
272
|
|
|
273
273
|
export interface FlashcardGetAllParams {
|
|
274
274
|
/**
|
|
275
|
-
* Group
|
|
275
|
+
* Group IDs (comma-separated)
|
|
276
276
|
*/
|
|
277
|
-
|
|
277
|
+
groupIds?: string;
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
280
|
* Max number of cards
|
|
@@ -293,7 +293,7 @@ export interface FlashcardGetAllParams {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
export interface FlashcardGetDueParams {
|
|
296
|
-
|
|
296
|
+
groupIds: string;
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
* Max number of cards
|
|
@@ -308,9 +308,9 @@ export interface FlashcardGetDueParams {
|
|
|
308
308
|
|
|
309
309
|
export interface FlashcardGetStatsParams {
|
|
310
310
|
/**
|
|
311
|
-
* Group
|
|
311
|
+
* Group IDs (comma-separated)
|
|
312
312
|
*/
|
|
313
|
-
|
|
313
|
+
groupIds?: string;
|
|
314
314
|
|
|
315
315
|
/**
|
|
316
316
|
* User ID
|
|
@@ -6,13 +6,7 @@ export {
|
|
|
6
6
|
type AudioRecapCreateParams,
|
|
7
7
|
type AudioRecapAskQuestionParams,
|
|
8
8
|
} from './audio-recaps/index';
|
|
9
|
-
export {
|
|
10
|
-
Auth,
|
|
11
|
-
type AuthRegisterNewUserParams,
|
|
12
|
-
type AuthRegisterWithInviteParams,
|
|
13
|
-
type AuthRequestPasswordResetParams,
|
|
14
|
-
type AuthResetPasswordParams,
|
|
15
|
-
} from './auth/index';
|
|
9
|
+
export { Auth } from './auth/index';
|
|
16
10
|
export {
|
|
17
11
|
Chat,
|
|
18
12
|
type ChatRetrieveSessionParams,
|
|
@@ -54,7 +48,7 @@ export {
|
|
|
54
48
|
type MaterialListParams,
|
|
55
49
|
type MaterialGetDownloadURLParams,
|
|
56
50
|
} from './materials/index';
|
|
57
|
-
export { Organizations
|
|
51
|
+
export { Organizations } from './organizations/index';
|
|
58
52
|
export { Scenarios, type ScenarioCreateParams, type ScenarioUpdateParams } from './scenarios/index';
|
|
59
53
|
export {
|
|
60
54
|
Tests,
|
|
@@ -69,7 +63,5 @@ export {
|
|
|
69
63
|
type UsageGetStatsParams,
|
|
70
64
|
type UsageGetSummaryParams,
|
|
71
65
|
type UsageListEventsParams,
|
|
72
|
-
type UsageTrackChatParams,
|
|
73
|
-
type UsageTrackEventParams,
|
|
74
66
|
} from './usage';
|
|
75
67
|
export { V1 } from './v1';
|
|
@@ -1,48 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
-
import { path } from '../../../internal/utils/path';
|
|
8
4
|
|
|
9
|
-
export class APIKeys extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* await client.v1.organizations.apiKeys.delete('keyId');
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
delete(keyID: string, options?: RequestOptions): APIPromise<void> {
|
|
17
|
-
return this._client.delete(path`/api/v1/organizations/api-keys/${keyID}`, {
|
|
18
|
-
...options,
|
|
19
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* await client.v1.organizations.apiKeys.apiKeys();
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
apiKeys(options?: RequestOptions): APIPromise<void> {
|
|
30
|
-
return this._client.post('/api/v1/organizations/api-keys', {
|
|
31
|
-
...options,
|
|
32
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* await client.v1.organizations.apiKeys.retrieveAPIKeys();
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
retrieveAPIKeys(options?: RequestOptions): APIPromise<void> {
|
|
43
|
-
return this._client.get('/api/v1/organizations/api-keys', {
|
|
44
|
-
...options,
|
|
45
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
5
|
+
export class APIKeys extends APIResource {}
|