weave-typescript 0.36.0 → 0.37.0
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/dist/weaveapi/auth/v1/auth.pb.d.ts +21 -0
- package/dist/weaveapi/auth/v1/auth.pb.js +350 -1
- package/dist/weaveapi/auth/v1/service.pb.d.ts +125 -1
- package/dist/weaveapi/auth/v1/service.pb.js +2661 -1511
- package/dist/weavesql/weavedb/auth_identity_sql.d.ts +150 -0
- package/dist/weavesql/weavedb/auth_identity_sql.js +295 -1
- package/package.json +1 -1
|
@@ -241,6 +241,25 @@ export interface OrganizationMember {
|
|
|
241
241
|
createdAt: Date | undefined;
|
|
242
242
|
updatedAt: Date | undefined;
|
|
243
243
|
}
|
|
244
|
+
export interface OrganizationTeam {
|
|
245
|
+
id: string;
|
|
246
|
+
organizationId: string;
|
|
247
|
+
slug: string;
|
|
248
|
+
name: string;
|
|
249
|
+
description: string;
|
|
250
|
+
roleIds: string[];
|
|
251
|
+
members: OrganizationTeamMember[];
|
|
252
|
+
createdAt: Date | undefined;
|
|
253
|
+
updatedAt: Date | undefined;
|
|
254
|
+
}
|
|
255
|
+
export interface OrganizationTeamMember {
|
|
256
|
+
organizationMembershipId: string;
|
|
257
|
+
userId: string;
|
|
258
|
+
email: string;
|
|
259
|
+
displayName: string;
|
|
260
|
+
avatarUrl: string;
|
|
261
|
+
status: MembershipStatus;
|
|
262
|
+
}
|
|
244
263
|
export interface RbacPolicySummary {
|
|
245
264
|
resources: RbacResource[];
|
|
246
265
|
roles: RbacRole[];
|
|
@@ -319,6 +338,8 @@ export declare const UserPreferences: MessageFns<UserPreferences>;
|
|
|
319
338
|
export declare const UserPreferences_OrganizationPagePositionsEntry: MessageFns<UserPreferences_OrganizationPagePositionsEntry>;
|
|
320
339
|
export declare const OrganizationAuthSettings: MessageFns<OrganizationAuthSettings>;
|
|
321
340
|
export declare const OrganizationMember: MessageFns<OrganizationMember>;
|
|
341
|
+
export declare const OrganizationTeam: MessageFns<OrganizationTeam>;
|
|
342
|
+
export declare const OrganizationTeamMember: MessageFns<OrganizationTeamMember>;
|
|
322
343
|
export declare const RbacPolicySummary: MessageFns<RbacPolicySummary>;
|
|
323
344
|
export declare const RbacResource: MessageFns<RbacResource>;
|
|
324
345
|
export declare const RbacRole: MessageFns<RbacRole>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/auth/v1/auth.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.SupportAccessSession = exports.ScimGroupMapping = exports.ScimTokenRotation = exports.ScimConnection = exports.SsoConnection = exports.RbacPermission = exports.RbacRole = exports.RbacResource = exports.RbacPolicySummary = exports.OrganizationMember = exports.OrganizationAuthSettings = exports.UserPreferences_OrganizationPagePositionsEntry = exports.UserPreferences = exports.UserOrganizationPagePosition = exports.UserProfile = exports.InviteOnboardingState = exports.DiscoveryOrganization = exports.AuthOrganization = exports.AuthUser_OrganizationPagePositionsEntry = exports.AuthUser = exports.AuthSession = exports.InviteRecoveryStatus = exports.InviteRecoveryReason = exports.InviteOnboardingStatus = exports.AuthProvider = exports.ScimConnectionStatus = exports.SsoConnectionStatus = exports.SsoConnectionType = exports.OrganizationKind = exports.MembershipStatus = exports.DiscoveryOrganizationStatus = exports.AuthMethod = exports.protobufPackage = void 0;
|
|
8
|
+
exports.SupportAccessSession = exports.ScimGroupMapping = exports.ScimTokenRotation = exports.ScimConnection = exports.SsoConnection = exports.RbacPermission = exports.RbacRole = exports.RbacResource = exports.RbacPolicySummary = exports.OrganizationTeamMember = exports.OrganizationTeam = exports.OrganizationMember = exports.OrganizationAuthSettings = exports.UserPreferences_OrganizationPagePositionsEntry = exports.UserPreferences = exports.UserOrganizationPagePosition = exports.UserProfile = exports.InviteOnboardingState = exports.DiscoveryOrganization = exports.AuthOrganization = exports.AuthUser_OrganizationPagePositionsEntry = exports.AuthUser = exports.AuthSession = exports.InviteRecoveryStatus = exports.InviteRecoveryReason = exports.InviteOnboardingStatus = exports.AuthProvider = exports.ScimConnectionStatus = exports.SsoConnectionStatus = exports.SsoConnectionType = exports.OrganizationKind = exports.MembershipStatus = exports.DiscoveryOrganizationStatus = exports.AuthMethod = exports.protobufPackage = void 0;
|
|
9
9
|
exports.authMethodFromJSON = authMethodFromJSON;
|
|
10
10
|
exports.authMethodToJSON = authMethodToJSON;
|
|
11
11
|
exports.discoveryOrganizationStatusFromJSON = discoveryOrganizationStatusFromJSON;
|
|
@@ -3051,6 +3051,355 @@ exports.OrganizationMember = {
|
|
|
3051
3051
|
return message;
|
|
3052
3052
|
},
|
|
3053
3053
|
};
|
|
3054
|
+
function createBaseOrganizationTeam() {
|
|
3055
|
+
return {
|
|
3056
|
+
id: "",
|
|
3057
|
+
organizationId: "",
|
|
3058
|
+
slug: "",
|
|
3059
|
+
name: "",
|
|
3060
|
+
description: "",
|
|
3061
|
+
roleIds: [],
|
|
3062
|
+
members: [],
|
|
3063
|
+
createdAt: undefined,
|
|
3064
|
+
updatedAt: undefined,
|
|
3065
|
+
};
|
|
3066
|
+
}
|
|
3067
|
+
exports.OrganizationTeam = {
|
|
3068
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3069
|
+
if (message.id !== "") {
|
|
3070
|
+
writer.uint32(10).string(message.id);
|
|
3071
|
+
}
|
|
3072
|
+
if (message.organizationId !== "") {
|
|
3073
|
+
writer.uint32(18).string(message.organizationId);
|
|
3074
|
+
}
|
|
3075
|
+
if (message.slug !== "") {
|
|
3076
|
+
writer.uint32(26).string(message.slug);
|
|
3077
|
+
}
|
|
3078
|
+
if (message.name !== "") {
|
|
3079
|
+
writer.uint32(34).string(message.name);
|
|
3080
|
+
}
|
|
3081
|
+
if (message.description !== "") {
|
|
3082
|
+
writer.uint32(42).string(message.description);
|
|
3083
|
+
}
|
|
3084
|
+
for (const v of message.roleIds) {
|
|
3085
|
+
writer.uint32(50).string(v);
|
|
3086
|
+
}
|
|
3087
|
+
for (const v of message.members) {
|
|
3088
|
+
exports.OrganizationTeamMember.encode(v, writer.uint32(58).fork()).join();
|
|
3089
|
+
}
|
|
3090
|
+
if (message.createdAt !== undefined) {
|
|
3091
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(66).fork()).join();
|
|
3092
|
+
}
|
|
3093
|
+
if (message.updatedAt !== undefined) {
|
|
3094
|
+
timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(74).fork()).join();
|
|
3095
|
+
}
|
|
3096
|
+
return writer;
|
|
3097
|
+
},
|
|
3098
|
+
decode(input, length) {
|
|
3099
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3100
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3101
|
+
const message = createBaseOrganizationTeam();
|
|
3102
|
+
while (reader.pos < end) {
|
|
3103
|
+
const tag = reader.uint32();
|
|
3104
|
+
switch (tag >>> 3) {
|
|
3105
|
+
case 1: {
|
|
3106
|
+
if (tag !== 10) {
|
|
3107
|
+
break;
|
|
3108
|
+
}
|
|
3109
|
+
message.id = reader.string();
|
|
3110
|
+
continue;
|
|
3111
|
+
}
|
|
3112
|
+
case 2: {
|
|
3113
|
+
if (tag !== 18) {
|
|
3114
|
+
break;
|
|
3115
|
+
}
|
|
3116
|
+
message.organizationId = reader.string();
|
|
3117
|
+
continue;
|
|
3118
|
+
}
|
|
3119
|
+
case 3: {
|
|
3120
|
+
if (tag !== 26) {
|
|
3121
|
+
break;
|
|
3122
|
+
}
|
|
3123
|
+
message.slug = reader.string();
|
|
3124
|
+
continue;
|
|
3125
|
+
}
|
|
3126
|
+
case 4: {
|
|
3127
|
+
if (tag !== 34) {
|
|
3128
|
+
break;
|
|
3129
|
+
}
|
|
3130
|
+
message.name = reader.string();
|
|
3131
|
+
continue;
|
|
3132
|
+
}
|
|
3133
|
+
case 5: {
|
|
3134
|
+
if (tag !== 42) {
|
|
3135
|
+
break;
|
|
3136
|
+
}
|
|
3137
|
+
message.description = reader.string();
|
|
3138
|
+
continue;
|
|
3139
|
+
}
|
|
3140
|
+
case 6: {
|
|
3141
|
+
if (tag !== 50) {
|
|
3142
|
+
break;
|
|
3143
|
+
}
|
|
3144
|
+
message.roleIds.push(reader.string());
|
|
3145
|
+
continue;
|
|
3146
|
+
}
|
|
3147
|
+
case 7: {
|
|
3148
|
+
if (tag !== 58) {
|
|
3149
|
+
break;
|
|
3150
|
+
}
|
|
3151
|
+
message.members.push(exports.OrganizationTeamMember.decode(reader, reader.uint32()));
|
|
3152
|
+
continue;
|
|
3153
|
+
}
|
|
3154
|
+
case 8: {
|
|
3155
|
+
if (tag !== 66) {
|
|
3156
|
+
break;
|
|
3157
|
+
}
|
|
3158
|
+
message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
3159
|
+
continue;
|
|
3160
|
+
}
|
|
3161
|
+
case 9: {
|
|
3162
|
+
if (tag !== 74) {
|
|
3163
|
+
break;
|
|
3164
|
+
}
|
|
3165
|
+
message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
|
|
3166
|
+
continue;
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3170
|
+
break;
|
|
3171
|
+
}
|
|
3172
|
+
reader.skip(tag & 7);
|
|
3173
|
+
}
|
|
3174
|
+
return message;
|
|
3175
|
+
},
|
|
3176
|
+
fromJSON(object) {
|
|
3177
|
+
return {
|
|
3178
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
3179
|
+
organizationId: isSet(object.organizationId)
|
|
3180
|
+
? globalThis.String(object.organizationId)
|
|
3181
|
+
: isSet(object.organization_id)
|
|
3182
|
+
? globalThis.String(object.organization_id)
|
|
3183
|
+
: "",
|
|
3184
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
3185
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
3186
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
3187
|
+
roleIds: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.roleIds)
|
|
3188
|
+
? object.roleIds.map((e) => globalThis.String(e))
|
|
3189
|
+
: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.role_ids)
|
|
3190
|
+
? object.role_ids.map((e) => globalThis.String(e))
|
|
3191
|
+
: [],
|
|
3192
|
+
members: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.members)
|
|
3193
|
+
? object.members.map((e) => exports.OrganizationTeamMember.fromJSON(e))
|
|
3194
|
+
: [],
|
|
3195
|
+
createdAt: isSet(object.createdAt)
|
|
3196
|
+
? fromJsonTimestamp(object.createdAt)
|
|
3197
|
+
: isSet(object.created_at)
|
|
3198
|
+
? fromJsonTimestamp(object.created_at)
|
|
3199
|
+
: undefined,
|
|
3200
|
+
updatedAt: isSet(object.updatedAt)
|
|
3201
|
+
? fromJsonTimestamp(object.updatedAt)
|
|
3202
|
+
: isSet(object.updated_at)
|
|
3203
|
+
? fromJsonTimestamp(object.updated_at)
|
|
3204
|
+
: undefined,
|
|
3205
|
+
};
|
|
3206
|
+
},
|
|
3207
|
+
toJSON(message) {
|
|
3208
|
+
var _a, _b;
|
|
3209
|
+
const obj = {};
|
|
3210
|
+
if (message.id !== "") {
|
|
3211
|
+
obj.id = message.id;
|
|
3212
|
+
}
|
|
3213
|
+
if (message.organizationId !== "") {
|
|
3214
|
+
obj.organizationId = message.organizationId;
|
|
3215
|
+
}
|
|
3216
|
+
if (message.slug !== "") {
|
|
3217
|
+
obj.slug = message.slug;
|
|
3218
|
+
}
|
|
3219
|
+
if (message.name !== "") {
|
|
3220
|
+
obj.name = message.name;
|
|
3221
|
+
}
|
|
3222
|
+
if (message.description !== "") {
|
|
3223
|
+
obj.description = message.description;
|
|
3224
|
+
}
|
|
3225
|
+
if ((_a = message.roleIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3226
|
+
obj.roleIds = message.roleIds;
|
|
3227
|
+
}
|
|
3228
|
+
if ((_b = message.members) === null || _b === void 0 ? void 0 : _b.length) {
|
|
3229
|
+
obj.members = message.members.map((e) => exports.OrganizationTeamMember.toJSON(e));
|
|
3230
|
+
}
|
|
3231
|
+
if (message.createdAt !== undefined) {
|
|
3232
|
+
obj.createdAt = message.createdAt.toISOString();
|
|
3233
|
+
}
|
|
3234
|
+
if (message.updatedAt !== undefined) {
|
|
3235
|
+
obj.updatedAt = message.updatedAt.toISOString();
|
|
3236
|
+
}
|
|
3237
|
+
return obj;
|
|
3238
|
+
},
|
|
3239
|
+
create(base) {
|
|
3240
|
+
return exports.OrganizationTeam.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3241
|
+
},
|
|
3242
|
+
fromPartial(object) {
|
|
3243
|
+
var _a, _b;
|
|
3244
|
+
var _c, _d, _e, _f, _g, _h, _j;
|
|
3245
|
+
const message = createBaseOrganizationTeam();
|
|
3246
|
+
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : "";
|
|
3247
|
+
message.organizationId = (_d = object.organizationId) !== null && _d !== void 0 ? _d : "";
|
|
3248
|
+
message.slug = (_e = object.slug) !== null && _e !== void 0 ? _e : "";
|
|
3249
|
+
message.name = (_f = object.name) !== null && _f !== void 0 ? _f : "";
|
|
3250
|
+
message.description = (_g = object.description) !== null && _g !== void 0 ? _g : "";
|
|
3251
|
+
message.roleIds = ((_a = object.roleIds) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
3252
|
+
message.members = ((_b = object.members) === null || _b === void 0 ? void 0 : _b.map((e) => exports.OrganizationTeamMember.fromPartial(e))) || [];
|
|
3253
|
+
message.createdAt = (_h = object.createdAt) !== null && _h !== void 0 ? _h : undefined;
|
|
3254
|
+
message.updatedAt = (_j = object.updatedAt) !== null && _j !== void 0 ? _j : undefined;
|
|
3255
|
+
return message;
|
|
3256
|
+
},
|
|
3257
|
+
};
|
|
3258
|
+
function createBaseOrganizationTeamMember() {
|
|
3259
|
+
return { organizationMembershipId: "", userId: "", email: "", displayName: "", avatarUrl: "", status: 0 };
|
|
3260
|
+
}
|
|
3261
|
+
exports.OrganizationTeamMember = {
|
|
3262
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3263
|
+
if (message.organizationMembershipId !== "") {
|
|
3264
|
+
writer.uint32(10).string(message.organizationMembershipId);
|
|
3265
|
+
}
|
|
3266
|
+
if (message.userId !== "") {
|
|
3267
|
+
writer.uint32(18).string(message.userId);
|
|
3268
|
+
}
|
|
3269
|
+
if (message.email !== "") {
|
|
3270
|
+
writer.uint32(26).string(message.email);
|
|
3271
|
+
}
|
|
3272
|
+
if (message.displayName !== "") {
|
|
3273
|
+
writer.uint32(34).string(message.displayName);
|
|
3274
|
+
}
|
|
3275
|
+
if (message.avatarUrl !== "") {
|
|
3276
|
+
writer.uint32(42).string(message.avatarUrl);
|
|
3277
|
+
}
|
|
3278
|
+
if (message.status !== 0) {
|
|
3279
|
+
writer.uint32(48).int32(message.status);
|
|
3280
|
+
}
|
|
3281
|
+
return writer;
|
|
3282
|
+
},
|
|
3283
|
+
decode(input, length) {
|
|
3284
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3285
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3286
|
+
const message = createBaseOrganizationTeamMember();
|
|
3287
|
+
while (reader.pos < end) {
|
|
3288
|
+
const tag = reader.uint32();
|
|
3289
|
+
switch (tag >>> 3) {
|
|
3290
|
+
case 1: {
|
|
3291
|
+
if (tag !== 10) {
|
|
3292
|
+
break;
|
|
3293
|
+
}
|
|
3294
|
+
message.organizationMembershipId = reader.string();
|
|
3295
|
+
continue;
|
|
3296
|
+
}
|
|
3297
|
+
case 2: {
|
|
3298
|
+
if (tag !== 18) {
|
|
3299
|
+
break;
|
|
3300
|
+
}
|
|
3301
|
+
message.userId = reader.string();
|
|
3302
|
+
continue;
|
|
3303
|
+
}
|
|
3304
|
+
case 3: {
|
|
3305
|
+
if (tag !== 26) {
|
|
3306
|
+
break;
|
|
3307
|
+
}
|
|
3308
|
+
message.email = reader.string();
|
|
3309
|
+
continue;
|
|
3310
|
+
}
|
|
3311
|
+
case 4: {
|
|
3312
|
+
if (tag !== 34) {
|
|
3313
|
+
break;
|
|
3314
|
+
}
|
|
3315
|
+
message.displayName = reader.string();
|
|
3316
|
+
continue;
|
|
3317
|
+
}
|
|
3318
|
+
case 5: {
|
|
3319
|
+
if (tag !== 42) {
|
|
3320
|
+
break;
|
|
3321
|
+
}
|
|
3322
|
+
message.avatarUrl = reader.string();
|
|
3323
|
+
continue;
|
|
3324
|
+
}
|
|
3325
|
+
case 6: {
|
|
3326
|
+
if (tag !== 48) {
|
|
3327
|
+
break;
|
|
3328
|
+
}
|
|
3329
|
+
message.status = reader.int32();
|
|
3330
|
+
continue;
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3334
|
+
break;
|
|
3335
|
+
}
|
|
3336
|
+
reader.skip(tag & 7);
|
|
3337
|
+
}
|
|
3338
|
+
return message;
|
|
3339
|
+
},
|
|
3340
|
+
fromJSON(object) {
|
|
3341
|
+
return {
|
|
3342
|
+
organizationMembershipId: isSet(object.organizationMembershipId)
|
|
3343
|
+
? globalThis.String(object.organizationMembershipId)
|
|
3344
|
+
: isSet(object.organization_membership_id)
|
|
3345
|
+
? globalThis.String(object.organization_membership_id)
|
|
3346
|
+
: "",
|
|
3347
|
+
userId: isSet(object.userId)
|
|
3348
|
+
? globalThis.String(object.userId)
|
|
3349
|
+
: isSet(object.user_id)
|
|
3350
|
+
? globalThis.String(object.user_id)
|
|
3351
|
+
: "",
|
|
3352
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
3353
|
+
displayName: isSet(object.displayName)
|
|
3354
|
+
? globalThis.String(object.displayName)
|
|
3355
|
+
: isSet(object.display_name)
|
|
3356
|
+
? globalThis.String(object.display_name)
|
|
3357
|
+
: "",
|
|
3358
|
+
avatarUrl: isSet(object.avatarUrl)
|
|
3359
|
+
? globalThis.String(object.avatarUrl)
|
|
3360
|
+
: isSet(object.avatar_url)
|
|
3361
|
+
? globalThis.String(object.avatar_url)
|
|
3362
|
+
: "",
|
|
3363
|
+
status: isSet(object.status) ? membershipStatusFromJSON(object.status) : 0,
|
|
3364
|
+
};
|
|
3365
|
+
},
|
|
3366
|
+
toJSON(message) {
|
|
3367
|
+
const obj = {};
|
|
3368
|
+
if (message.organizationMembershipId !== "") {
|
|
3369
|
+
obj.organizationMembershipId = message.organizationMembershipId;
|
|
3370
|
+
}
|
|
3371
|
+
if (message.userId !== "") {
|
|
3372
|
+
obj.userId = message.userId;
|
|
3373
|
+
}
|
|
3374
|
+
if (message.email !== "") {
|
|
3375
|
+
obj.email = message.email;
|
|
3376
|
+
}
|
|
3377
|
+
if (message.displayName !== "") {
|
|
3378
|
+
obj.displayName = message.displayName;
|
|
3379
|
+
}
|
|
3380
|
+
if (message.avatarUrl !== "") {
|
|
3381
|
+
obj.avatarUrl = message.avatarUrl;
|
|
3382
|
+
}
|
|
3383
|
+
if (message.status !== 0) {
|
|
3384
|
+
obj.status = membershipStatusToJSON(message.status);
|
|
3385
|
+
}
|
|
3386
|
+
return obj;
|
|
3387
|
+
},
|
|
3388
|
+
create(base) {
|
|
3389
|
+
return exports.OrganizationTeamMember.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
3390
|
+
},
|
|
3391
|
+
fromPartial(object) {
|
|
3392
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3393
|
+
const message = createBaseOrganizationTeamMember();
|
|
3394
|
+
message.organizationMembershipId = (_a = object.organizationMembershipId) !== null && _a !== void 0 ? _a : "";
|
|
3395
|
+
message.userId = (_b = object.userId) !== null && _b !== void 0 ? _b : "";
|
|
3396
|
+
message.email = (_c = object.email) !== null && _c !== void 0 ? _c : "";
|
|
3397
|
+
message.displayName = (_d = object.displayName) !== null && _d !== void 0 ? _d : "";
|
|
3398
|
+
message.avatarUrl = (_e = object.avatarUrl) !== null && _e !== void 0 ? _e : "";
|
|
3399
|
+
message.status = (_f = object.status) !== null && _f !== void 0 ? _f : 0;
|
|
3400
|
+
return message;
|
|
3401
|
+
},
|
|
3402
|
+
};
|
|
3054
3403
|
function createBaseRbacPolicySummary() {
|
|
3055
3404
|
return { resources: [], roles: [], updatedAt: undefined };
|
|
3056
3405
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import { AuthMethod, AuthProvider, AuthSession, DiscoveryOrganization, InviteOnboardingState, InviteRecoveryReason, InviteRecoveryStatus, MembershipStatus, OrganizationAuthSettings, OrganizationMember, RbacPolicySummary, ScimConnection, ScimGroupMapping, ScimTokenRotation, SsoConnection, SsoConnectionStatus, SsoConnectionType, UserOrganizationPagePosition, UserPreferences, UserProfile } from "./auth.pb";
|
|
2
|
+
import { AuthMethod, AuthProvider, AuthSession, DiscoveryOrganization, InviteOnboardingState, InviteRecoveryReason, InviteRecoveryStatus, MembershipStatus, OrganizationAuthSettings, OrganizationMember, OrganizationTeam, RbacPolicySummary, ScimConnection, ScimGroupMapping, ScimTokenRotation, SsoConnection, SsoConnectionStatus, SsoConnectionType, UserOrganizationPagePosition, UserPreferences, UserProfile } from "./auth.pb";
|
|
3
3
|
export declare const protobufPackage = "weaveapi.auth.v1";
|
|
4
4
|
export interface GetSessionRequest {
|
|
5
5
|
}
|
|
@@ -218,6 +218,50 @@ export interface RevokeOrganizationMemberInviteRequest {
|
|
|
218
218
|
export interface RevokeOrganizationMemberInviteResponse {
|
|
219
219
|
member: OrganizationMember | undefined;
|
|
220
220
|
}
|
|
221
|
+
export interface ListOrganizationTeamsRequest {
|
|
222
|
+
organizationSlug: string;
|
|
223
|
+
}
|
|
224
|
+
export interface ListOrganizationTeamsResponse {
|
|
225
|
+
teams: OrganizationTeam[];
|
|
226
|
+
}
|
|
227
|
+
export interface CreateOrganizationTeamRequest {
|
|
228
|
+
organizationSlug: string;
|
|
229
|
+
name: string;
|
|
230
|
+
slug: string;
|
|
231
|
+
description: string;
|
|
232
|
+
roleIds: string[];
|
|
233
|
+
memberIds: string[];
|
|
234
|
+
}
|
|
235
|
+
export interface CreateOrganizationTeamResponse {
|
|
236
|
+
team: OrganizationTeam | undefined;
|
|
237
|
+
}
|
|
238
|
+
export interface GetOrganizationTeamRequest {
|
|
239
|
+
organizationSlug: string;
|
|
240
|
+
teamId: string;
|
|
241
|
+
}
|
|
242
|
+
export interface GetOrganizationTeamResponse {
|
|
243
|
+
team: OrganizationTeam | undefined;
|
|
244
|
+
}
|
|
245
|
+
export interface UpdateOrganizationTeamRequest {
|
|
246
|
+
organizationSlug: string;
|
|
247
|
+
teamId: string;
|
|
248
|
+
name: string;
|
|
249
|
+
slug: string;
|
|
250
|
+
description: string;
|
|
251
|
+
roleIds: string[];
|
|
252
|
+
memberIds: string[];
|
|
253
|
+
}
|
|
254
|
+
export interface UpdateOrganizationTeamResponse {
|
|
255
|
+
team: OrganizationTeam | undefined;
|
|
256
|
+
}
|
|
257
|
+
export interface DeleteOrganizationTeamRequest {
|
|
258
|
+
organizationSlug: string;
|
|
259
|
+
teamId: string;
|
|
260
|
+
}
|
|
261
|
+
export interface DeleteOrganizationTeamResponse {
|
|
262
|
+
teamId: string;
|
|
263
|
+
deleted: boolean;
|
|
264
|
+
}
|
|
221
265
|
export interface GetRbacPolicyRequest {
|
|
222
266
|
organizationSlug: string;
|
|
223
267
|
}
|
|
@@ -382,6 +426,16 @@ export declare const ResendOrganizationMemberInviteRequest: MessageFns<ResendOrg
|
|
|
382
426
|
export declare const ResendOrganizationMemberInviteResponse: MessageFns<ResendOrganizationMemberInviteResponse>;
|
|
383
427
|
export declare const RevokeOrganizationMemberInviteRequest: MessageFns<RevokeOrganizationMemberInviteRequest>;
|
|
384
428
|
export declare const RevokeOrganizationMemberInviteResponse: MessageFns<RevokeOrganizationMemberInviteResponse>;
|
|
429
|
+
export declare const ListOrganizationTeamsRequest: MessageFns<ListOrganizationTeamsRequest>;
|
|
430
|
+
export declare const ListOrganizationTeamsResponse: MessageFns<ListOrganizationTeamsResponse>;
|
|
431
|
+
export declare const CreateOrganizationTeamRequest: MessageFns<CreateOrganizationTeamRequest>;
|
|
432
|
+
export declare const CreateOrganizationTeamResponse: MessageFns<CreateOrganizationTeamResponse>;
|
|
433
|
+
export declare const GetOrganizationTeamRequest: MessageFns<GetOrganizationTeamRequest>;
|
|
434
|
+
export declare const GetOrganizationTeamResponse: MessageFns<GetOrganizationTeamResponse>;
|
|
435
|
+
export declare const UpdateOrganizationTeamRequest: MessageFns<UpdateOrganizationTeamRequest>;
|
|
436
|
+
export declare const UpdateOrganizationTeamResponse: MessageFns<UpdateOrganizationTeamResponse>;
|
|
437
|
+
export declare const DeleteOrganizationTeamRequest: MessageFns<DeleteOrganizationTeamRequest>;
|
|
438
|
+
export declare const DeleteOrganizationTeamResponse: MessageFns<DeleteOrganizationTeamResponse>;
|
|
385
439
|
export declare const GetRbacPolicyRequest: MessageFns<GetRbacPolicyRequest>;
|
|
386
440
|
export declare const GetRbacPolicyResponse: MessageFns<GetRbacPolicyResponse>;
|
|
387
441
|
export declare const UpdateRbacPolicyRequest: MessageFns<UpdateRbacPolicyRequest>;
|
|
@@ -704,6 +758,11 @@ export interface OrganizationAuthAdminService {
|
|
|
704
758
|
RemoveOrganizationMember(request: RemoveOrganizationMemberRequest): Promise<RemoveOrganizationMemberResponse>;
|
|
705
759
|
ResendOrganizationMemberInvite(request: ResendOrganizationMemberInviteRequest): Promise<ResendOrganizationMemberInviteResponse>;
|
|
706
760
|
RevokeOrganizationMemberInvite(request: RevokeOrganizationMemberInviteRequest): Promise<RevokeOrganizationMemberInviteResponse>;
|
|
761
|
+
ListOrganizationTeams(request: ListOrganizationTeamsRequest): Promise<ListOrganizationTeamsResponse>;
|
|
762
|
+
CreateOrganizationTeam(request: CreateOrganizationTeamRequest): Promise<CreateOrganizationTeamResponse>;
|
|
763
|
+
GetOrganizationTeam(request: GetOrganizationTeamRequest): Promise<GetOrganizationTeamResponse>;
|
|
764
|
+
UpdateOrganizationTeam(request: UpdateOrganizationTeamRequest): Promise<UpdateOrganizationTeamResponse>;
|
|
765
|
+
DeleteOrganizationTeam(request: DeleteOrganizationTeamRequest): Promise<DeleteOrganizationTeamResponse>;
|
|
707
766
|
GetRbacPolicy(request: GetRbacPolicyRequest): Promise<GetRbacPolicyResponse>;
|
|
708
767
|
UpdateRbacPolicy(request: UpdateRbacPolicyRequest): Promise<UpdateRbacPolicyResponse>;
|
|
709
768
|
ListSsoConnections(request: ListSsoConnectionsRequest): Promise<ListSsoConnectionsResponse>;
|
|
@@ -733,6 +792,11 @@ export declare class OrganizationAuthAdminServiceClientImpl implements Organizat
|
|
|
733
792
|
RemoveOrganizationMember(request: RemoveOrganizationMemberRequest): Promise<RemoveOrganizationMemberResponse>;
|
|
734
793
|
ResendOrganizationMemberInvite(request: ResendOrganizationMemberInviteRequest): Promise<ResendOrganizationMemberInviteResponse>;
|
|
735
794
|
RevokeOrganizationMemberInvite(request: RevokeOrganizationMemberInviteRequest): Promise<RevokeOrganizationMemberInviteResponse>;
|
|
795
|
+
ListOrganizationTeams(request: ListOrganizationTeamsRequest): Promise<ListOrganizationTeamsResponse>;
|
|
796
|
+
CreateOrganizationTeam(request: CreateOrganizationTeamRequest): Promise<CreateOrganizationTeamResponse>;
|
|
797
|
+
GetOrganizationTeam(request: GetOrganizationTeamRequest): Promise<GetOrganizationTeamResponse>;
|
|
798
|
+
UpdateOrganizationTeam(request: UpdateOrganizationTeamRequest): Promise<UpdateOrganizationTeamResponse>;
|
|
799
|
+
DeleteOrganizationTeam(request: DeleteOrganizationTeamRequest): Promise<DeleteOrganizationTeamResponse>;
|
|
736
800
|
GetRbacPolicy(request: GetRbacPolicyRequest): Promise<GetRbacPolicyResponse>;
|
|
737
801
|
UpdateRbacPolicy(request: UpdateRbacPolicyRequest): Promise<UpdateRbacPolicyResponse>;
|
|
738
802
|
ListSsoConnections(request: ListSsoConnectionsRequest): Promise<ListSsoConnectionsResponse>;
|
|
@@ -848,6 +912,66 @@ export declare const OrganizationAuthAdminServiceDefinition: {
|
|
|
848
912
|
};
|
|
849
913
|
};
|
|
850
914
|
};
|
|
915
|
+
readonly listOrganizationTeams: {
|
|
916
|
+
readonly name: "ListOrganizationTeams";
|
|
917
|
+
readonly requestType: typeof ListOrganizationTeamsRequest;
|
|
918
|
+
readonly requestStream: false;
|
|
919
|
+
readonly responseType: typeof ListOrganizationTeamsResponse;
|
|
920
|
+
readonly responseStream: false;
|
|
921
|
+
readonly options: {
|
|
922
|
+
readonly _unknownFields: {
|
|
923
|
+
readonly 578365826: readonly [Uint8Array];
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
readonly createOrganizationTeam: {
|
|
928
|
+
readonly name: "CreateOrganizationTeam";
|
|
929
|
+
readonly requestType: typeof CreateOrganizationTeamRequest;
|
|
930
|
+
readonly requestStream: false;
|
|
931
|
+
readonly responseType: typeof CreateOrganizationTeamResponse;
|
|
932
|
+
readonly responseStream: false;
|
|
933
|
+
readonly options: {
|
|
934
|
+
readonly _unknownFields: {
|
|
935
|
+
readonly 578365826: readonly [Uint8Array];
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
readonly getOrganizationTeam: {
|
|
940
|
+
readonly name: "GetOrganizationTeam";
|
|
941
|
+
readonly requestType: typeof GetOrganizationTeamRequest;
|
|
942
|
+
readonly requestStream: false;
|
|
943
|
+
readonly responseType: typeof GetOrganizationTeamResponse;
|
|
944
|
+
readonly responseStream: false;
|
|
945
|
+
readonly options: {
|
|
946
|
+
readonly _unknownFields: {
|
|
947
|
+
readonly 578365826: readonly [Uint8Array];
|
|
948
|
+
};
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
readonly updateOrganizationTeam: {
|
|
952
|
+
readonly name: "UpdateOrganizationTeam";
|
|
953
|
+
readonly requestType: typeof UpdateOrganizationTeamRequest;
|
|
954
|
+
readonly requestStream: false;
|
|
955
|
+
readonly responseType: typeof UpdateOrganizationTeamResponse;
|
|
956
|
+
readonly responseStream: false;
|
|
957
|
+
readonly options: {
|
|
958
|
+
readonly _unknownFields: {
|
|
959
|
+
readonly 578365826: readonly [Uint8Array];
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
readonly deleteOrganizationTeam: {
|
|
964
|
+
readonly name: "DeleteOrganizationTeam";
|
|
965
|
+
readonly requestType: typeof DeleteOrganizationTeamRequest;
|
|
966
|
+
readonly requestStream: false;
|
|
967
|
+
readonly responseType: typeof DeleteOrganizationTeamResponse;
|
|
968
|
+
readonly responseStream: false;
|
|
969
|
+
readonly options: {
|
|
970
|
+
readonly _unknownFields: {
|
|
971
|
+
readonly 578365826: readonly [Uint8Array];
|
|
972
|
+
};
|
|
973
|
+
};
|
|
974
|
+
};
|
|
851
975
|
readonly getRbacPolicy: {
|
|
852
976
|
readonly name: "GetRbacPolicy";
|
|
853
977
|
readonly requestType: typeof GetRbacPolicyRequest;
|