@gitbook/api 0.209.0 → 0.209.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/client.d.ts +271 -20
- package/dist/constants.d.ts +5 -1
- package/dist/index.cjs +69 -2
- package/dist/index.js +64 -2
- package/package.json +2 -1
- package/spec/openapi.json +713 -28
- package/spec/openapi.yaml +472 -20
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/dist/client.d.ts
CHANGED
|
@@ -870,6 +870,13 @@ export declare enum SCIMConnectionProvider {
|
|
|
870
870
|
Entra = "entra",
|
|
871
871
|
Generic = "generic"
|
|
872
872
|
}
|
|
873
|
+
/** Verification status of the domain. "legacy" is a domain added before verification existed: it keeps letting people join automatically without being verified. */
|
|
874
|
+
export declare enum OrganizationDomainStatus {
|
|
875
|
+
Legacy = "legacy",
|
|
876
|
+
Pending = "pending",
|
|
877
|
+
Verified = "verified",
|
|
878
|
+
Error = "error"
|
|
879
|
+
}
|
|
873
880
|
/**
|
|
874
881
|
* Status of the provider.
|
|
875
882
|
* - `active`: The provider is active and can be used to authenticate users.
|
|
@@ -893,6 +900,7 @@ export declare enum OrganizationFeature {
|
|
|
893
900
|
MembersTeamOwners = "members-team-owners",
|
|
894
901
|
SecuritySaml = "security-saml",
|
|
895
902
|
Scim = "scim",
|
|
903
|
+
VerifiedDomains = "verified-domains",
|
|
896
904
|
ChangeRequestsMergeRules = "change-requests-merge-rules"
|
|
897
905
|
}
|
|
898
906
|
/**
|
|
@@ -1385,7 +1393,7 @@ export declare enum ContentVisibility {
|
|
|
1385
1393
|
/** Data passed through a realtime channel */
|
|
1386
1394
|
export type APIChannelData = APIChannelGitSyncOperationData | APIChannelGitSyncSiteOperationData | APIChannelTranslationRunData | APIChannelImportRunData | APIChannelMutationData;
|
|
1387
1395
|
/** Channel to subscribe to for realtime updates. */
|
|
1388
|
-
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationSCIMConnections | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelGitSyncSiteOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
|
|
1396
|
+
export type APIChannel = APIChannelSpaceInfo | APIChannelSpaceContent | APIChannelSpaceGitInfo | APIChannelSpacePublishingAuth | APIChannelSpacePublishingCustomization | APIChannelSpaceIntegrations | APIChannelUserAPITokens | APIChannelUserOrganizations | APIChannelUserPasskeys | APIChannelUserProfile | APIChannelChangeRequest | APIChannelChangeRequests | APIChannelChangeRequestReviews | APIChannelCollection | APIChannelCollectionPublishingCustomization | APIChannelOrganizationInfo | APIChannelOrganizationAgentData | APIChannelOrganizationInviteLinks | APIChannelOrganizationMembers | APIChannelOrganizationMember | APIChannelOrganizationSAML | APIChannelOrganizationTeams | APIChannelOrganizationTeam | APIChannelOrganizationTeamMembers | APIChannelOrganizationTeamMember | APIChannelOrganizationSpaces | APIChannelOrganizationCollections | APIChannelOrganizationIntegrations | APIChannelOrganizationInstallations | APIChannelOrganizationSites | APIChannelOrganizationOpenAPISpecs | APIChannelOrganizationTranslations | APIChannelOrganizationTranslationsGlossary | APIChannelOrganizationSCIMConnections | APIChannelOrganizationDomains | APIChannelOrganizationCustomFonts | APIChannelOrganizationAgentInstructions | APIChannelOrganizationChangeRequests | APIChannelSpaceComments | APIChannelChangeRequestComments | APIChannelCommentInfo | APIChannelCommentReplies | APIChannelIntegration | APIChannelIntegrationInstallation | APIChannelIntegrationSpaceInstallation | APIChannelIntegrationSpaceInstallations | APIChannelIntegrationSiteInstallation | APIChannelIntegrationSiteInstallations | APIChannelPublishedContentSite | APIChannelSiteRedirects | APIChannelSite | APIChannelSiteChannels | APIChannelSiteContext | APIChannelSiteCustomization | APIChannelSiteAgentSettings | APIChannelSiteIntegrations | APIChannelSiteSpace | APIChannelSiteSpaceCustomization | APIChannelSiteStructure | APIChannelSiteAdaptiveSchema | APIChannelSitePublishingAuth | APIChannelSiteShareLinks | APIChannelSiteShareLink | APIChannelSiteMcpServers | APIChannelSiteMcpServer | APIChannelSiteSection | APIChannelCustomHostname | APIChannelGitSyncInstallation | APIChannelGitSyncOperation | APIChannelGitSyncSiteOperation | APIChannelOpenAPISpec | APIChannelSubdomain | APIChannelTranslation | APIChannelTranslationRun | APIChannelImportRun;
|
|
1389
1397
|
/** The plan upgrade that would make a feature available. */
|
|
1390
1398
|
export type FeatureUpgradeRequirement = {
|
|
1391
1399
|
type: "organization";
|
|
@@ -1547,6 +1555,46 @@ export interface APITemporaryToken {
|
|
|
1547
1555
|
/** Temporary access token to authenticate with the API */
|
|
1548
1556
|
token: string;
|
|
1549
1557
|
}
|
|
1558
|
+
/** @format date-time */
|
|
1559
|
+
export type Timestamp = string;
|
|
1560
|
+
/** A passkey the user registered to sign in to GitBook. */
|
|
1561
|
+
export interface UserPasskey {
|
|
1562
|
+
/** The object type, which is always "passkey" */
|
|
1563
|
+
object: "passkey";
|
|
1564
|
+
/** Unique identifier of the passkey. */
|
|
1565
|
+
id: string;
|
|
1566
|
+
/** Name the user gave the passkey, usually the device or password manager that holds it. */
|
|
1567
|
+
name: string;
|
|
1568
|
+
/** When the passkey was registered. */
|
|
1569
|
+
createdAt: Timestamp;
|
|
1570
|
+
/** When the passkey was last used to sign in. Absent if it has never been used. */
|
|
1571
|
+
lastUsedAt?: Timestamp;
|
|
1572
|
+
/** Whether the passkey is synced across devices, for example by a password manager. */
|
|
1573
|
+
backedUp: boolean;
|
|
1574
|
+
}
|
|
1575
|
+
/** The browser's answer to the passkey registration options (RegistrationResponseJSON). */
|
|
1576
|
+
export interface PasskeyRegistrationResponse {
|
|
1577
|
+
id: string;
|
|
1578
|
+
rawId: string;
|
|
1579
|
+
type: "public-key";
|
|
1580
|
+
response: {
|
|
1581
|
+
clientDataJSON: string;
|
|
1582
|
+
attestationObject: string;
|
|
1583
|
+
/**
|
|
1584
|
+
* How the browser reaches the authenticator, such as usb, nfc, ble, smart-card, hybrid or internal. WebAuthn can add values, so any short lowercase name is accepted.
|
|
1585
|
+
* @maxItems 8
|
|
1586
|
+
*/
|
|
1587
|
+
transports?: string[];
|
|
1588
|
+
};
|
|
1589
|
+
clientExtensionResults: Record<string, any>;
|
|
1590
|
+
authenticatorAttachment?: "platform" | "cross-platform";
|
|
1591
|
+
}
|
|
1592
|
+
/** WebAuthn options for creating a passkey (PublicKeyCredentialCreationOptionsJSON), to pass unchanged to the browser. */
|
|
1593
|
+
export interface PasskeyRegistrationOptions {
|
|
1594
|
+
/** Single-use challenge the new passkey must sign. */
|
|
1595
|
+
challenge: string;
|
|
1596
|
+
[key: string]: any;
|
|
1597
|
+
}
|
|
1550
1598
|
export interface List {
|
|
1551
1599
|
next?: {
|
|
1552
1600
|
/** Unique identifier to query the next results page */
|
|
@@ -1557,8 +1605,6 @@ export interface List {
|
|
|
1557
1605
|
}
|
|
1558
1606
|
/** @maxLength 50 */
|
|
1559
1607
|
export type APITokenLabel = string;
|
|
1560
|
-
/** @format date-time */
|
|
1561
|
-
export type Timestamp = string;
|
|
1562
1608
|
/** The API token details, excluding the token itself. */
|
|
1563
1609
|
export interface UserAPIToken {
|
|
1564
1610
|
/** The API token ID. */
|
|
@@ -5768,6 +5814,13 @@ export interface UpdateIntegrationSiteInstallation {
|
|
|
5768
5814
|
/** ID of a consumed OAuth transaction for this exact target, authorizing a credential write. Single use. */
|
|
5769
5815
|
oauthTransaction?: string;
|
|
5770
5816
|
}
|
|
5817
|
+
/**
|
|
5818
|
+
* Name of a new organization
|
|
5819
|
+
* @minLength 2
|
|
5820
|
+
* @maxLength 80
|
|
5821
|
+
* @pattern \S.*\S
|
|
5822
|
+
*/
|
|
5823
|
+
export type NewOrganizationTitle = string;
|
|
5771
5824
|
/** Preferences collected from the user during site onboarding, used to tailor recommendations and to apply their initial setup choices. */
|
|
5772
5825
|
export interface SiteOnboardingPreferences {
|
|
5773
5826
|
source: SiteOnboardingSource | null;
|
|
@@ -5775,8 +5828,12 @@ export interface SiteOnboardingPreferences {
|
|
|
5775
5828
|
interests: SiteOnboardingInterest[];
|
|
5776
5829
|
}
|
|
5777
5830
|
export interface CreateOrganization {
|
|
5778
|
-
/** Name of
|
|
5779
|
-
title:
|
|
5831
|
+
/** Name of a new organization */
|
|
5832
|
+
title: NewOrganizationTitle;
|
|
5833
|
+
/**
|
|
5834
|
+
* No longer supported: a non-empty list is rejected. Add and verify domains with the domain management API after the organization is created.
|
|
5835
|
+
* @deprecated
|
|
5836
|
+
*/
|
|
5780
5837
|
emailDomains?: OrganizationEmailDomains;
|
|
5781
5838
|
/** Preferences collected from the user during onboarding, to apply to the organization's default site. Only used when `withDefaultSite` is true. */
|
|
5782
5839
|
onboardingPreferences?: SiteOnboardingPreferences;
|
|
@@ -6290,13 +6347,11 @@ export type BillingCancellationFeedback = {
|
|
|
6290
6347
|
} | {
|
|
6291
6348
|
reason: "will_vibe_code_our_own_app";
|
|
6292
6349
|
/** The tool the organization is moving to */
|
|
6293
|
-
reasonDetail: "claude" | "codex" | "replit";
|
|
6294
|
-
} | {
|
|
6295
|
-
reason: "will_vibe_code_our_own_app";
|
|
6296
|
-
/** The tool the organization is moving to */
|
|
6297
|
-
reasonDetail: "other";
|
|
6350
|
+
reasonDetail: "claude" | "codex" | "cursor" | "lovable" | "replit" | "other";
|
|
6298
6351
|
/** Free-text detail a user typed alongside their cancellation reason. */
|
|
6299
|
-
reasonComment
|
|
6352
|
+
reasonComment?: BillingCancellationComment;
|
|
6353
|
+
/** Where the organization plans to host its own solution */
|
|
6354
|
+
reasonHosting?: "own_website_or_app" | "vercel" | "netlify" | "github_pages" | "cloudflare_pages" | "not_decided" | "other";
|
|
6300
6355
|
} | {
|
|
6301
6356
|
reason: "found_better_alternative";
|
|
6302
6357
|
/** Free-text detail a user typed alongside their cancellation reason. */
|
|
@@ -6307,6 +6362,28 @@ export type BillingCancellationFeedback = {
|
|
|
6307
6362
|
reason: "other_reason";
|
|
6308
6363
|
/** Free-text detail a user typed alongside their cancellation reason. */
|
|
6309
6364
|
reasonComment: BillingCancellationComment;
|
|
6365
|
+
} | {
|
|
6366
|
+
reason: "not_using_enough";
|
|
6367
|
+
reasonDetail: "yes_in_a_few_months" | "no";
|
|
6368
|
+
/** Free-text detail a user typed alongside their cancellation reason. */
|
|
6369
|
+
reasonComment?: BillingCancellationComment;
|
|
6370
|
+
} | {
|
|
6371
|
+
reason: "found_better_alternative";
|
|
6372
|
+
reasonDetail: "mintlify" | "readme" | "docusaurus" | "notion" | "confluence" | "self_hosted" | "other";
|
|
6373
|
+
/** Free-text detail a user typed alongside their cancellation reason. */
|
|
6374
|
+
reasonComment?: BillingCancellationComment;
|
|
6375
|
+
} | {
|
|
6376
|
+
reason: "not_satisfied_with_product";
|
|
6377
|
+
/** Free-text detail a user typed alongside their cancellation reason. */
|
|
6378
|
+
reasonComment: BillingCancellationComment;
|
|
6379
|
+
} | {
|
|
6380
|
+
reason: "budget";
|
|
6381
|
+
reasonDetail: "budget_cuts" | "plan_price_increase" | "consolidating_tools" | "funding_changed" | "excess_seats_or_sites" | "project_budget_reduced";
|
|
6382
|
+
} | {
|
|
6383
|
+
reason: "budget";
|
|
6384
|
+
reasonDetail: "other";
|
|
6385
|
+
/** Free-text detail a user typed alongside their cancellation reason. */
|
|
6386
|
+
reasonComment: BillingCancellationComment;
|
|
6310
6387
|
};
|
|
6311
6388
|
/**
|
|
6312
6389
|
* Coupon or promotion code to apply to billing operations.
|
|
@@ -6664,6 +6741,40 @@ export interface OrganizationSAMLProvider {
|
|
|
6664
6741
|
location: string;
|
|
6665
6742
|
};
|
|
6666
6743
|
}
|
|
6744
|
+
/** Role given to people who join through the domain. "default" uses the organization's default role, and "guest" adds them as guests. */
|
|
6745
|
+
export type OrganizationDomainDefaultRole = MemberRole | "default" | "guest";
|
|
6746
|
+
/** An email domain of an organization. */
|
|
6747
|
+
export interface OrganizationDomain {
|
|
6748
|
+
/** The object type, which is always "organization-domain" */
|
|
6749
|
+
object: "organization-domain";
|
|
6750
|
+
/** The email domain, such as "example.com" */
|
|
6751
|
+
domain: string;
|
|
6752
|
+
/** Verification status of the domain. "legacy" is a domain added before verification existed: it keeps letting people join automatically without being verified. */
|
|
6753
|
+
status: OrganizationDomainStatus;
|
|
6754
|
+
/** Why the last verification failed */
|
|
6755
|
+
statusDescription?: string;
|
|
6756
|
+
/** DNS TXT record to add to the domain to verify it */
|
|
6757
|
+
verificationRecord?: {
|
|
6758
|
+
type: "TXT";
|
|
6759
|
+
name: string;
|
|
6760
|
+
value: string;
|
|
6761
|
+
};
|
|
6762
|
+
/** Whether people with an email on the domain join the organization automatically */
|
|
6763
|
+
autoJoinEnabled: boolean;
|
|
6764
|
+
/** Role given to people who join through the domain. "default" uses the organization's default role, and "guest" adds them as guests. */
|
|
6765
|
+
defaultRole: OrganizationDomainDefaultRole;
|
|
6766
|
+
/** ID of the team that people joining through the domain are added to */
|
|
6767
|
+
defaultTeam?: string;
|
|
6768
|
+
/** Date the domain was verified */
|
|
6769
|
+
verifiedAt?: Timestamp;
|
|
6770
|
+
/** Date the domain was added */
|
|
6771
|
+
createdAt: Timestamp;
|
|
6772
|
+
/** URLs associated with the object */
|
|
6773
|
+
urls: {
|
|
6774
|
+
/** URL of the domain in the API */
|
|
6775
|
+
location: URL;
|
|
6776
|
+
};
|
|
6777
|
+
}
|
|
6667
6778
|
/**
|
|
6668
6779
|
* Name of the SCIM connection, shown to organization admins.
|
|
6669
6780
|
* @minLength 1
|
|
@@ -11760,6 +11871,10 @@ export interface APIChannelUserOrganizations {
|
|
|
11760
11871
|
channel: "user-organizations";
|
|
11761
11872
|
user: string;
|
|
11762
11873
|
}
|
|
11874
|
+
export interface APIChannelUserPasskeys {
|
|
11875
|
+
channel: "user-passkeys";
|
|
11876
|
+
user: string;
|
|
11877
|
+
}
|
|
11763
11878
|
export interface APIChannelUserProfile {
|
|
11764
11879
|
channel: "user-profile";
|
|
11765
11880
|
user: string;
|
|
@@ -11875,6 +11990,11 @@ export interface APIChannelOrganizationSCIMConnections {
|
|
|
11875
11990
|
channel: "organization-scim-connections";
|
|
11876
11991
|
organization: string;
|
|
11877
11992
|
}
|
|
11993
|
+
/** Subscription channel for changes in the email domains of an organization. */
|
|
11994
|
+
export interface APIChannelOrganizationDomains {
|
|
11995
|
+
channel: "organization-domains";
|
|
11996
|
+
organization: string;
|
|
11997
|
+
}
|
|
11878
11998
|
/** Subscription channel for changes in custom fonts in an organization. */
|
|
11879
11999
|
export interface APIChannelOrganizationCustomFonts {
|
|
11880
12000
|
channel: "organization-fonts";
|
|
@@ -14999,7 +15119,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
14999
15119
|
};
|
|
15000
15120
|
}>>;
|
|
15001
15121
|
/**
|
|
15002
|
-
* @description Updates the account-level configuration of an installation, and which spaces or sites it applies to.
|
|
15122
|
+
* @description Updates the account-level configuration of an installation, and which spaces or sites it applies to. Only a user can change `space_selection` and `site_selection`; integration and installation tokens get a 403 when they send them.
|
|
15003
15123
|
*
|
|
15004
15124
|
* @tags integrations
|
|
15005
15125
|
* @name UpdateIntegrationInstallation
|
|
@@ -15954,7 +16074,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
15954
16074
|
*/
|
|
15955
16075
|
deleteOrganizationInviteById: (organizationId: EntityId, inviteId: EntityId, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
15956
16076
|
/**
|
|
15957
|
-
* @description Join an organization if the user's verified email domain matches one of the organization's allowed email domains. This endpoint allows existing users to join organizations they're eligible for based on their email domain.
|
|
16077
|
+
* @description Join an organization if the user's verified email domain matches one of the organization's allowed email domains. This endpoint allows existing users to join organizations they're eligible for based on their email domain. If the user is already a member, refresh their access without changing their membership.
|
|
15958
16078
|
*
|
|
15959
16079
|
* @tags organizations
|
|
15960
16080
|
* @name JoinOrganization
|
|
@@ -16336,6 +16456,137 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
16336
16456
|
* @secure
|
|
16337
16457
|
*/
|
|
16338
16458
|
deleteOrganizationSamlProvider: (organizationId: EntityId, samlProviderId: string, params?: RequestParams) => Promise<HttpResponse<void, any>>;
|
|
16459
|
+
/**
|
|
16460
|
+
* No description
|
|
16461
|
+
*
|
|
16462
|
+
* @tags organizations
|
|
16463
|
+
* @name ListOrganizationDomains
|
|
16464
|
+
* @summary List the email domains of an organization
|
|
16465
|
+
* @request GET:/orgs/{organizationId}/domains
|
|
16466
|
+
* @secure
|
|
16467
|
+
*/
|
|
16468
|
+
listOrganizationDomains: (organizationId: EntityId, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
16469
|
+
items: OrganizationDomain[];
|
|
16470
|
+
}, {
|
|
16471
|
+
error: {
|
|
16472
|
+
/** @format int32 */
|
|
16473
|
+
code: 404;
|
|
16474
|
+
message: string;
|
|
16475
|
+
};
|
|
16476
|
+
}>>;
|
|
16477
|
+
/**
|
|
16478
|
+
* @description Adds an email domain. People only join through it once the domain is verified.
|
|
16479
|
+
*
|
|
16480
|
+
* @tags organizations
|
|
16481
|
+
* @name AddOrganizationDomain
|
|
16482
|
+
* @summary Add an email domain to an organization
|
|
16483
|
+
* @request POST:/orgs/{organizationId}/domains
|
|
16484
|
+
* @secure
|
|
16485
|
+
*/
|
|
16486
|
+
addOrganizationDomain: (organizationId: EntityId, data: {
|
|
16487
|
+
/** @maxLength 253 */
|
|
16488
|
+
domain: string;
|
|
16489
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationDomain, {
|
|
16490
|
+
error: {
|
|
16491
|
+
/** @format int32 */
|
|
16492
|
+
code: 400;
|
|
16493
|
+
message: string;
|
|
16494
|
+
};
|
|
16495
|
+
} | {
|
|
16496
|
+
error: {
|
|
16497
|
+
/** @format int32 */
|
|
16498
|
+
code: 404;
|
|
16499
|
+
message: string;
|
|
16500
|
+
};
|
|
16501
|
+
} | {
|
|
16502
|
+
error: {
|
|
16503
|
+
/** @format int32 */
|
|
16504
|
+
code: 409;
|
|
16505
|
+
message: string;
|
|
16506
|
+
};
|
|
16507
|
+
}>>;
|
|
16508
|
+
/**
|
|
16509
|
+
* No description
|
|
16510
|
+
*
|
|
16511
|
+
* @tags organizations
|
|
16512
|
+
* @name GetOrganizationDomain
|
|
16513
|
+
* @summary Get an email domain of an organization
|
|
16514
|
+
* @request GET:/orgs/{organizationId}/domains/{emailDomain}
|
|
16515
|
+
* @secure
|
|
16516
|
+
*/
|
|
16517
|
+
getOrganizationDomain: (organizationId: EntityId, emailDomain: string, params?: RequestParams) => Promise<HttpResponse<OrganizationDomain, {
|
|
16518
|
+
error: {
|
|
16519
|
+
/** @format int32 */
|
|
16520
|
+
code: 404;
|
|
16521
|
+
message: string;
|
|
16522
|
+
};
|
|
16523
|
+
}>>;
|
|
16524
|
+
/**
|
|
16525
|
+
* No description
|
|
16526
|
+
*
|
|
16527
|
+
* @tags organizations
|
|
16528
|
+
* @name UpdateOrganizationDomain
|
|
16529
|
+
* @summary Update an email domain of an organization
|
|
16530
|
+
* @request PATCH:/orgs/{organizationId}/domains/{emailDomain}
|
|
16531
|
+
* @secure
|
|
16532
|
+
*/
|
|
16533
|
+
updateOrganizationDomain: (organizationId: EntityId, emailDomain: string, data: {
|
|
16534
|
+
autoJoinEnabled?: boolean;
|
|
16535
|
+
/** Role given to people who join through the domain. "default" uses the organization's default role, and "guest" adds them as guests. */
|
|
16536
|
+
defaultRole?: OrganizationDomainDefaultRole;
|
|
16537
|
+
/** ID of a team of the organization, or null to add no team */
|
|
16538
|
+
defaultTeam?: string | null;
|
|
16539
|
+
}, params?: RequestParams) => Promise<HttpResponse<OrganizationDomain, {
|
|
16540
|
+
error: {
|
|
16541
|
+
/** @format int32 */
|
|
16542
|
+
code: 400;
|
|
16543
|
+
message: string;
|
|
16544
|
+
};
|
|
16545
|
+
} | {
|
|
16546
|
+
error: {
|
|
16547
|
+
/** @format int32 */
|
|
16548
|
+
code: 404;
|
|
16549
|
+
message: string;
|
|
16550
|
+
};
|
|
16551
|
+
}>>;
|
|
16552
|
+
/**
|
|
16553
|
+
* @description Removes an email domain. Members who joined through it stay members.
|
|
16554
|
+
*
|
|
16555
|
+
* @tags organizations
|
|
16556
|
+
* @name DeleteOrganizationDomain
|
|
16557
|
+
* @summary Remove an email domain from an organization
|
|
16558
|
+
* @request DELETE:/orgs/{organizationId}/domains/{emailDomain}
|
|
16559
|
+
* @secure
|
|
16560
|
+
*/
|
|
16561
|
+
deleteOrganizationDomain: (organizationId: EntityId, emailDomain: string, params?: RequestParams) => Promise<HttpResponse<void, {
|
|
16562
|
+
error: {
|
|
16563
|
+
/** @format int32 */
|
|
16564
|
+
code: 404;
|
|
16565
|
+
message: string;
|
|
16566
|
+
};
|
|
16567
|
+
}>>;
|
|
16568
|
+
/**
|
|
16569
|
+
* @description Checks the domain's DNS TXT record. A legacy domain first gets its verification record, and keeps letting people join until it is verified.
|
|
16570
|
+
*
|
|
16571
|
+
* @tags organizations
|
|
16572
|
+
* @name VerifyOrganizationDomain
|
|
16573
|
+
* @summary Verify an email domain of an organization
|
|
16574
|
+
* @request POST:/orgs/{organizationId}/domains/{emailDomain}/verify
|
|
16575
|
+
* @secure
|
|
16576
|
+
*/
|
|
16577
|
+
verifyOrganizationDomain: (organizationId: EntityId, emailDomain: string, params?: RequestParams) => Promise<HttpResponse<OrganizationDomain, {
|
|
16578
|
+
error: {
|
|
16579
|
+
/** @format int32 */
|
|
16580
|
+
code: 404;
|
|
16581
|
+
message: string;
|
|
16582
|
+
};
|
|
16583
|
+
} | {
|
|
16584
|
+
error: {
|
|
16585
|
+
/** @format int32 */
|
|
16586
|
+
code: 409;
|
|
16587
|
+
message: string;
|
|
16588
|
+
};
|
|
16589
|
+
}>>;
|
|
16339
16590
|
/**
|
|
16340
16591
|
* No description
|
|
16341
16592
|
*
|
|
@@ -18659,7 +18910,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18659
18910
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
18660
18911
|
/** Filter stats by answer channel type. */
|
|
18661
18912
|
channelType?: SiteChannelType[];
|
|
18662
|
-
/** Filter by
|
|
18913
|
+
/** Filter by who asked the question (a person, an AI agent, another bot, or unknown). */
|
|
18663
18914
|
visitorType?: SiteQuestionVisitorType[];
|
|
18664
18915
|
/** Filter to answers that cited one of these pages as a source, each given as `{spaceId}/{pageId}`. */
|
|
18665
18916
|
citedPage?: string[];
|
|
@@ -18720,7 +18971,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18720
18971
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
18721
18972
|
/** Filter questions by answer channel type. */
|
|
18722
18973
|
channelType?: SiteChannelType[];
|
|
18723
|
-
/** Filter by
|
|
18974
|
+
/** Filter by who asked the question (a person, an AI agent, another bot, or unknown). */
|
|
18724
18975
|
visitorType?: SiteQuestionVisitorType[];
|
|
18725
18976
|
/** Filter to answers that cited one of these pages as a source, each given as `{spaceId}/{pageId}`. */
|
|
18726
18977
|
citedPage?: string[];
|
|
@@ -18766,7 +19017,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18766
19017
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
18767
19018
|
/** Filter stats by answer channel type. */
|
|
18768
19019
|
channelType?: SiteChannelType[];
|
|
18769
|
-
/** Filter by
|
|
19020
|
+
/** Filter by who asked the question (a person, an AI agent, another bot, or unknown). */
|
|
18770
19021
|
visitorType?: SiteQuestionVisitorType[];
|
|
18771
19022
|
/** Filter stats by answer resolution. */
|
|
18772
19023
|
answered?: SiteQuestionAnswerResolution[];
|
|
@@ -18797,7 +19048,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18797
19048
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
18798
19049
|
/** Filter answer sources by answer channel type. */
|
|
18799
19050
|
channelType?: SiteChannelType[];
|
|
18800
|
-
/** Filter by
|
|
19051
|
+
/** Filter by who asked the question (a person, an AI agent, another bot, or unknown). */
|
|
18801
19052
|
visitorType?: SiteQuestionVisitorType[];
|
|
18802
19053
|
/** Filter answer sources by answer resolution. */
|
|
18803
19054
|
answered?: SiteQuestionAnswerResolution[];
|
|
@@ -18824,7 +19075,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18824
19075
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
18825
19076
|
/** Filter stats by answer channel type. */
|
|
18826
19077
|
channelType?: SiteChannelType[];
|
|
18827
|
-
/** Filter by
|
|
19078
|
+
/** Filter by who asked the question (a person, an AI agent, another bot, or unknown). */
|
|
18828
19079
|
visitorType?: SiteQuestionVisitorType[];
|
|
18829
19080
|
/** Filter to answers that cited one of these pages as a source, each given as `{spaceId}/{pageId}`. */
|
|
18830
19081
|
citedPage?: string[];
|
|
@@ -18853,7 +19104,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18853
19104
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
18854
19105
|
/** Filter answers by channel type. */
|
|
18855
19106
|
channelType?: SiteChannelType[];
|
|
18856
|
-
/** Filter by
|
|
19107
|
+
/** Filter by who asked the question (a person, an AI agent, another bot, or unknown). */
|
|
18857
19108
|
visitorType?: SiteQuestionVisitorType[];
|
|
18858
19109
|
/** Filter to answers that cited one of these pages as a source, each given as `{spaceId}/{pageId}`. */
|
|
18859
19110
|
citedPage?: string[];
|
|
@@ -18886,7 +19137,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
18886
19137
|
relevance?: SiteQuestionAnswerRelevance[];
|
|
18887
19138
|
/** Filter answers by answer channel type. */
|
|
18888
19139
|
channelType?: SiteChannelType[];
|
|
18889
|
-
/** Filter by
|
|
19140
|
+
/** Filter by who asked the question (a person, an AI agent, another bot, or unknown). */
|
|
18890
19141
|
visitorType?: SiteQuestionVisitorType[];
|
|
18891
19142
|
/** Filter answers by question type. */
|
|
18892
19143
|
"question.type"?: SiteQuestionType;
|