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 Nov 28, 2023
1 parent 259c443 commit 69f97fb
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
29 changes: 29 additions & 0 deletions demos/vc_issuer/app/generated/vc_issuer_idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,34 @@ export const idlFactory = ({ IDL }) => {
'Ok' : IssuedCredentialData,
'Err' : IssueCredentialError,
});
const HeaderField = IDL.Tuple(IDL.Text, IDL.Text);
const HttpRequest = IDL.Record({
'url' : IDL.Text,
'method' : IDL.Text,
'body' : IDL.Vec(IDL.Nat8),
'headers' : IDL.Vec(HeaderField),
});
const Token = IDL.Record({});
const StreamingCallbackHttpResponse = IDL.Record({
'token' : IDL.Opt(Token),
'body' : IDL.Vec(IDL.Nat8),
});
const StreamingStrategy = IDL.Variant({
'Callback' : IDL.Record({
'token' : Token,
'callback' : IDL.Func(
[Token],
[StreamingCallbackHttpResponse],
['query'],
),
}),
});
const HttpResponse = IDL.Record({
'body' : IDL.Vec(IDL.Nat8),
'headers' : IDL.Vec(HeaderField),
'streaming_strategy' : IDL.Opt(StreamingStrategy),
'status_code' : IDL.Nat16,
});
const PrepareCredentialRequest = IDL.Record({
'signed_id_alias' : SignedIdAlias,
'credential_spec' : CredentialSpec,
Expand Down Expand Up @@ -69,6 +97,7 @@ export const idlFactory = ({ IDL }) => {
[GetCredentialResponse],
['query'],
),
'http_request' : IDL.Func([HttpRequest], [HttpResponse], ['query']),
'prepare_credential' : IDL.Func(
[PrepareCredentialRequest],
[PrepareCredentialResponse],
Expand Down
22 changes: 22 additions & 0 deletions demos/vc_issuer/app/generated/vc_issuer_types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ export interface GetCredentialRequest {
}
export type GetCredentialResponse = { 'Ok' : IssuedCredentialData } |
{ 'Err' : IssueCredentialError };
export type HeaderField = [string, string];
export interface HttpRequest {
'url' : string,
'method' : string,
'body' : Uint8Array | number[],
'headers' : Array<HeaderField>,
}
export interface HttpResponse {
'body' : Uint8Array | number[],
'headers' : Array<HeaderField>,
'streaming_strategy' : [] | [StreamingStrategy],
'status_code' : number,
}
export interface Icrc21ConsentInfo {
'consent_message' : string,
'language' : string,
Expand Down Expand Up @@ -54,11 +67,20 @@ export interface PreparedCredentialData {
'prepared_context' : [] | [Uint8Array | number[]],
}
export interface SignedIdAlias { 'credential_jws' : string }
export interface StreamingCallbackHttpResponse {
'token' : [] | [Token],
'body' : Uint8Array | number[],
}
export type StreamingStrategy = {
'Callback' : { 'token' : Token, 'callback' : [Principal, string] }
};
export type Token = {};
export interface _SERVICE {
'add_employee' : ActorMethod<[Principal], string>,
'add_graduate' : ActorMethod<[Principal], string>,
'configure' : ActorMethod<[IssuerConfig], undefined>,
'get_credential' : ActorMethod<[GetCredentialRequest], GetCredentialResponse>,
'http_request' : ActorMethod<[HttpRequest], HttpResponse>,
'prepare_credential' : ActorMethod<
[PrepareCredentialRequest],
PrepareCredentialResponse
Expand Down

0 comments on commit 69f97fb

Please sign in to comment.