@crossauth/sveltekit 1.1.1 → 1.1.3

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.
@@ -1,7 +1,7 @@
1
1
  import { SvelteKitSessionServer } from './sveltekitsession';
2
2
  import type { SvelteKitSessionServerOptions } from './sveltekitsession';
3
3
  import type { RequestEvent } from '@sveltejs/kit';
4
- import type { SearchClientsPageData, UpdateClientPageData, UpdateClientFormData, DeleteClientPageData, DeleteClientFormData } from './sveltekitsharedclientendpoints';
4
+ import type { SearchClientsPageData, UpdateClientPageData, UpdateClientActionData, DeleteClientPageData, DeleteClientActionData } from './sveltekitsharedclientendpoints';
5
5
  import { SvelteKitSharedClientEndpoints } from './sveltekitsharedclientendpoints';
6
6
  /**
7
7
  * Endpoints for manipulating the OAuth client table, for use by users.
@@ -23,13 +23,13 @@ import { SvelteKitSharedClientEndpoints } from './sveltekitsharedclientendpoints
23
23
  * | searchClientsEndpoint | Returns a paginated set of clients or those matching search | See {@link SearchClientsPageData} | *Not provided* | | |
24
24
  * | -------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | --------- |
25
25
  * | updateClientEndpoint | Updates a client | See {@link UpdateClientPageData} | `default`: | | |
26
- * | | | | See {@link UpdateClientFormData} | See {@link SvelteKitSharedClientEndpoints.updateClient_internal} | client_id |
26
+ * | | | | See {@link UpdateClientActionData} | See {@link SvelteKitSharedClientEndpoints.updateClient_internal} | client_id |
27
27
  * | -------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | --------- |
28
28
  * | createClientEndpoint | Creates a new client | See {@link CreateClientPageData} | `default`: | | |
29
- * | | | | See {@link CreateClientFormData} | See {@link SvelteKitSharedClientEndpoints.createClient_internal} | client_id |
29
+ * | | | | See {@link CreateClientActionData} | See {@link SvelteKitSharedClientEndpoints.createClient_internal} | client_id |
30
30
  * | -------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | --------- |
31
31
  * | deleteClientEndpoint | Deletes a client | See {@link DeleteClientPageData} | `default`: | | |
32
- * | | | | See {@link DeleteClientFormData} | See {@link SvelteKitSharedClientEndpoints.deleteClient_internal} | client_id |
32
+ * | | | | See {@link DeleteClientActionData} | See {@link SvelteKitSharedClientEndpoints.deleteClient_internal} | client_id |
33
33
  * | -------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | --------- |
34
34
  */
35
35
  export declare class SvelteKitUserClientEndpoints extends SvelteKitSharedClientEndpoints {
@@ -50,7 +50,7 @@ export declare class SvelteKitUserClientEndpoints extends SvelteKitSharedClientE
50
50
  /**
51
51
  * See {@link SvelteKitSharedClientEndpoints.updateClient_internal}
52
52
  */
53
- updateClient(event: RequestEvent): Promise<UpdateClientFormData>;
53
+ updateClient(event: RequestEvent): Promise<UpdateClientActionData>;
54
54
  /**
55
55
  * See {@link SvelteKitSharedClientEndpoints.loadDeleteClient_internal}
56
56
  */
@@ -58,7 +58,7 @@ export declare class SvelteKitUserClientEndpoints extends SvelteKitSharedClientE
58
58
  /**
59
59
  * See {@link SvelteKitSharedClientEndpoints.deleteClient_internal}
60
60
  */
61
- deleteClient(event: RequestEvent): Promise<DeleteClientFormData>;
61
+ deleteClient(event: RequestEvent): Promise<DeleteClientActionData>;
62
62
  /**
63
63
  * See {@link SvelteKitSharedClientEndpoints.emptyClient_internal}
64
64
  */
@@ -66,7 +66,7 @@ export declare class SvelteKitUserClientEndpoints extends SvelteKitSharedClientE
66
66
  /**
67
67
  * See {@link SvelteKitSharedClientEndpoints.createClient_internal}
68
68
  */
69
- createClient(event: RequestEvent): Promise<UpdateClientFormData>;
69
+ createClient(event: RequestEvent): Promise<UpdateClientActionData>;
70
70
  /**
71
71
  * See class documentation.
72
72
  */
@@ -92,22 +92,22 @@ export declare class SvelteKitUserClientEndpoints extends SvelteKitSharedClientE
92
92
  */
93
93
  readonly updateClientEndpoint: {
94
94
  load: (event: RequestEvent) => Promise<{
95
- ok: boolean;
95
+ ok?: boolean | undefined;
96
96
  client?: import("@crossauth/common").OAuthClient | undefined;
97
97
  client_id?: string | undefined;
98
98
  clientUsername?: string | undefined;
99
99
  error?: string | undefined;
100
100
  errorCode?: number | undefined;
101
101
  errorCodeName?: string | undefined;
102
- validFlows: string[];
103
- valid_flowNames: {
102
+ validFlows?: string[] | undefined;
103
+ valid_flowNames?: {
104
104
  [key: string]: string;
105
- };
105
+ } | undefined;
106
106
  user: import("@crossauth/common").User | undefined;
107
107
  csrfToken: string | undefined;
108
108
  }>;
109
109
  actions: {
110
- default: (event: RequestEvent) => Promise<UpdateClientFormData>;
110
+ default: (event: RequestEvent) => Promise<UpdateClientActionData>;
111
111
  };
112
112
  };
113
113
  /**
@@ -115,22 +115,22 @@ export declare class SvelteKitUserClientEndpoints extends SvelteKitSharedClientE
115
115
  */
116
116
  readonly createClientEndpoint: {
117
117
  load: (event: RequestEvent) => Promise<{
118
- ok: boolean;
118
+ ok?: boolean | undefined;
119
119
  client?: import("@crossauth/common").OAuthClient | undefined;
120
120
  client_id?: string | undefined;
121
121
  clientUsername?: string | undefined;
122
122
  error?: string | undefined;
123
123
  errorCode?: number | undefined;
124
124
  errorCodeName?: string | undefined;
125
- validFlows: string[];
126
- valid_flowNames: {
125
+ validFlows?: string[] | undefined;
126
+ valid_flowNames?: {
127
127
  [key: string]: string;
128
- };
128
+ } | undefined;
129
129
  user: import("@crossauth/common").User | undefined;
130
130
  csrfToken: string | undefined;
131
131
  }>;
132
132
  actions: {
133
- default: (event: RequestEvent) => Promise<UpdateClientFormData>;
133
+ default: (event: RequestEvent) => Promise<UpdateClientActionData>;
134
134
  };
135
135
  };
136
136
  /**
@@ -138,7 +138,7 @@ export declare class SvelteKitUserClientEndpoints extends SvelteKitSharedClientE
138
138
  */
139
139
  readonly deleteClientEndpoint: {
140
140
  load: (event: RequestEvent) => Promise<{
141
- ok: boolean;
141
+ ok?: boolean | undefined;
142
142
  client?: import("@crossauth/common").OAuthClient | undefined;
143
143
  client_id?: string | undefined;
144
144
  clientUsername?: string | undefined;
@@ -149,7 +149,7 @@ export declare class SvelteKitUserClientEndpoints extends SvelteKitSharedClientE
149
149
  csrfToken: string | undefined;
150
150
  }>;
151
151
  actions: {
152
- default: (event: RequestEvent) => Promise<DeleteClientFormData>;
152
+ default: (event: RequestEvent) => Promise<DeleteClientActionData>;
153
153
  };
154
154
  };
155
155
  }
@@ -26,13 +26,13 @@ import { CrossauthError, j, CrossauthLogger, ErrorCode } from '@crossauth/common
26
26
  * | searchClientsEndpoint | Returns a paginated set of clients or those matching search | See {@link SearchClientsPageData} | *Not provided* | | |
27
27
  * | -------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | --------- |
28
28
  * | updateClientEndpoint | Updates a client | See {@link UpdateClientPageData} | `default`: | | |
29
- * | | | | See {@link UpdateClientFormData} | See {@link SvelteKitSharedClientEndpoints.updateClient_internal} | client_id |
29
+ * | | | | See {@link UpdateClientActionData} | See {@link SvelteKitSharedClientEndpoints.updateClient_internal} | client_id |
30
30
  * | -------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | --------- |
31
31
  * | createClientEndpoint | Creates a new client | See {@link CreateClientPageData} | `default`: | | |
32
- * | | | | See {@link CreateClientFormData} | See {@link SvelteKitSharedClientEndpoints.createClient_internal} | client_id |
32
+ * | | | | See {@link CreateClientActionData} | See {@link SvelteKitSharedClientEndpoints.createClient_internal} | client_id |
33
33
  * | -------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | --------- |
34
34
  * | deleteClientEndpoint | Deletes a client | See {@link DeleteClientPageData} | `default`: | | |
35
- * | | | | See {@link DeleteClientFormData} | See {@link SvelteKitSharedClientEndpoints.deleteClient_internal} | client_id |
35
+ * | | | | See {@link DeleteClientActionData} | See {@link SvelteKitSharedClientEndpoints.deleteClient_internal} | client_id |
36
36
  * | -------------------------- | ----------------------------------------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | --------- |
37
37
  */
38
38
  export class SvelteKitUserClientEndpoints extends SvelteKitSharedClientEndpoints {