Skip to content

Commit 6f2cf67

Browse files
committed
Use the wasm which only has stable features
1 parent c63b40c commit 6f2cf67

File tree

13 files changed

+302
-93
lines changed

13 files changed

+302
-93
lines changed

client/src/client.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,18 @@ import { InnerClient } from "./core.js";
44
import { SecretsApi, Secrets } from "./secrets.js";
55
import { ItemsApi, Items } from "./items.js";
66
import { VaultsApi, Vaults } from "./vaults.js";
7-
import { EnvironmentsApi, Environments } from "./environments.js";
87
import { GroupsApi, Groups } from "./groups.js";
98

109
export class Client {
1110
public secrets: SecretsApi;
1211
public items: ItemsApi;
1312
public vaults: VaultsApi;
14-
public environments: EnvironmentsApi;
1513
public groups: GroupsApi;
1614

1715
public constructor(innerClient: InnerClient) {
1816
this.secrets = new Secrets(innerClient);
1917
this.items = new Items(innerClient);
2018
this.vaults = new Vaults(innerClient);
21-
this.environments = new Environments(innerClient);
2219
this.groups = new Groups(innerClient);
2320
}
2421
}

client/src/client_builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Core, InnerClient, SharedCore } from "./core.js";
1+
import { InnerClient, SharedCore } from "./core.js";
22
import { ClientConfiguration, clientAuthConfig } from "./configuration.js";
33
import { Client } from "./client.js";
44
import { SharedLibCore } from "./shared_lib_core.js";

client/src/environments.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

client/src/groups.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Code generated by op-codegen - DO NOT EDIT MANUALLY
22

3-
import { InvokeConfig, InnerClient, SharedCore } from "./core.js";
3+
import { InvokeConfig, InnerClient } from "./core.js";
44
import { Group, GroupGetParams, ReviverFunc } from "./types.js";
55

66
/**

client/src/items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Code generated by op-codegen - DO NOT EDIT MANUALLY
22

3-
import { InvokeConfig, InnerClient, SharedCore } from "./core.js";
3+
import { InvokeConfig, InnerClient } from "./core.js";
44
import {
55
Item,
66
ItemCreateParams,

client/src/items_files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Code generated by op-codegen - DO NOT EDIT MANUALLY
22

3-
import { InvokeConfig, InnerClient, SharedCore } from "./core.js";
3+
import { InvokeConfig, InnerClient } from "./core.js";
44
import {
55
DocumentCreateParams,
66
FileAttributes,

client/src/items_shares.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Code generated by op-codegen - DO NOT EDIT MANUALLY
22

3-
import { InvokeConfig, InnerClient, SharedCore } from "./core.js";
3+
import { InvokeConfig, InnerClient } from "./core.js";
44
import {
55
Item,
66
ItemShareAccountPolicy,

client/src/vaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Code generated by op-codegen - DO NOT EDIT MANUALLY
22

3-
import { InvokeConfig, InnerClient, SharedCore } from "./core.js";
3+
import { InvokeConfig, InnerClient } from "./core.js";
44
import {
55
GroupAccess,
66
GroupVaultAccess,

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@
2424
],
2525
"dependencies": {
2626
"dotenv": "^16.4.7"
27+
},
28+
"devDependencies": {
29+
"@types/node": "^25.2.1"
2730
}
2831
}

wasm/nodejs/core.d.ts

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,46 @@
11
/* tslint:disable */
22
/* eslint-disable */
3+
/**
4+
* Initializes an SDK client with a given configuration.
5+
*/
6+
export function init_client(config: string): Promise<string>;
37
/**
48
* Handles all asynchronous invocations to the SDK core received from the SDK.
59
*/
610
export function invoke(parameters: string): Promise<string>;
711
/**
8-
* Initializes an SDK client with a given configuration.
12+
* Handles all synchronous invocations to the SDK core received from the SDK.
913
*/
10-
export function init_client(config: string): Promise<string>;
14+
export function invoke_sync(parameters: string): string;
1115
/**
1216
* Drops a client, releasing the memory allocated for it.
1317
*/
1418
export function release_client(client_id: string): void;
1519
/**
16-
* Handles all synchronous invocations to the SDK core received from the SDK.
20+
* The `ReadableStreamType` enum.
21+
*
22+
* *This API requires the following crate features to be activated: `ReadableStreamType`*
1723
*/
18-
export function invoke_sync(parameters: string): string;
24+
type ReadableStreamType = "bytes";
25+
export class IntoUnderlyingByteSource {
26+
private constructor();
27+
free(): void;
28+
start(controller: ReadableByteStreamController): void;
29+
pull(controller: ReadableByteStreamController): Promise<any>;
30+
cancel(): void;
31+
readonly type: ReadableStreamType;
32+
readonly autoAllocateChunkSize: number;
33+
}
34+
export class IntoUnderlyingSink {
35+
private constructor();
36+
free(): void;
37+
write(chunk: any): Promise<any>;
38+
close(): Promise<any>;
39+
abort(reason: any): Promise<any>;
40+
}
41+
export class IntoUnderlyingSource {
42+
private constructor();
43+
free(): void;
44+
pull(controller: ReadableStreamDefaultController): Promise<any>;
45+
cancel(): void;
46+
}

0 commit comments

Comments
 (0)