Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "bd1adff", "specHash": "b2f7568", "version": "0.5.1" }
{ "engineHash": "183c130", "specHash": "b2f7568", "version": "0.5.1" }
10 changes: 0 additions & 10 deletions CHANGELOG.md

This file was deleted.

14 changes: 12 additions & 2 deletions docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ This operation is performed by calling function `getEvents`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/get-events/).

_Currently we don't have an example for calling `getEvents` in integration tests_
<!-- sample get_events -->

```ts
await client.events.getEvents({
streamType: 'changes' as GetEventsQueryParamsStreamTypeField,
} satisfies GetEventsQueryParams);
```

### Arguments

Expand Down Expand Up @@ -84,7 +90,11 @@ This operation is performed by calling function `getEventsWithLongPolling`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/options-events/).

_Currently we don't have an example for calling `getEventsWithLongPolling` in integration tests_
<!-- sample options_events -->

```ts
await client.events.getEventsWithLongPolling();
```

### Arguments

Expand Down
66 changes: 62 additions & 4 deletions docs/skills.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ This operation is performed by calling function `getBoxSkillCardsOnFile`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/get-files-id-metadata-global-box-skills-cards/).

_Currently we don't have an example for calling `getBoxSkillCardsOnFile` in integration tests_
<!-- sample get_files_id_metadata_global_boxSkillsCards -->

```ts
await client.skills.getBoxSkillCardsOnFile(file.id);
```

### Arguments

Expand Down Expand Up @@ -44,7 +48,31 @@ This operation is performed by calling function `createBoxSkillCardsOnFile`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/post-files-id-metadata-global-box-skills-cards/).

_Currently we don't have an example for calling `createBoxSkillCardsOnFile` in integration tests_
<!-- sample post_files_id_metadata_global_boxSkillsCards -->

```ts
await client.skills.createBoxSkillCardsOnFile(file.id, {
cards: [
{
type: 'skill_card' as KeywordSkillCardTypeField,
skillCardType: 'keyword' as KeywordSkillCardSkillCardTypeField,
skillCardTitle: {
code: 'license-plates',
message: titleMessage,
} satisfies KeywordSkillCardSkillCardTitleField,
skill: {
id: skillId,
type: 'service' as KeywordSkillCardSkillTypeField,
} satisfies KeywordSkillCardSkillField,
invocation: {
id: invocationId,
type: 'skill_invocation' as KeywordSkillCardInvocationTypeField,
} satisfies KeywordSkillCardInvocationField,
entries: [{ text: 'DN86 BOX' } satisfies KeywordSkillCardEntriesField],
} satisfies KeywordSkillCardOrStatusSkillCardOrTimelineSkillCardOrTranscriptSkillCard,
],
} satisfies CreateBoxSkillCardsOnFileRequestBody);
```

### Arguments

Expand Down Expand Up @@ -73,7 +101,33 @@ This operation is performed by calling function `updateBoxSkillCardsOnFile`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/put-files-id-metadata-global-box-skills-cards/).

_Currently we don't have an example for calling `updateBoxSkillCardsOnFile` in integration tests_
<!-- sample put_files_id_metadata_global_boxSkillsCards -->

```ts
await client.skills.updateBoxSkillCardsOnFile(file.id, [
{
op: 'replace' as UpdateBoxSkillCardsOnFileRequestBodyOpField,
path: '/cards/0',
value: {
type: 'skill_card' as KeywordSkillCardTypeField,
skillCardType: 'keyword' as KeywordSkillCardSkillCardTypeField,
skillCardTitle: {
code: 'license-plates',
message: updatedTitleMessage,
} satisfies KeywordSkillCardSkillCardTitleField,
skill: {
id: skillId,
type: 'service' as KeywordSkillCardSkillTypeField,
} satisfies KeywordSkillCardSkillField,
invocation: {
id: invocationId,
type: 'skill_invocation' as KeywordSkillCardInvocationTypeField,
} satisfies KeywordSkillCardInvocationField,
entries: [{ text: 'DN86 BOX' } satisfies KeywordSkillCardEntriesField],
} satisfies KeywordSkillCard,
} satisfies UpdateBoxSkillCardsOnFileRequestBody,
]);
```

### Arguments

Expand Down Expand Up @@ -102,7 +156,11 @@ This operation is performed by calling function `deleteBoxSkillCardsFromFile`.
See the endpoint docs at
[API Reference](https://developer.box.com/reference/delete-files-id-metadata-global-box-skills-cards/).

_Currently we don't have an example for calling `deleteBoxSkillCardsFromFile` in integration tests_
<!-- sample delete_files_id_metadata_global_boxSkillsCards -->

```ts
await client.skills.deleteBoxSkillCardsFromFile(file.id);
```

### Arguments

Expand Down
10 changes: 3 additions & 7 deletions src/box/jwtAuth.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ export class BoxJwtAuth implements Authentication {
return await this.tokenStorage.clear();
}
}
export function serializeJwtConfigAppSettingsAppAuth(
val: JwtConfigAppSettingsAppAuth
): SerializedData {
export function serializeJwtConfigAppSettingsAppAuth(val: any): SerializedData {
return {
['publicKeyID']: val.publicKeyId,
['privateKey']: val.privateKey,
Expand All @@ -290,9 +288,7 @@ export function deserializeJwtConfigAppSettingsAppAuth(
passphrase: passphrase,
} satisfies JwtConfigAppSettingsAppAuth;
}
export function serializeJwtConfigAppSettings(
val: JwtConfigAppSettings
): SerializedData {
export function serializeJwtConfigAppSettings(val: any): SerializedData {
return {
['clientID']: val.clientId,
['clientSecret']: val.clientSecret,
Expand All @@ -312,7 +308,7 @@ export function deserializeJwtConfigAppSettings(
appAuth: appAuth,
} satisfies JwtConfigAppSettings;
}
export function serializeJwtConfigFile(val: JwtConfigFile): SerializedData {
export function serializeJwtConfigFile(val: any): SerializedData {
return {
['enterpriseID']: val.enterpriseId == void 0 ? void 0 : val.enterpriseId,
['userID']: val.userId == void 0 ? void 0 : val.userId,
Expand Down
2 changes: 1 addition & 1 deletion src/managers/authorization.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class AuthorizationManager {
}
}
export function serializeAuthorizeUserQueryParamsResponseTypeField(
val: AuthorizeUserQueryParamsResponseTypeField
val: any
): SerializedData {
return val;
}
Expand Down
6 changes: 3 additions & 3 deletions src/managers/chunkedUploads.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export class ChunkedUploadsManager {
}
}
export function serializeCreateFileUploadSessionRequestBody(
val: CreateFileUploadSessionRequestBody
val: any
): SerializedData {
return {
['folder_id']: val.folderId,
Expand All @@ -540,7 +540,7 @@ export function deserializeCreateFileUploadSessionRequestBody(
} satisfies CreateFileUploadSessionRequestBody;
}
export function serializeCreateFileUploadSessionForExistingFileRequestBody(
val: CreateFileUploadSessionForExistingFileRequestBody
val: any
): SerializedData {
return {
['file_size']: val.fileSize,
Expand All @@ -559,7 +559,7 @@ export function deserializeCreateFileUploadSessionForExistingFileRequestBody(
} satisfies CreateFileUploadSessionForExistingFileRequestBody;
}
export function serializeCreateFileUploadSessionCommitRequestBody(
val: CreateFileUploadSessionCommitRequestBody
val: any
): SerializedData {
return {
['parts']: val.parts.map(function (item: UploadPart): any {
Expand Down
Loading