@taco_tsinghua/graphnode-sdk 0.1.7 → 0.1.9
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/client.d.ts +27 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +20 -0
- package/dist/client.js.map +1 -1
- package/dist/endpoints/ai.d.ts +65 -0
- package/dist/endpoints/ai.d.ts.map +1 -0
- package/dist/endpoints/ai.js +48 -0
- package/dist/endpoints/ai.js.map +1 -0
- package/dist/endpoints/auth.apple.d.ts +17 -7
- package/dist/endpoints/auth.apple.d.ts.map +1 -1
- package/dist/endpoints/auth.apple.js +17 -7
- package/dist/endpoints/auth.apple.js.map +1 -1
- package/dist/endpoints/auth.google.d.ts +16 -6
- package/dist/endpoints/auth.google.d.ts.map +1 -1
- package/dist/endpoints/auth.google.js +16 -6
- package/dist/endpoints/auth.google.js.map +1 -1
- package/dist/endpoints/conversations.d.ts +259 -1
- package/dist/endpoints/conversations.d.ts.map +1 -1
- package/dist/endpoints/conversations.js +258 -0
- package/dist/endpoints/conversations.js.map +1 -1
- package/dist/endpoints/graph.d.ts +216 -7
- package/dist/endpoints/graph.d.ts.map +1 -1
- package/dist/endpoints/graph.js +216 -7
- package/dist/endpoints/graph.js.map +1 -1
- package/dist/endpoints/health.d.ts +20 -0
- package/dist/endpoints/health.d.ts.map +1 -1
- package/dist/endpoints/health.js +15 -0
- package/dist/endpoints/health.js.map +1 -1
- package/dist/endpoints/me.d.ts +61 -0
- package/dist/endpoints/me.d.ts.map +1 -1
- package/dist/endpoints/me.js +61 -0
- package/dist/endpoints/me.js.map +1 -1
- package/dist/endpoints/note.d.ts +201 -13
- package/dist/endpoints/note.d.ts.map +1 -1
- package/dist/endpoints/note.js +201 -13
- package/dist/endpoints/note.js.map +1 -1
- package/dist/endpoints/sync.d.ts +44 -3
- package/dist/endpoints/sync.d.ts.map +1 -1
- package/dist/endpoints/sync.js +44 -3
- package/dist/endpoints/sync.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/types/conversation.d.ts +27 -0
- package/dist/types/conversation.d.ts.map +1 -1
- package/dist/types/graph.d.ts +71 -0
- package/dist/types/graph.d.ts.map +1 -1
- package/dist/types/me.d.ts +24 -5
- package/dist/types/me.d.ts.map +1 -1
- package/dist/types/message.d.ts +22 -0
- package/dist/types/message.d.ts.map +1 -1
- package/dist/types/note.d.ts +31 -0
- package/dist/types/note.d.ts.map +1 -1
- package/dist/types/problem.d.ts +12 -1
- package/dist/types/problem.d.ts.map +1 -1
- package/dist/types/sync.d.ts +17 -0
- package/dist/types/sync.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -7,8 +7,29 @@ import { GraphApi } from './endpoints/graph.js';
|
|
|
7
7
|
import { NoteApi } from './endpoints/note.js';
|
|
8
8
|
import { AppleAuthApi } from './endpoints/auth.apple.js';
|
|
9
9
|
import { SyncApi } from './endpoints/sync.js';
|
|
10
|
+
import { AiApi } from './endpoints/ai.js';
|
|
11
|
+
/**
|
|
12
|
+
* GraphNode 클라이언트 옵션
|
|
13
|
+
* @public
|
|
14
|
+
* @property fetch 커스텀 fetch 함수 (선택)
|
|
15
|
+
* @property headers 기본 헤더 (선택)
|
|
16
|
+
* @property credentials 인증 모드 (include | omit | same-origin)
|
|
17
|
+
*/
|
|
10
18
|
export interface GraphNodeClientOptions extends Omit<BuilderOptions, 'baseUrl'> {
|
|
11
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* GraphNode API 클라이언트
|
|
22
|
+
* @public
|
|
23
|
+
* @property health 헬스 체크 API
|
|
24
|
+
* @property me 내 정보 관리 API
|
|
25
|
+
* @property conversations 대화 관리 API
|
|
26
|
+
* @property googleAuth 구글 인증 API
|
|
27
|
+
* @property graph 그래프 관리 API
|
|
28
|
+
* @property note 노트/폴더 관리 API
|
|
29
|
+
* @property appleAuth 애플 인증 API
|
|
30
|
+
* @property sync 데이터 동기화 API
|
|
31
|
+
* @property ai AI 채팅 API
|
|
32
|
+
*/
|
|
12
33
|
export declare class GraphNodeClient {
|
|
13
34
|
readonly health: HealthApi;
|
|
14
35
|
readonly me: MeApi;
|
|
@@ -18,8 +39,14 @@ export declare class GraphNodeClient {
|
|
|
18
39
|
readonly note: NoteApi;
|
|
19
40
|
readonly appleAuth: AppleAuthApi;
|
|
20
41
|
readonly sync: SyncApi;
|
|
42
|
+
readonly ai: AiApi;
|
|
21
43
|
private readonly rb;
|
|
22
44
|
constructor(opts?: GraphNodeClientOptions);
|
|
23
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* GraphNode 클라이언트 인스턴스를 생성합니다.
|
|
48
|
+
* @param opts 클라이언트 옵션
|
|
49
|
+
* @returns GraphNodeClient 인스턴스
|
|
50
|
+
*/
|
|
24
51
|
export declare function createGraphNodeClient(opts?: GraphNodeClientOptions): GraphNodeClient;
|
|
25
52
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,cAAc,EAAkB,MAAM,mBAAmB,CAAC;AAE9F,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|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gB,qBAAqB,CAAC,IAAI,CAAC,EAAE,sBAAsB,GAAG,eAAe,CAEpF"}
|
package/dist/client.js
CHANGED
|
@@ -8,6 +8,20 @@ import { GraphApi } from './endpoints/graph.js';
|
|
|
8
8
|
import { NoteApi } from './endpoints/note.js';
|
|
9
9
|
import { AppleAuthApi } from './endpoints/auth.apple.js';
|
|
10
10
|
import { SyncApi } from './endpoints/sync.js';
|
|
11
|
+
import { AiApi } from './endpoints/ai.js';
|
|
12
|
+
/**
|
|
13
|
+
* GraphNode API 클라이언트
|
|
14
|
+
* @public
|
|
15
|
+
* @property health 헬스 체크 API
|
|
16
|
+
* @property me 내 정보 관리 API
|
|
17
|
+
* @property conversations 대화 관리 API
|
|
18
|
+
* @property googleAuth 구글 인증 API
|
|
19
|
+
* @property graph 그래프 관리 API
|
|
20
|
+
* @property note 노트/폴더 관리 API
|
|
21
|
+
* @property appleAuth 애플 인증 API
|
|
22
|
+
* @property sync 데이터 동기화 API
|
|
23
|
+
* @property ai AI 채팅 API
|
|
24
|
+
*/
|
|
11
25
|
export class GraphNodeClient {
|
|
12
26
|
constructor(opts = {}) {
|
|
13
27
|
let fetchFn = opts.fetch;
|
|
@@ -36,8 +50,14 @@ export class GraphNodeClient {
|
|
|
36
50
|
this.note = new NoteApi(this.rb);
|
|
37
51
|
this.appleAuth = new AppleAuthApi(GRAPHNODE_BASE_URL);
|
|
38
52
|
this.sync = new SyncApi(this.rb);
|
|
53
|
+
this.ai = new AiApi(this.rb);
|
|
39
54
|
}
|
|
40
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* GraphNode 클라이언트 인스턴스를 생성합니다.
|
|
58
|
+
* @param opts 클라이언트 옵션
|
|
59
|
+
* @returns GraphNodeClient 인스턴스
|
|
60
|
+
*/
|
|
41
61
|
export function createGraphNodeClient(opts) {
|
|
42
62
|
return new GraphNodeClient(opts);
|
|
43
63
|
}
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAuB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAuB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAW1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tD,IAAI,CAAC,IAAI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACjC,IAAI,CAAC,EAAE,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAA6B;IACjE,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { RequestBuilder, type HttpResponse } from '../http-builder.js';
|
|
2
|
+
import type { ApiKeyModel } from '../types/me.js';
|
|
3
|
+
import type { MessageDto } from '../types/message.js';
|
|
4
|
+
/**
|
|
5
|
+
* AI 채팅 요청 DTO
|
|
6
|
+
* @public
|
|
7
|
+
* @property model 사용할 AI 모델 (openai | deepseek)
|
|
8
|
+
* @property chatContent 사용자 입력 메시지
|
|
9
|
+
*/
|
|
10
|
+
export interface AIChatRequestDto {
|
|
11
|
+
model: ApiKeyModel;
|
|
12
|
+
chatContent: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* AI 채팅 응답 DTO
|
|
16
|
+
* @public
|
|
17
|
+
* @property messages 생성된 메시지 목록 (사용자 메시지 + AI 응답 메시지)
|
|
18
|
+
*/
|
|
19
|
+
export interface AIChatResponseDto {
|
|
20
|
+
messages: MessageDto[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* AI API 클라이언트
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export declare class AiApi {
|
|
27
|
+
private rb;
|
|
28
|
+
constructor(rb: RequestBuilder);
|
|
29
|
+
/**
|
|
30
|
+
* 대화 내에서 AI와 채팅을 진행합니다.
|
|
31
|
+
* @param conversationId - 대화 ID
|
|
32
|
+
* @param dto - 채팅 요청 데이터
|
|
33
|
+
* - `model` ('openai' | 'deepseek'): 사용할 AI 모델
|
|
34
|
+
* - `chatContent` (string): 사용자 입력 메시지 내용
|
|
35
|
+
* @returns 업데이트된 메시지 목록
|
|
36
|
+
* - `messages` (MessageDto[]): 생성된 메시지 목록 (사용자 메시지 + AI 응답 메시지)
|
|
37
|
+
* @example
|
|
38
|
+
* const response = await client.ai.chat('c_123', {
|
|
39
|
+
* model: 'openai',
|
|
40
|
+
* chatContent: 'Hello, how are you?'
|
|
41
|
+
* });
|
|
42
|
+
* console.log(response.data);
|
|
43
|
+
* // Output:
|
|
44
|
+
* {
|
|
45
|
+
* messages: [
|
|
46
|
+
* {
|
|
47
|
+
* id: 'm_user_1',
|
|
48
|
+
* role: 'user',
|
|
49
|
+
* content: 'Hello, how are you?',
|
|
50
|
+
* createdAt: '2024-02-20T10:00:00Z',
|
|
51
|
+
* ...
|
|
52
|
+
* },
|
|
53
|
+
* {
|
|
54
|
+
* id: 'm_ai_1',
|
|
55
|
+
* role: 'assistant',
|
|
56
|
+
* content: 'I am doing well, thank you!',
|
|
57
|
+
* createdAt: '2024-02-20T10:00:01Z',
|
|
58
|
+
* ...
|
|
59
|
+
* }
|
|
60
|
+
* ]
|
|
61
|
+
* }
|
|
62
|
+
*/
|
|
63
|
+
chat(conversationId: string, dto: AIChatRequestDto): Promise<HttpResponse<AIChatResponseDto>>;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=ai.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../../src/endpoints/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED;;;GAGG;AACH,qBAAa,KAAK;IACJ,OAAO,CAAC,EAAE;gBAAF,EAAE,EAAE,cAAc;IAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;CAG9F"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { RequestBuilder } from '../http-builder.js';
|
|
2
|
+
/**
|
|
3
|
+
* AI API 클라이언트
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export class AiApi {
|
|
7
|
+
constructor(rb) {
|
|
8
|
+
this.rb = rb;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 대화 내에서 AI와 채팅을 진행합니다.
|
|
12
|
+
* @param conversationId - 대화 ID
|
|
13
|
+
* @param dto - 채팅 요청 데이터
|
|
14
|
+
* - `model` ('openai' | 'deepseek'): 사용할 AI 모델
|
|
15
|
+
* - `chatContent` (string): 사용자 입력 메시지 내용
|
|
16
|
+
* @returns 업데이트된 메시지 목록
|
|
17
|
+
* - `messages` (MessageDto[]): 생성된 메시지 목록 (사용자 메시지 + AI 응답 메시지)
|
|
18
|
+
* @example
|
|
19
|
+
* const response = await client.ai.chat('c_123', {
|
|
20
|
+
* model: 'openai',
|
|
21
|
+
* chatContent: 'Hello, how are you?'
|
|
22
|
+
* });
|
|
23
|
+
* console.log(response.data);
|
|
24
|
+
* // Output:
|
|
25
|
+
* {
|
|
26
|
+
* messages: [
|
|
27
|
+
* {
|
|
28
|
+
* id: 'm_user_1',
|
|
29
|
+
* role: 'user',
|
|
30
|
+
* content: 'Hello, how are you?',
|
|
31
|
+
* createdAt: '2024-02-20T10:00:00Z',
|
|
32
|
+
* ...
|
|
33
|
+
* },
|
|
34
|
+
* {
|
|
35
|
+
* id: 'm_ai_1',
|
|
36
|
+
* role: 'assistant',
|
|
37
|
+
* content: 'I am doing well, thank you!',
|
|
38
|
+
* createdAt: '2024-02-20T10:00:01Z',
|
|
39
|
+
* ...
|
|
40
|
+
* }
|
|
41
|
+
* ]
|
|
42
|
+
* }
|
|
43
|
+
*/
|
|
44
|
+
chat(conversationId, dto) {
|
|
45
|
+
return this.rb.path(`/v1/ai/conversations/${conversationId}/chat`).post(dto);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=ai.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai.js","sourceRoot":"","sources":["../../src/endpoints/ai.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,oBAAoB,CAAC;AAwBvE;;;GAGG;AACH,MAAM,OAAO,KAAK;IAChB,YAAoB,EAAkB;QAAlB,OAAE,GAAF,EAAE,CAAgB;IAAG,CAAC;IAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,IAAI,CAAC,cAAsB,EAAE,GAAqB;QAChD,OAAO,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,wBAAwB,cAAc,OAAO,CAAC,CAAC,IAAI,CAAoB,GAAG,CAAC,CAAC;IAClG,CAAC;CACF"}
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* AppleAuthApi: 브라우저 리다이렉트 기반 OAuth 시작 URL 헬퍼.
|
|
3
3
|
* 실제 콜백 처리는 서버가 수행하므로 SDK는 start URL 생성만 제공.
|
|
4
|
+
* @public
|
|
4
5
|
*/
|
|
5
6
|
export declare class AppleAuthApi {
|
|
6
7
|
private baseUrl;
|
|
7
8
|
constructor(baseUrl: string);
|
|
8
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* 로그인 시작 URL을 반환합니다.
|
|
11
|
+
* @returns Apple OAuth 시작 URL
|
|
12
|
+
* @example
|
|
13
|
+
* const url = client.appleAuth.startUrl();
|
|
14
|
+
* console.log(url);
|
|
15
|
+
* // Output:
|
|
16
|
+
* // 'https://api.graphnode.dev/auth/apple/start'
|
|
17
|
+
*/
|
|
9
18
|
startUrl(): string;
|
|
10
19
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
* 브라우저를 Apple 로그인 페이지로 리다이렉트합니다.
|
|
21
|
+
* @param windowObj window 객체 (테스트/SSR 대응, 기본값 window)
|
|
22
|
+
* @example
|
|
23
|
+
* // In a browser environment:
|
|
24
|
+
* client.appleAuth.login();
|
|
25
|
+
*/
|
|
16
26
|
login(windowObj?: Window): void;
|
|
17
27
|
}
|
|
18
28
|
//# sourceMappingURL=auth.apple.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.apple.d.ts","sourceRoot":"","sources":["../../src/endpoints/auth.apple.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auth.apple.d.ts","sourceRoot":"","sources":["../../src/endpoints/auth.apple.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,YAAY;IACX,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM;IAEnC;;;;;;;;OAQG;IACH,QAAQ,IAAI,MAAM;IAIlB;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,GAAE,MAAe,GAAG,IAAI;CAGxC"}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* AppleAuthApi: 브라우저 리다이렉트 기반 OAuth 시작 URL 헬퍼.
|
|
3
3
|
* 실제 콜백 처리는 서버가 수행하므로 SDK는 start URL 생성만 제공.
|
|
4
|
+
* @public
|
|
4
5
|
*/
|
|
5
6
|
export class AppleAuthApi {
|
|
6
7
|
constructor(baseUrl) {
|
|
7
8
|
this.baseUrl = baseUrl;
|
|
8
9
|
}
|
|
9
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* 로그인 시작 URL을 반환합니다.
|
|
12
|
+
* @returns Apple OAuth 시작 URL
|
|
13
|
+
* @example
|
|
14
|
+
* const url = client.appleAuth.startUrl();
|
|
15
|
+
* console.log(url);
|
|
16
|
+
* // Output:
|
|
17
|
+
* // 'https://api.graphnode.dev/auth/apple/start'
|
|
18
|
+
*/
|
|
10
19
|
startUrl() {
|
|
11
20
|
return this.baseUrl.replace(/\/$/, '') + '/auth/apple/start';
|
|
12
21
|
}
|
|
13
22
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
* 브라우저를 Apple 로그인 페이지로 리다이렉트합니다.
|
|
24
|
+
* @param windowObj window 객체 (테스트/SSR 대응, 기본값 window)
|
|
25
|
+
* @example
|
|
26
|
+
* // In a browser environment:
|
|
27
|
+
* client.appleAuth.login();
|
|
28
|
+
*/
|
|
19
29
|
login(windowObj = window) {
|
|
20
30
|
windowObj.location.href = this.startUrl();
|
|
21
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.apple.js","sourceRoot":"","sources":["../../src/endpoints/auth.apple.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auth.apple.js","sourceRoot":"","sources":["../../src/endpoints/auth.apple.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,YAAY;IACvB,YAAoB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAEvC;;;;;;;;OAQG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,mBAAmB,CAAC;IAC/D,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,YAAoB,MAAM;QAC9B,SAAS,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC5C,CAAC;CACF"}
|
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GoogleAuthApi: 브라우저 리다이렉트 기반 OAuth 시작 URL 헬퍼.
|
|
3
3
|
* 실제 콜백 처리는 서버가 수행하므로 SDK는 start URL 생성만 제공.
|
|
4
|
+
* @public
|
|
4
5
|
*/
|
|
5
6
|
export declare class GoogleAuthApi {
|
|
6
7
|
private baseUrl;
|
|
7
8
|
constructor(baseUrl: string);
|
|
8
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* 로그인 시작 URL을 반환합니다.
|
|
11
|
+
* @returns Google OAuth 시작 URL
|
|
12
|
+
* @example
|
|
13
|
+
* const url = client.googleAuth.startUrl();
|
|
14
|
+
* console.log(url);
|
|
15
|
+
* // Output:
|
|
16
|
+
* // 'https://api.graphnode.dev/auth/google/start'
|
|
17
|
+
*/
|
|
9
18
|
startUrl(): string;
|
|
10
19
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
* 브라우저를 Google 로그인 페이지로 리다이렉트합니다.
|
|
21
|
+
* @param windowObj window 객체 (테스트/SSR 대응, 기본값 window)
|
|
22
|
+
* @example
|
|
23
|
+
* // In a browser environment:
|
|
24
|
+
* client.googleAuth.login();
|
|
25
|
+
*/
|
|
16
26
|
login(windowObj?: Window): void;
|
|
17
27
|
}
|
|
18
28
|
//# sourceMappingURL=auth.google.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.google.d.ts","sourceRoot":"","sources":["../../src/endpoints/auth.google.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auth.google.d.ts","sourceRoot":"","sources":["../../src/endpoints/auth.google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,aAAa;IACZ,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,MAAM;IAEnC;;;;;;;;OAQG;IACH,QAAQ,IAAI,MAAM;IAIlB;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,GAAE,MAAe,GAAG,IAAI;CAGxC"}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GoogleAuthApi: 브라우저 리다이렉트 기반 OAuth 시작 URL 헬퍼.
|
|
3
3
|
* 실제 콜백 처리는 서버가 수행하므로 SDK는 start URL 생성만 제공.
|
|
4
|
+
* @public
|
|
4
5
|
*/
|
|
5
6
|
export class GoogleAuthApi {
|
|
6
7
|
constructor(baseUrl) {
|
|
7
8
|
this.baseUrl = baseUrl;
|
|
8
9
|
}
|
|
9
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* 로그인 시작 URL을 반환합니다.
|
|
12
|
+
* @returns Google OAuth 시작 URL
|
|
13
|
+
* @example
|
|
14
|
+
* const url = client.googleAuth.startUrl();
|
|
15
|
+
* console.log(url);
|
|
16
|
+
* // Output:
|
|
17
|
+
* // 'https://api.graphnode.dev/auth/google/start'
|
|
18
|
+
*/
|
|
10
19
|
startUrl() {
|
|
11
20
|
return this.baseUrl.replace(/\/$/, '') + '/auth/google/start';
|
|
12
21
|
}
|
|
13
22
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
* 브라우저를 Google 로그인 페이지로 리다이렉트합니다.
|
|
24
|
+
* @param windowObj window 객체 (테스트/SSR 대응, 기본값 window)
|
|
25
|
+
* @example
|
|
26
|
+
* // In a browser environment:
|
|
27
|
+
* client.googleAuth.login();
|
|
28
|
+
*/
|
|
19
29
|
login(windowObj = window) {
|
|
20
30
|
windowObj.location.href = this.startUrl();
|
|
21
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.google.js","sourceRoot":"","sources":["../../src/endpoints/auth.google.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"auth.google.js","sourceRoot":"","sources":["../../src/endpoints/auth.google.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,OAAO,aAAa;IACxB,YAAoB,OAAe;QAAf,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAEvC;;;;;;;;OAQG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,oBAAoB,CAAC;IAChE,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,YAAoB,MAAM;QAC9B,SAAS,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC5C,CAAC;CACF"}
|