Skip to content

Commit 3d01445

Browse files
authored
Merge pull request #23 from box/codegen-output-6cba3fc12dba43c78b9c632b02716adf
2 parents 9ebac4f + fbb9e42 commit 3d01445

File tree

440 files changed

+5762
-30893
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+5762
-30893
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
name: Bug
3+
about: Report a bug found in the SDK
4+
title: ''
5+
labels: bug
6+
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski
7+
---
8+
9+
- [ ] I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
10+
- [ ] I have checked that the [API documentation][api-docs] doesn't solve my issue.
11+
- [ ] I have searched the [Box Developer Forums][dev-forums] and my issue isn't already reported (or if it has been reported, I have attached a link to it, for reference).
12+
- [ ] I have searched [Issues in this repo][github-repo] and my issue isn't already reported.
13+
14+
### Description of the Issue
15+
16+
<!-- Replace this text with a description of what problem you're having. -->
17+
<!-- Please include as much detail as possible to help us troubleshoot! -->
18+
<!-- If it isn't obvious, please include how the behavior you expect differs from what actually happened. -->
19+
<!-- This is really important so we know how to start troubleshooting your issue. -->
20+
21+
### Steps to Reproduce
22+
23+
<!-- Please include detailed steps to reproduce the issue you're seeing, if possible. -->
24+
<!-- If you don't have a reproducible error, please make sure that you give us as much detail -->
25+
<!-- as you can about what your application was doing when the error occurred. -->
26+
<!-- Good steps to reproduce the problem help speed up debugging for us and gets your issue resolved sooner! -->
27+
28+
1. Go to '...'
29+
2. Click on '....'
30+
3. Scroll down to '....'
31+
4. See error
32+
33+
### Expected Behavior
34+
35+
<!-- What did you expect to happen? -->
36+
37+
### Error Message, Including Stack Trace
38+
39+
<!-- Share the full error output you're seeing, if applicable. -->
40+
<!-- Please include the full stack trace to help us identify where the error is happening. -->
41+
42+
### Screenshots
43+
44+
<!-- If applicable, add screenshots to help explain your problem. -->
45+
46+
### Versions Used
47+
48+
Typescript SDK: <!-- Replace with the version of the Typescript SDK you're using. -->
49+
Platform: <!-- Replace with the platform you're using (e.g. Node.js, Javascript (Browser), etc.) -->
50+
Node.js (if applicabe): <!-- Replace with the version of Node.js your application is running on. -->
51+
52+
[sdk-docs]: https://github.com/box/box-ts-sdk-generated/tree/main/docs
53+
[api-docs]: https://developer.box.com/docs
54+
[dev-forums]: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
55+
[github-repo]: https://github.com/box/box-ts-sdk-generated/search?type=Issues

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: SDK documentation
4+
url: https://github.com/box/box-ts-sdk-generated/tree/main/docs
5+
about: Before creating an issue, I have checked that the SDK documentation doesn't solve my issue.
6+
- name: API documentation
7+
url: https://developer.box.com/docs
8+
about: Before creating an issue, I have checked that the API documentation doesn't solve my issue.
9+
- name: Box Developer Forums
10+
url: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
11+
about: Before creating an issue, I have searched the Box Developer Forums and my issue isn't already reported there.
12+
- name: Issues in this repo
13+
url: https://github.com/box/box-ts-sdk-generated/search?type=Issues
14+
about: Before creating an issue, I have searched Issues in this repo and my issue isn't already reported.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Enhancement
3+
about: Suggest a new feature or change
4+
title: ''
5+
labels: enhancement
6+
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski
7+
---
8+
9+
### Is your feature request related to a problem? Please describe.
10+
11+
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12+
13+
### Describe the solution you'd like
14+
15+
<!-- A clear and concise description of what you want to happen. -->
16+
17+
### Describe alternatives you've considered
18+
19+
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
20+
21+
### Additional context
22+
23+
<!-- Add any other context or screenshots about the feature request here. -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
name: Question
3+
about: Request for Assistance
4+
title: ''
5+
labels: question
6+
assignees: mwwoda, mhagmajer, antusus, arjankowski, lukaszsocha2, bartlomiejleszczynski
7+
---
8+
9+
- [ ] I have checked that the [SDK documentation][sdk-docs] doesn't solve my issue.
10+
- [ ] I have checked that the [API documentation][api-docs] doesn't solve my issue.
11+
- [ ] I have searched the [Box Developer Forums][dev-forums] and my issue isn't already reported (or if it has been reported, I have attached a link to it, for reference).
12+
- [ ] I have searched [Issues in this repo][github-repo] and my issue isn't already reported.
13+
14+
### Description of the Issue
15+
16+
<!-- Replace this text with a description of what problem you're having. -->
17+
<!-- Please include as much detail as possible to help us troubleshoot! -->
18+
<!-- If it isn't obvious, please include how the behavior you expect differs from what actually happened. -->
19+
<!-- This is really important so we know how to start troubleshooting your issue. -->
20+
21+
### Steps to Reproduce
22+
23+
<!-- Please include detailed steps to reproduce the issue you're seeing, if possible. -->
24+
<!-- If you don't have a reproducible error, please make sure that you give us as much detail -->
25+
<!-- as you can about what your application was doing when the error occurred. -->
26+
<!-- Good steps to reproduce the problem help speed up debugging for us and gets your issue resolved sooner! -->
27+
28+
1. Go to '...'
29+
2. Click on '....'
30+
3. Scroll down to '....'
31+
4. See error
32+
33+
### Expected Behavior
34+
35+
<!-- What did you expect to happen? -->
36+
37+
### Error Message, Including Stack Trace
38+
39+
<!-- Share the full error output you're seeing, if applicable. -->
40+
<!-- Please include the full stack trace to help us identify where the error is happening. -->
41+
42+
### Screenshots
43+
44+
<!-- If applicable, add screenshots to help explain your problem. -->
45+
46+
### Versions Used
47+
48+
Typescript SDK: <!-- Replace with the version of the Typescript SDK you're using. -->
49+
Platform: <!-- Replace with the platform you're using (e.g. Node.js, Javascript (Browser), etc.) -->
50+
Node.js (if applicabe): <!-- Replace with the version of Node.js your application is running on. -->
51+
52+
[sdk-docs]: https://github.com/box/box-ts-sdk-generated/tree/main/docs
53+
[api-docs]: https://developer.box.com/docs
54+
[dev-forums]: https://community.box.com/t5/Platform-and-Development-Forum/bd-p/DeveloperForum
55+
[github-repo]: https://github.com/box/box-ts-sdk-generated/search?type=Issues

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib/
2+
coverage/

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
- [Installing](#installing)
77
- [Getting Started](#getting-started)
8+
- [Questions, Bugs, and Feature Requests?](#questions-bugs-and-feature-requests)
9+
- [Copyright and License](#copyright-and-license)
810

911
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1012

@@ -51,7 +53,7 @@ back to you. If you have general questions about the Box API, you can
5153
post to the [Box Developer
5254
Forum](https://community.box.com/t5/Developer-Forum/bd-p/DeveloperForum).
5355

54-
## Copyright and License
56+
# Copyright and License
5557

5658
Copyright 2023 Box, Inc. All rights reserved.
5759

docs/authorization.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# AuthorizationManager
22

3+
4+
- [Authorize user](#authorize-user)
5+
36
## Authorize user
47

58
Authorize a user by sending them through the [Box](https://box.com)
69
website and request their permission to act on their behalf.
710

811
This is the first step when authenticating a user using
9-
OAuth 2.0. To request a user&#x27;s authorization to use the Box APIs
12+
OAuth 2.0. To request a user's authorization to use the Box APIs
1013
on their behalf you will need to send a user to the URL with this
1114
format.
1215

@@ -20,7 +23,9 @@ See the endpoint docs at
2023
### Arguments
2124

2225
- queryParams `GetAuthorizeQueryParamsArg`
23-
- Used as queryParams for the API call
26+
- Query parameters of getAuthorize method
27+
- headers `GetAuthorizeHeadersArg`
28+
- Headers of getAuthorize method
2429

2530

2631
### Returns

docs/avatars.md

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# AvatarsManager
22

3+
4+
- [Get user avatar](#get-user-avatar)
5+
- [Add or update user avatar](#add-or-update-user-avatar)
6+
- [Delete user avatar](#delete-user-avatar)
7+
38
## Get user avatar
49

5-
Retrieves an image of a the user&#x27;s avatar.
10+
Retrieves an image of a the user's avatar.
611

712
This operation is performed by calling function `getUserAvatar`.
813

@@ -17,8 +22,18 @@ await client.avatars.getUserAvatar(user.id)
1722
### Arguments
1823

1924
- userId `string`
20-
- The ID of the user.
21-
- Used as `user_id` in path `path` of the API call
25+
- The ID of the user. Example: "12345"
26+
- headers `GetUserAvatarHeadersArg`
27+
- Headers of getUserAvatar method
28+
29+
30+
### Returns
31+
32+
This function returns a value of type `ByteStream`.
33+
34+
When an avatar can be found for the user the
35+
image data will be returned in the body of the
36+
response.
2237

2338

2439
## Add or update user avatar
@@ -32,24 +47,25 @@ See the endpoint docs at
3247

3348
<!-- sample post_users_id_avatar -->
3449
```ts
35-
await client.avatars.createUserAvatar(user.id, { pic: decodeBase64ByteStream(&quot;iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAAA1BMVEW10NBjBBbqAAAAH0lEQVRoge3BAQ0AAADCoPdPbQ43oAAAAAAAAAAAvg0hAAABmmDh1QAAAABJRU5ErkJggg&#x3D;&#x3D;&quot;), picContentType: &quot;image/png&quot;, picFileName: &quot;avatar.png&quot; } satisfies CreateUserAvatarRequestBodyArg)
50+
await client.avatars.createUserAvatar(user.id, { pic: decodeBase64ByteStream("iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAAA1BMVEW10NBjBBbqAAAAH0lEQVRoge3BAQ0AAADCoPdPbQ43oAAAAAAAAAAAvg0hAAABmmDh1QAAAABJRU5ErkJggg=="), picContentType: "image/png", picFileName: "avatar.png" } satisfies CreateUserAvatarRequestBodyArg)
3651
```
3752

3853
### Arguments
3954

4055
- userId `string`
41-
- The ID of the user.
42-
- Used as `user_id` in path `path` of the API call
56+
- The ID of the user. Example: "12345"
4357
- requestBody `CreateUserAvatarRequestBodyArg`
44-
- Used as requestBody for the API call
58+
- Request body of createUserAvatar method
59+
- headers `CreateUserAvatarHeadersArg`
60+
- Headers of createUserAvatar method
4561

4662

4763
### Returns
4864

4965
This function returns a value of type `UserAvatar`.
5066

51-
* &#x60;ok&#x60;: Returns the &#x60;pic_urls&#x60; object with URLs to existing
52-
user avatars that were updated.* &#x60;created&#x60;: Returns the &#x60;pic_urls&#x60; object with URLS to user avatars
67+
* `ok`: Returns the `pic_urls` object with URLs to existing
68+
user avatars that were updated.* `created`: Returns the `pic_urls` object with URLS to user avatars
5369
uploaded to Box with the request.
5470

5571

@@ -71,7 +87,15 @@ await client.avatars.deleteUserAvatar(user.id)
7187
### Arguments
7288

7389
- userId `string`
74-
- The ID of the user.
75-
- Used as `user_id` in path `path` of the API call
90+
- The ID of the user. Example: "12345"
91+
- headers `DeleteUserAvatarHeadersArg`
92+
- Headers of deleteUserAvatar method
93+
94+
95+
### Returns
96+
97+
This function returns a value of type `undefined`.
98+
99+
* `no_content`: Removes the avatar and returns an empty response.
76100

77101

0 commit comments

Comments
 (0)