Skip to content

Commit

Permalink
🤖 npm run generate auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 4, 2023
1 parent 8a36201 commit cd24c04
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/frontend/generated/internet_identity_idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export const idlFactory = ({ IDL }) => {
'png_base64' : IDL.Text,
'challenge_key' : ChallengeKey,
});
const CaptchaCreateResponse = IDL.Variant({ 'ok' : Challenge });
const DeployArchiveResult = IDL.Variant({
'creation_in_progress' : IDL.Null,
'success' : IDL.Principal,
Expand Down Expand Up @@ -194,11 +195,17 @@ export const idlFactory = ({ IDL }) => {
});
const IdentityInfoResponse = IDL.Variant({ 'ok' : IdentityInfo });
const IdentityMetadataReplaceResponse = IDL.Variant({ 'ok' : IDL.Null });
const UserKey = PublicKey;
const ChallengeResult = IDL.Record({
'key' : ChallengeKey,
'chars' : IDL.Text,
});
const IdentityRegisterResponse = IDL.Variant({
'ok' : IdentityNumber,
'invalid_metadata' : IDL.Text,
'bad_challenge' : IDL.Null,
'canister_full' : IDL.Null,
});
const UserKey = PublicKey;
const RegisterResponse = IDL.Variant({
'bad_challenge' : IDL.Null,
'canister_full' : IDL.Null,
Expand Down Expand Up @@ -241,6 +248,7 @@ export const idlFactory = ({ IDL }) => {
[IDL.Opt(AuthnMethodRemoveResponse)],
[],
),
'captcha_create' : IDL.Func([], [IDL.Opt(CaptchaCreateResponse)], []),
'create_challenge' : IDL.Func([], [Challenge], []),
'deploy_archive' : IDL.Func([IDL.Vec(IDL.Nat8)], [DeployArchiveResult], []),
'enter_device_registration_mode' : IDL.Func([UserNumber], [Timestamp], []),
Expand Down Expand Up @@ -274,6 +282,11 @@ export const idlFactory = ({ IDL }) => {
[IDL.Opt(IdentityMetadataReplaceResponse)],
[],
),
'identity_register' : IDL.Func(
[AuthnMethodData, ChallengeResult, IDL.Opt(IDL.Principal)],
[IDL.Opt(IdentityRegisterResponse)],
[],
),
'init_salt' : IDL.Func([], [], []),
'lookup' : IDL.Func([UserNumber], [IDL.Vec(DeviceData)], ['query']),
'prepare_delegation' : IDL.Func(
Expand Down
10 changes: 10 additions & 0 deletions src/frontend/generated/internet_identity_types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface BufferedArchiveEntry {
'anchor_number' : UserNumber,
'timestamp' : Timestamp,
}
export type CaptchaCreateResponse = { 'ok' : Challenge };
export interface Challenge {
'png_base64' : string,
'challenge_key' : ChallengeKey,
Expand Down Expand Up @@ -123,6 +124,10 @@ export interface IdentityInfo {
export type IdentityInfoResponse = { 'ok' : IdentityInfo };
export type IdentityMetadataReplaceResponse = { 'ok' : null };
export type IdentityNumber = bigint;
export type IdentityRegisterResponse = { 'ok' : IdentityNumber } |
{ 'invalid_metadata' : string } |
{ 'bad_challenge' : null } |
{ 'canister_full' : null };
export interface InternetIdentityInit {
'max_num_latest_delegation_origins' : [] | [bigint],
'assigned_user_number_range' : [] | [[bigint, bigint]],
Expand Down Expand Up @@ -209,6 +214,7 @@ export interface _SERVICE {
[IdentityNumber, PublicKey],
[] | [AuthnMethodRemoveResponse]
>,
'captcha_create' : ActorMethod<[], [] | [CaptchaCreateResponse]>,
'create_challenge' : ActorMethod<[], Challenge>,
'deploy_archive' : ActorMethod<[Uint8Array | number[]], DeployArchiveResult>,
'enter_device_registration_mode' : ActorMethod<[UserNumber], Timestamp>,
Expand All @@ -228,6 +234,10 @@ export interface _SERVICE {
[IdentityNumber, MetadataMap],
[] | [IdentityMetadataReplaceResponse]
>,
'identity_register' : ActorMethod<
[AuthnMethodData, ChallengeResult, [] | [Principal]],
[] | [IdentityRegisterResponse]
>,
'init_salt' : ActorMethod<[], undefined>,
'lookup' : ActorMethod<[UserNumber], Array<DeviceData>>,
'prepare_delegation' : ActorMethod<
Expand Down

0 comments on commit cd24c04

Please sign in to comment.