Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit 0eddd08

Browse files
authored
Update generated code (#18)
1 parent 91f982d commit 0eddd08

File tree

6 files changed

+152
-157
lines changed

6 files changed

+152
-157
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@userhub/sdk",
3-
"version": "0.5.2",
3+
"version": "0.6.0",
44
"exports": "./src/mod.ts",
55
"lint": {
66
"include": ["src/", "test/deno"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@userhub/sdk",
3-
"version": "0.5.2",
3+
"version": "0.6.0",
44
"description": "UserHub JavaScript SDK",
55
"license": "MIT",
66
"author": "UserHub (https://userhub.com/)",

src/adminapi.ts

Lines changed: 119 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ class Flows {
7272
"organizationId",
7373
"userId",
7474
"type",
75+
"active",
76+
"creatorUserId",
7577
"pageSize",
7678
"pageToken",
7779
"orderBy",
@@ -238,7 +240,15 @@ class Organizations {
238240
call: "admin.organizations.list",
239241
method: "GET",
240242
path: "/admin/v1/organizations",
241-
query: ["pageSize", "pageToken", "orderBy", "showDeleted", "view"],
243+
query: [
244+
"displayName",
245+
"email",
246+
"pageSize",
247+
"pageToken",
248+
"orderBy",
249+
"showDeleted",
250+
"view",
251+
],
242252
idempotent: true,
243253
args,
244254
});
@@ -416,7 +426,14 @@ class Organizations {
416426
call: "admin.organizations.listMembers",
417427
method: "GET",
418428
path: "/admin/v1/organizations/{organizationId}/members",
419-
query: ["pageSize", "pageToken", "orderBy"],
429+
query: [
430+
"displayName",
431+
"email",
432+
"roleId",
433+
"pageSize",
434+
"pageToken",
435+
"orderBy",
436+
],
420437
idempotent: true,
421438
args,
422439
});
@@ -595,7 +612,15 @@ class Users {
595612
call: "admin.users.list",
596613
method: "GET",
597614
path: "/admin/v1/users",
598-
query: ["pageSize", "pageToken", "orderBy", "showDeleted", "view"],
615+
query: [
616+
"displayName",
617+
"email",
618+
"pageSize",
619+
"pageToken",
620+
"orderBy",
621+
"showDeleted",
622+
"view",
623+
],
599624
idempotent: true,
600625
args,
601626
});
@@ -837,6 +862,14 @@ interface FlowListInput extends RequestOptions {
837862
userId?: string;
838863
// Filter the results by the specified flow type.
839864
type?: string;
865+
// Whether to filter out flows not in the `START_PENDING` or `STARTED`
866+
// state.
867+
active?: boolean;
868+
// The identifier of the user that created the flow.
869+
//
870+
// When this is specified only the flows created by the user are
871+
// returned.
872+
creatorUserId?: string;
840873
// The maximum number of flows to return. The API may return fewer than
841874
// this value.
842875
//
@@ -849,12 +882,10 @@ interface FlowListInput extends RequestOptions {
849882
// When paginating, all other parameters provided to list flows must match
850883
// the call that provided the page token.
851884
pageToken?: string;
852-
// A comma-separated list of fields to order by, sorted in ascending order.
853-
// Use `desc` after a field name for descending.
885+
// A comma-separated list of fields to order by.
854886
//
855-
// Supported fields:
856-
// - `type`
857-
// - `createTime`
887+
// Supports:
888+
// - `createTime desc`
858889
orderBy?: string;
859890
// The Flow view to return in the results.
860891
//
@@ -959,14 +990,11 @@ interface InvoiceListInput extends RequestOptions {
959990
// When paginating, all other parameters provided to list invoices must match
960991
// the call that provided the page token.
961992
pageToken?: string;
962-
// A comma-separated list of fields to order by, sorted in ascending order.
963-
// Use `desc` after a field name for descending.
964-
//
965-
// Supported fields:
966-
// - `state`
967-
// - `dueTime`
968-
// - `createTime`
969-
// - `updateTime`
993+
// A comma-separated list of fields to order by.
994+
//
995+
// Supports:
996+
// - `createTime asc`
997+
// - `createTime desc`
970998
orderBy?: string;
971999
}
9721000

@@ -987,6 +1015,22 @@ interface InvoiceGetInput extends RequestOptions {
9871015
* The input options for the `organizations.list` method.
9881016
*/
9891017
interface OrganizationListInput extends RequestOptions {
1018+
// Filter the results by display name.
1019+
//
1020+
// To enable prefix filtering append `*` to the end of the value
1021+
// and ensure you provide at least 3 characters excluding the
1022+
// wildcard.
1023+
//
1024+
// This filter is case-insensitivity.
1025+
displayName?: string;
1026+
// Filter the results by email address.
1027+
//
1028+
// To enable prefix filtering append `*` to the end of the value
1029+
// and ensure you provide at least 3 characters excluding the
1030+
// wildcard.
1031+
//
1032+
// This filter is case-insensitivity.
1033+
email?: string;
9901034
// The maximum number of organizations to return. The API may return fewer than
9911035
// this value.
9921036
//
@@ -999,14 +1043,14 @@ interface OrganizationListInput extends RequestOptions {
9991043
// When paginating, all other parameters provided to list organizations must match
10001044
// the call that provided the page token.
10011045
pageToken?: string;
1002-
// A comma-separated list of fields to order by, sorted in ascending order.
1003-
// Use `desc` after a field name for descending.
1004-
//
1005-
// Supported fields:
1006-
// - `displayName`
1007-
// - `email`
1008-
// - `createTime`
1009-
// - `deleteTime`
1046+
// A comma-separated list of fields to order by.
1047+
//
1048+
// Supports:
1049+
// - `displayName asc`
1050+
// - `email asc`
1051+
// - `signupTime desc`
1052+
// - `createTime desc`
1053+
// - `deleteTime desc`
10101054
orderBy?: string;
10111055
// Whether to show deleted organizations.
10121056
showDeleted?: boolean;
@@ -1177,6 +1221,24 @@ interface OrganizationListMembersInput extends RequestOptions {
11771221
// The identifier of the organization.
11781222
organizationId: string;
11791223

1224+
// Filter the results by display name.
1225+
//
1226+
// To enable prefix filtering append `*` to the end of the value
1227+
// and ensure you provide at least 3 characters excluding the
1228+
// wildcard.
1229+
//
1230+
// This filter is case-insensitivity.
1231+
displayName?: string;
1232+
// Filter the results by email address.
1233+
//
1234+
// To enable prefix filtering append `*` to the end of the value
1235+
// and ensure you provide at least 3 characters excluding the
1236+
// wildcard.
1237+
//
1238+
// This filter is case-insensitivity.
1239+
email?: string;
1240+
// Filter the results by a role identifier.
1241+
roleId?: string;
11801242
// The maximum number of members to return. The API may return fewer than
11811243
// this value.
11821244
//
@@ -1189,12 +1251,12 @@ interface OrganizationListMembersInput extends RequestOptions {
11891251
// When paginating, all other parameters provided to list members must match
11901252
// the call that provided the page token.
11911253
pageToken?: string;
1192-
// A comma-separated list of fields to order by, sorted in ascending order.
1193-
// Use `desc` after a field name for descending.
1254+
// A comma-separated list of fields to order by.
11941255
//
1195-
// Supported fields:
1196-
// - `createTime`
1197-
// - `updateTime`
1256+
// Supports:
1257+
// - `displayName asc`
1258+
// - `email asc`
1259+
// - `createTime desc`
11981260
orderBy?: string;
11991261
}
12001262

@@ -1208,8 +1270,6 @@ interface OrganizationAddMemberInput extends RequestOptions {
12081270
// The identifier of the user.
12091271
userId?: string;
12101272
// The identifier of the role.
1211-
//
1212-
// This is currently limited to `member`, `admin`, and `owner`.
12131273
roleId?: string;
12141274
}
12151275

@@ -1233,8 +1293,6 @@ interface OrganizationUpdateMemberInput extends RequestOptions {
12331293
userId: string;
12341294

12351295
// The identifier of the role.
1236-
//
1237-
// This is currently limited to `member`, `admin`, and `owner`.
12381296
roleId?: string;
12391297

12401298
// If set to true, and the member is not found, a new member will be created.
@@ -1275,11 +1333,11 @@ interface SubscriptionListInput extends RequestOptions {
12751333
// When paginating, all other parameters provided to list subscriptions must match
12761334
// the call that provided the page token.
12771335
pageToken?: string;
1278-
// A comma-separated list of fields to order by, sorted in ascending order.
1279-
// Use `desc` after a field name for descending.
1336+
// A comma-separated list of fields to order by.
12801337
//
1281-
// Supported fields:
1282-
// - `createTime`
1338+
// Supports:
1339+
// - `active desc`
1340+
// - `createTime desc`
12831341
orderBy?: string;
12841342
// The Subscription view to return in the results.
12851343
//
@@ -1304,6 +1362,22 @@ interface SubscriptionGetInput extends RequestOptions {
13041362
* The input options for the `users.list` method.
13051363
*/
13061364
interface UserListInput extends RequestOptions {
1365+
// Filter the results by display name.
1366+
//
1367+
// To enable prefix filtering append `*` to the end of the value
1368+
// and ensure you provide at least 3 characters excluding the
1369+
// wildcard.
1370+
//
1371+
// This filter is case-insensitivity.
1372+
displayName?: string;
1373+
// Filter the results by email address.
1374+
//
1375+
// To enable prefix filtering append `*` to the end of the value
1376+
// and ensure you provide at least 3 characters excluding the
1377+
// wildcard.
1378+
//
1379+
// This filter is case-insensitivity.
1380+
email?: string;
13071381
// The maximum number of users to return. The API may return fewer than
13081382
// this value.
13091383
//
@@ -1316,14 +1390,14 @@ interface UserListInput extends RequestOptions {
13161390
// When paginating, all other parameters provided to list users must match
13171391
// the call that provided the page token.
13181392
pageToken?: string;
1319-
// A comma-separated list of fields to order by, sorted in ascending order.
1320-
// Use `desc` after a field name for descending.
1321-
//
1322-
// Supported fields:
1323-
// - `displayName`
1324-
// - `email`
1325-
// - `createTime`
1326-
// - `deleteTime`
1393+
// A comma-separated list of fields to order by.
1394+
//
1395+
// Supports:
1396+
// - `displayName asc`
1397+
// - `email asc`
1398+
// - `signupTime desc`
1399+
// - `createTime desc`
1400+
// - `deleteTime desc`
13271401
orderBy?: string;
13281402
// Whether to show deleted users.
13291403
showDeleted?: boolean;

src/adminv1.ts

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,6 @@ export interface MemberInput {
14401440
userId?: string;
14411441
/**
14421442
* The identifier of the role.
1443-
*
1444-
* This is currently limited to `member`, `admin`, and `owner`.
14451443
*/
14461444
roleId?: string;
14471445
}
@@ -2343,90 +2341,6 @@ export interface Role {
23432341
updateTime: Date;
23442342
}
23452343

2346-
/**
2347-
* Response message for SearchMembers.
2348-
*/
2349-
export interface SearchMembersResponse {
2350-
/**
2351-
* The search of members.
2352-
*/
2353-
members: Member[];
2354-
/**
2355-
* A token, which can be sent as `pageToken` to retrieve the next page.
2356-
* If this field is omitted, there are no subsequent pages.
2357-
*/
2358-
nextPageToken?: string;
2359-
/**
2360-
* A token, which can be sent as `pageToken` to retrieve the previous page.
2361-
* If this field is absent, there are no preceding pages. If this field is
2362-
* an empty string then the previous page is the first result.
2363-
*/
2364-
previousPageToken?: string;
2365-
/**
2366-
* The estimated total count of matched members irrespective of pagination.
2367-
*
2368-
* This field is ignored if `show_total_size` is not true or `pageToken`
2369-
* is not empty.
2370-
*/
2371-
totalSize?: number;
2372-
}
2373-
2374-
/**
2375-
* Response message for SearchOrganizations.
2376-
*/
2377-
export interface SearchOrganizationsResponse {
2378-
/**
2379-
* The search of organizations.
2380-
*/
2381-
organizations: Organization[];
2382-
/**
2383-
* A token, which can be sent as `pageToken` to retrieve the next page.
2384-
* If this field is omitted, there are no subsequent pages.
2385-
*/
2386-
nextPageToken?: string;
2387-
/**
2388-
* A token, which can be sent as `pageToken` to retrieve the previous page.
2389-
* If this field is absent, there are no preceding pages. If this field is
2390-
* an empty string then the previous page is the first result.
2391-
*/
2392-
previousPageToken?: string;
2393-
/**
2394-
* The estimated total count of matched organizations irrespective of pagination.
2395-
*
2396-
* This field is ignored if `show_total_size` is not true or `pageToken`
2397-
* is not empty.
2398-
*/
2399-
totalSize?: number;
2400-
}
2401-
2402-
/**
2403-
* Response message for SearchUsers.
2404-
*/
2405-
export interface SearchUsersResponse {
2406-
/**
2407-
* The search of users.
2408-
*/
2409-
users: User[];
2410-
/**
2411-
* A token, which can be sent as `pageToken` to retrieve the next page.
2412-
* If this field is omitted, there are no subsequent pages.
2413-
*/
2414-
nextPageToken?: string;
2415-
/**
2416-
* A token, which can be sent as `pageToken` to retrieve the previous page.
2417-
* If this field is absent, there are no preceding pages. If this field is
2418-
* an empty string then the previous page is the first result.
2419-
*/
2420-
previousPageToken?: string;
2421-
/**
2422-
* The estimated total count of matched users irrespective of pagination.
2423-
*
2424-
* This field is ignored if `show_total_size` is not true or `pageToken`
2425-
* is not empty.
2426-
*/
2427-
totalSize?: number;
2428-
}
2429-
24302344
/**
24312345
* The signing secret for the webhook.
24322346
*/

0 commit comments

Comments
 (0)